/* ==========================================================================
   AgafayBuggyTours.com — main.css
   Single stylesheet for all templates. No build step, no preprocessor.
   Cascade layers control specificity without !important.
   crit-v1  (critical subset is inlined in each <head>; keep in sync)
   ========================================================================== */
@layer reset, tokens, base, layout, components, utilities, overrides;

/* ==========================================================================
   @layer reset
   ========================================================================== */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { min-height: 100svh; line-height: 1.5; -webkit-font-smoothing: antialiased; }
  img, picture, svg, video, canvas { display: block; max-width: 100%; height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { background: none; border: 0; cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  :where(h1, h2, h3, h4) { text-wrap: balance; }
  p, li { text-wrap: pretty; }
  :target { scroll-margin-top: calc(var(--header-h) + 1rem); }

  :focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 2px;
  }
  /* Remove focus ring for mouse users, keep for keyboard */
  :focus:not(:focus-visible) { outline: none; }

  /* Dark surfaces: gold ring clears 3:1 against navy where a navy ring would vanish. */
  .site-header, .site-footer, .section--inverse, .hero, .cta-band, .mobile-nav, .lightbox {
    --focus-ring: var(--c-gold);
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important;
      scroll-behavior: auto !important;
    }
  }
  html { scroll-behavior: smooth; }
}

/* ==========================================================================
   @layer tokens  — design system variables
   ========================================================================== */
@layer tokens {
  :root {
    /* Brand palette (as supplied) */
    --c-navy: #0D1B2A;
    --c-navy-800: #13273b;
    --c-navy-700: #24405c;
    --c-terracotta: #B84A20;
    --c-terracotta-600: #a2401b;
    --c-terracotta-700: #8a3616;
    --c-sand: #E8D5B0;
    --c-sand-200: #f0e2c8;
    --c-offwhite: #FAF6F0;
    --c-gold: #C8902A;
    --c-gold-600: #ac7a20;
    --c-whatsapp: #25D366;
    --c-whatsapp-700: #1da851;

    /* Neutrals derived for text/borders */
    --c-ink: #17212b;
    --c-body: #33414f;
    --c-muted: #5d6b78;
    --c-line: #e2dccf;
    --c-line-strong: #cdc4b0;
    --c-white: #ffffff;

    /* Semantic roles */
    --bg-page: var(--c-offwhite);
    --bg-surface: var(--c-white);
    --bg-inverse: var(--c-navy);
    --text-strong: var(--c-ink);
    --text-body: var(--c-body);
    --text-muted: var(--c-muted);
    --text-on-dark: #f4efe6;
    --text-on-dark-muted: #b9c2cc;
    /* Navy ring clears 3:1 on the light page bg; dark surfaces override to gold below. */
    --focus-ring: var(--c-navy);

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

    --fs-h1: clamp(2rem, 1.35rem + 3.1vw, 3.5rem);
    --fs-h2: clamp(1.5rem, 1.18rem + 1.55vw, 2.25rem);
    --fs-h3: clamp(1.2rem, 1.07rem + 0.6vw, 1.45rem);
    --fs-h4: clamp(1.05rem, 1rem + 0.25vw, 1.15rem);
    --fs-body: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
    --fs-sm: 0.875rem;
    --fs-xs: 0.78rem;
    --fs-lead: clamp(1.075rem, 1.02rem + 0.35vw, 1.25rem);

    --lh-tight: 1.15;
    --lh-snug: 1.3;
    --lh-body: 1.65;
    --tracking-caps: 0.08em;

    /* Spacing — 4px base */
    --s-1: 0.25rem; --s-2: 0.5rem;  --s-3: 0.75rem; --s-4: 1rem;
    --s-5: 1.25rem; --s-6: 1.5rem;  --s-8: 2rem;    --s-10: 2.5rem;
    --s-12: 3rem;   --s-16: 4rem;   --s-20: 5rem;   --s-24: 6rem;

    /* Structure */
    --wrap: 1200px;
    --wrap-wide: 1400px;
    --wrap-narrow: 68ch;
    --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);

    --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-pill: 999px;

    --shadow-1: 0 1px 2px rgb(13 27 42 / 0.06), 0 2px 8px rgb(13 27 42 / 0.06);
    --shadow-2: 0 10px 30px rgb(13 27 42 / 0.12);
    --shadow-focus: 0 0 0 3px rgb(200 144 42 / 0.35);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --dur: 180ms;

    --header-h: 68px;
    --mobilebar-h: 64px;

    --scrim: linear-gradient(to top, rgb(13 27 42 / 0.88) 0%, rgb(13 27 42 / 0.55) 40%, rgb(13 27 42 / 0.15) 100%);
  }
}

