/* ==========================================================================
   DEPARTRA — Flight Companion Website
   Comprehensive Mobile-First Stylesheet
   Version: 1.0.0
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ========================================================================== */

:root {
  /* Brand Colors */
  --color-primary-900: #0A1E36;
  --color-primary-800: #0F2B4C;
  --color-primary-700: #1A3F6F;
  --color-primary-500: #2563EB;
  --color-primary-400: #5B8DEF;
  --color-primary-100: #DBEAFE;
  --color-primary-50:  #EFF6FF;

  /* Accent (Gold) */
  --color-accent-600: #C7952C;
  --color-accent-500: #F0B641;
  --color-accent-400: #F5CB6E;
  --color-accent-100: #FEF3C7;

  /* Backgrounds */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F7F8FA;
  --bg-tertiary: #EEF1F6;

  /* Text */
  --text-primary: #0F2B4C;
  --text-secondary: #3D5068;
  --text-tertiary: #6B7D92;
  --text-inverse: #FFFFFF;

  /* Borders */
  --border-light: #E2E8F0;
  --border-default: #CBD5E1;

  /* Status: On Time */
  --status-ontime-bg: #ECFDF5;
  --status-ontime-text: #047857;
  --status-ontime-border: #A7F3D0;

  /* Status: Boarding */
  --status-boarding-bg: #EFF6FF;
  --status-boarding-text: #1D4ED8;
  --status-boarding-border: #93C5FD;

  /* Status: Delayed */
  --status-delayed-bg: #FFF7ED;
  --status-delayed-text: #C2410C;
  --status-delayed-border: #FED7AA;

  /* Status: Cancelled */
  --status-cancelled-bg: #FEF2F2;
  --status-cancelled-text: #B91C1C;
  --status-cancelled-border: #FECACA;

  /* Status: Scheduled */
  --status-scheduled-bg: #F5F3FF;
  --status-scheduled-text: #6D28D9;
  --status-scheduled-border: #C4B5FD;

  /* Status: Landed / Arrived */
  --status-landed-bg: #F7F8FA;
  --status-landed-text: #6B7D92;
  --status-landed-border: #D1D5DB;

  /* Status: En Route */
  --status-enroute-bg: #EFF6FF;
  --status-enroute-text: #1D4ED8;
  --status-enroute-border: #93C5FD;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Consolas', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 43, 76, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 43, 76, 0.07), 0 2px 4px -2px rgba(15, 43, 76, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 43, 76, 0.08), 0 4px 6px -4px rgba(15, 43, 76, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 43, 76, 0.1), 0 8px 10px -6px rgba(15, 43, 76, 0.05);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Layout */
  --container-max: 1200px;
  --header-height: 64px;
}


/* ==========================================================================
   2. BASE RESET & TYPOGRAPHY
   ========================================================================== */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  min-height: 100vh;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: var(--color-primary-500);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-primary-700);
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--text-3xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-2xl);
  letter-spacing: -0.015em;
}

h3 {
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
}

h4 {
  font-size: var(--text-lg);
}

h5 {
  font-size: var(--text-base);
}

h6 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
}

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

strong, b {
  font-weight: 600;
}

small {
  font-size: var(--text-sm);
}


/* ==========================================================================
   3. LAYOUT — CONTAINER
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}


/* ==========================================================================
   4. SITE HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-primary-800);
  border-bottom: 2px solid var(--color-accent-500);
  height: var(--header-height);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__icon {
  width: 24px;
  height: 24px;
  color: var(--color-accent-500);
  flex-shrink: 0;
}

.site-logo__text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-inverse);
  letter-spacing: -0.02em;
}

/* Header Search (hidden on mobile, visible on tablet+) */
.header-search {
  display: none;
  position: relative;
  flex: 0 1 360px;
  margin: 0 var(--space-6);
}

.header-search__input {
  width: 100%;
  height: 38px;
  padding: 0 var(--space-4) 0 var(--space-10);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: var(--text-inverse);
  font-size: var(--text-sm);
  transition: all var(--transition-base);
  outline: none;
}

.header-search__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.header-search__input:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.header-search__icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

/* Hamburger Menu Button */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: background var(--transition-base);
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hamburger__line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-inverse);
  border-radius: 1px;
  transition: all var(--transition-base);
}

.hamburger.is-active .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .header-search {
    display: block;
  }

  .site-header {
    height: 72px;
  }
}

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

  .header-search {
    flex: 0 1 420px;
  }
}


/* ==========================================================================
   5. NAVIGATION
   ========================================================================== */

/* Desktop Nav */
.nav-desktop {
  display: none;
}

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

.nav-desktop__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.nav-desktop__link:hover,
.nav-desktop__link.is-active {
  color: var(--text-inverse);
  background: rgba(255, 255, 255, 0.1);
}

.nav-desktop__link-icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: block;
  }
}

/* Mobile Nav — Slide-in Panel */
.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 54, 0.6);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  backdrop-filter: blur(2px);
}

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

.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100%;
  background: var(--color-primary-800);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  overflow-y: auto;
  padding: var(--space-8) var(--space-6);
}

.nav-mobile.is-open {
  transform: translateX(0);
}

.nav-mobile__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-mobile__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-inverse);
  cursor: pointer;
  font-size: var(--text-xl);
  transition: background var(--transition-base);
}

.nav-mobile__close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.nav-mobile__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.nav-mobile__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-base);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.nav-mobile__link:hover,
.nav-mobile__link.is-active {
  color: var(--text-inverse);
  background: rgba(255, 255, 255, 0.1);
}

.nav-mobile__link-icon {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

/* Mobile Search (inside mobile nav or below header) */
.mobile-search {
  padding: var(--space-3) var(--space-4);
  background: var(--color-primary-900);
}

.mobile-search__input {
  width: 100%;
  height: 44px;
  padding: 0 var(--space-4) 0 var(--space-10);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  color: var(--text-inverse);
  font-size: var(--text-base);
  outline: none;
  transition: all var(--transition-base);
}

.mobile-search__input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.mobile-search__input:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--color-primary-500);
}

@media (min-width: 768px) {
  .mobile-search {
    display: none;
  }
}

@media (min-width: 1024px) {
  .nav-mobile-overlay,
  .nav-mobile {
    display: none !important;
  }
}


/* ==========================================================================
   6. FLIGHT HERO SECTION
   ========================================================================== */

