/* =========================================================
   Triploop — responsive stylesheet
   Mobile-first at 390px → tablet 768px → laptop 1024 / 1440px
   ========================================================= */

:root {
  --brand: #004AAD;
  --brand-dark: #003a8a;
  --brand-deep: #002a66;
  --brand-soft: #eaf1fb;
  --cream: #FFFBF2;
  --ink: #1F2937;          /* headings: soft dark, not pure black */
  --text: #4B5563;         /* body text */
  --muted: #4B5563;
  --muted-2: #6B7280;      /* small notes */
  /* Fluid type scale (phone first; values in comments are at 390px) */
  --fs-hero: clamp(1.875rem, 1.25rem + 2.6vw, 3.25rem);   /* ~30px → 52px */
  --fs-h1: clamp(1.5rem, 1.25rem + 1vw, 2rem);            /* ~24px → 32px */
  --fs-h2: clamp(1.375rem, 1.2rem + .6vw, 1.75rem);       /* ~22px → 28px */
  --fs-h3: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);     /* ~17px → 19px */
  --fs-body: clamp(.9375rem, .9rem + .15vw, 1rem);        /* ~15px → 16px */
  --fs-small: .8125rem;                                    /* 13px */
  --fs-btn: .9375rem;                                      /* 15px */
  --line: #e7eaf1;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --danger: #c23a3a;
  --ok: #1b8a4b;
  --radius: 1rem;
  --radius-sm: .625rem;
  --shadow: 0 2px 6px rgba(20, 24, 43, .05), 0 8px 24px rgba(20, 24, 43, .07);
  --shadow-sm: 0 1px 3px rgba(20, 24, 43, .08);
  --tap: 3rem;               /* 48px tap targets */
  --header-h: 3.75rem;       /* 60px */
  --safe-b: env(safe-area-inset-bottom, 0px);
  --container: 75rem;        /* 1200px */
  --gutter: 1.25rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; font-weight: 600; color: var(--ink); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
b, strong { font-weight: 600; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 2.5rem 0; }
.section--alt { background: var(--bg-alt); }
.section--lift {
  position: relative; z-index: 4;
  margin-top: -40px;
  background: var(--bg);
  border-radius: 1.5rem 1.5rem 0 0;
}
.section-title { margin-bottom: 1.25rem; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid rgba(0, 74, 173, .45); outline-offset: 2px; }

/* ---------- Header ----------
   One structure on every page:
   .site-header > .header-bg (solid blue layer, with shadow + progress line) + .header-bar (logo, menu)
   States set by JS: .is-solid (after 40px: solid, shorter bar, smaller logo),
   .is-hidden (scrolling down: slides up), .menu-open (phone menu open).
   Only transform, opacity and background-color are animated. */
.site-header {
  position: sticky; top: 0; z-index: 60;
  transition: transform .3s ease;
}
.site-header.is-hidden { transform: translateY(-110%); }

.header-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--brand);
  transform-origin: top center;
  transition: opacity .3s ease, transform .3s ease, background-color .3s ease;
}
/* soft shadow under the bar, only once it is "solid" (scrolled) */
.header-bg::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px;
  background: linear-gradient(180deg, rgba(0, 30, 80, .2), rgba(0, 30, 80, 0));
  opacity: 0; transition: opacity .3s ease;
}
/* thin cream reading-progress line along the bottom edge */
.header-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; overflow: hidden; }
.header-progress span {
  display: block; height: 100%; background: var(--cream);
  transform: scaleX(0); transform-origin: left center;
}

.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  transition: transform .3s ease;
}
.logo-img { transition: transform .3s ease; transform-origin: left center; }

/* Solid (scrolled) state: bar about 15% shorter, logo about 15% smaller, light blur + shadow */
.hdr-ready .site-header.is-solid .header-bg {
  transform: scaleY(.85);
  background-color: rgba(0, 74, 173, .94);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
}
.hdr-ready .site-header.is-solid .header-bg::after { opacity: 1; }
.hdr-ready .site-header.is-solid .header-bar { transform: translateY(calc(var(--header-h) * -.075)); }
.hdr-ready .site-header.is-solid .logo-img { transform: scale(.85); }
/* With the phone menu open the bar is always full size and solid */
.site-header.menu-open .header-bg { opacity: 1 !important; transform: none !important; background-color: var(--brand) !important; }
.site-header.menu-open .header-bar,
.site-header.menu-open .logo-img { transform: none !important; }

