/* The canvas behind Safari's rubber-band scroll and the top edge of the header
   share the color declared by the matching theme-color meta tag. */
:root {
  color-scheme: light dark;
  --site-chrome: #fff;
  background-color: var(--site-chrome);
}
:root.home-chrome { --site-chrome: #075fae; }
:root.flight-results-chrome { --site-chrome: #1b3a63; }
body { min-height: 100vh; min-height: 100dvh; }
.site-header { padding-top: env(safe-area-inset-top); background-color: var(--site-chrome); }
.home-chrome .site-header {
  background-color: var(--site-chrome);
  background-image: linear-gradient(to bottom, var(--site-chrome) env(safe-area-inset-top, 0px), transparent), var(--mast-rings), var(--mast-gradient);
}
.flight-results-chrome .site-header,
.flight-results-chrome .flight-results-hero {
  background: var(--site-chrome);
  box-shadow: none;
  border-color: transparent;
}
.flight-results-chrome .flight-results-hero::before,
.flight-results-chrome .flight-results-hero::after { content: none; }
.flight-results-chrome .site-header .brand-logo { content: url('../img/logo-white.svg'); }
.flight-results-chrome .header-inner > .currency-menu summary,
.flight-results-chrome .nav-burger {
  color: white;
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 42%);
}
.flight-results-chrome .header-inner > .currency-menu summary .cur-sym { color: inherit; }
.flight-results-chrome .header-inner > .currency-menu summary svg { fill: currentColor; }
.flight-results-chrome .nav-burger span { background: white; }
@media (min-width: 981px) {
  .flight-results-chrome .nav-links a,
  .flight-results-chrome .nav-utility .language-menu > summary { color: white; }
  .flight-results-chrome .nav-links a:hover { background: rgb(255 255 255 / 12%); }
  .flight-results-chrome .nav-ic { fill: currentColor; }
}
.container {
  --page-gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  width: min(1180px, 100% - 2 * var(--page-gutter));
}
@media (max-width: 980px) {
  .main-nav {
    padding-top: env(safe-area-inset-top);
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }
  :is(.home-chrome,.flight-results-chrome) .main-nav {
    background: linear-gradient(var(--site-chrome) calc(74px + env(safe-area-inset-top)), var(--card) 0);
  }
  :is(.home-chrome,.flight-results-chrome) .nav-panel-head img { content: url('../img/logo-white.svg'); }
}
@media screen and (prefers-color-scheme: dark) {
  :root {
    --site-chrome: #131f2d;
    --bg: #0e1723;
    --card: #182637;
    --surface-raised: #203246;
    --line: #3b4d61;
    --text: #e7eff7;
    --ink: #f3f7fb;
    --ink-2: #dbe6f2;
    --muted: #bdcbd9;
    --muted-2: #a3b5c8;
    --navy: #101d2c;
    --blue: #8bc5ff;
    --blue-dark: #b7dcff;
    --blue-soft: #203b56;
    --action: #0864b8;
    --teal: #63d9c5;
    --teal-dark: #88e1ce;
    --danger: #ffb5ad;
    --success: #88e1ce;
    --success-surface: #183b35;
    --warning-surface: #3c311d;
    --warning-text: #ffe09a;
    --error-surface: #442a30;
    --shadow: 0 6px 24px rgb(0 0 0 / 25%);
    accent-color: var(--blue);
  }
  :root.home-chrome { --site-chrome: #0b2946; }
  :root.flight-results-chrome { --site-chrome: #122c49; }
  .home-chrome body { --mast-gradient: linear-gradient(100deg, #113a63, #103453 52%, #0d383f); }
  .home-chrome .flight-home, .airline-page { background-color: var(--bg); }
  .site-header .brand-logo, .nav-panel-head img { content: url('../img/logo-white.svg'); }
  .main-nav, .nav-close, .btn-ghost, .btn-danger, .currency-menu :is(summary,ul), .language-form,
  .search-card, .flight-home .search-card, .flight-home-controls, .flight-home .autocomplete,
  .flight-home .flight-home-package, .field :is(input,select,textarea), .field input:is([type=date],[type=time]),
  .date-display, .pax-summary, .counter button, .cabin-chip, .pax-popover, .cal-panel, .cal-slot,
  .cal-nav button, .cal-foot, .location-control, .location-picker, .autocomplete .suggestions,
  .filters, .sort select, .flight-card, .hotel-card, .car-card, .leg-price, .price-cal, .empty-state,
  .panel, .summary-bar, .auth-card, .usp, .faq details, .help-nav, .step, .table, .cookie-bar,
  .feedback-dialog, .tag-list a, .kpi div, .dest-airports a, .car-loading, .flight-loader-card,
  .prime-section, .prime-price, .pd-steps li, .pd-terms, .bk-pax, .bk-qty button, .secure-card,
  .pay-loading, .airline-directory-card, .airline-directory-field :is(input,select) {
    background-color: var(--card);
  }
  .flight-home-controls, .flight-home .search-card, .flight-home .autocomplete, .flight-home-actions,
  .flight-home .flight-home-package, .field :is(input,select,textarea), .location-control,
  .location-picker, .pax-summary, .language-form, .feedback-dialog textarea,
  .airline-brand-note, .airline-directory-tools, .airline-directory-field :is(input,select) { border-color: var(--line); }
  .flight-home .search-row > .field > label, .lead, .faq .answer, .no-flights-note, .no-flights-alts small,
  .bk-next, .amenities span, .pd-terms li, .airline-booking-heading p, .airline-booking-search-note,
  .airline-booking-footer p, .airline-card-info small, .airline-brand-note, .airline-directory-count { color: var(--muted); }
  .flight-home .flight-home-package, .language-form, .airline-page, .airline-directory-field :is(label,input,select) { color: var(--text); }
  .field input::placeholder, .field textarea::placeholder, .feedback-dialog textarea::placeholder { color: var(--muted-2); }
  .flight-home .trip-type, .flight-home .search-row > :is(.field-date,.field-pax), .flight-card .buy,
  .hotel-card .buy, .car-buy, .feedback-scale span, .mobile-download, .table th, .car-photo,
  .fare-rules, .bk-organiser, .bk-steps li, .bk-seg, .bk-art, .bk-invite, .bk-bag-ico,
  .bk-bag-opt, .bk-split, .pd-figures div, .airline-directory-tools, .airline-directory-empty {
    background-color: var(--surface-raised);
  }
  .flight-home .trip-type label:has(:checked), .bk-seg label:has(input:checked) { background: var(--card); }
  .flight-home .location-control, .flight-home :is(.date-display,.pax-summary), .location-control > input.location-query { background: transparent; }
  .flight-home .autocomplete:has(.location-query:focus), .field :is(input,textarea,select):focus { border-color: var(--blue); }
  .flight-home .btn-search, .btn-blue, .feedback-tab, .feedback-scale input:checked+span,
  .cta-band, .badge-ink, .rating-pill, .step::before, .bk-steps li.active, .airline-logo.nologo,
  .cal-day:is(.is-start,.is-end) span { background-color: var(--action); color: white; }
  .flight-home .btn-search:hover, .btn-blue:hover { background-color: #096cbe; }
  .btn-teal { background: #006e63; }
  .btn-teal:hover { background: #007a6d; }
  .btn-primary, .btn-accent, .badge:not([class*='badge-']), .tile-badge { color: #172333; }
  .skip-link { background: var(--action); }
  .hero .lead:not(.lead-plain), .pd-btn, .pd-steps li::before { color: #172333; }
  .pd-card.is-on .pd-btn { color: #0b6b5c; }
  .flight-results-body .flight-standard-amount:not(.is-payable) s { color: var(--muted-2); }
  .flight-home .direct-only input:checked { background-color: var(--action); }
  .cal-day:disabled { color: #8797a8; }
  .cal-legend-cheap, .cal-day.is-cheap .cal-price { color: var(--success); }
  .cal-day.is-cheap::before, .cal-legend-cheap::before { background: var(--success-surface); }
  .cal-price.is-wait::before { background: linear-gradient(90deg,var(--card),var(--line),var(--card)); }
  .price-cal-day > :is(a,span), .no-flights-alts a { background: var(--surface-raised); }
  .price-cal-day > a:hover, .no-flights-alts a:is(:hover,:focus-visible) { background: var(--blue-soft); }
  .price-cal-day.current > a { background: var(--blue-soft); }
  .price-cal-day.cheapest > a { background: var(--success-surface); border-color: #4f8678; }
  .price-cal-day.past > span { background: var(--bg); color: var(--muted); }
  .price-cal-day .pc-selected, .no-flights-alts strong { color: var(--blue); }
  .fare-date-controls input::-webkit-slider-runnable-track { background: var(--line); }
  .fare-date-controls input::-moz-range-track { background: var(--line); }
  .feedback-dialog textarea, .pax-row select { background: var(--bg); color: var(--text); }
  .language-form select, .field select, .sort select { color: var(--text); }
  .cal-backdrop, .feedback-dialog::backdrop { background: rgb(3 9 18 / 70%); }
  .badge-grey, .st-partially_refunded, .st-not_booked, .st-voided,
  .pd-st-no_drop .pd-pill, .pd-st-cancelled .pd-pill { background: var(--surface-raised); color: var(--muted); }
  .notice, .flash-info, .notice-progress, .st-securing, .st-authorized, .st-partially_authorized,
  .bk-choice:has(input:checked) { background: var(--blue-soft); color: #bbdcff; border-color: #36597c; }
  .badge-green, .badge-teal, .flash-success, .notice-success, .st-confirmed, .st-ticketed, .st-paid,
  .st-completed, .bk-steps li.done, .bk-pax.bk-saved, .pd-pill, .secure-confirmed .secure-icon,
  .flight-results-body .cheapest-fare:not([hidden]) { background: var(--success-surface); color: var(--success); border-color: #42675d; }
  .badge-amber, .alert-box, .prime-line, .prime-upsell, .prime-status, .offer-box,
  .nav-prime-link, .prime-banner, .notice-warn, .st-needs_attention, .st-capture_failed,
  .st-pending_payment, .st-pending_review, .st-awaiting_details, .st-partially_paid,
  .pd-st-dropped .pd-pill, .pd-st-issued .pd-pill, .pd-figures .is-drop, .pd-voucher,
  .airline-booking-unavailable, .leg-prices.is-prime .leg-price, .leg-prices.is-prime .lp-ic {
    background: var(--warning-surface); color: var(--warning-text); border-color: #6e5a32;
  }
  .prime-line em, .pd-voucher code { color: var(--warning-text); }
  .leg-prices.is-prime .lp-ic svg { fill: var(--warning-text); }
  .badge-red, .flash-error, .notice-error, .st-cancelled, .st-refunded, .st-expired, .st-failed, .st-unpaid,
  .btn-danger:hover { background: var(--error-surface); color: var(--danger); border-color: #785054; }
  .field-error { color: var(--danger); }
  .bk-pax-summary, .bk-bag-row.included strong, .bk-stage { color: var(--success); }
  .airline-page { --airline-ink: var(--ink); --airline-blue: var(--blue); }
  .airline-booking, .airline-directory-hero { background: linear-gradient(120deg,var(--blue-soft),var(--card)); }
  .airline-alphabet a { background: var(--surface-raised); color: var(--text); }
  .airline-alphabet a:hover { background: var(--blue-soft); }
  .airline-alphabet a[aria-current=true] { background: var(--action); }
  /* Existing landing page templates explicitly give alternating bands a white surface. */
  .section[style='background:#fff'] { background-color: var(--card) !important; }
}
@media screen and (prefers-color-scheme: dark) and (max-width: 700px) {
  .flight-home .search-card { background: transparent; }
}
