/* ==========================================================================
   TRIVOY REAL-TIME FLIGHT TRACKER CSS
   Luxury aviation design system with interactive live radar, telemetry HUD,
   flight timelines, airport departure/arrival boards, aircraft specifications,
   cancelled/diverted alerts, skeleton loaders, and 3-zone desktop cockpit.
   ========================================================================== */

:root {
  --ft-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ft-font-serif: 'Fraunces', Georgia, serif;
  --ft-font-mono: 'SF Mono', 'Roboto Mono', Menlo, monospace;

  /* Brand Colors */
  --brand-emerald-dark: #071a12;
  --brand-emerald: #164e33;
  --brand-emerald-light: #237b51;
  --brand-sage: #8da396;
  --brand-sage-light: #e6f0e9;
  --brand-sage-tint: #f2f7f4;
  --brand-gold: #d4af37;

  /* Operational Aviation Colors */
  --flight-in-air: #10b981;
  --flight-in-air-bg: #ecfdf5;
  --flight-scheduled: #3b82f6;
  --flight-scheduled-bg: #eff6ff;
  --flight-boarding: #0ea5e9;
  --flight-boarding-bg: #f0f9ff;
  --flight-departed: #6366f1;
  --flight-departed-bg: #eef2ff;
  --flight-delayed: #f59e0b;
  --flight-delayed-bg: #fffbeb;
  --flight-landed: #059669;
  --flight-landed-bg: #f0fdf4;
  --flight-cancelled: #ef4444;
  --flight-cancelled-bg: #fef2f2;
  --flight-diverted: #d97706;
  --flight-diverted-bg: #fff7ed;

  /* Neutrals & Radar Dark */
  --ft-bg: #f8faf9;
  --ft-bg-subtle: #f0f4f2;
  --ft-card-bg: #ffffff;
  --ft-border-light: rgba(22, 78, 51, 0.12);
  --ft-border-hover: rgba(22, 78, 51, 0.28);
  
  --radar-bg: #0a1612;
  --radar-panel-bg: rgba(10, 22, 18, 0.88);
  --radar-border: rgba(35, 123, 81, 0.35);
  --radar-accent: #10b981;
  --radar-grid: rgba(255, 255, 255, 0.08);

  /* Radii & Shadows */
  --ft-radius-sm: 8px;
  --ft-radius-md: 14px;
  --ft-radius-lg: 20px;
  --ft-radius-full: 9999px;

  --ft-shadow-card: 0 4px 20px -2px rgba(7, 26, 18, 0.06), 0 2px 6px -1px rgba(7, 26, 18, 0.04);
  --ft-shadow-hover: 0 16px 36px -6px rgba(7, 26, 18, 0.14), 0 6px 16px -2px rgba(7, 26, 18, 0.08);
  --ft-shadow-radar: 0 20px 48px rgba(0, 0, 0, 0.4);
}

.flight-tracker-page {
  background-color: var(--ft-bg);
  min-height: 100vh;
  font-family: var(--ft-font-sans);
  color: var(--brand-emerald-dark);
}

.ft-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .ft-container {
    padding: 0 16px;
  }
}

/* ==========================================================================
   1. FLIGHT TRACKER HERO & SEARCH BAR
   ========================================================================== */
.ft-hero {
  position: relative;
  background: 
    radial-gradient(circle at 90% 10%, rgba(35, 123, 81, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(16, 185, 129, 0.12) 0%, transparent 40%),
    linear-gradient(135deg, #ffffff 0%, var(--brand-sage-tint) 100%);
  border-bottom: 1px solid var(--ft-border-light);
  padding: 38px 0 28px;
  margin-bottom: 28px;
}

.ft-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ft-hero-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-sage-light);
  color: var(--brand-emerald-light);
  padding: 6px 14px;
  border-radius: var(--ft-radius-full);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
}

.hero-badge-pill.live-pulse::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--flight-in-air);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.ft-hero-title {
  font-family: var(--ft-font-serif);
  font-size: clamp(30px, 3.8vw, 42px);
  font-weight: 800;
  color: var(--brand-emerald-dark);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}

.ft-hero-subtitle {
  font-size: 15.5px;
  color: #5c6e64;
  margin: 0;
  max-width: 680px;
}

/* Mode Switcher Tabs */
.search-mode-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 4px;
  border-radius: var(--ft-radius-full);
  border: 1px solid var(--ft-border-light);
  width: fit-content;
  flex-wrap: wrap;
}

