/* =========================================================================
   Slider Tours & Safaris
   -------------------------------------------------------------------------
   One stylesheet, organised as:
     01  Tokens            design system variables — change the brand here
     02  Reset & base
     03  Typography
     04  Layout primitives
     05  Buttons & controls
     06  Header & navigation
     07  Hero
     08  Assurances strip
     09  Tour filters
     10  Tour cards + animated media
     11  Why choose us
     12  How it works
     13  About
     14  FAQ
     15  Voices (testimonial placeholder)
     16  Contact
     17  Footer
     18  Overlays: experience modal, lightbox, planner
     19  Floating actions
     20  Motion system & reduced motion
     21  Utilities
     22  Print
   ========================================================================= */


/* ==== 01  TOKENS ======================================================== */

:root {
  /* Brand — confirmed by the client's COLOUR PALETTE.pdf. Change these four
     values and the whole site re-themes. */
  --safari-green: #0F5132;
  --savanna-orange: #E67E22;
  --africa-brown: #4A2C17;
  --sandstone: #EADDC8;

  /* Supporting neutrals, all derived from or tuned against the four above. */
  --green-900: #072E1B;
  --green-800: #0B3E26;
  --green-600: #145637;
  --green-500: #2E7A54;
  --green-100: #E3EFE8;
  --orange-700: #B5620F;
  /* WhatsApp brand green, darkened until it clears AA both ways: white on it
     (5.4:1) and it on --sand-50 (5.2:1). The stock #25D366 fails both. */
  --whatsapp: #157A3C;
  --orange-100: #FBEAD8;
  --brown-700: #35200F;
  --sand-50: #FCFAF6;
  --sand-100: #F6F1E7;
  --sand-200: #EFE6D6;
  --ink: #1B1916;
  --ink-2: #4C463E;
  --ink-3: #736B60;
  --white: #FFFFFF;

  /* Semantic */
  --bg: var(--sand-50);
  --surface: var(--white);
  --surface-alt: var(--sand-100);
  --text: var(--ink);
  --text-muted: var(--ink-2);
  --text-soft: var(--ink-3);
  --border: rgba(74, 44, 23, 0.14);
  --border-strong: rgba(74, 44, 23, 0.26);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2:  clamp(1.36rem, 1.22rem + 0.66vw, 1.75rem);
  --step-3:  clamp(1.65rem, 1.4rem + 1.2vw, 2.4rem);
  --step-4:  clamp(2rem, 1.55rem + 2.1vw, 3.3rem);
  --step-5:  clamp(2.45rem, 1.7rem + 3.4vw, 4.6rem);

  /* Space */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);
  --gutter: clamp(1.1rem, 0.6rem + 2.2vw, 2.5rem);
  --container: 1200px;

  /* Shape */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Elevation — warm-tinted so shadows never look grey on sand */
  --shadow-1: 0 1px 2px rgba(53, 32, 15, 0.06), 0 2px 6px rgba(53, 32, 15, 0.05);
  --shadow-2: 0 2px 6px rgba(53, 32, 15, 0.07), 0 12px 26px -10px rgba(53, 32, 15, 0.16);
  --shadow-3: 0 4px 12px rgba(53, 32, 15, 0.09), 0 28px 60px -22px rgba(53, 32, 15, 0.32);

  /* Motion */
  --dur-1: 160ms;
  --dur-2: 300ms;
  --dur-3: 520ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 96px;
  --z-header: 60;
  --z-float: 70;
  --z-overlay: 100;
}

@media (max-width: 800px) {
  :root { --header-h: 72px; }
}


/* ==== 02  RESET & BASE ================================================== */

*, *::before, *::after { box-sizing: border-box; }

/* The `hidden` attribute must always win. Component rules like
   `.btn { display: inline-flex }` are author-level and would otherwise beat the
   user-agent `[hidden] { display: none }`, leaving hidden buttons on screen. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

/* Two independent locks: .is-locked while a dialog is open, .is-nav-open while
   the mobile drawer is. Separate classes so one closing cannot unlock the other. */
body.is-locked,
body.is-nav-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:where(a) { color: var(--green-600); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
:where(a:hover) { color: var(--orange-700); }

:focus-visible {
  outline: 3px solid var(--savanna-orange);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection { background: var(--sandstone); color: var(--brown-700); }

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--safari-green);
  color: var(--white);
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur-2) var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); color: var(--white); }


/* ==== 03  TYPOGRAPHY ==================================================== */

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--brown-700);
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

h1 { font-size: var(--step-5); line-height: 1.02; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-bottom: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--savanna-orange);
  border-radius: 2px;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-muted);
}

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--text-muted); font-size: var(--step-1); line-height: 1.55; }


/* ==== 04  LAYOUT PRIMITIVES ============================================= */

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

/* Scoped to page-level sections only: the planner's step panels are <section>
   elements too, and a global rule would give each of them 5rem of dead space. */
main > section { padding-block: var(--section-y); }
.section-alt { background: var(--surface-alt); }

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--border-strong) 22%, var(--border-strong) 78%, transparent);
}


