/* ==========================================================================
   BESTTRIPSNOW.COM — DESIGN SYSTEM STYLESHEET
   Adapted from the provided Amtrak-inspired design token spec.
   ========================================================================== */

/* 1. DESIGN TOKENS ---------------------------------------------------------*/
:root {
  /* Brand colors */
  --btn-navy-900: #002244;
  --btn-blue-700: #00537E;
  --btn-blue-600: #0078B9;
  --btn-cyan-400: #0096CE;
  --btn-cyan-300: #00B5E2;
  --btn-red-600: #D52B1E;
  --btn-red-700: #B82015;
  --btn-gold-500: #FFC709;
  --btn-gold-600: #E5B200;
  --btn-green-600: #1A8738;

  /* Neutrals */
  --btn-neutral-900: #1C2530;
  --btn-neutral-600: #5A6B7C;
  --btn-neutral-300: #D1D8E0;
  --btn-neutral-100: #F4F6F8;
  --btn-white: #FFFFFF;

  /* Semantic */
  --btn-color-brand-primary: var(--btn-blue-700);
  --btn-color-brand-primary-hover: var(--btn-blue-600);
  --btn-color-brand-header: var(--btn-navy-900);
  --btn-color-brand-accent: var(--btn-cyan-400);

  --btn-surface-base: var(--btn-white);
  --btn-surface-subtle: var(--btn-neutral-100);
  --btn-surface-elevated: var(--btn-white);
  --btn-surface-dark: var(--btn-navy-900);

  --btn-text-primary: var(--btn-neutral-900);
  --btn-text-secondary: var(--btn-neutral-600);
  --btn-text-on-dark: #FFFFFF;
  --btn-text-link: var(--btn-blue-700);
  --btn-text-link-hover: var(--btn-blue-600);

  --btn-border-default: var(--btn-neutral-300);
  --btn-border-focus: var(--btn-cyan-400);
  --btn-focus-ring: 0 0 0 3px rgba(0, 150, 206, 0.4);

  --btn-status-success-bg: #EAF7ED;
  --btn-status-success-text: #1A8738;
  --btn-status-warning-bg: #FFF8E6;
  --btn-status-warning-text: #B45309;
  --btn-status-error-bg: #FDF2F2;
  --btn-status-error-text: #D52B1E;

  /* Typography */
  --btn-font-family: 'Helvetica Neue', Helvetica, Arial, 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --btn-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  /* Spacing (8pt grid) */
  --btn-space-1: 4px;
  --btn-space-2: 8px;
  --btn-space-3: 12px;
  --btn-space-4: 16px;
  --btn-space-6: 24px;
  --btn-space-8: 32px;
  --btn-space-12: 48px;
  --btn-space-16: 64px;

  /* Radius */
  --btn-radius-sm: 4px;
  --btn-radius-md: 8px;
  --btn-radius-lg: 16px;
  --btn-radius-pill: 9999px;

  /* Shadows */
  --btn-shadow-card: 0 2px 4px rgba(0, 34, 68, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --btn-shadow-hover: 0 8px 16px rgba(0, 34, 68, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  --btn-shadow-floating: 0 12px 32px rgba(0, 34, 68, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08);
  --btn-shadow-modal: 0 20px 48px rgba(0, 15, 30, 0.24);

  --btn-container-xl: 1200px;
}

/* 2. RESET & BASE ----------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--btn-font-family);
  color: var(--btn-text-primary);
  background-color: var(--btn-surface-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }

main { flex: 1 0 auto; }

h1, h2, h3, h4 { color: var(--btn-navy-900); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { color: var(--btn-text-secondary); }

a { color: var(--btn-text-link); text-decoration: none; font-weight: 500; }
a:hover { color: var(--btn-text-link-hover); text-decoration: underline; }

.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;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: var(--btn-focus-ring);
  border-radius: var(--btn-radius-sm);
}

.container {
  width: 100%;
  max-width: var(--btn-container-xl);
  margin: 0 auto;
  padding: 0 var(--btn-space-4);
}

.section { padding: var(--btn-space-16) 0; }
.section-tight { padding: var(--btn-space-12) 0; }

.section-heading { text-align: center; max-width: 640px; margin: 0 auto var(--btn-space-8); }
.section-heading p { margin-top: var(--btn-space-2); font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--btn-blue-700);
  background: rgba(0, 83, 126, 0.08);
  padding: 4px 12px;
  border-radius: var(--btn-radius-pill);
  margin-bottom: var(--btn-space-3);
}

/* 3. HEADER / NAVIGATION -----------------------------------------------------*/
.site-header {
  background-color: var(--btn-color-brand-header);
  color: var(--btn-white);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

/* Elevated state applied by JS once the page is scrolled */
/* NOTE: no filter/backdrop-filter here — either one would turn the header into a
   containing block and trap the fixed-position mobile drawer inside it. */
.site-header.is-stuck {
  box-shadow: 0 6px 20px rgba(0, 15, 30, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--btn-space-6);
  height: 76px;
  transition: height 0.25s ease;
}
.site-header.is-stuck .header-inner { height: 64px; }

/* brand and actions share equal flex space so the nav sits dead-centre in the
   header regardless of how wide the logo or the CTA are */
.brand {
  display: flex;
  align-items: center;
  gap: var(--btn-space-2);
  flex: 1 0 auto;
}

.brand img {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: height 0.25s ease;
}
.site-header.is-stuck .brand img { height: 30px; }

.brand-text { display: none; }

/* ---- Primary navigation (desktop) ---- */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: var(--btn-space-1);
}

.nav-links > li { position: relative; }

.nav-item-mobile { display: none; }

.nav-links a,
.nav-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  height: 40px;
  padding: 0 14px;
  border: none;
  border-radius: var(--btn-radius-pill);
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-links a:hover,
.nav-menu-toggle:hover,
.nav-item-has-menu.open > .nav-menu-toggle {
  background-color: transparent;
  color: var(--btn-cyan-300);
  text-decoration: none;
}

.nav-links a.active,
.nav-menu-toggle.active {
  color: var(--btn-cyan-300);
  background-color: transparent;
}

.nav-caret {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}
.nav-item-has-menu.open .nav-caret { transform: rotate(180deg); }

/* ---- Dropdown menu ---- */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 130;
  min-width: 220px;
  padding: var(--btn-space-2);
  list-style: none;
  background-color: var(--btn-white);
  border-radius: var(--btn-radius-md);
  box-shadow: var(--btn-shadow-modal);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

/* Invisible bridge so the menu survives the pointer travelling to it */
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-item-has-menu.open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Pointer-driven open on desktop; the click state above covers keyboard and touch */
@media (min-width: 1025px) {
  .nav-item-has-menu:hover > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-item-has-menu:hover > .nav-menu-toggle {
    background-color: transparent;
    color: var(--btn-cyan-300);
  }
  .nav-item-has-menu:hover .nav-caret { transform: rotate(180deg); }
}

.nav-dropdown a {
  display: flex;
  width: 100%;
  height: auto;
  padding: 10px 12px;
  border-radius: var(--btn-radius-sm);
  color: var(--btn-text-primary);
  font-weight: 500;
}
.nav-dropdown a:hover {
  background-color: var(--btn-neutral-100);
  color: var(--btn-blue-700);
}
.nav-dropdown a.active {
  color: var(--btn-blue-700);
  background-color: rgba(0, 83, 126, 0.08);
}
.nav-dropdown a.active::after { content: none; }

/* ---- Right-hand actions ---- */
/* margin-left keeps the actions right-aligned even when the nav is taken out of
   flow as an off-canvas drawer */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--btn-space-3);
  margin-left: auto;
  flex: 1 0 auto;
}

