/* ==========================================================================
   Rila Private Transfers — style.css
   Alpenglow v4.0 · Dino33 LTD · Samokov Web Agency
   Static, vanilla CSS. No build step. No frameworks.

   Four-phase Alpenglow rebuild complete: foundation tokens, cinematic hero,
   Living Route Map (Phase 1); Routes/Tours/Fleet (Phase 2); Atmospheric
   transition, Why Us, How It Works, About, FAQ, Stats (Phase 3); Final CTA
   and Footer with the full D1 badge (Phase 4). Every rule now references
   Alpenglow tokens directly — the legacy Midday token-alias bridge used
   during the migration has been removed now that nothing reads through it.
   ========================================================================== */

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

:root {
  /* Alpenglow tokens (CLAUDE.md §3) */
  --alpenglow-gold:  #D9944A;   /* Primary CTA, route-line animation, key accents */
  --spruce:          #12211A;   /* Dark anchor — hero, footer, deep text */
  --cream:           #F1ECE0;   /* Dominant page background */

  --warm-sand:       #F8F4EC;   /* Alternate section band */
  --paper:           #FBF8F1;   /* Card/widget surface */
  --ember:           #E7B072;   /* Lighter gold — hover, secondary accent */
  --deep-spruce-1:   #0C1A13;   /* Hero gradient top */
  --deep-spruce-2:   #0A130E;   /* Hero gradient darkest */
  --fern-muted:      #9BAAA6;   /* Secondary text */
  --fern-muted-2:    #8A9280;   /* Meta labels, placeholder text */
  --line:            #E0D8C7;   /* Borders */
  --line-2:          #EDE4D3;

  --radius-card:    18px;
  --radius-widget:  20px;
  --radius-field:   11px;
  --radius-button:  11px;
  --radius-pill:    999px;

  --shadow-card:       0 6px 16px rgba(18, 33, 26, 0.08);
  --shadow-card-hover: 0 18px 40px rgba(18, 33, 26, 0.16);
  --shadow-widget:     0 30px 70px rgba(0, 0, 0, 0.4);

  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 32px;
  --space-5: 48px; --space-6: 64px; --space-7: 96px; --space-8: 128px;
  --max-width: 1200px; --gutter: 24px; --gutter-mobile: 16px;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--spruce);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--alpenglow-gold);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Typography scale (CLAUDE.md §3)
   -------------------------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--spruce);
}

h2 { font-weight: 600; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.05; }
h3 { font-weight: 600; font-size: clamp(21px, 2.5vw, 26px); line-height: 1.3; }

.type-hero-h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 0.98;
}

.type-body-large { font-size: 18px; line-height: 1.55; }
.type-small { font-size: 14px; line-height: 1.55; }

.type-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.type-nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
}

.type-cta {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.type-trust-chip { font-family: var(--font-body); font-weight: 500; font-size: 13px; }
.type-meta { font-family: var(--font-body); font-size: 13px; color: var(--fern-muted); }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes icon-bounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* .rise starts inert; main.js's IntersectionObserver adds .rise-pending then
   .rise-in as elements scroll into view. If JS never runs, plain .rise has
   no transform/opacity effect, so content stays visible without JS. */
.rise { animation: none; }
.rise.rise-pending { opacity: 0; transform: translateY(22px); }
.rise.rise-in { animation: rise 0.7s ease both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* --------------------------------------------------------------------------
   Signature rule + placeholder + utility classes
   -------------------------------------------------------------------------- */

.rule-signature {
  width: 64px;
  height: 2px;
  background: var(--alpenglow-gold);
  border: none;
  margin: 20px 0 22px;
}

.placeholder {
  color: var(--fern-muted-2);
  font-style: italic;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

section[id] {
  scroll-margin-top: 90px;
}

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter-mobile);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--gutter); }
}

/* --------------------------------------------------------------------------
   Language toggle mechanics
   -------------------------------------------------------------------------- */

html[lang="en"] [data-lang="bg"] { display: none; }
html[lang="bg"] [data-lang="en"] { display: none; }

/* --------------------------------------------------------------------------
   Card system (CLAUDE.md §7 / brand-guidelines.md §9)
   -------------------------------------------------------------------------- */

.card {
  background: var(--paper);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.card--dark {
  background: var(--spruce);
  color: var(--cream);
}

/* --------------------------------------------------------------------------
   Button system (CLAUDE.md §3 + carried-forward WhatsApp/Viber treatment)
   -------------------------------------------------------------------------- */

.btn-primary,
.btn-outline,
.btn-whatsapp,
.btn-viber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 24px;
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0 0 0 rgba(18, 33, 26, 0);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.btn-primary:hover,
.btn-outline:hover,
.btn-whatsapp:hover,
.btn-viber:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(18, 33, 26, 0.22);
}

.btn-primary:hover svg,
.btn-outline:hover svg,
.btn-whatsapp:hover svg,
.btn-viber:hover svg {
  animation: icon-bounce 0.3s ease;
}

