/* =========================================================
   MATEMBEZI — MASTER EXPERIENCE DETAIL PAGE

   Shared by all nine individual experience pages.
   Load after assets/css/style.css.

   Required body attribute:
   data-template="experience-detail"
========================================================= */

body[data-template="experience-detail"] {
  --experience-accent: var(--terracotta);
  --experience-highlight: var(--gold);
  --experience-highlight-soft: var(--gold-2);
  --experience-forest: #102f24;
  --experience-paper: #fffdf8;
  overflow-x: hidden;
}

body[data-template="experience-detail"] .site-header:not(.is-scrolled):not(.nav-expanded) {
  background: linear-gradient(to bottom, rgba(5,20,14,.52), transparent);
}

body[data-template="experience-detail"] .site-header:not(.is-scrolled):not(.nav-expanded) .brand-mark {
  border: 1px solid rgba(255,255,255,.24);
  box-shadow:
    0 12px 30px rgba(0,0,0,.24),
    0 0 0 5px rgba(255,255,255,.055);
}

body[data-template="experience-detail"] .site-header:not(.is-scrolled):not(.nav-expanded) .main-nav a:hover,
body[data-template="experience-detail"] .site-header:not(.is-scrolled):not(.nav-expanded) .main-nav a[aria-current="page"] {
  background: rgba(255,255,255,.1);
  color: var(--experience-highlight-soft);
}

/* Hero */
body[data-template="experience-detail"] .detail-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: max(720px, 88svh);
  align-items: end;
  overflow: hidden;
  padding: calc(var(--header) + 86px) 0 100px;
  background:
    linear-gradient(
      90deg,
      rgba(4,20,14,.98) 0%,
      rgba(5,24,17,.88) 42%,
      rgba(6,24,17,.44) 72%,
      rgba(6,24,17,.18) 100%
    ),
    radial-gradient(circle at 78% 17%, rgba(214,185,112,.32), transparent 29%),
    var(--detail-image) var(--detail-position, center 44%) / cover no-repeat;
}

body[data-template="experience-detail"] .detail-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .2;
  pointer-events: none;
  background-image:
    linear-gradient(115deg, rgba(255,255,255,.08), transparent 38%),
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.24) 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,.14) 0 1px, transparent 1.5px);
  background-size: auto, 31px 31px, 47px 47px;
  mix-blend-mode: soft-light;
  -webkit-mask-image: linear-gradient(to right, #000, transparent 78%);
  mask-image: linear-gradient(to right, #000, transparent 78%);
}

body[data-template="experience-detail"] .detail-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  height: auto;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(3,16,11,.58), transparent 34%),
    radial-gradient(ellipse at center, transparent 48%, rgba(2,13,9,.34) 100%);
}

body[data-template="experience-detail"] .detail-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(310px, .54fr);
  gap: clamp(48px, 8vw, 108px);
  align-items: end;
}

body[data-template="experience-detail"] .detail-hero-copy {
  max-width: 830px;
}

body[data-template="experience-detail"] .detail-hero .breadcrumbs {
  margin-bottom: 31px;
  color: rgba(255,255,255,.64);
}

body[data-template="experience-detail"] .detail-hero .breadcrumbs a {
  color: rgba(255,255,255,.9);
}

body[data-template="experience-detail"] .detail-hero .eyebrow {
  gap: .58rem;
  padding: .46rem .72rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--pill);
  background: rgba(255,255,255,.08);
  color: var(--experience-highlight-soft);
  backdrop-filter: blur(12px);
}

body[data-template="experience-detail"] .detail-hero h1 {
  max-width: 12ch;
  margin: 22px 0 24px;
  color: #fff;
  font-size: clamp(3.65rem, 6.15vw, 6.05rem);
  line-height: .95;
  letter-spacing: -.048em;
  text-shadow: 0 8px 34px rgba(0,0,0,.25);
}

body[data-template="experience-detail"] .detail-hero-copy > p {
  max-width: 62ch;
  margin: 0;
  padding-left: 20px;
  border-left: 2px solid var(--experience-highlight);
  color: rgba(255,255,255,.82);
  font-size: clamp(1.02rem, 1.4vw, 1.17rem);
  line-height: 1.72;
}

body[data-template="experience-detail"] .detail-meta {
  gap: 9px;
  margin-top: 27px;
}

body[data-template="experience-detail"] .detail-meta span {
  min-height: 38px;
  padding: .48rem .72rem;
  border-color: rgba(255,255,255,.2);
  background: rgba(5,23,16,.34);
  color: rgba(255,255,255,.86);
}

body[data-template="experience-detail"] .detail-meta i {
  color: var(--experience-highlight-soft);
}

body[data-template="experience-detail"] .detail-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 30px;
}

body[data-template="experience-detail"] .detail-hero-actions .btn {
  min-height: 52px;
  padding-inline: 1.25rem;
}