.flight-hero {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.flight-hero__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.flight-hero__number {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.flight-hero__airline {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-weight: 500;
}

.flight-hero__date {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-left: auto;
}

/* Flight Route — Departure / Arrival */
.flight-route {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.flight-route__endpoint {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.flight-route__time {
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.flight-route__time--delayed {
  text-decoration: line-through;
  color: var(--text-tertiary);
  font-size: var(--text-2xl);
}

.flight-route__time--new {
  color: var(--status-delayed-text);
}

.flight-route__code {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.flight-route__city {
  font-size: var(--text-base);
  color: var(--text-secondary);
  font-weight: 500;
}

.flight-route__detail {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-tertiary);
  width: fit-content;
}

.flight-route__detail-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.flight-route__detail-value {
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-weight: 600;
}

/* Flight Path Connector (mobile: vertical, desktop: horizontal) */
.flight-path {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) 0;
  position: relative;
}

.flight-path__line {
  width: 2px;
  height: 48px;
  border-left: 2px dashed var(--border-default);
  position: relative;
}

.flight-path__plane {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  width: 24px;
  height: 24px;
  color: var(--color-primary-500);
  background: var(--bg-primary);
  padding: 2px;
}

.flight-path__duration {
  position: absolute;
  left: calc(50% + 20px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .flight-hero {
    padding: var(--space-8);
  }

  .flight-hero__number {
    font-size: var(--text-3xl);
  }

  .flight-route {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .flight-route__endpoint {
    flex: 1;
  }

  .flight-route__endpoint:last-child {
    text-align: right;
    align-items: flex-end;
  }

  .flight-path {
    flex: 0 0 160px;
    padding: 0 var(--space-4);
  }

  .flight-path__line {
    width: 100%;
    height: 2px;
    border-left: none;
    border-top: 2px dashed var(--border-default);
  }

  .flight-path__plane {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  .flight-path__duration {
    left: 50%;
    top: calc(50% + 18px);
    transform: translateX(-50%);
  }
}

@media (min-width: 1024px) {
  .flight-hero {
    padding: var(--space-10);
  }

  .flight-route__time {
    font-size: 3.5rem;
  }

  .flight-path {
    flex: 0 0 220px;
  }
}


/* ==========================================================================
   7. STATUS BADGES
   ========================================================================== */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-badge__icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.status-ontime {
  background: var(--status-ontime-bg);
  color: var(--status-ontime-text);
  border-color: var(--status-ontime-border);
}

.status-boarding {
  background: var(--status-boarding-bg);
  color: var(--status-boarding-text);
  border-color: var(--status-boarding-border);
  animation: badge-pulse 2s ease-in-out infinite;
}

.status-delayed {
  background: var(--status-delayed-bg);
  color: var(--status-delayed-text);
  border-color: var(--status-delayed-border);
}

.status-cancelled {
  background: var(--status-cancelled-bg);
  color: var(--status-cancelled-text);
  border-color: var(--status-cancelled-border);
}

.status-scheduled {
  background: var(--status-scheduled-bg);
  color: var(--status-scheduled-text);
  border-color: var(--status-scheduled-border);
}

.status-landed,
.status-arrived {
  background: var(--status-landed-bg);
  color: var(--status-landed-text);
  border-color: var(--status-landed-border);
}

.status-enroute {
  background: var(--status-enroute-bg);
  color: var(--status-enroute-text);
  border-color: var(--status-enroute-border);
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}


/* ==========================================================================
   8. JOURNEY TIMELINE
   ========================================================================== */

.journey-timeline {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.journey-timeline__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-6);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: var(--space-8);
}

.timeline__step {
  position: relative;
  padding-bottom: var(--space-8);
}

.timeline__step:last-child {
  padding-bottom: 0;
}

/* Vertical connector line */
.timeline__step::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) + 11px);
  top: 28px;
  width: 2px;
  height: calc(100% - 4px);
  background: var(--border-light);
}

.timeline__step:last-child::before {
  display: none;
}

/* Circle marker */
.timeline__marker {
  position: absolute;
  left: calc(-1 * var(--space-8) + 2px);
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.timeline__marker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-default);
}

/* Step states */
.timeline__step.is-completed .timeline__marker {
  border-color: var(--status-ontime-text);
  background: var(--status-ontime-bg);
}

.timeline__step.is-completed .timeline__marker-dot {
  background: var(--status-ontime-text);
}

.timeline__step.is-completed::before {
  background: var(--status-ontime-border);
}

.timeline__step.is-active .timeline__marker {
  border-color: var(--color-primary-500);
  background: var(--color-primary-50);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.timeline__step.is-active .timeline__marker-dot {
  background: var(--color-primary-500);
}

.timeline__step.is-future .timeline__marker {
  border-color: var(--border-light);
}

.timeline__step.is-future .timeline__marker-dot {
  background: var(--border-light);
}

/* Step content */
.timeline__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.timeline__time {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.timeline__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.timeline__sublabel {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

@media (min-width: 768px) {
  .timeline {
    flex-direction: row;
    padding-left: 0;
    gap: 0;
    align-items: flex-start;
    justify-content: space-between;
  }

  .timeline__step {
    flex: 1;
    padding-bottom: 0;
    padding-top: var(--space-12);
    text-align: center;
  }

  /* Horizontal connector line */
  .timeline__step::before {
    left: 50%;
    top: calc(var(--space-12) - var(--space-8) + 11px);
    width: 100%;
    height: 2px;
  }

  .timeline__step:last-child::before {
    display: none;
  }

  /* Center marker horizontally */
  .timeline__marker {
    left: 50%;
    top: calc(var(--space-12) - var(--space-8));
    transform: translateX(-50%);
  }

  .timeline__content {
    align-items: center;
  }
}


/* ==========================================================================
   9. WEATHER CARDS
   ========================================================================== */

.weather-section {
  margin-bottom: var(--space-6);
}

.weather-section__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.weather-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.weather-card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.weather-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.weather-card__location {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.weather-card__location-code {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.weather-card__main {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.weather-card__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.weather-card__temp {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.weather-card__condition {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.weather-card__details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-light);
}

.weather-card__detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.weather-card__detail-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

.weather-card__detail-value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

/* Flight Category Badges */
.flight-category {
  display: inline-flex;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.flight-category--vfr {
  background: var(--status-ontime-bg);
  color: var(--status-ontime-text);
}

.flight-category--mvfr {
  background: var(--status-boarding-bg);
  color: var(--status-boarding-text);
}

.flight-category--ifr {
  background: var(--status-cancelled-bg);
  color: var(--status-cancelled-text);
}

.flight-category--lifr {
  background: var(--status-delayed-bg);
  color: var(--status-delayed-text);
}

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


/* ==========================================================================
   10. MAP CONTAINER
   ========================================================================== */

.map-section {
  margin-bottom: var(--space-6);
}

.map-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-primary-900);
}

.map-container__map {
  width: 100%;
  height: 100%;
}

.map-container__overlay {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  background: rgba(10, 30, 54, 0.85);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  display: flex;
  gap: var(--space-6);
  z-index: 10;
}

.map-overlay__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.map-overlay__label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

.map-overlay__value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-inverse);
}

@media (min-width: 1024px) {
  .map-container {
    height: 500px;
  }
}


/* ==========================================================================
   11. RECOMMENDATION CARDS (Affiliate)
   ========================================================================== */

.recommendations {
  margin-bottom: var(--space-6);
}

.recommendations__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.recommendations__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.rec-card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

.rec-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--border-default);
}

.rec-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-500);
  flex-shrink: 0;
}

.rec-card__icon svg {
  width: 24px;
  height: 24px;
}

.rec-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.rec-card__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0;
}