.btn-primary {
  background: var(--alpenglow-gold);
  color: #FFFFFF;
  border: none;
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-outline {
  background: transparent;
  color: var(--spruce);
  border: 1px solid var(--spruce);
}

.btn-outline:hover {
  background: var(--spruce);
  color: var(--cream);
}

/* WhatsApp/Viber — gradient fill, logo icons, hover-bounce. Carried forward
   from the last design-review pass unchanged: these brand gradients aren't
   Alpenglow tokens (WhatsApp/Viber own them), so there's nothing to re-skin. */

.btn-whatsapp,
.btn-viber {
  gap: 10px;
  color: #FFFFFF;
  border: none;
  border-radius: 16px;
  padding: 16px 26px;
  font-weight: 700;
}

.btn-whatsapp svg,
.btn-viber svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.btn-whatsapp:hover {
  filter: brightness(1.08);
}

.btn-viber {
  background: linear-gradient(135deg, #7360F2, #5F4FD1);
}

.btn-viber:hover {
  filter: brightness(1.08);
}

.btn-primary:focus-visible,
.btn-outline:focus-visible {
  outline: 2px solid var(--alpenglow-gold);
  outline-offset: 2px;
}

.btn-whatsapp:focus-visible,
.btn-viber:focus-visible {
  outline: 2px solid var(--alpenglow-gold);
  outline-offset: 2px;
}

/* ==========================================================================
   Navbar — faithful port, design/alpenglow_direction/Rila Homepage.dc.html
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 236, 224, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.navbar {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--spruce);
}

.logo-mark {
  width: 52px;
  flex-shrink: 0;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.wordmark-main {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: .04em;
  display: block;
  line-height: .9;
  color: var(--spruce);
}

/* Dark Pine, not gold — this instance sits on the light beige navbar,
   where gold-on-cream reads too low-contrast to be legible. The footer's
   .footer-wordmark-sub keeps the gold (var(--alpenglow-gold)) since that
   one sits on the dark footer, where it reads fine. */
.wordmark-sub {
  font-size: 9px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--spruce);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-size: 14px;
  color: #3A473C;
  font-weight: 500;
  transition: color 0.16s ease;
}

.nav-links a:hover {
  color: var(--alpenglow-gold);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* .nav-links carries the margin-left:auto push on desktop (900px+), so it
   and .nav-right land grouped together on the right with the logo alone
   on the left. Below 900px .nav-links is display:none and can't push
   anything, so .nav-right takes over the auto-margin job itself — without
   this, the hamburger would collapse flush against the logo on mobile. */
@media (max-width: 899.98px) {
  .nav-right {
    margin-left: auto;
  }
}

.nav-cta {
  display: none;
  background: var(--alpenglow-gold);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 11px;
  transition: transform .16s ease, filter .16s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

@media (min-width: 640px) {
  .nav-cta { display: inline-flex; }
}

.lang-toggle {
  position: relative;
  display: none;
  align-items: center;
  gap: 2px;
  border: 1px solid #C9C0AE;
  border-radius: var(--radius-pill);
  padding: 5px 11px;
  font-size: 12px;
  color: #3A473C;
}

@media (min-width: 900px) {
  .lang-toggle { display: flex; }
}

.lang-toggle-full {
  padding: 2px 5px;
  font-family: var(--font-body);
  color: inherit;
  border-radius: var(--radius-pill);
  transition: background-color 0.16s ease, color 0.16s ease;
}

.lang-toggle-full:hover {
  background: rgba(18, 33, 26, 0.06);
}

html[lang="en"] .lang-toggle-full[data-lang-option="en"],
html[lang="bg"] .lang-toggle-full[data-lang-option="bg"] {
  background: var(--alpenglow-gold);
  color: #FFFFFF;
}

.lang-divider {
  color: #C9C0AE;
}

.lang-toggle-compact {
  display: inline-flex;
  padding: 5px 11px;
  border: 1px solid #C9C0AE;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 12px;
  color: #3A473C;
}

@media (min-width: 900px) {
  .lang-toggle-compact { display: none; }
}

.hamburger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--spruce);
}

@media (min-width: 900px) {
  .hamburger { display: none; }
}

.hamburger-icon-close { display: none; }
.hamburger.is-open .hamburger-icon-open { display: none; }
.hamburger.is-open .hamburger-icon-close { display: block; }

/* Mobile nav overlay — full-screen, solid background, a sibling of
   <header> so .site-header's backdrop-filter can't hijack its
   position:fixed containing block (see the HTML comment above this
   element for the full explanation). z-index sits just below the
   header's (50) so the sticky bar — including the hamburger, now shown
   as an X via .hamburger.is-open — stays visible and tappable above the
   panel the whole time it's open. */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: var(--spruce);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Language switch, surfaced near the top of the overlay where it's easy
   to reach with a thumb — the desktop pill toggle in the header is
   reachable there, but not from inside this full-screen panel. */
.mobile-nav-lang {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 88px 24px 0;
}

.mobile-lang-btn {
  flex: 1;
  max-width: 120px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(241, 236, 224, .35);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--cream);
  background: transparent;
  transition: background-color .16s ease, border-color .16s ease;
}

.mobile-lang-btn:hover,
.mobile-lang-btn:focus-visible {
  border-color: var(--alpenglow-gold);
}

.mobile-nav-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 340px;
  margin-inline: auto;
  padding: 24px var(--space-4);
  gap: 6px;
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: var(--radius-button);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 21px;
  color: var(--cream);
  text-align: center;
  transition: background-color .16s ease;
}

.mobile-nav-list a:hover,
.mobile-nav-list a:focus-visible {
  background: rgba(241, 236, 224, .1);
}

@media (min-width: 900px) {
  .mobile-nav-overlay {
    display: none;
  }
}

/* ==========================================================================
   Hero — faithful port, design/alpenglow_direction/Rila Homepage.dc.html
   ========================================================================== */

#hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--deep-spruce-1), var(--spruce));
  color: var(--cream);
}