body[data-template="experience-detail"] .detail-text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.84);
  font-size: .85rem;
  font-weight: 800;
  text-decoration: none;
}

body[data-template="experience-detail"] .detail-text-link i {
  color: var(--experience-highlight-soft);
  transition: transform var(--ease);
}

body[data-template="experience-detail"] .detail-text-link:hover i {
  transform: translateX(4px);
}

body[data-template="experience-detail"] .detail-hero-card {
  position: relative;
  padding: 29px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 26px 26px 72px 26px;
  background: rgba(8,37,26,.64);
  color: #fff;
  box-shadow:
    0 30px 72px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(18px) saturate(130%);
}

body[data-template="experience-detail"] .detail-hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--experience-highlight),
    var(--experience-highlight-soft),
    transparent
  );
}

body[data-template="experience-detail"] .detail-hero-card-kicker {
  display: block;
  margin-bottom: 18px;
  color: var(--experience-highlight-soft);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body[data-template="experience-detail"] .detail-hero-price {
  display: grid;
  gap: 3px;
}

body[data-template="experience-detail"] .detail-hero-price > span {
  color: rgba(255,255,255,.58);
  font-size: .7rem;
  font-weight: 790;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body[data-template="experience-detail"] .detail-hero-price > strong {
  color: #fff;
  font: 700 2.35rem/1.1 Georgia, "Times New Roman", serif;
}

body[data-template="experience-detail"] .detail-hero-price small {
  color: rgba(255,255,255,.62);
  font: 700 .73rem/1.3 Inter, ui-sans-serif, system-ui, sans-serif;
}

body[data-template="experience-detail"] .detail-hero-card > p {
  margin: 17px 0 22px;
  color: rgba(255,255,255,.68);
  font-size: .88rem;
  line-height: 1.65;
}

body[data-template="experience-detail"] .detail-hero-card .btn {
  width: 100%;
}

/* Detail content */
body[data-template="experience-detail"] .detail-content-section {
  position: relative;
  padding-block: clamp(78px, 8vw, 112px);
  background:
    radial-gradient(circle at 4% 2%, rgba(198,166,100,.14), transparent 22%),
    linear-gradient(180deg, #f7f0e5, #fbf8f1);
}

body[data-template="experience-detail"] .detail-layout {
  grid-template-columns: minmax(0, 1.42fr) minmax(320px, .68fr);
  gap: 34px;
}

body[data-template="experience-detail"] .detail-main-column {
  min-width: 0;
}

body[data-template="experience-detail"] .detail-content-panel {
  overflow: hidden;
  border: 1px solid rgba(37,35,31,.09);
  border-radius: 28px;
  background:
    radial-gradient(circle at 94% 2%, rgba(198,166,100,.075), transparent 18%),
    #fffdf8;
  box-shadow: 0 22px 64px rgba(39,31,22,.085);
}

body[data-template="experience-detail"] .detail-anchor-nav {
  position: sticky;
  z-index: 32;
  top: calc(var(--header) + 13px);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 11px 12px;
  border: 1px solid rgba(37,35,31,.1);
  border-radius: 17px;
  background: rgba(255,253,248,.92);
  box-shadow: 0 14px 40px rgba(35,29,22,.09);
  backdrop-filter: blur(15px) saturate(130%);
}

body[data-template="experience-detail"] .detail-reading-progress {
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 2px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(198,166,100,.13);
}

body[data-template="experience-detail"] .detail-reading-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--experience-highlight), var(--experience-accent));
  transform: scaleX(var(--reading-progress, 0));
  transform-origin: left center;
  transition: transform 90ms linear;
}

body[data-template="experience-detail"] .detail-anchor-nav > span:not(.detail-reading-progress) {
  flex: 0 0 auto;
  padding-left: 5px;
  color: var(--muted);
  font-size: .67rem;
  font-weight: 880;
  letter-spacing: .11em;
  text-transform: uppercase;
}

body[data-template="experience-detail"] .detail-anchor-nav > div {
  display: flex;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

body[data-template="experience-detail"] .detail-anchor-nav a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: .46rem .62rem;
  border-radius: var(--pill);
  color: #625b52;
  font-size: .72rem;
  font-weight: 790;
  text-decoration: none;
  white-space: nowrap;
}

body[data-template="experience-detail"] .detail-anchor-nav a:hover,
body[data-template="experience-detail"] .detail-anchor-nav a.is-active {
  background: var(--forest);
  color: #fff;
}

body[data-template="experience-detail"] .detail-section-card {
  position: relative;
  scroll-margin-top: calc(var(--header) + 90px);
  min-width: 0;
  height: auto;
  margin-bottom: 0;
  padding: clamp(38px, 5vw, 58px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-template="experience-detail"] .detail-section-card + .detail-section-card {
  border-top: 1px solid rgba(37,35,31,.1);
}

body[data-template="experience-detail"] .detail-section-card + .detail-section-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: clamp(38px, 5vw, 58px);
  width: 92px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--experience-highlight), transparent);
}

