/* =========================================================================
   BTS Insights / Atlas — Production Stylesheet
   Design tokens as CSS custom properties; SVG charts; no Canvas.
   ========================================================================= */

:root {
  --bg:        #FAFAFA;
  --surface:   #FFFFFF;
  --surface-2: #F5F5F0;
  --text-1:    #0A1729;
  --text-2:    #475569;
  --text-3:    #94A3B8;
  --border:    #E5E7EB;
  --shadow-1:  0 1px 2px rgba(0,0,0,0.04);
  --shadow-2:  0 8px 24px rgba(0,0,0,0.08);
  --radius:    14px;
  --topbar-h:  52px;
  --section-pad: 56px;
  --content-max: 1360px;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 14px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: #0066CC; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Tabular numbers for data values */
.num, .kpi-num, .hub-code, .route-stat, .fin-rev-val,
[class*="kpi-num"], [class*="tabnum"] {
  font-family: 'JetBrains Mono', 'Fira Mono', 'Courier New', monospace;
  font-feature-settings: 'tnum' 1;
}

/* ── Skeleton / loading states ──────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton, .brand-card-skeleton, .hub-card-skeleton, .fin-skeleton {
  background: linear-gradient(90deg, #EBEBEB 25%, #F5F5F5 50%, #EBEBEB 75%);
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: var(--radius);
}
.brand-card-skeleton { height: 340px; }
.hub-card-skeleton   { height: 200px; }
.fin-skeleton        { height: 36px; margin-bottom: 12px; border-radius: 8px; }


/* ═══════════════════════════════════════════ TOP BAR ═══════════════════════════════════════════ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-h);
  background: #0A1729;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-badge {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-domain { color: rgba(255,255,255,0.55); }
.badge-sep    { color: rgba(255,255,255,0.25); margin: 0 5px; }
.badge-page   { color: #FFFFFF; }

.topbar-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-link {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.topbar-link:hover {
  background: rgba(255,255,255,0.1);
  color: #FFFFFF;
  text-decoration: none;
}

.topbar-ts-pill {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  padding: 4px 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
}


/* ═══════════════════════════════════════════ HERO BAND ═══════════════════════════════════════════ */
.hero-band {
  background: linear-gradient(135deg, #0A1729 0%, #0F2340 40%, #0A1F38 70%, #071524 100%);
  padding: 32px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.hero-kpi-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.hero-kpi-tile {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  position: relative;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s;
}
.hero-kpi-tile:last-child { border-right: none; }
.hero-kpi-tile.skeleton {
  background: rgba(255,255,255,0.04);
  min-height: 96px;
  background-image: none;
  animation: none;
}

.kpi-num {
  font-size: 40px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1;
  font-family: 'JetBrains Mono', monospace;
}

.kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.kpi-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  margin-top: 2px;
}


/* ═══════════════════════════════════════════ SECTION SHELL ═══════════════════════════════════════════ */
.section {
  padding: var(--section-pad) 24px;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type { border-bottom: none; }

.section-head {
  max-width: var(--content-max);
  margin: 0 auto 32px;
}
.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.section-sub {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 400;
}


/* ═══════════════════════════════════════════ BRAND CARDS ═══════════════════════════════════════════ */
.brand-card-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.brand-card-grid-sm {
  grid-template-columns: repeat(4, 1fr);
}

.brand-card {
  border-radius: 20px;
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 320px;
  text-decoration: none;
  color: inherit;
}
.brand-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
  text-decoration: none;
}
.brand-card.sm {
  min-height: 240px;
  padding: 24px 20px 18px;
  border-radius: 16px;
}
.brand-card:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}

/* Shine effect overlay */
.brand-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 50%);
  pointer-events: none;
  border-radius: inherit;
}

.card-iata-badge {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.45;
}

.card-logo-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 64px;
  margin-bottom: 16px;
}
.card-logo-wrap svg {
  width: 140px;
  height: 52px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}
.brand-card.sm .card-logo-wrap { height: 48px; }
.brand-card.sm .card-logo-wrap svg { width: 100px; height: 38px; }

.card-name {
  font-size: 14px;
  font-weight: 700;
  opacity: 0.8;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.brand-card.sm .card-name { font-size: 12px; margin-bottom: 6px; }

.card-pax-hero {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
  font-family: 'JetBrains Mono', monospace;
}
.brand-card.sm .card-pax-hero {
  font-size: clamp(28px, 3.5vw, 44px);
}

.card-pax-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 18px;
}

.card-financial-line {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.75;
  margin-top: auto;
  padding-top: 8px;
}
.brand-card.sm .card-financial-line { font-size: 11px; }

