:root {
  --navy: #0f172a;
  --navy-mid: #1e293b;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --blue: #3b82f6;
  --green: #22c55e;
  --amber: #f59e0b;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* ── HEADER ── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.35);
}
.header-home-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.logo-shield { font-size: 28px; }
.header-title { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.header-sub { font-size: 12px; color: #94a3b8; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
}
.header-nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.header-nav-link:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.header-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 10px;
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.22);
  border: 1px solid rgba(96, 165, 250, 0.4);
}

/* ── LAYOUT ── */
.main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 14px 50px;
}

/* ── HERO SECTION ── */
.hero-section {
  text-align: center;
  padding: 48px 20px 32px;
  margin-bottom: 8px;
}
.hero-headline {
  font-size: 38px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.hero-sub {
  font-size: 17px;
  color: #475569;
  margin: 0 0 28px;
}
.hero-search-wrap {
  max-width: 500px;
  margin: 0 auto 18px;
}
.airport-search-hero {
  width: 100%;
  border-radius: 16px;
  border: 2px solid #bfdbfe;
  background: #fff;
  color: #0f172a;
  font-size: 18px;
  padding: 16px 20px;
  outline: none;
  box-shadow: 0 2px 16px rgba(59, 130, 246, 0.1);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.airport-search-hero:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}
.airport-chips-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}
.airport-chips-hero .airport-chip {
  font-size: 15px;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid #bfdbfe;
  background: #eff6ff;
  color: #1e3a8a;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.airport-chips-hero .airport-chip:hover {
  background: #dbeafe;
  border-color: #60a5fa;
  transform: translateY(-1px);
}
.airport-chips-hero .airport-chip.active {
  background: #1d4ed8;
  color: #fff;
  border-color: #1d4ed8;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.35);
}
/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.06);
  padding: 20px;
  margin-bottom: 14px;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.card-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.muted {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.chip {
  margin-left: auto;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  white-space: nowrap;
}
.chip-live {
  color: #166534;
  background: #dcfce7;
  border-color: #86efac;
}
.chip-warn {
  color: #92400e;
  background: #fef3c7;
  border-color: #fcd34d;
}
/* ── RESULTS CARD ── */
.results-card { }
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

/* ── WAIT TIME ROWS — big colored blocks, easy to read ── */
.airport-card {
  border: none;
  background: transparent;
  padding: 0;
  width: 100%;
}
.airport-card h3 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
}
.checkpoint-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 10px;
  gap: 12px;
}
.checkpoint-row.tier-low      { background: #dcfce7; }
.checkpoint-row.tier-med      { background: #fef9c3; }
.checkpoint-row.tier-high     { background: #ffedd5; }
.checkpoint-row.tier-critical { background: #fee2e2; }
.checkpoint-row.tier-closed   { background: #f1f5f9; }
.checkpoint-name {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  min-width: 0;
  word-break: break-word;
}
.wait-display {
  display: flex;
  align-items: baseline;
  gap: 3px;
  flex-shrink: 0;
}
.wait-number {
  font-size: 32px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}
.wait-unit {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}
.wait-closed-label {
  font-size: 16px;
  font-weight: 700;
  color: #64748b;
}
.updated-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
  text-align: right;
}
/* ── SOURCE STATUS ── */
.selection-source-status {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
}
.selection-source-status.is-live    { color: #166534; }
.selection-source-status.is-fallback { color: #92400e; }
.selection-source-status.is-unknown  { color: #64748b; }

/* ── CHART ── */
.chart-empty {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}
.controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
}
.controls label { font-size: 13px; font-weight: 700; color: #334155; }
select {
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  padding: 7px 10px;
  min-width: 100px;
}

/* ── COMING SOON / PIPELINE ── */
#pipeline-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}
.pipeline-item {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.pipeline-icon { font-size: 28px; flex-shrink: 0; }
.pipeline-info { flex: 1; min-width: 0; }
.pipeline-name { font-weight: 700; font-size: 15px; color: #0f172a; }
.pipeline-note { font-size: 13px; color: #64748b; margin-top: 3px; }
.status-badge {
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #1d4ed8;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  white-space: nowrap;
  flex-shrink: 0;
}
/* ── CONTENT / SEO CARD ── */
.content-card { }
.content-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.content-columns h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #1e293b;
}
.content-list {
  margin: 0;
  padding-left: 18px;
  color: #334155;
  line-height: 1.65;
  font-size: 14px;
}
.content-list a { color: #1d4ed8; text-decoration: none; }
.content-list a:hover { text-decoration: underline; }

/* SEO airport-page links (below hero, small) */
.airport-pages-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}
.airport-pages-links a {
  font-size: 12px;
  color: #64748b;
  text-decoration: none;
}
.airport-pages-links a:hover { color: #1d4ed8; text-decoration: underline; }

/* ── AD SLOTS ── */
.ad-slot { margin: 0 0 14px; }
.ad-label { color: #64748b; font-size: 12px; margin: 0 0 5px; }
.ad-slot ins {
  min-height: 90px;
  border-radius: 12px;
  border: 1px dashed #93c5fd;
  background: #eff6ff;
}
.adsense-auto-note {
  border-radius: 12px;
  border: 1px dashed #93c5fd;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 700;
  padding: 14px;
}
.sponsor-cta {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid #86efac;
  background: #dcfce7;
  color: #14532d;
  font-weight: 800;
  padding: 14px;
}
.sponsor-cta:hover { background: #bbf7d0; }
/* ── FOOTER ── */
.footer {
  max-width: 960px;
  margin: 8px auto 24px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.footer-links {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
}
.footer-links a { color: #334155; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ── LEGAL PAGES ── */
.header-link { color: #dbeafe; text-decoration: none; }
.header-link:hover { text-decoration: underline; }
.legal-card { max-width: 760px; margin: 0 auto; }
.legal-list { margin: 0; padding-left: 18px; color: #334155; line-height: 1.6; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .hero-headline { font-size: 26px; }
  .hero-sub { font-size: 15px; }
  .airport-search-hero { font-size: 16px; padding: 14px 16px; }
  .airport-chips-hero .airport-chip { font-size: 13px; padding: 9px 15px; }
  .wait-number { font-size: 26px; }
  .content-columns { grid-template-columns: 1fr; }
  .pipeline-item { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .hero-section { padding: 32px 16px 24px; }
  .card { padding: 16px; }
  .checkpoint-row { padding: 12px 14px; }
}