.header-cta {
  min-height: 40px;
  padding: 10px 20px;
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--btn-radius-sm);
  color: var(--btn-white);
  cursor: pointer;
}
.nav-toggle:hover { background-color: rgba(255, 255, 255, 0.12); }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---- Mobile drawer chrome (hidden on desktop) ---- */
.nav-drawer-head,
.nav-drawer-foot { display: none; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 890;
  background-color: rgba(0, 15, 30, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.nav-backdrop.show { opacity: 1; visibility: visible; }

body.nav-open { overflow: hidden; }

@media (max-width: 1024px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 130;
    width: min(360px, 88vw);
    margin-right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0 var(--btn-space-4) var(--btn-space-6);
    background-color: var(--btn-navy-900);
    box-shadow: var(--btn-shadow-modal);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .main-nav.open { transform: translateX(0); }

  .nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    margin: 0 calc(-1 * var(--btn-space-4)) var(--btn-space-2);
    padding: 0 var(--btn-space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav-drawer-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
  }
  .nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: var(--btn-radius-sm);
    color: var(--btn-white);
    cursor: pointer;
  }
  .nav-close:hover { background-color: rgba(255, 255, 255, 0.12); }
  .nav-close svg { width: 22px; height: 22px; }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav-item-mobile { display: block; }
  .nav-links a,
  .nav-menu-toggle {
    width: 100%;
    height: 48px;
    padding: 0 var(--btn-space-3);
    border-radius: var(--btn-radius-md);
    font-size: 1rem;
  }
  .nav-menu-toggle { justify-content: space-between; }

  .nav-dropdown {
    position: static;
    display: none;
    min-width: 0;
    margin: var(--btn-space-1) 0 var(--btn-space-2) var(--btn-space-3);
    padding: var(--btn-space-1);
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-item-has-menu.open > .nav-dropdown { display: block; }
  .nav-dropdown::before { content: none; }
  .nav-dropdown a {
    height: 44px;
    align-items: center;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
  }
  .nav-dropdown a:hover,
  .nav-dropdown a.active {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--btn-white);
  }

  .nav-drawer-foot {
    display: block;
    margin-top: var(--btn-space-6);
    padding-top: var(--btn-space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav-drawer-foot .btn { width: 100%; }
  .nav-drawer-support {
    display: block;
    margin-top: var(--btn-space-4);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-align: center;
  }
  .nav-drawer-support a { color: var(--btn-cyan-300); }

  .nav-toggle { display: inline-flex; }
  .header-actions .btn-secondary-inverse { display: none; }
}

@media (max-width: 560px) {
  .header-inner { height: 64px; gap: 8px; }
  .site-header.is-stuck .header-inner { height: 60px; }
  /* width-driven so the logo can shrink and let the phone number keep its space */
  .brand img { width: 108px; height: auto; }
  .site-header.is-stuck .brand img { width: 100px; height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .header-inner,
  .brand img,
  .main-nav,
  .nav-dropdown,
  .nav-backdrop,
  .nav-caret { transition: none; }
}

/* Sticky header offset for in-page anchor jumps (e.g. #booking-widget) */
[id] { scroll-margin-top: 96px; }

/* 4. BUTTONS -----------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--btn-radius-sm);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; }

.btn-primary { background-color: var(--btn-blue-700); color: var(--btn-white); }
.btn-primary:hover { background-color: var(--btn-blue-600); box-shadow: 0 4px 12px rgba(0, 83, 126, 0.25); color: var(--btn-white); }

.btn-secondary { background-color: transparent; border: 2px solid var(--btn-blue-700); color: var(--btn-blue-700); }
.btn-secondary:hover { background-color: var(--btn-neutral-100); color: var(--btn-blue-700); }

.btn-secondary-inverse { background-color: transparent; border: 2px solid #fff; color: #fff; }
.btn-secondary-inverse:hover { background-color: rgba(255,255,255,0.12); color: #fff; }

.btn-gold { background-color: var(--btn-gold-500); color: var(--btn-neutral-900); }
.btn-gold:hover { background-color: var(--btn-gold-600); }

.btn-ghost { background: transparent; color: var(--btn-blue-700); }
.btn-ghost:hover { background: rgba(0,83,126,0.08); }

.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }

/* ---- Call CTA (pill phone button with LIVE badge) ---- */
.call-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 22px 6px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--btn-gold-500) 0%, var(--btn-gold-600) 100%);
  color: var(--btn-navy-900);
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(0, 15, 30, 0.28);
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.call-cta:hover {
  color: var(--btn-navy-900);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 15, 30, 0.34);
}
.call-cta:active { transform: translateY(0); }
.call-cta:focus-visible {
  outline: none;
  box-shadow: var(--btn-focus-ring), 0 6px 18px rgba(0, 15, 30, 0.28);
}

.call-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--btn-white);
  color: var(--btn-blue-700);
  transition: width 0.25s ease, height 0.25s ease;
}
.call-cta-icon svg { width: 18px; height: 18px; }