/* ==== 05  BUTTONS & CONTROLS ============================================ */

.btn {
  --btn-bg: var(--safari-green);
  --btn-fg: var(--white);
  --btn-border: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.85em 1.5em;
  border: 1px solid var(--btn-border);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--dur-1) var(--ease),
              border-color var(--dur-1) var(--ease),
              color var(--dur-1) var(--ease),
              transform var(--dur-1) var(--ease),
              box-shadow var(--dur-2) var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-1); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

.btn-primary { --btn-bg: var(--safari-green); }
.btn-primary:hover { --btn-bg: var(--green-800); }

/* Savanna Orange fails AA with white text (~2.9:1) but passes comfortably with
   dark text (~7.2:1) — every orange fill in this file uses dark text. */
.btn-accent { --btn-bg: var(--savanna-orange); --btn-fg: var(--brown-700); }
/* The nav CTA is a .btn sitting inside .primary-nav — every nav-link colour
   rule excludes .btn so it keeps its dark-on-orange label. */
.btn-accent:hover { --btn-bg: #F08C33; }

.btn-outline { --btn-bg: transparent; --btn-fg: var(--safari-green); --btn-border: var(--border-strong); }
.btn-outline:hover { --btn-bg: var(--green-100); --btn-border: var(--safari-green); }

.btn-ghost { --btn-bg: transparent; --btn-fg: var(--text-muted); --btn-border: transparent; }
.btn-ghost:hover { --btn-bg: var(--sand-200); --btn-fg: var(--text); }

.btn-on-dark { --btn-bg: rgba(255, 255, 255, 0.1); --btn-fg: var(--white); --btn-border: rgba(255, 255, 255, 0.42); }
.btn-on-dark:hover { --btn-bg: rgba(255, 255, 255, 0.2); --btn-border: var(--white); }

.btn-sm { padding: 0.62em 1.1em; font-size: var(--step--1); }
.btn-lg { padding: 1em 1.9em; font-size: var(--step-1); }
.btn-block { width: 100%; }
.btn svg { flex: none; }

.btn .btn-spinner { display: none; width: 1em; height: 1em; }
.btn.is-busy .btn-spinner { display: block; animation: spin 700ms linear infinite; }
.btn.is-busy .btn-label { opacity: 0.7; }

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
  text-decoration: none;
  color: var(--green-600);
}
.link-arrow svg { transition: transform var(--dur-1) var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3em 0.75em;
  border-radius: var(--r-pill);
  background: var(--green-100);
  color: var(--green-800);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tag-accent { background: var(--orange-100); color: var(--brown-700); }
.tag-solid { background: var(--safari-green); color: var(--white); }


/* ==== 06  HEADER & NAVIGATION =========================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease),
              box-shadow var(--dur-2) var(--ease),
              backdrop-filter var(--dur-2) var(--ease);
}

.site-header > .container {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

/* Solid by default so the nav stays readable everywhere; frosted only where
   backdrop-filter is supported, which is what makes the translucency legible. */
.site-header.is-stuck {
  background: var(--sand-50);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 20px -8px rgba(53, 32, 15, 0.3);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-stuck {
    background: rgba(252, 250, 246, 0.86);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
  }
}

.brand { display: block; flex: none; line-height: 0; border-radius: var(--r-xs); }
/* The logo is a wide lockup — compass, Kilimanjaro, wordmark, tagline — so it
   needs real height before "SLIDER" is legible. The header is sized around the
   logo rather than the logo squeezed into a thin bar. */
.brand img {
  width: auto;
  height: clamp(46px, 4.8vw, 70px);
  transition: opacity var(--dur-2) var(--ease);
}
.brand .brand-dark { display: none; }
.site-header.is-stuck .brand .brand-dark,
.site-header.is-open .brand .brand-dark { display: block; }
.site-header.is-stuck .brand .brand-light,
.site-header.is-open .brand .brand-light { display: none; }

.nav-spacer { flex: 1 1 auto; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 0.9vw, 1.1rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a:not(.btn) {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: var(--r-sm);
  color: var(--white);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  transition: color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
}
.primary-nav a:not(.btn):hover { background: rgba(255, 255, 255, 0.16); color: var(--white); }
.primary-nav a:not(.btn)[aria-current="true"] { color: var(--sandstone); }

.site-header.is-stuck .primary-nav a:not(.btn) { color: var(--text-muted); text-shadow: none; }
.site-header.is-stuck .primary-nav a:not(.btn):hover { background: var(--sand-200); color: var(--brown-700); }
.site-header.is-stuck .primary-nav a:not(.btn)[aria-current="true"] { color: var(--green-600); }

.nav-cta { margin-left: clamp(0.25rem, 1vw, 0.75rem); }

.nav-toggle {
  display: none;
  flex: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(6px);
}
.site-header.is-stuck .nav-toggle,
.site-header.is-open .nav-toggle { background: var(--sand-200); border-color: var(--border); }

.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--white);
  transition: transform var(--dur-2) var(--ease), opacity var(--dur-1) var(--ease),
              background-color var(--dur-2) var(--ease);
}
.site-header.is-stuck .nav-toggle .bar,
.site-header.is-open .nav-toggle .bar { background: var(--brown-700); }