body[data-template="experience-detail"] .detail-section-card > .eyebrow {
  margin-bottom: 13px;
}

body[data-template="experience-detail"] .detail-section-card > h2 {
  max-width: 22ch;
  margin-bottom: 24px;
  color: var(--forest);
  font-size: clamp(2.15rem, 3.3vw, 3.05rem);
  line-height: 1.03;
  letter-spacing: -.035em;
}

body[data-template="experience-detail"] .detail-section-card > p,
body[data-template="experience-detail"] .detail-section-card > ul {
  max-width: 68ch;
  line-height: 1.8;
}

body[data-template="experience-detail"] .detail-section-card > p:last-child,
body[data-template="experience-detail"] .detail-section-card > ul:last-child {
  margin-bottom: 0;
}

body[data-template="experience-detail"] .tag-list {
  margin-top: 24px;
}

body[data-template="experience-detail"] .tag {
  border: 1px solid rgba(37,35,31,.06);
  background: #f4eee3;
}

body[data-template="experience-detail"] .highlight-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 30px;
}

body[data-template="experience-detail"] .highlight-item {
  min-height: 74px;
  align-items: flex-start;
  padding: 17px 0;
  border: 0;
  border-bottom: 1px solid rgba(37,35,31,.09);
  border-radius: 0;
  background: transparent;
  transition:
    color var(--ease),
    border-color var(--ease);
}

body[data-template="experience-detail"] .highlight-item:hover {
  color: var(--forest);
  border-color: rgba(198,166,100,.4);
}

body[data-template="experience-detail"] .highlight-item i {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border-radius: 50%;
  background: rgba(198,166,100,.17);
}

body[data-template="experience-detail"] .highlight-item span {
  padding-top: 4px;
  line-height: 1.5;
}

body[data-template="experience-detail"] .variant-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  counter-reset: experience-route;
}

body[data-template="experience-detail"] .variant-card {
  position: relative;
  min-height: 100%;
  padding: 25px;
  overflow: hidden;
  counter-increment: experience-route;
  border-color: rgba(37,35,31,.09);
  border-radius: 18px;
  background: linear-gradient(155deg, #fffdf8, #f8f2e7);
  transition:
    transform var(--ease),
    border-color var(--ease),
    box-shadow var(--ease);
}

body[data-template="experience-detail"] .variant-card::before {
  content: "0" counter(experience-route);
  position: absolute;
  top: 15px;
  right: 18px;
  color: rgba(24,61,47,.08);
  font: 700 3.25rem/1 Georgia, "Times New Roman", serif;
}

body[data-template="experience-detail"] .variant-card:hover {
  transform: translateY(-4px);
  border-color: rgba(198,166,100,.42);
  box-shadow: 0 16px 38px rgba(37,31,24,.09);
}

body[data-template="experience-detail"] .variant-card .duration {
  position: relative;
  z-index: 1;
  margin-bottom: 9px;
}

body[data-template="experience-detail"] .variant-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 13px;
  color: var(--forest);
  font-size: 1.3rem;
}

body[data-template="experience-detail"] .variant-card > p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.67;
}

body[data-template="experience-detail"] .variant-card dl {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid rgba(37,35,31,.09);
}

body[data-template="experience-detail"] .variant-card dt {
  color: var(--forest);
  font-size: .78rem;
}

body[data-template="experience-detail"] .variant-card dd {
  font-size: .84rem;
  line-height: 1.55;
}

body[data-template="experience-detail"] .timeline {
  margin-top: 31px;
}

body[data-template="experience-detail"] .timeline-item {
  min-height: 72px;
  padding: 0 0 32px 66px;
}