/* Home page: header floats over the hero, transparent at the top with a soft dark gradient.
   Without JS (no .hdr-ready) it simply stays solid blue. */
.site-header--overlay { position: fixed; left: 0; right: 0; top: 0; }
.site-header--overlay::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: -2; pointer-events: none;
  height: calc(100% + 2.5rem);
  background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .16) 55%, rgba(0, 0, 0, 0) 100%);
  transition: opacity .3s ease;
}
.hdr-ready .site-header--overlay:not(.is-solid):not(.menu-open) .header-bg { opacity: 0; }
.site-header--overlay.is-solid::before,
.site-header--overlay.menu-open::before { opacity: 0; }
.site-header--overlay .logo-img { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .18)); }

.site-header :focus-visible { outline-color: rgba(255, 251, 242, .75); }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo:hover { text-decoration: none; }
.logo-img { display: block; height: 36px; width: auto; }

/* Menu icon: three lines that morph into an X */
.menu-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; margin-right: -10px;
  background: transparent; border: 0; border-radius: 10px; cursor: pointer;
  color: var(--cream); -webkit-tap-highlight-color: transparent;
}
.burger { position: relative; width: 22px; height: 16px; }
.burger span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s ease, opacity .2s ease;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 7px; }
.burger span:nth-child(3) { top: 14px; }
.menu-btn[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.menu-btn[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Phone: slide-down menu on solid blue */
.nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--brand);
  border-top: 1px solid rgba(255, 251, 242, .15);
  box-shadow: 0 12px 24px rgba(0, 20, 60, .25);
  opacity: 0; transform: translateY(-8px); visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .25s ease, transform .25s ease; }
.nav ul { list-style: none; margin: 0; padding: .5rem var(--gutter) 1rem; }
.nav a {
  position: relative; display: flex; align-items: center; min-height: 3rem; padding: 0 .25rem;
  color: var(--cream); font-weight: 500; font-size: 1rem;
  border-bottom: 1px solid rgba(255, 251, 242, .1);
}
.nav li:last-child a { border-bottom: 0; }
.nav a:hover { text-decoration: none; }
/* underline that grows on hover and stays on the current page */
.nav a::after {
  content: ""; position: absolute; left: .25rem; bottom: .7rem; width: 2.25rem; height: 2px; border-radius: 2px;
  background: var(--cream); transform: scaleX(0); transform-origin: left center;
  transition: transform .25s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--tap); padding: 0 1.4rem;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: var(--fs-btn); line-height: 1.2; text-align: center;
  background: var(--brand); color: #fff; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn:active { transform: scale(.97); transition-duration: .08s; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(0) scale(.97); }
}
.btn--block { width: 100%; }
.btn--cream { background: var(--cream); color: var(--brand); }
.btn--cream:hover { background: #fff; }
.btn--outline { background: transparent; color: var(--cream); border-color: rgba(255, 251, 242, .85); }
.btn--outline:hover { background: rgba(255, 251, 242, .12); }
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  /* overlay first, photo second, plain blue if the photo is missing */
  background-color: #1b2a3a;   /* dark slate while the photo loads */
  padding: calc(var(--header-h) + 2.5rem) 0 calc(var(--hero-space, 100px) + .75rem);
  min-height: 78vh; min-height: 78svh;
  display: flex; align-items: flex-end;
}
/* Single hero photo behind a light Triploop-blue tint; it drifts in very slowly */
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  animation: heroDrift 24s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroDrift { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .05) 30%, rgba(0, 0, 0, .3) 62%, rgba(0, 0, 0, .7) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1, .hero-intro, .hero-label { text-shadow: 0 1px 14px rgba(0, 0, 0, .45); }


.hero .container { z-index: 3; will-change: transform, opacity; }

/* Small bouncing "scroll" arrow; fades out once the visitor starts scrolling */
.scroll-cue {
  position: absolute; left: 50%; bottom: calc(40px + .6rem); z-index: 3;
  width: 44px; height: 44px; margin-left: -22px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: var(--brand);
  box-shadow: 0 4px 14px rgba(0, 30, 80, .18);
  transition: opacity .35s ease;
}
.scroll-cue:hover { text-decoration: none; }
.scroll-cue svg { width: 22px; height: 22px; animation: cueBounce .6s ease-in-out infinite alternate; }
@keyframes cueBounce { from { transform: translateY(-2px); } to { transform: translateY(4px); } }
.scroll-cue.is-gone { opacity: 0; pointer-events: none; }
.scroll-cue.is-gone svg, .hero.is-offscreen .scroll-cue svg { animation-play-state: paused; }
/* Bottom spacing: keeps the buttons, dots and scroll arrow clear of the
   white "Upcoming trips" section that overlaps the hero by 40px. No white layers on the photo. */