.site-header.is-open .nav-toggle .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav-toggle { display: block; }

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: var(--space-5) var(--gutter) calc(var(--space-6) + env(safe-area-inset-bottom));
    background: var(--sand-50);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease),
                visibility var(--dur-2) step-end;
  }
  .site-header.is-open .primary-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity var(--dur-2) var(--ease), transform var(--dur-3) var(--ease-out),
                visibility 0s;
  }

  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav a:not(.btn) {
    padding: 0.9rem 0.85rem;
    color: var(--brown-700);
    font-size: var(--step-1);
    font-family: var(--font-display);
    text-shadow: none;
    border-bottom: 1px solid var(--border);
  }
  .primary-nav a:not(.btn):hover { background: var(--sand-200); color: var(--brown-700); }
  /* The sand highlight used over the hero is unreadable on the drawer's own
     sand background — use the green instead. */
  .primary-nav a:not(.btn)[aria-current="true"] { color: var(--green-600); }
  .primary-nav li:last-child a { border-bottom: 0; }
  .nav-cta { margin: var(--space-4) 0 0; }
  .nav-cta .btn { width: 100%; }
}


/* ==== 07  HERO ========================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(100svh, 860px);
  padding-block: calc(var(--header-h) + var(--space-7)) clamp(3rem, 2rem + 5vw, 6rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--green-900);
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  /* 24x15 JPEG of the hero itself, inlined: the hero paints in brand colour on
     the first frame instead of flashing, which keeps CLS and LCP honest. */
  background-image: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABMNDhEODBMRDxEVFBMXHTAfHRoaHToqLCMwRT1JR0Q9Q0FMVm1dTFFoUkFDX4JgaHF1e3x7SlyGkIV3j214e3b/2wBDARQVFR0ZHTgfHzh2T0NPdnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnb/wAARCAAPABgDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDeE0f99fzFU5NUjLMsSMzKMtu+UCsdSwHJzn2oIAOUChsYyRWXtCuU07fVFkYiVVRezBsj8aKy8PtAAUcdqKftAsf/2Q==");
  background-size: cover;
  background-position: 50% 55%;
}
.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  display: block;
}

/* Two layered gradients: a bottom-weighted scrim for the copy, and a top
   scrim so the transparent header keeps its contrast. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(7, 46, 27, 0.94) 0%, rgba(7, 46, 27, 0.72) 26%, rgba(7, 46, 27, 0.18) 58%, rgba(7, 46, 27, 0.34) 100%),
    linear-gradient(to right, rgba(7, 46, 27, 0.6), rgba(7, 46, 27, 0.06) 62%);
}

.hero-content { position: relative; max-width: 44rem; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: var(--space-4);
  padding: 0.4em 1em 0.4em 0.8em;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.hero-eyebrow .pin { width: 14px; height: 14px; color: var(--savanna-orange); }

.hero h1 { color: var(--white); text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.hero h1 em {
  font-style: italic;
  color: var(--savanna-orange);
  font-variation-settings: "SOFT" 40, "WONK" 1;
}

.hero .lede {
  max-width: 38rem;
  margin-top: var(--space-4);
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.hero-marks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.86);
}
.hero-marks li { display: flex; align-items: center; gap: 0.5em; }
.hero-marks ul { display: contents; }
.hero-marks svg { width: 15px; height: 15px; color: var(--savanna-orange); flex: none; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
}
.scroll-cue:hover { color: var(--white); }
.scroll-cue .cue-track {
  width: 22px;
  height: 34px;
  border: 1.5px solid currentColor;
  border-radius: var(--r-pill);
  position: relative;
}
.scroll-cue .cue-dot {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 6px;
  translate: -50% 0;
  border-radius: 2px;
  background: currentColor;
  animation: cue 1.9s var(--ease) infinite;
}
@keyframes cue {
  0%, 12% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  70% { transform: translateY(13px); opacity: 0; }
  100% { transform: translateY(13px); opacity: 0; }
}

@media (max-width: 700px) {
  .hero { min-height: min(100svh, 720px); align-items: flex-end; }
  .hero::before {
    background: linear-gradient(to top, rgba(7, 46, 27, 0.96) 0%, rgba(7, 46, 27, 0.8) 34%, rgba(7, 46, 27, 0.3) 70%, rgba(7, 46, 27, 0.42) 100%);
  }
  .scroll-cue { display: none; }
}


/* ==== 08  ASSURANCES STRIP ============================================== */

.assurances {
  padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--brown-700);
  color: var(--sandstone);
}
.assurances ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4) var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}
.assurances li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: var(--step--1); line-height: 1.45; }
.assurances svg { width: 20px; height: 20px; flex: none; color: var(--savanna-orange); margin-top: 1px; }
.assurances strong { display: block; color: var(--white); font-size: var(--step-0); font-weight: 600; }