.hero-photo-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  /* Radial "dark pool" layered over the original linear taper, centered
     on the text column (roughly where the H1 sits) rather than darkening
     the whole photo uniformly — the linear gradient alone wasn't dark
     enough directly behind the text. Fades out toward the right (widget
     side) and bottom, where there's no text to protect. */
  background:
    radial-gradient(60% 75% at 30% 40%, rgba(5, 11, 8, .68) 0%, rgba(6, 13, 9, .48) 42%, rgba(6, 13, 9, .14) 72%, rgba(6, 13, 9, 0) 92%),
    linear-gradient(90deg, rgba(10, 19, 14, .72) 0%, rgba(12, 26, 19, .34) 40%, rgba(12, 26, 19, .04) 68%, rgba(12, 26, 19, 0) 100%);
}

.hero-scrim-top {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 19, 14, .2) 0%, transparent 30%);
}

.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: clamp(60px, 10vh, 110px) 28px clamp(60px, 9vh, 96px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 52px;
}

@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
  }
}

.hero-eyebrow {
  font-size: 11.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 600;
}

.hero-left h1 {
  /* Was silently overriding .type-hero-h1's font-weight:700 down to 600 —
     .hero-left h1 (class+element, specificity 0,1,1) beats .type-hero-h1
     (class only, 0,1,0) regardless of source order, so the H1 was
     rendering two weights lighter than intended. 700 is Cormorant
     Garamond's heaviest weight available on Google Fonts (only 600/700
     are loaded, per the <link> in index.html's <head> — there's no
     800/900 for this family), so matching it here rather than fighting
     the cascade is the actual fix, not just a shadow trick. */
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--cream);
  margin-top: 16px;
  text-shadow: 0 0 3px rgba(0, 0, 0, .5), 0 0 8px rgba(0, 0, 0, .4);
}

.hero-rule {
  width: 64px;
  height: 2px;
  background: var(--alpenglow-gold);
  border: none;
  margin: 22px 0;
}

.hero-subtitle {
  font-size: 17.5px;
  line-height: 1.6;
  color: rgba(241, 236, 224, .88);
  max-width: 440px;
  text-shadow: 0 0 3px rgba(0, 0, 0, .5), 0 0 6px rgba(0, 0, 0, .4);
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.trust-chips li {
  color: var(--cream);
  background: rgba(245, 239, 227, .14);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
}

/* Instant-messaging contact block — sits directly under the trust chips
   in the hero's left column. */

.hero-instant-divider {
  width: 100%;
  height: 1px;
  background: rgba(241, 236, 224, .18);
  border: none;
  margin: 26px 0 20px;
}

.hero-instant-label {
  font-size: 11.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 600;
}

.hero-instant-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hero-instant-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  transition: transform .16s ease, filter .16s ease;
}

.hero-instant-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hero-instant-btn:hover,
.hero-instant-btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.hero-instant-btn--whatsapp {
  background: linear-gradient(135deg, #25D366, #128C4B);
}

.hero-instant-btn--viber {
  background: linear-gradient(135deg, #8F7BF5, #5D4BC4);
}

/* ==========================================================================
   Booking widget — faithful port, design/alpenglow_direction/Rila Homepage.dc.html
   Single-step: composes a WhatsApp message directly on "Continue" — the
   mockup has no multi-step flow, no Formspree submission, no progress bar,
   no price callout, no in-widget WhatsApp/Viber channel row. Ported exactly;
   see BUILD_PLAN.md for the consequences of dropping the earlier-session
   two-step/lead-capture flow.
   ========================================================================== */

.booking-widget {
  width: 100%;
  background: var(--paper);
  color: #1E2B22;
  border-radius: var(--radius-widget);
  box-shadow: var(--shadow-widget);
  padding: 26px 24px;
}

.booking-widget h2 {
  font-size: 24px;
  color: var(--spruce);
}

.widget-subtitle {
  font-size: 13px;
  color: #7A8A72;
  margin-top: 2px;
}

.widget-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}

.widget-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.widget-field label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fern-muted-2);
  font-weight: 600;
}

.widget-pax-cap {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
  color: var(--fern-muted-2);
}

.widget-field input,
.widget-field select {
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  padding: 11px 13px;
  font-size: 14px;
  font-family: var(--font-body);
  color: #1E2B22;
  background: #FFFFFF;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 44px;
}

/* The mockup's own #ag-to <select> has no custom arrow at all — just the
   same box styling as its text-input siblings, left to render the
   browser's native dropdown chevron. Adding appearance:none + a custom
   SVG chevron here is a deliberate improvement beyond the mockup, to fix
   the native-select look this field alone had versus every other field
   in the widget. Native select behavior (tap target, OS picker) is left
   untouched on mobile — only the visual chrome changes. */
.widget-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%238A9280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 12px 8px;
  cursor: pointer;
}

/* Date/Time — ROOT CAUSE of the overflow bug: these two fields used to
   be the only ones wrapped in an extra <div class="widget-input-wrap">
   (needed to position the placeholder below), while From/To sit
   directly in .widget-field. That wrapper was itself width:100%/
   box-sizing:border-box — correct on paper — but on real mobile Safari,
   a native input[type=date]/[type=time] can still render at its own
   internal minimum content width (enough room for every day/month/year
   segment + the picker icon) wider than that box, regardless of the
   box's own CSS width/max-width; several rounds of box-sizing-only fixes
   didn't touch that, because it isn't a box-model bug. Two changes fix
   it together:
   1. The wrapper is gone. The <input> is now a direct child of
      .widget-field, exactly like #widget-from/#widget-to — identical
      container, identical width rule (the shared ".widget-field input"
      rule below), so there is no longer a second element that could
      compute a different width in the first place. The placeholder
      <span> is now a plain sibling of the input, positioned against
      .widget-field itself (which gained position:relative) and anchored
      from the bottom rather than vertically centered in the whole field,
      since the label sits above the input inside that same box.
   2. appearance:none (already used on the <to> <select> a few rules up)
      switches Safari off its native date/time control chrome, which is
      what was ignoring max-width — the same fix, applied to the other
      native form control on this page that needed it.
   required is still just a CSS :valid/:invalid hook to toggle the
   placeholder — there's no <form> on this page, so it has no effect on
   submission/validation behavior. */