.hero { --hero-space: 100px; }
.hero-media { will-change: transform; }

/* Label: small glass pill with a cream dot */
.hero-label {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.1rem;
  padding: .45rem .85rem; border-radius: 999px;
  font-size: .625rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cream);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 251, 242, .28);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
@media (max-width: 767px) {
  .hero-label { white-space: nowrap; font-size: .59rem; letter-spacing: .085em; gap: .45rem; padding: .42rem .75rem; max-width: 100%; }
}
@media (max-width: 374px) {
  .hero-label { font-size: .54rem; letter-spacing: .06em; padding: .4rem .65rem; }
}
.hero-label-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--cream); box-shadow: 0 0 0 3px rgba(255, 251, 242, .2); }

/* Headline: white first line, cream italic serif second line with a hand-drawn underline */
.hero h1 {
  font-size: clamp(2rem, 1.35rem + 2.8vw, 3.6rem);
  line-height: 1.08; letter-spacing: -.02em;
  margin-bottom: 1rem; color: #fff; font-weight: 600;
}
.hero h1 .accent {
  display: block; margin-top: .1em;
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0;
  font-size: 1.06em; color: var(--cream);
}
.swash-word { position: relative; display: inline-block; white-space: nowrap; }
.swash {
  position: absolute; left: -2%; bottom: -.18em; width: 104%; height: .32em;
  overflow: visible; pointer-events: none;
}
.swash path {
  fill: none; stroke: var(--cream); stroke-width: 3.2; stroke-linecap: round; opacity: .85;
  stroke-dasharray: 220; stroke-dashoffset: 0;
  animation: drawSwash .7s ease-out .6s both;
}
@keyframes drawSwash { from { stroke-dashoffset: 220; } }

.hero-intro {
  font-size: clamp(.9375rem, .85rem + .4vw, 1.125rem); line-height: 1.55;
  color: var(--cream); opacity: .92; max-width: 32rem; margin-bottom: 1.6rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-actions .btn { flex: 1 1 10rem; min-height: 3.1rem; }
.btn--glass {
  background: rgba(255, 255, 255, .12); color: #fff;
  border-color: rgba(255, 251, 242, .45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .2); }
.hero-actions .btn--cream svg { width: 18px; height: 18px; transition: transform .2s ease; }
.hero-actions .btn--cream:hover svg { transform: translateX(3px); }

/* Trust row under the buttons */
.hero-trust {
  list-style: none; margin: 1.25rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .45rem 1.1rem;
  color: var(--cream); font-size: .8125rem;
}
.hero-trust li { display: inline-flex; align-items: center; gap: .4rem; opacity: .92; }
.hero-trust svg {
  width: 16px; height: 16px; padding: 2px; border-radius: 999px; flex: none;
  background: rgba(255, 251, 242, .18); color: var(--cream);
}

@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } }
.hero-label, .hero h1, .hero-intro, .hero-actions, .hero-trust { animation: riseIn .45s ease-out both; }
.hero h1      { animation-delay: .09s; }
.hero-intro   { animation-delay: .18s; }
.hero-actions { animation-delay: .27s; }
.hero-trust   { animation-delay: .36s; }