/* ==== 09  TOUR FILTERS ================================================== */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.filter-bar[role="tablist"] { position: relative; }

.filter-chip {
  padding: 0.6em 1.15em;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-muted);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease),
              border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.filter-chip:hover { border-color: var(--border-strong); color: var(--text); }
.filter-chip[aria-selected="true"] {
  background: var(--safari-green);
  border-color: var(--safari-green);
  color: var(--white);
  box-shadow: var(--shadow-2);
}
.filter-chip .count {
  margin-left: 0.5em;
  font-variant-numeric: tabular-nums;
  opacity: 0.62;
}

.filter-status { margin: 0 0 var(--space-5); text-align: center; color: var(--text-soft); font-size: var(--step--1); }


/* ==== 10  TOUR CARDS =================================================== */

.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(1.1rem, 0.6rem + 1.6vw, 2rem);
  align-items: stretch;
}

.tour-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease);
}
.tour-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: var(--border-strong); }
.tour-card:focus-within { border-color: var(--green-500); }

/* Filtering: hidden cards are removed from layout and the a11y tree by the
   global [hidden] rule above. */
.tours-grid.is-filtering .tour-card { transition: opacity var(--dur-1) var(--ease); }

/* --- media + the animated layer --- */
.tour-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--sand-200);
}
/* Direct children: the poster lives inside a <picture> (WebP with a JPEG
   fallback), the animated clip is injected as a bare <img>. Both fill the
   frame and stack on top of each other. */
.tour-media > picture,
.tour-media > picture > img,
.tour-media > .tour-motion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tour-media > picture > img { position: static; }
.tour-media .tour-poster { transition: opacity var(--dur-3) var(--ease), transform 6s var(--ease); }
.tour-media .tour-motion {
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease);
}
/* `is-playing` is set by js/modules/motion.js once the animated file has
   actually decoded — never before, so the card can't flash an empty box. */
.tour-media.is-playing .tour-motion { opacity: 1; }
.tour-media.is-playing .tour-poster { opacity: 0; }

.tour-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 25, 22, 0.55), rgba(27, 25, 22, 0.06) 45%, transparent 70%);
  pointer-events: none;
}

.motion-badge {
  position: absolute;
  z-index: 2;
  left: 0.8rem;
  bottom: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3em 0.7em;
  border-radius: var(--r-pill);
  background: rgba(27, 25, 22, 0.55);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease);
}
.tour-media.is-loading .motion-badge,
.tour-media.is-playing .motion-badge { opacity: 1; }
.motion-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--savanna-orange);
}
.tour-media.is-loading .motion-badge .dot { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

/* One row for both top badges, so on a narrow phone the price wraps under the
   category instead of the two overlapping. */
.tour-badges {
  position: absolute;
  z-index: 2;
  inset: 0.8rem 0.8rem auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
  pointer-events: none;
}

.tour-price-badge {
  padding: 0.4em 0.85em;
  border-radius: var(--r-pill);
  background: var(--savanna-orange);
  color: var(--brown-700);          /* dark on orange — see contrast note */
  font-size: var(--step--1);
  font-weight: 700;
  box-shadow: var(--shadow-2);
}

.tour-cat-badge {
  padding: 0.32em 0.8em;
  border-radius: var(--r-pill);
  background: rgba(252, 250, 246, 0.92);
  backdrop-filter: blur(6px);
  color: var(--green-800);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* --- body --- */
.tour-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(1.1rem, 0.9rem + 0.7vw, 1.6rem);
}

.tour-body h3 { margin-bottom: 0.35rem; font-size: var(--step-2); }

.tour-tagline {
  margin-bottom: var(--space-4);
  color: var(--text-muted);
  font-size: var(--step-0);
  line-height: 1.5;
}

.tour-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: var(--space-4);
}

.tour-highlights {
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  font-size: var(--step--1);
  color: var(--text-muted);
}
.tour-highlights li { display: flex; gap: 0.55rem; align-items: flex-start; line-height: 1.45; }
.tour-highlights svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--green-500); }

.price-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-bottom: var(--space-5);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--border);
  list-style: none;
}
.price-strip li {
  padding: 0.5rem 0.25rem;
  background: var(--sand-50);
  text-align: center;
}
.price-strip .who {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.price-strip .amount {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--brown-700);
  font-variant-numeric: tabular-nums;
}
.price-strip li.is-best { background: var(--green-100); }

.price-note { margin: -0.75rem 0 var(--space-5); font-size: 0.78rem; color: var(--text-soft); }

.tour-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
}
.tour-actions .btn { flex: 1 1 auto; }

/* --- the feature (Romantic) card --- */
.tour-card.is-feature {
  border-color: rgba(230, 126, 34, 0.42);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(230, 126, 34, 0.1), transparent 60%),
    var(--surface);
}
.tour-card.is-feature .tour-price-badge { background: var(--brown-700); color: var(--sandstone); }