.widget-field input[type="date"],
.widget-field input[type="time"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.widget-field input[type="date"]:invalid,
.widget-field input[type="time"]:invalid {
  color: transparent;
  box-shadow: none;
  outline: none;
}

.widget-input-placeholder {
  position: absolute;
  left: 13px;
  bottom: 15px;
  font-size: 14px;
  font-family: var(--font-body);
  color: #8A9280;
  pointer-events: none;
}

.widget-field input:valid ~ .widget-input-placeholder {
  display: none;
}

.widget-row {
  display: flex;
  gap: 10px;
}

.widget-row .widget-field { flex: 1; }

/* Passengers — stepper control */

.widget-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  overflow: hidden;
  background: #FFFFFF;
}

.widget-stepper-btn {
  width: 38px;
  height: 42px;
  border: none;
  background: var(--cream);
  font-size: 18px;
  cursor: pointer;
  color: var(--spruce);
}

.widget-stepper-value {
  flex: 1;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--spruce);
}

/* Vehicle toggle */

.widget-vehicle-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  overflow: hidden;
  background: #FFFFFF;
}

.widget-vehicle-btn {
  flex: 1;
  height: 42px;
  border: none;
  background: #FFFFFF;
  font-size: 13px;
  cursor: pointer;
  color: #5C6B60;
  font-weight: 400;
  font-family: inherit;
}

/* Quieter selected state — Dark Pine equivalent, not gold, so the
   "Continue on WhatsApp" button stays the one dominant gold element. */
.widget-vehicle-btn.is-active {
  background: var(--spruce);
  color: var(--cream);
  font-weight: 600;
}

.widget-vehicle-btn:focus-visible,
.widget-stepper-btn:focus-visible {
  outline: 2px solid var(--alpenglow-gold);
  outline-offset: -2px;
}

.widget-submit {
  width: 100%;
  padding: 14px;
}

.widget-note {
  font-size: 12px;
  color: var(--fern-muted-2);
  text-align: center;
}

/* ==========================================================================
   Living Route Map — faithful port, design/alpenglow_direction/Rila Homepage.dc.html
   ========================================================================== */

#map {
  background: var(--warm-sand);
  padding: clamp(70px, 10vh, 120px) 28px;
}

.map-eyebrow {
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #A96C24;
  font-weight: 600;
}

.map-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.05;
  margin-top: 10px;
  max-width: 20ch;
}

.map-subtitle {
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.7;
  color: #5C6B60;
  margin-top: 14px;
}

.map-origin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.map-origin-row-label {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fern-muted-2);
  font-weight: 600;
}

.map-origin-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: #FFFFFF;
}

.map-origin-btn {
  border: none;
  background: #FFFFFF;
  color: #5C6B60;
  font-weight: 400;
  font-family: inherit;
  font-size: 13px;
  padding: 9px 18px;
  cursor: pointer;
}

.map-origin-btn.is-active {
  background: var(--alpenglow-gold);
  color: #FFFFFF;
  font-weight: 600;
}

.map-origin-btn:focus-visible {
  outline: 2px solid var(--alpenglow-gold);
  outline-offset: -2px;
}

.map-reverse-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  color: #5C6B60;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease;
}

.map-reverse-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.map-reverse-btn.is-active {
  border-color: var(--alpenglow-gold);
  color: var(--alpenglow-gold);
  font-weight: 600;
}

.map-reverse-btn:focus-visible {
  outline: 2px solid var(--alpenglow-gold);
  outline-offset: 2px;
}

.map-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 22px;
}

@media (min-width: 900px) {
  .map-grid {
    grid-template-columns: 1.55fr 1fr;
  }
}

.map-svg-frame {
  position: relative;
  background: linear-gradient(180deg, var(--deep-spruce-1), var(--spruce));
  border-radius: 20px;
  padding: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(18, 33, 26, .25);
}

.map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-terrain-far { fill: #16281F; }
.map-terrain-near { fill: #0E1B14; }
.map-terrain-shade { fill: #152A21; opacity: .65; }

.map-region-label {
  fill: #374B40;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
}

.map-route-line {
  fill: none;
  stroke: var(--alpenglow-gold);
  stroke-width: 4;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(217, 148, 74, .55));
  transition: opacity .25s ease;
}

.map-origin-ring {
  fill: none;
  stroke: var(--alpenglow-gold);
  stroke-width: 1.5;
  transition: opacity .2s ease;
}

.map-origin-dot {
  fill: var(--alpenglow-gold);
  stroke: var(--alpenglow-gold);
  stroke-width: 2.5;
  transition: fill .2s ease, stroke .2s ease;
}

.map-origin-dot.is-inactive {
  fill: #243A30;
  stroke: #5E6E64;
}

.map-origin-label {
  fill: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
}

.map-dest {
  cursor: pointer;
}

.map-dest circle {
  fill: var(--spruce);
  stroke: var(--cream);
  stroke-width: 2.5;
  transition: fill .2s ease, stroke .2s ease, r .2s ease;
}

.map-dest.is-active circle {
  fill: var(--alpenglow-gold);
  stroke: var(--alpenglow-gold);
  r: 9;
}

.map-dest text {
  fill: #C6C7BC;
  font-family: var(--font-body);
  font-size: 14px;
}

.map-panel {
  background: var(--paper);
  border: 1px solid #EDE4D3;
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}

.map-panel-eyebrow {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #A96C24;
  font-weight: 600;
}

.map-panel-body {
  margin-top: auto;
  margin-bottom: auto;
  padding: 20px 0;
}

.map-panel-default-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 26px;
  color: var(--spruce);
  line-height: 1.1;
}

.map-panel-default-body {
  font-size: 14px;
  color: #5C6B60;
  margin-top: 10px;
  line-height: 1.6;
}

.map-panel-region {
  font-size: 12px;
  color: var(--fern-muted-2);
}

.map-panel-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 30px;
  color: var(--spruce);
  margin-top: 2px;
  line-height: 1.05;
}