/* ==========================================================================
   @layer base  — element defaults
   ========================================================================== */
@layer base {
  body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--text-body);
    background: var(--bg-page);
    overflow-x: hidden;
  }

  h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--text-strong);
    line-height: var(--lh-tight);
    font-weight: 600;
  }
  h1 { font-size: var(--fs-h1); }
  h2 { font-size: var(--fs-h2); line-height: var(--lh-snug); }
  h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
  h4 { font-size: var(--fs-h4); }

  p { margin-block: 0 var(--s-4); }
  a { color: var(--c-terracotta-700); text-underline-offset: 0.15em; }
  a:hover { color: var(--c-terracotta); text-decoration: underline; }

  strong { color: var(--text-strong); font-weight: 650; }

  ::selection { background: var(--c-gold); color: var(--c-navy); }

  hr { border: 0; border-top: 1px solid var(--c-line); margin-block: var(--s-8); }

  /* Prose links inside body content get the underline for scannability */
  .prose a { color: var(--c-terracotta-700); text-decoration: underline; }
  .prose a:hover { color: var(--c-terracotta); }
}

/* ==========================================================================
   @layer layout
   ========================================================================== */
@layer layout {
  .wrap { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }
  .wrap--wide { width: min(100% - (var(--gutter) * 2), var(--wrap-wide)); }
  .wrap--narrow { width: min(100% - (var(--gutter) * 2), var(--wrap-narrow)); }

  .section { padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem); }
  .section--tight { padding-block: clamp(1.75rem, 1rem + 3vw, 3rem); }
  .section--inverse { background: var(--bg-inverse); color: var(--text-on-dark); }
  .section--sand { background: var(--c-sand-200); }
  .section--surface { background: var(--bg-surface); }

  .section--inverse :where(h1,h2,h3,h4) { color: var(--text-on-dark); }
  .section--inverse p { color: var(--text-on-dark-muted); }

  .stack > * + * { margin-block-start: var(--flow, var(--s-4)); }
  .stack--lg { --flow: var(--s-6); }

  .grid { display: grid; gap: var(--grid-gap, var(--s-6)); }
  .grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
  .grid--auto-sm { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

  .split { display: grid; gap: var(--s-8); }
  @media (min-width: 1024px) {
    .split { grid-template-columns: 1fr 1fr; align-items: center; }
    .split--aside { grid-template-columns: 1fr minmax(300px, 360px); align-items: start; }
  }

  .section-head { max-width: 60ch; margin-bottom: var(--s-8); }
  .section-head.center { margin-inline: auto; text-align: center; }
}

/* ==========================================================================
   @layer components
   ========================================================================== */