@media (min-width: 900px) {
  .tour-card.is-feature { grid-column: span 2; flex-direction: row; }
  .tour-card.is-feature .tour-media { flex: 1 1 46%; aspect-ratio: auto; min-height: 340px; }
  .tour-card.is-feature .tour-body { flex: 1 1 54%; justify-content: center; }
  .tour-card.is-feature .tour-highlights { grid-template-columns: 1fr 1fr; gap: 0.45rem 1.2rem; }
}

/* Detail block: present in the markup for crawlers, hidden here because JS
   lifts it into the experience dialog. Without JS, css/no-js.css (loaded from a
   <noscript> tag) expands it inline instead — see index.html. */
.experience-detail { display: none; }


/* ==== 11  WHY CHOOSE US ================================================= */

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
}

.reason {
  padding: clamp(1.3rem, 1rem + 1vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.reason:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.reason h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.reason p { color: var(--text-muted); font-size: var(--step--1); line-height: 1.6; }

.reason-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--space-4);
  border-radius: var(--r-md);
  background: var(--green-100);
  color: var(--green-600);
}
.reason-icon svg { width: 22px; height: 22px; }
.reason:nth-child(3n + 2) .reason-icon { background: var(--orange-100); color: var(--orange-700); }
.reason:nth-child(3n + 3) .reason-icon { background: var(--sand-200); color: var(--brown-700); }


/* ==== 12  HOW IT WORKS ================================================= */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1rem, 0.5rem + 2vw, 2rem);
  counter-reset: step;
}

.step { position: relative; padding-top: var(--space-6); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  color: var(--savanna-orange);
  line-height: 1;
}
.step::after {
  content: "";
  position: absolute;
  top: calc(var(--space-6) - 0.9rem);
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--border-strong);
}
.step h3 { margin-top: var(--space-4); font-size: var(--step-1); }
.step p { color: var(--text-muted); font-size: var(--step--1); line-height: 1.6; }


/* ==== 13  ABOUT ======================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.05fr 0.95fr; } }

.about-copy p { color: var(--text-muted); font-size: var(--step-1); line-height: 1.62; }
.about-copy p + p { margin-top: 1em; }

.about-points {
  display: grid;
  gap: 0.6rem;
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}
.about-points li { display: flex; gap: 0.65rem; align-items: flex-start; font-size: var(--step-0); }
.about-points svg { width: 18px; height: 18px; flex: none; margin-top: 5px; color: var(--savanna-orange); }

.about-media { position: relative; }
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-3);
}
.about-media figcaption {
  margin-top: var(--space-3);
  font-size: 0.8rem;
  color: var(--text-soft);
  text-align: center;
}
.about-media::before {
  content: "";
  position: absolute;
  inset: auto -14px -14px auto;
  width: 62%;
  height: 62%;
  z-index: -1;
  border-radius: var(--r-xl);
  background: repeating-linear-gradient(45deg, var(--sand-200) 0 2px, transparent 2px 9px);
}


/* ==== 14  FAQ ========================================================== */

.faq { max-width: 52rem; margin-inline: auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
  background: transparent;
}
.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 1.15rem 0.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--brown-700);
  transition: color var(--dur-1) var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--green-600); }
.faq-item summary .chev {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: var(--green-600);
  transition: transform var(--dur-2) var(--ease);
}
.faq-item[open] summary .chev { transform: rotate(45deg); }
.faq-answer { padding: 0 0.25rem 1.35rem; color: var(--text-muted); max-width: 46rem; }
.faq-answer a { font-weight: 600; }


/* ==== 15  VOICES (placeholder) ========================================= */

.voices-placeholder {
  max-width: 44rem;
  margin-inline: auto;
  padding: clamp(1.75rem, 1rem + 3vw, 3rem);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-align: center;
}
.voices-placeholder .tag { margin-bottom: var(--space-4); }
.voices-placeholder p { color: var(--text-muted); }


/* ==== 16  CONTACT ====================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 1rem + 3vw, 3rem);
  align-items: start;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.channel-list { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }

.channel {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease),
              border-color var(--dur-1) var(--ease);
}
.channel:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--border-strong); color: var(--text); }
.channel-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--green-100);
  color: var(--green-600);
}
.channel-icon svg { width: 22px; height: 22px; }
.channel-whatsapp .channel-icon { background: #E3F5E8; color: var(--whatsapp); }
.channel-instagram .channel-icon { background: #FBE9EF; color: #B32C6B; }
.channel-phone .channel-icon { background: var(--orange-100); color: var(--orange-700); }
.channel .label { display: block; font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); }
.channel .value { display: block; font-weight: 600; word-break: break-word; }
.channel .go { margin-left: auto; color: var(--text-soft); flex: none; }

.contact-cta {
  padding: clamp(1.5rem, 1rem + 3vw, 2.75rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(130% 120% at 0% 0%, rgba(46, 122, 84, 0.5), transparent 62%),
    var(--safari-green);
  color: var(--white);
  box-shadow: var(--shadow-3);
}
.contact-cta h3 { color: var(--white); font-size: var(--step-3); }
.contact-cta p { color: rgba(255, 255, 255, 0.86); }
.contact-cta .btn { margin-top: var(--space-5); }
.contact-cta .fineprint { margin-top: var(--space-4); font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); }


/* ==== 17  FOOTER ======================================================= */