.map-panel-route {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: #A96C24;
  margin-top: 6px;
}

.map-panel-blurb {
  font-size: 14px;
  color: #5C6B60;
  margin-top: 8px;
  line-height: 1.55;
}

.map-panel-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.map-panel-stat-label {
  display: block;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fern-muted-2);
}

.map-panel-stat-value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  color: var(--spruce);
}

.map-panel-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 18px;
  border-top: 1px solid #EDE4D3;
  padding-top: 16px;
}

.map-panel-price-value {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.map-panel-price-amount {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 30px;
  color: var(--spruce);
  line-height: 1;
}

.map-panel-price-tag {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--fern-muted-2);
}

.map-panel-cta {
  background: var(--alpenglow-gold);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 11px;
}

.map-disclaimer {
  font-size: 13px;
  color: var(--fern-muted-2);
  margin-top: 14px;
}

.map-disclaimer-tag {
  font-family: monospace;
  color: #B0742E;
}

/* ==========================================================================
   LEGACY MIDDAY STYLING — everything from #stats downward
   Carried forward verbatim from assets/css/archive/style-v2-midday.css.
   These sections still use Midday markup and were explicitly out of scope
   for Phase 1 ("do not touch anything below #map"). Resolves through the
   legacy token aliases in :root above. Recolor + remove aliases in
   Phases 2-4 as each section is rebuilt for Alpenglow.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Key Stats
   -------------------------------------------------------------------------- */

#stats {
  background: var(--cream);
  border-bottom: 1px solid #E6DECD;
}

.stats-grid {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 34px 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: center;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 40px;
  color: var(--spruce);
}

.stat-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fern-muted-2);
}

/* --------------------------------------------------------------------------
   Shared section + card-grid + card--dark scaffolding
   -------------------------------------------------------------------------- */

#routes,
#tours,
#fleet {
  padding: var(--space-6) 0;
}

#routes {
  background: var(--cream);
}

#tours,
#fleet {
  background: var(--warm-sand);
}

@media (min-width: 768px) {
  #routes,
  #tours,
  #fleet {
    padding: var(--space-8) 0;
  }
}

.section-header {
  max-width: 640px;
  margin-bottom: var(--space-5);
}

.section-header .type-eyebrow {
  color: var(--fern-muted);
}

.section-header h2 {
  margin-top: 8px;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 18px;
  color: var(--fern-muted);
  margin-top: 4px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .card-grid--routes,
  .card-grid--tours { grid-template-columns: repeat(3, 1fr); }
}

.card--dark h3 {
  color: var(--cream);
}

/* --------------------------------------------------------------------------
   Routes — faithful port, design/alpenglow_direction/Rila Homepage.dc.html
   Scoped to #routes so Tours/Fleet (out of scope this pass) keep their
   existing shared .section-header/.card-grid styling untouched.
   -------------------------------------------------------------------------- */

.routes-eyebrow {
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #A96C24;
  font-weight: 600;
}

.routes-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.05;
  margin-top: 10px;
}

.routes-subtitle {
  font-size: 14px;
  color: var(--fern-muted-2);
  margin-top: 12px;
}

.routes-disclaimer-tag {
  font-family: monospace;
  color: #B0742E;
}

#routes .card-grid {
  margin-top: 40px;
}

.route-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 16px;
  border-top: 3px solid #2F4A3A;
  box-shadow: 0 6px 16px rgba(35, 32, 25, .06);
  transition: transform .22s ease, box-shadow .22s ease;
}

.route-card:hover,
.route-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(35, 32, 25, .14);
}

.route-card--highlight {
  border-top-color: var(--alpenglow-gold);
}

.route-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--spruce);
  color: var(--ember);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
}

.route-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fern-muted-2);
}

.route-eyebrow--gold {
  color: var(--ember);
}

.route-card h3 {
  font-size: 26px;
  margin-top: 6px;
}

.route-meta {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fern-muted-2);
  margin: 4px 0 12px;
}

.route-includes {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.route-includes li {
  position: relative;
  padding-left: 16px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.65;
  color: var(--spruce);
}

.route-includes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--spruce);
}

.route-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #EFE8D9;
}

.route-price-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.route-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.route-price-vehicle {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--fern-muted-2);
  white-space: nowrap;
}

.route-price-figure {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.route-price-amount {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  color: var(--spruce);
  line-height: 1;
}

.route-price-tag {
  font-family: var(--font-body);
  font-size: 10.5px;
  color: var(--fern-muted-2);
}

.route-reserve {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: #A96C24;
}

.route-card:hover .route-reserve,
.route-card:focus-visible .route-reserve {
  text-decoration: underline;
}

.route-card-custom {
  display: flex;
  flex-direction: column;
  background: var(--spruce);
  color: var(--cream);
  border-radius: 16px;
  border-top: 3px solid var(--alpenglow-gold);
  box-shadow: 0 6px 16px rgba(35, 32, 25, .06);
  transition: transform .22s ease, box-shadow .22s ease;
}

.route-card-custom:hover,
.route-card-custom:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(18, 33, 26, .3);
}