.rec-card__description {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  line-height: 1.5;
  margin-bottom: 0;
}

.rec-card__price {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.rec-card__price strong {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
}

.rec-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--color-accent-500);
  color: var(--color-primary-900);
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  width: fit-content;
}

.rec-card__cta:hover {
  background: var(--color-accent-600);
  color: var(--color-primary-900);
  box-shadow: var(--shadow-md);
}

.rec-card__cta-icon {
  width: 14px;
  height: 14px;
}

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

@media (min-width: 1024px) {
  .recommendations__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ==========================================================================
   12. FLIGHT INFO TABLE
   ========================================================================== */

.info-table-section {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.info-table-section__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.info-table {
  width: 100%;
}

.info-table tr {
  border-bottom: 1px solid var(--border-light);
}

.info-table tr:last-child {
  border-bottom: none;
}

.info-table tr:nth-child(even) {
  background: var(--bg-secondary);
}

.info-table td {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  vertical-align: middle;
}

.info-table__label {
  color: var(--text-tertiary);
  font-weight: 500;
  width: 40%;
  white-space: nowrap;
}

.info-table__value {
  color: var(--text-primary);
  font-weight: 600;
}

.info-table__value--mono {
  font-family: var(--font-mono);
}

@media (min-width: 768px) {
  .info-table-section {
    padding: var(--space-8);
  }

  .info-table td {
    padding: var(--space-3) var(--space-6);
  }
}


/* ==========================================================================
   13. INTERNAL LINKS SECTION
   ========================================================================== */

.internal-links {
  margin-bottom: var(--space-6);
}

.internal-links__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.internal-links__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.internal-link-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-base);
}

.internal-link-card:hover {
  border-color: var(--color-primary-400);
  background: var(--color-primary-50);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.internal-link-card:hover .internal-link-card__icon {
  color: var(--color-primary-500);
}

.internal-link-card__icon {
  width: 20px;
  height: 20px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: color var(--transition-base);
}

.internal-link-card__text {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
}

.internal-link-card__arrow {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--transition-base);
}

.internal-link-card:hover .internal-link-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

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

@media (min-width: 1024px) {
  .internal-links__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ==========================================================================
   14. AD CONTAINERS
   ========================================================================== */

.ad-container {
  display: none !important;
  margin: var(--space-8) auto;
  max-width: 728px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  min-height: 90px;
}

.ad-container:has(ins[data-ad-status="filled"]) {
  display: block !important;
}

.ad-container--leaderboard {
  max-width: 728px;
}

.ad-container--rectangle {
  max-width: 336px;
}

.ad-container--responsive {
  max-width: 100%;
}

.ad-container--in-content {
  margin: var(--space-6) auto;
}

/* Ad label (optional, subtle) */
.ad-container__label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  text-align: center;
  padding-bottom: var(--space-1);
  opacity: 0.6;
}


/* ==========================================================================
   15. SEARCH BOX (Homepage)
   ========================================================================== */

.hero-search {
  padding: var(--space-12) 0 var(--space-16);
  text-align: center;
}

.hero-search__heading {
  font-size: var(--text-3xl);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.hero-search__subheading {
  font-size: var(--text-base);
  color: var(--text-tertiary);
  margin-bottom: var(--space-8);
}

.search-box {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.search-box__input {
  width: 100%;
  height: 56px;
  padding: 0 var(--space-6) 0 var(--space-12);
  background: var(--bg-primary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: var(--text-lg);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  outline: none;
  transition: all var(--transition-base);
}

.search-box__input::placeholder {
  color: var(--text-tertiary);
  font-weight: 400;
}

.search-box__input:focus {
  border-color: var(--color-primary-500);
  box-shadow: var(--shadow-xl), 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.search-box__icon {
  position: absolute;
  left: var(--space-5);
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: var(--text-tertiary);
  pointer-events: none;
}

.search-box__submit {
  position: absolute;
  right: var(--space-2);
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--color-primary-500);
  border: none;
  border-radius: 50%;
  color: var(--text-inverse);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.search-box__submit:hover {
  background: var(--color-primary-700);
}

.search-box__submit svg {
  width: 18px;
  height: 18px;
}

/* Auto-suggest Dropdown */
.search-suggest {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  z-index: 100;
  display: none;
}

.search-suggest.is-visible {
  display: block;
}

.search-suggest__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-suggest__item:hover,
.search-suggest__item.is-highlighted {
  background: var(--bg-secondary);
}

.search-suggest__item-icon {
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.search-suggest__item-flight {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.search-suggest__item-route {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-left: auto;
}

@media (min-width: 768px) {
  .hero-search {
    padding: var(--space-16) 0;
  }

  .hero-search__heading {
    font-size: var(--text-4xl);
  }

  .search-box__input {
    height: 64px;
    font-size: var(--text-xl);
    padding-left: var(--space-16);
  }

  .search-box__icon {
    left: var(--space-6);
    width: 26px;
    height: 26px;
  }

  .search-box__submit {
    width: 52px;
    height: 52px;
    right: var(--space-2);
  }
}


/* ==========================================================================
   16. DEPARTURES BOARD TABLE
   ========================================================================== */

.departures-board {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: var(--space-6);
}

.departures-board__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-light);
}

.departures-board__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 0;
}

.departures-board__filter {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.departures-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.departures-table {
  width: 100%;
  min-width: 600px;
}

.departures-table thead {
  position: sticky;
  top: 0;
  z-index: 5;
}

.departures-table th {
  background: var(--bg-tertiary);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-light);
}

.departures-table td {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
  vertical-align: middle;
}

.departures-table tbody tr {
  transition: background var(--transition-fast);
}

.departures-table tbody tr:hover {
  background: var(--color-primary-50);
}

.departures-table tbody tr:last-child td {
  border-bottom: none;
}

.departures-table__flight {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-primary-500);
}

.departures-table__flight a {
  color: inherit;
  text-decoration: none;
}

.departures-table__flight a:hover {
  text-decoration: underline;
}

.departures-table__time {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}

.departures-table__destination {
  color: var(--text-primary);
  font-weight: 500;
}

.departures-table__gate {
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

/* Mobile: hide less important columns */
@media (max-width: 767px) {
  .departures-table {
    min-width: 0;
  }

  .departures-table .col-terminal,
  .departures-table .col-gate,
  .departures-table .col-airline {
    display: none;
  }
}

@media (min-width: 768px) {
  .departures-board__header {
    padding: var(--space-6) var(--space-8);
  }
}


/* ==========================================================================
   17. FOOTER
   ========================================================================== */

.site-footer {
  background: var(--color-primary-800);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-12) 0 var(--space-8);
  margin-top: var(--space-12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-col__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

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

.footer-col__logo-icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent-500);
}

.footer-col__logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--text-inverse);
}

