:root {
  --navy: #0c2944;
  --ink: #102f48;
  --muted: #5e7182;
  --orange: #c94713;
  --orange-hover: #aa390d;
  --line: #d5dee7;
  --paper: #f3f6f9;
  --surface: #ffffff;
  --success: #087a5b;
  --radius: 14px;
  --shadow-soft: 0 18px 45px rgba(12, 41, 68, 0.08);
  --shadow-card: 0 8px 24px rgba(12, 41, 68, 0.07);
}

html { scroll-behavior: smooth; }
html,
body { max-width: 100%; overflow-x: hidden; }
body {
  background: #f5f7fa;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1200px; }
#header {
  position: relative;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(12, 41, 68, 0.08);
}
.header { min-height: 72px; gap: 30px; }
.brand {
  gap: 10px;
  color: var(--navy);
  font-size: 21px;
  letter-spacing: -0.45px;
}
.brand b { color: var(--orange); font-weight: 650; }
.brand-mark {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent url('/favicon.svg') center / cover no-repeat;
  box-shadow: 0 6px 16px rgba(12, 41, 68, 0.18);
  font-size: 0;
  letter-spacing: 0;
}
.header nav { gap: 8px; }
.header nav a {
  padding: 10px 13px;
  border: 0;
  border-radius: 9px;
  color: #293f53;
  font-weight: 600;
  transition: color 160ms ease, background 160ms ease;
}
.header nav a:hover { color: var(--navy); background: #edf2f6; }
.header nav a.header-cta {
  margin-left: 8px;
  padding-inline: 18px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 6px 16px rgba(12, 41, 68, 0.16);
}
.header nav a.header-cta:hover { background: #133a5c; color: #fff; }
.language { padding-left: 4px; gap: 6px; }
.service-strip { display: none; }
.hero {
  position: relative;
  width: calc(100% - 64px);
  max-width: 1136px;
  height: 420px;
  margin: 24px auto 0;
  overflow: hidden;
  border: 1px solid #cbd7e1;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background-position: center 48%;
  box-shadow: var(--shadow-soft);
}
.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(246, 249, 252, 0.96) 0%, rgba(246, 249, 252, 0.76) 36%, rgba(246, 249, 252, 0.08) 68%);
}
.hero .wrap {
  position: relative;
  z-index: 1;
  padding: 64px 32px 0;
}
.eyebrow {
  color: var(--navy);
  font-size: 11px;
  letter-spacing: 1.7px;
}
.hero h1 {
  max-width: 560px;
  margin-top: 0;
  font-size: clamp(42px, 4.5vw, 62px);
  line-height: 1.02;
  letter-spacing: -2.4px;
}
.hero p:last-child {
  max-width: 520px;
  color: #29455d;
  font-size: 18px;
}
.booking-box {
  margin-top: 0;
  padding: 0 32px 28px;
  border-color: #cbd7e1;
  border-top: 0;
  border-radius: 0 0 20px 20px;
  box-shadow: var(--shadow-soft);
}
.booking-tabs {
  min-height: 72px;
  margin: 0 -32px 24px;
  padding: 16px 32px;
  align-items: center;
  gap: 6px;
}
.booking-tabs button {
  padding: 10px 16px;
  border: 0;
  border-radius: 9px;
}
.booking-tabs button.active {
  border: 0;
  background: var(--navy);
  color: #fff;
}
.field { gap: 8px; color: #203d54; font-size: 13px; }
.field input,
.field select {
  height: 50px;
  border-color: #bac8d4;
  border-radius: 10px;
  background: #fbfcfd;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.field input:hover,
.field select:hover { border-color: #8298aa; background: #fff; }
.field input:focus,
.field select:focus {
  border-color: #47718f;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(71, 113, 143, 0.13);
  outline: 0;
}
.swap {
  height: 38px;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f2f6f9;
  font-size: 18px;
}
.button,
button.primary,
button.secondary,
.button.secondary {
  border-radius: 10px;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.button:hover,
button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(201, 71, 19, 0.18);
}
button.secondary:hover,
.button.secondary:hover { border-color: #6e879a; background: #f4f7fa; }
.search-button { box-shadow: 0 8px 18px rgba(201, 71, 19, 0.16); }
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2,
.editorial h1 {
  color: var(--navy);
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -1.2px;
}
.section-lead { font-size: 17px; line-height: 1.65; }
.destination-grid { gap: 16px; }
.destination-card {
  overflow: hidden;
  min-height: 220px;
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(12, 41, 68, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.destination-card:hover {
  transform: translateY(-3px);
  border-color: #9dafbd;
  box-shadow: var(--shadow-card);
}
.destination-card .city-tag {
  padding: 13px 18px;
  background: var(--navy);
  letter-spacing: 0.8px;
}
.destination-card:nth-child(2n) .city-tag { background: #244a68; }
.destination-body { padding: 22px; }
.destination-body h3 { color: var(--navy); }
.service-row {
  gap: 16px;
  padding: 0 0 64px;
  border: 0;
}
.service-row > div {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.service-number { letter-spacing: 1px; }

.subhero {
  padding: 36px 0;
  border: 0;
  background: linear-gradient(180deg, #eef3f7, #f5f7fa);
}
.subhero h1 { color: var(--navy); font-size: clamp(28px, 3vw, 40px); }
.result-layout { gap: 22px; padding-top: 28px; }
.filter-box,
.flight-card,
.panel,
.summary-box,
.status-box {
  border-color: var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(12, 41, 68, 0.04);
}
.filter-box { padding: 22px; }
.date-strip {
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}
.date-strip button { min-height: 62px; }
.flight-card {
  overflow: hidden;
  margin-bottom: 18px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.flight-card:hover { border-color: #9dafbd; box-shadow: var(--shadow-card); }
.flight-price strong { color: var(--navy); }
.fare-grid { gap: 14px; padding: 20px; }
.fare-card {
  border-radius: 12px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.fare-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.fare-card.recommended { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.steps { border: 0; }
.steps b { background: #fff; }
.checkout { gap: 24px; }
.panel { padding: 26px; }
.summary-box { padding: 24px; }
.hold-note {
  border: 1px solid #cfdae3;
  border-left: 4px solid #47718f;
  border-radius: 10px;
  background: #eef4f8;
}
.lookup {
  max-width: 680px;
  margin: 64px auto 88px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.lookup h1 {
  margin: 4px 0 12px;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -1.2px;
}
.lookup form { display: grid; gap: 18px; margin-top: 26px; }
.lookup form button { width: 100%; }
.editorial {
  max-width: 920px;
  margin-top: 40px;
  margin-bottom: 64px;
  padding-top: 38px;
  padding-bottom: 44px;
}
.editorial h2 { margin-top: 38px; color: var(--navy); }
.info-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.airport-options {
  overflow: hidden auto;
  border-color: var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(12, 41, 68, 0.16);
}
.airport-options button { transition: background 120ms ease; }
.wallet-card,
.payment-pending {
  border-radius: 12px;
}
.booking-success { margin-top: 48px; }
.success-top {
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #eef3f7;
}
.pnr-block { border-radius: 12px; }
#footer {
  margin-top: 24px;
  background: var(--navy);
  color: #eaf0f4;
}
#footer a { color: inherit; }
.footer-grid { padding-top: 52px; padding-bottom: 38px; }
.footer-grid p,
.footer-bottom { color: #b9c8d3; }
.footer-bottom { border-color: rgba(255, 255, 255, 0.14); }
#toast {
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(12, 41, 68, 0.2);
}
#dialog {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(12, 41, 68, 0.25);
}

.operator-shell { min-height: 100vh; background: #eef2f6; }
.operator-shell > header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.operator-shell .header { min-height: 68px; }
.operator-label {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.operator-language { flex-direction: row; align-items: center; gap: 10px; }
.operator-language select { height: 38px; min-width: 120px; padding-block: 6px; }
.operator-page { padding-top: 36px; padding-bottom: 72px; }
.operator-head {
  margin-bottom: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.operator-head h1 { margin: 0 0 6px; color: var(--navy); font-size: 30px; }
.operator-head p { margin: 0; color: var(--muted); }
.operator-page > .hold-note { margin-bottom: 18px; }
.order-card {
  margin-bottom: 14px;
  padding: 24px;
  border-color: var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(12, 41, 68, 0.04);
}
.order-top h2 { color: var(--navy); letter-spacing: 0.08em; }
.badge { border-radius: 999px; }
.order-actions { gap: 10px; }
.operator-login {
  max-width: 480px;
  margin: 72px auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.operator-login h1 { color: var(--navy); }

@media (max-width: 900px) {
  .header { min-height: 66px; }
  .header nav a:not(.header-cta) { display: none; }
  .header nav { margin-left: auto; }
  .header nav a.header-cta { margin-left: 0; }
  .hero { width: calc(100% - 32px); height: 360px; margin-top: 16px; }
  .hero .wrap { padding-top: 48px; }
  .operator-head { gap: 18px; }
}

@media (max-width: 700px) {
  .wrap { padding-inline: 16px; }
  .header { flex-wrap: nowrap; gap: 10px; padding-inline: 16px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 34px; height: 34px; font-size: 23px; }
  .header nav a.header-cta { padding: 9px 11px; font-size: 12px; }
  .language {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    padding: 5px 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f7f9fb;
    font-size: 11px;
  }
  .hero {
    width: calc(100% - 24px);
    height: 305px;
    margin-top: 12px;
    border-radius: 16px 16px 0 0;
    background-position: 59% center;
  }
  .hero::after {
    background: linear-gradient(180deg, rgba(246, 249, 252, 0.38), rgba(246, 249, 252, 0.92) 67%, rgba(246, 249, 252, 0.98));
  }
  .hero .wrap {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 20px 26px;
  }
  .hero h1 { max-width: 330px; font-size: 34px; letter-spacing: -1.4px; }
  .hero p:last-child { max-width: 330px; margin: 12px 0 0; font-size: 15px; }
  .eyebrow { margin-bottom: 10px; }
  .booking-box {
    margin-inline: -4px;
    padding: 0 16px 20px;
    border-radius: 0 0 16px 16px;
  }
  .booking-tabs {
    min-height: 62px;
    margin: 0 -16px 18px;
    padding: 12px 16px;
    overflow-x: auto;
  }
  .booking-tabs button { flex: 0 0 auto; padding: 9px 12px; }
  .search-grid,
  .search-grid.multi-leg {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .search-grid .field,
  .search-grid.multi-leg .field { width: 100%; }
  .search-grid .swap {
    align-self: center;
    width: 38px;
    min-height: 34px;
    margin: -2px 0;
    transform: rotate(90deg);
  }
  .search-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
  .search-bottom .field,
  .search-bottom .field:last-of-type {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-left: 0;
  }
  .search-bottom .field:last-of-type,
  .search-button { grid-column: 1 / -1; }
  .search-button { width: 100%; }
  .section { padding: 44px 0; }
  .destination-grid { grid-template-columns: 1fr; }
  .destination-card { min-height: 0; }
  .service-row { grid-template-columns: 1fr; padding-bottom: 44px; }
  .result-layout { padding-top: 20px; }
  .filter-box { border-radius: 12px; }
  .flight-main { padding: 18px; }
  .fare-grid { padding: 12px; }
  .lookup { margin: 28px 0 52px; padding: 24px 20px; border-radius: 14px; }
  .editorial { margin-top: 12px; margin-bottom: 40px; padding-top: 28px; }
  .footer-grid { padding-top: 40px; }
  .operator-shell .header { flex-wrap: wrap; padding-block: 10px; }
  .operator-label { order: 3; }
  .operator-language { margin-left: auto; }
  .operator-page { padding-top: 20px; }
  .operator-head,
  .order-card,
  .operator-login { padding: 20px; }
  .operator-head h1 { font-size: 25px; }
  .order-actions { display: grid; grid-template-columns: 1fr; }
  .order-actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .destination-card,
  .fare-card,
  .flight-card,
  .button,
  button { transition: none; }
}

/* Mobile booking flow: every interactive surface stays inside the viewport. */
main,
main > *,
.booking-box,
.result-layout > *,
.checkout > *,
.panel,
.summary-box,
.status-box,
.lookup,
.booking-success,
.flight-main > *,
.form-grid > *,
.price-line > * { min-width: 0; }
.lookup { width: 100%; }
input,
select,
textarea,
button { max-width: 100%; }
dialog {
  max-height: calc(100dvh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
}

@media (max-width: 700px) {
  .header > .brand { min-width: 0; flex: 1 1 auto; }
  .header > .brand > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: clip;
  }
  .header nav {
    order: initial;
    width: auto;
    flex: 0 0 auto;
    min-width: 0;
    margin-left: auto;
    overflow: visible;
    justify-content: flex-start;
  }
  .lookup { margin-inline: auto; }
  .result-top,
  .segment-heading,
  .flight-meta,
  .price-line { flex-wrap: wrap; }
  .airport-time { min-width: 0; }
  .airport-time span,
  .segment-heading > *,
  .summary-box,
  .status-box { overflow-wrap: anywhere; }
  .flight-path { min-width: 52px; }
  .flight-price strong { white-space: normal; overflow-wrap: anywhere; }
  .checkout,
  .result-layout { width: 100%; }
  .actions { align-items: stretch; }
  dialog { width: calc(100% - 24px); padding: 28px 18px 20px; }
}

@media (max-width: 360px) {
  .header { gap: 7px; padding-inline: 12px; }
  .brand { gap: 7px; font-size: 16px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 8px; }
  .header nav a.header-cta { padding: 8px 9px; font-size: 11px; }
  .hero { width: calc(100% - 16px); }
  .hero h1 { font-size: 30px; }
  .booking-box { margin-inline: 0; }
  .search-bottom { grid-template-columns: 1fr; }
  .search-bottom .field,
  .search-bottom .field:last-of-type,
  .search-button { grid-column: 1; }
  .flight-line { gap: 8px; }
  .airport-time strong { font-size: 20px; }
  .flight-path { min-width: 38px; font-size: 11px; }
  .flight-price { grid-template-columns: 1fr; }
  .flight-price button,
  .flight-price small { grid-column: 1; grid-row: auto; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: 1; }
}

/* Mobile masthead: use the aircraft as a true full-width background and keep
   all navigation controls inside the viewport. */
@media (max-width: 700px) {
  .hero {
    width: 100%;
    height: 280px;
    margin-top: 0;
    border: 0;
    border-radius: 0;
    background-position: 64% 42%;
    box-shadow: none;
  }
  .hero::after {
    background: linear-gradient(180deg, rgba(246, 249, 252, 0.02) 0%, rgba(246, 249, 252, 0.15) 42%, rgba(246, 249, 252, 0.9) 72%, #f6f9fc 100%);
  }
  .hero .wrap { padding-bottom: 24px; }
  .booking-box {
    margin-inline: -16px;
    border-radius: 0;
    box-shadow: 0 12px 28px rgba(12, 41, 68, 0.08);
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .hero { width: calc(100% - 48px); }
}

@media (max-width: 480px) {
  .header { min-height: 62px; gap: 6px; padding-inline: 10px; }
  .header > .brand { flex: 0 0 auto; }
  .brand { gap: 6px; font-size: 15px; letter-spacing: -0.35px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 7px; }
  .header nav { margin-left: auto; }
  .header nav a.header-cta { padding: 7px 8px; font-size: 10.5px; white-space: nowrap; }
  .language { flex-shrink: 0; gap: 3px; padding: 3px 5px; font-size: 10px; }
}

.payment-choice-grid { margin: 16px 0 22px; }
.selected-payment-method {
  border-color: var(--navy);
  background: #eef4f8;
  box-shadow: inset 0 0 0 1px var(--navy);
}
.selected-payment-method::before {
  content: '✓';
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
}
.booking-edit > summary {
  cursor: pointer;
  color: var(--navy);
  font-size: 18px;
  font-weight: 750;
}
.booking-edit[open] > summary { margin-bottom: 12px; }
.booking-edit-passenger {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.booking-edit-passenger h3 { margin: 0 0 14px; }
.booking-edit-priority { align-self: end; min-height: 51px; }
#operator-dialog { width: min(760px, calc(100% - 24px)); max-width: 760px; max-height: calc(100vh - 32px); overflow: auto; }
#operator-dialog h2 { margin-top: 0; color: var(--navy); }
#operator-dialog .operator-priority { align-self: end; min-height: 51px; padding: 14px 0; }
#operator-edit-error[hidden] { display: none; }
button[aria-disabled="true"] { cursor: not-allowed; }
.visitor-analytics { margin: 18px 0; }
.visitor-analytics-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.visitor-analytics-head h2 { margin: 2px 0 0; }
.visitor-stat-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; margin: 18px 0 10px; }
.visitor-stat-grid > div { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; }
.visitor-stat-grid strong,.visitor-stat-grid span { display: block; }
.visitor-stat-grid strong { color: var(--navy); font-size: clamp(22px,3vw,34px); line-height: 1; }
.visitor-stat-grid span { margin-top: 7px; color: var(--muted); font-size: 12px; }
@media(max-width:800px){.visitor-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.visitor-analytics-head{display:block}.visitor-analytics-head .badge{display:inline-flex;margin-top:10px}}