.search-mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--ft-radius-full);
  font-size: 13.5px;
  font-weight: 700;
  color: #5c6e64;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-mode-tab:hover {
  color: var(--brand-emerald-dark);
}

.search-mode-tab.active {
  background: var(--brand-emerald-dark);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(7, 26, 18, 0.2);
}

/* Master Search Card */
.ft-search-card {
  background: #ffffff;
  border: 1px solid var(--ft-border-light);
  border-radius: var(--ft-radius-lg);
  padding: 20px 24px;
  box-shadow: var(--ft-shadow-card);
}

.search-form-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.search-input-field-wrap {
  flex: 1 1 260px;
  position: relative;
}

.search-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #8da396;
  font-size: 18px;
  pointer-events: none;
}

.ft-input {
  width: 100%;
  height: 48px;
  background: var(--ft-bg-subtle);
  border: 1.5px solid var(--ft-border-light);
  border-radius: var(--ft-radius-md);
  padding: 0 16px 0 46px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 600;
  color: var(--brand-emerald-dark);
  outline: none;
  transition: all 0.2s ease;
}

.ft-input:focus {
  background: #ffffff;
  border-color: var(--brand-emerald-light);
  box-shadow: 0 0 0 3px rgba(35, 123, 81, 0.12);
}

.ft-input::placeholder {
  color: #8da396;
  font-weight: 500;
}

.btn-track-action {
  height: 48px;
  padding: 0 28px;
  background: var(--brand-emerald);
  color: #ffffff;
  border: none;
  border-radius: var(--ft-radius-md);
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(22, 78, 51, 0.24);
}

.btn-track-action:hover {
  background: var(--brand-emerald-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(22, 78, 51, 0.32);
}

/* Quick flight search chips */
.quick-flights-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.quick-flights-label {
  font-size: 12px;
  font-weight: 700;
  color: #6a7b72;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--ft-radius-full);
  background: var(--ft-bg-subtle);
  border: 1px solid var(--ft-border-light);
  font-size: 12.5px;
  font-weight: 600;
  color: #4b5d52;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-chip:hover {
  background: var(--brand-sage-light);
  color: var(--brand-emerald-dark);
  border-color: var(--brand-sage);
}

/* ==========================================================================
   2. FLIGHT STATUS HERO BANNER
   ========================================================================== */
.flight-status-banner {
  background: #ffffff;
  border: 1px solid var(--ft-border-light);
  border-radius: var(--ft-radius-lg);
  padding: 24px 28px;
  box-shadow: var(--ft-shadow-card);
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.status-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ft-border-light);
}

.airline-flight-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.airline-badge-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--brand-emerald);
}

.flight-number-title {
  font-family: var(--ft-font-serif);
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-emerald-dark);
  margin: 0;
  line-height: 1.2;
}

.airline-name-sub {
  font-size: 14px;
  font-weight: 600;
  color: #6a7b72;
}

/* Operational Status Pills */
.op-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--ft-radius-full);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.op-status-pill.in-flight {
  background: var(--flight-in-air-bg);
  color: var(--flight-in-air);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
}

.op-status-pill.scheduled {
  background: var(--flight-scheduled-bg);
  color: var(--flight-scheduled);
  border: 1.5px solid rgba(59, 130, 246, 0.4);
}

.op-status-pill.boarding {
  background: var(--flight-boarding-bg);
  color: var(--flight-boarding);
  border: 1.5px solid rgba(14, 165, 233, 0.4);
}

.op-status-pill.departed {
  background: var(--flight-departed-bg);
  color: var(--flight-departed);
  border: 1.5px solid rgba(99, 102, 241, 0.4);
}

.op-status-pill.delayed {
  background: var(--flight-delayed-bg);
  color: var(--flight-delayed);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
}

.op-status-pill.landed {
  background: var(--flight-landed-bg);
  color: var(--flight-landed);
  border: 1.5px solid rgba(5, 150, 105, 0.4);
}

.op-status-pill.cancelled {
  background: var(--flight-cancelled-bg);
  color: var(--flight-cancelled);
  border: 1.5px solid rgba(239, 68, 68, 0.4);
}

.op-status-pill.diverted {
  background: var(--flight-diverted-bg);
  color: var(--flight-diverted);
  border: 1.5px solid rgba(217, 119, 6, 0.4);
}

/* Route Display & Times Grid */
.route-times-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .route-times-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
}

.airport-endpoint {
  display: flex;
  flex-direction: column;
}

.airport-endpoint.dest {
  text-align: right;
}

