/* airport-styles.css — RouteLinq airport pages */
/* Loaded as a static file to avoid Astro scoping issues with dynamically generated HTML */

/* ── HERO ── */
.ap-hero {
  background: linear-gradient(135deg, #1E293B 0%, #2D3F5A 100%);
  color: #F8FAFC;
  padding: 0;
  border-bottom: 2px solid #E85D3A;
}

.ap-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 0;
}

.ap-breadcrumb {
  font-size: 13px;
  color: rgba(248,250,252,0.5);
  margin-bottom: 16px;
}

.ap-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.ap-breadcrumb a:hover { color: rgba(248,250,252,0.85); }

.ap-title-row {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 6px;
}

.ap-iata {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  color: #F8FAFC;
}

.ap-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #F8FAFC;
  line-height: 1.2;
  margin-bottom: 4px;
}

.ap-city {
  font-size: 13px;
  color: rgba(248,250,252,0.55);
}

.ap-stats-row {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 20px;
  flex-wrap: wrap;
}

.ap-stat {
  padding: 14px 22px;
  border-right: 1px solid rgba(255,255,255,0.1);
  min-width: 110px;
}

.ap-stat:last-child { border-right: none; }
.ap-stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; line-height: 1; margin-bottom: 3px; }
.ap-stat-lbl { font-size: 11px; color: rgba(248,250,252,0.5); text-transform: uppercase; letter-spacing: 0.5px; }