@layer components {

  /* --- Skip link ---------------------------------------------------------- */
  .skip-link {
    position: absolute; left: var(--s-3); top: var(--s-3);
    z-index: 200; transform: translateY(-150%);
    background: var(--c-navy); color: var(--text-on-dark);
    padding: var(--s-2) var(--s-4); border-radius: var(--r-sm);
    transition: transform var(--dur) var(--ease);
  }
  .skip-link:focus { transform: translateY(0); }

  /* --- Eyebrow / kicker --------------------------------------------------- */
  .eyebrow {
    display: inline-block;
    font-family: var(--font-body); font-weight: 700;
    font-size: var(--fs-xs); letter-spacing: var(--tracking-caps);
    text-transform: uppercase; color: var(--c-terracotta);
    margin-bottom: var(--s-3);
  }
  .section--inverse .eyebrow { color: var(--c-gold); }

  /* --- Buttons ------------------------------------------------------------ */
  .btn {
    --btn-bg: var(--c-terracotta);
    --btn-fg: #fff;
    --btn-bg-hover: var(--c-terracotta-600);
    display: inline-flex; align-items: center; justify-content: center;
    gap: var(--s-2);
    min-height: 48px; padding: 0.72rem 1.4rem;
    font-family: var(--font-body); font-weight: 650; font-size: var(--fs-body);
    line-height: 1; text-align: center;
    background: var(--btn-bg); color: var(--btn-fg);
    border-radius: var(--r-md);
    transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
    text-decoration: none;
  }
  .btn:hover { background: var(--btn-bg-hover); color: var(--btn-fg); text-decoration: none; }
  .btn:active { transform: translateY(1px); }
  .btn .btn__icon { width: 1.2em; height: 1.2em; flex: none; }

  .btn--secondary {
    --btn-bg: transparent; --btn-fg: var(--c-navy); --btn-bg-hover: transparent;
    border: 2px solid var(--c-navy); padding-block: calc(0.72rem - 2px);
  }
  .btn--secondary:hover { background: var(--c-navy); color: #fff; }
  .section--inverse .btn--secondary { --btn-fg: #fff; border-color: rgb(255 255 255 / 0.7); }
  .section--inverse .btn--secondary:hover { background: #fff; color: var(--c-navy); }

  /* Dark-green label keeps ~9:1 on the base green and ~6:1 on the hover green — never switch to white here. */
  .btn--whatsapp { --btn-bg: var(--c-whatsapp); --btn-fg: #05310f; --btn-bg-hover: var(--c-whatsapp-700); }

  .btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-terracotta-700); min-height: auto; padding: 0.4rem 0.2rem; }
  .btn--ghost:hover { background: transparent; text-decoration: underline; }

  .btn--lg { min-height: 54px; padding: 0.95rem 1.8rem; font-size: 1.075rem; }
  .btn--sm { min-height: 40px; padding: 0.5rem 0.9rem; font-size: var(--fs-sm); }
  .btn--block { display: flex; width: 100%; }

  /* --- Badges / chips ----------------------------------------------------- */
  .badge {
    display: inline-flex; align-items: center; gap: var(--s-1);
    font-size: var(--fs-xs); font-weight: 650; line-height: 1;
    padding: 0.35rem 0.6rem; border-radius: var(--r-pill);
    background: var(--c-sand-200); color: var(--c-navy);
    border: 1px solid var(--c-line-strong);
  }
  .badge--gold { background: rgb(200 144 42 / 0.16); border-color: rgb(200 144 42 / 0.4); color: var(--c-gold-600); }
  .badge--sunset { background: rgb(184 74 32 / 0.12); border-color: rgb(184 74 32 / 0.3); color: var(--c-terracotta-700); }

  /* --- Trust strip -------------------------------------------------------- */
  .trust-strip { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); align-items: center; }
  .trust-item { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); font-weight: 600; color: var(--text-body); }
  .trust-item .trust-item__icon { width: 1.35rem; height: 1.35rem; color: var(--c-gold-600); flex: none; }
  .section--inverse .trust-item { color: var(--text-on-dark); }
  .section--inverse .trust-item .trust-item__icon { color: var(--c-gold); }

  /* --- Header ------------------------------------------------------------- */
  .site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--c-navy); color: var(--text-on-dark);
    height: var(--header-h);
  }
  .site-header__inner { display: flex; align-items: center; gap: var(--s-4); height: 100%; }
  .brand { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: #fff; }
  .brand:hover { color: #fff; text-decoration: none; }
  .brand__mark { width: 30px; height: 30px; flex: none; color: var(--c-gold); }
  .brand__accent { color: var(--c-gold); font-weight: 600; }

  .nav-primary { margin-inline-start: auto; }
  .nav-primary__list { display: flex; align-items: center; gap: var(--s-1); list-style: none; margin: 0; padding: 0; }
  .nav-primary__link {
    display: inline-flex; align-items: center; gap: var(--s-1);
    padding: 0.55rem 0.7rem; border-radius: var(--r-sm);
    color: var(--text-on-dark); font-weight: 550; font-size: 0.95rem;
  }
  .nav-primary__link:hover, .nav-primary__link[aria-current="page"] { color: #fff; text-decoration: none; background: rgb(255 255 255 / 0.08); }
  .nav-primary__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--c-gold); }

  /* Dropdown */
  .has-dropdown { position: relative; }
  .nav-dropdown {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px;
    background: #fff; color: var(--text-body);
    border: 1px solid var(--c-line); border-radius: var(--r-md);
    box-shadow: var(--shadow-2); padding: var(--s-2);
    list-style: none; margin: 0;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  }
  .has-dropdown:hover .nav-dropdown,
  .has-dropdown:focus-within .nav-dropdown,
  .nav-dropdown[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-dropdown__link { display: block; padding: 0.55rem 0.7rem; border-radius: var(--r-sm); color: var(--text-body); font-size: 0.95rem; }
  .nav-dropdown__link:hover { background: var(--c-sand-200); color: var(--c-navy); text-decoration: none; }

  .header-actions { display: flex; align-items: center; gap: var(--s-2); margin-inline-start: var(--s-2); }

  /* Nav toggle (mobile) */
  .nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: #fff; border-radius: var(--r-sm); }
  .nav-toggle:hover { background: rgb(255 255 255 / 0.1); }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    content: ""; display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  }
  .nav-toggle__bar { position: relative; }
  .nav-toggle__bar::before { position: absolute; top: -7px; }
  .nav-toggle__bar::after { position: absolute; top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

  /* --- Language switcher -------------------------------------------------- */
  .lang-switcher { position: relative; }
  .lang-switcher__btn { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--text-on-dark); padding: 0.5rem 0.6rem; border-radius: var(--r-sm); font-weight: 600; font-size: 0.9rem; border: 1px solid rgb(255 255 255 / 0.25); }
  .lang-switcher__btn:hover { background: rgb(255 255 255 / 0.1); }
  .lang-switcher__list { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); box-shadow: var(--shadow-2); padding: var(--s-2); list-style: none; margin: 0; min-width: 150px; }
  .lang-switcher__list[hidden] { display: none; }
  .lang-switcher__link { display: block; padding: 0.5rem 0.6rem; border-radius: var(--r-sm); color: var(--text-body); }
  .lang-switcher__link:hover { background: var(--c-sand-200); text-decoration: none; }
  .lang-switcher__link[aria-current="true"] { font-weight: 700; color: var(--c-navy); }

  /* --- Mobile nav drawer -------------------------------------------------- */
  .mobile-nav { position: fixed; inset: 0; z-index: 150; visibility: hidden; }
  .mobile-nav[data-open="true"] { visibility: visible; }
  .mobile-nav__backdrop { position: absolute; inset: 0; background: rgb(13 27 42 / 0.5); opacity: 0; transition: opacity var(--dur) var(--ease); }
  .mobile-nav[data-open="true"] .mobile-nav__backdrop { opacity: 1; }
  .mobile-nav__panel {
    position: absolute; inset-block: 0; inset-inline-end: 0; width: min(88vw, 360px);
    background: var(--c-navy); color: var(--text-on-dark);
    padding: var(--s-4); overflow-y: auto;
    transform: translateX(100%); transition: transform var(--dur) var(--ease);
    display: flex; flex-direction: column; gap: var(--s-2);
  }
  .mobile-nav[data-open="true"] .mobile-nav__panel { transform: translateX(0); }
  .mobile-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-2); }
  .mobile-nav__head .brand { font-size: 1rem; }
  .mobile-nav__close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: #fff; border-radius: var(--r-sm); font-size: 1.5rem; }
  .mobile-nav__close:hover { background: rgb(255 255 255 / 0.1); }
  .mobile-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
  .mobile-nav__link { display: block; padding: 0.85rem 0.5rem; color: var(--text-on-dark); font-size: 1.05rem; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
  .mobile-nav__link:hover { color: #fff; text-decoration: none; }
  .mobile-nav__group-title { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--c-gold); margin-top: var(--s-4); padding: 0 0.5rem; }
  .mobile-nav__cta { margin-top: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); }

  @media (max-width: 900px) {
    .nav-primary { display: none; }
    .header-actions .lang-switcher { display: none; }
    .header-actions .btn--header-book { display: none; }
    .nav-toggle { display: inline-flex; margin-inline-start: auto; }
  }

  /* --- Hero --------------------------------------------------------------- */
  .hero { position: relative; background: var(--c-navy); color: var(--text-on-dark); overflow: clip; }
  .hero__inner { display: grid; gap: var(--s-6); padding-block: clamp(2.5rem, 1.5rem + 6vw, 5.5rem); position: relative; z-index: 2; }
  .hero__eyebrow { color: var(--c-gold); }
  .hero h1 { color: #fff; }
  .hero__lead { font-size: var(--fs-lead); color: var(--text-on-dark-muted); max-width: 52ch; }
  .hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
  .hero__media { position: absolute; inset: 0; z-index: 0; }
  .hero__media img { width: 100%; height: 100%; object-fit: cover; }
  .hero__media::after { content: ""; position: absolute; inset: 0; background: var(--scrim); }

  /* Asymmetric homepage hero on wide screens */
  @media (min-width: 1024px) {
    .hero--split .hero__inner { grid-template-columns: minmax(0, 560px); }
    .hero--split .hero__media { inset-inline-start: 42%; }
    .hero--split .hero__media::after { background: linear-gradient(to right, var(--c-navy) 0%, rgb(13 27 42 / 0.7) 30%, rgb(13 27 42 / 0.15) 100%); }
  }
  .hero--compact .hero__inner { padding-block: clamp(2rem, 1.2rem + 4vw, 3.5rem); }
  .hero__pills { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
  .hero__pill { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 44px; padding: 0.5rem 0.9rem; border-radius: var(--r-pill); background: rgb(255 255 255 / 0.1); border: 1px solid rgb(255 255 255 / 0.2); color: #fff; font-size: var(--fs-sm); font-weight: 600; }
  .hero__pill:hover { background: rgb(255 255 255 / 0.2); color: #fff; text-decoration: none; }

  /* --- Breadcrumbs -------------------------------------------------------- */
  .breadcrumbs { padding-block: var(--s-3); font-size: var(--fs-sm); }
  .breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1); list-style: none; margin: 0; padding: 0; color: var(--text-muted); }
  .breadcrumbs__item { display: inline-flex; align-items: center; gap: var(--s-1); }
  .breadcrumbs__item + .breadcrumbs__item::before { content: "/"; color: var(--c-line-strong); margin-inline: var(--s-1); }
  .breadcrumbs__link { color: var(--text-muted); }
  .breadcrumbs__link:hover { color: var(--c-terracotta); }
  .breadcrumbs__item[aria-current="page"] { color: var(--text-strong); font-weight: 600; }
  .section--inverse .breadcrumbs__list, .hero .breadcrumbs__list { color: var(--text-on-dark-muted); }
  .hero .breadcrumbs__link { color: var(--text-on-dark-muted); }
  .hero .breadcrumbs__item[aria-current="page"] { color: #fff; }

  /* --- Cards (base) ------------------------------------------------------- */
  .card {
    background: var(--bg-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-1);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  }
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
  .card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
  .card__title { font-size: var(--fs-h3); }
  .card__title a { color: var(--text-strong); }
  .card__title a:hover { color: var(--c-terracotta); text-decoration: none; }
  .card__text { color: var(--text-body); font-size: var(--fs-sm); margin: 0; }
  .card__footer { margin-top: auto; display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }

  /* --- Image container (aspect-locked, no CLS) ---------------------------- */
  .media { position: relative; display: block; background: var(--c-sand-200); overflow: hidden; }
  .media > img { width: 100%; height: 100%; object-fit: cover; }
  .media--16x9 { aspect-ratio: 16 / 9; }
  .media--4x3 { aspect-ratio: 4 / 3; }
  .media--3x2 { aspect-ratio: 3 / 2; }
  .media--square { aspect-ratio: 1 / 1; }
  .media__badge { position: absolute; top: var(--s-3); left: var(--s-3); }

  /* --- Service (tour) card ------------------------------------------------ */
  /* Title link colour/hover inherit from .card__title a (no duplication). */
  .tour-card { border-left: 3px solid var(--c-gold); border-bottom-left-radius: 0; }
  .tour-card__tags { display: flex; flex-wrap: wrap; gap: var(--s-1); }
  .tour-card__price { font-size: var(--fs-sm); color: var(--text-muted); font-weight: 600; }

  /* --- Blog card ---------------------------------------------------------- */
  .blog-card .card__meta { font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
  .blog-card .card__title { font-size: var(--fs-h4); }

  /* --- CTA band ----------------------------------------------------------- */
  .cta-band { position: relative; background: var(--c-navy); color: var(--text-on-dark); overflow: clip; }
  .cta-band__inner { display: grid; gap: var(--s-5); text-align: center; place-items: center; padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); position: relative; z-index: 2; }
  .cta-band h2 { color: #fff; max-width: 22ch; }
  .cta-band__lead { color: var(--text-on-dark-muted); max-width: 52ch; }
  .cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }
  .cta-band__contour { position: absolute; inset: 0; z-index: 0; opacity: 0.12; color: var(--c-gold); pointer-events: none; }

  /* --- Booking panel (sticky aside on tour pages) ------------------------- */
  .booking-panel { background: var(--bg-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--shadow-1); }
  .booking-panel__price { font-size: var(--fs-sm); color: var(--text-muted); }
  .booking-panel__actions { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-4); }
  .booking-panel__note { font-size: var(--fs-xs); color: var(--text-muted); margin-top: var(--s-3); }
  @media (min-width: 1024px) {
    .booking-panel--sticky { position: sticky; top: calc(var(--header-h) + var(--s-4)); }
  }

  /* --- FAQ / accordion (details-based) ------------------------------------ */
  .faq { display: flex; flex-direction: column; gap: var(--s-2); }
  .faq__item { border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--bg-surface); overflow: hidden; }
  .faq__q { list-style: none; cursor: pointer; padding: var(--s-4) var(--s-5); font-weight: 650; color: var(--text-strong); display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
  .faq__q::-webkit-details-marker { display: none; }
  .faq__q:hover { background: var(--c-sand-200); }
  .faq__icon { flex: none; width: 1.1rem; height: 1.1rem; transition: transform var(--dur) var(--ease); color: var(--c-terracotta); }
  .faq__item[open] .faq__icon { transform: rotate(45deg); }
  .faq__a { padding: 0 var(--s-5) var(--s-4); color: var(--text-body); }
  .faq__a > *:last-child { margin-bottom: 0; }

  /* --- Testimonial component (structure only, NO fake content) ------------ */
  /* Renders nothing unless populated with real, sourced entries.
     .testimonials[data-populated="false"] stays empty on the page. */
  .testimonials[data-populated="false"] { display: none; }
  .testimonial { background: var(--bg-surface); border: 1px solid var(--c-line); border-left: 3px solid var(--c-gold); border-radius: var(--r-md); padding: var(--s-5); }
  .testimonial__quote { font-size: var(--fs-lead); color: var(--text-strong); font-family: var(--font-display); }
  .testimonial__cite { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-4); font-style: normal; font-size: var(--fs-sm); color: var(--text-muted); }
  .testimonial__cite strong { color: var(--text-strong); }
  /* Honest placeholder shown to the site owner/editor only, never implies real reviews */
  .reviews-pending { border: 1px dashed var(--c-line-strong); border-radius: var(--r-md); padding: var(--s-5); color: var(--text-muted); font-size: var(--fs-sm); background: var(--c-offwhite); }

  /* --- Forms -------------------------------------------------------------- */
  .field { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-4); }
  .field__label { font-weight: 600; color: var(--text-strong); font-size: var(--fs-sm); }
  .field__label .req { color: var(--c-terracotta); }
  .field__hint { font-size: var(--fs-xs); color: var(--text-muted); }
  .input, .select, .textarea {
    width: 100%; min-height: 48px; padding: 0.7rem 0.85rem;
    background: #fff; color: var(--text-strong);
    border: 1px solid var(--c-line-strong); border-radius: var(--r-sm);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  }
  .textarea { min-height: 120px; resize: vertical; }
  .input:focus, .select:focus, .textarea:focus { border-color: var(--c-gold); box-shadow: var(--shadow-focus); outline: none; }
  .input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--c-terracotta); }
  .field__error { font-size: var(--fs-xs); color: var(--c-terracotta-700); font-weight: 600; }
  .form-summary { padding: var(--s-4); border-radius: var(--r-md); border: 1px solid var(--c-terracotta); background: rgb(184 74 32 / 0.06); color: var(--c-terracotta-700); }
  .form-summary[hidden] { display: none; }

  /* --- Responsive table --------------------------------------------------- */
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--c-line); border-radius: var(--r-md); }
  table.data { width: 100%; border-collapse: collapse; min-width: 420px; font-size: var(--fs-sm); }
  table.data caption { text-align: left; padding: var(--s-3) var(--s-4); font-weight: 650; color: var(--text-strong); }
  table.data th, table.data td { padding: var(--s-3) var(--s-4); text-align: left; border-bottom: 1px solid var(--c-line); }
  table.data thead th { background: var(--c-sand-200); color: var(--c-navy); font-weight: 700; }
  table.data tbody tr:last-child td { border-bottom: 0; }

  /* --- Footer ------------------------------------------------------------- */
  .site-footer { background: var(--c-navy); color: var(--text-on-dark-muted); position: relative; }
  .site-footer__grid { display: grid; gap: var(--s-8); padding-block: var(--s-16) var(--s-8); grid-template-columns: 1fr; }
  @media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
  .site-footer .brand { color: #fff; }
  .footer-brand__mark { width: 34px; height: 34px; color: var(--c-gold); }
  .footer-brand__text { margin-top: var(--s-4); max-width: 34ch; }
  .footer-col__title { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: var(--tracking-caps); margin-bottom: var(--s-4); }
  .footer-col__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
  .footer-col__link { color: var(--text-on-dark-muted); font-size: 0.95rem; }
  .footer-col__link:hover { color: #fff; }
  .site-footer__utility { border-top: 1px solid rgb(255 255 255 / 0.12); padding-block: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); align-items: center; justify-content: space-between; font-size: var(--fs-sm); }
  .site-footer__utility p { margin: 0; }
  .site-footer__utility a { color: var(--text-on-dark-muted); }
  .site-footer__utility a:hover { color: #fff; }

  /* --- Mobile sticky action bar ------------------------------------------ */
  .mobile-action-bar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 90;
    display: none; gap: var(--s-2);
    padding: var(--s-2) var(--s-3);
    padding-bottom: calc(var(--s-2) + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / 0.96); backdrop-filter: blur(6px);
    border-top: 1px solid var(--c-line);
  }
  .mobile-action-bar .btn { flex: 1; }
  @media (max-width: 1023px) {
    .mobile-action-bar { display: flex; }
    body { padding-bottom: calc(var(--mobilebar-h) + env(safe-area-inset-bottom)); }
  }

  /* --- Numbered steps ----------------------------------------------------- */
  .steps { display: grid; gap: var(--s-6); counter-reset: step; }
  .step { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: start; }
  .step__num { counter-increment: step; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--c-gold); font-weight: 600; }
  .step__num::before { content: counter(step, decimal-leading-zero); }
  .step__title { font-size: var(--fs-h4); margin-bottom: var(--s-1); }

  /* --- Lightbox (dialog) -------------------------------------------------- */
  .lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
  .lightbox::backdrop { background: rgb(13 27 42 / 0.85); }
  .lightbox img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; border-radius: var(--r-md); }
  .lightbox__close { position: absolute; top: -2.6rem; right: 0; color: #fff; font-size: 1.6rem; width: 44px; height: 44px; }
}

/* ==========================================================================
   @layer utilities
   ========================================================================== */
@layer utilities {
  .visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .text-center { text-align: center; }
  .text-muted { color: var(--text-muted); }
  .lead { font-size: var(--fs-lead); color: var(--text-body); }
  .flow-lg > * + * { margin-block-start: var(--s-6); }
  .mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
  .mt-6 { margin-top: var(--s-6); } .mt-8 { margin-top: var(--s-8); }
  .no-js-only { display: none; }
  .js-off .no-js-only { display: block; }
  .js-off [data-js-only] { display: none; }
  [hidden] { display: none !important; }
  .content-auto { content-visibility: auto; contain-intrinsic-size: auto 500px; }
}