.footer-col__tagline {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col__title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-inverse);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col__link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition-base);
  width: fit-content;
}

.footer-col__link:hover {
  color: var(--color-accent-500);
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  text-align: center;
}

.footer-bottom__copy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom__links {
  display: flex;
  gap: var(--space-4);
}

.footer-bottom__link {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-bottom__link:hover {
  color: var(--color-accent-500);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}


/* ==========================================================================
   18. UTILITY CLASSES
   ========================================================================== */

/* Screen reader only */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Font utilities */
.text-mono {
  font-family: var(--font-mono);
}

.text-heading {
  font-family: var(--font-heading);
}

/* Size utilities */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }

/* Text alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Font weight */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Color utilities */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-brand { color: var(--color-primary-500); }
.text-accent { color: var(--color-accent-500); }

/* Spacing — margin-top */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

/* Spacing — margin-bottom */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

/* Spacing — padding */
.p-0 { padding: 0; }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }

/* Display */
.hidden { display: none !important; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Responsive visibility */
.visible-mobile { display: block; }
.visible-tablet { display: none; }
.visible-desktop { display: none; }
.hidden-mobile { display: none; }

@media (min-width: 768px) {
  .visible-mobile { display: none; }
  .visible-tablet { display: block; }
  .hidden-mobile { display: block; }
  .hidden-tablet { display: none; }
}

@media (min-width: 1024px) {
  .visible-tablet { display: none; }
  .visible-desktop { display: block; }
  .hidden-desktop { display: none; }
}

/* Flex utilities */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Card base */
.card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
}

/* Divider */
.divider {
  border: none;
  height: 1px;
  background: var(--border-light);
  margin: var(--space-6) 0;
}

/* Breadcrumb-style page section spacing */
.page-section {
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .page-section {
    margin-bottom: var(--space-10);
  }
}


/* ==========================================================================
   19. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
  line-height: 1.4;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--color-primary-500);
  color: var(--text-inverse);
}

.btn--primary:hover {
  background: var(--color-primary-700);
  color: var(--text-inverse);
}

.btn--secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-color: var(--border-default);
}

.btn--secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--color-primary-400);
}

.btn--accent {
  background: var(--color-accent-500);
  color: var(--color-primary-900);
}

.btn--accent:hover {
  background: var(--color-accent-600);
  color: var(--color-primary-900);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary-500);
}

.btn--ghost:hover {
  background: var(--color-primary-50);
}

.btn--sm {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
}

.btn--lg {
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-base);
}

.btn__icon {
  width: 16px;
  height: 16px;
}


/* ==========================================================================
   20. BREADCRUMBS
   ========================================================================== */

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1);
  padding: var(--space-4) 0;
  font-size: var(--text-sm);
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.breadcrumbs__link {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color var(--transition-base);
}

.breadcrumbs__link:hover {
  color: var(--color-primary-500);
}

.breadcrumbs__separator {
  color: var(--border-default);
  font-size: var(--text-xs);
}

.breadcrumbs__current {
  color: var(--text-primary);
  font-weight: 500;
}


/* ==========================================================================
   21. SKELETON LOADING PLACEHOLDERS
   ========================================================================== */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-tertiary) 25%,
    var(--border-light) 37%,
    var(--bg-tertiary) 63%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.8s ease-in-out infinite;
  border-radius: var(--radius-md);
}

.skeleton--text {
  height: 16px;
  width: 100%;
  margin-bottom: var(--space-2);
}

.skeleton--text-sm {
  height: 12px;
  width: 60%;
}

.skeleton--heading {
  height: 32px;
  width: 50%;
  margin-bottom: var(--space-3);
}

.skeleton--time {
  height: 48px;
  width: 140px;
  font-family: var(--font-mono);
}

.skeleton--badge {
  height: 24px;
  width: 80px;
  border-radius: var(--radius-full);
}

.skeleton--card {
  height: 200px;
  width: 100%;
  border-radius: var(--radius-xl);
}

.skeleton--map {
  height: 400px;
  width: 100%;
  border-radius: var(--radius-xl);
}

.skeleton--circle {
  height: 56px;
  width: 56px;
  border-radius: 50%;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* ==========================================================================
   22. CONTENT PROSE (article / guide pages)
   ========================================================================== */

.prose {
  color: var(--text-secondary);
  line-height: 1.75;
}

.prose h2 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.prose h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.prose p {
  margin-bottom: var(--space-4);
}

.prose ul,
.prose ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: var(--space-2);
}

.prose a {
  color: var(--color-primary-500);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--color-primary-700);
}

.prose blockquote {
  border-left: 3px solid var(--color-accent-500);
  padding-left: var(--space-5);
  margin: var(--space-6) 0;
  font-style: italic;
  color: var(--text-tertiary);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-tertiary);
  padding: 0.1em 0.3em;
  border-radius: var(--radius-sm);
}

.prose table {
  margin: var(--space-6) 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.prose table th,
.prose table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.prose table th {
  background: var(--bg-tertiary);
  font-weight: 600;
  font-size: var(--text-sm);
}


/* ==========================================================================
   23. ANIMATIONS & TRANSITIONS
   ========================================================================== */

/* Fade in */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in {
  animation: fade-in 0.4s ease forwards;
}

/* Slide up */
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slide-up 0.5s ease forwards;
}

/* Pulse dot (for live tracking) */
@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
  }
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary-500);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Plane moving (for loading state) */
@keyframes plane-move {
  0% { transform: translateX(-20px); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(20px); opacity: 0; }
}