.call-cta-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.call-cta-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(0, 34, 68, 0.75);
  white-space: nowrap;
}

.call-cta-number {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: font-size 0.25s ease;
}

/* Header sizing — shrinks with the header on scroll */
.header-cta.call-cta { padding: 5px 20px 5px 5px; }
.header-cta .call-cta-icon { width: 36px; height: 36px; }
.site-header.is-stuck .header-cta.call-cta { padding: 4px 18px 4px 4px; }
.site-header.is-stuck .header-cta .call-cta-icon { width: 32px; height: 32px; }
.site-header.is-stuck .header-cta .call-cta-number { font-size: 0.98rem; }

/* Drawer variant — full width inside the mobile navigation drawer */
.nav-drawer-foot .call-cta {
  display: flex;
  width: 100%;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .call-cta { transition: none; animation: none; }
  .call-cta:hover { transform: none; }
}

/* Tablet: keep the number, drop the caption line */
@media (max-width: 900px) {
  .header-cta.call-cta { padding: 4px 16px 4px 4px; }
  .header-cta .call-cta-label { display: none; }
  .header-cta .call-cta-icon { width: 34px; height: 34px; }
  .header-cta .call-cta-number { font-size: 0.95rem; }
}

/* Phones: the full number stays visible — the logo shrinks to make room */
@media (max-width: 560px) {
  .brand { flex: 0 1 auto; min-width: 0; }
  .header-actions { flex: 0 0 auto; gap: 6px; min-width: 0; }

  .header-cta.call-cta {
    display: inline-flex;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    box-shadow: 0 4px 12px rgba(0, 15, 30, 0.26);
  }
  .header-cta .call-cta-text { display: flex; }
  .header-cta .call-cta-label { display: none; }
  .header-cta .call-cta-icon { width: 30px; height: 30px; }
  .header-cta .call-cta-icon svg { width: 15px; height: 15px; }
  .header-cta .call-cta-number,
  .site-header.is-stuck .header-cta .call-cta-number { font-size: 0.86rem; }
  .nav-toggle { width: 40px; height: 40px; }
  .nav-toggle svg { width: 20px; height: 20px; }
}

/* Narrow phones (320–380px): tighten type and logo rather than drop the number */
@media (max-width: 380px) {
  .brand img,
  .site-header.is-stuck .brand img { width: 88px; height: auto; }
  .header-cta.call-cta { gap: 6px; padding: 3px 10px 3px 3px; }
  .header-cta .call-cta-icon { width: 28px; height: 28px; }
  .header-cta .call-cta-number,
  .site-header.is-stuck .header-cta .call-cta-number { font-size: 0.8rem; }
  .nav-toggle { width: 38px; height: 38px; }
}

/* 5. HERO --------------------------------------------------------------------*/
.hero {
  position: relative;
  background-color: var(--btn-navy-900);
  color: var(--btn-white);
  padding: calc(var(--btn-space-16) * 1.6) 0 calc(var(--btn-space-16) * 2.2);
  text-align: left;
  overflow: hidden;
}

/* Layer 1 — the photograph, anchored right so the subject stays clear of the copy */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: 62% 45%;
  z-index: 0;
}

/* Layer 2 — the scrim. Solid navy on the left, fading out and finishing
   just past the halfway mark so the right half of the photo stays visible. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg,
      rgba(0,34,68,0.42) 0%,
      rgba(0,34,68,0) 32%,
      rgba(0,34,68,0) 68%,
      rgba(0,34,68,0.55) 100%),
    linear-gradient(90deg,
      rgba(0,34,68,0.97) 0%,
      rgba(0,34,68,0.95) 22%,
      rgba(0,34,68,0.86) 36%,
      rgba(0,34,68,0.55) 46%,
      rgba(0,34,68,0.20) 55%,
      rgba(0,34,68,0) 64%);
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.hero-copy { max-width: 620px; }

.hero h1 { color: var(--btn-white); margin-bottom: var(--btn-space-4); }
.hero-sub {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--btn-neutral-300);
  max-width: 480px;
  margin: 0;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--btn-space-2) var(--btn-space-6);
  margin-top: var(--btn-space-6);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--btn-gold-500); }

/* Tablet and below — the copy needs the full width, so the scrim flattens into
   an even veil instead of a left-to-right fade. */
@media (max-width: 900px) {
  .hero { padding: var(--btn-space-16) 0 calc(var(--btn-space-16) * 2.2); }
  .hero::before { background-position: 70% 45%; }
  .hero::after {
    background-image: linear-gradient(180deg,
      rgba(0,34,68,0.93) 0%,
      rgba(0,34,68,0.88) 55%,
      rgba(0,34,68,0.95) 100%);
  }
  .hero-copy { max-width: none; }
  .hero-sub { max-width: 620px; }
}