.site-footer {
  padding-block: var(--space-8) calc(var(--space-6) + env(safe-area-inset-bottom));
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.76);
  font-size: var(--step--1);
}
/* :not(.btn) so the footer CTA keeps its own dark-on-orange label. */
.site-footer a:not(.btn) { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--savanna-orange); text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-6) var(--space-5);
  padding-bottom: var(--space-7);
}
.footer-brand { grid-column: 1 / -1; max-width: 30rem; }
@media (min-width: 900px) { .footer-brand { grid-column: span 2; } }
.footer-brand img { height: 74px; width: auto; margin-bottom: var(--space-4); }
.footer-brand p { line-height: 1.6; }

.site-footer h2 {
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sandstone);
}
.site-footer ul { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }

.social-row { display: flex; gap: 0.6rem; margin-top: var(--space-5); }
.social-row a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-sm);
  color: var(--sandstone);
  transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease),
              color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.social-row a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--savanna-orange);
  color: var(--savanna-orange);
  transform: translateY(-2px);
}
.social-row svg { width: 20px; height: 20px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--space-4); }


/* ==== 18  OVERLAYS ===================================================== */

dialog.sheet {
  width: min(100% - 2rem, 62rem);
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--r-xl);
  background: var(--sand-50);
  color: var(--text);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}
dialog.sheet::backdrop {
  background: rgba(11, 32, 20, 0.62);
  backdrop-filter: blur(4px);
}
dialog.sheet[open] { animation: sheet-in var(--dur-3) var(--ease-out); }
dialog.sheet[open]::backdrop { animation: fade-in var(--dur-2) var(--ease); }

@keyframes sheet-in {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
}
@keyframes fade-in { from { opacity: 0; } }

.sheet-scroll { max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; }

.sheet-close {
  position: absolute;
  z-index: 5;
  top: 0.85rem;
  right: 0.85rem;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(27, 25, 22, 0.74);
  backdrop-filter: blur(8px);
  color: var(--white);
  transition: background-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.sheet-close:hover { background: rgba(27, 25, 22, 0.92); transform: rotate(90deg); }
.sheet-close.is-inline { position: static; }
.sheet-close.on-light {
  background: var(--sand-200);
  border-color: var(--border);
  color: var(--brown-700);
}
.sheet-close.on-light:hover { background: var(--sandstone); }

/* --- experience dialog --- */
.xp-hero { position: relative; aspect-ratio: 21 / 9; min-height: 220px; background: var(--sand-200); }
.xp-hero img, .xp-hero .tour-motion {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.xp-hero .tour-motion { opacity: 0; transition: opacity var(--dur-3) var(--ease); }
.xp-hero.is-playing .tour-motion { opacity: 1; }
.xp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 46, 27, 0.94), rgba(7, 46, 27, 0.25) 55%, rgba(7, 46, 27, 0.1));
}
.xp-hero-copy {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  padding: clamp(1.1rem, 0.8rem + 2vw, 2.2rem);
  color: var(--white);
}
.xp-hero-copy h2 { margin: 0.25rem 0 0.35rem; color: var(--white); font-size: var(--step-3); }
.xp-hero-copy .xp-sub { color: rgba(255, 255, 255, 0.86); font-size: var(--step-0); }
.xp-hero-copy .tag { background: rgba(255, 255, 255, 0.16); color: var(--white); backdrop-filter: blur(6px); }

.xp-body { padding: clamp(1.2rem, 0.9rem + 2vw, 2.4rem); }
.xp-lead { font-size: var(--step-1); line-height: 1.6; color: var(--text-muted); }
.xp-lead::first-letter {
  float: left;
  margin: 0.08em 0.1em 0 0;
  font-family: var(--font-display);
  font-size: 3.1em;
  line-height: 0.82;
  font-weight: 600;
  color: var(--green-600);
}

.xp-columns { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); margin-top: var(--space-6); }
@media (min-width: 780px) { .xp-columns { grid-template-columns: 1.15fr 0.85fr; } }

.xp-block + .xp-block { margin-top: var(--space-6); }
.xp-block h3 {
  font-size: var(--step-1);
  margin-bottom: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.xp-block ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.xp-block li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--text-muted); }
.xp-block li svg { width: 16px; height: 16px; flex: none; margin-top: 5px; color: var(--green-500); }
.xp-block .xp-excl li svg { color: var(--text-soft); }
.xp-block p { color: var(--text-muted); }