body[data-template="experience-detail"] .timeline-item::before {
  width: 42px;
  height: 42px;
  border: 3px solid #fffdf8;
  background: linear-gradient(145deg, #1b4c3a, var(--forest));
  box-shadow:
    0 0 0 1px rgba(198,166,100,.52),
    0 10px 24px rgba(24,61,47,.18);
}

body[data-template="experience-detail"] .timeline-item::after {
  left: 20px;
  top: 42px;
  bottom: -2px;
  width: 1px;
  background: linear-gradient(var(--experience-highlight), rgba(198,166,100,.13));
}

body[data-template="experience-detail"] .timeline-item strong {
  margin-bottom: 5px;
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.03rem;
}

body[data-template="experience-detail"] .timeline-item span {
  color: var(--muted);
  line-height: 1.65;
}

body[data-template="experience-detail"] .notice {
  margin: 6px 0 0;
  padding: 17px 18px;
  border-left-color: var(--experience-highlight);
  background: linear-gradient(90deg, #f5eddd, #faf7f0);
}

body[data-template="experience-detail"] .two-col {
  gap: 16px;
}

body[data-template="experience-detail"] .two-col > div {
  padding: 22px 0 0;
  border: 0;
  border-top: 2px solid rgba(198,166,100,.38);
  border-radius: 0;
  background: transparent;
}

body[data-template="experience-detail"] .two-col h3 {
  margin-bottom: 16px;
  color: var(--forest);
  font-size: 1.2rem;
}

body[data-template="experience-detail"] .check-list,
body[data-template="experience-detail"] .x-list {
  gap: 14px;
}

body[data-template="experience-detail"] .check-list li,
body[data-template="experience-detail"] .x-list li {
  align-items: flex-start;
  gap: 11px;
  font-size: .92rem;
  line-height: 1.55;
}

body[data-template="experience-detail"] .check-list i,
body[data-template="experience-detail"] .x-list i {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  margin-top: -1px;
  place-items: center;
  border-radius: 50%;
  font-size: .86rem;
}

body[data-template="experience-detail"] .check-list i {
  background: rgba(39,130,77,.1);
  color: #237647;
}

body[data-template="experience-detail"] .x-list i {
  background: rgba(168,91,69,.1);
  color: #9b4f3a;
}

body[data-template="experience-detail"] .detail-subheading {
  margin-top: 30px;
  color: var(--forest);
  font-size: 1.25rem;
}

body[data-template="experience-detail"] .faq-list {
  gap: 0;
  border-top: 1px solid rgba(37,35,31,.1);
}

body[data-template="experience-detail"] .faq-item {
  border: 0;
  border-bottom: 1px solid rgba(37,35,31,.1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition:
    border-color var(--ease),
    background var(--ease);
}

body[data-template="experience-detail"] .faq-item[open] {
  border-color: rgba(198,166,100,.55);
  background: rgba(247,240,229,.52);
  box-shadow: none;
}

body[data-template="experience-detail"] .faq-item summary {
  padding: 20px 54px 20px 4px;
  color: var(--forest);
}

body[data-template="experience-detail"] .faq-answer {
  padding: 0 32px 22px 4px;
  line-height: 1.7;
}

/* Booking sidebar and reusable enquiry form */
body[data-template="experience-detail"] .detail-booking-column {
  min-width: 0;
  align-self: stretch;
}

body[data-template="experience-detail"] .booking-card {
  position: sticky;
  display: flex;
  flex-direction: column;
  scroll-margin-top: calc(var(--header) + 22px);
  top: calc(var(--header) + 22px);
  padding: 27px;
  overflow: hidden;
  border-color: rgba(37,35,31,.1);
  border-radius: 24px;
  box-shadow: 0 22px 58px rgba(39,31,22,.12);
}

body[data-template="experience-detail"] .booking-card > .booking-price {
  order: 1;
}

body[data-template="experience-detail"] .booking-card > .booking-intro {
  order: 2;
}

body[data-template="experience-detail"] .booking-card > .quick-list {
  order: 3;
}

body[data-template="experience-detail"] .booking-card > .booking-assurance {
  order: 4;
}

body[data-template="experience-detail"] .booking-card > .booking-quick-actions {
  order: 5;
}

body[data-template="experience-detail"] .booking-card > .booking-enquiry-trigger {
  order: 6;
}

body[data-template="experience-detail"] .booking-card > [data-share] {
  order: 7;
}

body[data-template="experience-detail"] .booking-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--experience-highlight),
    var(--experience-highlight-soft),
    var(--experience-accent)
  );
}

body[data-template="experience-detail"] .booking-price {
  align-items: center;
  padding-bottom: 19px;
}

body[data-template="experience-detail"] .booking-price > i {
  color: var(--experience-highlight);
  font-size: 1.45rem;
}

body[data-template="experience-detail"] .booking-price strong {
  margin-top: 2px;
  font-size: 1.65rem;
}

body[data-template="experience-detail"] .booking-intro {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.65;
}

body[data-template="experience-detail"] .booking-assurance {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 0;
  padding: 12px 13px;
  border: 1px solid rgba(198,166,100,.22);
  border-radius: 12px;
  background: #faf6ed;
  color: #655d53;
  font-size: .72rem;
  font-weight: 760;
  line-height: 1.5;
}

body[data-template="experience-detail"] .booking-assurance i {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--experience-accent);
  font-size: .92rem;
}

body[data-template="experience-detail"] .booking-quick-actions {
  margin-top: 18px;
}

body[data-template="experience-detail"] .booking-quick-actions .btn {
  width: 100%;
  min-height: 50px;
  justify-content: center;
}

body[data-template="experience-detail"] .booking-enquiry-trigger {
  width: 100%;
  min-height: 50px;
  justify-content: center;
  margin-top: 11px;
}