/* ---------- Filter chips ---------- */
.chips {
  display: flex; gap: .5rem; overflow-x: auto;
  padding: .25rem var(--gutter) .75rem; margin: 0 calc(var(--gutter) * -1) .75rem;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 0 1.1rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: inherit; font-weight: 500; font-size: .875rem; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chips { position: relative; }
.chip { position: relative; z-index: 1; transition: color .25s ease, background-color .25s ease, border-color .25s ease; }
/* one blue pill that slides to the active chip (JS sets its size and position) */
.chip-indicator {
  position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none;
  border-radius: 999px; background: var(--brand);
  transform-origin: 0 50%;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.chips.has-indicator .chip[aria-pressed="true"] { background: transparent; border-color: transparent; color: #fff; }
/* entrance: chips fade in and rise, 60ms apart */
@keyframes chipIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes fadeIn { from { opacity: 0; } }
.chips-wait .chip, .chips-wait .chip-indicator { opacity: 0; }
.chips-in .chip { animation: chipIn .4s ease-out both; animation-delay: calc(var(--i, 0) * 60ms); }
.chips-in .chip-indicator { animation: fadeIn .4s ease-out both; }

/* ---------- Package cards: tall photo cards with the details on the photo ----------
   Phones: one column, 16px gap, cards stick under the header and stack over each other.
   Tablet: 2 columns. Laptop: 3 columns. Same card style everywhere, no stacking there. */
.cards { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.card {
  position: relative; min-width: 0;
  border-radius: var(--radius);
  transition: transform .25s ease;
}
.card-link {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: #1d3566; color: #fff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .14);
  transform-origin: 50% 0;
  -webkit-tap-highlight-color: transparent;
}
.card-link:hover { text-decoration: none; }
.card-link img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
/* dark gradient at the bottom keeps the white text readable */
.card-link::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(10, 20, 40, .82) 0%, rgba(10, 20, 40, .45) 38%, rgba(10, 20, 40, 0) 64%);
}
/* dims the card underneath while the next one slides over it (JS sets opacity) */
.card-dim { position: absolute; inset: 0; z-index: 2; background: #0b1630; opacity: 0; pointer-events: none; }
.badge {
  position: absolute; top: .75rem; left: .75rem; z-index: 1;
  font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: .35rem .6rem; border-radius: 999px; background: var(--cream); color: var(--brand);
}
.badge--soldout { background: var(--danger); color: #fff; }
.card-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 1rem 1rem 1.1rem;
}
.card-title { color: #fff; font-size: var(--fs-h3); font-weight: 600; margin: 0 0 .2rem; }
.card-meta { color: rgba(255, 255, 255, .82); font-size: var(--fs-small); margin: 0 0 .75rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.price { color: #fff; font-size: 1rem; font-weight: 600; }
.price small { color: rgba(255, 255, 255, .78); font-size: .75rem; font-weight: 400; }
.price--request { color: var(--cream); font-size: .875rem; }
.card-cta {
  flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 .85rem;
  border-radius: 999px; background: var(--cream); color: var(--brand);
  font-size: .8125rem; font-weight: 600;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-3px); }
  .card:hover .card-link img { transform: scale(1.03); }
}
@media (hover: none) {
  .card:active { transform: scale(.985); transition-duration: .1s; }
}
.empty { text-align: center; color: var(--muted); padding: 2rem 0; grid-column: 1 / -1; }

/* Phone stacking: each card sticks 80px from the top and the next one slides over it */
@media (max-width: 767px) {
  .cards.is-stack .card { position: sticky; top: 80px; }
}

.skeleton {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: #eef1f6;
}

/* ---------- Features ---------- */
.features { display: grid; gap: .9rem; grid-template-columns: 1fr; }
.feature {
  display: flex; gap: .9rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .875rem;
}
.feature-icon {
  flex: none; width: 2.75rem; height: 2.75rem; border-radius: .75rem;
  background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 600;
}
.feature-icon svg { width: 1.4rem; height: 1.4rem; }
.feature h3 { margin: .1rem 0 .25rem; font-size: 1rem; }
.feature p { margin: 0; color: var(--text); font-size: .875rem; }

.insta {
  display: flex; align-items: center; gap: .9rem; margin-top: 1.4rem;
  padding: 1rem; border-radius: var(--radius); min-height: 4rem;
  background: var(--brand); color: var(--cream);
}
.insta:hover { text-decoration: none; background: var(--brand-dark); }
.insta svg { width: 1.9rem; height: 1.9rem; flex: none; }
.insta strong { display: block; font-size: 1.05rem; }
.insta span { font-size: .88rem; opacity: .9; }

/* ---------- Package page ---------- */
.pkg {
  display: grid; gap: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "gallery" "info" "details" "form";
}
.pkg-gallery { grid-area: gallery; min-width: 0; }
.pkg-info    { grid-area: info; }
.pkg-details { grid-area: details; min-width: 0; }
.pkg-form    { grid-area: form; }
/* On phones the aside's two cards join the page grid (so the form sits after the details) */
.pkg-aside { display: contents; }

.gallery { position: relative; background: var(--brand-soft); margin: 0 calc(var(--gutter) * -1); overflow: hidden; }
.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 5; background: #dde6f5; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-count {
  position: absolute; top: .75rem; right: .75rem;
  font-size: .78rem; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .45);
  padding: .3rem .6rem; border-radius: 999px;
}
.dots {
  position: absolute; left: 0; right: 0; bottom: .6rem;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0; padding: 0 1rem;
}
.dot {
  width: 22px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .6);
  box-shadow: 0 0 2px rgba(0, 0, 0, .3); transition: width .2s, background .2s;
}
.dot[aria-current="true"]::before { width: 18px; background: #fff; }
.gallery-nav {
  display: none; position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .9); color: var(--ink); box-shadow: var(--shadow-sm);
  place-items: center;
}
.gallery-nav svg { width: 20px; height: 20px; }
.gallery-nav--prev { left: .75rem; }
.gallery-nav--next { right: .75rem; }

.pkg-info { padding-top: 1.4rem; }
.pkg-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .65rem; }
.tag {
  font-size: .78rem; font-weight: 600; padding: .35rem .65rem; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
}
.tag--soldout { background: #fdecec; color: var(--danger); }
.pkg-price { font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); font-weight: 600; color: var(--ink); margin: .25rem 0 .5rem; }
.pkg-price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.pkg-price--request { font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem); color: var(--brand); }
.pkg-desc { color: var(--text); font-size: var(--fs-body); }
.note { color: var(--muted-2); font-size: var(--fs-small); line-height: 1.45; margin: -.2rem 0 .9rem; }
.dates + .note { margin: .6rem 0 0; }