.xp-aside {
  position: sticky;
  top: var(--space-4);
  align-self: start;
  padding: clamp(1.1rem, 0.9rem + 1vw, 1.6rem);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.xp-aside .price-lead {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  color: var(--brown-700);
  line-height: 1.1;
}
.xp-aside .price-unit { display: block; font-family: var(--font-body); font-size: var(--step--1); color: var(--text-soft); font-weight: 500; }
.xp-aside .price-strip { margin-top: var(--space-4); }
.xp-aside .btn { margin-top: var(--space-4); }
.xp-aside .aside-note { margin-top: var(--space-4); font-size: 0.78rem; color: var(--text-soft); }

.xp-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
  margin-top: var(--space-4);
}
.xp-gallery button {
  position: relative;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--sand-200);
}
.xp-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease); }
.xp-gallery button:hover img { transform: scale(1.06); }
.xp-gallery button::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 0 var(--savanna-orange);
  transition: box-shadow var(--dur-1) var(--ease);
}
.xp-gallery button:hover::after { box-shadow: inset 0 0 0 2px var(--savanna-orange); }

/* --- lightbox --- */
dialog.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 0;
  border: 0;
  background: rgba(7, 20, 13, 0.96);
  color: var(--white);
}
dialog.lightbox::backdrop { background: rgba(7, 20, 13, 0.96); }
.lightbox-stage {
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100%;
  padding: clamp(0.75rem, 2vw, 2rem);
  gap: var(--space-3);
}
.lightbox-frame { position: relative; min-height: 0; }
/* Absolute + contain rather than max-height: a percentage max-height on a
   replaced element inside a `1fr` grid row does not reliably constrain it, and
   the image ends up pushing the caption bar off screen. */
.lightbox-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--r-sm);
  animation: fade-in var(--dur-2) var(--ease);
}
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--step--1);
}
.lightbox-bar .caption { flex: 1; }
.lightbox-nav { display: flex; gap: 0.5rem; flex: none; }
.lightbox-nav button, .lightbox .sheet-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  transition: background-color var(--dur-1) var(--ease);
}
.lightbox-nav button:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-count { font-variant-numeric: tabular-nums; }

/* --- planner --- */
.planner { width: min(100% - 2rem, 44rem); }
.planner-head {
  padding: clamp(1.2rem, 1rem + 1.5vw, 1.9rem) clamp(1.2rem, 1rem + 2vw, 2.2rem) var(--space-4);
  background: var(--safari-green);
  color: var(--white);
}
.planner-head h2 { margin: 0 0 0.2rem; color: var(--white); font-size: var(--step-2); }
.planner-head p { margin: 0; color: rgba(255, 255, 255, 0.8); font-size: var(--step--1); }

.progress {
  display: flex;
  gap: 0.35rem;
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}
.progress li {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.24);
  transition: background-color var(--dur-2) var(--ease);
}
.progress li.is-done { background: var(--savanna-orange); }
.progress li.is-current { background: var(--sandstone); }

.planner-body { padding: clamp(1.2rem, 1rem + 2vw, 2.2rem); }

.step-panel { display: none; animation: step-in var(--dur-3) var(--ease-out); }
.step-panel.is-active { display: block; }
@keyframes step-in { from { opacity: 0; transform: translateX(14px); } }
.step-panel.is-back { animation-name: step-in-back; }
@keyframes step-in-back { from { opacity: 0; transform: translateX(-14px); } }

.step-panel > h3 { font-size: var(--step-2); margin-bottom: 0.3rem; }
.step-panel > .hint { color: var(--text-muted); font-size: var(--step--1); margin-bottom: var(--space-5); }

.field { margin-bottom: var(--space-5); }
.field > label, .fieldset > legend {
  display: block;
  margin-bottom: 0.4rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--brown-700);
}
.field .assist { display: block; margin-top: 0.35rem; font-size: 0.78rem; color: var(--text-soft); }
.field .req { color: var(--orange-700); }