body[data-template="experience-detail"] :is(
  .detail-hero-actions,
  .detail-hero-card,
  .booking-card,
  .booking-form-actions,
  .detail-cta,
  .mobile-booking-bar
) .btn {
  transition:
    transform 220ms cubic-bezier(.2,.75,.25,1),
    box-shadow 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    color 220ms ease;
}

body[data-template="experience-detail"] :is(
  .detail-hero-actions,
  .detail-hero-card,
  .booking-card,
  .booking-form-actions,
  .detail-cta,
  .mobile-booking-bar
) .btn:hover {
  transform: translateY(-2px);
}

body[data-template="experience-detail"] :is(
  .detail-hero-actions,
  .detail-hero-card,
  .booking-card,
  .booking-form-actions,
  .detail-cta,
  .mobile-booking-bar
) .btn:active {
  transform: translateY(0) scale(.985);
}

html.booking-dialog-open {
  overflow: hidden;
}

body[data-template="experience-detail"] .booking-dialog {
  width: min(720px, calc(100% - 32px));
  max-width: none;
  max-height: min(880px, calc(100dvh - 32px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 26px;
  background: #fffdf8;
  color: var(--ink);
  box-shadow: 0 34px 100px rgba(11,25,19,.32);
}

body[data-template="experience-detail"] .booking-dialog[open] {
  animation: experience-dialog-in 280ms cubic-bezier(.2,.8,.25,1) both;
}

body[data-template="experience-detail"] .booking-dialog[open]::backdrop {
  animation: experience-backdrop-in 240ms ease both;
}

body[data-template="experience-detail"] .booking-dialog.is-closing {
  animation: experience-dialog-out 180ms ease both;
}

body[data-template="experience-detail"] .booking-dialog.is-closing::backdrop {
  animation: experience-backdrop-out 180ms ease both;
}

body[data-template="experience-detail"] .booking-dialog::backdrop {
  background: rgba(9,24,18,.68);
  backdrop-filter: blur(7px);
}

@keyframes experience-dialog-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes experience-dialog-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(.985);
  }
}

@keyframes experience-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes experience-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

body[data-template="experience-detail"] .booking-dialog-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: min(880px, calc(100dvh - 32px));
}

body[data-template="experience-detail"] .booking-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 32px 24px;
  border-bottom: 1px solid rgba(37,35,31,.09);
  background: linear-gradient(145deg, #fffdf8, #f7f0e5);
}

body[data-template="experience-detail"] .booking-dialog-header .eyebrow {
  margin-bottom: 9px;
}

body[data-template="experience-detail"] .booking-dialog-header h2 {
  max-width: 18ch;
  margin: 0;
  color: var(--forest);
  font-size: clamp(1.8rem, 4vw, 2.65rem);
}

body[data-template="experience-detail"] .booking-dialog-header p {
  max-width: 52ch;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.6;
}

body[data-template="experience-detail"] .booking-dialog-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  cursor: pointer;
  place-items: center;
  border: 1px solid rgba(37,35,31,.12);
  border-radius: 50%;
  background: #fff;
  color: var(--forest);
  transition:
    transform var(--ease),
    border-color var(--ease),
    background var(--ease);
}

body[data-template="experience-detail"] .booking-dialog-close:hover {
  transform: rotate(5deg);
  border-color: var(--experience-highlight);
  background: #fbf6ec;
}

body[data-template="experience-detail"] .booking-dialog-body {
  padding: 28px 32px 34px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body[data-template="experience-detail"] .form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

body[data-template="experience-detail"] .booking-dialog form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body[data-template="experience-detail"] .booking-dialog form[hidden] {
  display: none;
}

body[data-template="experience-detail"] .booking-success {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 4px 0;
  padding: clamp(22px, 4vw, 30px);
  border: 1px solid rgba(198,166,100,.42);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.82), rgba(251,247,238,.94)),
    #fbf7ee;
  color: #183d2f;
  outline: none;
}

body[data-template="experience-detail"] .booking-success[hidden] {
  display: none;
}

body[data-template="experience-detail"] .booking-success > i {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 8px 22px rgba(24,61,47,.18);
}

body[data-template="experience-detail"] .booking-success strong {
  display: block;
  margin: 1px 0 7px;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.38rem);
  line-height: 1.25;
}

body[data-template="experience-detail"] .booking-success p {
  max-width: 52ch;
  margin: 0;
  color: #655f56;
  line-height: 1.65;
}

body[data-template="experience-detail"] .booking-dialog form[aria-busy="true"] {
  cursor: progress;
}

body[data-template="experience-detail"] .booking-dialog .form-field {
  gap: 6px;
}

body[data-template="experience-detail"] .booking-dialog .form-field label {
  color: #514b43;
  font-size: .75rem;
}

body[data-template="experience-detail"] .booking-dialog .form-field input,
body[data-template="experience-detail"] .booking-dialog .form-field select,
body[data-template="experience-detail"] .booking-dialog .form-field textarea {
  min-height: 49px;
  border-color: rgba(37,35,31,.13);
  background-color: #fff;
}