.card-lf-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin-top: 14px;
  overflow: hidden;
}
.card-lf-fill {
  height: 100%;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  transition: width 0.8s ease;
}


/* ═══════════════════════════════════════════ MAP ═══════════════════════════════════════════ */
.section-map { background: var(--surface-2); }

.map-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 24px;
  align-items: start;
}

.map-svg-container {
  background: #C8DCF0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  position: relative;
  min-height: 380px;
}

.map-loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  color: var(--text-3);
  font-size: 13px;
}

#mapSvg {
  width: 100%;
  height: auto;
  display: block;
}

.map-legend-rail {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}

.legend-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 12px;
}

.legend-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: background 0.12s;
}
.legend-chip:hover { background: var(--surface-2); }

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

.legend-guide {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legend-guide-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-3);
}
.legend-circle-demo {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-circle-demo.outer { border: 2.5px solid #1F2937; background: transparent; }
.legend-circle-demo.inner { background: rgba(0,0,0,0.25); }


/* ═══════════════════════════════════════════ FINANCIALS ═══════════════════════════════════════════ */
.financial-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.financial-panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}

.panel-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 20px;
}

/* Revenue bars */
.revenue-bar-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rev-bar-row {
  display: grid;
  grid-template-columns: 44px 1fr 68px;
  align-items: center;
  gap: 12px;
}

.rev-bar-logo {
  width: 44px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.rev-bar-logo svg {
  width: 44px;
  height: 20px;
}

.rev-bar-track {
  height: 22px;
  background: var(--surface-2);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.rev-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.8s ease;
  position: relative;
}
.rev-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(255,255,255,0.18));
  border-radius: inherit;
}

.fin-rev-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  text-align: right;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
}

/* Margin grid */
.margin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.margin-cell {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 14px 12px;
  border: 1px solid var(--border);
}

.margin-cell-code {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace;
}