.route-card-custom h3 {
  color: var(--cream);
}

.route-custom-body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fern-muted);
  margin: 8px 0 0;
  line-height: 1.5;
  flex: 1;
}

.route-custom-cta {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--ember);
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #2A3B32;
}

/* --------------------------------------------------------------------------
   Day Tours — rebuilt from a data table into cards per explicit
   instruction. .tours-eyebrow/.tours-heading/.tours-subtitle/.tours-note
   are the section-level chrome (kept); everything below .tour-card is the
   per-card styling (new).
   -------------------------------------------------------------------------- */

.tours-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #A96C24;
  font-weight: 600;
}

.tours-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.05;
  margin-top: 10px;
  color: var(--spruce);
}

.tours-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: #5C6B60;
  margin-top: 14px;
  max-width: 56ch;
}

#tours .card-grid {
  margin-top: 40px;
}

.tour-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(35, 32, 25, .06);
  padding: 28px 26px;
}

.tour-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--alpenglow-gold);
}

.tour-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.15;
  color: var(--spruce);
  margin-top: 6px;
}

/* Vertical itinerary: a single dashed gold line spans the full list
   (drawn once on the <ol>, not per-stop), with a small gold ring marker
   on each stop sitting on top of it. One continuous line is more robust
   than per-item connector segments, which would need to know each
   stop's exact wrapped-text height to line up correctly. */
.tour-itinerary {
  position: relative;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.tour-itinerary::before {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 9px;
  bottom: 9px;
  border-left: 1.5px dashed var(--alpenglow-gold);
}

.tour-itinerary li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--spruce);
}

.tour-itinerary li:last-child {
  padding-bottom: 0;
}

.tour-itinerary li::before {
  content: '';
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  border: 2px solid var(--alpenglow-gold);
  background: #FFFFFF;
}

.tour-custom-body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: #5C6B60;
  margin-top: 14px;
  flex: 1;
}

/* Secondary CTA — outlined, not the solid gold Reserve/WhatsApp button,
   per explicit instruction that this stays visually quieter. */
.tour-cta {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  padding: 10px 18px;
  border: 1.5px solid var(--alpenglow-gold);
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--alpenglow-gold);
  background: transparent;
  transition: background-color .16s ease, color .16s ease;
}

.tour-cta:hover,
.tour-cta:focus-visible {
  background: var(--alpenglow-gold);
  color: #FFFFFF;
}

/* The "make your own" card — tinted fill + gold border so it reads as
   the distinct 7th option, not one of the six fixed itineraries. A flat
   var(--warm-sand) fill would blend into #tours' own section background
   (same color), so this uses a subtle gold wash instead — visibly
   distinct from both the white cards and the page behind them. */
.tour-card--custom {
  background: rgba(217, 148, 74, 0.08);
  border: 1.5px solid var(--alpenglow-gold);
}

.tours-note {
  font-family: var(--font-body);
  font-size: 14px;
  color: #5C6B60;
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   Services ("What we do") — faithful port of the mockup's #services
   section (design/alpenglow_direction/Rila Homepage.dc.html, lines
   310-349), styled with this site's live Alpenglow tokens rather than the
   old Stone & Mist / Dark Pine palette named in the request that added
   this section — see the HTML comment above #services and BUILD_PLAN.md.
   -------------------------------------------------------------------------- */

#services {
  background: var(--cream);
  padding: clamp(70px, 10vh, 120px) 28px;
}

.services-eyebrow {
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #A96C24;
  font-weight: 600;
}

.services-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.05;
  margin-top: 10px;
  color: var(--spruce);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 40px;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 6px 16px rgba(35, 32, 25, .05);
  transition: transform .22s ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-5px);
}

.service-card svg {
  width: 32px;
  height: 32px;
  color: var(--alpenglow-gold);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 23px;
  margin-top: 16px;
}

.service-card p {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.65;
  color: #5C6B60;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Fleet — faithful port of the mockup's photo gallery + lightbox (not a
   Vito/Sedan toggle, not two side-by-side class cards; confirmed by
   reading design/alpenglow_direction/Rila Homepage.dc.html directly).
   Literal hex values ported as-is, matching the precedent set by Routes,
   the Living Map, and Day Tours.
   -------------------------------------------------------------------------- */

.fleet-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #A96C24;
  font-weight: 600;
}

.fleet-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.05;
  margin-top: 10px;
  color: var(--spruce);
}

.fleet-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: #5C6B60;
  margin-top: 14px;
  max-width: 56ch;
}

.fleet-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.fleet-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid #EDE4D3;
  border-radius: var(--radius-pill);
  padding: 8px 16px 8px 12px;
}

.fleet-chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fleet-chip-dot--van {
  background: var(--alpenglow-gold);
}

.fleet-chip-dot--sedan {
  background: #2F4A3A;
}

.fleet-chip-name {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--spruce);
  font-weight: 600;
}

.fleet-chip-meta {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: #8A9280;
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 14px;
  margin-top: 24px;
}

/* Featured-plus-grid: one large card (the 3-vans lineup shot), the rest
   as equal smaller cards filling in around it. */
.fleet-thumb--featured {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 820px) {
  .fleet-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fleet-thumb--featured {
    grid-column: span 2;
    grid-row: span 1;
  }
}

.fleet-thumb {
  padding: 0;
  border: none;
  cursor: zoom-in;
  border-radius: 14px;
  overflow: hidden;
  background: #E7E0D1;
  aspect-ratio: 4 / 3;
  position: relative;
  display: block;
}