/* Trip highlights */
.list--highlights { gap: .7rem; }
.list--highlights li { font-weight: 500; }

/* Choose how you travel */
.travel-options { padding: 2.5rem 0 1rem; }
.travel-options h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.option-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.option-card {
  display: flex; flex-direction: column; gap: .5rem;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem;
}
.option-card h3 { margin: .35rem 0 0; font-size: var(--fs-h3); }
.option-card p { color: var(--muted); margin: 0 0 .75rem; flex: 1; }

.block { margin-top: 2rem; }
.block > h2 { font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3125rem); margin-bottom: .8rem; }

.video-wrap {
  position: relative; width: 100%; max-width: 22.5rem; margin: 0 auto;
  aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden;
  background: #0d1530; box-shadow: var(--shadow);
}
.video-wrap video { width: 100%; height: 100%; object-fit: cover; }

.dates { display: flex; flex-wrap: wrap; gap: .5rem; }
.date-pill {
  min-height: 44px; padding: 0 .9rem; border-radius: .75rem; border: 1px solid var(--brand);
  background: var(--brand); font: inherit; font-weight: 600; font-size: .92rem; color: #fff; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.date-pill:hover { background: #003a8a; border-color: #003a8a; }
/* Picked date: cream box with blue text so it stands out from the others */
.date-pill[aria-pressed="true"] { background: var(--cream); color: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }

/* Itinerary + policy accordions (native <details>) */
.days { display: grid; gap: .6rem; }
.day { border: 1px solid var(--line); border-radius: .9rem; background: #fff; overflow: hidden; }
.day summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: .75rem;
  min-height: 3.5rem; padding: .6rem .9rem; font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}
.day summary::-webkit-details-marker { display: none; }
.day-num {
  flex: none; font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft); border-radius: .5rem; padding: .35rem .5rem;
}
.day-title { flex: 1; min-width: 0; }
.day summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s;
}
.day[open] summary::after { transform: rotate(-135deg); }
.day summary::after { transition: transform .25s ease; }
@keyframes dayIn { from { opacity: 0; transform: translateY(-6px); } }
.day[open] .day-body { animation: dayIn .25s ease-out; }
.day .day-body { transition: opacity .18s ease, transform .18s ease; }
.day.is-closing .day-body { opacity: 0; transform: translateY(-6px); }
.day.is-closing summary::after { transform: rotate(45deg); }
.day-body { padding: 0 1rem 1rem; color: var(--muted); }
.day-body p { margin: 0; }
.day-route { color: var(--brand) !important; font-weight: 600; font-size: .9rem; margin-bottom: .5rem !important; }
.day-facts { list-style: none; padding: 0; margin: .75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.day-facts li {
  font-size: .85rem; color: var(--ink); background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: .6rem; padding: .35rem .6rem;
}
.day-facts span {
  font-weight: 600; color: var(--brand); margin-right: .35rem;
  font-size: .7rem; text-transform: uppercase; letter-spacing: .04em;
}
.policy-list { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; font-size: .95rem; }

.list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.list li { display: flex; gap: .6rem; align-items: flex-start; }
.list li::before {
  flex: none; width: 22px; height: 22px; border-radius: 999px; margin-top: 1px;
  display: grid; place-items: center; font-size: .72rem; font-weight: 600;
}
.list--in li::before { content: "✓"; background: #e6f6ec; color: var(--ok); }
.list--out li::before { content: "✕"; background: #fdecec; color: var(--danger); }

/* ---------- Forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; box-shadow: var(--shadow);
}
.form-card h2 { font-size: 1.125rem; margin-bottom: .9rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 500; font-size: .875rem; color: var(--ink); margin-bottom: .35rem; }
.input {
  width: 100%; min-height: 3.25rem; padding: .75rem .9rem;
  font: inherit; font-size: 16px; /* 16px stops iOS zoom on focus */
  color: var(--ink); background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: .75rem;
  -webkit-appearance: none; appearance: none;
}
.input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(0, 74, 173, .15); }
textarea.input { min-height: 6.5rem; resize: vertical; }
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235d6478' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.5rem;
}
.form-note { font-size: var(--fs-small); color: var(--muted-2); margin: .6rem 0 0; text-align: center; }
.error { color: var(--danger); font-size: .85rem; margin: .35rem 0 0; display: none; }
.field.invalid .input { border-color: var(--danger); }
.field.invalid .error { display: block; }