.control {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.control:hover { border-color: var(--green-500); }
.control:focus { outline: none; border-color: var(--safari-green); box-shadow: 0 0 0 3px rgba(46, 122, 84, 0.2); }
select.control {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3 5.5l4 4 4-4' stroke='%234C463E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 14px;
}
textarea.control { min-height: 8rem; resize: vertical; }

.field.has-error .control { border-color: #B3261E; box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.14); }
.field-error {
  display: none;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.4rem;
  color: #8C1D18;
  font-size: 0.8rem;
  font-weight: 500;
}
.field.has-error .field-error { display: flex; }
.field-error svg { width: 14px; height: 14px; flex: none; }

.field-row { display: grid; gap: var(--space-4); }
@media (min-width: 620px) { .field-row.two { grid-template-columns: 1fr 1fr; } }

.choice-grid { display: grid; gap: 0.6rem; }
@media (min-width: 560px) { .choice-grid.two { grid-template-columns: 1fr 1fr; } }
.choice {
  position: relative;
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
}
.choice:hover { border-color: var(--green-500); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .dot {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.choice input:checked ~ .dot { border-color: var(--safari-green); box-shadow: inset 0 0 0 4px var(--safari-green); }
.choice:has(input:checked) { border-color: var(--safari-green); background: var(--green-100); }
.choice:has(input:focus-visible) { outline: 3px solid var(--savanna-orange); outline-offset: 2px; }
.choice .choice-title { display: block; font-weight: 600; color: var(--brown-700); }
.choice .choice-desc { display: block; font-size: 0.8rem; color: var(--text-muted); }

.counter { display: flex; align-items: center; gap: 0.5rem; }
.counter button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--brown-700);
  font-size: 1.2rem;
  line-height: 1;
  transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.counter button:hover:not([disabled]) { background: var(--green-100); border-color: var(--safari-green); }
.counter button[disabled] { opacity: 0.4; cursor: not-allowed; }
.counter input { width: 5rem; text-align: center; font-variant-numeric: tabular-nums; }

.char-count { float: right; font-size: 0.78rem; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.char-count.is-near { color: var(--orange-700); font-weight: 600; }

.review-list { margin: 0 0 var(--space-5); padding: 0; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.review-list > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.1rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 520px) { .review-list > div { grid-template-columns: 9rem 1fr; gap: 1rem; align-items: baseline; } }
.review-list > div:last-child { border-bottom: 0; }
.review-list dt { font-size: 0.76rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-soft); }
.review-list dd { margin: 0; font-weight: 500; white-space: pre-wrap; }

.planner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}
.planner-actions .grow { flex: 1; }

.honeypot {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: var(--space-4);
  padding: 0.9rem 1rem;
  border-radius: var(--r-sm);
  font-size: var(--step--1);
}
.form-status.is-visible { display: flex; }
.form-status.is-error { background: #FCEEEC; color: #8C1D18; }
.form-status svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

.planner-done { text-align: center; padding: var(--space-5) 0; }
.planner-done .check {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto var(--space-5);
  border-radius: 50%;
  background: var(--green-100);
  color: var(--safari-green);
}
.planner-done .check svg { width: 36px; height: 36px; }
.planner-done .check path { stroke-dasharray: 32; stroke-dashoffset: 32; animation: draw 520ms var(--ease-out) 120ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.planner-done h3 { font-size: var(--step-2); }
.planner-done p { color: var(--text-muted); max-width: 30rem; margin-inline: auto; }
.planner-done .done-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-top: var(--space-6); }

.btn-whatsapp { --btn-bg: var(--whatsapp); --btn-fg: var(--white); }
.btn-whatsapp:hover { --btn-bg: #10632F; }


/* ==== 19  FLOATING ACTIONS ============================================= */

.back-to-top {
  position: fixed;
  right: var(--gutter);
  bottom: calc(var(--gutter) + env(safe-area-inset-bottom));
  z-index: var(--z-float);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--green-600);
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease),
              visibility var(--dur-2) step-end, background-color var(--dur-1) var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-timing-function: var(--ease), var(--ease), step-start, var(--ease); }
.back-to-top:hover { background: var(--green-100); }

.action-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: var(--z-float);
  display: none;
  gap: 1px;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--border);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px -12px rgba(53, 32, 15, 0.4);
  transform: translateY(110%);
  transition: transform var(--dur-3) var(--ease-out);
}
.action-bar.is-visible { transform: none; }
.action-bar a {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 0.6rem 0.3rem 0.7rem;
  background: var(--sand-50);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.action-bar a svg { width: 21px; height: 21px; }
.action-bar a.primary { background: var(--safari-green); color: var(--white); }
.action-bar a.whatsapp { color: var(--whatsapp); }

@media (max-width: 800px) {
  .action-bar { display: flex; }
  .back-to-top { bottom: calc(72px + var(--gutter) + env(safe-area-inset-bottom)); }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}


/* ==== 20  MOTION SYSTEM ================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: 70ms; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 140ms; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 210ms; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 280ms; }

/* One global guard. Nothing in this file animates outside it. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .tour-card:hover { transform: none; }
}


/* ==== 21  UTILITIES =================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.fine { font-size: var(--step--1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.stack-sm > * + * { margin-top: var(--space-3); }
.mt-6 { margin-top: var(--space-6); }
.muted { color: var(--text-muted); }
.nowrap { white-space: nowrap; }

/* Simple document pages (privacy, terms, 404) */
.doc {
  max-width: 46rem;
  margin-inline: auto;
  padding-top: calc(var(--header-h) + var(--space-7));
}
.doc h2 { font-size: var(--step-2); margin-top: var(--space-7); }
.doc h3 { font-size: var(--step-1); margin-top: var(--space-6); }
.doc ul { padding-left: 1.2rem; color: var(--text-muted); }
.doc li { margin-bottom: 0.4rem; }
.doc p { color: var(--text-muted); }
.doc .notice {
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--savanna-orange);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--orange-100);
  color: var(--brown-700);
}


/* ==== 22  PRINT ======================================================= */

@media print {
  .site-header, .action-bar, .back-to-top, .scroll-cue, .filter-bar, dialog { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: auto; color: #000; }
  .hero-media, .hero::before { display: none; }
  .tour-card { break-inside: avoid; box-shadow: none; }
  .experience-detail { display: block !important; }
}