/* Overrides .fleet-thumb's 4:3 ratio — placed after that base rule so the
   cascade (equal specificity, later wins) actually applies it. auto lets
   the featured card stretch to fill its full 2x2 grid area on desktop;
   16:9 gives it a sane banner shape on mobile, where it only spans 1 row. */
.fleet-thumb--featured {
  aspect-ratio: auto;
}

@media (max-width: 820px) {
  .fleet-thumb--featured {
    aspect-ratio: 16 / 9;
  }
}

.fleet-thumb picture,
.fleet-thumb img {
  display: block;
  width: 100%;
  height: 100%;
}

.fleet-thumb img {
  object-fit: cover;
  transition: transform .5s ease;
}

.fleet-thumb:hover img {
  transform: scale(1.06);
}

.fleet-thumb:focus-visible {
  outline: 2px solid var(--alpenglow-gold);
  outline-offset: 2px;
}

.fleet-caption-note {
  font-family: var(--font-body);
  font-size: 13px;
  color: #8A9280;
  margin-top: 14px;
}

/* Back-to-top — fixed bottom-right. z-index sits below the mobile nav
   overlay's (40) so the overlay fully covers it while open, and below
   the header's (50); above ordinary page content otherwise. */
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 35;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--spruce);
  color: var(--cream);
  box-shadow: 0 6px 16px rgba(18, 33, 26, .28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--alpenglow-gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: opacity .25s ease, visibility .25s ease;
  }

  .back-to-top:hover {
    transform: none;
  }
}

/* iubenda footer links — neutralize the default embed-button chrome
   (iub_css, injected by the loader near the end of body, applies its own
   background/icon/border/padding/box-shadow to any .iubenda-embed link)
   so these two keep looking like plain footer links, matching every
   other .footer-legal/.footer-sitemap link. !important plus the #footer
   ID prefix are both needed: iub_css loads after this stylesheet, and
   its own rule for the lock-icon/padding is at least as specific as a
   plain two-class selector, so a same-specificity !important rule here
   doesn't reliably win — the #footer ID pushes this rule's specificity
   above any class-only selector iub_css can throw at it. */
#footer .footer-legal a.iubenda-embed {
  background: none !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  display: inline !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #C6C7BC !important;
}

#footer .footer-legal a.iubenda-embed:hover {
  color: var(--cream) !important;
}

/* iubenda in-page policy modal — shell only (overlay tint + the iframe's
   own outer rounding/shadow). The actual policy text renders inside a
   cross-origin iframe pointing at iubenda's hosted page, so there is no
   way to (and no attempt made to) restyle the content itself — only
   these three outer/shell elements are touched. Layout-critical
   properties (position/width/height/inset) are left alone since iubenda's
   own script manages those responsively; only cosmetic properties are
   overridden here. */
#iubenda-pp-overlay {
  background: rgba(10, 19, 14, 0.72) !important;
}

#iubenda-pp-popup {
  padding: 28px !important;
  box-sizing: border-box !important;
}

#iubenda-pp-content iframe {
  border-radius: 16px !important;
  box-shadow: 0 24px 60px rgba(10, 19, 14, .4) !important;
}

/* Fleet lightbox */

.fleet-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 14, 10, .92);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .22s ease;
}

.fleet-lightbox.open {
  display: flex;
  opacity: 1;
}

.fleet-lb-btn {
  position: absolute;
  border: none;
  border-radius: 50%;
  background: rgba(241, 236, 224, .12);
  color: var(--cream);
  cursor: pointer;
  line-height: 1;
}

.fleet-lb-close {
  top: 22px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 22px;
}

.fleet-lb-prev,
.fleet-lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 26px;
}

.fleet-lb-prev {
  left: 18px;
}

.fleet-lb-next {
  right: 18px;
}

.fleet-lb-figure {
  margin: 0;
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

#fleet-lb-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}

.fleet-lb-caption {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--cream);
}

#fleet-lb-cap {
  font-family: var(--font-heading);
  font-size: 22px;
}

#fleet-lb-count {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fern-muted);
}

/* --------------------------------------------------------------------------
   Atmospheric transition moment
   -------------------------------------------------------------------------- */

#atmospheric {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.atmospheric-photo-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

@keyframes drift {
  from { background-position: 0 0; }
  to { background-position: 140px 70px; }
}

.atmospheric-photo {
  position: absolute;
  inset: 0;
  background-image: url('../images/atmospheric/atmospheric-transition-600.webp');
  background-size: cover;
  background-position: center top;
  animation: drift 38s linear infinite;
}

@media (min-width: 640px) {
  .atmospheric-photo { background-image: url('../images/atmospheric/atmospheric-transition-1000.webp'); }
}

@media (min-width: 1400px) {
  .atmospheric-photo { background-image: url('../images/atmospheric/atmospheric-transition-1600.webp'); }
}

.atmospheric-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 26, 19, 0.92), rgba(18, 33, 26, 0.87));
}

.atmospheric-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-6) var(--gutter-mobile);
}

.atmospheric-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--alpenglow-gold);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.atmospheric-line {
  font-family: var(--font-heading);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.2;
  color: var(--cream);
  max-width: 720px;
  margin-top: var(--space-2);
}

.atmospheric-content .rule-signature {
  margin: var(--space-3) auto 0;
}

/* --------------------------------------------------------------------------
   Why Us — faithful port of the mockup's plain 4-item strip (no eyebrow,
   no H2, no icons; confirmed by reading
   design/alpenglow_direction/Rila Homepage.dc.html directly). Literal hex
   values ported as-is, matching the precedent set by Routes, the Living
   Map, Day Tours, and Fleet.
   -------------------------------------------------------------------------- */