/* Page header (non-hero pages) */
.page-header {
  background-color: var(--btn-navy-900);
  color: var(--btn-white);
  padding: var(--btn-space-12) 0;
  text-align: center;
}
.page-header h1 { color: var(--btn-white); }
.page-header p { color: var(--btn-neutral-300); margin-top: var(--btn-space-2); }

/* 6. BOOKING SEARCH WIDGET -----------------------------------------------------*/
.booking-widget {
  background-color: var(--btn-white);
  border-radius: var(--btn-radius-lg);
  padding: var(--btn-space-8);
  box-shadow: var(--btn-shadow-floating);
  max-width: 1140px;
  margin: calc(-1 * var(--btn-space-16) - 24px) auto 0 auto;
  position: relative;
  z-index: 10;
  text-align: left;
}

.widget-note {
  max-width: 1140px;
  margin: var(--btn-space-4) auto var(--btn-space-8) auto;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--btn-text-secondary);
  text-align: center;
}

.trip-tabs {
  display: flex;
  gap: var(--btn-space-2);
  margin-bottom: var(--btn-space-6);
  border-bottom: 2px solid var(--btn-neutral-300);
  padding-bottom: var(--btn-space-2);
  flex-wrap: wrap;
}

.trip-tab {
  padding: 8px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--btn-neutral-600);
  background: none;
  border: none;
  border-radius: var(--btn-radius-pill);
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.trip-tab:hover { background-color: var(--btn-neutral-100); }
.trip-tab.active { background-color: var(--btn-blue-700); color: var(--btn-white); }

.search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: var(--btn-space-4);
  align-items: end;
}

.search-grid.multi-city { grid-template-columns: repeat(4, 1fr) auto; }

@media (max-width: 1000px) {
  .search-grid { grid-template-columns: repeat(2, 1fr); }
  .search-grid .form-actions { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .search-grid { grid-template-columns: 1fr; }
}

.form-group { display: flex; flex-direction: column; gap: var(--btn-space-1); position: relative; }

.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--btn-neutral-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field-input {
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--btn-border-default);
  border-radius: var(--btn-radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--btn-neutral-900);
  background-color: var(--btn-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.field-input:focus {
  outline: none;
  border-color: var(--btn-border-focus);
  box-shadow: var(--btn-focus-ring);
}

/* Station type-ahead — a height-capped listbox replacing the native
   <datalist>, whose popup the browser sized to the full viewport. */
.station-combo { position: relative; display: block; width: 100%; }

.station-suggest {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--btn-white);
  border: 1px solid var(--btn-border-default);
  border-radius: var(--btn-radius-md);
  box-shadow: var(--btn-shadow-floating);
  /* Roughly six rows, then scroll — never taller than the space below the
     field on a short screen. */
  max-height: min(288px, 50vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.station-suggest.open { display: block; }

.station-suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--btn-space-3);
  padding: 10px 12px;
  border-radius: var(--btn-radius-sm);
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--btn-text-primary);
  cursor: pointer;
}
.station-suggest-item.active,
.station-suggest-item:hover { background-color: var(--btn-neutral-100); }

.station-suggest-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.station-suggest-name mark {
  background: none;
  color: var(--btn-blue-700);
  font-weight: 700;
}
.station-suggest-code {
  flex: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--btn-neutral-600);
  background: var(--btn-neutral-100);
  border-radius: var(--btn-radius-sm);
  padding: 2px 6px;
}
.station-suggest-item.active .station-suggest-code { background: var(--btn-white); }

.swap-btn {
  position: absolute;
  /* centre of the gap between From and To, vertically centred on the 48px input */
  right: calc(var(--btn-space-4) / -2);
  top: auto;
  bottom: 24px;
  transform: translate(50%, 50%);
  background: var(--btn-blue-700);
  color: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--btn-shadow-card);
}
.swap-btn:hover { background: var(--btn-blue-600); }
@media (max-width: 560px) {
  .swap-btn { top: auto; bottom: calc(var(--btn-space-4) / -2); right: 50%; transform: translate(50%, 50%); }
}

.passenger-select { position: relative; }
.passenger-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--btn-border-default);
  border-radius: var(--btn-radius-md);
  box-shadow: var(--btn-shadow-hover);
  padding: var(--btn-space-4);
  z-index: 20;
  min-width: 240px;
}
.passenger-dropdown.open { display: block; }
.passenger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--btn-space-2) 0;
}
.passenger-row + .passenger-row { border-top: 1px solid var(--btn-neutral-100); }
.passenger-row-label { font-weight: 600; font-size: 0.9rem; color: var(--btn-text-primary); }
.passenger-row-desc { font-size: 0.75rem; color: var(--btn-text-secondary); }
.stepper { display: flex; align-items: center; gap: var(--btn-space-3); }
.stepper button {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--btn-blue-700); background: #fff; color: var(--btn-blue-700);
  font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-family: inherit; line-height: 1;
}
.stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.stepper span { min-width: 16px; text-align: center; font-weight: 700; }
.passenger-done { margin-top: var(--btn-space-3); }

.form-actions { display: flex; }

.form-error {
  font-size: 0.8rem;
  color: var(--btn-red-600);
  margin-top: 2px;
  display: none;
}
.form-group.has-error .field-input { border-color: var(--btn-red-600); }
.form-group.has-error .form-error { display: block; }

/* 7. CARDS ---------------------------------------------------------------------*/
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--btn-space-6);
}

.card {
  background-color: var(--btn-white);
  border: 1px solid var(--btn-border-default);
  border-radius: var(--btn-radius-md);
  overflow: hidden;
  box-shadow: var(--btn-shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--btn-shadow-hover); }
