/* ===== Pika Travel ===== */
/* Palette from Mongolia itself: a stone ground, deep steppe green for text and
   whole sections, and the "eternal blue sky" as the one accent (buttons and links only).
   Contrast checked: body text 5.5:1 or better, buttons 6.4:1. */
:root {
  --bg: #efede7;          /* stone ground */
  --surface: #e3e0d7;     /* one tone step off the ground */
  --card: #f9f8f4;        /* panels and cards */
  --ink: #1d2621;         /* text */
  --muted: #56605a;       /* secondary text, still 5.5:1 on --bg */
  --accent: #2c5aa0;      /* sky blue: actions, links, focus */
  --accent-dark: #22477f;
  --field: #22382c;       /* deep steppe green sections */
  --field-ink: #ecebe5;   /* text on --field */
  --field-muted: #b9c4bb;
  --green: #3f6b52;       /* "Easy", ticks, positive notes */
  --ok-bg: #e2eae3;
  --amber: #8a6416;       /* "Moderate" */
  --warn: #9b3b27;        /* "Challenging" and warnings */
  --warn-bg: #f3e6e0;
  --line: #d8d4ca;
  --radius: 14px;
  --shadow-float: 0 18px 50px rgba(18, 24, 21, .28);  /* only for things that float: dialogs, sticky bar */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: .07em; }
a, button, summary, label, select { touch-action: manipulation; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; font-weight: 700; text-wrap: balance; }
h1, h2 { letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }

/* small sentence-case label, used for the quiz step */
.eyebrow { font-size: .88rem; font-weight: 600; color: var(--muted); margin-bottom: .4em; }

/* ----- Buttons ----- */
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  padding: .85em 1.6em; border-radius: 999px; text-decoration: none;
  border: 2px solid var(--accent); cursor: pointer; font: inherit; font-weight: 600;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .16s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-ghost { background: transparent; border-color: #fff; color: #fff; }
.btn-outline { background: transparent; color: var(--accent); }
.btn-small { padding: .5em 1.15em; font-size: .92rem; }
.btn-block { width: 100%; }
/* hover only where there's a real mouse, so nothing "sticks" after a tap on phones */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
  .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
}

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--bg);
  box-shadow: 0 8px 18px -16px rgba(18, 24, 21, .45); transition: box-shadow .3s ease;
}
.site-header.at-top { box-shadow: none; }
/* "Book" beside the menu button, on phones only (wider screens have it in the menu bar) */
.header-book { display: none; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--field); }
.logo img { width: 48px; height: 48px; }
.wordmark { display: flex; flex-direction: column; font-size: 1.02rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; line-height: 1.1; }
.wordmark small { font-size: .5em; font-weight: 600; letter-spacing: .58em; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 1.6em; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .nav a:not(.btn):hover { color: var(--accent); } }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s var(--ease-out), opacity .2s ease; }

/* ----- Hero ----- */
.hero {
  position: relative; min-height: calc(100svh - 64px); display: flex; align-items: center;
  color: #fff; overflow: hidden; background: #2b3530;
}
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
/* the one gradient: a neutral scrim so the text stays readable */
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,24,21,.52) 0%, rgba(18,24,21,.2) 50%, transparent 75%), linear-gradient(180deg, rgba(18,24,21,.15) 0%, transparent 35%, rgba(18,24,21,.3) 100%); }
@media (orientation: portrait) and (max-width: 760px) {
  .hero-photo { object-position: 50% 58%; }
}
.hero-content { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 80px; text-shadow: 0 1px 12px rgba(12, 16, 14, .35); }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); max-width: 14ch; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 42ch; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8em; }

