:root {
  --bg: #0b1020;
  --bg-2: #111833;
  --panel: #162044;
  --panel-2: #1c2856;
  --line: #263366;
  --text: #e6ecff;
  --muted: #9aa7d1;
  --accent: #5ee2ff;
  --accent-2: #ffb84a;
  --danger: #ff6b6b;
  --ok: #4ade80;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, #1b2a5e 0%, transparent 60%),
    radial-gradient(900px 500px at 110% 10%, #2a1b5e 0%, transparent 55%),
    linear-gradient(180deg, #0b1020 0%, #0a0f1f 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 15, 32, .6);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; gap: 14px; align-items: center; }
.brand-mark { color: var(--accent); }
.site-header h1 { margin: 0; font-size: 20px; letter-spacing: .3px; }
.tag { margin: 0; color: var(--muted); font-size: 13px; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--text); font-size: 14px; }

main { max-width: 1280px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 48px) 64px; }

.hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px;
  padding: 32px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(94,226,255,.08), rgba(255,184,74,.06));
  border: 1px solid var(--line);
  margin-bottom: 32px;
}
.eyebrow { color: var(--accent); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 10px; }
.hero h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 12px; line-height: 1.15; }
.hero-copy p { color: var(--muted); max-width: 60ch; }
.hero-stats { list-style: none; padding: 0; margin: 22px 0 0; display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 26px; color: var(--accent); }
.hero-stats span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }

.hero-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.hero-card h3 { margin: 0 0 10px; font-size: 15px; color: var(--accent-2); text-transform: uppercase; letter-spacing: 1px; }
.hero-card ol { margin: 0 0 14px; padding-left: 20px; }
.hero-card li { margin: 6px 0; }
.muted { color: var(--muted); font-size: 12px; margin: 0; }

.layout {
  display: grid; grid-template-columns: 320px 1fr; gap: 24px;
  min-height: 70vh;
  margin-bottom: 48px;
}

.airport-list {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; max-height: 80vh; overflow-y: auto; position: sticky; top: 90px;
}
.list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.list-head h3 { margin: 0; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); cursor: pointer; }
.toggle input { accent-color: var(--accent); }
.search input {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font-size: 14px; margin-bottom: 10px;
}
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.airports { list-style: none; padding: 0; margin: 0; }
.airports li {
  padding: 12px 14px; border-radius: 8px; cursor: pointer; border: 1px solid transparent;
  transition: all .15s ease; margin-bottom: 4px;
}
.airports li:hover { background: var(--panel-2); }
.airports li.active { background: var(--panel-2); border-color: var(--accent); }
.airports .code { font-weight: 700; font-size: 15px; color: var(--accent); margin-right: 8px; }
.airports .name { font-size: 14px; }
.airports .country { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.airports li.empty { color: var(--muted); cursor: default; font-size: 13px; padding: 20px 14px; }

.airport-detail { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state svg { color: var(--accent); margin-bottom: 12px; }
.empty-state h3 { color: var(--text); margin: 0 0 8px; }

.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.detail-head h2 { margin: 0; font-size: 26px; }
.detail-head .meta { color: var(--muted); font-size: 13px; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { background: var(--panel-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; font-size: 12px; color: var(--muted); }
.chip.active-chip { color: var(--accent); border-color: var(--accent); }
.chip.retired { color: var(--muted); opacity: .7; }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 22px; }
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 16px;
}
.card h4 { margin: 0 0 6px; font-size: 14px; color: var(--accent-2); text-transform: uppercase; letter-spacing: .8px; }
.card .airline { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.card .route { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.card .times { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; margin: 0; }
.card .times dt { color: var(--muted); }
.card .times dd { margin: 0; font-weight: 600; }
.card .freq { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.card.retired-card { opacity: .65; }

.spot-card {
  background: linear-gradient(135deg, #1c2856, #111833);
  border: 1px solid var(--line); border-radius: 10px; padding: 18px;
  margin-bottom: 18px;
}
.spot-card h4 { margin: 0 0 8px; color: var(--accent); font-size: 15px; }
.spot-card p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.spot-card .directions { background: var(--bg-2); border-left: 3px solid var(--accent); padding: 10px 12px; border-radius: 6px; font-size: 13px; margin: 8px 0; }

.photo-settings {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 16px;
  margin-bottom: 18px;
}
.photo-settings h4 { margin: 0 0 10px; color: var(--accent-2); font-size: 14px; text-transform: uppercase; letter-spacing: .8px; }
.photo-settings table { width: 100%; border-collapse: collapse; font-size: 13px; }
.photo-settings th, .photo-settings td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.photo-settings th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; }
.photo-settings td { color: var(--text); }

.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
button, .btn {
  background: var(--accent); color: #06202a; border: none; padding: 10px 16px; border-radius: 8px;
  font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit;
}
button:hover { filter: brightness(1.1); }
button.secondary { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }

.history-block { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.history-block h4 { margin: 0 0 8px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .8px; }
.history-block ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); }

.tips { margin-top: 20px; }
.tips-head { margin-bottom: 24px; }
.tips-head h2 { margin: 0 0 6px; font-size: clamp(24px, 2.8vw, 32px); }
.tips-head p { color: var(--muted); margin: 0; max-width: 70ch; }
.tip-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; margin-bottom: 28px;
}
.tip {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
}
.tip h4 { margin: 0 0 8px; color: var(--accent); font-size: 15px; }
.tip p { margin: 0; color: var(--muted); font-size: 14px; }

.mistakes, .scenario {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin-bottom: 20px;
}
.mistakes h3, .scenario h3 { margin: 0 0 12px; color: var(--accent-2); font-size: 18px; }
.mistakes ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.mistakes li { margin-bottom: 8px; }
.scenario p { color: var(--muted); font-size: 14px; margin: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px clamp(16px, 4vw, 48px);
  background: rgba(10, 15, 32, .6);
}
.foot-cols {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px; margin-bottom: 16px;
}
.site-footer strong { display: block; color: var(--text); margin-bottom: 6px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.site-footer p { margin: 0; color: var(--muted); font-size: 13px; }
.fine { text-align: center; color: var(--muted); font-size: 12px; margin-top: 20px; }

.print-card { display: none; }
@media print {
  body { background: #fff; color: #000; }
  .site-header, .airport-list, .tips, .site-footer, .actions { display: none !important; }
  .layout { display: block; }
  .airport-detail { border: none; padding: 0; }
  .print-card { display: block; }
}

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .airport-list { position: static; max-height: 360px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
