:root {
  --sidebar-width: clamp(401.0625px, 37.51875vw, 504.5625px);
  color-scheme: light;
  accent-color: var(--action);
  --panel: #fff;
  --surface: #fff;
  --line: #d7d7d7;
  --text: #142b4a;
  --muted: #555;
  --on-dark: #fff;
  --action: #205cb9;
  --map: #c5dfee;
  --display: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  font: 14px "Instrument Sans", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--panel); color: var(--text); }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
a { color: inherit; }

.explorer {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  height: 100dvh;
  background: var(--panel);
  overflow: hidden;
}
.flight-panel { grid-area: 1 / 1; min-width: 0; overflow: auto; scrollbar-width: thin; overscroll-behavior: contain; overflow-anchor: none; }
.search-card {
  background: linear-gradient(145deg,#ffffffee,#f5f5f5c7);
  backdrop-filter: blur(16px) saturate(125%);
  box-shadow: inset 0 1px 0 #fff, inset -1px 0 0 #ffffffb3;
}
.site-header { border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 20px 22px; }
.search-card:has(#search[hidden]) .site-header { margin-bottom: 0; }
.search-card:has(#search[hidden]) .search-area { display: none; }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 700 23px/1 "DM Sans", sans-serif; text-decoration: none; }
.brand-icon { display: grid; place-items: center; width: 28px; height: 28px; background: var(--action); color: #fff; border-radius: 50%; font: 15px/1 sans-serif; }
.search-area { padding: 0 22px 20px; }
#search-title { margin: 0 0 14px; font: 700 clamp(29px, 3vw, 39px)/1.1 "DM Sans", sans-serif; letter-spacing: -.02em; }
.flight-panel {
  --surface: #fff;
  --line: #ddd;
  --muted: #595959;
  background: #f3f3f3;
  color: var(--text);
}
.trip-type { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 3px; gap: 4px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 8px; }
#multi-city, .multi-city-leg { min-width: 0; margin: 0; padding: 0; border: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.first-flight-heading, .multi-city-leg legend { margin: 0 0 7px; padding: 0; font-size: 14px; font-weight: 700; }
.multi-city-leg { display: grid; gap: 7px; margin-top: 12px; }
#add-flight-leg, .remove-flight-leg { min-height: 32px; padding: 4px 10px; border: 1px solid #c8d9ef; border-radius: 999px; background: #edf4ff; color: var(--action); font-weight: 700; }
#add-flight-leg { margin-top: 10px; }
.remove-flight-leg { grid-column: 1 / -1; justify-self: end; background: #fff; }
.is-multi-city .fields, .multi-city-leg, .is-multi-city .search-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
.is-multi-city :is(.fields,.multi-city-leg) .airport, .is-multi-city .travelers { grid-column: auto; }
.is-multi-city :is(.date-trigger,.multi-city-leg > .field:has(input[type=date]),#search-button) { grid-column: 1 / -1; }
.is-multi-city :is(.swap,.date-trigger:disabled) { display: none; }
.is-multi-city .airport .airport-code { inset: 7px 7px auto auto; font-size: 10px; }
.is-multi-city .airport .airport-code:empty { display: none; }
.is-multi-city .airport .airport-input { padding-right: 0; }
.is-multi-city .airport-options { min-width: min(215px, 42vw); }
.is-multi-city .airport + .airport .airport-options { left: auto; width: max(100%, min(215px, 42vw)); }
.search-area { container-type: inline-size; }
@container (min-width: 390px) {
  .is-multi-city .fields, .multi-city-leg, .is-multi-city .search-actions { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .is-multi-city :is(.date-trigger,.multi-city-leg > .field:has(input[type=date]),#search-button) { grid-column: auto; }
}
.trip-type label { display: grid; place-items: center; position: relative; min-height: 30px; border-radius: 5px; color: var(--muted); font-size: 12px; }
.trip-type input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.trip-type label:has(input:checked) { background: #ededed; color: var(--text); font-weight: 700; }
.trip-type label:has(input:focus-visible) { outline: 2px solid var(--action); outline-offset: 2px; }
.fields { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.airport, .travelers { grid-column: 1 / -1; }
.field { display: grid; gap: 2px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); padding: 8px 9px; }
.field span { color: var(--muted); font-size: 11px; }
.field input, .field select { width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--text); font-size: 13px; font-weight: 600; }
.field select option { background: var(--surface); }
.field:has(:disabled) { opacity: .45; }
.swap { position: absolute; top: 40px; right: 8px; width: 30px; height: 30px; z-index: 1; transform: rotate(90deg); border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--text); }
.search-actions { display: grid; gap: 10px; margin-top: 7px; }
.is-multi-city .search-actions { margin-top: 12px; align-items: stretch; }
.primary, #map-flight-details { min-height: 40px; padding: 0 13px; border: 1px solid transparent; border-radius: 8px; background: var(--action); color: #fff; font-weight: 700; }
.primary:hover { background: #194893; }
.swap:hover { background: #ededed; }
.search-area .primary { background: var(--action); color: #fff; }
.search-area .primary:hover { background: #194893; }
#search-button { width: 100%; }
#edit-search { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 6px; border: 0; border-radius: 6px; background: #fff; color: var(--text); font-size: 12px; font-weight: 700; white-space: nowrap; }
#edit-search:hover { background: #eee; }
#edit-search span { font-size: 17px; }
.search-status { margin: 8px 0 0; color: var(--text); font-size: 12px; }
.search-status:empty { display: none; }
.search-fields { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.skeleton { min-height: 10px; border-radius: 5px; background: #e6e6e6; animation: skeleton-pulse 1.2s ease-in-out infinite alternate; }
.skeleton-field { min-height: 44px; border-radius: 8px; }
.airport-loading { display: grid; gap: 8px; font-size: 12px; color: var(--muted); }
.results-loading p { margin: 0; padding: 12px 2px; color: var(--muted); font-size: 12px; }
.results-loading .flight-preview { min-height: 106px; }
.results-loading .card-fare { justify-items: stretch; gap: 10px; padding-inline: 12px; }
.skeleton-time { width: 42%; min-height: 17px; }
.skeleton-airline { width: 64%; }
.map-loading { position: absolute; inset: auto auto 12px 12px; display: flex; gap: 6px; align-items: center; padding: 6px 9px; border-radius: 6px; background: #222; color: #fff; font-size: 12px; pointer-events: none; }
.map-loading .skeleton { width: 10px; background: #888; }
@keyframes skeleton-pulse { to { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
.recent-searches { padding: 16px 22px 20px; }
.recent-searches h2 { margin: 0 0 8px; font-size: 14px; }
.recent-searches ul { display: grid; gap: 5px; list-style: none; margin: 0; padding: 0; }
.recent-searches button { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--text); text-align: left; }
.recent-searches button:hover { border-color: #999; }
.recent-route { font-weight: 700; font-size: 13px; }
.recent-details { color: var(--muted); font-size: 12px; }
.map-explorer { margin-top: 14px; }
.map-explorer summary { width: fit-content; border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; background: var(--surface); font-size: 12px; font-weight: 700; cursor: pointer; }
.explore-form, .explore-form fieldset { display: grid; gap: 8px; }
.explore-form { margin-top: 10px; }
.explore-form fieldset { border: 1px solid var(--line); border-radius: 6px; }
.explore-form label { display: grid; gap: 4px; font-size: 12px; }
.explore-form :is(input,select) { width: 100%; min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); }
.explore-results { padding: 12px 22px; }
.explore-results p { color: var(--muted); font-size: 12px; }
.explore-results ol { margin: 0; padding: 0; list-style: none; }
.explore-results li { display: grid; gap: 3px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.visa-filter { display: grid; gap: 4px; margin: 8px 0; font-size: 12px; font-weight: 600; }
.visa-filter select { padding: 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); }
.visa-key { display: inline-flex; align-items: center; gap: 4px; margin: 0 8px 3px 0; }
.visa-key::before { content: ""; width: 8px; height: 8px; border: 1px solid #777; border-radius: 50%; background: var(--visa-color); }
.embedded .map-explorer, .embedded .explore-results { display: none; }

.results { padding: 0 14px 14px; }
.results-header { padding: 16px 2px 10px; }
.results-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.results h2 { font: 700 22px/1.15 "DM Sans", sans-serif; margin: 6px 0 5px; }
.results h2 span { color: var(--action); }
#trip-summary { color: var(--muted); margin: 0; font-size: 11px; }
.fare-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin-top: 12px; padding: 5px; border: 1px solid #d9e4f2; border-radius: 12px; background: #edf4ff; }
.fare-filters label { display: grid; gap: 2px; min-width: 0; padding: 6px 9px; border: 1px solid #d9e4f2; border-radius: 8px; background: #fff; color: var(--muted); font-size: 11px; font-weight: 600; }
.fare-filters label:has(select:focus-visible) { outline: 2px solid var(--action); }
.fare-filters select { width: 100%; min-width: 0; padding: 2px 0; border: 0; background: #fff; color: var(--text); font-size: 13px; font-weight: 700; }
.fare-sort { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.fare-sort button { min-height: 32px; border: 0; border-radius: 5px; background: #fff; color: var(--text); font-weight: 600; }
.fare-sort [aria-pressed=true] { background: var(--action); color: #fff; }
.cards { display: grid; gap: 9px; }
.flight { display: grid; grid-template-columns: minmax(0,1fr) fit-content(46%); border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.flight[data-preview="true"] { border-color: #194893; }
.flight-preview { display: grid; align-content: center; gap: 10px; min-width: 0; padding: 12px; background: transparent; color: inherit; border: 0; border-radius: 9px; text-align: left; }
.card-departure { display: flex; align-items: baseline; gap: 6px; }
.departure-time, .price { font: 700 21px/1 "DM Sans", sans-serif; }
.departure-label, .card-airline, .fare-duration { color: var(--muted); font-size: 11px; }
.carrier { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--action); color: #fff; font-size: 10px; font-weight: 850; }
.flight-path { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: 6px; }
.flight-path strong { font-size: 12px; }
.connector { position: relative; margin-top: 7px; min-height: 1px; padding-top: 4px; border-top: 1px solid #888; color: #555; font-size: 10px; text-align: center; }
.connector::after { position: absolute; content: ""; right: 0; top: -3px; width: 5px; height: 5px; border-top: 1px solid #777; border-right: 1px solid #777; transform: rotate(45deg); }
.connector:not(:empty)::before { position: absolute; content: ""; left: 50%; top: -3px; width: 5px; height: 5px; border-radius: 50%; background: #555; }
.card-fare { display: grid; min-width: 0; align-content: center; justify-items: center; gap: 4px; margin-block: 10px; padding: 3px 10px; border-left: 1px solid var(--line); text-align: center; }
.fare-stops { font-size: 12px; font-weight: 700; }
.card-fare .price { min-width: 0; max-width: 100%; margin-block: 3px; font-size: 19px; line-height: 1.15; overflow-wrap: anywhere; }
.flight-details { min-height: 30px; padding: 0 12px; border: 0; border-radius: 6px; background: var(--action); color: #fff; font-size: 12px; font-weight: 700; }
.flight-details:hover { background: #194893; }
.results-footer { display: none; }

.map-panel { grid-area: 1 / 2; position: relative; min-height: 0; overflow: hidden; background: var(--map); }
.map-source { position: absolute; bottom: 4px; right: 6px; padding: 3px 5px; border-radius: 4px; background: #ffffffe6; color: var(--text); font-size: 10px; }
.map-zoom { position: absolute; top: 14px; right: 14px; display: grid; border: 1px solid #d9e4f2; border-radius: 22px; background: #fff; box-shadow: 0 2px 8px #142b4a26; }
.map-zoom button { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 20px 20px 0 0; background: transparent; color: var(--text); font-size: 20px; }
.map-zoom button + button { border-top: 1px solid #e8eff8; border-radius: 0 0 20px 20px; }
.map-zoom button:hover { background: #edf4ff; color: var(--action); }
.map-panel .map-zoom button:focus-visible { outline: 2px solid var(--action); outline-offset: -3px; }
.map-panel :is(button,a):focus-visible { outline-color: #fff; }
#map, #google-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-marker-label { padding: 2px 5px; border-radius: 5px; background: #fff; box-shadow: 0 1px 4px #142b4a33; }
#map { display: block; touch-action: none; cursor: grab; }
#map:active { cursor: grabbing; }
.map-distance { position: absolute; left: 12px; bottom: 12px; padding: 6px 9px; border: 1px solid #d9e4f2; border-radius: 7px; background: #fff; color: var(--text); box-shadow: 0 2px 8px #142b4a26; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; pointer-events: none; }
.map-distance-follow { left: var(--distance-x); top: var(--distance-y); bottom: auto; z-index: 1; }
.map-airport { position: absolute; top: 14px; right: 60px; z-index: 2; width: min(220px,calc(100% - 72px)); padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); box-shadow: 0 6px 20px #142b4a33; }
.map-airport.map-airport-visa { position: fixed; top: 16px; right: 16px; z-index: 3; width: min(360px,calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
.map-airport h2 { margin: 0 23px 6px 0; font-size: 14px; }
.map-airport p { margin: 0; font-size: 12px; }
.map-airport a { display: inline-block; margin: 4px 0; font-size: 12px; }
.map-airport button, .visa-details-button { border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); padding: 6px 8px; font-size: 12px; }
.map-airport button:hover, .visa-details-button:hover { background: #eee; }
.visa-details-button { justify-self: start; text-align: left; }
.map-airport :is(button,a):focus-visible { outline-color: var(--text); }
#map-visa-details { border-top: 1px solid var(--line); margin: 10px 0; padding-top: 8px; }
#map-visa-details h3 { margin: 0 0 4px; font-size: 14px; }
#map-visa-details ul { display: grid; gap: 6px; padding-left: 18px; margin: 8px 0; font-size: 12px; line-height: 1.45; }
.map-airport-close { position: absolute; top: 5px; right: 5px; }
#map-airport-actions { display: grid; gap: 4px; }
.map-flight { position: absolute; right: 14px; bottom: 27px; width: min(244px, calc(100% - 28px)); padding: 13px; border: 1px solid #d9e4f2; border-radius: 13px; background: #fff; color: var(--text); box-shadow: 0 4px 14px #142b4a26; }
.map-flight-heading { display: flex; align-items: center; gap: 8px; }
.map-flight h2 { margin: 0; font: 700 21px/1 var(--display); }
.map-flight p { margin: 4px 0 0; color: #455c79; font-size: 11px; }
.map-flight .map-flight-meta { margin: 8px 0; color: var(--text); }
#map-flight-details { width: 100%; min-height: 34px; background: var(--action); color: #fff; }
#map-flight-details:hover { background: #194893; }

dialog { width: min(400px, calc(100% - 24px)); padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); color: var(--text); }
dialog::backdrop { background: #142b4aaa; }
dialog h2 { margin: 0 30px 8px 0; font-size: 18px; }
dialog p { white-space: pre-line; color: var(--muted); line-height: 1.5; }
.filter-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}
#open-filters { margin-top: 8px; }
#flight-filters {
  inset: 0 auto 0 0;
  margin: 0;
  width: min(360px, 100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  border: 0;
  border-radius: 0 14px 14px 0;
  box-shadow: 8px 0 36px #142b4a25;
}
#flight-filters[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  animation: filters-slide-in 180ms ease-out;
}
.filter-header, .filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
}
.filter-header { border-bottom: 1px solid var(--line); }
.filter-header h2 { margin: 0; font-size: 21px; }
.filter-content { overflow: auto; padding: 20px; }
#flight-filters .fare-filters { grid-template-columns: minmax(0, 1fr); margin: 0; }
.filter-footer { border-top: 1px solid var(--line); }
@keyframes filters-slide-in { from { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  #flight-filters[open] { animation: none; }
}
.close { position: absolute; top: 8px; right: 8px; border: 0; background: transparent; color: var(--text); font-size: 22px; }
#booking {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 4;
  width: min(440px,100%);
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  box-shadow: -8px 0 24px #142b4a33;
  font-family: "DM Sans", sans-serif;
  overscroll-behavior: contain;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}
#booking[open] { display: flex; flex-direction: column; animation: booking-enter 180ms ease-out; }
#booking.booking-expanded { width: calc(100% - var(--sidebar-width) - 10vw); }
@media (prefers-reduced-motion: no-preference) { #booking { transition: width 220ms ease-out; } }
@media (max-width: 720px) { #booking.booking-expanded { width: 100%; } }
.embedded #booking.booking-expanded { width: 100%; }
@keyframes booking-enter { from { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { #booking[open] { animation: none; } }
.booking-header { position: sticky; top: 0; z-index: 1; padding: 17px 46px; background: #fff; text-align: center; }
.booking-header h2 { margin: 0; font-size: 20px; }
.booking-header .close { left: 14px; right: auto; top: 11px; font-size: 26px; }
#booking-detail { padding: 0 16px; }
.itinerary + .itinerary { margin-top: 15px; }
.itinerary-summary { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.itinerary-summary h3 { margin: 0; font-size: clamp(17px,4vw,22px); }
.itinerary-date, .itinerary-meta, .itinerary-airline { color: var(--muted); font-size: 12px; }
.itinerary-timeline { list-style: none; margin: 12px 0 0; padding: 0; }
.itinerary-timeline li { display: grid; grid-template-columns: 54px 1fr; position: relative; gap: 2px 14px; padding: 9px 0 10px 12px; margin-left: 6px; }
.itinerary-timeline li:not(:last-child) { border-left: 1px solid #bbb; }
.itinerary-timeline li::before { content: ""; position: absolute; left: -4px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: #555; }
.itinerary-time { font-size: 12px; font-weight: 700; }
.itinerary-airport { display: grid; gap: 2px; }
.itinerary-city { font-weight: 700; }
.itinerary-airline { grid-column: 2; }
#booking:not(.booking-expanded) .booking-actions { margin-top: auto; }
.booking-actions { padding: 10px 16px 16px; background: #fff; }
#booking[open] > * { flex-shrink: 0; }
#booking[data-checkout-step] .booking-actions { position: sticky; bottom: 0; z-index: 2; border-top: 1px solid var(--line); }
#checkout-navigation { display: grid; gap: 8px; }
#checkout-navigation-total { font-weight: 700; }
#checkout-next { width: 100%; min-height: 44px; }
#booking[data-checkout-step] :is(#continue-travelers,#continue-seats,#continue-meals,#confirm-reservation) { display: none; }
.passport-document-fields { display: grid; gap: 10px; }
.booking-actions:not(:has(:is(button,div):not([hidden]),p:not(:empty))) { display: none; }
.traveler-form { display: grid; gap: 12px; padding: 0 16px 16px; }
.traveler-form h3, .traveler-form p { margin: 0; }
.traveler-form p { font-size: 12px; }
.traveler-form :is(#uat-seats,#uat-meals):not([hidden]) {
  display: grid; gap: 8px; padding: 12px; min-width: 0;
  border: 1px solid var(--line); border-radius: 10px;
}
.traveler-form :is(#load-seats,#load-meals,#back-to-seats) {
  justify-self: start; padding: 8px 12px; border: 1px solid var(--line);
  border-radius: 6px; background: #fff; color: var(--text); font: inherit;
}
.traveler-form :is(#seat-status,#meal-status):empty { display: none; }
.traveler-form :is(#seat-choices,#meal-choices) { display: grid; gap: 8px; }
.seat-cabin { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.seat-cabin legend { font-weight: 600; font-size: 12px; }
.seat-grid { display: grid; grid-template-columns: repeat(var(--seat-columns), minmax(30px, 1fr)); gap: 4px; max-height: 320px; overflow: auto; padding: 3px; }
.seat-grid button, #continue-seats { min-height: 34px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); font-weight: 600; }
.seat-loading .skeleton { min-height: 34px; border-radius: 6px; }
.seat-grid button { padding: 0 2px; font-size: 11px; }
.seat-grid button:disabled { cursor: default; background: #eee; }
.seat-grid button[aria-pressed=true] { background: var(--action); color: #fff; }
#continue-seats { justify-self: start; padding: 0 10px; }
.traveler-form :is(#seat-choices,#meal-choices) label { display: grid; gap: 4px; font-size: 12px; }
.traveler-form :is(#seat-choices,#meal-choices) select {
  min-width: 0; width: 100%; min-height: 38px; padding: 6px 8px;
  border: 1px solid #999; border-radius: 6px; background: #fff; color: var(--text); font: inherit;
}
#traveler-fields { display: grid; gap: 12px; }
.traveler-fields { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 10px; }
.traveler-fields legend { padding: 0 5px; font-weight: 700; }
.traveler-fields label { display: grid; gap: 4px; min-width: 0; font-size: 12px; font-weight: 600; }
.traveler-fields :is(input,select) { min-width: 0; width: 100%; min-height: 38px; padding: 6px 8px; border: 1px solid #999; border-radius: 6px; background: #fff; color: var(--text); font: inherit; }
.traveler-passport { border-top: 1px solid var(--line); padding-top: 10px; }
.traveler-passport { display: grid; gap: 10px; }
#checkout-step { color: var(--muted); }
#checkout-review { display: grid; gap: 12px; }
.traveler-form :is(#back-to-travelers,#continue-seats,#back-to-meals,#check-checkout-session) {
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); padding: 10px 12px; font: inherit; cursor: pointer;
}
.traveler-passport h4 { margin: 0 0 8px; font-size: 13px; }
.traveler-passport label small { color: var(--muted); font-size: inherit; font-weight: 400; }
.traveler-names { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit,minmax(min(100%,105px),1fr)); }
.reservation-summary { margin: 0 16px 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.reservation-summary h3 { margin: 0 0 10px; font-size: 17px; }
.reservation-summary dl { margin: 0; }
.reservation-summary dl div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; }
.reservation-summary dl div:last-child { margin-top: 4px; border-top: 1px solid var(--line); font-weight: 700; }
.reservation-summary dd { margin: 0; }
.reservation-summary p { margin: 6px 0 0; font-size: 12px; }
.saved-traveler-name { color: var(--text); font-weight: 700; }
@media (min-width: 1150px) {
  #booking[open].booking-expanded:has(.reservation-summary:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(180px,34%);
    grid-template-rows: auto minmax(0,1fr) auto;
  }
  .booking-expanded :is(.booking-header,.booking-actions) { grid-column: 1 / -1; }
  .booking-expanded .booking-actions { grid-row: 3; }
  .booking-expanded .traveler-form { grid-area: 2 / 1; align-self: stretch; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; }
  .booking-expanded .booking-review { grid-area: 2 / 2; min-height: 0; overflow-y: auto; }
  .booking-expanded:has(.traveler-form[hidden]) .booking-review { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) minmax(180px,34%); align-items: start; }
  .booking-expanded:has(.traveler-form[hidden]) .reservation-summary { grid-column: 2; grid-row: 1; }
  .booking-expanded:has(.traveler-form[hidden]) #saved-travelers { grid-row: 2; }
  .booking-expanded:has(.traveler-form[hidden]) #booking-detail { grid-column: 1; grid-row: 1 / span 2; }
}
#booking-status { margin: 0 0 8px; }
#booking-status:empty { display: none; }
#reserve { width: 100%; min-height: 44px; }

@media (max-width: 720px) {
  .explorer { grid-template-columns: 1fr; grid-template-rows: 34% minmax(0, 1fr); }
  .map-panel { grid-area: 1 / 1; }
  .flight-panel { grid-area: 2 / 1; }
  .topbar { padding-block: 9px; }
  .site-header { margin-bottom: 10px; }
  .fields { column-gap: 20px; }
  .field { padding-block: 6px; }
  .airport { grid-column: auto; }
  .swap { top: 14px; right: auto; left: 50%; width: 25px; height: 25px; transform: translateX(-50%); }
  .map-flight { right: 9px; bottom: 24px; width: 154px; padding: 8px; }
  .map-zoom { left: 8px; right: auto; top: 8px; }
  .map-flight h2 { font-size: 18px; }
  .map-flight-meta { display: none; }
  #map-flight-details { margin-top: 5px; }
}
.embedded body { display: block; background: transparent; }
.embedded .explorer { display: block; overflow: auto; }
.embedded .map-panel { display: none; }
.embedded .flight-panel { overflow: visible; }
.embedded dialog { max-height: calc(100% - 14px); padding: 12px; }
.embedded dialog h2 { font-size: 16px; }
.embedded dialog p { font-size: 12px; margin: 6px 0; }

.search-area, #travel-calendar { font-family: "DM Sans", "Segoe UI", sans-serif; }
.search-area .field {
  min-height: 52px;
  border-color: #d7d7d7;
  padding: 7px 11px;
}
.search-area .field > label, .search-area .field > span {
  color: #555;
  font-size: 12px;
  font-weight: 600;
}
.search-area .field :is(input, select, strong) { font-size: 14px; font-weight: 700; }
.airport:focus-within { z-index: 2; border-color: var(--action); box-shadow: 0 0 0 1px var(--action); }
.airport { position: relative; }
.airport .airport-input { padding-right: 40px; outline: none; }
.airport .airport-code {
  position: absolute;
  right: 39px;
  bottom: 7px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #eee;
  pointer-events: none;
}
.airport-options {
  position: absolute;
  z-index: 3;
  top: calc(100% + 5px);
  inset-inline: -1px;
  max-height: 180px;
  overflow: auto;
  border: 1px solid #d7d7d7;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px #142b4a22;
}
.airport-option { display: flex; align-items: center; gap: 9px; padding: 8px 10px; cursor: pointer; }
.airport-option:hover, .airport-option[aria-selected=true] { background: #eee; }
.airport-option-title { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; }
.airport-option-title small { display: block; color: #555; font-size: 11px; font-weight: 500; }
.airport-option .airport-option-icon { color: var(--action); font-size: 15px; }
.brand-icon, .airport-option-icon { font-variant-emoji: text; }
.airport-option .airport-option-code { color: #555; font-size: 11px; font-weight: 700; }
.airport-empty { padding: 12px; color: #555; }
.date-trigger { text-align: left; }
.date-trigger:disabled { cursor: default; }
.date-trigger:hover:enabled { border-color: var(--action); }
#travel-calendar { width: min(628px, calc(100% - 24px)); background: #fff; color: var(--text); }
#travel-calendar::backdrop { background: #142b4a66; }
.calendar-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calendar-header h2 { margin: 0; font-size: 18px; }
.calendar-nav, .calendar-footer button {
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font-weight: 700;
}
.calendar-nav { width: 38px; height: 38px; font-size: 24px; }
.calendar-nav:disabled, .calendar-day:disabled { cursor: default; }
.calendar-months { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.calendar-month h3 { text-align: center; font-size: 15px; margin: 13px 0 8px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 2px 0; }
.calendar-weekday { text-align: center; color: #555; font-size: 11px; padding-bottom: 6px; }
.calendar-day { min-height: 35px; padding: 0; border: 0; background: #fff; color: inherit; font-weight: 600; }
.calendar-day.in-range { background: #eee; }
.calendar-day[aria-pressed=true]:enabled { border-radius: 8px; background: var(--action); color: #fff; }
.calendar-day[aria-pressed=true]:focus-visible { outline-offset: -3px; outline-color: #fff; }
.calendar-day:hover:enabled:not([aria-pressed=true]), .calendar-nav:hover:enabled, .calendar-footer button:hover { background: #eee; }
.calendar-day:disabled { color: #777; opacity: .65; }
.calendar-footer { display: flex; justify-content: flex-end; border-top: 1px solid #d7d7d7; margin-top: 12px; padding-top: 10px; }
.calendar-footer button { padding: 7px 14px; }

@media (max-width: 720px) {
  .airport .airport-code { right: 8px; }
  .airport-options { min-width: min(226px, calc(100vw - 44px)); }
  .airport:has(#to) .airport-options { inset-inline: auto -1px; }
}
@media (max-width: 600px) {
  #travel-calendar { width: min(360px, calc(100% - 24px)); }
  .calendar-months { grid-template-columns: 1fr; }
}