@media (max-width: 768px) {
  .airport-endpoint.dest {
    text-align: center;
  }
}

.airport-code-large {
  font-family: var(--ft-font-serif);
  font-size: 38px;
  font-weight: 900;
  color: var(--brand-emerald-dark);
  line-height: 1;
  letter-spacing: -1px;
}

.airport-city-name {
  font-size: 15px;
  font-weight: 700;
  color: #334a3e;
  margin: 4px 0 2px;
}

.airport-full-name {
  font-size: 12.5px;
  color: #8da396;
}

.flight-time-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-emerald-dark);
  margin-top: 8px;
}

.flight-time-lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: #6a7b72;
  text-transform: uppercase;
}

/* Progress Route Bar */
.progress-route-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 240px;
}

.progress-track-line {
  position: relative;
  width: 100%;
  height: 6px;
  background: var(--ft-bg-subtle);
  border-radius: var(--ft-radius-full);
  overflow: visible;
}

.progress-fill-line {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-emerald-light), var(--flight-in-air));
  border-radius: var(--ft-radius-full);
  transition: width 0.6s ease;
}

.plane-progress-icon {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--flight-in-air);
  color: var(--flight-in-air);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
  transition: left 0.6s ease;
}

.progress-meta-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-emerald-light);
}

/* Cancelled & Diverted Alert Banners */
.cancelled-alert-box {
  background: var(--flight-cancelled-bg);
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--ft-radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.diverted-alert-box {
  background: var(--flight-diverted-bg);
  border: 1.5px solid rgba(217, 119, 6, 0.4);
  border-radius: var(--ft-radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.alert-btn-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-alert-action {
  padding: 8px 18px;
  border-radius: var(--ft-radius-md);
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-alert-primary {
  background: var(--brand-emerald);
  color: #ffffff;
}

.btn-alert-primary:hover {
  background: var(--brand-emerald-dark);
}

.btn-alert-secondary {
  background: #ffffff;
  color: var(--brand-emerald-dark);
  border: 1px solid var(--ft-border-light);
}

/* Banner Action Controls */
.banner-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--ft-border-light);
}

.telemetry-mini-pills {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #4b5d52;
  background: var(--ft-bg-subtle);
  padding: 4px 12px;
  border-radius: var(--ft-radius-full);
}

.telemetry-pill strong {
  color: var(--brand-emerald-dark);
}

.banner-buttons-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-secondary-ft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: var(--brand-emerald-dark);
  border: 1px solid var(--ft-border-light);
  border-radius: var(--ft-radius-full);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary-ft:hover {
  background: var(--brand-sage-light);
  border-color: var(--brand-sage);
}

.btn-secondary-ft.saved {
  background: var(--brand-sage-light);
  color: var(--brand-emerald);
  border-color: var(--brand-emerald);
}

/* ==========================================================================
   3. THREE-ZONE DESKTOP COCKPIT LAYOUT
   ========================================================================== */
.ft-cockpit-grid {
  display: grid;
  grid-template-columns: 340px 1fr 340px;
  gap: 24px;
  margin-bottom: 48px;
  align-items: start;
}

@media (max-width: 1280px) {
  .ft-cockpit-grid {
    grid-template-columns: 1fr;
  }
}

/* Zone Panel Cards */
.cockpit-panel {
  background: #ffffff;
  border: 1px solid var(--ft-border-light);
  border-radius: var(--ft-radius-lg);
  padding: 24px;
  box-shadow: var(--ft-shadow-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.panel-title {
  font-family: var(--ft-font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-emerald-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Timeline Components */
.ft-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 20px;
  border-left: 2px solid var(--ft-border-light);
  margin-left: 8px;
}

.timeline-step {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -27px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ft-border-hover);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px var(--ft-border-light);
}

.timeline-step.completed .timeline-dot {
  background: var(--flight-in-air);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.4);
}

.timeline-step.current .timeline-dot {
  background: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.4);
  animation: pulseGreen 1.5s infinite;
}

.timeline-step-time {
  font-size: 12px;
  font-weight: 700;
  color: #6a7b72;
}

.timeline-step-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-emerald-dark);
  margin: 1px 0;
}

.timeline-step-desc {
  font-size: 12.5px;
  color: #5c6e64;
  margin: 0;
}

/* ==========================================================================
   4. INTERACTIVE LIVE RADAR MAP (CENTER ZONE)
   ========================================================================== */
