:root {
  --black: #000;
  --ink: #1d1d1f;
  --light: #f5f5f7;
  --white: #fff;
  --air-blue: #0071e3;
  --air-blue-dark: #0066cc;
  --muted: rgba(0,0,0,.72);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; scroll-behavior: smooth; }
body {
  font-family: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.site-locked {
  overflow: hidden;
}

/* Respect HTML's hidden attribute even when component classes set display:grid/flex.
   This keeps the unlocked password gate from sitting invisibly over the search form. */
[hidden] {
  display: none !important;
}

#app-shell {
  transition: filter .35s ease, transform .35s ease;
}

body.site-locked #app-shell {
  filter: blur(7px) brightness(.4);
  pointer-events: none;
  user-select: none;
}

.password-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(900px 620px at 12% 0%, rgba(0,113,227,.22), transparent 60%),
    radial-gradient(900px 640px at 88% 100%, rgba(0,113,227,.12), transparent 62%),
    linear-gradient(180deg, #0a0a0c 0%, #000 100%);
}

.gate-shell {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gate-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  animation: gateFloat 8s ease-in-out infinite;
}

.orb-a { width: 280px; height: 280px; left: -60px; top: -30px; background: rgba(0,113,227,.42); }
.orb-b { width: 260px; height: 260px; right: -40px; top: 22%; background: rgba(0,113,227,.30); animation-delay: -2.4s; }
.orb-c { width: 340px; height: 340px; left: 28%; bottom: -160px; background: rgba(0,113,227,.20); animation-delay: -4.2s; }

.gate-card {
  position: relative;
  width: min(460px, 100%);
  border-radius: 28px;
  padding: 26px 24px 22px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(170deg, rgba(28,28,32,.78), rgba(10,10,12,.72));
  box-shadow: 0 24px 80px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.18);
  color: #fff;
  text-align: center;
  backdrop-filter: blur(28px) saturate(145%);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
}

.gate-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 8px;
}

.gate-brand-copy { text-align: left; }

.gate-live-time {
  margin: 2px 0 0;
  font-size: clamp(46px, 9vw, 66px);
  line-height: .96;
  font-weight: 300;
  letter-spacing: -1.2px;
  color: rgba(255,255,255,.96);
}

.gate-live-date {
  margin: 4px 0 14px;
  font-size: 14px;
  color: rgba(255,255,255,.82);
}

.gate-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,.95);
  background: linear-gradient(160deg, var(--air-blue), var(--air-blue-dark));
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 10px 26px rgba(44,115,255,.45);
}

.gate-eyebrow {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: 11px;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.gate-card h2 {
  margin: 2px 0 0;
  font-size: clamp(24px, 4.5vw, 30px);
  letter-spacing: -0.3px;
  font-weight: 620;
}

.gate-sub {
  margin: 0 0 15px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
}

.gate-form { display: grid; gap: 10px; }

.gate-form input {
  height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(5,12,24,.48);
  color: #fff;
  padding: 0 14px;
  font-size: 16px;
}

.gate-form input::placeholder { color: rgba(255,255,255,.55); }

.gate-form input:focus {
  border-color: rgba(0,113,227,.95);
  box-shadow: 0 0 0 3px rgba(0,113,227,.28);
  outline: none;
}

.gate-form .btn.primary {
  height: 48px;
  border: 0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 620;
  background: linear-gradient(180deg, var(--air-blue) 0%, var(--air-blue-dark) 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(43,116,255,.45);
}

.gate-error {
  min-height: 20px;
  margin: 8px 0 0;
  color: #ffd2d2;
  font-size: 13px;
}

.unlock-animation {
  margin-top: 16px;
  min-height: 190px;
  border-radius: 16px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(72, 157, 255, .45);
  background:
    radial-gradient(ellipse at top, rgba(33, 129, 255, .26), rgba(8, 10, 16, .94) 62%),
    linear-gradient(160deg, rgba(5, 10, 19, .98), rgba(10, 18, 31, .95));
  box-shadow: inset 0 0 30px rgba(0, 140, 255, .15), 0 20px 40px rgba(0,0,0,.45);
}

.unlock-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(130, 196, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 196, 255, .08) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 78%);
  animation: gridDrift 2.2s linear infinite;
}

