/**
 * Jeepa Travel Sikkim: single trip page design.
 *
 * Layered on top of WP Travel Engine's own markup. No plugin templates are
 * replaced, so every admin field, tab and booking feature keeps working and
 * plugin updates do not remove this design.
 *
 * Palette: Himalayan night ink, snow surfaces, Jeepa orange for actions and
 * the five prayer flag colours (blue, white, red, green, yellow) as a motif.
 * Fonts: inherits the theme font (Jost). No extra font files.
 */

body.single-trip {
  --jtd-ink: #16213e;
  --jtd-body: #3d4660;
  --jtd-muted: #6b7390;
  --jtd-line: #e3e8f1;
  --jtd-snow: #f4f6fb;
  --jtd-card: #ffffff;
  --jtd-accent: #ff681a;
  --jtd-accent-deep: #d94e05;
  --jtd-accent-soft: #fff0e6;
  --jtd-blue: #2563eb;
  --jtd-blue-soft: #e9f0fe;
  --jtd-white: #0e9aab;
  --jtd-white-soft: #e2f5f7;
  --jtd-red: #dc3545;
  --jtd-red-soft: #fdeced;
  --jtd-green: #11956a;
  --jtd-green-soft: #e5f5ee;
  --jtd-yellow: #d99a00;
  --jtd-yellow-soft: #fff4d4;
  --jtd-radius: 24px;
  --jtd-shadow: 0 1px 2px rgba(22, 33, 62, 0.05), 0 18px 40px -26px rgba(22, 33, 62, 0.35);
  --jtd-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --jtd-ribbon: repeating-linear-gradient(90deg, #2563eb 0 18px, #dbe2ee 18px 36px, #dc3545 36px 54px, #11956a 54px 72px, #f2b705 72px 90px);
  --jtd-ribbon-mini: linear-gradient(90deg, #2563eb 0 20%, #dbe2ee 20% 40%, #dc3545 40% 60%, #11956a 60% 80%, #f2b705 80% 100%);
  --jtd-sticky-top: 12px;
  --jtd-i-compass: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='m15.5 8.5-2 5-5 2 2-5z'/></svg>");
  --jtd-i-route: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='6' cy='18' r='2'/><circle cx='18' cy='6' r='2'/><path d='M8 18h6a3 3 0 0 0 0-6h-4a3 3 0 0 1 0-6h6'/></svg>");
  --jtd-i-tag: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20.6 13.4 13.4 20.6a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z'/><circle cx='7.5' cy='7.5' r='1.5'/></svg>");
  --jtd-i-calendar: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='16' rx='2'/><path d='M3 10h18M8 3v4M16 3v4'/></svg>");
  --jtd-i-question: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.6.3-1 .9-1 1.6v.6'/><path d='M12 17.5h.01'/></svg>");
  --jtd-i-map: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 4 3 6v14l6-2 6 2 6-2V4l-6 2-6-2z'/><path d='M9 4v14M15 6v14'/></svg>");
  --jtd-i-page: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 3h9l3 3v15H6z'/><path d='M9 12h6M9 16h6'/></svg>");
  --jtd-i-chevron: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  --jtd-i-check: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12.5 4.5 4.5L19 7.5'/></svg>");
  --jtd-i-cross: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M7 7l10 10M17 7 7 17'/></svg>");
  --jtd-i-moon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z'/></svg>");
  --jtd-i-info: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 11v5M12 8h.01'/></svg>");
  --jtd-i-shield: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3 4 6v6c0 4.5 3.4 8.3 8 9 4.6-.7 8-4.5 8-9V6z'/><path d='m9 12 2 2 4-4'/></svg>");
  --jtd-mountains: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120' preserveAspectRatio='none'><path d='M0 120 L60 70 L95 88 L160 25 L205 72 L240 52 L300 98 L345 66 L400 92 V120 Z' fill='white'/></svg>");
}

body.admin-bar.single-trip {
  --jtd-sticky-top: 58px;
}

@media (min-width: 783px) {
  body.admin-bar.single-trip {
    --jtd-sticky-top: 44px;
  }
}

/* Prayer flag colour per repeating item */
html body.single-trip .jeepa-trip-detail-shell .itinerary-row:nth-of-type(5n+1),
html body.single-trip .jeepa-trip-detail-shell .faq-row:nth-of-type(5n+1),
html body.single-trip .jeepa-trip-detail-shell .wpte-faq-item:nth-of-type(5n+1),
html body.single-trip .jeepa-trip-detail-shell .trip-facts-value > li:nth-child(5n+1),
html body.single-trip .jeepa-trip-detail-shell .trip-highlight:nth-child(5n+1) {
  --flag: var(--jtd-blue);
  --flag-soft: var(--jtd-blue-soft);
}

html body.single-trip .jeepa-trip-detail-shell .itinerary-row:nth-of-type(5n+2),
html body.single-trip .jeepa-trip-detail-shell .faq-row:nth-of-type(5n+2),
html body.single-trip .jeepa-trip-detail-shell .wpte-faq-item:nth-of-type(5n+2),
html body.single-trip .jeepa-trip-detail-shell .trip-facts-value > li:nth-child(5n+2),
html body.single-trip .jeepa-trip-detail-shell .trip-highlight:nth-child(5n+2) {
  --flag: var(--jtd-white);
  --flag-soft: var(--jtd-white-soft);
}

html body.single-trip .jeepa-trip-detail-shell .itinerary-row:nth-of-type(5n+3),
html body.single-trip .jeepa-trip-detail-shell .faq-row:nth-of-type(5n+3),
html body.single-trip .jeepa-trip-detail-shell .wpte-faq-item:nth-of-type(5n+3),
html body.single-trip .jeepa-trip-detail-shell .trip-facts-value > li:nth-child(5n+3),
html body.single-trip .jeepa-trip-detail-shell .trip-highlight:nth-child(5n+3) {
  --flag: var(--jtd-red);
  --flag-soft: var(--jtd-red-soft);
}

html body.single-trip .jeepa-trip-detail-shell .itinerary-row:nth-of-type(5n+4),
html body.single-trip .jeepa-trip-detail-shell .faq-row:nth-of-type(5n+4),
html body.single-trip .jeepa-trip-detail-shell .wpte-faq-item:nth-of-type(5n+4),
html body.single-trip .jeepa-trip-detail-shell .trip-facts-value > li:nth-child(5n+4),
html body.single-trip .jeepa-trip-detail-shell .trip-highlight:nth-child(5n+4) {
  --flag: var(--jtd-green);
  --flag-soft: var(--jtd-green-soft);
}

html body.single-trip .jeepa-trip-detail-shell .itinerary-row:nth-of-type(5n+5),
html body.single-trip .jeepa-trip-detail-shell .faq-row:nth-of-type(5n+5),
html body.single-trip .jeepa-trip-detail-shell .wpte-faq-item:nth-of-type(5n+5),
html body.single-trip .jeepa-trip-detail-shell .trip-facts-value > li:nth-child(5n+5),
html body.single-trip .jeepa-trip-detail-shell .trip-highlight:nth-child(5n+5) {
  --flag: var(--jtd-yellow);
  --flag-soft: var(--jtd-yellow-soft);
}

/* ===== Shared headings ===== */
html body.single-trip .jeepa-trip-detail-shell :is(.wpte-overview-title, .wpte-itinerary-title, .wpte-cost-tab-title, .wpte-faqs-title, .wpte-faq-section-title, .wpte-map-title, .wpte-trip-highlights-title, .wte-trip-facts .widget-title, .enquiry-form-title, .wte-related-trips__heading) {
  position: relative;
  margin: 0 0 22px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font-size: clamp(1.45rem, 1.1rem + 1.1vw, 1.95rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.015em !important;
  text-align: left !important;
  text-transform: none !important;
  color: var(--jtd-ink) !important;
}

html body.single-trip .jeepa-trip-detail-shell :is(.wpte-overview-title, .wpte-itinerary-title, .wpte-cost-tab-title, .wpte-faqs-title, .wpte-faq-section-title, .wpte-map-title, .wpte-trip-highlights-title, .wte-trip-facts .widget-title, .enquiry-form-title, .wte-related-trips__heading)::before {
  display: none !important;
  content: none !important;
}

html body.single-trip .jeepa-trip-detail-shell :is(.wpte-overview-title, .wpte-itinerary-title, .wpte-cost-tab-title, .wpte-faqs-title, .wpte-faq-section-title, .wpte-map-title, .wpte-trip-highlights-title, .wte-trip-facts .widget-title, .enquiry-form-title, .wte-related-trips__heading)::after {
  content: "" !important;
  position: static !important;
  display: block !important;
  width: 60px !important;
  height: 5px !important;
  margin: 12px 0 0 !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: var(--jtd-ribbon-mini) !important;
  transform: none !important;
}

/* ===== Title ===== */
html body.single-trip .jeepa-trip-detail-shell .entry-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 0 0 24px !important;
  padding: 0 !important;
}

html body.single-trip .jeepa-trip-detail-shell .entry-header .entry-title {
  flex: 1 1 380px;
  min-width: 0;
  margin: 0 !important;
  font-size: clamp(1.9rem, 1.2rem + 2.3vw, 3rem) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em !important;
  color: var(--jtd-ink) !important;
}

html body.single-trip .jeepa-trip-detail-shell .entry-header .entry-title::after {
  content: "";
  display: block;
  width: 126px;
  height: 6px;
  margin-top: 16px;
  border-radius: 6px;
  background: var(--jtd-ribbon);
}

html body.single-trip .jeepa-trip-detail-shell .entry-header .wte-title-duration {
  position: static !important;
  inset: auto !important;
  flex: 0 0 auto;
  align-self: flex-start;
  transform: none !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte-title-duration {
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  margin: 0 !important;
  padding: 14px 18px !important;
  border: 0 !important;
  border-radius: 22px !important;
  background: linear-gradient(150deg, #ff9550 0%, var(--jtd-accent) 50%, var(--jtd-accent-deep) 100%) !important;
  box-shadow: 0 16px 30px -16px rgba(255, 104, 26, 0.85) !important;
  color: #fff !important;
  text-align: center;
}

html body.single-trip .jeepa-trip-detail-shell .wte-title-duration .duration {
  display: block;
  font-size: 2.2rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: #fff !important;
  background: none !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte-title-duration .days {
  display: block;
  margin-top: 4px;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92) !important;
  background: none !important;
}

/* ===== Featured image ===== */
html body.single-trip .jeepa-trip-detail-shell .wpte-gallery-wrapper,
html body.single-trip .jeepa-trip-detail-shell .wpte-trip-feat-img {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-gallery-wrapper::before,
html body.single-trip .jeepa-trip-detail-shell .wpte-gallery-wrapper::after,
html body.single-trip .jeepa-trip-detail-shell .wpte-trip-feat-img::before {
  display: none !important;
  content: none !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-trip-feat-img {
  position: relative;
  overflow: hidden;
  border-radius: 28px !important;
  box-shadow: 0 30px 60px -36px rgba(22, 33, 62, 0.6) !important;
}

/* Prayer flag ribbon along the bottom edge of the photo */
html body.single-trip .jeepa-trip-detail-shell .wpte-trip-feat-img::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7px;
  background: var(--jtd-ribbon);
}

html body.single-trip .jeepa-trip-detail-shell .wpte-trip-feat-img img {
  display: block;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

/* ===== Trip Info facts ===== */
html body.single-trip .jeepa-trip-detail-shell .secondary-trip-info {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte-trip-facts {
  margin: 36px 0 0 !important;
  padding: clamp(22px, 3.5vw, 34px) !important;
  border: 1px solid var(--jtd-line) !important;
  border-radius: 28px !important;
  background: var(--jtd-card) !important;
  box-shadow: var(--jtd-shadow) !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte-trip-facts .trip-facts-value {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte-trip-facts .trip-facts-value > li {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: var(--jtd-snow) !important;
  box-shadow: none !important;
  transition: background-color 0.3s ease, transform 0.3s var(--jtd-ease);
}

html body.single-trip .jeepa-trip-detail-shell .wte-trip-facts .trip-facts-value > li:hover {
  background: var(--flag-soft) !important;
  transform: translateY(-2px);
}

html body.single-trip .jeepa-trip-detail-shell .wte-trip-facts .icon-holder {
  display: grid !important;
  flex: 0 0 42px;
  place-items: center;
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: var(--flag-soft) !important;
  color: var(--flag) !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte-trip-facts .trip-facts-value > li:hover .icon-holder {
  background: var(--card, #fff) !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte-trip-facts .icon-holder svg {
  width: 19px !important;
  height: 19px !important;
  fill: currentColor !important;
  color: inherit !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte-trip-facts .icon-holder svg * {
  fill: currentColor;
}

html body.single-trip .jeepa-trip-detail-shell .wte-trip-facts .trip-facts-text {
  min-width: 0;
  margin: 0 !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte-trip-facts .trip-facts-text label {
  display: block !important;
  margin: 0 0 2px !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
  color: var(--jtd-muted) !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte-trip-facts .trip-facts-text .value {
  display: block;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--jtd-ink) !important;
  overflow-wrap: anywhere;
}

/* ===== Tabs ===== */
html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container:not(.wpte-tabs-sticky) {
  display: block !important;
  margin: 40px 0 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container::before {
  display: none !important;
  content: none !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container:not(.wpte-tabs-sticky) .nav-tab-wrapper {
  position: -webkit-sticky;
  position: sticky;
  top: var(--jtd-sticky-top);
  z-index: 40;
  display: block !important;
  margin: 0 0 18px !important;
  padding: 6px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px var(--jtd-line), 0 14px 30px -20px rgba(22, 33, 62, 0.5) !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container:not(.wpte-tabs-sticky) .tab-inner-wrapper {
  position: relative;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  border: 0 !important;
  background: none !important;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container:not(.wpte-tabs-sticky) .tab-inner-wrapper::-webkit-scrollbar {
  display: none;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container:not(.wpte-tabs-sticky) .tab-anchor-wrapper {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container:not(.wpte-tabs-sticky) .wte-tab-title {
  display: block !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container:not(.wpte-tabs-sticky) a.nav-tab {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  width: 100% !important;
  min-height: 46px;
  margin: 0 !important;
  padding: 11px 20px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.98rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  color: var(--jtd-body) !important;
  transform: none !important;
  transition: color 0.3s ease, background-color 0.3s ease !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container:not(.wpte-tabs-sticky) a.nav-tab::before,
html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container:not(.wpte-tabs-sticky) a.nav-tab::after {
  display: none !important;
  content: none !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container:not(.wpte-tabs-sticky) a.nav-tab:hover {
  background: var(--jtd-snow) !important;
  color: var(--jtd-ink) !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container:not(.wpte-tabs-sticky) a.nav-tab.nav-tab-active {
  background: var(--jtd-ink) !important;
  color: #fff !important;
}

/* With the script running, a sliding pill replaces the static active background */
html body.single-trip .jeepa-trip-detail-shell .tab-inner-wrapper.jtd-tabs-ready a.nav-tab.nav-tab-active,
html body.single-trip .jeepa-trip-detail-shell .tab-inner-wrapper.jtd-tabs-ready a.nav-tab.nav-tab-active:hover {
  background: transparent !important;
  color: #fff !important;
}

html body.single-trip .jeepa-trip-detail-shell .jtd-tab-indicator {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: 0;
  border-radius: 999px;
  background: var(--jtd-ink);
  box-shadow: 0 10px 22px -12px rgba(22, 33, 62, 0.85);
  pointer-events: none;
}

html body.single-trip .jeepa-trip-detail-shell .jtd-tab-indicator::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 16px;
  height: 3px;
  margin-left: -8px;
  border-radius: 3px;
  background: var(--jtd-accent);
}

html body.single-trip .jeepa-trip-detail-shell .jtd-tab-indicator.is-ready {
  transition: transform 0.45s var(--jtd-ease), width 0.45s var(--jtd-ease);
}

/* Tab icons: admin-chosen icons win; built-in icons fill empty slots */
html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container a.nav-tab .tab-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin: 0 !important;
  font-size: 18px;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container a.nav-tab .tab-icon:empty::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--jtd-icon, var(--jtd-i-page)) center / contain no-repeat;
  mask: var(--jtd-icon, var(--jtd-i-page)) center / contain no-repeat;
}

html body.single-trip .jeepa-trip-detail-shell a.nav-tab[data-configuration="1"] { --jtd-icon: var(--jtd-i-compass); }
html body.single-trip .jeepa-trip-detail-shell a.nav-tab[data-configuration="2"] { --jtd-icon: var(--jtd-i-route); }
html body.single-trip .jeepa-trip-detail-shell a.nav-tab[data-configuration="3"] { --jtd-icon: var(--jtd-i-tag); }
html body.single-trip .jeepa-trip-detail-shell a.nav-tab[data-configuration="4"] { --jtd-icon: var(--jtd-i-calendar); }
html body.single-trip .jeepa-trip-detail-shell a.nav-tab[data-configuration="5"] { --jtd-icon: var(--jtd-i-question); }
html body.single-trip .jeepa-trip-detail-shell a.nav-tab[data-configuration="6"] { --jtd-icon: var(--jtd-i-map); }

/* ===== Tab panel card ===== */
html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container:not(.wpte-tabs-sticky) .tab-content {
  position: relative;
  display: block !important;
  margin: 0 !important;
  padding: clamp(24px, 4vw, 42px) !important;
  border: 1px solid var(--jtd-line) !important;
  border-radius: 28px !important;
  background: var(--jtd-card) !important;
  box-shadow: var(--jtd-shadow) !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container:not(.wpte-tabs-sticky) .tab-content::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 32px;
  right: 32px;
  height: 5px;
  border-radius: 0 0 6px 6px;
  background: var(--jtd-ribbon);
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .nb-configurations {
  padding: 0 !important;
  animation: jtd-panel-in 0.5s var(--jtd-ease) both;
}

@keyframes jtd-panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ===== Overview ===== */
html body.single-trip .jeepa-trip-detail-shell .post-data.overview p {
  margin: 0 0 1.1em !important;
  font-size: 1.04rem !important;
  line-height: 1.85 !important;
  text-align: left !important;
  color: var(--jtd-body) !important;
}

html body.single-trip .jeepa-trip-detail-shell .post-data.overview > p:first-of-type {
  font-size: 1.13rem !important;
  color: var(--jtd-ink) !important;
}

html body.single-trip .jeepa-trip-detail-shell .post-data.overview > p:last-child {
  margin-bottom: 0 !important;
}

/* ===== Highlights (moved into its own card by the theme script) ===== */
html body.single-trip .jeepa-trip-detail-shell .wpte-highlights-card {
  position: relative;
  overflow: hidden;
  margin: 22px 0 0 !important;
  padding: clamp(24px, 4vw, 40px) clamp(24px, 4vw, 40px) clamp(56px, 7vw, 72px) !important;
  border: 0 !important;
  border-radius: 28px !important;
  background: radial-gradient(120% 90% at 100% 0%, #24366b 0%, rgba(36, 54, 107, 0) 60%), linear-gradient(160deg, #16213e 0%, #1b2a52 100%) !important;
  box-shadow: 0 30px 60px -36px rgba(22, 33, 62, 0.8) !important;
  color: #fff;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-highlights-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 64px;
  background: var(--jtd-mountains) bottom / 100% 100% no-repeat;
  opacity: 0.07;
  pointer-events: none;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-highlights-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: var(--jtd-ribbon);
}

html body.single-trip .jeepa-trip-detail-shell .wpte-highlights-card .wpte-trip-highlights-title {
  color: #fff !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-trip-highlights {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-trip-highlights .trip-highlight {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  font-size: 0.98rem !important;
  line-height: 1.5 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  transform: none !important;
  transition: background-color 0.3s ease !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-trip-highlights .trip-highlight:hover {
  background: rgba(255, 255, 255, 0.11) !important;
  transform: none !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-trip-highlights .trip-highlight::before {
  content: "" !important;
  position: static !important;
  display: block !important;
  flex: 0 0 24px;
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--flag) !important;
  -webkit-mask: none !important;
  mask: none !important;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
  transform: none !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-trip-highlights .trip-highlight::after {
  content: "" !important;
  position: absolute !important;
  display: block !important;
  top: 18px !important;
  left: 20px !important;
  width: 12px !important;
  height: 12px !important;
  margin: 0 !important;
  background: #fff !important;
  -webkit-mask: var(--jtd-i-check) center / contain no-repeat;
  mask: var(--jtd-i-check) center / contain no-repeat;
  border: 0 !important;
  transform: none !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-trip-highlights .trip-highlight {
  position: relative !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-trip-highlights .trip-highlight :is(i, svg) {
  display: none !important;
}

/* ===== Expand-all switches (itinerary and FAQs) ===== */
html body.single-trip .jeepa-trip-detail-shell .expand-all-button {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 6px 6px 6px 16px !important;
  border-radius: 999px !important;
  background: var(--jtd-snow) !important;
}

html body.single-trip .jeepa-trip-detail-shell .expand-all-button label {
  margin: 0 !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  color: var(--jtd-body) !important;
  cursor: pointer;
}

html body.single-trip .jeepa-trip-detail-shell .expand-all-button input[type="checkbox"] {
  background-color: #cfd6e4 !important;
}

html body.single-trip .jeepa-trip-detail-shell .expand-all-button input[type="checkbox"]:checked {
  background-color: var(--jtd-accent) !important;
}

html body.single-trip .jeepa-trip-detail-shell .expand-all-button input[type="checkbox"]:focus-visible {
  outline: 3px solid rgba(255, 104, 26, 0.45);
  outline-offset: 2px;
}

/* ===== Itinerary ===== */
html body.single-trip .jeepa-trip-detail-shell .wte-itinerary-header-wrapper {
  margin: 0 0 26px !important;
  padding: 0 !important;
}

html body.single-trip .jeepa-trip-detail-shell .wp-travel-engine-itinerary-header {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px 20px !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
}

html body.single-trip .jeepa-trip-detail-shell .wp-travel-engine-itinerary-header .wpte-itinerary-title {
  margin: 0 !important;
}

/* Trip brief (itinerary description field) */
html body.single-trip .jeepa-trip-detail-shell .wte-itinerary-header-wrapper > div:not(.wp-travel-engine-itinerary-header) {
  position: relative;
  width: auto !important;
  margin: 0 !important;
  padding: 16px 20px 16px 62px !important;
  border: 1px dashed rgba(37, 99, 235, 0.35) !important;
  border-radius: 18px !important;
  background: var(--jtd-blue-soft) !important;
  color: var(--jtd-ink);
}

html body.single-trip .jeepa-trip-detail-shell .wte-itinerary-header-wrapper > div:not(.wp-travel-engine-itinerary-header)::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--jtd-blue);
}

html body.single-trip .jeepa-trip-detail-shell .wte-itinerary-header-wrapper > div:not(.wp-travel-engine-itinerary-header)::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 23px;
  width: 18px;
  height: 18px;
  background: #fff;
  -webkit-mask: var(--jtd-i-shield) center / contain no-repeat;
  mask: var(--jtd-i-shield) center / contain no-repeat;
}

html body.single-trip .jeepa-trip-detail-shell .wte-itinerary-header-wrapper > div:not(.wp-travel-engine-itinerary-header) p {
  margin: 0 !important;
  font-size: 1rem !important;
  line-height: 1.75 !important;
  color: var(--jtd-ink) !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte-itinerary-header-wrapper > div:not(.wp-travel-engine-itinerary-header) em {
  font-style: normal;
}

/* Timeline */
html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .post-data.itinerary.wte-trip-itinerary-v2 {
  --node: 60px;
  --gap: 20px;
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 40px;
  left: calc(var(--node) / 2 - 1.5px);
  width: 3px;
  border-radius: 3px;
  background: repeating-linear-gradient(to bottom, #cbd3e3 0 6px, transparent 6px 12px);
}

html body.single-trip .jeepa-trip-detail-shell .wte-trip-itinerary-v2 .jtd-trail {
  position: absolute;
  top: 24px;
  left: calc(var(--node) / 2 - 1.5px);
  z-index: 0;
  width: 3px;
  height: calc((100% - 64px) * var(--jtd-progress, 0));
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--jtd-blue), var(--jtd-green), #f2b705, var(--jtd-accent));
  pointer-events: none;
}

html body.single-trip .jeepa-trip-detail-shell .wte-trip-itinerary-v2 .jtd-trail::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border: 3px solid var(--jtd-accent);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 104, 26, 0.18);
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2 .itinerary-row {
  position: relative !important;
  display: grid !important;
  grid-template-columns: var(--node) minmax(0, 1fr) !important;
  grid-template-rows: auto auto;
  column-gap: var(--gap);
  width: auto !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2 .itinerary-row:last-of-type {
  margin-bottom: 0 !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2 .itinerary-row::before {
  display: none !important;
  content: none !important;
}

/* The day card surface spans the header and the body */
html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2 .itinerary-row::after {
  content: "" !important;
  display: block !important;
  position: static !important;
  grid-column: 2;
  grid-row: 1 / 3;
  z-index: 0;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 20px;
  background: var(--jtd-card);
  box-shadow: 0 0 0 1px var(--jtd-line), 0 12px 28px -22px rgba(22, 33, 62, 0.45);
  transition: box-shadow 0.35s ease;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2 .itinerary-row.jtd-open::after {
  box-shadow: 0 0 0 1.5px var(--flag), 0 22px 44px -28px rgba(22, 33, 62, 0.55);
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2 .itinerary-row .wte-itinerary-head-wrap {
  display: contents !important;
}

/* Day marker on the trail */
html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2 .itinerary-row .wte-itinerary-head-wrap > .title {
  position: relative !important;
  inset: auto !important;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  float: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: var(--node) !important;
  min-width: 0 !important;
  max-width: none !important;
  height: var(--node) !important;
  margin: 6px 0 0 !important;
  padding: 2px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--jtd-card) !important;
  box-shadow: 0 0 0 3px var(--flag), 0 10px 20px -12px rgba(22, 33, 62, 0.6) !important;
  font-size: 0.66rem !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: 0.04em !important;
  text-align: center !important;
  text-transform: uppercase !important;
  white-space: normal !important;
  color: var(--jtd-ink) !important;
  transform: none !important;
  cursor: pointer;
  transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2 .itinerary-row .wte-itinerary-head-wrap > .title::before,
html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2 .itinerary-row .wte-itinerary-head-wrap > .title::after {
  display: none !important;
  content: none !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte-trip-itinerary-v2 .jtd-day-kicker {
  display: block;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  opacity: 0.75;
}

html body.single-trip .jeepa-trip-detail-shell .wte-trip-itinerary-v2 .jtd-day-num {
  display: block;
  margin-top: 2px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2 .itinerary-row.jtd-open .wte-itinerary-head-wrap > .title {
  background: var(--flag) !important;
  box-shadow: 0 0 0 3px var(--flag), 0 0 0 9px var(--flag-soft), 0 12px 24px -12px rgba(22, 33, 62, 0.6) !important;
  color: #fff !important;
}

/* Day header */
html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2 .itinerary-row .accordion-tabs-toggle {
  position: relative !important;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 72px !important;
  margin: 0 !important;
  padding: 16px 68px 16px 22px !important;
  border: 0 !important;
  border-radius: 20px;
  background: none !important;
  box-shadow: none !important;
  color: var(--jtd-ink) !important;
  text-decoration: none !important;
  cursor: pointer;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2 .itinerary-row .accordion-tabs-toggle:focus-visible {
  outline: 3px solid rgba(255, 104, 26, 0.55);
  outline-offset: -3px;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2 .itinerary-row .itinerary-title {
  display: block !important;
  flex: 1 1 auto;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2 .itinerary-row .itinerary-title span {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.18rem) !important;
  font-weight: 600 !important;
  line-height: 1.38 !important;
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: break-word;
  color: var(--jtd-ink) !important;
}

/* Chevron button (shared by itinerary and legacy FAQs) */
html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container :is(.itinerary-row, .faq-row) .accordion-tabs-toggle .rotator {
  position: absolute !important;
  top: 50% !important;
  right: 18px !important;
  left: auto !important;
  width: 36px !important;
  height: 36px !important;
  margin: -18px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--jtd-snow) !important;
  box-shadow: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  -webkit-mask: none !important;
  mask: none !important;
  transform: none !important;
  transition: transform 0.4s var(--jtd-ease), background-color 0.3s ease !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container :is(.itinerary-row, .faq-row) .accordion-tabs-toggle .rotator::before {
  content: "" !important;
  position: absolute;
  inset: 0;
  width: 16px;
  height: 16px;
  margin: auto;
  background: var(--jtd-ink);
  -webkit-mask: var(--jtd-i-chevron) center / contain no-repeat;
  mask: var(--jtd-i-chevron) center / contain no-repeat;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container :is(.itinerary-row, .faq-row) .accordion-tabs-toggle.active .rotator {
  background: var(--flag, var(--jtd-accent)) !important;
  transform: rotate(180deg) !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container :is(.itinerary-row, .faq-row) .accordion-tabs-toggle.active .rotator::before {
  background: #fff;
}

/* Day body */
html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2 .itinerary-row .itinerary-content {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 2;
  min-width: 0 !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2 .itinerary-row .itinerary-content .content {
  width: auto !important;
  max-width: none !important;
  margin: 0 22px !important;
  padding: 18px 0 22px !important;
  border: 0 !important;
  border-top: 1px dashed var(--jtd-line) !important;
  background: none !important;
  font-size: 1.01rem !important;
  line-height: 1.8 !important;
  text-align: left !important;
  color: var(--jtd-body) !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2 .itinerary-row .itinerary-content .content :where(p, li) {
  font-size: inherit !important;
  line-height: inherit !important;
  text-align: left !important;
  color: inherit;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2 .itinerary-row .itinerary-content .content p {
  margin: 0 0 1em !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2 .itinerary-row .itinerary-content .content > :last-child {
  margin-bottom: 0 !important;
}

/* Italic one-line notes in a day (fallback before the script tags them) */
html body.single-trip .jeepa-trip-detail-shell .wte-trip-itinerary-v2 .itinerary-content .content p > em:only-child {
  display: inline;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  font-style: italic;
  color: inherit !important;
}

/* Overnight stop chip */
html body.single-trip .jeepa-trip-detail-shell .wte-trip-itinerary-v2 .itinerary-content .content p.jtd-stay {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0 !important;
  padding: 7px 15px 7px 11px !important;
  border-radius: 999px;
  background: var(--jtd-accent-soft);
  font-size: 0.9rem !important;
  font-weight: 600;
  line-height: 1.4 !important;
  color: #8f3604 !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte-trip-itinerary-v2 .itinerary-content .content p.jtd-stay::before {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background: var(--jtd-accent);
  -webkit-mask: var(--jtd-i-moon) center / contain no-repeat;
  mask: var(--jtd-i-moon) center / contain no-repeat;
}

html body.single-trip .jeepa-trip-detail-shell .wte-trip-itinerary-v2 .itinerary-content .content p.jtd-stay em,
html body.single-trip .jeepa-trip-detail-shell .wte-trip-itinerary-v2 .itinerary-content .content p.jtd-stay strong {
  font-style: normal;
  font-weight: inherit;
  color: inherit !important;
}

/* Note callout */
html body.single-trip .jeepa-trip-detail-shell .wte-trip-itinerary-v2 .itinerary-content .content p.jtd-note {
  position: relative;
  padding: 14px 18px 14px 48px !important;
  border-radius: 14px;
  background: var(--jtd-yellow-soft);
  font-size: 0.96rem !important;
  line-height: 1.65 !important;
  color: #5c4300 !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte-trip-itinerary-v2 .itinerary-content .content p.jtd-note::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  width: 20px;
  height: 20px;
  background: var(--jtd-yellow);
  -webkit-mask: var(--jtd-i-info) center / contain no-repeat;
  mask: var(--jtd-i-info) center / contain no-repeat;
}

html body.single-trip .jeepa-trip-detail-shell .wte-trip-itinerary-v2 .itinerary-content .content p.jtd-note em {
  font-style: normal;
}

/* ===== Cost: includes and excludes ===== */
html body.single-trip .jeepa-trip-detail-shell .post-data.cost {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: start;
}

html body.single-trip .jeepa-trip-detail-shell .post-data.cost > .wpte-cost-tab-title {
  grid-column: 1 / -1;
  width: auto !important;
}

html body.single-trip .jeepa-trip-detail-shell .post-data.cost > .content {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 22px 22px 14px !important;
  border: 0 !important;
  border-radius: 22px !important;
  background: var(--jtd-green-soft) !important;
  box-shadow: none !important;
  --cost: var(--jtd-green);
  --cost-icon: var(--jtd-i-check);
}

html body.single-trip .jeepa-trip-detail-shell .post-data.cost > .content ~ .content {
  background: var(--jtd-red-soft) !important;
  --cost: var(--jtd-red);
  --cost-icon: var(--jtd-i-cross);
}

html body.single-trip .jeepa-trip-detail-shell .post-data.cost > .content h3 {
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: var(--jtd-ink) !important;
}

html body.single-trip .jeepa-trip-detail-shell .post-data.cost > .content h3::before {
  content: "";
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--cost);
  box-shadow: 0 10px 18px -10px var(--cost);
}

html body.single-trip .jeepa-trip-detail-shell .post-data.cost > .content h3::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 9px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background: #fff;
  -webkit-mask: var(--cost-icon) center / contain no-repeat;
  mask: var(--cost-icon) center / contain no-repeat;
}

html body.single-trip .jeepa-trip-detail-shell .post-data.cost > .content h3 {
  position: relative;
}

html body.single-trip .jeepa-trip-detail-shell .post-data.cost :is(#include-result, #exclude-result) {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  list-style: none !important;
}

html body.single-trip .jeepa-trip-detail-shell .post-data.cost :is(#include-result, #exclude-result) li {
  position: relative !important;
  display: block !important;
  margin: 0 !important;
  padding: 10px 0 10px 32px !important;
  border: 0 !important;
  border-top: 1px solid rgba(22, 33, 62, 0.08) !important;
  background: none !important;
  font-size: 0.98rem !important;
  line-height: 1.5 !important;
  color: var(--jtd-body) !important;
}

html body.single-trip .jeepa-trip-detail-shell .post-data.cost :is(#include-result, #exclude-result) li:first-child {
  border-top: 0 !important;
}

html body.single-trip .jeepa-trip-detail-shell .post-data.cost :is(#include-result, #exclude-result) li::before {
  content: "" !important;
  position: absolute !important;
  top: 12px !important;
  left: 0 !important;
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--cost) !important;
  -webkit-mask: none !important;
  mask: none !important;
  transform: none !important;
}

html body.single-trip .jeepa-trip-detail-shell .post-data.cost :is(#include-result, #exclude-result) li::after {
  content: "" !important;
  position: absolute !important;
  top: 17px !important;
  left: 5px !important;
  display: block !important;
  width: 10px !important;
  height: 10px !important;
  background: #fff !important;
  -webkit-mask: var(--cost-icon) center / contain no-repeat;
  mask: var(--cost-icon) center / contain no-repeat;
}

html body.single-trip .jeepa-trip-detail-shell .post-data.cost :is(#include-result, #exclude-result) li :is(i, svg) {
  display: none !important;
}

/* ===== FAQs (classic layout) ===== */
html body.single-trip .jeepa-trip-detail-shell .post-data.faq .wp-travel-engine-faq-tab-header,
html body.single-trip .jeepa-trip-detail-shell .wpte-faq-category-header {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px 20px !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  border: 0 !important;
}

html body.single-trip .jeepa-trip-detail-shell .post-data.faq .wp-travel-engine-faq-tab-header .wpte-faqs-title {
  margin: 0 !important;
}

html body.single-trip .jeepa-trip-detail-shell .wp-travel-engine-faq-tab-content,
html body.single-trip .jeepa-trip-detail-shell .wpte-faq-list {
  display: grid !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  counter-reset: jtdfaq;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .faq-row,
html body.single-trip .jeepa-trip-detail-shell .wpte-faq-item {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 18px !important;
  background: var(--jtd-card) !important;
  box-shadow: 0 0 0 1px var(--jtd-line) !important;
  transition: box-shadow 0.35s ease !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .faq-row.jtd-open,
html body.single-trip .jeepa-trip-detail-shell .wpte-faq-item.jtd-open {
  box-shadow: 0 0 0 1.5px var(--flag), 0 18px 36px -26px rgba(22, 33, 62, 0.55) !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .faq-row .accordion-tabs-toggle {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 16px 66px 16px 18px !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  cursor: pointer;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .faq-row .accordion-tabs-toggle:focus-visible {
  outline: 3px solid rgba(255, 104, 26, 0.55);
  outline-offset: -3px;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .faq-row .faq-title,
html body.single-trip .jeepa-trip-detail-shell .wpte-faq-item .wpte-faq-question {
  counter-increment: jtdfaq;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .faq-row .faq-title {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 1.02rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  text-align: left !important;
  color: var(--jtd-ink) !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .faq-row .faq-title::before,
html body.single-trip .jeepa-trip-detail-shell .wpte-faq-item .wpte-faq-question::before {
  content: counter(jtdfaq, decimal-leading-zero) !important;
  display: grid !important;
  flex: 0 0 38px;
  place-items: center;
  width: 38px !important;
  height: 38px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--flag-soft) !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  color: var(--flag) !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .faq-row .faq-content {
  margin: 0 !important;
  padding: 0 18px 18px 70px !important;
  border: 0 !important;
  background: none !important;
  font-size: 0.98rem !important;
  line-height: 1.75 !important;
  color: var(--jtd-body) !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .faq-row .faq-content p {
  margin: 0 0 0.8em !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .faq-row .faq-content p:empty {
  display: none;
}

/* ===== FAQs (category layout) ===== */
html body.single-trip .jeepa-trip-detail-shell .wpte-faq-category {
  margin: 0 0 24px !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-faq-category:last-child {
  margin-bottom: 0 !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-faq-category-title {
  margin: 0 !important;
  font-size: 1.12rem !important;
  font-weight: 700 !important;
  color: var(--jtd-ink) !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-faq-item .wpte-faq-question {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 16px 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 1.02rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  text-align: left !important;
  color: var(--jtd-ink) !important;
  cursor: pointer;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-faq-item .wpte-faq-question:focus-visible {
  outline: 3px solid rgba(255, 104, 26, 0.55);
  outline-offset: -3px;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-faq-item .wpte-faq-question-text {
  flex: 1 1 auto;
  min-width: 0;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-faq-item .wpte-faq-icon {
  display: grid !important;
  flex: 0 0 36px;
  place-items: center;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: var(--jtd-snow) !important;
  color: var(--jtd-ink) !important;
  transition: transform 0.4s var(--jtd-ease), background-color 0.3s ease, color 0.3s ease !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-faq-item .wpte-faq-icon svg {
  width: 16px !important;
  height: 16px !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-faq-item .wpte-faq-question[aria-expanded="true"] .wpte-faq-icon {
  background: var(--flag) !important;
  color: #fff !important;
  transform: rotate(180deg);
}

html body.single-trip .jeepa-trip-detail-shell .wpte-faq-item .wpte-faq-answer-content {
  padding: 0 18px 18px 70px !important;
  font-size: 0.98rem !important;
  line-height: 1.75 !important;
  color: var(--jtd-body) !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-faq-item .wpte-faq-answer-content p {
  margin: 0 0 0.8em !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-faq-item .wpte-faq-answer-content > :last-child {
  margin-bottom: 0 !important;
}

/* ===== Map ===== */
html body.single-trip .jeepa-trip-detail-shell .trip-map {
  overflow: hidden;
  border-radius: 22px !important;
  box-shadow: 0 0 0 1px var(--jtd-line);
}

html body.single-trip .jeepa-trip-detail-shell .trip-map iframe {
  display: block;
  width: 100% !important;
  min-height: 380px;
  border: 0 !important;
}

/* ===== Enquiry form ===== */
html body.single-trip .jeepa-trip-detail-shell .wte_enquiry_contact_form-wrap {
  position: relative;
  margin: 36px 0 0 !important;
  padding: clamp(24px, 4vw, 42px) !important;
  border: 1px solid var(--jtd-line) !important;
  border-radius: 28px !important;
  background: linear-gradient(180deg, #ffffff 0%, var(--jtd-snow) 100%) !important;
  box-shadow: var(--jtd-shadow) !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte_enquiry_contact_form-wrap::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 32px;
  right: 32px;
  height: 5px;
  border-radius: 0 0 6px 6px;
  background: var(--jtd-ribbon);
}

/* The plugin's own tinted box inside the card is removed so fields use the full card width */
html body.single-trip .jeepa-trip-detail-shell .wte_enquiry_contact_form-wrap .wte_enquiry_contact_form {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

@media (max-width: 767px) {
  html body.single-trip .jeepa-trip-detail-shell .wte_enquiry_contact_form-wrap {
    padding: 24px 18px !important;
    border-radius: 22px !important;
  }
}

html body.single-trip .jeepa-trip-detail-shell .wte_enquiry_contact_form label {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--jtd-ink) !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte_enquiry_contact_form :is(.input, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea) {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px !important;
  border: 1.5px solid #d8dee9 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 0.98rem !important;
  color: var(--jtd-ink) !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte_enquiry_contact_form textarea {
  min-height: 140px;
}

html body.single-trip .jeepa-trip-detail-shell .wte_enquiry_contact_form :is(.input, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea):focus {
  border-color: var(--jtd-accent) !important;
  box-shadow: 0 0 0 4px rgba(255, 104, 26, 0.15) !important;
  outline: none !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte_enquiry_contact_form .wp-travel-engine-info {
  display: inline-flex !important;
  align-items: center;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  background: var(--jtd-accent-soft) !important;
  font-weight: 600 !important;
  color: #8f3604 !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte_enquiry_contact_form .wpte-button.enquiry-submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 34px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(150deg, #ff8a3d 0%, var(--jtd-accent) 55%, var(--jtd-accent-deep) 100%) !important;
  box-shadow: 0 16px 30px -16px rgba(255, 104, 26, 0.9) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  color: #fff !important;
  cursor: pointer;
  transition: transform 0.3s var(--jtd-ease), box-shadow 0.3s ease !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte_enquiry_contact_form .wpte-button.enquiry-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -16px rgba(255, 104, 26, 0.95) !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte_enquiry_contact_form .wpte-button.enquiry-submit:focus-visible {
  outline: 3px solid rgba(22, 33, 62, 0.6);
  outline-offset: 3px;
}

/* ===== Related trips: trip cards (photo inset, details strip) ===== */
html body.single-trip .jeepa-trip-detail-shell .wte-related-trips-wrapper {
  margin-top: 64px !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte-related-trips .category-trips-single,
html body.single-trip .jeepa-trip-detail-shell .wte-related-trips.category-grid .category-trips-single[class*="wpte-layout"] {
  padding: 0 !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte-related-trips .category-trips-single {
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte-related-trips .category-trips-single-inner-wrap {
  height: 100%;
  padding: 10px !important;
  border: 1px solid var(--jtd-line) !important;
  border-radius: 24px !important;
  background: var(--jtd-card) !important;
  box-shadow: 0 18px 40px -30px rgba(22, 33, 62, 0.55) !important;
  transition: transform 0.4s var(--jtd-ease), box-shadow 0.4s ease !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte-related-trips .category-trips-single:hover .category-trips-single-inner-wrap {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -30px rgba(22, 33, 62, 0.6) !important;
}

/* Photo sits inside the card with rounded corners and a prayer flag edge */
html body.single-trip .jeepa-trip-detail-shell .wte-related-trips .category-trips-single .category-trip-fig {
  position: relative;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 17px !important;
  box-shadow: 0 16px 26px -18px rgba(22, 33, 62, 0.55) !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte-related-trips .category-trips-single .category-trip-fig::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 5px;
  background: var(--jtd-ribbon);
  pointer-events: none;
}

html body.single-trip .jeepa-trip-detail-shell .wte-related-trips .category-trips-single .category-trip-fig > a {
  display: block !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: var(--jtd-snow) !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte-related-trips .category-trip-fig img,
html body.single-trip .jeepa-trip-detail-shell .wte-related-trips img.wp-post-image {
  position: static !important;
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: transform 0.8s var(--jtd-ease);
}

html body.single-trip .jeepa-trip-detail-shell .wte-related-trips .category-trips-single:hover .category-trip-fig img {
  transform: scale(1.05);
}

html body.single-trip .jeepa-trip-detail-shell .wte-related-trips .category-trip-image-overlay {
  top: 0;
  border-radius: 0 !important;
  background: linear-gradient(180deg, rgba(22, 33, 62, 0) 60%, rgba(22, 33, 62, 0.3) 100%) !important;
  pointer-events: none;
}

html body.single-trip .jeepa-trip-detail-shell .wte-related-trips .category-trip-content-wrap {
  padding: 16px 8px 4px !important;
}

/* Activity line: quiet text with dots, as in the original card */
html body.single-trip .jeepa-trip-detail-shell .wte-related-trips .category-trip-types {
  margin: 0 0 6px !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte-related-trips .category-trip-types a {
  font-size: 0.8rem !important;
  font-weight: 600;
  line-height: 1.6 !important;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  color: var(--jtd-blue) !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte-related-trips .category-trip-types a:hover {
  color: var(--jtd-accent-deep) !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte-related-trips .category-trip-title {
  margin: 0 0 14px !important;
  font-size: 1.14rem !important;
  line-height: 1.4 !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte-related-trips .category-trip-title a {
  font-weight: 700 !important;
  text-decoration: none !important;
  color: var(--jtd-ink) !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte-related-trips .category-trip-title a:hover {
  color: var(--jtd-accent-deep) !important;
}

/* Trip details strip: a ticket style row under a dashed tear line */
html body.single-trip .jeepa-trip-detail-shell .wte-related-trips .category-trip-meta-infos {
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0 !important;
  margin: 0 !important;
  padding: 14px 0 6px !important;
  border-top: 2px dashed var(--jtd-line);
}

html body.single-trip .jeepa-trip-detail-shell .wte-related-trips .category-trip-meta-info {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 7px !important;
  min-width: 0;
  padding: 0 4px;
  text-align: center;
}

html body.single-trip .jeepa-trip-detail-shell .wte-related-trips .category-trip-meta-info + .category-trip-meta-info {
  border-left: 1px solid var(--jtd-line);
}

html body.single-trip .jeepa-trip-detail-shell .wte-related-trips .category-trip-meta-info:nth-child(3n+1) {
  --flag: var(--jtd-blue);
  --flag-soft: var(--jtd-blue-soft);
}

html body.single-trip .jeepa-trip-detail-shell .wte-related-trips .category-trip-meta-info:nth-child(3n+2) {
  --flag: var(--jtd-red);
  --flag-soft: var(--jtd-red-soft);
}

html body.single-trip .jeepa-trip-detail-shell .wte-related-trips .category-trip-meta-info:nth-child(3n+3) {
  --flag: var(--jtd-green);
  --flag-soft: var(--jtd-green-soft);
}

html body.single-trip .jeepa-trip-detail-shell .wte-related-trips .category-trip-meta-info-icon {
  display: grid !important;
  flex: 0 0 34px !important;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--flag-soft);
  color: var(--flag) !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte-related-trips .category-trip-meta-info-icon svg {
  width: 19px;
  height: 19px;
}

html body.single-trip .jeepa-trip-detail-shell .wte-related-trips .category-trip-meta-info > div {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

html body.single-trip .jeepa-trip-detail-shell .wte-related-trips .category-trip-meta-info-label {
  font-size: 0.68rem !important;
  font-weight: 600;
  line-height: 1.3 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jtd-muted) !important;
}

html body.single-trip .jeepa-trip-detail-shell .wte-related-trips .category-trip-meta-info-value {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  white-space: nowrap;
  color: var(--jtd-ink) !important;
}

/* ===== Small screens ===== */
@media (max-width: 767px) {
  html body.single-trip .jeepa-trip-detail-shell .wte-trip-facts .trip-facts-value {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  html body.single-trip .jeepa-trip-detail-shell .wte-trip-facts .trip-facts-value > li {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 12px !important;
  }

  html body.single-trip .jeepa-trip-detail-shell .wte-trip-facts .icon-holder {
    flex-basis: 36px;
    width: 36px !important;
    height: 36px !important;
    border-radius: 11px !important;
  }

  html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container:not(.wpte-tabs-sticky) a.nav-tab {
    min-height: 42px;
    padding: 9px 15px !important;
    font-size: 0.92rem !important;
  }

  html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container:not(.wpte-tabs-sticky) .tab-content {
    padding: 22px 16px !important;
    border-radius: 22px !important;
  }

  html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container:not(.wpte-tabs-sticky) .tab-content::before {
    left: 22px;
    right: 22px;
  }

  html body.single-trip .jeepa-trip-detail-shell .wpte-trip-highlights {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body.single-trip .jeepa-trip-detail-shell .wpte-highlights-card {
    border-radius: 22px !important;
  }

  html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .post-data.itinerary.wte-trip-itinerary-v2 {
    --node: 46px;
    --gap: 10px;
  }

  html body.single-trip .jeepa-trip-detail-shell .wte-trip-itinerary-v2 .jtd-day-kicker {
    font-size: 0.5rem;
    letter-spacing: 0.12em;
  }

  html body.single-trip .jeepa-trip-detail-shell .wte-trip-itinerary-v2 .jtd-day-num {
    font-size: 1.05rem;
  }

  html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2 .itinerary-row .wte-itinerary-head-wrap > .title {
    margin-top: 4px !important;
  }

  html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2 .itinerary-row .accordion-tabs-toggle {
    min-height: 58px !important;
    padding: 14px 54px 14px 16px !important;
  }

  html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container :is(.itinerary-row, .faq-row) .accordion-tabs-toggle .rotator {
    right: 12px !important;
    width: 32px !important;
    height: 32px !important;
    margin-top: -16px !important;
  }

  html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2 .itinerary-row .itinerary-content .content {
    margin: 0 16px !important;
    padding: 14px 0 18px !important;
    font-size: 0.98rem !important;
    line-height: 1.75 !important;
  }

  html body.single-trip .jeepa-trip-detail-shell .wte-itinerary-header-wrapper > div:not(.wp-travel-engine-itinerary-header) {
    padding: 56px 16px 16px !important;
  }

  html body.single-trip .jeepa-trip-detail-shell .post-data.cost {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .faq-row .accordion-tabs-toggle {
    padding: 14px 54px 14px 14px !important;
  }

  html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .faq-row .faq-content,
  html body.single-trip .jeepa-trip-detail-shell .wpte-faq-item .wpte-faq-answer-content {
    padding: 0 16px 16px !important;
  }

  html body.single-trip .jeepa-trip-detail-shell .wpte-faq-item .wpte-faq-question {
    padding: 14px !important;
  }
}

/* New FAQ block (WP Travel Engine 6.x): drop the plugin frame, keep text ink in every state */
html body.single-trip .jeepa-trip-detail-shell .wpte-faq-section .wpte-faq-category {
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-faq-section .wpte-faq-category-header {
  padding: 12px 14px 12px 18px !important;
  border-radius: 16px !important;
  background: var(--jtd-snow) !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-faq-section .wpte-faq-list {
  border-radius: 0 !important;
  background: none !important;
}

html body.single-trip .jeepa-trip-detail-shell .wpte-faq-item .wpte-faq-question .wpte-faq-question-text,
html body.single-trip .jeepa-trip-detail-shell .wpte-faq-item .wpte-faq-question:is(:hover, :focus, [aria-expanded="true"]) .wpte-faq-question-text {
  color: var(--jtd-ink) !important;
}

@media (max-width: 767px) {
  html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .faq-row .faq-title,
  html body.single-trip .jeepa-trip-detail-shell .wpte-faq-item .wpte-faq-question {
    gap: 10px !important;
    font-size: 0.97rem !important;
  }

  html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .faq-row .faq-title::before,
  html body.single-trip .jeepa-trip-detail-shell .wpte-faq-item .wpte-faq-question::before {
    flex-basis: 30px;
    width: 30px !important;
    height: 30px !important;
    border-radius: 9px !important;
    font-size: 0.76rem !important;
  }
}

/* Phones: every tab stays visible as an icon over a short label */
@media (max-width: 767px) {
  html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container:not(.wpte-tabs-sticky) .nav-tab-wrapper {
    padding: 5px !important;
    border-radius: 20px !important;
  }

  html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container:not(.wpte-tabs-sticky) .tab-inner-wrapper {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 2px !important;
    overflow: visible !important;
  }

  html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container:not(.wpte-tabs-sticky) .tab-anchor-wrapper {
    min-width: 0;
  }

  html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container:not(.wpte-tabs-sticky) a.nav-tab {
    flex-direction: column !important;
    gap: 4px !important;
    min-height: 58px;
    padding: 9px 2px 11px !important;
    border-radius: 15px !important;
    font-size: clamp(0.64rem, 0.5rem + 0.75vw, 0.8rem) !important;
    letter-spacing: 0 !important;
    overflow: hidden;
  }

  html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container a.nav-tab .tab-icon,
  html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container a.nav-tab .tab-icon:empty::before {
    width: 20px;
    height: 20px;
  }

  html body.single-trip .jeepa-trip-detail-shell .jtd-tab-indicator {
    border-radius: 15px;
  }

  html body.single-trip .jeepa-trip-detail-shell .jtd-tab-indicator::after {
    bottom: 4px;
  }
}

/* Phones: the day marker moves inside its card so text gets the full width */
@media (max-width: 767px) {
  html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .post-data.itinerary.wte-trip-itinerary-v2 {
    --node: 42px;
  }

  html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2::before,
  html body.single-trip .jeepa-trip-detail-shell .wte-trip-itinerary-v2 .jtd-trail {
    display: none !important;
  }

  html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2 .itinerary-row {
    grid-template-columns: minmax(0, 1fr) !important;
    column-gap: 0;
    margin-bottom: 12px !important;
  }

  html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2 .itinerary-row::after {
    grid-column: 1;
    border-radius: 18px;
  }

  html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2 .itinerary-row .wte-itinerary-head-wrap > .title {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin: 14px 0 0 14px !important;
    box-shadow: 0 0 0 2.5px var(--flag) !important;
  }

  html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2 .itinerary-row.jtd-open .wte-itinerary-head-wrap > .title {
    box-shadow: 0 0 0 2.5px var(--flag), 0 0 0 7px var(--flag-soft) !important;
  }

  html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2 .itinerary-row .accordion-tabs-toggle {
    grid-column: 1;
    min-height: 70px !important;
    padding: 14px 52px 14px 70px !important;
  }

  html body.single-trip .jeepa-trip-detail-shell .wpte-tabs-container .wte-trip-itinerary-v2 .itinerary-row .itinerary-content {
    grid-column: 1;
  }

  html body.single-trip .jeepa-trip-detail-shell .wte-trip-itinerary-v2 .jtd-day-kicker {
    font-size: 0.46rem;
  }

  html body.single-trip .jeepa-trip-detail-shell .wte-trip-itinerary-v2 .jtd-day-num {
    font-size: 1rem;
  }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html body.single-trip .jeepa-trip-detail-shell *,
  html body.single-trip .jeepa-trip-detail-shell *::before,
  html body.single-trip .jeepa-trip-detail-shell *::after {
    animation: none !important;
    transition: none !important;
  }
}