/* ---------- Simple pages ---------- */
.page-hero { background: var(--brand); color: var(--cream); padding: 2.5rem 0 2.25rem; }
.page-hero h1 { color: #fff; }
.page-hero p { color: var(--cream); opacity: .9; font-size: var(--fs-body); margin: 0; max-width: 40rem; }
.two-col { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
.contact-list { display: grid; gap: .75rem; }
.contact-item {
  display: flex; gap: .9rem; align-items: center; min-height: 4rem; padding: .9rem 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
}
.contact-item:hover { text-decoration: none; border-color: #cfd9ec; }
.contact-item .feature-icon { width: 2.5rem; height: 2.5rem; }
.contact-item small { display: block; color: var(--muted); font-size: .82rem; }
.contact-item strong { font-weight: 600; overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; text-align: center; }
.stat { background: var(--brand-soft); border-radius: var(--radius); padding: 1rem .5rem; }
.stat strong { display: block; font-size: 1.25rem; font-weight: 600; color: var(--brand); }
.stat span { font-size: .82rem; color: var(--muted); }

/* ---------- Private and custom trips ---------- */
.custom-head { max-width: 40rem; margin-bottom: 1.75rem; }
.eyebrow {
  margin: 0 0 .6rem; color: var(--brand);
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.custom-head h2 { font-size: var(--fs-h2); margin-bottom: .5rem; }
.custom-intro { color: var(--text); font-size: var(--fs-body); margin: 0; }
.custom-cards { display: grid; gap: .9rem; grid-template-columns: minmax(0, 1fr); }
.custom-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; box-shadow: var(--shadow-sm);
}
.custom-card h3 { margin: .7rem 0 .25rem; font-size: var(--fs-h3); }
.custom-card p { margin: 0; color: var(--text); font-size: .875rem; }

.custom-bottom { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); margin-top: 2rem; }
.custom-steps {
  background: var(--brand); color: var(--cream);
  border-radius: var(--radius); padding: 1.4rem 1.25rem;
}
.custom-steps h3 { color: #fff; font-size: 1.0625rem; margin-bottom: .9rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.steps li { display: flex; align-items: center; gap: .8rem; font-weight: 600; }
.step-num {
  flex: none; width: 2.25rem; height: 2.25rem; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--cream); color: var(--brand); font-weight: 600;
}
.custom-form h3 { font-size: 1.125rem; margin-bottom: .9rem; }
.field-row { display: grid; gap: 0 .9rem; grid-template-columns: minmax(0, 1fr); }

@media (min-width: 768px) {
  .custom-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps li { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 1024px) {
  .custom-bottom { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem; align-items: start; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { flex-direction: row; align-items: center; }
  .custom-steps { position: sticky; top: calc(var(--header-h) + 1.5rem); padding: 1.75rem; }
}

/* ---------- Why Triploop numbers (count up when they come into view) ---------- */
.why-stats {
  list-style: none; margin: 0 0 1.25rem; padding: 1rem .5rem;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-align: center;
}
.why-stats li { display: flex; flex-direction: column; min-width: 0; }
.why-stats li + li { border-left: 1px solid var(--line); }
.why-stats strong {
  color: var(--brand); font-weight: 600; line-height: 1.1;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  font-variant-numeric: tabular-nums;
}
.why-stats li > span { color: var(--text); font-size: .8125rem; margin-top: .25rem; }
@media (min-width: 1024px) {
  .why-stats { padding: 1.5rem 1rem; margin-bottom: 1.5rem; }
}
/* Rolling digits (odometer) */
.odo { display: inline-flex; line-height: 1; height: 1em; overflow: hidden; vertical-align: top; }
.odo-col { display: inline-block; height: 1em; overflow: hidden; }
.odo-strip {
  display: flex; flex-direction: column;
  transform: translate3d(0, 0, 0);
  transition: transform 1.4s cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}
.odo-strip span, .odo-sym { display: block; height: 1em; line-height: 1; }

/* ---------- FAQ ---------- */
.faq-head { margin-bottom: 1.25rem; }
.faq-head h2 { margin-bottom: 0; }
.faq-list { max-width: 48rem; }
.faq-item .day-title { font-weight: 500; color: var(--ink); }
.faq-item .day-body p { color: var(--text); }

.faq-more { margin: .9rem 0 0; font-size: .875rem; color: var(--muted-2); }
.faq-more a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-deep); color: rgba(255, 251, 242, .8); padding: 2.25rem 0 2rem; font-size: .92rem; }
.site-footer .logo-img { height: 32px; }
.footer-grid { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
.footer-links { display: flex; flex-wrap: wrap; margin: 0 -.6rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .6rem; color: var(--cream); font-weight: 500; }
.site-footer address { font-style: normal; line-height: 1.6; }
.site-footer address a { color: var(--cream); }
.footer-copy { margin: 0; font-size: .85rem; opacity: .75; }

/* =========================================================
   Tablet ≥ 768px
   ========================================================= */
@media (min-width: 768px) {
  :root { --gutter: 2rem; }
  .section { padding: 3.5rem 0; }
  .hero { --hero-space: 120px; padding: calc(var(--header-h) + 3.5rem) 0 calc(var(--hero-space) + 1rem); min-height: 66vh; }
  .hero-label { font-size: .6875rem; letter-spacing: .18em; }
  .hero-actions .btn { flex: 0 0 auto; min-width: 11rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chips { flex-wrap: wrap; overflow: visible; margin: 0 0 1rem; padding: 0; }
  .gallery { margin: 1.5rem 0 0; border-radius: var(--radius); }
  .gallery-slide { aspect-ratio: 4 / 3; }
  .gallery-slide img { object-fit: contain; background: #0f1a33; }
  .gallery-nav { display: grid; }
  .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .travel-options { padding: 3rem 0 1.5rem; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.4fr; align-items: start; }
}

/* =========================================================
   Laptop ≥ 1024px
   ========================================================= */
@media (min-width: 1024px) {
  :root { --header-h: 4.5rem; }

  /* Full navigation in the header */
  .menu-btn { display: none; }
  .nav {
    position: static; opacity: 1; transform: none; visibility: visible;
    background: transparent; border: 0; box-shadow: none; transition: none;
  }
  .nav ul { display: flex; gap: .25rem; padding: 0; }
  .nav a { min-height: 44px; padding: 0 .9rem; border: 0; border-radius: .6rem; font-size: .9375rem; }
  .nav a::after { left: .9rem; right: .9rem; width: auto; bottom: .45rem; }

  /* Laptop: the hero fills the whole screen (phones and tablets keep their own height) */
  .hero { --hero-space: 140px; min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + 4rem) 0 calc(var(--hero-space) + 1.5rem); }
  .hero-label { font-size: .72rem; }
  /* Laptop: text centred vertically on the left, photo shows more on the right */
  .hero { align-items: center; }
  .hero::after {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .3) 40%, rgba(0, 0, 0, 0) 72%),
      linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .35) 100%);
  }
  .hero .container > * { max-width: 40rem; }
  .hero-trust { margin-top: 1.6rem; font-size: .875rem; }

  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feature { flex-direction: column; }

  /* Package page: gallery + details on the left, sticky info + enquiry card on the right */
  .pkg {
    grid-template-columns: minmax(0, 1fr) 24rem;
    grid-template-areas: "gallery aside" "details aside";
    column-gap: 2.5rem; align-items: start;
  }
  .pkg-aside {
    display: block; grid-area: aside;
    position: sticky; top: calc(var(--header-h) + 1.5rem);
    margin-top: 1.5rem;
    max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 1.5rem;
    scrollbar-width: thin;
  }
  .pkg-aside .pkg-info { padding-top: 0; }
  .pkg-aside .pkg-info .btn { display: none; }   /* the form is right below */
  .pkg-aside .pkg-form { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
  .pkg-aside .form-card { border: 0; box-shadow: none; padding: 0; }
  .pkg-aside .block { margin-top: 0; }
  .pkg-aside h1 { font-size: 1.625rem; margin-bottom: .35rem; }
  .pkg-aside .pkg-price { font-size: 1.25rem; margin: 0 0 .4rem; }
  .pkg-aside .pkg-desc { font-size: .95rem; margin-bottom: 0; }
  .pkg-aside .form-card h2 { font-size: 1.1rem; margin-bottom: .75rem; }
  .pkg-aside .field { margin-bottom: .7rem; }
  .pkg-aside .field label { font-size: .9rem; margin-bottom: .25rem; }
  .pkg-aside .input { min-height: 2.75rem; padding: .55rem .8rem; }
  .pkg-aside textarea.input { min-height: 4.25rem; }
  .pkg-aside .form-note { margin-top: .4rem; }
  .pkg-aside .pkg-desc { font-size: .92rem; line-height: 1.5; margin-bottom: .6rem; }
  .pkg-aside .note { margin-bottom: 0; }
  /* travel date + group size side by side to keep the card short */
  .pkg-aside #enquiryForm { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); column-gap: .75rem; }
  .pkg-aside #enquiryForm > * { grid-column: 1 / -1; }
  .pkg-aside #enquiryForm > .field:nth-of-type(2) { grid-column: 1; }
  .pkg-aside #enquiryForm > .field:nth-of-type(3) { grid-column: 2; }
  .travel-options { padding: 1rem 0 4rem; }
  .pkg-details { padding-bottom: 3rem; }
}

/* =========================================================
   Large laptop ≥ 1440px
   ========================================================= */
@media (min-width: 1440px) {
  .pkg { grid-template-columns: minmax(0, 1fr) 26rem; column-gap: 3rem; }
}

/* ---------- Scroll reveal ----------
   Elements fade in and move up 16px once as they enter the screen.
   The hidden state only applies after JavaScript has set .reveal-on on <html>. */
.reveal-on .reveal { opacity: 0; transform: translateY(16px); }
.reveal-on .card.reveal { transform: translateY(20px); }
.reveal-on .reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .45s ease-out, transform .45s ease-out;
  transition-delay: var(--reveal-delay, 0s);
}
/* After the reveal finishes, JS removes these classes so hover effects work normally */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery-track { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hero-media img { transform: none !important; animation: none !important; }
  .reveal-on .reveal { opacity: 1 !important; transform: none !important; }
  .cards.is-stack .card { position: relative; top: auto; }
  .card-link { transform: none !important; }
  .card-dim { opacity: 0 !important; }
  .hero-media { transform: none !important; }
  .hero .container { transform: none !important; opacity: 1 !important; }
  .chips-wait .chip, .chips-wait .chip-indicator { opacity: 1 !important; }
  .site-header.is-hidden { transform: none !important; }
}