#why {
  background: var(--cream);
  padding: clamp(50px, 7vh, 80px) 0;
}

.why-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
}

.why-strip-item h3 {
  font-family: var(--font-heading);
  font-size: 21px;
  color: var(--spruce);
}

.why-strip-item p {
  font-family: var(--font-body);
  font-size: 14px;
  color: #5C6B60;
  margin-top: 6px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   FAQ — no mockup source exists for this section; header restyled to reuse
   the eyebrow/H2 treatment established by Routes & Pricing's faithful
   port. Background is Warm Sand: with How It Works removed entirely, the
   run is now Why Us (Cream) -> FAQ (Sand) -> Final CTA (dark), a real
   alternation again (an earlier pass had flipped FAQ to Cream specifically
   to avoid sitting next to How It Works' own Sand background — that
   reasoning no longer applies now that section is gone). Accordion
   border/marker/hover already used var(--line)/var(--alpenglow-gold) —
   the exact tokens this task asked to match against Routes' cards — so
   only spacing/radius were brought closer to that card language, not the
   colors themselves.
   -------------------------------------------------------------------------- */

#faq {
  background: var(--warm-sand);
  padding: var(--space-6) 0;
}

@media (min-width: 768px) {
  #faq { padding: var(--space-8) 0; }
}

.faq-eyebrow {
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #A96C24;
  font-weight: 600;
}

.faq-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.05;
  margin-top: 10px;
  color: var(--spruce);
}

.faq-header {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.faq-list {
  max-width: 720px;
  margin-inline: auto;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Each question is now its own bordered/radius surface — Routes cards'
   var(--line) border + 16px-scale radius language — instead of a flat
   divided list, with a subtle gold border-on-hover echoing the gold
   top-border accent Routes uses for its highlighted cards. */
.faq-list details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.faq-list details:hover,
.faq-list details[open] {
  border-color: var(--alpenglow-gold);
  box-shadow: 0 6px 16px rgba(35, 32, 25, .06);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) 20px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--spruce);
  transition: color 0.15s ease;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary:hover {
  color: var(--alpenglow-gold);
}

.faq-marker {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--alpenglow-gold);
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 400;
}

.faq-marker::before {
  content: "+";
}

details[open] .faq-marker::before {
  content: "\2212";
}

.faq-list details p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--spruce);
  padding: 0 20px var(--space-4);
  max-width: 640px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* --------------------------------------------------------------------------
   Final CTA — faithful re-port of the mockup's dark closing band
   (design/alpenglow_direction/Rila Homepage.dc.html, lines 387-399).
   Literal hex values ported as-is, matching the precedent set by every
   other faithful-port pass. Replaces the previous contact-tiles design,
   which had drifted from this — see BUILD_PLAN.md.
   -------------------------------------------------------------------------- */

#book {
  position: relative;
  background: linear-gradient(180deg, #12211A, #0A130E);
  color: var(--cream);
  padding: clamp(80px, 12vh, 140px) 28px;
  text-align: center;
  overflow: hidden;
}

.finalcta-glow {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 60vw;
  height: 30vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 148, 74, .28), transparent 66%);
  pointer-events: none;
}

.finalcta-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.finalcta-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 600;
}

.finalcta-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(32px, 5.4vw, 58px);
  line-height: 1.05;
  margin-top: 16px;
  color: var(--cream);
}

.finalcta-rule {
  width: 64px;
  height: 2px;
  background: var(--alpenglow-gold);
  margin: 24px auto;
}

.finalcta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.finalcta-btn {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 15px 28px;
  border-radius: 12px;
  display: inline-block;
}

.finalcta-btn--primary {
  background: var(--alpenglow-gold);
  color: #fff;
  transition: transform .16s ease, filter .16s ease;
}

.finalcta-btn--primary:hover,
.finalcta-btn--primary:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.finalcta-btn--outline {
  border: 1px solid rgba(241, 236, 224, .35);
  color: var(--cream);
  transition: background .16s ease;
}

.finalcta-btn--outline:hover,
.finalcta-btn--outline:focus-visible {
  background: rgba(241, 236, 224, .1);
}

/* --------------------------------------------------------------------------
   Footer — faithful re-port of the mockup's footer
   (design/alpenglow_direction/Rila Homepage.dc.html, lines 401-441).
   Literal hex values ported as-is; grid uses the mockup's own
   repeat(auto-fit,minmax(200px,1fr)) so the added 4th "Legal" column
   (not in the mockup — see BUILD_PLAN.md) wraps gracefully alongside the
   mockup's original 3.
   -------------------------------------------------------------------------- */

#footer {
  background: var(--deep-spruce-2);
  color: var(--fern-muted);
  padding: 56px 28px 40px;
}

.footer-columns {
  max-width: var(--max-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-logo svg {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.footer-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.footer-wordmark-main {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--cream);
  display: block;
  line-height: .9;
}

.footer-wordmark-sub {
  font-size: 9px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--alpenglow-gold);
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 32ch;
}

.footer-col-heading {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #5E6E64;
  margin-bottom: 14px;
}

.footer-sitemap ul,
.footer-legal ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-sitemap a,
.footer-legal a,
.footer-sitemap span {
  font-family: var(--font-body);
  font-size: 14px;
  color: #C6C7BC;
  transition: color 150ms ease;
}

.footer-sitemap a:hover,
.footer-legal a:hover {
  color: var(--cream);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid #1B2A22;
  font-size: 12px;
  color: #5E6E64;
  text-align: center;
}

.footer-copyright {
  font-family: var(--font-body);
  font-size: 12px;
  color: #5E6E64;
}