.radar-map-wrapper {
  position: relative;
  background: var(--radar-bg);
  border-radius: var(--ft-radius-lg);
  border: 1px solid var(--radar-border);
  overflow: hidden;
  box-shadow: var(--ft-shadow-radar);
  height: 620px;
  display: flex;
  flex-direction: column;
  z-index: 10;
  isolation: isolate;
}

#flight-radar-map {
  width: 100%;
  height: 100%;
  background: #0a1612;
  z-index: 1;
}

/* Radar HUD Overlay Header */
.radar-hud-header {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  flex-wrap: wrap;
  gap: 10px;
}

.radar-hud-title-box {
  pointer-events: auto;
  background: var(--radar-panel-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--radar-border);
  border-radius: var(--ft-radius-md);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.hud-callsign {
  font-family: var(--ft-font-mono);
  font-size: 15px;
  font-weight: 800;
  color: var(--radar-accent);
}

.hud-route {
  font-size: 13px;
  font-weight: 600;
  color: #e0ece5;
}

/* Radar Map Controls */
.radar-controls-box {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.radar-ctrl-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--ft-radius-sm);
  background: var(--radar-panel-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--radar-border);
  color: #ffffff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radar-ctrl-btn:hover,
.radar-ctrl-btn.active {
  background: rgba(35, 123, 81, 0.6);
  border-color: var(--radar-accent);
  color: #ffffff;
}

/* Radar Live Telemetry HUD Bar */
.radar-hud-bottom {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 20;
  pointer-events: none;
}

.telemetry-hud-card {
  pointer-events: auto;
  background: var(--radar-panel-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--radar-border);
  border-radius: var(--ft-radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
  color: #ffffff;
  flex-wrap: wrap;
}

.hud-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hud-val {
  font-family: var(--ft-font-mono);
  font-size: 16px;
  font-weight: 800;
  color: var(--radar-accent);
}

.hud-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #8da396;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   5. RIGHT ZONE: AIRPORT DETAILS, GATES, CAROUSELS & AIRCRAFT SPECS
   ========================================================================== */
.airport-card-block {
  background: var(--ft-bg-subtle);
  border: 1px solid var(--ft-border-light);
  border-radius: var(--ft-radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.airport-tag {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-emerald);
}

.airport-code-sub {
  font-family: var(--ft-font-mono);
  font-weight: 800;
  color: var(--brand-emerald-dark);
}

.gate-terminal-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
  background: #ffffff;
  padding: 10px;
  border-radius: var(--ft-radius-sm);
  border: 1px solid var(--ft-border-light);
}

.gt-item {
  display: flex;
  flex-direction: column;
}

.gt-val {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--brand-emerald-dark);
}

.gt-lbl {
  font-size: 10px;
  font-weight: 700;
  color: #8da396;
  text-transform: uppercase;
}

/* Delay explanation box */
.delay-alert-box {
  background: var(--flight-delayed-bg);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--ft-radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.delay-alert-icon {
  color: var(--flight-delayed);
  font-size: 20px;
  margin-top: 2px;
}

.delay-title {
  font-size: 14px;
  font-weight: 800;
  color: #92400e;
  margin: 0 0 2px;
}

.delay-desc {
  font-size: 13px;
  color: #78350f;
  margin: 0;
}

/* Aircraft Info Block */
.aircraft-card-block {
  background: var(--ft-bg-subtle);
  border: 1px solid var(--ft-border-light);
  border-radius: var(--ft-radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.aircraft-model-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-emerald-dark);
}

.aircraft-reg-code {
  font-family: var(--ft-font-mono);
  font-size: 12.5px;
  color: #6a7b72;
}

.aircraft-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  font-size: 12.5px;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: var(--ft-radius-sm);
  border: 1px solid var(--ft-border-light);
}

/* ==========================================================================
   6. AIRPORT TRACKER & ROUTE SEARCH RESULTS TABLE
   ========================================================================== */
.ft-table-section {
  background: #ffffff;
  border: 1px solid var(--ft-border-light);
  border-radius: var(--ft-radius-lg);
  padding: 24px;
  box-shadow: var(--ft-shadow-card);
  margin-bottom: 48px;
  display: none;
}

.ft-table-section.visible {
  display: block;
}

.ft-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.ft-table-tabs {
  display: flex;
  gap: 8px;
}

.ft-table-tab {
  padding: 6px 14px;
  border-radius: var(--ft-radius-full);
  font-size: 13px;
  font-weight: 700;
  background: var(--ft-bg-subtle);
  border: 1px solid var(--ft-border-light);
  color: #5c6e64;
  cursor: pointer;
}

.ft-table-tab.active {
  background: var(--brand-emerald-dark);
  color: #ffffff;
  border-color: var(--brand-emerald-dark);
}

/* Airport filter toolbar */
.table-filters-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.table-filter-select {
  height: 38px;
  padding: 0 14px;
  background: var(--ft-bg-subtle);
  border: 1px solid var(--ft-border-light);
  border-radius: var(--ft-radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-emerald-dark);
  outline: none;
}

.ft-flight-table {
  width: 100%;
  border-collapse: collapse;
}

.ft-flight-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #6a7b72;
  border-bottom: 2px solid var(--ft-border-light);
}

.ft-flight-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: #334a3e;
  border-bottom: 1px solid var(--ft-border-light);
}

.ft-flight-table tr {
  cursor: pointer;
  transition: background 0.2s ease;
}

.ft-flight-table tr:hover {
  background: var(--brand-sage-tint);
}

/* ==========================================================================
   7. MODALS (MY FLIGHTS, FLIGHT SELECTION, AIRCRAFT DETAILS)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 18, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card-ft {
  display: none;
  background: #ffffff;
  border-radius: 22px;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(4, 18, 11, 0.36), 0 8px 24px rgba(4, 18, 11, 0.12);
  border: 1px solid rgba(22, 78, 51, 0.14);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
  opacity: 0;
}

.modal-card-ft.open {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-backdrop.open .modal-card-ft.open {
  transform: translateY(0) scale(1);
}

.modal-header-ft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  background: #faf8f5;
  border-bottom: 1px solid #ebe5dc;
}

.modal-eyebrow-ft {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #164e33;
  margin-bottom: 3px;
}

.modal-title-ft {
  font-family: var(--ft-font-serif);
  font-size: 22px;
  font-weight: 800;
  color: #0c2e1f;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title-ft i {
  color: #164e33;
  font-size: 22px;
}

.btn-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ede7dc;
  border: 1px solid rgba(22, 78, 51, 0.08);
  color: #0c2e1f;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-drawer-close:hover {
  background: #0c2e1f;
  color: #ffffff;
  transform: rotate(90deg) scale(1.05);
}

.modal-subtitle-ft {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: #556b5f;
  line-height: 1.5;
}

.modal-body-ft {
  padding: 24px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #ffffff;
}

/* Custom Scrollbar for Modal Body */
.modal-body-ft::-webkit-scrollbar {
  width: 6px;
}
.modal-body-ft::-webkit-scrollbar-thumb {
  background: #d4ded8;
  border-radius: 999px;
}
.modal-body-ft::-webkit-scrollbar-thumb:hover {
  background: #a9beae;
}

/* --- FLIGHT ALERTS & DELIVERY PREFERENCES --- */
.ft-alerts-panel {
  background: #faf8f5;
  border: 1px solid #e7e0d6;
  border-radius: 16px;
  padding: 18px 20px;
}

.ft-alerts-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.ft-alerts-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #0c2e1f;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ft-alerts-status-pill {
  font-size: 11px;
  font-weight: 700;
  color: #164e33;
  background: #e2ece5;
  padding: 3px 10px;
  border-radius: 999px;
}

.ft-alerts-subtext {
  font-size: 12.5px;
  color: #63776b;
  margin: 0 0 14px;
  line-height: 1.45;
}

.ft-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ft-custom-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.15s ease;
  position: relative;
}

.ft-custom-check:hover {
  background: rgba(22, 78, 51, 0.05);
}

.ft-custom-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ft-check-box {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid #bdc7c0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.ft-custom-check input:checked + .ft-check-box {
  background: #0c2e1f;
  border-color: #0c2e1f;
  color: #ffffff;
}

.ft-check-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ft-check-details strong {
  font-size: 13.5px;
  font-weight: 650;
  color: #12291d;
  line-height: 1.35;
}

.ft-check-details span {
  font-size: 12px;
  color: #63786c;
  line-height: 1.4;
}

/* --- EMPTY STATE FOR SAVED FLIGHTS --- */
.ft-empty-saved-state {
  text-align: center;
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ft-empty-icon-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #eef4f0;
  border: 1px solid rgba(22, 78, 51, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #164e33;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(22, 78, 51, 0.08);
}

.ft-empty-title {
  font-family: var(--ft-font-serif);
  font-size: 20px;
  font-weight: 750;
  color: #0c2e1f;
  margin: 0 0 6px;
}

.ft-empty-desc {
  font-size: 13px;
  color: #62776a;
  max-width: 380px;
  margin: 0;
  line-height: 1.55;
}

/* --- SAVED FLIGHT CARDS --- */
.ft-saved-flight-card {
  background: #faf8f5;
  border: 1px solid #e7e0d6;
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ft-saved-flight-card:hover {
  background: #ffffff;
  border-color: #164e33;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(12, 46, 31, 0.08);
}

.ft-saved-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ft-saved-flight-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ft-saved-flight-badge i {
  color: #164e33;
  font-size: 18px;
}

.ft-saved-flight-badge strong {
  font-size: 16px;
  color: #0c2e1f;
  font-weight: 750;
}

.ft-saved-airline {
  font-size: 13px;
  color: #63776a;
}

.ft-saved-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-remove-saved {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #e5ded4;
  background: #ffffff;
  color: #7b8f84;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-remove-saved:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.ft-saved-route-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed rgba(22, 78, 51, 0.12);
}

.ft-saved-city strong {
  display: block;
  font-size: 15px;
  color: #163324;
}

.ft-saved-city span {
  font-size: 12px;
  color: #6a7e72;
}

.ft-saved-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #164e33;
}

.ft-saved-date {
  font-size: 11px;
  font-weight: 600;
  color: #6a7e72;
  margin-bottom: 2px;
}

/* --- AIRCRAFT DETAILS LUXURY MODAL --- */
.aircraft-hero-card {
  text-align: center;
  padding: 20px 22px 24px;
  background: linear-gradient(180deg, #f4f8f5 0%, #ffffff 100%);
  border-radius: 16px;
  border: 1px solid rgba(22, 78, 51, 0.14);
}

.aircraft-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #164e33;
  background: #e2ede6;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.aircraft-hero-icon {
  font-size: 42px;
  color: #164e33;
  margin-bottom: 6px;
}

.aircraft-hero-title {
  font-family: var(--ft-font-serif);
  font-size: 24px;
  font-weight: 800;
  color: #0c2e1f;
  margin: 0 0 4px;
}

.aircraft-hero-sub {
  font-size: 13.5px;
  color: #63776b;
  margin: 0;
}

.aircraft-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.aircraft-spec-item {
  background: #faf8f5;
  border: 1px solid #e7e0d6;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-lbl {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #556e60;
  display: flex;
  align-items: center;
  gap: 5px;
}

.spec-val {
  font-size: 14px;
  font-weight: 650;
  color: #0c2e1f;
}

.spec-val.monospace-tag {
  font-family: var(--ft-font-mono);
  font-size: 13px;
  background: #ffffff;
  border: 1px solid #ded6c9;
  padding: 2px 8px;
  border-radius: 6px;
  width: fit-content;
}

/* --- FLIGHT SELECTION OPTION CARDS --- */
.flight-select-option-card {
  background: #faf8f5;
  border: 1px solid #e7e0d6;
  border-radius: 14px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flight-select-option-card:hover {
  background: #ffffff;
  border-color: #164e33;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(12, 46, 31, 0.08);
}

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

.flight-select-airline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #0c2e1f;
}

.flight-select-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.route-node strong {
  display: block;
  font-size: 16px;
  color: #12291d;
}

.route-node span {
  font-size: 12px;
  color: #63786c;
}

.route-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #164e33;
}

.route-time {
  font-size: 11px;
  font-weight: 700;
  color: #556e60;
  margin-bottom: 2px;
}

.flight-select-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #63776a;
  padding-top: 8px;
  border-top: 1px dashed rgba(22, 78, 51, 0.12);
}

.btn-track-pill {
  font-size: 12px;
  font-weight: 700;
  color: #164e33;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Skeletons */
.ft-skeleton {
  background: linear-gradient(90deg, #eef3f0 25%, #dce8e1 50%, #eef3f0 75%);
  background-size: 200% 100%;
  animation: ftShimmer 1.5s infinite;
  border-radius: 6px;
}

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

/* Custom Aircraft Leaflet Icon */
.leaflet-plane-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.leaflet-plane-marker svg {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

/* Mobile Sticky Bottom Actions Bar */
.mobile-sticky-actions {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--ft-border-light);
  padding: 12px 16px;
  z-index: 900;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .mobile-sticky-actions {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 12px;
  }
}

.mobile-action-btn {
  flex: 1;
  height: 44px;
  border-radius: var(--ft-radius-md);
  border: 1px solid var(--ft-border-light);
  background: #ffffff;
  color: var(--brand-emerald-dark);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