.animate-plane {
  animation: plane-move 2s ease-in-out infinite;
}

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

  .skeleton {
    animation: none;
    background: var(--bg-tertiary);
  }
}


/* ==========================================================================
   24. PRINT STYLES
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  /* Hide non-essential elements */
  .site-header,
  .site-footer,
  .nav-mobile,
  .nav-mobile-overlay,
  .mobile-search,
  .hamburger,
  .ad-container,
  .map-container,
  .map-section,
  .recommendations,
  .hero-search,
  .search-box,
  .search-suggest,
  .btn,
  .internal-links,
  .header-search {
    display: none !important;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  /* Flight hero — print friendly */
  .flight-hero {
    border: 1px solid #ccc;
    padding: 16pt;
    margin-bottom: 16pt;
    page-break-inside: avoid;
  }

  .flight-route__time {
    font-size: 24pt;
  }

  .status-badge {
    border: 1px solid #666;
    padding: 2pt 8pt;
  }

  /* Tables */
  .departures-table th,
  .departures-table td,
  .info-table td {
    border: 1px solid #ccc;
    padding: 4pt 8pt;
  }

  /* Show link URLs */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666 !important;
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  /* Avoid breaks inside cards */
  .card,
  .weather-card,
  .info-table-section,
  .journey-timeline {
    page-break-inside: avoid;
  }

  h2, h3 {
    page-break-after: avoid;
  }
}


/* ==========================================================================
   25. DARK MODE
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  :root {
    /* Override background tokens */
    --bg-primary: #111827;
    --bg-secondary: #0B1120;
    --bg-tertiary: #1E293B;

    /* Override text tokens */
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-tertiary: #64748B;

    /* Override border tokens */
    --border-light: #1E293B;
    --border-default: #334155;

    /* Override shadows for dark */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);

    /* Status badge backgrounds — darker variants */
    --status-ontime-bg: #052E16;
    --status-ontime-text: #4ADE80;
    --status-ontime-border: #166534;

    --status-boarding-bg: #172554;
    --status-boarding-text: #60A5FA;
    --status-boarding-border: #1E40AF;

    --status-delayed-bg: #431407;
    --status-delayed-text: #FB923C;
    --status-delayed-border: #9A3412;

    --status-cancelled-bg: #450A0A;
    --status-cancelled-text: #FCA5A5;
    --status-cancelled-border: #991B1B;

    --status-scheduled-bg: #2E1065;
    --status-scheduled-text: #A78BFA;
    --status-scheduled-border: #5B21B6;

    --status-landed-bg: #1E293B;
    --status-landed-text: #94A3B8;
    --status-landed-border: #475569;

    --status-enroute-bg: #172554;
    --status-enroute-text: #60A5FA;
    --status-enroute-border: #1E40AF;
  }

  /* Adjust header — deeper dark */
  .site-header {
    background-color: #070D18;
    border-bottom-color: var(--color-accent-600);
  }

  /* Header search input */
  .header-search__input {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
  }

  .header-search__input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
  }

  /* Mobile nav */
  .nav-mobile {
    background: #070D18;
  }

  .nav-mobile-overlay {
    background: rgba(0, 0, 0, 0.7);
  }

  .mobile-search {
    background: #050A14;
  }

  .mobile-search__input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.06);
  }

  /* Footer */
  .site-footer {
    background: #070D18;
  }

  /* Search box */
  .search-box__input {
    background: var(--bg-primary);
    border-color: var(--border-default);
    color: var(--text-primary);
  }

  .search-box__input::placeholder {
    color: var(--text-tertiary);
  }

  .search-box__input:focus {
    border-color: var(--color-primary-500);
    box-shadow: var(--shadow-xl), 0 0 0 4px rgba(37, 99, 235, 0.2);
  }

  /* Search suggest dropdown */
  .search-suggest {
    background: var(--bg-primary);
    border-color: var(--border-default);
  }

  .search-suggest__item:hover,
  .search-suggest__item.is-highlighted {
    background: var(--bg-tertiary);
  }

  /* Flight category badges — dark */
  .flight-category--vfr {
    background: var(--status-ontime-bg);
    color: var(--status-ontime-text);
  }

  .flight-category--mvfr {
    background: var(--status-boarding-bg);
    color: var(--status-boarding-text);
  }

  .flight-category--ifr {
    background: var(--status-cancelled-bg);
    color: var(--status-cancelled-text);
  }

  .flight-category--lifr {
    background: var(--status-delayed-bg);
    color: var(--status-delayed-text);
  }

  /* Departures table row hover */
  .departures-table tbody tr:hover {
    background: var(--bg-tertiary);
  }

  /* Internal link card hover */
  .internal-link-card:hover {
    background: var(--bg-tertiary);
    border-color: var(--color-primary-700);
  }

  /* Rec card */
  .rec-card {
    border-color: var(--border-default);
  }

  .rec-card:hover {
    border-color: var(--color-primary-700);
  }

  .rec-card__icon {
    background: rgba(37, 99, 235, 0.15);
  }

  /* Button adjustments */
  .btn--secondary {
    background: var(--bg-tertiary);
    border-color: var(--border-default);
  }

  .btn--secondary:hover {
    background: var(--bg-primary);
    border-color: var(--color-primary-500);
  }

  /* Skeleton */
  .skeleton {
    background: linear-gradient(
      90deg,
      var(--bg-tertiary) 25%,
      #2D3B50 37%,
      var(--bg-tertiary) 63%
    );
    background-size: 200% 100%;
  }

  /* Map overlay */
  .map-container__overlay {
    background: rgba(7, 13, 24, 0.9);
  }

  /* Prose blockquote */
  .prose blockquote {
    border-left-color: var(--color-accent-600);
    color: var(--text-secondary);
  }

  .prose code {
    background: var(--bg-tertiary);
  }

  /* Scrollbar styling for dark mode */
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  ::-webkit-scrollbar-track {
    background: var(--bg-secondary);
  }

  ::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #475569;
  }
}


/* ==========================================================================
   26. FOCUS VISIBLE (Accessibility)
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary-500);
  color: var(--text-inverse);
  font-weight: 600;
  border-radius: var(--radius-md);
  z-index: 10000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-2);
}


/* ==========================================================================
   27. RESPONSIVE TYPOGRAPHY SCALING
   ========================================================================== */

@media (min-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }
  h4 { font-size: var(--text-xl); }
}

@media (min-width: 1280px) {
  :root {
    --text-4xl: 2.5rem;
  }

  h1 { font-size: var(--text-4xl); }
}