/* ----- Sections ----- */
.section { padding: clamp(56px, 7.5vw, 96px) 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--field); color: var(--field-ink); }
.section-dark h2 { color: #fff; }
.section-dark p { color: var(--field-muted); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 ~ p { color: var(--muted); }

/* ----- Photos ----- */
.tour-media, .about-media { position: relative; background: var(--surface); }
.about-media img, .tour-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ----- Tours ----- */
.tour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.tour-card {
  position: relative; background: var(--card); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.tour-media { position: relative; aspect-ratio: 16 / 10; display: block; overflow: hidden; }
.tour-media img { transition: transform .3s var(--ease-out); }
.tour-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.tour-body > p { color: var(--muted); font-size: .97rem; }
.tour-body > .tour-note {
  margin: -4px 0 16px; padding: 7px 11px; border-radius: 8px; background: var(--warn-bg);
  color: var(--warn); font-size: .85rem; line-height: 1.4;
}
/* days, difficulty dots and themes under the tour title */
.tour-body > .tour-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin: -6px 0 12px; font-size: .84rem;
}
.tour-days { font-weight: 600; color: var(--ink); }
.level { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; color: var(--green); }
.level[data-level="2"] { color: var(--amber); }
.level[data-level="3"] { color: var(--warn); }
.level i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.level i:last-of-type { margin-right: 4px; }
.level[data-level="1"] i:nth-of-type(-n+1),
.level[data-level="2"] i:nth-of-type(-n+2),
.level[data-level="3"] i:nth-of-type(-n+3) { background: currentColor; }
.themes { color: var(--muted); }
.highlights { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.highlights li { background: var(--surface); color: var(--ink); font-size: .8rem; font-weight: 500; padding: .25em .7em; border-radius: 999px; }
.included { padding-left: 0; list-style: none; margin: 10px 0 0; font-size: .93rem; }
.included li { padding-left: 1.5em; position: relative; margin-bottom: 4px; }
.included li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.tour-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* Standard / Premium switch */
.tier {
  margin-top: auto; align-self: flex-start; display: inline-flex; gap: 2px; padding: 3px;
  border-radius: 999px; background: var(--surface);
}
.tier button {
  padding: .4em 1.05em; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: inherit; font-size: .85rem; font-weight: 600; color: var(--muted);
  transition: background-color .2s ease, color .2s ease, transform .16s var(--ease-out);
}
.tier button:active { transform: scale(.97); }
.tier button[aria-pressed="true"] { background: var(--card); color: var(--ink); }
.tier button[data-tier="premium"][aria-pressed="true"] { background: var(--field); color: #fff; }
.booking-box .tier-perks {
  margin: 10px 0 0; padding: 8px 12px; border-radius: 8px;
  background: var(--ok-bg); color: var(--field); font-size: .85rem; line-height: 1.45;
}
.price { margin: 0; font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { font-family: var(--font-body); font-size: .75rem; font-weight: 500; color: var(--muted); display: block; line-height: 1; white-space: normal; }
.price-ask { font-size: 1.2rem; }
/* the second price, for 2–3 travellers, under the main one */
.price-alt { margin: 4px 0 0; font-size: .8rem; color: var(--muted); }
.price-ask small { margin-bottom: 4px; }
.tour-card h3 a { color: inherit; text-decoration: none; }
/* the title link stretches over the whole card, so the photo and "View tour" open the tour too */
.tour-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tour-card h3 a:focus-visible { outline: none; }
.tour-card:has(h3 a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .tour-card:has(h3 a):hover { transform: translateY(-4px); box-shadow: 0 18px 30px -18px rgba(18, 24, 21, .4); }
  .tour-card:hover h3 a { color: var(--accent); }
  .tour-card:hover .tour-media img { transform: scale(1.04); }
  .tour-card:hover .tour-foot .btn { background: var(--accent-dark); border-color: var(--accent-dark); }
}
/* "Want something different?" is built like a tour card: photo on top, dark green text below */
.tour-custom { background: var(--field); color: var(--field-ink); }
.tour-custom .tour-body { justify-content: center; }
.tour-custom h3 { color: #fff; }
.tour-custom .tour-body > p { color: var(--field-muted); }
.tour-custom .btn { align-self: flex-start; }
/* What every tour includes, and the two comfort levels */
.tour-facts {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); margin-top: 30px;
  border-radius: var(--radius); background: var(--card);
}
.tour-facts > div { padding: 26px 28px; }
.facts-comfort { border-left: 1px solid var(--line); }
.tour-facts h3 { margin: 0 0 18px; font-size: 1.15rem; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.perks li { display: flex; align-items: center; gap: 12px; font-size: .92rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.perks small { display: block; margin-top: 2px; font-size: .8rem; font-weight: 500; color: var(--muted); }
.perks svg, .facts-extra svg {
  flex: none; box-sizing: border-box; width: 44px; height: 44px; padding: 10px; border-radius: 50%;
  background: var(--ok-bg); color: var(--field);
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.facts-note { margin: 20px 0 0; font-size: .88rem; color: var(--muted); }
.comfort-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.comfort { padding: 14px 16px; border-radius: 10px; background: var(--surface); }
.comfort strong { display: block; margin-bottom: 4px; color: var(--ink); }
.comfort p { margin: 0; font-size: .88rem; line-height: 1.45; color: var(--muted); }
.comfort-premium { background: var(--field); }
.comfort-premium strong { color: #fff; }
.comfort-premium p { color: var(--field-muted); }
/* optional photo & drone package: a strip across the bottom of the panel */
.tour-facts > .facts-extra {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 16px;
  padding-top: 20px; padding-bottom: 22px; border-top: 1px solid var(--line);
}
.facts-extra p { margin: 0; max-width: 820px; font-size: .88rem; line-height: 1.5; color: var(--muted); }
.facts-extra .eyebrow {
  display: block; margin: 0 0 2px; font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--green);
}
.facts-extra strong { display: block; margin-bottom: 2px; font-size: .95rem; color: var(--ink); }

/* ----- "Which tour suits me?" quiz ----- */
.quiz-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 30px;
  padding: 26px 30px; border-radius: var(--radius); background: var(--ok-bg);
}
.quiz-cta h3 { margin-bottom: .3em; color: var(--field); }
.quiz-cta p { margin: 0; color: var(--muted); }
.quiz-cta .btn { flex-shrink: 0; }
.quiz-link {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: .18em;
}
.quiz-link-light { align-self: flex-start; margin-top: 14px; font-size: .92rem; color: var(--field-ink); }
.quiz {
  width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; overflow-y: auto;
  border: 0; border-radius: var(--radius); background: var(--card); color: var(--ink);
  box-shadow: var(--shadow-float);
}
.quiz::backdrop { background: rgba(12, 16, 14, .6); }
.quiz-head { position: relative; padding: 20px 64px 0 24px; }
.quiz-head .eyebrow { margin: 0; }
.quiz-close {
  position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; padding: 0 0 3px; border: 0; border-radius: 50%;
  background: var(--surface); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.quiz-progress { height: 6px; margin-top: 10px; border-radius: 3px; background: var(--surface); overflow: hidden; }
/* scaled rather than resized, so it stays smooth on slower phones */
.quiz-progress span { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.quiz-body { padding: 18px 24px 24px; }
.quiz-body h3 { font-size: 1.45rem; margin-bottom: .75em; }
.quiz-options { display: grid; gap: 10px; }
.quiz-option {
  display: block; width: 100%; padding: 14px 16px; text-align: left;
  border: 2px solid transparent; border-radius: 12px; background: var(--surface); cursor: pointer;
  font: inherit; font-weight: 600; color: var(--ink);
  transition: border-color .15s ease, background-color .15s ease, transform .16s var(--ease-out);
}
.quiz-option:active { transform: scale(.98); }
.quiz-option:focus-visible { border-color: var(--accent); outline: none; }
.quiz-option[aria-pressed="true"] { border-color: var(--accent); background: var(--card); }
@media (hover: hover) and (pointer: fine) {
  .quiz-option:hover { border-color: var(--accent); background: var(--card); }
  .quiz-close:hover { background: var(--line); }
  .quiz-back:hover { color: var(--accent); }
  .quiz-match:hover { background: var(--line); }
}
.quiz-option small { display: block; margin-top: 2px; font-size: .84rem; font-weight: 400; color: var(--muted); }
.quiz-back {
  margin-top: 16px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .9rem; color: var(--muted);
}
.quiz-match {
  display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; margin-bottom: 14px; padding: 10px;
  border-radius: 12px; background: var(--surface); color: inherit; text-decoration: none;
}
.quiz-match img { width: 110px; height: 82px; object-fit: cover; border-radius: 8px; }
.quiz-match strong { display: block; font-family: var(--font-head); font-size: 1.15rem; }
.quiz-match small { color: var(--muted); font-size: .86rem; }
.quiz-reason { color: var(--muted); }
.quiz-note { padding: 8px 12px; border-radius: 8px; background: var(--ok-bg); color: var(--field); font-size: .9rem; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.quiz-alt { margin: 14px 0 0; font-size: .92rem; color: var(--muted); }
.quiz-restart { display: block; }

/* ----- Dialogs open and close with a short fade (quiz and photo viewer) ----- */
.quiz, .lightbox {
  opacity: 0; transform: scale(.97);
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), overlay .2s allow-discrete, display .2s allow-discrete;
}
.quiz[open], .lightbox[open] { opacity: 1; transform: none; }
@starting-style {
  .quiz[open], .lightbox[open] { opacity: 0; transform: scale(.97); }
}
.quiz::backdrop { opacity: 0; transition: opacity .2s ease, overlay .2s allow-discrete, display .2s allow-discrete; }
.quiz[open]::backdrop { opacity: 1; }
@starting-style { .quiz[open]::backdrop { opacity: 0; } }

/* ===== Tour pages ===== */
.tour-hero {
  position: relative; min-height: min(68vh, 620px); display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: #2b3530;
}
.tour-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tour-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,24,21,.1) 0%, rgba(18,24,21,.15) 40%, rgba(18,24,21,.72) 100%);
}
.tour-hero .container { position: relative; z-index: 1; padding-top: 90px; padding-bottom: 40px; }
.tour-hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); max-width: 16ch; margin-bottom: .35em; text-shadow: 0 2px 18px rgba(0,0,0,.3); }
/* days · difficulty · themes, as a plain line of text under the title */
.hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: .95rem; font-weight: 600; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.hero-tag + .hero-tag::before { content: "·"; margin: 0 .6em; opacity: .7; }
.tour-hero .level[data-level="1"] { color: #a9dbb2; }
.tour-hero .level[data-level="2"] { color: #f2cc7a; }
.tour-hero .level[data-level="3"] { color: #f6a487; }
.tour-hero .level i { background: rgba(255, 255, 255, .3); }

.tour-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start;
  padding-top: 48px; padding-bottom: 90px;
}
.tour-main > h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 1.8em 0 .7em; }
.tour-main > h2:first-child { margin-top: 0; }
.tour-main > p { color: var(--muted); font-size: 1.05rem; max-width: 65ch; }
.tour-main .highlights li { font-size: .88rem; padding: .35em .85em; background: var(--card); }

/* Booking box (sticky on wide screens) */
.booking-box { position: sticky; top: 88px; padding: 24px; border-radius: var(--radius); background: var(--card); }
.booking-box .tier { margin: 0 0 16px; }
.booking-box .price { font-size: 2rem; margin-bottom: 14px; }
.booking-box .price-ask { font-size: 1.4rem; }
.booking-box .price-alt { margin: -10px 0 16px; font-size: .85rem; }
.booking-box .tier-perks { margin: -4px 0 14px; }
.booking-facts { list-style: none; padding: 0; margin: 18px 0 0; font-size: .88rem; color: var(--muted); }
.booking-facts li { position: relative; padding-left: 1.4em; margin-bottom: 6px; }
.booking-facts li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.booking-extra { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.booking-extra strong { color: var(--ink); }
.share-btn {
  margin-top: 12px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--accent);
}
.share-btn:hover { text-decoration: underline; }
.share-btn + .share-btn { margin-left: 18px; }

/* Day-by-day timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li { position: relative; padding: 0 0 30px 66px; }
.timeline > li::before {
  content: ""; position: absolute; left: 22px; top: 46px; bottom: 0; width: 2px; background: var(--line);
}
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li:last-child::before { display: none; }
.day-num {
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--field); color: #fff; font-weight: 700; font-size: .95rem; line-height: 1; font-variant-numeric: tabular-nums;
}
.day-num small { font-size: .62rem; font-weight: 500; opacity: .8; margin-bottom: 2px; }
.timeline h3 { margin: 0 0 .3em; padding-top: 10px; font-size: 1.2rem; }
.timeline p { margin: 0; color: var(--muted); }
.timeline > li > div { min-width: 0; }
.day-photos {
  display: flex; gap: 8px; margin-top: 12px; padding-bottom: 6px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
}
.day-photo {
  flex: 0 0 auto; border-radius: 8px; overflow: hidden;
  background: var(--surface); cursor: zoom-in; scroll-snap-align: start;
}
.day-photo img { display: block; height: 140px; width: auto; max-width: none; transition: transform .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .day-photo:hover img { transform: scale(1.04); } }

/* Included / where you stay / good to know */
.incl-grid, .stay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { padding: 20px 22px; border-radius: var(--radius); background: var(--card); }
.panel h3 { font-size: 1.15rem; margin-bottom: .6em; }
.panel p { margin: 0; color: var(--muted); font-size: .95rem; }
.panel .included { margin: 0; }
.excluded { list-style: none; padding: 0; margin: 0; font-size: .93rem; }
.excluded li { position: relative; padding-left: 1.5em; margin-bottom: 4px; color: var(--muted); }
.excluded li::before { content: "✕"; position: absolute; left: 0; color: var(--warn); font-weight: 700; }
.panel-premium { background: var(--field); color: var(--field-ink); }
.panel-premium h3 { color: #fff; }
.panel-premium p { color: var(--field-muted); }
/* next to the longer Standard list, Premium stays as tall as its own list */
.stay-grid .panel-premium { align-self: start; }
.panel-premium .included li { color: var(--field-ink); }
.panel-premium .included li::before { color: #9cc7a8; }
.stay-list { list-style: none; padding: 0; margin: 0 0 14px; }
.stay-list li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; text-align: right; }
.stay-list li:last-child { border-bottom: 0; }
.stay-list li span { font-weight: 600; text-align: left; white-space: nowrap; }
/* in the half-width Standard / Premium panels, place above stay */
.stay-grid .stay-list li { flex-direction: column; gap: 0; text-align: left; }
.timeline .day-stay { margin-top: 6px; font-size: .85rem; font-weight: 600; color: var(--green); }
.timeline .day-stay::before { content: "Night: "; font-weight: 500; color: var(--muted); }
.tour-main .itinerary-warning { margin: 0 0 8px; }

/* Price + Enquire bar fixed to the bottom of the screen on phones */
.mobile-book-bar { display: none; }

/* Reindeer tour warning (tour page) */
.itinerary-warning { padding: 20px 22px; border-radius: var(--radius); background: var(--warn-bg); }
.itinerary-warning h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--warn); }
.itinerary-warning ul { margin: 0 0 10px; padding-left: 1.1em; }
.itinerary-warning li { margin-bottom: 6px; font-size: .95rem; }
.itinerary-warning p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ----- Route maps (drawn by routes.js) ----- */
/* Sizes inside the map are multiplied by --u, the map units per screen pixel, so text and
   marks stay the same size on screen however far the map is zoomed in. */
.route-map { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: #e2dfd5; }
.route-svg { display: block; width: 100%; height: 100%; font-family: var(--font-body); }
.m-out { fill: #e2dfd5; }
.m-land { fill: #f7f4ec; }
.m-gobi { fill: #ecd9ae; opacity: .5; }
.m-forest { fill: #c3d6c1; opacity: .7; }
.m-lake { fill: #a3c4de; }
.m-border { fill: none; stroke: #a49c89; stroke-width: 1.75px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
/* borders between provinces, lighter than the country's own; their names sit behind the routes */
.m-province { fill: none; stroke: #cdc6b5; stroke-width: 1px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.m-region, .m-province-name, .m-gobi-name { font-weight: 600; text-anchor: middle; dominant-baseline: central; }
.m-region { font-size: calc(10px * var(--u)); letter-spacing: .2em; fill: #a09a8b; }
.m-province-name { font-size: calc(9.5px * var(--u)); letter-spacing: .08em; fill: #8a8474; }
.m-gobi-name { font-size: calc(11px * var(--u)); fill: #a07f3a; }
/* a route line passing under one of these names breaks around it, so the name stays readable */
.m-province-name, .m-gobi-name { paint-order: stroke; stroke: #f7f4ec; stroke-width: calc(4px * var(--u)); stroke-linejoin: round; }
.m-route { fill: none; stroke: var(--accent); stroke-width: 3px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.m-route.fly { stroke-width: 2.5px; stroke-dasharray: 9 7; }
.m-route.train { stroke-dasharray: 1 7; }
.m-route.ride { stroke-dasharray: 6 6; }
.m-route.all { stroke: var(--green); stroke-width: 2px; opacity: .9; }
.m-dot { fill: var(--card); stroke: var(--green); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.m-stop rect { fill: #fff; stroke: var(--accent); stroke-width: 2px; vector-effect: non-scaling-stroke; transition: fill .15s ease; }
.m-num { font-size: calc(11px * var(--u)); font-weight: 700; fill: var(--accent); text-anchor: middle; dominant-baseline: central; font-variant-numeric: tabular-nums; transition: fill .15s ease; }
.m-name {
  font-size: calc(12px * var(--u)); font-weight: 600; fill: var(--ink); dominant-baseline: central;
  paint-order: stroke; stroke: #f7f4ec; stroke-width: calc(4px * var(--u)); stroke-linejoin: round;
}
.m-ub circle { fill: var(--field); stroke: #fff; stroke-width: 2.5px; vector-effect: non-scaling-stroke; }
.m-ub .m-name { font-weight: 800; }
a.m-stop { cursor: pointer; text-decoration: none; }
a.m-stop:focus-visible { outline: none; }
a.m-stop:focus-visible rect { fill: var(--accent); }
a.m-stop:focus-visible .m-num { fill: #fff; }
@media (hover: hover) and (pointer: fine) {
  a.m-stop:hover rect { fill: var(--accent); }
  a.m-stop:hover .m-num { fill: #fff; }
}
/* a route appears: the road draws itself, then the stops come in one after another */
.route-map:not(.still) .m-route.drive:not(.all) { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: route-draw 1.2s var(--ease-out) .2s forwards; }
.route-map:not(.still) .m-route:not(.drive):not(.all), .route-map:not(.still) .m-stop { animation: route-in .45s ease both; animation-delay: calc(var(--i, 0) * 70ms + .25s); }
@keyframes route-draw { to { stroke-dashoffset: 0; } }
@keyframes route-in { from { opacity: 0; } }
/* small map of the whole country, with the part on show marked */
.route-inset {
  position: absolute; width: 112px; padding: 6px; border-radius: 8px; pointer-events: none;
  background: rgba(249, 248, 244, .94); box-shadow: 0 2px 10px rgba(18, 24, 21, .14);
}
.route-inset.tl { top: 10px; left: 10px; }
.route-inset.tr { top: 10px; right: 10px; }
.route-inset.bl { bottom: 10px; left: 10px; }
.route-inset.br { bottom: 10px; right: 10px; }
.route-inset .m-land { fill: #d5d1c4; }
.route-inset .m-view { fill: rgba(44, 90, 160, .2); stroke: var(--accent); stroke-width: 14; }
.route-note { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 10px 0 0; font-size: .84rem; color: var(--muted); }
.route-legend { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; }
.route-legend span { display: inline-flex; align-items: center; gap: 7px; }
.way { width: 26px; border-top: 3px solid var(--accent); }
.way.fly { border-top-style: dashed; }
.way.train { border-top-style: dotted; }
.way.ride { border-top: 3px dashed var(--accent); width: 20px; }
/* home page: tour buttons, the map, and the chosen tour's stops beside it */
.route-explorer { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px 22px; }
.route-tabs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.route-tabs button {
  padding: .5em 1.05em; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); cursor: pointer;
  font: inherit; font-size: .92rem; font-weight: 600; color: var(--ink); white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .16s var(--ease-out);
}
.route-tabs button:active { transform: scale(.97); }
.route-tabs small { margin-left: .6em; font-size: .8rem; font-weight: 500; color: var(--muted); }
.route-tabs button[aria-pressed="true"] { background: var(--field); border-color: var(--field); color: #fff; }
.route-tabs button[aria-pressed="true"] small { color: var(--field-muted); }
@media (hover: hover) and (pointer: fine) { .route-tabs button:not([aria-pressed="true"]):hover { border-color: var(--field); } }
/* the map grows to the height of the stops beside it */
.route-main { min-width: 0; display: flex; flex-direction: column; }
.route-main .route-map { flex: 1 0 auto; }
.route-info { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius); background: var(--card); }
.route-info h3 { margin-bottom: .5em; }
.route-info > p { color: var(--muted); font-size: .95rem; }
.route-info > .tour-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: -2px 0 14px; font-size: .84rem; }
.route-info > .route-hint { margin: auto 0 0; padding-top: 12px; font-weight: 600; color: var(--field); }
.route-stops { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 7px; font-size: .93rem; }
.route-stops li { display: flex; align-items: baseline; gap: 10px; }
.route-stops span { flex: none; min-width: 2.6em; font-size: .8rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.route-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* tour pages: the route sits above the day-by-day plan; a number on it jumps to that day */
.tour-main .route-note { max-width: none; font-size: .84rem; }
.timeline > li:target h3 { color: var(--accent); }
.timeline > li:target .day-num { background: var(--accent); }

/* ----- "More tours" at the end of a tour page ----- */
.more-tours { padding: clamp(48px, 6vw, 72px) 0; background: var(--surface); }
.more-tours h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 1em; }

/* ----- About ----- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.about-media { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.values { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.values strong { display: block; color: #fff; }
.values span { color: var(--field-muted); font-size: .93rem; }

/* ----- Gallery ----- */
/* a mosaic: upright photos take one cell, "wide" ones two; every tile in a row is the same height */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 14px; }
.gallery figure {
  margin: 0; position: relative; aspect-ratio: 3 / 4; align-self: stretch; border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
}
.gallery figure.wide { grid-column: span 2; aspect-ratio: 3 / 2; }
.gallery a { display: block; height: 100%; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .gallery figure:hover img { transform: scale(1.03); } }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 14px 12px; pointer-events: none;
  color: #fff; font-size: .88rem; font-weight: 500; line-height: 1.35;
  background: linear-gradient(transparent, rgba(12, 16, 14, .7));
}
.gallery figcaption[data-credit]::after {
  content: "Photo: " attr(data-credit); display: block; margin-top: 2px; font-size: .75rem; opacity: .8;
}
.gallery-more { text-align: center; margin-top: 18px; }
.gallery-more:has(> [hidden]) { display: none; }

/* ----- Invitation for travellers to send photos ----- */
.photo-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 36px;
  padding: 26px 30px; border-radius: var(--radius); background: var(--card);
}
.photo-cta h3 { margin-bottom: .35em; }
.photo-cta p { margin: 0 0 .5em; color: var(--muted); }
.photo-cta .photo-cta-terms { margin: 0; font-size: .8rem; }
.photo-cta .btn { flex-shrink: 0; }

/* ----- Full-screen photo viewer ----- */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0;
  padding: 60px 72px; background: rgba(12, 16, 14, .95); color: inherit;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: transparent; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: var(--field-ink); margin-top: 12px; text-align: center; font-size: .95rem; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 2rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding: 0 0 4px;
}
@media (hover: hover) and (pointer: fine) { .lb-btn:hover { background: rgba(255, 255, 255, .28); } }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
body.scroll-locked { overflow: hidden; }

/* ----- Reviews (hidden until there are real reviews) ----- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.review { margin: 0; background: rgba(255, 255, 255, .06); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.stars { color: #f2cc7a; letter-spacing: 3px; margin-bottom: 10px; }
.review blockquote { margin: 0 0 18px; font-size: 1.04rem; flex: 1; }
.review figcaption strong { display: block; }
.review figcaption span { font-size: .88rem; opacity: .75; }

/* ----- FAQ ----- */
.faq details { background: var(--card); border-radius: 12px; margin-bottom: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--ink); transition: transform .2s var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }
.faq ul { margin: 0; padding-left: 1.2em; }
.faq li { margin-bottom: 4px; }

/* ----- Contact ----- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
/* what happens after an enquiry: three numbered steps joined by a line */
.steps { list-style: none; margin: 30px 0 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 26px 58px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -4px; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--field); color: #fff; font-family: var(--font-head); font-size: 1.1rem; font-weight: 700;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 40px; bottom: 4px; width: 2px; background: var(--line); }
.steps strong { display: block; font-size: 1.02rem; }
.steps span { display: block; margin-top: 2px; color: var(--muted); font-size: .95rem; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list span { display: block; font-size: .85rem; color: var(--muted); }
.booking-form { background: var(--card); padding: 30px; border-radius: var(--radius); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16px stops iOS zoom on focus */
  padding: .75em .9em; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field.invalid input, .field.invalid select { border-color: var(--warn); }
/* tick box with its label beside it, e.g. the photo & drone package */
.field-check { display: flex; align-items: flex-start; gap: 10px; }
.field-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; padding: 0; accent-color: var(--accent); }
.field-check label { margin: 0; }
.field-check small { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); }
.form-status { margin: 14px 0 0; font-weight: 500; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--warn); }
.form-legal { margin: 12px 0 0; font-size: .82rem; color: var(--muted); }
.estimate {
  margin: 4px 0 16px; padding: 12px 14px; border-radius: 10px;
  background: var(--ok-bg); font-size: .92rem; line-height: 1.5;
}
.estimate strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.estimate small { color: var(--muted); font-size: .8rem; }
.nowrap { white-space: nowrap; }

/* ----- Footer ----- */
.site-footer { background: var(--ink); color: var(--line); padding: 56px 0 28px; }
/* brand, tours, site links, contact */
.footer-grid {
  display: grid; gap: 32px;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
}
.footer-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.footer-logo img { width: 56px; height: 56px; }
.footer-brand p { margin: 16px 0 0; max-width: 250px; font-size: .92rem; color: var(--field-muted); }
.footer-col h2 {
  margin: 0 0 14px; font-family: var(--font-body); font-size: .76rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #fff;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .92rem; color: var(--field-muted); }
.footer-col a, .footer-bottom a { color: var(--line); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .footer-col a:hover, .footer-bottom a:hover { color: #fff; text-decoration: underline; }
}
.footer-bottom {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 44px; padding-top: 22px; font-size: .85rem; color: var(--field-muted);
}
/* divider, inset by the container padding so it lines up with the text */
.footer-bottom::before { content: ""; position: absolute; top: 0; left: 20px; right: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom p { margin: 0; }

/* ----- Policy pages ----- */
.back-link { color: var(--ink); font-weight: 500; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .back-link:hover { color: var(--accent); } }
.legal { padding: clamp(48px, 8vw, 88px) 0; }
.legal h1 { font-size: clamp(2.1rem, 5vw, 2.9rem); margin-bottom: .2em; }
.legal h2 { font-size: 1.3rem; margin: 1.9em 0 .5em; }
.legal p, .legal li { max-width: 65ch; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 2em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .45em; }
.legal-summary { margin: 0 0 1em; padding: 20px 24px; border-radius: var(--radius); background: var(--ok-bg); }
.legal-summary h2 { margin-top: 0; }
.legal-summary ul { margin-bottom: 0; }

/* ----- "Page not found" ----- */
.lost { min-height: calc(100svh - 64px); display: flex; align-items: center; padding: 56px 0; text-align: center; }
.lost img { margin: 0 auto 28px; }
.lost h1 { font-size: clamp(2rem, 5.5vw, 3rem); }
.lost p { max-width: 52ch; margin: 0 auto; color: var(--muted); font-size: 1.05rem; }
.lost-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 2em; }
@media (hover: hover) and (pointer: fine) { .btn-outline:hover { background: var(--accent); border-color: var(--accent); color: #fff; } }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about, .contact { grid-template-columns: 1fr; gap: 36px; }
  .about-media { aspect-ratio: 16 / 10; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* tour pages: booking box moves below the content, price bar sticks to the bottom */
  .tour-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .mobile-book-bar ~ .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .booking-box { position: static; }
  .mobile-book-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--card); box-shadow: 0 -8px 24px rgba(18, 24, 21, .14);
  }
  .mobile-book-bar .price { font-size: 1.35rem; }
  .mobile-book-bar .price-ask { font-size: 1.1rem; }
  .photo-cta, .quiz-cta { flex-direction: column; align-items: stretch; text-align: left; padding: 22px 20px; gap: 18px; }
  .quiz-cta .btn, .photo-cta .btn { text-align: center; }
  .tour-facts { grid-template-columns: minmax(0, 1fr); }
  .facts-comfort { border-left: 0; border-top: 1px solid var(--line); }
  .route-explorer { grid-template-columns: minmax(0, 1fr); }
  .route-info > .route-hint { margin-top: 0; padding-top: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .header-book { display: inline-block; margin-left: auto; margin-right: 4px; padding: .42em 1.05em; }
  /* footer links get a taller touch area */
  .footer-col ul { gap: 0; }
  .footer-col li { padding: 6px 0; }
  .footer-col a { display: inline-block; padding: 3px 0; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--bg); padding: 8px 20px 20px; box-shadow: 0 12px 24px rgba(18, 24, 21, .12);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .tour-grid { grid-template-columns: 1fr; }
  .incl-grid, .stay-grid { grid-template-columns: 1fr; }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
}

/* phones: a route gets a square map; the tour buttons scroll sideways in one row */
@media (max-width: 560px) {
  .route-map { aspect-ratio: 5 / 3; }
  .route-map.zoomed { aspect-ratio: 1 / 1; }
  .route-inset { width: 84px; padding: 4px; }
  .route-tabs { flex-wrap: nowrap; margin: 0 -16px; padding: 0 16px 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .route-tabs::-webkit-scrollbar { display: none; }
  .route-tabs button { flex: none; }
  .route-info { padding: 20px 18px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .tour-facts > div { padding: 22px 18px; }
  .perks li { gap: 10px; font-size: .86rem; }
  .perks svg { width: 38px; height: 38px; padding: 8px; }
  .tour-facts > .facts-extra { align-items: flex-start; }
  .comfort-options { gap: 10px; }
  .footer-tours { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .footer-bottom::before { left: 16px; right: 16px; }
  .comfort { padding: 12px 13px; }
  .comfort p { font-size: .84rem; }
  .hero-actions .btn { flex: 1; text-align: center; white-space: nowrap; padding-left: 1em; padding-right: 1em; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery figure { border-radius: 10px; }
  .gallery figcaption { font-size: .78rem; padding: 24px 10px 8px; }
  .lightbox { padding: 56px 8px calc(84px + env(safe-area-inset-bottom)); }
  .lightbox img { max-height: calc(100vh - 170px); }
  .lb-prev, .lb-next { top: auto; bottom: calc(20px + env(safe-area-inset-bottom)); transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .day-photo img { height: 120px; }
  .stay-list li { flex-direction: column; gap: 0; text-align: left; }
  /* quiz slides up from the bottom like a sheet */
  .quiz { width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: 18px 18px 0 0; transform: translateY(24px); }
  .quiz[open] { transform: none; }
  @starting-style { .quiz[open] { transform: translateY(24px); } }
  .quiz-head { padding: 18px 60px 0 18px; }
  .quiz-body { padding: 16px 18px calc(22px + env(safe-area-inset-bottom)); }
  .quiz-body h3 { font-size: 1.3rem; }
  .quiz-match { grid-template-columns: 84px 1fr; }
  .quiz-match img { width: 84px; height: 64px; }
  .quiz-actions .btn { flex: 1 1 100%; text-align: center; }
  .back-link { font-size: .88rem; white-space: nowrap; }
  .hero-tag:nth-child(3) { flex-basis: 100%; }
  .hero-tag:nth-child(3)::before { display: none; }
  .timeline > li { padding-left: 58px; }
  .day-num { width: 42px; height: 42px; }
  .timeline > li::before { left: 20px; top: 42px; }
  .booking-form { padding: 22px 18px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* the narrowest phones have no room for "Book" beside the logo: it stays in the menu */
@media (max-width: 379px) {
  .header-book { display: none; }
}

/* ===== Motion (only for visitors who haven't asked their device for less of it) ===== */
@media (prefers-reduced-motion: no-preference) {
  /* pages cross-fade into each other instead of flashing */
  @view-transition { navigation: auto; }
  /* blocks fade up as they scroll into view; motion.js adds and removes these classes */
  .reveal {
    opacity: 0; transform: translateY(18px);
    transition: opacity .7s var(--ease-out) var(--wait, 0ms), transform .7s var(--ease-out) var(--wait, 0ms);
  }
  .reveal.in { opacity: 1; transform: none; }
  /* the welcome: the photo settles while the words arrive */
  .hero-photo, .tour-hero > img { animation: photo-settle 2.4s var(--ease-out) both; }
  .hero h1, .hero .lead, .hero-actions, .tour-hero h1, .tour-hero .hero-tags { animation: words-in .9s var(--ease-out) both; }
  .hero .lead, .tour-hero .hero-tags { animation-delay: .12s; }
  .hero-actions { animation-delay: .24s; }
}
@keyframes photo-settle { from { transform: scale(1.06); } }
@keyframes words-in { from { opacity: 0; transform: translateY(16px); } }

/* ===== Print, and "Save as PDF": the tour itself, without menus, buttons or the footer ===== */
@media print {
  .site-header, .site-footer, .mobile-book-bar, .more-tours, .btn, .share-btn, .tier, .route-inset, .route-note { display: none !important; }
  body { background: #fff; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .tour-hero { min-height: 0; color: var(--ink); background: none; }
  .tour-hero > img, .tour-hero::after { display: none; }
  .tour-hero .container { padding-top: 0; padding-bottom: 0; }
  .tour-hero h1, .hero-tags { text-shadow: none; }
  .tour-hero .level { color: var(--ink) !important; }
  .tour-layout { display: block; padding-top: 16px; padding-bottom: 0; }
  .booking-box { position: static; margin-top: 24px; border: 1px solid var(--line); }
  .timeline > li, .panel, .route-map, .booking-box { break-inside: avoid; }
  .day-photos { flex-wrap: wrap; overflow: visible; }
  .day-photo img { height: 90px; }
  a { color: inherit; text-decoration: none; }
}

/* Reduced motion: no movement or scaling, colour and fade changes only */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-property: opacity, background-color, border-color, color !important; }
  .btn:active, .tier button:active, .quiz-option:active { transform: none; }
  .quiz, .lightbox, .quiz[open] { transform: none; }
  @starting-style { .quiz[open], .lightbox[open] { transform: none; } }
}