.unlock-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(156, 215, 255, .55);
  box-shadow: 0 0 22px rgba(89, 170, 255, .25), inset 0 0 20px rgba(89, 170, 255, .08);
}

.unlock-ring.ring-a { width: 74px; height: 74px; animation: ringPulse 1.2s ease-out infinite; }
.unlock-ring.ring-b { width: 112px; height: 112px; animation: ringPulse 1.2s ease-out infinite .22s; }
.unlock-ring.ring-c { width: 150px; height: 150px; animation: ringPulse 1.2s ease-out infinite .44s; }

.unlock-core {
  z-index: 2;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ecf8ff 0%, #8fd2ff 45%, #2f8fff 100%);
  box-shadow: 0 0 24px rgba(80, 173, 255, .95), 0 0 60px rgba(31, 123, 255, .55);
  animation: coreBeat .95s ease-in-out infinite;
}

.unlock-title {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 2.4px;
  color: #ecf7ff;
  z-index: 2;
  text-transform: uppercase;
}

.unlock-sub {
  margin: 0;
  color: rgba(209, 232, 255, .9);
  font-size: 12px;
  letter-spacing: .4px;
  z-index: 2;
}

.password-gate.gate-exit {
  animation: gateFadeOut .45s ease forwards;
}

@keyframes gateFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-12px) translateX(7px); }
}

@keyframes ringPulse {
  0% { transform: scale(.78); opacity: .95; }
  85% { opacity: .3; }
  100% { transform: scale(1.24); opacity: 0; }
}

@keyframes coreBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}

@keyframes gridDrift {
  from { transform: translateY(0); }
  to { transform: translateY(-24px); }
}

@keyframes gateFadeOut {
  to { opacity: 0; visibility: hidden; }
}

.container { width: min(1120px, 92%); margin: 0 auto; }
.center { text-align: center; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,.8);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}
nav { display: flex; gap: 20px; }
nav a {
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-size: 13px;
  transition: opacity .2s ease;
}
nav a:hover { opacity: .75; }

.nav-cta {
  text-decoration: none;
  color: var(--white);
  background: var(--air-blue);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  transition: background .2s ease;
}
.nav-cta:hover { background: var(--air-blue-dark); }

.dark { background: var(--black); color: var(--white); }
.light { background: var(--light); color: var(--ink); }

.hero { padding: 78px 0 76px; }
.eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: -.22px;
  color: #9ecbff;
}
h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.07;
  letter-spacing: -0.3px;
  font-weight: 600;
}
.sub {
  margin: 18px auto 0;
  max-width: 820px;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: .1px;
  color: rgba(255,255,255,.88);
}

.cta-row {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  text-decoration: none;
  font-size: 17px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--air-blue); color: var(--white); }