/* Phone: compact hero buttons, side by side */
@media (max-width: 767px) {
  .hero-actions { flex-direction: row; flex-wrap: nowrap; gap: .55rem; }
  .hero-actions .btn { flex: 1 1 0; min-width: 0; min-height: 2.75rem; padding: .5rem .7rem; font-size: .875rem; gap: .4rem; border-radius: 999px; white-space: nowrap; }
  .hero-actions .btn svg { width: 16px; height: 16px; flex: none; }
}

/* Phone: keep the traveller in view (right side of the photo); a little extra shade keeps the text readable */
@media (max-width: 767px) {
  .hero-media img { object-position: 86% 50%; }
  .hero::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .25) 30%, rgba(0, 0, 0, .45) 60%, rgba(0, 0, 0, .72) 100%);
  }
}

/* Phone: all text about 10% smaller (everything sized in rem scales with this).
   Tap targets keep a 44px minimum so buttons stay easy to press. */
@media (max-width: 767px) {
  html { font-size: 90%; }
  :root { --fs-body: .9722rem; }   /* body text stays at about 14px */
  .hero-label { font-size: .655rem; }
  .btn, .hero-actions .btn, .nav a, .chip, .menu-btn { min-height: 44px; }
}
@media (max-width: 374px) {
  .hero-label { font-size: .6rem; }
}