.card-media { height: 180px; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: var(--btn-space-6); display: flex; flex-direction: column; gap: var(--btn-space-2); flex: 1; }
.card-body p { flex: 1; }
.card-price { font-size: 0.85rem; color: var(--btn-text-secondary); }
.card-price strong { color: var(--btn-navy-900); font-size: 1.15rem; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--btn-radius-pill);
  width: fit-content;
}
.badge-success { background-color: var(--btn-status-success-bg); color: var(--btn-status-success-text); }
.badge-alert { background-color: var(--btn-gold-500); color: var(--btn-neutral-900); }
.badge-error { background-color: var(--btn-status-error-bg); color: var(--btn-status-error-text); }
.badge-neutral { background-color: var(--btn-neutral-100); color: var(--btn-text-secondary); }

/* Feature list */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--btn-space-8);
  text-align: center;
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(0,83,126,0.08);
  color: var(--btn-blue-700);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--btn-space-4);
}
.feature-icon svg { width: 26px; height: 26px; }

/* Feature trust bar (home "Why BestTripsNow") — scoped, does not affect
   the plain .feature-grid still used on about.html */
.feature-bar {
  background-color: var(--btn-surface-base);
  padding: 80px 0;
}
.feature-bar-container { max-width: 1040px; }
.feature-bar-heading { max-width: 800px; margin-bottom: 56px; }
.feature-bar-heading h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }

.feature-grid-bar {
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}
.feature-grid-bar .feature-icon {
  width: 40px;
  height: 40px;
  background: none;
  border-radius: 0;
  color: var(--btn-cyan-400);
  margin: 0 auto 28px;
}
.feature-grid-bar .feature-icon svg { width: 40px; height: 40px; }
.feature-grid-bar h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--btn-blue-700);
  margin-bottom: 12px;
}
.feature-grid-bar p {
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .feature-grid-bar { grid-template-columns: repeat(3, 1fr); gap: var(--btn-space-8); }
}
@media (max-width: 640px) {
  .feature-grid-bar { grid-template-columns: repeat(2, 1fr); }
  .feature-bar { padding: var(--btn-space-12) 0; }
  .feature-bar-heading { margin-bottom: var(--btn-space-8); }
}
@media (max-width: 460px) {
  .feature-grid-bar { grid-template-columns: 1fr; }
}

/* Alt section */
.section-alt { background-color: var(--btn-surface-subtle); }

/* Two-column responsive layout (About / Contact) */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--btn-space-12);
  align-items: center;
}
@media (max-width: 800px) {
  .two-col-grid { grid-template-columns: 1fr; }
}

/* Map embed */
.map-embed {
  border-radius: var(--btn-radius-lg);
  overflow: hidden;
  box-shadow: var(--btn-shadow-card);
  border: 1px solid var(--btn-border-default);
  min-height: 360px;
}
.map-embed iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--btn-navy-900), var(--btn-blue-700));
  color: #fff;
  border-radius: var(--btn-radius-lg);
  padding: var(--btn-space-12);
  text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: var(--btn-neutral-300); margin: var(--btn-space-2) 0 var(--btn-space-6); }

/* 8. FOOTER ----------------------------------------------------------------------*/
.site-footer {
  background-color: var(--btn-navy-900);
  color: var(--btn-neutral-300);
  padding: var(--btn-space-16) 0 var(--btn-space-6);
  flex-shrink: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
  gap: var(--btn-space-8);
  padding-bottom: var(--btn-space-12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 1150px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand img { height: 30px; filter: brightness(0) invert(1); margin-bottom: var(--btn-space-3); }
.footer-brand p { color: var(--btn-neutral-300); font-size: 0.9rem; max-width: 320px; }
.footer-col h4 {
  color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: var(--btn-space-4);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--btn-space-2); }
.footer-col a { color: var(--btn-neutral-300); font-size: 0.9rem; font-weight: 400; }
.footer-col a:hover { color: #fff; }
.footer-contact li { font-size: 0.9rem; margin-bottom: var(--btn-space-2); display: flex; gap: 8px; }
.footer-contact strong { color: #fff; display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--btn-space-3);
  padding-top: var(--btn-space-6);
  font-size: 0.8rem;
}
.footer-social { display: flex; gap: var(--btn-space-3); }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.footer-social a:hover { background: var(--btn-blue-700); }
.footer-legal-note { font-size: 0.78rem; color: var(--btn-neutral-600); margin-top: var(--btn-space-4); line-height: 1.6; }

/* 9. FORMS (contact page) ---------------------------------------------------------*/
.form-card {
  background: #fff;
  border: 1px solid var(--btn-border-default);
  border-radius: var(--btn-radius-lg);
  box-shadow: var(--btn-shadow-card);
  padding: var(--btn-space-8);
}
.stacked-field { display: flex; flex-direction: column; gap: var(--btn-space-1); margin-bottom: var(--btn-space-4); }
.stacked-field label { font-size: 0.85rem; font-weight: 700; color: var(--btn-text-primary); }
textarea.field-input { height: auto; padding: 12px 14px; resize: vertical; min-height: 140px; }
.form-success {
  display: none;
  background: var(--btn-status-success-bg);
  color: var(--btn-status-success-text);
  border-radius: var(--btn-radius-md);
  padding: var(--btn-space-4);
  margin-bottom: var(--btn-space-4);
  font-weight: 600;
  font-size: 0.9rem;
}
.form-success.show { display: block; }

.contact-info-list { list-style: none; display: flex; flex-direction: column; gap: var(--btn-space-6); }
.contact-info-item { display: flex; gap: var(--btn-space-4); }
.contact-info-icon {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: rgba(0,83,126,0.08); color: var(--btn-blue-700);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-item h3 { font-size: 1rem; margin-bottom: 2px; }
.contact-info-item p { font-size: 0.92rem; }

/* 10. LEGAL PAGES ------------------------------------------------------------------*/
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { margin-top: var(--btn-space-8); margin-bottom: var(--btn-space-3); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin-top: var(--btn-space-6); margin-bottom: var(--btn-space-2); font-size: 1.05rem; }
.legal-content p { margin-bottom: var(--btn-space-3); }
.legal-content ul, .legal-content ol { margin: 0 0 var(--btn-space-3) var(--btn-space-6); color: var(--btn-text-secondary); }
.legal-content li { margin-bottom: var(--btn-space-1); }
.legal-updated { font-size: 0.85rem; color: var(--btn-text-secondary); margin-bottom: var(--btn-space-8); }
.legal-toc { background: var(--btn-surface-subtle); border-radius: var(--btn-radius-md); padding: var(--btn-space-6); margin-bottom: var(--btn-space-8); }
.legal-toc h2 { margin-top: 0; font-size: 1rem; }
.legal-toc ol { margin-bottom: 0; }
.legal-toc a { font-size: 0.92rem; }

/* 11. COOKIE CONSENT ------------------------------------------------------------------*/
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--btn-navy-900);
  color: #fff;
  padding: var(--btn-space-4) var(--btn-space-6);
  z-index: 1000;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.2);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--btn-space-6); flex-wrap: wrap;
}
.cookie-banner p { color: var(--btn-neutral-300); font-size: 0.85rem; max-width: 640px; margin: 0; }
.cookie-actions { display: flex; gap: var(--btn-space-3); flex-shrink: 0; }