/* search bar */
.ap-search-bar {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 14px 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.ap-search-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(248,250,252,0.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ap-search-fields { display: flex; gap: 8px; align-items: center; }

.ap-search-input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  width: 220px;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.15s;
}

.ap-search-input::placeholder { color: rgba(255,255,255,0.35); font-weight: 400; }
.ap-search-input:focus { border-color: #E85D3A; }

.ap-search-btn {
  background: #E85D3A;
  border: none;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.15s;
  white-space: nowrap;
}

.ap-search-btn:hover { background: #CC4D2D; }

/* ── CONTAINER ── */
.ap-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ── SECTIONS ── */
.ap-section {
  margin-bottom: 48px;
}

.ap-section-hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.ap-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 4px;
  border-left: 3px solid #E85D3A;
  padding-left: 12px;
}

.ap-section-sub {
  font-size: 13px;
  color: #64748B;
  padding-left: 15px;
}

.ap-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.ap-select {
  appearance: none;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 7px 28px 7px 10px;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: #1E293B;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  outline: none;
  transition: border-color 0.15s;
}

.ap-select:hover { border-color: #1E293B; }
.ap-select:focus { border-color: #1E293B; }

.ap-loading {
  text-align: center;
  padding: 40px;
  color: #94A3B8;
  font-size: 14px;
}

.ap-empty {
  text-align: center;
  padding: 32px;
  color: #94A3B8;
  font-size: 14px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
}

.ap-btn {
  background: #1E293B;
  color: #F8FAFC;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}

.ap-btn:hover { background: #334155; }
.ap-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── DESTINATIONS TABLE ── */
.dest-table-scroll {
  overflow-x: auto;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
}

.dest-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.dest-table thead {
  background: #1E293B;
  color: #F8FAFC;
}

.dest-table th {
  padding: 10px 14px;
  text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.dest-row {
  border-bottom: 1px solid #F1F5F9;
  cursor: pointer;
  transition: background 0.1s;
}

.dest-row:last-child { border-bottom: none; }
.dest-row:hover { background: #F8FAFC; }

.dest-table td { padding: 10px 14px; vertical-align: middle; }

.dest-iata {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1E293B;
  text-decoration: none;
  display: block;
  line-height: 1.1;
}

.dest-iata:hover { color: #E85D3A; }
.dest-city { font-size: 11px; color: #94A3B8; margin-top: 2px; }

.al-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.al-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif;
}

.dur-cell { font-weight: 600; white-space: nowrap; font-family: 'Space Grotesk', sans-serif; }

.time-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.time-tag {
  font-size: 11px;
  color: #475569;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  padding: 2px 6px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
}

.time-na { font-size: 11px; color: #CBD5E1; }

.days-row { display: flex; gap: 3px; }
.dd {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
}

.dd.on  { background: #1E293B; color: #F8FAFC; }
.dd.off { background: #F1F5F9; color: #CBD5E1; }

/* ── BEST FOR ── */
.bestfor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.bf-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 18px 20px;
  transition: border-color 0.15s;
}

.bf-card:hover { border-color: #1E293B; }

.bf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.bf-title { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 600; color: #1E293B; }
.bf-count { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; color: #1E293B; }
.bf-desc { font-size: 12px; color: #64748B; margin-bottom: 10px; line-height: 1.45; }

.bf-pills { display: flex; gap: 5px; flex-wrap: wrap; }
.bf-pill {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #1E293B;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  transition: background 0.1s;
}

.bf-pill:hover { background: #E85D3A; color: #fff; border-color: #E85D3A; }
.bf-more { font-size: 11px; color: #94A3B8; align-self: center; }

/* ── TRENDS ── */
.trends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.trend-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 20px;
}

.trend-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: #94A3B8; margin-bottom: 4px; }
.trend-val { font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 700; color: #1E293B; margin-bottom: 3px; }
.trend-sub { font-size: 12px; color: #94A3B8; margin-bottom: 14px; }
.tb-wrap { display: flex; flex-direction: column; gap: 6px; }

.tb-row {
  display: grid;
  grid-template-columns: 36px 1fr 32px;
  align-items: center;
  gap: 8px;
}

.tb-lbl { font-size: 11px; font-weight: 700; color: #64748B; font-family: 'Space Grotesk', sans-serif; }
.tb-track { background: #F1F5F9; border-radius: 3px; height: 8px; }
.tb-fill { height: 8px; background: #1E293B; border-radius: 3px; }
.tb-val { font-size: 11px; font-weight: 700; color: #64748B; text-align: right; font-family: 'Space Grotesk', sans-serif; }

/* ── INSIGHTS ── */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.insight-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 18px 20px;
  transition: border-color 0.15s;
}

.insight-card:hover { border-color: #1E293B; }

.insight-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: #94A3B8; margin-bottom: 6px; }
.insight-val { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; color: #1E293B; margin-bottom: 4px; line-height: 1.25; }
.insight-sub { font-size: 12px; color: #64748B; line-height: 1.5; margin-bottom: 8px; }
.insight-badge {
  display: inline-block;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  font-family: 'Space Grotesk', sans-serif;
}

/* ── EDITORIAL ── */
.ap-editorial {}

.ap-editorial-body {
  font-size: 15px;
  color: #475569;
  line-height: 1.85;
}

.ap-editorial-body p {
  margin-bottom: 16px;
}

.ap-editorial-body p:last-child { margin-bottom: 0; }

/* ── NEARBY ── */
.nearby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.nearby-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 18px 20px;
  position: relative;
  transition: border-color 0.15s;
}

.nearby-card.current {
  border-color: #1E293B;
  background: #F8FAFC;
}

.nearby-card:hover:not(.current) { border-color: #94A3B8; }

.nearby-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #1E293B;
  color: #F8FAFC;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
}

.nearby-iata {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 12px;
}

.nearby-iata a { color: inherit; text-decoration: none; }
.nearby-iata a:hover { color: #E85D3A; }

.nearby-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #F1F5F9;
  font-size: 13px;
}

.nearby-row:last-child { border-bottom: none; padding-bottom: 0; }
.nearby-lbl { color: #94A3B8; }
.nearby-val { font-weight: 700; color: #1E293B; font-family: 'Space Grotesk', sans-serif; }

/* ── COMPARE ── */
.compare-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.compare-vs {
  font-size: 12px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cmp-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.cmp-pill {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
}

.cmp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
}

.cmp-col { border-right: 1px solid #E2E8F0; }
.cmp-col:last-child { border-right: none; }

.cmp-col-hd {
  padding: 10px 14px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cmp-col-count {
  background: rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 12px;
}

.cmp-row {
  padding: 9px 14px;
  border-bottom: 1px solid #F1F5F9;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cmp-row:last-child { border-bottom: none; }

.cmp-dest {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
  min-width: 34px;
}

.cmp-city { font-size: 12px; color: #94A3B8; }
.cmp-empty { padding: 14px; font-size: 13px; color: #94A3B8; font-style: italic; }

.cmp-shared {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #E2E8F0;
  border-radius: 0 0 8px 8px;
  margin-top: -1px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .ap-iata { font-size: 36px; }
  .ap-title-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ap-stats-row { display: grid; grid-template-columns: 1fr 1fr; }
  .ap-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .ap-stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.08); }
  .ap-controls { width: 100%; }
  .ap-select { flex: 1; }
  .cmp-grid { grid-template-columns: 1fr; }
  .cmp-col { border-right: none; border-bottom: 1px solid #E2E8F0; }
  .trends-grid { grid-template-columns: 1fr; }
  .nearby-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .nearby-grid { grid-template-columns: 1fr; }
  .bestfor-grid { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: 1fr; }
}

/* ── INFO WIDGETS (Weather + TSA) ── */
.ap-info-widgets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 0;
  background: #F8FAFC;
}

.info-widget {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 16px 20px;
}

.iw-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #94A3B8;
  margin-bottom: 10px;
}

.iw-loading {
  font-size: 13px;
  color: #94A3B8;
}

/* Weather */
.weather-main {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.weather-icon { font-size: 28px; line-height: 1; }

.weather-temp {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #1E293B;
  line-height: 1;
}

.weather-desc {
  font-size: 13px;
  color: #475569;
  margin-bottom: 10px;
}

.weather-details {
  display: flex;
  gap: 16px;
}

.weather-detail {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.wd-lbl {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94A3B8;
}

.weather-detail span:last-child {
  font-size: 13px;
  font-weight: 600;
  color: #1E293B;
  font-family: 'Space Grotesk', sans-serif;
}

/* TSA */
.tsa-checkpoint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #F1F5F9;
}

.tsa-checkpoint:last-child { border-bottom: none; }

.tsa-cp-name {
  font-size: 13px;
  color: #475569;
  font-weight: 500;
  flex: 1;
  padding-right: 12px;
}

.tsa-wait {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  flex-shrink: 0;
}

.tsa-short { background: #DCFCE7; }
.tsa-mid   { background: #FEF9C3; }
.tsa-long  { background: #FEE2E2; }

.tsa-mins {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.tsa-short .tsa-mins { color: #166534; }
.tsa-mid   .tsa-mins { color: #854D0E; }
.tsa-long  .tsa-mins { color: #991B1B; }

.tsa-mins small {
  font-size: 10px;
  font-weight: 600;
  margin-left: 1px;
}

.tsa-lbl {
  font-size: 11px;
  font-weight: 600;
}

.tsa-short .tsa-lbl { color: #166534; }
.tsa-mid   .tsa-lbl { color: #854D0E; }
.tsa-long  .tsa-lbl { color: #991B1B; }

@media (max-width: 768px) {
  .ap-info-widgets { grid-template-columns: 1fr; }
}

/* ── ROUTE ANALYTICS SECTION ── */
.ra-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ra-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Status overview bar */
.ra-status-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.ra-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  font-family: 'Space Grotesk', sans-serif;
}

.ra-status-pill.active { outline: 2px solid currentColor; outline-offset: 1px; }
.ra-status-pill-count { font-size: 15px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }

/* Glossary */
.ra-glossary {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.ra-glossary summary {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Space Grotesk', sans-serif;
}

.ra-glossary summary::-webkit-details-marker { display: none; }
.ra-glossary[open] summary { border-bottom: 1px solid #E2E8F0; }

.ra-glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0;
}

.ra-metric-card {
  padding: 16px;
  border-right: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.ra-metric-card:nth-child(2n) { border-right: none; }

.ra-metric-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 4px;
}

.ra-metric-col {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #E85D3A;
  margin-bottom: 6px;
  font-family: 'Space Grotesk', sans-serif;
}

.ra-metric-desc {
  font-size: 12px;
  color: #64748B;
  line-height: 1.6;
}

/* Analytics table */
.ra-table-scroll {
  overflow-x: auto;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
}

.ra-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 860px;
}

.ra-table thead {
  background: #1E293B;
  color: #F8FAFC;
}

.ra-table th {
  padding: 9px 12px;
  text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ra-row {
  border-bottom: 1px solid #F1F5F9;
  transition: background 0.1s;
}

.ra-row:last-child { border-bottom: none; }
.ra-row:hover { background: #F8FAFC; }

.ra-table td {
  padding: 9px 12px;
  vertical-align: middle;
}

.ra-dest-iata {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1E293B;
  display: block;
  line-height: 1.1;
}

.ra-dest-city {
  font-size: 10px;
  color: #94A3B8;
  margin-top: 1px;
}

/* Status badges */
.ra-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif;
}

.ra-status-thrilled  { background: #DCFCE7; color: #166534; }
.ra-status-happy     { background: #D1FAE5; color: #065F46; }
.ra-status-precarious   { background: #FEF3C7; color: #92400E; }
.ra-status-strategic { background: #FED7AA; color: #9A3412; }
.ra-status-unhappy   { background: #FEE2E2; color: #991B1B; }

.ra-trend-growing   { background: #DCFCE7; color: #166534; }
.ra-trend-stable    { background: #F1F5F9; color: #475569; }
.ra-trend-declining { background: #FEF3C7; color: #92400E; }
.ra-trend-atrisk    { background: #FEE2E2; color: #991B1B; }

.ra-gauge-oversized  { background: #FEF3C7; color: #92400E; }
.ra-gauge-matched    { background: #DCFCE7; color: #166534; }
.ra-gauge-undersized { background: #E0F2FE; color: #0369A1; }

/* LF vs breakeven */
.ra-lf-pos { color: #16a34a; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.ra-lf-neg { color: #dc2626; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }

/* HHI dot */
.ra-hhi { display: flex; align-items: center; gap: 5px; }
.ra-hhi-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.ra-hhi-high   { background: #dc2626; }
.ra-hhi-mid    { background: #d97706; }
.ra-hhi-low    { background: #16a34a; }
.ra-hhi-val    { font-size: 11px; color: #64748B; }

/* Net profit */
.ra-profit-pos { color: #16a34a; font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 700; }
.ra-profit-neg { color: #dc2626; font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 700; }

/* Dependency */
.ra-dep-high { color: #dc2626; font-weight: 700; }
.ra-dep-mid  { color: #d97706; font-weight: 700; }
.ra-dep-low  { color: #64748B; }

.ra-empty {
  padding: 32px;
  text-align: center;
  color: #94A3B8;
  font-size: 13px;
}

@media (max-width: 768px) {
  .ra-glossary-grid { grid-template-columns: 1fr; }
  .ra-metric-card { border-right: none; }
}

/* ── SEASONALITY PROFILE ── */
.season-stat-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.season-stat { flex: 1; min-width: 140px; background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px; padding: 14px 16px; text-align: center; }
.season-stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; color: #1E293B; margin-bottom: 4px; }
.season-stat-lbl { font-size: 11px; color: #94A3B8; text-transform: uppercase; letter-spacing: 0.3px; }

/* ── AIRPORT INTELLIGENCE METRICS ── */
.mi-block {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}
.mi-block-hd { background: #F8FAFC; border-bottom: 1px solid #E2E8F0; padding: 10px 16px; }
.mi-block-title { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; color: #1E293B; }
.mi-block-sub { font-size: 11px; color: #94A3B8; margin-top: 2px; }
.mi-commit-scroll { overflow-x: auto; }
.mi-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 600px; }
.mi-table thead { background: #1E293B; color: #F8FAFC; }
.mi-table th { padding: 8px 12px; text-align: left; font-family: 'Space Grotesk', sans-serif; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.mi-row { border-bottom: 1px solid #F1F5F9; transition: background .1s; }
.mi-row:last-child { border-bottom: none; }
.mi-row:hover { background: #F8FAFC; }
.mi-table td { padding: 9px 12px; vertical-align: middle; font-size: 12px; color: #475569; }
.mi-badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 10px; font-weight: 700; white-space: nowrap; font-family: 'Space Grotesk', sans-serif; }
.mi-score { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700; color: #1E293B; }
.mi-route-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #F1F5F9; text-decoration: none; color: inherit; transition: background .1s; }
.mi-route-row:last-child { border-bottom: none; }
.mi-route-row:hover { background: #F8FAFC; }
.mi-route-pair { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; color: #1E293B; margin-right: 8px; }
.mi-route-city { font-size: 11px; color: #94A3B8; }
.mi-route-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.mi-route-sub { font-size: 10px; color: #64748B; }

/* ── Airline logo images ── */
.al-logo {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #E2E8F0;
  vertical-align: middle;
  flex-shrink: 0;
  display: inline-block;
}
.al-logo.sm { width: 20px; height: 20px; }

/* ── Airline logo images (DB-sourced via logo_url) ── */
.al-logo-img {
  border-radius: 4px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #E2E8F0;
  vertical-align: middle;
  flex-shrink: 0;
  display: inline-block;
}

/* ── Section description text ── */
.ap-section-desc {
  font-size: 13px;
  color: #64748B;
  line-height: 1.65;
  margin: 6px 0 16px;
}
/* ── ROUTE MAP (Leaflet) ── */
.rm-wrap {
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
}
.rm-loading-wrap {
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8FAFC;
}
.rm-empty {
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  font-size: 13px;
  background: #F8FAFC;
}

/* Origin marker (custom divIcon) */
.rm-origin-icon { position: relative; }
.rm-origin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #E85D3A;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 2px #E85D3A, 0 2px 6px rgba(0,0,0,0.25);
}
.rm-origin-label {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #1E293B;
  background: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #E2E8F0;
  white-space: nowrap;
}

/* Leaflet popup theming to match brand */
.leaflet-popup-content-wrapper {
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
}
.leaflet-popup-content strong {
  font-family: 'Space Grotesk', sans-serif;
  color: #1E293B;
}