/* ==========================================================================
   28. FLIGHT PAGE — Hero & Status Bar
   ========================================================================== */

.flight-hero {
  background: linear-gradient(135deg, var(--color-primary-900) 0%, var(--color-primary-800) 100%);
  padding: var(--space-8) 0;
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}

.flight-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(240, 182, 65, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

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

.flight-hero__top {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .flight-hero__top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.flight-code-display {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-inverse);
}

@media (min-width: 768px) {
  .flight-code-display {
    font-size: var(--text-4xl);
  }
}

.flight-hero__airline {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--space-1);
}

.flight-route {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
}

@media (min-width: 640px) {
  .flight-route {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-6);
  }
}

.flight-route__airport {
  text-align: center;
  flex: 1;
  min-width: 0;
}

.flight-route__iata {
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-inverse);
  line-height: 1;
}

@media (min-width: 768px) {
  .flight-route__iata {
    font-size: 3.5rem;
  }
}

.flight-route__name {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  margin-top: var(--space-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  margin-left: auto;
  margin-right: auto;
}

.flight-route__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  padding: 0 var(--space-4);
}

.flight-route__arrow-icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent-500);
}

@media (min-width: 640px) {
  .flight-route__arrow-icon {
    width: 48px;
    height: 48px;
  }
}

.flight-route__duration {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.flight-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

@media (min-width: 768px) {
  .flight-times {
    gap: var(--space-8);
    margin-top: var(--space-6);
  }
}

.time-block {
  text-align: center;
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
}

.time-block__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--space-2);
}

.time-block__time {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-inverse);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .time-block__time {
    font-size: var(--text-3xl);
  }
}

.time-scheduled {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.35);
  text-decoration: line-through;
  margin-top: var(--space-1);
}

.time-actual {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-accent-400);
}

@media (min-width: 768px) {
  .time-actual {
    font-size: var(--text-3xl);
  }
}

.time-block__date {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  margin-top: var(--space-1);
}

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  margin-top: var(--space-6);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--color-primary-400);
  transition: width 1s ease-in-out;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--text-inverse);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.progress-fill.status-ontime {
  background: linear-gradient(90deg, var(--status-ontime-border), #34D399);
}

.progress-fill.status-delayed {
  background: linear-gradient(90deg, var(--status-delayed-border), #FB923C);
}

.progress-fill.status-enroute {
  background: linear-gradient(90deg, var(--color-primary-400), #60A5FA);
}

.progress-fill.status-landed {
  background: linear-gradient(90deg, var(--status-ontime-border), #34D399);
}

.progress-fill.status-landed::after {
  display: none;
}

.progress-bar__labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
}


/* ==========================================================================
   29. FLIGHT PAGE — Status Badges
   ========================================================================== */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.5;
  text-transform: uppercase;
}

.status-badge__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.status-badge.status-scheduled {
  background: var(--status-scheduled-bg);
  color: var(--status-scheduled-text);
  border-color: var(--status-scheduled-border);
}

.status-badge.status-active,
.status-badge.status-enroute {
  background: var(--status-enroute-bg);
  color: var(--status-enroute-text);
  border-color: var(--status-enroute-border);
}

.status-badge.status-boarding {
  background: var(--status-boarding-bg);
  color: var(--status-boarding-text);
  border-color: var(--status-boarding-border);
}

.status-badge.status-landed,
.status-badge.status-arrived {
  background: var(--status-landed-bg);
  color: var(--status-landed-text);
  border-color: var(--status-landed-border);
}

.status-badge.status-delayed {
  background: var(--status-delayed-bg);
  color: var(--status-delayed-text);
  border-color: var(--status-delayed-border);
}

.status-badge.status-cancelled {
  background: var(--status-cancelled-bg);
  color: var(--status-cancelled-text);
  border-color: var(--status-cancelled-border);
}

.status-badge.status-minor-delay {
  background: #FFFBEB;
  color: #B45309;
  border-color: #FDE68A;
}

.status-badge.status-diverted {
  background: #FFF1F2;
  color: #9F1239;
  border-color: #FECDD3;
}

.status-badge.status-ontime {
  background: var(--status-ontime-bg);
  color: var(--status-ontime-text);
  border-color: var(--status-ontime-border);
}

/* Larger badge variant for the hero */
.status-badge--lg {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.status-badge--lg .status-badge__icon {
  width: 18px;
  height: 18px;
}


/* ==========================================================================
   30. FLIGHT PAGE — Journey Timeline
   ========================================================================== */

.journey-timeline {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
}

.journey-timeline__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border-light);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-6);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-8) + 2px);
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.timeline-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-default);
}

.timeline-dot.completed {
  border-color: var(--status-ontime-text);
  background: var(--status-ontime-bg);
}

.timeline-dot.completed::after {
  background: var(--status-ontime-text);
}

.timeline-dot.current {
  border-color: var(--color-primary-500);
  background: var(--color-primary-50);
  animation: pulse-dot 2s ease-in-out infinite;
}

.timeline-dot.current::after {
  background: var(--color-primary-500);
}

.timeline-dot.upcoming {
  border-color: var(--border-light);
}

.timeline-dot.upcoming::after {
  background: var(--border-light);
}

.timeline-dot.delayed {
  border-color: var(--status-delayed-text);
  background: var(--status-delayed-bg);
}

.timeline-dot.delayed::after {
  background: var(--status-delayed-text);
}

.timeline-line {
  position: absolute;
  left: calc(-1 * var(--space-8) + 11px);
  top: 24px;
  bottom: 0;
  width: 2px;
  background: var(--border-light);
}

.timeline-item:last-child .timeline-line {
  display: none;
}

.timeline-line.completed {
  background: var(--status-ontime-border);
}

.timeline-line.current {
  background: linear-gradient(to bottom, var(--color-primary-400), var(--border-light));
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-height: 20px;
}

.timeline-time {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.timeline-sublabel {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-1);
  flex-wrap: wrap;
}

.timeline-meta__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.timeline-meta__item svg {
  width: 12px;
  height: 12px;
}


/* ==========================================================================
   31. FLIGHT PAGE — Weather Cards
   ========================================================================== */

.weather-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .weather-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}

.weather-card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-5);
  border: 1px solid var(--border-light);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.weather-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-default);
}

.weather-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-light);
}

.weather-card-header__airport {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
}

.weather-card-header__iata {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}

.weather-category {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}

.weather-temp {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.weather-temp__icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent-500);
  flex-shrink: 0;
}

.weather-temp__value {
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.weather-temp__unit {
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--text-tertiary);
}

.weather-temp__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

.weather-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

@media (min-width: 480px) {
  .weather-details {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.weather-detail-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.weather-detail-item__label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.weather-detail-item__value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

/* Flight category colors */
.wx-vfr,
.flight-category--vfr {
  color: #059669;
  background: #ECFDF5;
}

.wx-mvfr,
.flight-category--mvfr {
  color: #2563EB;
  background: #EFF6FF;
}

.wx-ifr,
.flight-category--ifr {
  color: #DC2626;
  background: #FEF2F2;
}

.wx-lifr,
.flight-category--lifr {
  color: #9333EA;
  background: #F5F3FF;
}


/* ==========================================================================
   32. FLIGHT PAGE — Map Section
   ========================================================================== */

.map-section {
  margin-bottom: var(--space-8);
}

.map-section__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.map-container {
  position: relative;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

#flight-map {
  height: 300px;
  border-radius: var(--radius-xl);
  z-index: 1;
}

@media (min-width: 768px) {
  #flight-map {
    height: 400px;
  }
}

@media (min-width: 1024px) {
  #flight-map {
    height: 480px;
  }
}

.map-container__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 248, 250, 0.9);
  z-index: 2;
  border-radius: var(--radius-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.map-container__overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.map-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  border-top: 1px solid var(--border-light);
}

.map-legend__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.map-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.map-legend__dot--departure {
  background: var(--color-primary-500);
}

.map-legend__dot--arrival {
  background: var(--status-ontime-text);
}

.map-legend__dot--plane {
  background: var(--color-accent-500);
}

.map-legend__line {
  width: 20px;
  height: 2px;
  border-radius: 1px;
}

.map-legend__line--route {
  background: var(--color-primary-400);
  border-style: dashed;
}


/* ==========================================================================
   33. FLIGHT PAGE — Info Card / Flight Details Table
   ========================================================================== */

.info-card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  border: 1px solid var(--border-light);
}

.info-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.info-card__title-icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary-500);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.info-item:hover {
  background: var(--bg-tertiary);
}

.info-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.info-value {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
}

.info-value--mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.info-value--highlight {
  color: var(--color-primary-500);
}

/* Divider between info card sections */
.info-card__divider {
  border: none;
  height: 1px;
  background: var(--border-light);
  margin: var(--space-5) 0;
}


/* ==========================================================================
   34. FLIGHT PAGE — Airline Policy Card
   ========================================================================== */

.policy-card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  border: 1px solid var(--border-light);
}

.policy-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.policy-card__subtitle {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--space-5);
}

.policy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .policy-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .policy-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.policy-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.policy-item:hover {
  background: var(--bg-tertiary);
  box-shadow: var(--shadow-sm);
}

.policy-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.policy-icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary-500);
}

.policy-item__content {
  flex: 1;
  min-width: 0;
}

.policy-item__label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-1);
}

.policy-item__value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.policy-item__note {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}


/* ==========================================================================
   35. FLIGHT PAGE — Related Content / Internal Links
   ========================================================================== */

.related-section {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.related-section__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .related-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.related-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color var(--transition-base), box-shadow var(--transition-base),
              transform var(--transition-base), background var(--transition-base);
}

.related-card:hover {
  border-color: var(--color-primary-400);
  box-shadow: var(--shadow-md);
  background: var(--color-primary-50);
  transform: translateY(-2px);
}

.related-card:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

.related-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition-base);
}

.related-card:hover .related-card__icon {
  background: var(--color-primary-100);
}

.related-card__icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary-500);
}

.related-card__text {
  flex: 1;
  min-width: 0;
}

.related-card__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.related-card__desc {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.related-card__arrow {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: color var(--transition-base), transform var(--transition-base);
}

.related-card:hover .related-card__arrow {
  color: var(--color-primary-500);
  transform: translateX(2px);
}


/* ==========================================================================
   36. FLIGHT NOT FOUND PAGE (flight-not-found.php)
   ========================================================================== */

.not-found-hero {
  background: var(--bg-secondary);
  padding: var(--space-12) 0;
  text-align: center;
  min-height: 40vh;
  display: flex;
  align-items: center;
}

.not-found-card {
  background: var(--bg-primary);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-8) var(--space-6);
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 768px) {
  .not-found-card {
    padding: var(--space-12) var(--space-10);
  }
}

.not-found-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-5);
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.not-found-icon svg {
  width: 40px;
  height: 40px;
  color: var(--text-tertiary);
}

.not-found-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.not-found-card__desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.not-found-card__code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-primary-500);
}

/* Search input group (used on not-found page) */
.search-input-group {
  display: flex;
  gap: var(--space-2);
  max-width: 400px;
  margin: 0 auto;
}

.search-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 2px solid var(--border-default);
  border-radius: var(--radius-lg);
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.search-input::placeholder {
  color: var(--text-tertiary);
  text-transform: none;
  letter-spacing: normal;
}

.search-input:focus {
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 48px;
  padding: 0 var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-inverse);
  background: var(--color-primary-500);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background var(--transition-base), box-shadow var(--transition-base),
              transform var(--transition-fast);
  white-space: nowrap;
}

.search-btn:hover {
  background: var(--color-primary-700);
  box-shadow: var(--shadow-md);
}

.search-btn:active {
  transform: scale(0.97);
}

.search-btn:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

.search-btn svg {
  width: 18px;
  height: 18px;
}

/* Tips section */
.not-found-tips,
.not-found-popular,
.not-found-departures {
  padding: var(--space-8) 0;
}

.not-found-tips__title,
.not-found-popular__title,
.not-found-departures__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  text-align: center;
}

.tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .tips-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .tips-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.tip-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  text-align: center;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.tip-card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-md);
}

.tip-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  background: var(--color-primary-50);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tip-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary-500);
}

.tip-card__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.tip-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Popular flights grid */
.popular-flights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

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

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

.popular-flight-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base),
              transform var(--transition-fast), background var(--transition-base);
}

.popular-flight-card:hover {
  border-color: var(--color-primary-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  background: var(--color-primary-50);
}

.popular-flight-card:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

.pf-code {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary-500);
  letter-spacing: 0.02em;
}

.pf-route {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-align: center;
  line-height: 1.4;
}

/* Departures link grid */
.departures-link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

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

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

@media (min-width: 1024px) {
  .departures-link-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.dep-link-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base),
              background var(--transition-base);
}

.dep-link-card:hover {
  border-color: var(--color-primary-400);
  box-shadow: var(--shadow-sm);
  background: var(--color-primary-50);
}

.dep-link-card:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

.dep-iata {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--color-primary-500);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.dep-name {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}


/* ==========================================================================
   37. FLIGHT PAGE — Layout Helpers
   ========================================================================== */

/* Two-column layout for flight detail sections */
.flight-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

@media (min-width: 1024px) {
  .flight-content-grid {
    grid-template-columns: 2fr 1fr;
    gap: var(--space-8);
  }
}

.flight-content-grid__main {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  min-width: 0;
}

.flight-content-grid__sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* Section title pattern used across flight page sections */
.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.section-title__icon {
  width: 22px;
  height: 22px;
  color: var(--color-primary-500);
}

/* Last updated timestamp */
.last-updated {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.last-updated__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-ontime-text);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* "Data from" attribution line */
.data-attribution {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-align: center;
  margin-top: var(--space-4);
}

.data-attribution a {
  color: var(--color-primary-500);
  text-decoration: none;
}

.data-attribution a:hover {
  text-decoration: underline;
}


/* ==========================================================================
   38. FLIGHT PAGE — Dark Mode Overrides
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  /* Flight hero adjustments */
  .flight-hero {
    background: linear-gradient(135deg, #050A14 0%, #0A1225 100%);
  }

  .flight-hero::before {
    background: radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(240, 182, 65, 0.04) 0%, transparent 60%);
  }

  .time-block {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
  }

  .progress-bar {
    background: rgba(255, 255, 255, 0.06);
  }

  /* Status badges in dark mode use token overrides from section 25 */

  .status-badge.status-minor-delay {
    background: #422006;
    color: #FBBF24;
    border-color: #854D0E;
  }

  .status-badge.status-diverted {
    background: #4C0519;
    color: #FDA4AF;
    border-color: #881337;
  }

  /* Weather cards */
  .weather-card {
    border-color: var(--border-default);
  }

  .weather-detail-item {
    background: var(--bg-tertiary);
  }

  .wx-vfr,
  .flight-category--vfr {
    background: #052E16;
    color: #4ADE80;
  }

  .wx-mvfr,
  .flight-category--mvfr {
    background: #172554;
    color: #60A5FA;
  }

  .wx-ifr,
  .flight-category--ifr {
    background: #450A0A;
    color: #FCA5A5;
  }

  .wx-lifr,
  .flight-category--lifr {
    background: #2E1065;
    color: #A78BFA;
  }

  /* Info cards */
  .info-card,
  .policy-card {
    border-color: var(--border-default);
  }

  .info-item {
    background: var(--bg-tertiary);
  }

  .info-item:hover {
    background: #253346;
  }

  .policy-item {
    background: var(--bg-tertiary);
  }

  .policy-item:hover {
    background: #253346;
  }

  .policy-icon {
    background: rgba(37, 99, 235, 0.15);
  }

  /* Related cards */
  .related-card {
    border-color: var(--border-default);
  }

  .related-card:hover {
    border-color: var(--color-primary-700);
    background: var(--bg-tertiary);
  }

  .related-card__icon {
    background: var(--bg-tertiary);
  }

  .related-card:hover .related-card__icon {
    background: rgba(37, 99, 235, 0.15);
  }

  /* Not-found page */
  .not-found-card {
    border: 1px solid var(--border-default);
  }

  .not-found-icon {
    background: var(--bg-tertiary);
  }

  .search-input {
    background: var(--bg-tertiary);
    border-color: var(--border-default);
    color: var(--text-primary);
  }

  .search-input:focus {
    border-color: var(--color-primary-500);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
  }

  /* Tip cards, popular flights, dep links */
  .tip-card {
    border-color: var(--border-default);
    background: var(--bg-primary);
  }

  .tip-card:hover {
    border-color: var(--color-primary-700);
  }

  .tip-icon {
    background: rgba(37, 99, 235, 0.15);
  }

  .popular-flight-card {
    border-color: var(--border-default);
  }

  .popular-flight-card:hover {
    border-color: var(--color-primary-700);
    background: var(--bg-tertiary);
  }

  .dep-link-card {
    border-color: var(--border-default);
  }

  .dep-link-card:hover {
    border-color: var(--color-primary-700);
    background: var(--bg-tertiary);
  }

  /* Map container */
  .map-container {
    border-color: var(--border-default);
  }

  .map-container__overlay {
    background: rgba(7, 13, 24, 0.9);
  }

  .map-legend {
    border-top-color: var(--border-default);
  }
}


/* ==========================================================================
   39. FLIGHT PAGE — Print Overrides
   ========================================================================== */

@media print {
  .flight-hero {
    color: #000 !important;
    border: 2px solid #333;
    padding: 16pt;
  }

  .flight-route__iata {
    color: #000 !important;
    font-size: 28pt;
  }

  .time-block {
    border: 1px solid #ccc;
  }

  .time-block__time,
  .time-block__label,
  .flight-code-display {
    color: #000 !important;
  }

  .progress-bar,
  .map-section,
  .related-section,
  .search-input-group {
    display: none !important;
  }

  .weather-card,
  .info-card,
  .policy-card,
  .journey-timeline {
    border: 1px solid #ccc;
    box-shadow: none;
    page-break-inside: avoid;
  }

  .not-found-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}


/* ── Mobile Menu Overlay ───────────────────────────────────────── */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 90;
    backdrop-filter: blur(2px);
}

.menu-overlay--visible {
    display: block;
}

.menu-panel--open {
    display: block !important;
}

.menu-toggle--active svg line:nth-child(1) {
    transform: rotate(45deg) translate(5px, -2px);
    transform-origin: center;
}

.menu-toggle--active svg line:nth-child(2) {
    opacity: 0;
}

.menu-toggle--active svg line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, 2px);
    transform-origin: center;
}

body.menu-open {
    overflow: hidden;
}


/* ── Search Autocomplete Dropdown ──────────────────────────────── */
.search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: 0.5rem;
    max-height: 320px;
    overflow-y: auto;
    z-index: 50;
}

.search-autocomplete__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background var(--transition);
}

.search-autocomplete__item:hover,
.search-autocomplete__item--active {
    background: var(--blue-pale);
}

.search-autocomplete__code {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--blue);
    min-width: 60px;
}

.search-autocomplete__airline {
    font-size: 0.9rem;
    color: var(--slate-600);
}


/* ── Search Error Message ──────────────────────────────────────── */
.search-error {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    text-align: center;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: var(--radius-md);
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 40;
}


/* ── Screen Reader Only ────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ── Lazy Load Fade-in ─────────────────────────────────────────── */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy-loaded {
    opacity: 1;
}


/* ── Copy Feedback ─────────────────────────────────────────────── */
.copy-feedback {
    color: var(--green) !important;
}