/* 11b. MOBILE CALL DOCK ---------------------------------------------------------------*/
/* Phones-only "talk to a specialist" bar pinned to the bottom of the viewport.
   Pinned with left/right insets (never a width/transform), so it can never be
   wider than the screen and can never trigger horizontal page scroll. */
.call-dock {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 950;
  max-width: 520px;
  margin: 0 auto;
  transform: translateY(calc(100% + 32px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.34s cubic-bezier(0.2, 0.7, 0.3, 1), opacity 0.24s ease;
}
.call-dock.show { transform: translateY(0); opacity: 1; pointer-events: auto; }

/* Drawer takes over the screen — the dock gets out of its way */
body.nav-open .call-dock {
  transform: translateY(calc(100% + 32px));
  opacity: 0;
  pointer-events: none;
}

/* Chip + close share a row that overlaps the top edge of the card */
.call-dock-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 2px -14px;
}

.call-dock-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--btn-radius-pill);
  background-color: var(--btn-white);
  color: var(--btn-navy-900);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 15, 30, 0.18);
}
.call-dock-chip svg { width: 14px; height: 14px; color: var(--btn-blue-700); }

.call-dock-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: var(--btn-neutral-900);
  color: var(--btn-white);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 15, 30, 0.3);
}
.call-dock-close svg { width: 14px; height: 14px; }

.call-dock-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--btn-blue-700) 0%, var(--btn-navy-900) 100%);
  color: var(--btn-white);
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--btn-shadow-floating);
}
.call-dock-card:hover,
.call-dock-card:active { color: var(--btn-white); text-decoration: none; }
.call-dock-card:focus-visible { outline: none; box-shadow: var(--btn-focus-ring), var(--btn-shadow-floating); }

.call-dock-avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--btn-cyan-300) 0%, var(--btn-blue-600) 100%);
  color: var(--btn-white);
  overflow: hidden;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.call-dock-avatar svg { width: 24px; height: 24px; }

/* The agent photo sits on top of the glyph rather than replacing it, so a file
   that is missing or still loading leaves a readable avatar behind it. The
   portrait is framed high because a 52px circle only has room for the face. */
.call-dock-avatar-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 16%;
}
.call-dock-avatar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--btn-green-600);
  box-shadow: 0 0 0 2px var(--btn-navy-900);
}

/* min-width:0 + ellipsis: long copy truncates inside the card instead of
   stretching it past the viewport */
.call-dock-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}
.call-dock-label {
  font-size: clamp(0.72rem, 3vw, 0.8rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.call-dock-number {
  font-size: clamp(0.98rem, 4.4vw, 1.2rem);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.call-dock-action {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--btn-white);
  color: var(--btn-blue-700);
  box-shadow: 0 4px 12px rgba(0, 15, 30, 0.24);
}
.call-dock-action svg { width: 20px; height: 20px; }

/* Phones only */
@media (max-width: 767px) {
  .call-dock { display: block; }
  /* footer keeps clear of the dock so the last links stay tappable */
  body.call-dock-on .site-footer { padding-bottom: 110px; }
}

@media (max-width: 360px) {
  .call-dock-card { gap: 10px; padding: 9px 9px 9px 10px; }
  .call-dock-avatar { width: 40px; height: 40px; }
  .call-dock-avatar svg { width: 21px; height: 21px; }
  .call-dock-action { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .call-dock { transition: opacity 0.2s ease; }
}

/* 12. SEARCH RESULTS PAGE ----------------------------------------------------------------*/
.results-summary {
  background: #fff;
  border: 1px solid var(--btn-border-default);
  border-radius: var(--btn-radius-md);
  padding: var(--btn-space-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--btn-space-4);
  margin-bottom: var(--btn-space-6);
}
.results-summary h1 { font-size: 1.4rem; margin-bottom: 4px; }
.results-summary p { font-size: 0.9rem; }

.train-result {
  background: #fff;
  border: 1px solid var(--btn-border-default);
  border-radius: var(--btn-radius-md);
  padding: var(--btn-space-6);
  margin-bottom: var(--btn-space-4);
  display: grid;
  grid-template-columns: 1.5fr 2fr 1.2fr;
  gap: var(--btn-space-6);
  align-items: center;
  transition: box-shadow 0.2s ease;
}
.train-result:hover { box-shadow: var(--btn-shadow-hover); }
@media (max-width: 800px) {
  .train-result { grid-template-columns: 1fr; text-align: left; }
}
.train-name { font-weight: 700; color: var(--btn-navy-900); font-size: 1.05rem; }
.train-meta { font-size: 0.8rem; color: var(--btn-text-secondary); margin-top: 2px; }
.train-route {
  display: flex; align-items: center; gap: var(--btn-space-4); justify-content: center;
}
.train-route .time { font-size: 1.25rem; font-weight: 700; color: var(--btn-neutral-900); }
.train-route .station { font-size: 0.8rem; color: var(--btn-text-secondary); }
.train-route .duration {
  flex: 1; text-align: center; font-size: 0.78rem; color: var(--btn-text-secondary);
  position: relative;
}
.train-route .duration .line { height: 2px; background: var(--btn-neutral-300); margin: 6px 0; position: relative; }
.train-route .duration .line::after {
  content: "●"; position: absolute; right: 0; top: -7px; color: var(--btn-blue-700); font-size: 10px;
}
.train-price {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.train-price .amount { font-size: 1.4rem; font-weight: 700; color: var(--btn-navy-900); display: block; }
.train-price .per { font-size: 0.75rem; color: var(--btn-text-secondary); }
/* Fare and the reservations line sit together, so the actions get their own
   stack under whichever of the two the card is showing. */
.train-price-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--btn-space-2);
  width: 100%;
  margin-top: var(--btn-space-3);
}
.train-price-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--btn-space-2);
  white-space: nowrap;
}
.train-call svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 800px) {
  .train-price { text-align: left; align-items: stretch; }
  .train-price-actions { flex-direction: row; flex-wrap: wrap; }
  .train-price-actions .btn { flex: 1 1 180px; }
}
.no-results {
  text-align: center;
  padding: var(--btn-space-16) var(--btn-space-4);
  color: var(--btn-text-secondary);
}