.btn.primary:hover { background: var(--air-blue-dark); }
.btn.ghost { color: #2997ff; border-color: #2997ff; }

.flight-search {
  margin: 24px auto 0;
  width: min(980px, 100%);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 190px;
  gap: 10px;
  align-items: end;
  backdrop-filter: blur(10px);
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.date-field input { cursor: pointer; }
.field label {
  font-size: 13px;
  color: rgba(255,255,255,.84);
  letter-spacing: -.12px;
}
.field input,
.field select {
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.35);
  color: #fff;
  padding: 0 12px;
  /* 16px keeps iOS Safari from auto-zooming the page when a field gains focus. */
  font-size: 16px;
  outline: none;
}
.field input::placeholder { color: rgba(255,255,255,.55); }
.field input:focus,
.field select:focus {
  border-color: #2997ff;
  box-shadow: 0 0 0 2px rgba(41,151,255,.25);
}
.field select option {
  background: #0f1726;
  color: #fff;
}
.search-btn {
  height: 46px;
  padding: 0 18px;
  white-space: nowrap;
  width: 100%;
}

.results {
  margin: 14px auto 0;
  width: min(980px, 100%);
  text-align: left;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 14px;
}
.results-head h2 {
  margin: 0;
  font-size: 18px;
  color: #fff;
}
.results-head p {
  margin: 6px 0 0;
  font-size: 14px;
  color: rgba(255,255,255,.74);
}
.conditions-title {
  margin: 14px 0 0;
  color: #fff;
  font-size: 15px;
}
.results-list {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.result-card {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  cursor: pointer;
  min-width: 0;
}
.result-card:hover { border-color: rgba(41,151,255,.6); }
.result-card h3 { margin: 0 0 6px; font-size: 17px; color: #fff; }
.result-card p { margin: 0; font-size: 14px; color: rgba(255,255,255,.8); }
.result-card .connection-summary {
  margin: 6px 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(133, 196, 255, .95);
}
.result-card .connection-summary.direct-summary {
  color: rgba(163, 214, 255, .85);
}
.result-card .connection-line {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: rgba(168, 223, 255, .95);
}
.flight-timing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.flight-timing-point {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(143, 210, 255, .24);
  border-radius: 10px;
  background: rgba(8, 22, 40, .48);
}
.timing-label {
  display: block;
  margin-bottom: 6px;
  color: rgba(196, 231, 255, .86);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.timing-values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.arrival-time {
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.temperature-value {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  white-space: nowrap;
  color: #07131f;
  background: #8fd2ff;
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
.temperature-value.unavailable {
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .09);
  font-size: 10px;
}
.flight-weather {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 8px;
}
.flight-weather h4 {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(213, 232, 247, .82);
  font-size: 12px;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.flight-weather-point {
  min-width: 0;
  border: 1px solid rgba(92, 196, 255, .34);
  border-radius: 10px;
  padding: 9px 10px;
  background: linear-gradient(180deg, rgba(16, 65, 104, .38), rgba(8, 28, 48, .42));
}
.flight-weather-point.unavailable {
  border-color: rgba(255, 190, 92, .32);
  background: rgba(86, 58, 18, .2);
}
.flight-weather-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.flight-weather-head strong { color: #fff; font-size: 13px; }
.flight-weather-head span {
  color: #8fd2ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  white-space: nowrap;
}
.result-card .flight-weather-point p { margin: 2px 0; font-size: 12px; line-height: 1.4; }
.result-card .flight-weather-point .flight-weather-summary { color: #fff; font-weight: 650; }
.flight-weather-point small { display: block; margin-top: 5px; color: rgba(213, 232, 247, .68); font-size: 10px; line-height: 1.35; }
.one-stop-leg-list {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}
.one-stop-leg-list.compact {
  margin-top: 6px;
}
.one-stop-leg-item {
  border: 1px solid rgba(143,210,255,.22);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(12, 24, 44, .42);
}
.one-stop-leg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.one-stop-leg-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(143,210,255,.24);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8fd2ff;
  background: rgba(41,151,255,.12);
}
.one-stop-leg-flight {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.one-stop-leg-route {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.94);
}
.one-stop-leg-meta,
.one-stop-leg-note {
  margin: 0;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: rgba(168, 223, 255, .9);
}
.one-stop-leg-note {
  color: rgba(196, 231, 255, .82);
}
.result-card .airport-clock-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.result-card .airport-clock {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(143, 210, 255, .24);
  border-radius: 8px;
  background: rgba(8, 22, 40, .5);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.result-card .airport-clock.clock-neutral { color: #A8DFFF; }
.departure-time {
  display: inline-block;
  min-width: 54px;
  padding: 2px 7px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-weight: 850;
  letter-spacing: .3px;
  text-align: center;
}
.departure-time.departure-red { color: #FF6B6B; background: rgba(255, 107, 107, .14); }
.departure-time.departure-yellow { color: #FFD45C; background: rgba(255, 212, 92, .14); }
.departure-time.departure-green { color: #5CFF85; background: rgba(92, 255, 133, .14); }
.departure-time.departure-neutral { color: #A8DFFF; background: rgba(168, 223, 255, .08); }
.cargo-hours {
  margin-top: 12px;
  border: 1px solid rgba(143,210,255,.28);
  border-radius: 10px;
  background: rgba(32,50,76,.25);
  padding: 10px 12px;
}
.cargo-hours h5 {
  margin: 0 0 6px;
  color: #a8dfff;
  font-size: 13px;
}
.cargo-hours p {
  margin: 4px 0;
  font-size: 12px;
  color: rgba(255,255,255,.9);
}
.cargo-hours .cargo-note {
  color: rgba(255,255,255,.66);
}
.cargo-evaluation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0;
}
.cargo-evaluation {
  border: 1px solid rgba(255,255,255,.22);
  border-left-width: 5px;
  border-radius: 9px;
  background: rgba(8,16,28,.45);
  padding: 10px;
}
.cargo-evaluation.cargo-ok { border-left-color: #5CFF85; }
.cargo-evaluation.cargo-warning { border-left-color: #FFD166; }
.cargo-evaluation.cargo-danger { border-left-color: #FF5A67; background: rgba(120,18,30,.2); }
.cargo-evaluation.cargo-unknown { border-left-color: #A8B3C4; }
.cargo-evaluation.cargo-manual { border-left-color: #FFB454; background: rgba(120,80,10,.18); }
.cargo-ok .cargo-evaluation-head span { color: #5CFF85; }
.cargo-warning .cargo-evaluation-head span { color: #FFD166; }
.cargo-danger .cargo-evaluation-head span { color: #FF7B86; }
.cargo-unknown .cargo-evaluation-head span { color: #CBD3DF; }
.cargo-manual .cargo-evaluation-head span { color: #FFB454; }
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.cargo-evaluation-head span {
  max-width: 62%;
  text-align: right;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
}
.cargo-ok .cargo-evaluation-head span { color: #5CFF85; }
.cargo-warning .cargo-evaluation-head span { color: #FFD166; }
.cargo-danger .cargo-evaluation-head span { color: #FF7B86; }
.cargo-unknown .cargo-evaluation-head span { color: #CBD3DF; }
.cargo-week {
  margin: 8px 0;
  border-top: 1px solid rgba(255,255,255,.16);
  padding-top: 7px;
}
.cargo-week summary {
  color: #A8DFFF;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.cargo-week table {
  width: 100%;
  margin-top: 6px;
  border-collapse: collapse;
  font-size: 11px;
}
.cargo-week th,
.cargo-week td {
  padding: 3px 5px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  text-align: left;
}
.cargo-week th { color: rgba(255,255,255,.75); font-weight: 600; }
@media (max-width: 720px) {
  .cargo-evaluation-grid { grid-template-columns: 1fr; }
  .cargo-evaluation-head { align-items: flex-start; }
}
.details-btn {
  margin-top: 8px;
  border: 1px solid rgba(143,210,255,.5);
  background: rgba(41,151,255,.12);
  color: #8fd2ff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}
.details-btn:hover { background: rgba(41,151,255,.22); }

.airport-conditions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.airport-condition {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  padding: 13px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  text-align: left;
  font-size: 12px;
  color: #d7e8f8;
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
}
.airport-condition.loading { grid-column: 1 / -1; }
.airport-condition-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.airport-condition-head strong { color: #fff; font-size: 14px; }
.airport-condition-head span { color: #8fd2ff; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.airport-weather-grid { display: grid; gap: 5px; }
.airport-weather-grid p { margin: 0; line-height: 1.45; }
.airport-weather-grid b { color: #fff; }
.airport-condition small { display: block; margin-top: 9px; color: rgba(215,232,248,.68); line-height: 1.35; }
.airport-condition.alert { border-color: rgba(255,136,92,.68); background: linear-gradient(180deg, rgba(137,54,32,.25), rgba(88,35,25,.14)); }
.holiday-warning {
  grid-column: 1 / -1;
  border: 1px solid rgba(255,193,92,.62);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(124,82,18,.2);
  color: #ffe8ba;
  text-align: left;
  font-size: 12px;
  line-height: 1.45;
}
.holiday-warning strong { color: #fff3d6; }
@media (max-width: 640px) { .airport-conditions { grid-template-columns: 1fr; } }

/* Phone: reflow the wide flight-details table into stacked, labeled cards so every
   field is visible without horizontal scrolling. Desktop keeps the full table. */
@media (max-width: 640px) {
  .schedule-wrap { overflow-x: visible; }
  /* Higher specificity than the tablet `.schedule-table { min-width: 820px }` rule,
     which also matches phone widths and would otherwise keep the table wide. */
  .schedule-wrap .schedule-table {
    display: block;
    min-width: 0;
    width: 100%;
    border: none;
    background: transparent;
    border-radius: 0;
  }
  /* Keep the header labels for assistive tech but hide them visually. */
  .schedule-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .schedule-table tbody { display: block; }
  .schedule-table tbody tr {
    display: block;
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 12px;
    padding: 4px 2px;
    margin-bottom: 12px;
  }
  .schedule-table tbody tr:nth-child(even) td { background: transparent; }
  .schedule-table td,
  .schedule-table td:first-child,
  .schedule-table td:nth-child(2) {
    display: block;
    text-align: left;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,.08);
    padding: 8px 14px;
    background: transparent;
  }
  .schedule-table tbody tr td:last-child { border-bottom: none; }
  .schedule-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
    margin-bottom: 3px;
  }
}

.flight-details {
  margin: 14px auto 0;
  width: min(980px, 100%);
  text-align: left;
  background: linear-gradient(180deg, rgba(22,22,24,.82) 0%, rgba(17,17,19,.72) 100%);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  padding: 14px;
  backdrop-filter: saturate(170%) blur(18px);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  box-shadow: 0 18px 50px rgba(0,0,0,.38);
  opacity: 0;
  transform: translateY(14px) scale(.985);
  transition: opacity .45s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1);
}
.flight-details.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.results-list .flight-details {
  margin: 8px 0 0;
  width: 100%;
}
.result-card .flight-details {
  margin: 10px 0 0;
  border-color: rgba(255,255,255,.24);
  background: linear-gradient(180deg, rgba(30,30,34,.86), rgba(20,20,24,.82));
}
.flight-details-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.flight-details-head h3 { margin: 0; color: #fff; font-size: 16px; }
.btn-sm { font-size: 13px; padding: 6px 12px; }
.details-body { margin-top: 10px; color: rgba(255,255,255,.9); }
.details-body h4 { margin: 0 0 6px; color: #fff; font-size: 14px; }
.details-body p { margin: 0 0 8px; font-size: 13px; }
.details-body ul { margin: 0; padding-left: 18px; }
.details-body li { margin: 0 0 6px; font-size: 13px; }
.details-body .connection-summary {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(133, 196, 255, .95);
}
.details-body .connection-line {
  margin: 0 0 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: rgba(168, 223, 255, .95);
}
.schedule-wrap {
  width: 100%;
  overflow-x: auto;
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  background: rgba(255,255,255,.94);
  color: #111;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  overflow: hidden;
  user-select: text;
}
.schedule-table th {
  background: linear-gradient(180deg, #f8f8fa 0%, #eef0f4 100%);
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 10px 8px;
  border: 1px solid rgba(0,0,0,.06);
}
.schedule-table td {
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  vertical-align: middle;
  padding: 10px 8px;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.98);
  color: #1d1d1f;
}
.schedule-table tbody tr:nth-child(even) td {
  background: #fafafa;
}
.schedule-table td:first-child,
.schedule-table td:nth-child(2) {
  text-align: center;
}
.flight-no {
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: .2px;
}
.mini { color: rgba(255,255,255,.68); font-size: 12px !important; }

.hero-panel {
  margin: 56px auto 0;
  width: min(900px, 100%);
  min-height: 250px;
  border-radius: 20px;
  background: linear-gradient(180deg, #0b1d3a 0%, #091325 100%);
  box-shadow: rgba(0,0,0,.28) 3px 5px 30px 0;
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,113,227,.35), rgba(0,113,227,0));
}
.scan {
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  height: 40%;
  background: linear-gradient(180deg, rgba(86,184,255,.28), rgba(86,184,255,0));
  animation: scan 4.5s ease-in-out infinite;
}
@keyframes scan {
  0%, 100% { transform: translateY(0); opacity: .3; }
  50% { transform: translateY(240px); opacity: .65; }
}
.hero-panel-title {
  position: relative;
  z-index: 2;
  margin: 0 0 10px;
  color: rgba(214, 236, 255, 0.92);
  font-size: 14px;
  letter-spacing: .35px;
  text-transform: uppercase;
}
.track-row {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid rgba(151, 208, 255, .18);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,255,255,.92);
  font-size: 15px;
}
.track-row strong {
  font-weight: 600;
  color: #dff2ff;
  font-size: 12px;
  letter-spacing: .2px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(76,173,255,.35), rgba(25,117,196,.35));
  border: 1px solid rgba(153, 220, 255, .28);
  white-space: nowrap;
}

.section { padding: 82px 0; }
h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.2px;
  font-weight: 600;
}
.section p {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.split {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
}
.metric-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: rgba(0,0,0,.08) 0 8px 26px;
}
.metric-card p { margin: 0; color: #4a4a4d; font-size: 14px; }
.metric-card strong {
  display: block;
  font-size: 54px;
  line-height: 1;
  letter-spacing: -1px;
  margin: 8px 0;
}
.metric-card span { color: #6e6e73; font-size: 14px; }

.cards-wrap { padding-top: 18px; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: rgba(0,0,0,.06) 0 4px 20px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: rgba(0,0,0,.12) 0 10px 24px;
}
.card h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: .16px;
  line-height: 1.2;
  font-weight: 550;
}
.card p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.1px;
}

.stats {
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.stats-grid div {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
}
.stats-grid strong {
  display: block;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.5px;
  color: #8fd2ff;
}
.stats-grid span {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,.84);
  font-size: 14px;
}

.cta-block h2 { margin-bottom: 8px; }
.sub-cta {
  color: rgba(255,255,255,.78);
  margin: 0 auto 24px;
  font-size: 18px;
}

.footer {
  border-top: 1px solid rgba(0,0,0,.08);
  padding: 22px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.footer p { margin: 0; color: #6e6e73; font-size: 12px; }
.footer a {
  color: #0066cc;
  text-decoration: none;
  margin-left: 14px;
  font-size: 12px;
}

.result-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.airline-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.airline-logo,
.airline-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: 0 0 28px;
}

.airline-logo {
  object-fit: cover;
  background: #fff;
  border: 1px solid #d4dae3;
}

.airline-fallback {
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: #0b4a8f;
}

@media (max-width: 1100px) {
  .flight-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .search-btn { width: 100%; }
}

@media (max-width: 900px) {
  nav, .nav-cta { display: none; }
  .split, .cards, .stats-grid { grid-template-columns: 1fr; }
  .schedule-table { min-width: 820px; }
  .section { padding: 58px 0; }
  .hero-panel { min-height: 210px; }
  .sub { font-size: 16px; }
  .flight-search { grid-template-columns: 1fr; }
  .flight-timing-grid { grid-template-columns: 1fr; }
  .flight-weather { grid-template-columns: 1fr; }
  /* Comfortable ~44px touch targets for the in-card controls on phones. */
  .details-btn { min-height: 44px; padding: 10px 18px; font-size: 13px; }
  #details-close { min-height: 44px; padding: 10px 18px; }
}