.margin-indicator-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.margin-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.margin-dot.green  { background: #22C55E; }
.margin-dot.yellow { background: #F59E0B; }
.margin-dot.red    { background: #EF4444; }
.margin-dot.gray   { background: #94A3B8; }

.margin-label {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.margin-val {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
}

/* Industry callouts */
.industry-callouts {
  max-width: var(--content-max);
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.callout-box {
  background: var(--surface);
  border-radius: 12px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-left-width: 4px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-1);
}
.callout-box.warning { border-left-color: #F59E0B; }
.callout-box.info    { border-left-color: #3B82F6; }
.callout-box.neutral { border-left-color: #94A3B8; }

.callout-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 1px;
}

.callout-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
}

.financial-disclaimer {
  max-width: var(--content-max);
  margin: 0 auto;
  font-size: 12px;
  color: var(--text-3);
  padding: 12px 16px;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
}


/* ═══════════════════════════════════════════ HUB GRID ═══════════════════════════════════════════ */
.hub-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hub-card {
  border-radius: var(--radius);
  padding: 24px 20px 0;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease;
  cursor: default;
}
.hub-card:hover { transform: translateY(-3px); }

.hub-card-code {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
  font-family: 'JetBrains Mono', monospace;
}
.hub-card-city {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.7;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.hub-card-stats {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 14px;
}
.hub-stat-row {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.75;
  display: flex;
  justify-content: space-between;
}
.hub-stat-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
}
.hub-lf-bar {
  margin-top: auto;
  height: 4px;
  background: rgba(255,255,255,0.18);
  position: relative;
}
.hub-lf-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: rgba(255,255,255,0.65);
  border-radius: 2px;
}
.hub-logo-corner {
  position: absolute;
  bottom: 12px;
  right: 12px;
  opacity: 0.12;
}
.hub-logo-corner svg { width: 36px; height: 36px; }


/* ═══════════════════════════════════════════ ROUTES LIST ═══════════════════════════════════════════ */
.routes-list {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}

.route-row {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
  cursor: pointer;
}
.route-row:last-child { border-bottom: none; }
.route-row:hover { background: #F7F9FB; }

.route-row-main {
  display: grid;
  grid-template-columns: 200px 1fr 120px 80px;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
}

.route-pair {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text-1);
  font-family: 'JetBrains Mono', monospace;
}
.route-arrow {
  font-size: 14px;
  color: var(--text-3);
  font-weight: 400;
  font-family: 'Inter', sans-serif;
}

.route-mix-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.route-mix-bar {
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  position: relative;
}
.route-mix-seg {
  height: 100%;
  transition: width 0.6s ease;
  position: relative;
}
.route-mix-logos {
  display: flex;
  gap: 4px;
  align-items: center;
}
.route-mix-logo-wrap {
  width: 20px;
  height: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.route-mix-logo-wrap svg {
  width: 20px;
  height: 10px;
}

.route-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: right;
}
.route-stat {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
  font-family: 'JetBrains Mono', monospace;
}
.route-stat-label {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.route-carriers-badge {
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  color: var(--text-2);
  font-family: 'JetBrains Mono', monospace;
}
.route-carriers-label {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}

/* Expanded detail */
.route-detail-panel {
  display: none;
  padding: 0 24px 20px 24px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}
.route-row.expanded .route-detail-panel { display: block; }
.route-detail-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  padding-top: 16px;
  margin-bottom: 12px;
}
.route-detail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.route-detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-2);
}
.route-detail-logo {
  width: 40px;
  height: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.route-detail-logo svg { width: 40px; height: 18px; }
.route-detail-share-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.route-detail-share-fill {
  height: 100%;
  border-radius: 3px;
}
.route-detail-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  font-family: 'JetBrains Mono', monospace;
  width: 36px;
  text-align: right;
}


/* ═══════════════════════════════════════════ TREND CHART ═══════════════════════════════════════════ */
.trend-chart-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  padding: 12px 0 0;
}

.trend-svg {
  width: 100%;
  height: 220px;
  display: block;
}


/* ═══════════════════════════════════════════ FOOTER ═══════════════════════════════════════════ */
.atlas-footer {
  background: var(--text-1);
  color: rgba(255,255,255,0.6);
  padding: 48px 24px;
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}

.footer-sources-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
}

.footer-source-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  line-height: 1.6;
}
.footer-source-list a { color: rgba(255,255,255,0.6); }
.footer-source-list a:hover { color: #FFFFFF; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.15s;
  white-space: nowrap;
}
.footer-nav a:hover { background: rgba(255,255,255,0.08); color: #FFFFFF; text-decoration: none; }

.footer-disclaimer {
  max-width: var(--content-max);
  margin: 32px auto 0;
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
}


/* ═══════════════════════════════════════════ LOGO SLOT ═══════════════════════════════════════════ */
/* Wraps every carrier monogram. Tries official file; falls back to the
   monogram SVG when the file is absent. No layout shift — the slot
   fills the same space the monogram already occupied. */
.logo-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  width: 100%;
  height: 100%;
}
.logo-slot .logo-official {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.logo-slot .logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.logo-slot .logo-official[hidden],
.logo-slot .logo-fallback[hidden] {
  display: none;
}

/* Bound the official logo <img> to the same box its monogram occupies in each
   context. Without this, a wordmark with large intrinsic SVG dimensions
   (e.g. JetBlue's 584×196 b6.svg) overflows its slot when the flex height of
   .logo-slot does not resolve to a definite pixel value. Mirrors the explicit
   sizing already applied to the monogram <svg> per context. */
.card-logo-wrap { overflow: hidden; }
/* Official wordmarks ship with transparent backgrounds and dark/brand-color
   ink, so they wash out on a same-color brand card (e.g. JetBlue blue on a
   navy card, Frontier green on green). Seat them on a soft white chip — the
   same treatment several monograms already bake in — so any wordmark reads on
   any card. box-sizing keeps the chip inside the bounded box. */
.card-logo-wrap .logo-official {
  max-width: 132px;
  max-height: 50px;
  background: #FFFFFF;
  padding: 7px 12px;
  border-radius: 10px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.brand-card.sm .card-logo-wrap .logo-official { max-width: 98px; max-height: 38px; padding: 5px 9px; }
.route-mix-logo-wrap .logo-official { max-width: 20px; max-height: 10px; }
.hub-logo-corner .logo-official { max-width: 36px; max-height: 36px; }
.rev-bar-logo .logo-official { max-width: 44px; max-height: 20px; }

/* ═══════════════════════════════════════════ RESPONSIVE ═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .brand-card-grid-sm { grid-template-columns: repeat(3, 1fr); }
  .hub-grid { grid-template-columns: repeat(3, 1fr); }
  .financial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .map-wrap { grid-template-columns: 1fr; }
  .map-legend-rail { display: none; }
  .brand-card-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-card-grid-sm { grid-template-columns: repeat(2, 1fr); }
  .industry-callouts { grid-template-columns: 1fr; }
  .margin-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 36px;
  }
  .hero-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-kpi-tile { padding: 18px 20px; }
  .kpi-num { font-size: 28px; }
  .brand-card-grid { grid-template-columns: 1fr; }
  .brand-card-grid-sm { grid-template-columns: repeat(2, 1fr); }
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .route-row-main {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .topbar-subtitle { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-kpi-grid { grid-template-columns: 1fr 1fr; }
  .brand-card-grid-sm { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .margin-grid { grid-template-columns: repeat(2, 1fr); }
}