/* 13. PROMO BAR ------------------------------------------------------------------*/
.promo-bar {
  background: var(--btn-gold-500);
  color: var(--btn-neutral-900);
  font-size: 0.85rem;
  font-weight: 600;
}
.promo-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--btn-space-4);
  padding: 10px var(--btn-space-4);
  position: relative;
  text-align: center;
}
.promo-bar a { color: var(--btn-neutral-900); text-decoration: underline; font-weight: 700; }
.promo-close {
  background: none; border: none; cursor: pointer; color: inherit;
  font-size: 1.2rem; line-height: 1; padding: 0 0 0 8px;
  position: absolute; right: var(--btn-space-4); top: 50%; transform: translateY(-50%);
}
.promo-bar[hidden] { display: none; }

/* 14. HOW IT WORKS STEPS ------------------------------------------------------------------*/
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--btn-space-8);
  counter-reset: step;
}
.step-card { text-align: center; position: relative; }
.step-number {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--btn-blue-700); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; margin: 0 auto var(--btn-space-4);
}

/* 15. FAQ ACCORDION ------------------------------------------------------------------*/
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--btn-border-default);
  border-radius: var(--btn-radius-md);
  margin-bottom: var(--btn-space-3);
  overflow: hidden;
  background: #fff;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--btn-space-4);
  padding: var(--btn-space-4) var(--btn-space-6);
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--btn-navy-900);
  cursor: pointer;
  font-family: inherit;
}
.faq-question .faq-icon { flex-shrink: 0; transition: transform 0.2s ease; color: var(--btn-blue-700); }
.faq-item.open .faq-question .faq-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 var(--btn-space-6);
}
.faq-item.open .faq-answer { max-height: 600px; padding-bottom: var(--btn-space-4); }
.faq-answer p { margin: 0; }

/* 16. STATION DIRECTORY ------------------------------------------------------------------*/
.station-search { max-width: 460px; margin: 0 auto var(--btn-space-8); }
.station-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--btn-space-4); }
.station-card {
  border: 1px solid var(--btn-border-default);
  border-radius: var(--btn-radius-md);
  padding: var(--btn-space-4) var(--btn-space-6);
  background: #fff;
  box-shadow: var(--btn-shadow-card);
}
.station-card h3 { font-size: 1rem; margin-bottom: 2px; }
.station-code {
  display: inline-block; font-family: var(--btn-font-mono); font-size: 0.75rem;
  background: var(--btn-surface-subtle); color: var(--btn-blue-700);
  padding: 2px 8px; border-radius: var(--btn-radius-sm); margin-left: 6px;
}
.station-region { font-size: 0.85rem; color: var(--btn-text-secondary); margin-top: 4px; }