body[data-template="experience-detail"] .booking-dialog .form-field textarea {
  min-height: 112px;
}

body[data-template="experience-detail"] .booking-dialog .form-field input:focus,
body[data-template="experience-detail"] .booking-dialog .form-field select:focus,
body[data-template="experience-detail"] .booking-dialog .form-field textarea:focus {
  border-color: var(--experience-highlight);
  box-shadow: 0 0 0 4px rgba(198,166,100,.16);
}

body[data-template="experience-detail"] .booking-dialog .form-field-wide,
body[data-template="experience-detail"] .booking-dialog .booking-form-status,
body[data-template="experience-detail"] .booking-dialog .booking-form-actions {
  grid-column: 1 / -1;
}

body[data-template="experience-detail"] .booking-form-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 3px;
}

body[data-template="experience-detail"] .booking-form-actions .btn {
  width: 100%;
  min-height: 50px;
  justify-content: center;
  margin: 0;
}

body[data-template="experience-detail"] .booking-form-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 3px 0 0;
  padding: 13px 14px;
  border: 1px solid rgba(198,166,100,.42);
  border-radius: 12px;
  background: #fbf7ee;
  color: #183d2f;
  font-size: .8rem;
  line-height: 1.55;
}

body[data-template="experience-detail"] .booking-form-status[hidden] {
  display: none;
}

body[data-template="experience-detail"] .booking-form-status i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--experience-highlight);
}

body[data-template="experience-detail"] .booking-form-status.is-error {
  border-color: rgba(168,80,47,.38);
  background: #fff5f1;
  color: #7a2f21;
}

body[data-template="experience-detail"] .booking-form-status.is-error i {
  color: var(--terracotta);
}

body[data-template="experience-detail"] [data-email-submit] {
  position: relative;
}

body[data-template="experience-detail"] [data-email-submit]:disabled {
  cursor: wait;
  opacity: .78;
}

body[data-template="experience-detail"] .button-spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(23,21,17,.3);
  border-top-color: #171511;
  border-radius: 50%;
  animation: experience-button-spin 700ms linear infinite;
}

body[data-template="experience-detail"] [data-email-submit].is-loading .button-default-icon {
  display: none;
}

body[data-template="experience-detail"] [data-email-submit].is-loading .button-spinner {
  display: inline-block;
}

@keyframes experience-button-spin {
  to { transform: rotate(360deg); }
}

body[data-template="experience-detail"] .quick-list {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

body[data-template="experience-detail"] .quick-list li {
  align-items: flex-start;
}

body[data-template="experience-detail"] .quick-list i {
  margin-top: 2px;
}

body[data-template="experience-detail"] .booking-card > [data-share] {
  width: 100%;
  margin-top: 19px;
}

/* Related experiences */
body[data-template="experience-detail"] .related-experiences-section {
  padding-block: clamp(86px, 9vw, 124px);
  background: #fffdf8;
}

body[data-template="experience-detail"] .related-experiences-section .section-head {
  margin-bottom: 40px;
}

body[data-template="experience-detail"] .related-experiences-section .section-head h2 {
  margin-top: 13px;
}

@supports (content-visibility: auto) {
  body[data-template="experience-detail"] .related-experiences-section,
  body[data-template="experience-detail"] .detail-cta {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
  }
}

body[data-template="experience-detail"] .related-grid {
  gap: 23px;
}

body[data-template="experience-detail"] .related-grid .experience-card {
  border-color: rgba(37,35,31,.09);
  border-radius: 22px;
  box-shadow: 0 13px 36px rgba(39,31,22,.075);
  transition:
    transform 320ms cubic-bezier(.2,.75,.25,1),
    border-color 260ms ease,
    box-shadow 320ms ease;
}

body[data-template="experience-detail"] .related-grid .experience-card:hover,
body[data-template="experience-detail"] .related-grid .experience-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(198,166,100,.44);
  box-shadow: 0 21px 52px rgba(39,31,22,.12);
}

body[data-template="experience-detail"] .related-grid .card-media {
  aspect-ratio: 16 / 10;
}

body[data-template="experience-detail"] .related-grid .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 650ms cubic-bezier(.2,.75,.25,1);
}

body[data-template="experience-detail"] .related-grid .experience-card:hover .card-media img,
body[data-template="experience-detail"] .related-grid .experience-card:focus-within .card-media img {
  transform: scale(1.055);
}

body[data-template="experience-detail"] .related-grid .card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9,32,23,.34), transparent 48%);
  pointer-events: none;
}

body[data-template="experience-detail"] .related-grid .card-badge {
  z-index: 1;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,253,248,.89);
  backdrop-filter: blur(10px);
}

body[data-template="experience-detail"] .related-grid .card-body {
  padding: 24px;
}

body[data-template="experience-detail"] .related-grid .card-body h3 {
  color: var(--forest);
}

body[data-template="experience-detail"] .related-grid .meta-pill {
  border: 1px solid rgba(37,35,31,.055);
  background: #f7f1e7;
}

/* Closing CTA */
body[data-template="experience-detail"] .detail-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(78px, 9vw, 112px) 0;
  background:
    radial-gradient(circle at 80% 25%, rgba(213,182,111,.28), transparent 25%),
    linear-gradient(110deg, #0b2a1f, #174533);
}

body[data-template="experience-detail"] .detail-cta::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -90px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  box-shadow:
    0 0 0 60px rgba(255,255,255,.025),
    0 0 0 120px rgba(255,255,255,.018);
}

body[data-template="experience-detail"] .detail-cta .cta-inner {
  position: relative;
  z-index: 1;
}

body[data-template="experience-detail"] .detail-cta .eyebrow {
  color: var(--experience-highlight-soft);
}

body[data-template="experience-detail"] .detail-cta h2 {
  max-width: 700px;
  margin: 14px 0 17px;
  font-size: clamp(2.35rem, 4.4vw, 4rem);
}

body[data-template="experience-detail"] .detail-cta p {
  line-height: 1.75;
}

body[data-template="experience-detail"] .detail-cta .cta-actions {
  flex-direction: column;
  align-items: stretch;
  min-width: 235px;
}

body[data-template="experience-detail"] .detail-cta .cta-actions .btn {
  min-height: 52px;
}

/* Mobile booking bar */
body[data-template="experience-detail"] .mobile-booking-bar {
  display: none;
}

body[data-template="experience-detail"] :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--experience-highlight-soft);
  outline-offset: 4px;
}

@media (max-width: 1100px) {
  body[data-template="experience-detail"] .detail-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(285px, .58fr);
    gap: 42px;
  }

  body[data-template="experience-detail"] .detail-hero h1 {
    font-size: clamp(3.35rem, 6.6vw, 5.25rem);
  }

}

@media (max-width: 900px) {
  body[data-template="experience-detail"] .detail-hero {
    min-height: auto;
    padding-bottom: 86px;
  }

  body[data-template="experience-detail"] .detail-hero-grid {
    grid-template-columns: 1fr;
  }

  body[data-template="experience-detail"] .detail-hero-card {
    max-width: 650px;
  }

  body[data-template="experience-detail"] .detail-layout {
    grid-template-columns: 1fr;
  }

  body[data-template="experience-detail"] .booking-card {
    position: static;
    max-width: 680px;
  }
}

@media (max-width: 760px) {
  body[data-template="experience-detail"] {
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
  }

  body[data-template="experience-detail"] .detail-hero {
    padding: calc(var(--header) + 55px) 0 74px;
    background-position: 61% center;
  }

  body[data-template="experience-detail"] .detail-hero::before {
    display: none;
  }

  body[data-template="experience-detail"] .detail-hero .breadcrumbs {
    margin-bottom: 25px;
  }

  body[data-template="experience-detail"] .detail-hero h1 {
    max-width: 10ch;
    font-size: clamp(3rem, 14vw, 4.25rem);
  }

  body[data-template="experience-detail"] .detail-hero-copy > p {
    padding-left: 15px;
    font-size: 1rem;
  }

  body[data-template="experience-detail"] .detail-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  body[data-template="experience-detail"] .detail-hero-actions .btn {
    width: 100%;
  }

  body[data-template="experience-detail"] .detail-text-link {
    justify-content: center;
    padding-block: 8px;
  }

  body[data-template="experience-detail"] .detail-hero-card {
    padding: 24px;
    border-radius: 22px 22px 52px 22px;
  }

  body[data-template="experience-detail"] .detail-content-section {
    padding-block: 62px;
  }

  body[data-template="experience-detail"] .detail-anchor-nav {
    position: relative;
    top: auto;
    display: block;
    margin-inline: -3px;
    overflow: hidden;
  }

  body[data-template="experience-detail"] .detail-anchor-nav > span:not(.detail-reading-progress) {
    display: block;
    margin: 2px 5px 8px;
  }

  body[data-template="experience-detail"] .detail-anchor-nav > div {
    gap: 4px;
    margin-inline: -12px;
    padding: 0 12px 3px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  body[data-template="experience-detail"] .detail-anchor-nav > div::-webkit-scrollbar {
    display: none;
  }

  body[data-template="experience-detail"] .detail-anchor-nav a {
    flex: 0 0 auto;
    min-height: 44px;
    scroll-snap-align: start;
  }

  body[data-template="experience-detail"] .detail-section-card {
    padding: 28px 25px;
  }

  body[data-template="experience-detail"] .detail-section-card + .detail-section-card::before {
    left: 25px;
  }

  body[data-template="experience-detail"] .detail-content-panel {
    border-radius: 22px;
  }

  body[data-template="experience-detail"] .highlight-grid,
  body[data-template="experience-detail"] .two-col,
  body[data-template="experience-detail"] .variant-grid {
    grid-template-columns: 1fr;
  }

  body[data-template="experience-detail"] .two-col {
    gap: 25px;
  }

  body[data-template="experience-detail"] .booking-card {
    max-width: none;
    padding: 24px;
  }

  body[data-template="experience-detail"] .booking-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 20px;
  }

  body[data-template="experience-detail"] .booking-dialog-shell {
    max-height: calc(100dvh - 16px);
  }

  body[data-template="experience-detail"] .booking-dialog-header {
    gap: 18px;
    padding: 22px 20px 19px;
  }

  body[data-template="experience-detail"] .booking-dialog-header h2 {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
  }

  body[data-template="experience-detail"] .booking-dialog-body {
    padding: 22px 20px 26px;
  }

  body[data-template="experience-detail"] .booking-dialog form,
  body[data-template="experience-detail"] .booking-form-actions {
    grid-template-columns: 1fr;
  }

  body[data-template="experience-detail"] .related-experiences-section {
    padding-block: 78px;
  }

  body[data-template="experience-detail"] .related-grid {
    grid-template-columns: 1fr;
  }

  body[data-template="experience-detail"] .detail-cta .cta-inner {
    gap: 30px;
  }

  body[data-template="experience-detail"] .detail-cta .cta-actions {
    width: 100%;
    min-width: 0;
  }

  body[data-template="experience-detail"] .mobile-booking-bar {
    position: fixed;
    z-index: 1250;
    right: 9px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 9px;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    padding: 9px 9px 9px 17px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 20px;
    background: rgba(11,42,31,.95);
    color: #fff;
    box-shadow: 0 20px 58px rgba(0,0,0,.32);
    backdrop-filter: blur(16px) saturate(130%);
    transition:
      opacity var(--ease),
      transform var(--ease);
  }

  body[data-template="experience-detail"] .mobile-booking-bar.is-booking-visible {
    opacity: 0;
    transform: translateY(120%);
    pointer-events: none;
  }

  body[data-template="experience-detail"] .mobile-booking-bar > div {
    display: grid;
    min-width: max-content;
  }

  body[data-template="experience-detail"] .mobile-booking-bar span {
    color: rgba(255,255,255,.6);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
  }

  body[data-template="experience-detail"] .mobile-booking-bar strong {
    font: 700 1rem/1.2 Georgia, "Times New Roman", serif;
  }

  body[data-template="experience-detail"] .mobile-booking-bar .btn {
    min-height: 52px;
    padding: .65rem .9rem;
    font-size: .78rem;
  }

  body[data-template="experience-detail"] .floating-whatsapp {
    bottom: calc(90px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 390px) {
  body[data-template="experience-detail"] .detail-hero h1 {
    font-size: clamp(2.82rem, 14.4vw, 3.62rem);
  }

  body[data-template="experience-detail"] .detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-template="experience-detail"] .detail-meta span {
    white-space: normal;
  }

  body[data-template="experience-detail"] .detail-section-card,
  body[data-template="experience-detail"] .booking-card {
    padding: 22px;
  }

  body[data-template="experience-detail"] .detail-section-card + .detail-section-card::before {
    left: 22px;
  }

  body[data-template="experience-detail"] .mobile-booking-bar {
    left: 7px;
    right: 7px;
  }

  body[data-template="experience-detail"] .mobile-booking-bar .btn {
    padding-inline: .72rem;
    font-size: .73rem;
  }
}

@media (hover: none) {
  body[data-template="experience-detail"] .highlight-item:hover,
  body[data-template="experience-detail"] .variant-card:hover,
  body[data-template="experience-detail"] .related-grid .experience-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body[data-template="experience-detail"] *,
  body[data-template="experience-detail"] *::before,
  body[data-template="experience-detail"] *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  body[data-template="experience-detail"] .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  body[data-template="experience-detail"] .button-spinner {
    animation: none;
  }
}

@media print {
  body[data-template="experience-detail"] .site-header,
  body[data-template="experience-detail"] .detail-hero-card,
  body[data-template="experience-detail"] .detail-anchor-nav,
  body[data-template="experience-detail"] .detail-booking-column,
  body[data-template="experience-detail"] .related-experiences-section,
  body[data-template="experience-detail"] .detail-cta,
  body[data-template="experience-detail"] .site-footer,
  body[data-template="experience-detail"] .mobile-booking-bar,
  body[data-template="experience-detail"] .floating-whatsapp {
    display: none !important;
  }

  body[data-template="experience-detail"] .detail-hero {
    min-height: 0;
    padding: 40px 0;
    background: #183d2f;
  }

  body[data-template="experience-detail"] .detail-layout {
    display: block;
  }

  body[data-template="experience-detail"] .detail-section-card {
    break-inside: avoid;
    box-shadow: none;
  }
}