/* 17. TRAIN STATUS LOOKUP ------------------------------------------------------------------*/
.status-form {
  display: flex;
  align-items: flex-end;
  gap: var(--btn-space-3);
  max-width: 880px;
  margin: 0 auto var(--btn-space-8);
  flex-wrap: wrap;
}
.status-field { display: flex; flex-direction: column; gap: var(--btn-space-2); flex: 1 1 200px; min-width: 0; }
.status-field-grow { flex: 1.4 1 220px; }
.status-field-date { flex: 0 1 170px; }
.status-field label {
  font-size: 0.8rem; font-weight: 600; color: var(--btn-text-secondary);
  letter-spacing: 0.01em;
}
.status-field-hint { font-weight: 400; }
.status-form .field-input { width: 100%; }
.status-form .btn { flex: 0 0 auto; }
@media (max-width: 600px) {
  .status-form { flex-direction: column; align-items: stretch; }
  /* flex-grow in a column would stretch each field to fill the height and
     leave a chasm between the labels. */
  .status-field, .status-field-grow, .status-field-date { flex: 0 0 auto; }
  .status-form .btn { width: 100%; }
}
.status-result {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--btn-border-default);
  border-radius: var(--btn-radius-md);
  padding: var(--btn-space-6);
  box-shadow: var(--btn-shadow-card);
}
.status-result-header { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--btn-space-4); margin-bottom: var(--btn-space-4); flex-wrap: wrap; }
.status-timeline { border-left: 3px solid var(--btn-border-default); padding-left: var(--btn-space-4); display: flex; flex-direction: column; gap: var(--btn-space-4); }
.status-stop { position: relative; }
.status-stop::before {
  content: ""; position: absolute; left: calc(-1 * var(--btn-space-4) - 6px); top: 4px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--btn-blue-700); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--btn-blue-700);
}
.status-stop.done::before { background: var(--btn-green-600); box-shadow: 0 0 0 1px var(--btn-green-600); }
.status-stop-name { font-weight: 700; color: var(--btn-navy-900); font-size: 0.95rem; }
.status-stop-meta { font-size: 0.8rem; color: var(--btn-text-secondary); }
.status-result { max-width: 720px; }
.status-stop.current::before { background: var(--btn-blue-700); box-shadow: 0 0 0 4px rgba(29, 78, 137, 0.18); }
.status-stop.done .status-stop-name { color: var(--btn-text-secondary); font-weight: 600; }
.status-stop.cancelled .status-stop-name { text-decoration: line-through; }
.status-stop.cancelled::before { background: var(--btn-status-error-text); box-shadow: 0 0 0 1px var(--btn-status-error-text); }
.status-stop-code {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
  color: var(--btn-text-secondary); background: var(--btn-neutral-100);
  padding: 1px 5px; border-radius: var(--btn-radius-sm); vertical-align: middle;
}
.status-stop-flag {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  padding: 1px 6px; border-radius: var(--btn-radius-sm); vertical-align: middle;
}
.status-stop-flag.is-now { background: var(--btn-blue-700); color: #fff; }
.status-stop-flag.is-alert { background: var(--btn-status-warning-bg); color: var(--btn-status-warning-text); }
.status-stop-flag.is-ok { background: var(--btn-status-success-bg); color: var(--btn-status-success-text); }
.status-stop-sched { font-size: 0.75rem; text-decoration: line-through; opacity: 0.7; }
.status-stop-day { font-size: 0.7rem; font-weight: 700; color: var(--btn-blue-700); }
.status-stop-gap {
  position: relative; font-size: 0.75rem; font-style: italic;
  color: var(--btn-text-secondary); padding-left: 2px;
}
.status-stop-gap::before {
  content: ""; position: absolute; left: calc(-1 * var(--btn-space-4) - 3px); top: 2px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--btn-border-default);
}
.status-expand { margin-top: var(--btn-space-5); width: 100%; }
.status-updated {
  margin-top: var(--btn-space-5); padding-top: var(--btn-space-4);
  border-top: 1px solid var(--btn-border-default);
  font-size: 0.8rem; color: var(--btn-text-secondary);
}
.status-datewarn {
  background: var(--btn-status-warning-bg); color: var(--btn-status-warning-text);
  border-radius: var(--btn-radius-sm); padding: var(--btn-space-3) var(--btn-space-4);
  font-size: 0.85rem; font-weight: 600; margin-bottom: var(--btn-space-4);
}
.status-choices h3 { margin-bottom: var(--btn-space-2); }
.status-choices > p { color: var(--btn-text-secondary); margin-bottom: var(--btn-space-4); }
.status-choice {
  display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left;
  padding: var(--btn-space-3) var(--btn-space-4); font-family: inherit; cursor: pointer;
  background: #fff; border: 1px solid var(--btn-border-default);
  border-radius: var(--btn-radius-md); margin-bottom: var(--btn-space-3);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.status-choice:hover, .status-choice:focus-visible {
  border-color: var(--btn-blue-700); box-shadow: var(--btn-shadow-card);
}
.status-choice-name { font-weight: 700; color: var(--btn-navy-900); font-size: 0.95rem; }
.status-choice-meta { font-size: 0.8rem; color: var(--btn-text-secondary); }

/* 18. DISCOUNT CARDS ------------------------------------------------------------------*/
.discount-card { text-align: left; }
.discount-percent { font-size: 1.75rem; font-weight: 700; color: var(--btn-blue-700); }

/* 19. NEWSLETTER FORM ------------------------------------------------------------------*/
.newsletter-form { display: flex; gap: 8px; margin-top: var(--btn-space-4); flex-wrap: wrap; }
.newsletter-form input {
  flex: 1; min-width: 160px; height: 44px; padding: 0 12px; border-radius: var(--btn-radius-sm);
  border: 1.5px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.06); color: #fff; font-family: inherit; font-size: 0.9rem;
}
.newsletter-form input::placeholder { color: var(--btn-neutral-300); }
.newsletter-form input:focus { outline: none; border-color: var(--btn-cyan-400); }
.newsletter-note { font-size: 0.78rem; color: var(--btn-neutral-600); margin-top: 6px; display: none; }
.newsletter-note.show { display: block; color: var(--btn-cyan-300); }
.newsletter-note a { color: inherit; text-decoration: underline; }
.newsletter-note a:hover { color: #fff; }

/* 20. BREADCRUMBS ------------------------------------------------------------------*/
.breadcrumbs { font-size: 0.82rem; color: var(--btn-neutral-300); margin-top: var(--btn-space-2); }
.breadcrumbs a { color: var(--btn-neutral-300); font-weight: 500; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span { margin: 0 6px; }

/* 21. SITEMAP PAGE ------------------------------------------------------------------*/
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--btn-space-8); max-width: 960px; margin: 0 auto; }
.sitemap-grid h3 { margin-bottom: var(--btn-space-3); font-size: 1rem; }
.sitemap-grid ul { list-style: none; display: flex; flex-direction: column; gap: var(--btn-space-2); }

/* 22. 404 PAGE ------------------------------------------------------------------*/
.error-page { text-align: center; padding: var(--btn-space-16) var(--btn-space-4); }
.error-code { font-size: clamp(4rem, 3rem + 6vw, 7rem); font-weight: 700; color: var(--btn-blue-700); line-height: 1; margin-bottom: var(--btn-space-4); }
.error-actions { display: flex; gap: var(--btn-space-3); justify-content: center; flex-wrap: wrap; margin-top: var(--btn-space-6); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--btn-navy-900);
  padding: 12px 20px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }
