:root {
  color-scheme: light;
  --paper: #f4eee1;
  --paper-light: #fbf8ef;
  --ink: #433d32;
  --muted: #87806e;
  --copper: #b55e34;
  --copper-light: #d6a16f;
  --sage: #77835e;
  --sage-light: #a6ad8c;
  --line: rgba(112, 101, 76, .2);
  --shadow: 0 14px 36px rgba(65, 52, 31, .11);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 16% 9%, rgba(211, 185, 133, .19), transparent 33%),
    radial-gradient(ellipse at 91% 28%, rgba(139, 153, 111, .12), transparent 32%),
    repeating-linear-gradient(0deg, rgba(131, 106, 61, .018) 0, rgba(131, 106, 61, .018) 1px, transparent 1px, transparent 5px);
  min-height: 100vh;
}
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, svg:focus-visible { outline: 3px solid rgba(181, 94, 52, .45); outline-offset: 3px; }
.page-shell { width: min(1440px, 100%); margin: 0 auto; padding: 26px clamp(16px, 3.5vw, 52px) 24px; }
.page-header { display: flex; align-items: center; gap: 20px; position: relative; padding: 12px 0 20px; border-bottom: 1px solid var(--line); }
.header-mark { display: grid; place-items: center; width: 62px; height: 62px; flex: 0 0 62px; border: 1px solid rgba(181,94,52,.36); border-radius: 50%; background: rgba(250,246,235,.66); box-shadow: inset 0 0 0 5px rgba(181,94,52,.055); }
.header-mark svg { width: 39px; height: 39px; fill: none; stroke: var(--copper); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.heading-copy { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 5px; color: var(--sage); font-family: Georgia, "Noto Serif SC", serif; font-size: 12px; letter-spacing: .18em; }
.eyebrow-rule { display: inline-block; width: 23px; height: 1px; background: var(--sage); }
h1 { margin: 0; color: #433b30; font-family: "Noto Serif SC", "Songti SC", STSong, serif; font-size: clamp(25px, 3.4vw, 42px); line-height: 1.24; font-weight: 700; letter-spacing: .035em; }
.subtitle { margin: 7px 0 0; color: var(--muted); font-family: "Noto Serif SC", "Songti SC", STSong, serif; font-size: 14px; letter-spacing: .06em; }
.original-button { margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid rgba(119,131,94,.38); border-radius: 999px; background: rgba(251,248,239,.6); color: #67704f; cursor: pointer; transition: background .2s, transform .2s; }
.original-button:hover { background: #fbf8ef; transform: translateY(-1px); }
.original-icon { font-size: 17px; line-height: 1; }
.product-card { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(230px, .9fr) minmax(320px, 1.6fr); align-items: center; gap: 12px 20px; margin: 13px 0 2px; padding: 13px 17px; border: 1px solid rgba(132,111,75,.26); border-left: 4px solid var(--sage); border-radius: 9px; background: rgba(250,247,237,.78); box-shadow: 0 5px 18px rgba(65,52,31,.06); }
.product-card[hidden] { display: none; }
.product-ident { display: flex; align-items: center; gap: 11px; min-width: 0; }
.product-seal { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 39px; border: 1px solid rgba(181,94,52,.32); border-radius: 50%; color: var(--copper); background: rgba(214,161,111,.1); font-family: "Noto Serif SC", "Songti SC", serif; font-size: 17px; }
.product-eyebrow { margin: 0 0 2px; color: var(--sage); font-size: 10px; letter-spacing: .12em; }
.product-ident h2 { margin: 0; color: #504839; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 17px; line-height: 1.35; font-weight: 650; }
.product-window { display: grid; gap: 5px; padding-left: 17px; border-left: 1px solid var(--line); }
.product-label { margin: 0; color: var(--muted); font-size: 10px; letter-spacing: .07em; }
.product-window strong { color: #5e704f; font-family: Georgia, "Noto Serif SC", serif; font-size: 15px; font-weight: 600; white-space: nowrap; }
.blackout-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0 0; padding: 0; list-style: none; }
.blackout-list li { padding: 5px 7px; border: 1px solid rgba(181,94,52,.22); border-radius: 999px; color: #87573c; background: rgba(181,94,52,.055); font-size: 10px; white-space: nowrap; }
.product-date-note { grid-column: 1 / -1; margin: 0; padding-top: 8px; border-top: 1px dashed rgba(132,111,75,.2); color: #9a917e; font-size: 10px; line-height: 1.5; }
.stats-strip { display: flex; align-items: center; gap: clamp(12px, 3vw, 42px); padding: 17px 2px 20px; color: var(--muted); }
.stat-item { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.stat-item strong { color: var(--copper); font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(21px, 2.7vw, 32px); font-weight: 600; letter-spacing: .025em; }
.stat-item span { font-size: 13px; }
.stats-strip > i { display: block; width: 1px; height: 23px; background: rgba(126,111,81,.25); }
.stat-merged strong { color: var(--sage); }
.map-layout { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(270px, .72fr); align-items: start; gap: clamp(18px, 2.5vw, 34px); }
.map-column { min-width: 0; }
.map-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 0 0 10px; }
.search-wrap { position: relative; flex: 1 1 320px; max-width: 480px; z-index: 5; }
.search-glyph { position: absolute; left: 14px; top: 50%; transform: translateY(-53%); font-size: 25px; color: var(--sage); pointer-events: none; }
#citySearch { width: 100%; height: 43px; padding: 0 15px 0 44px; border: 1px solid rgba(121,111,85,.24); border-radius: 7px; color: var(--ink); background: rgba(252,249,241,.83); box-shadow: inset 0 1px 3px rgba(81,68,42,.04); }
#citySearch::placeholder { color: #aaa18d; }
.search-results { position: absolute; top: calc(100% + 5px); left: 0; right: 0; padding: 5px; border: 1px solid rgba(121,111,85,.22); border-radius: 8px; background: #fcf9f1; box-shadow: var(--shadow); max-height: 280px; overflow: auto; }
.search-results[hidden] { display: none; }
.search-result { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; border: 0; border-radius: 5px; background: transparent; text-align: left; cursor: pointer; }
.search-result:hover, .search-result:focus-visible { background: #ecead9; }
.search-result small { color: var(--muted); font-size: 11px; }
.map-tools { display: flex; align-items: center; gap: 5px; padding: 4px; border: 1px solid rgba(121,111,85,.22); border-radius: 7px; background: rgba(252,249,241,.76); white-space: nowrap; }
.tool-button { min-width: 31px; min-height: 30px; padding: 2px 7px; border: 0; border-radius: 5px; background: transparent; color: #696653; font-size: 19px; line-height: 1; cursor: pointer; }
.tool-button:hover { background: #e9e7d9; color: var(--copper); }
.zoom-value { min-width: 39px; text-align: center; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.tool-divider { width: 1px; height: 20px; margin: 0 2px; background: var(--line); }
.reset-button { font-size: 11px; }
.map-frame { position: relative; overflow: hidden; border: 1px solid rgba(132,111,75,.27); border-radius: 12px; background: #e7ebdf; box-shadow: 0 6px 20px rgba(70,57,35,.08), inset 0 0 0 4px rgba(251,248,239,.58); }
#routeMap { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; touch-action: none; cursor: grab; user-select: none; }
#routeMap.is-dragging { cursor: grabbing; }
.map-water { fill: #e1e9df; }
.paper-grain { fill: url(#paperGrain); pointer-events: none; }
.graticule { fill: none; stroke: #9aa189; stroke-width: .7; stroke-dasharray: 2 7; opacity: .28; vector-effect: non-scaling-stroke; }
.country-shape { fill: #e9e7d7; stroke: #a8a68f; stroke-width: 1.05; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.country-shape:nth-child(3n) { fill: #e5e8d8; }
.country-shape.china { fill: #f0ebd8; stroke: #b99465; stroke-width: 1.8; }
.place-label { fill: #8c896f; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 14px; letter-spacing: 2px; opacity: .72; pointer-events: none; }
.place-label.water-label { fill: #738b82; font-style: italic; font-size: 13px; }
.route-line { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: opacity .25s, stroke-width .25s; }
.route-line.copper { stroke: #b55e34; }
.route-line.sage { stroke: #77835e; }
.route-line.is-muted { opacity: .055; stroke-width: .65; }
.route-line.is-soft { opacity: .19; stroke-width: .9; }
.route-line.is-active { opacity: .88; stroke-width: 1.75; }
.route-line.is-destination-focus { opacity: 1; stroke-width: 2.7; }
.waypoint { cursor: pointer; outline: none; }
.waypoint .hit-area { fill: transparent; pointer-events: all; }
.waypoint .halo { fill: #fbf7e9; stroke: #b55e34; stroke-width: 1.25; vector-effect: non-scaling-stroke; transition: r .2s, stroke-width .2s; }
.waypoint .dot { fill: #b55e34; stroke: #fbf7e9; stroke-width: 1; vector-effect: non-scaling-stroke; }
.waypoint.is-hub .halo, .waypoint.is-selected .halo { stroke: #a64f2c; stroke-width: 2; }
.waypoint.is-hub .dot { fill: #a64f2c; }
.waypoint.is-selected .halo { fill: #dca06d; stroke: #8b643f; }
.waypoint.is-route-target .halo { fill: #e3e8d3; stroke: #77835e; stroke-width: 2.5; }
.waypoint.is-route-target .dot { fill: #77835e; }
.waypoint:hover .halo, .waypoint:focus-visible .halo { r: 11px; stroke-width: 2.6; }
.waypoint-label { fill: #494234; font-family: "Noto Sans SC", "PingFang SC", sans-serif; font-size: 11px; font-weight: 600; paint-order: stroke; stroke: rgba(248,244,232,.95); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.waypoint-label.selected-label { fill: #a34f2f; font-size: 13px; stroke-width: 5px; }
.map-compass path { fill: #77835e; stroke: #65724f; stroke-width: .7; }
.map-compass text { fill: #68724f; font: 10px Georgia, serif; }
.map-status { position: absolute; top: 14px; left: 16px; padding: 6px 9px; border: 1px solid rgba(122,115,92,.17); border-radius: 99px; color: #716f5e; background: rgba(250,247,237,.77); font-size: 11px; backdrop-filter: blur(5px); pointer-events: none; }
.map-legend { position: absolute; right: 14px; bottom: 13px; display: flex; gap: 13px; padding: 7px 9px; border: 1px solid rgba(122,115,92,.16); border-radius: 6px; color: #696653; background: rgba(250,247,237,.8); font-size: 10px; backdrop-filter: blur(5px); pointer-events: none; }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-line { width: 19px; height: 2px; border-radius: 2px; background: var(--copper); transform: rotate(-18deg); }
.legend-dot { width: 7px; height: 7px; border: 1px solid #fbf7e9; border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 1px var(--copper); }
.map-caption { display: flex; align-items: center; gap: 7px; margin: 9px 2px 0; color: #87806e; font-size: 11px; }
.caption-mark { color: var(--copper); }
.detail-panel { position: sticky; top: 18px; min-height: 445px; max-height: calc(100vh - 24px); overflow: auto; padding: 25px 23px 22px; border: 1px solid rgba(132,111,75,.26); border-radius: 10px; background: rgba(250,247,237,.79); box-shadow: var(--shadow); }
.detail-panel::before { content: ""; position: absolute; left: 17px; right: 17px; top: 11px; border-top: 1px solid rgba(181,94,52,.18); }
.detail-close { position: absolute; z-index: 1; right: 13px; top: 13px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--muted); background: transparent; font-size: 26px; cursor: pointer; }
.detail-close:hover { color: var(--copper); background: rgba(181,94,52,.08); }
.detail-empty { padding: 35px 5px 15px; text-align: center; }
.detail-sun { display: grid; place-items: center; width: 56px; height: 56px; margin: 5px auto 15px; border: 1px solid rgba(181,94,52,.3); border-radius: 50%; color: var(--copper); font-size: 26px; background: radial-gradient(circle, rgba(214,161,111,.22), transparent 70%); }
.detail-kicker { margin: 0; color: var(--sage); font-size: 11px; letter-spacing: .22em; }
.detail-empty h2 { margin: 11px 0 9px; color: #504839; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 24px; font-weight: 600; }
.empty-copy { max-width: 250px; margin: 0 auto; color: #89816f; font-size: 13px; line-height: 1.85; }
.empty-route { position: relative; display: flex; align-items: center; justify-content: space-between; width: 158px; margin: 30px auto 22px; }
.empty-route::before { content: ""; position: absolute; left: 12px; right: 12px; border-top: 1px dashed rgba(181,94,52,.63); transform: rotate(-7deg); }
.empty-route span { position: relative; width: 10px; height: 10px; border: 2px solid var(--paper-light); border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 1px rgba(181,94,52,.5); }
.empty-route span:nth-child(2) { width: 13px; height: 13px; background: var(--sage); }
.empty-footnote { color: #a39a85; font-size: 11px; }
.detail-content { padding-top: 18px; }
.detail-topline { color: var(--sage); font-size: 11px; letter-spacing: .17em; }
.city-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 8px 0 17px; }
.city-title { margin: 0; color: #453d31; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 31px; line-height: 1.25; font-weight: 650; }
.node-badge { margin-top: 3px; padding: 5px 8px; border: 1px solid rgba(119,131,94,.28); border-radius: 99px; color: #697451; background: rgba(223,228,205,.5); font-size: 10px; white-space: nowrap; }
.node-summary { display: flex; gap: 9px; margin: 0 0 19px; }
.summary-chip { flex: 1; padding: 10px 11px; border-left: 2px solid var(--copper-light); background: rgba(235,229,211,.47); }
.summary-chip:nth-child(2) { border-color: var(--sage-light); }
.summary-chip strong { display: block; color: var(--ink); font-family: Georgia, serif; font-size: 20px; font-weight: 500; }
.summary-chip span { color: var(--muted); font-size: 10px; }
.route-section { margin: 20px 0 0; }
.route-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.route-section-heading h3 { margin: 0; color: #5b503f; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 16px; font-weight: 600; }
.route-section-heading span { color: #9b927f; font-size: 10px; }
.route-chip-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.route-chip { padding: 6px 9px; border: 1px solid rgba(181,94,52,.24); border-radius: 5px; color: #77513a; background: rgba(249,243,229,.72); font-size: 11px; cursor: pointer; transition: background .16s, border-color .16s; }
.route-chip:hover { border-color: rgba(181,94,52,.55); background: #f0e2ca; }
.route-section.inbound .route-chip { border-color: rgba(119,131,94,.27); color: #606b4b; }
.route-section.inbound .route-chip:hover { border-color: rgba(119,131,94,.55); background: #e7e9d9; }
.no-routes { margin: 10px 0 0; color: #9c947f; font-size: 12px; }
.panel-note { margin: 22px 0 0; padding-top: 11px; border-top: 1px dashed rgba(132,111,75,.22); color: #a39a85; font-size: 10px; line-height: 1.7; }
.page-footer { display: flex; justify-content: space-between; gap: 14px; margin-top: 21px; padding-top: 12px; border-top: 1px solid var(--line); color: #89816f; font-size: 10px; line-height: 1.65; }
.page-footer p { margin: 0; }
.map-credit { white-space: nowrap; }
.drawer-backdrop { display: none; position: fixed; inset: 0; z-index: 19; background: rgba(47,42,32,.28); backdrop-filter: blur(2px); }
.drawer-backdrop[hidden] { display: none; }
.original-dialog { width: min(96vw, 1200px); max-width: 1200px; max-height: 94vh; overflow: auto; padding: 0; border: 1px solid rgba(132,111,75,.35); border-radius: 10px; color: var(--ink); background: var(--paper-light); box-shadow: 0 20px 70px rgba(39,32,22,.3); }
.original-dialog::backdrop { background: rgba(42,37,29,.67); backdrop-filter: blur(4px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px 8px 17px; border-bottom: 1px solid var(--line); font-family: "Noto Serif SC", serif; }
.dialog-top > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dialog-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.download-map-button { min-height: 32px; padding: 6px 11px; border: 1px solid rgba(157,86,55,.3); border-radius: 5px; color: #8f4e31; background: rgba(250,247,237,.92); font: inherit; font-family: "Noto Sans SC", sans-serif; font-size: 11px; cursor: pointer; }
.download-map-button:hover { border-color: rgba(157,86,55,.65); background: #f0e4d1; }
.route-map-meta { margin: 0; padding: 7px 17px; border-bottom: 1px solid rgba(132,111,75,.14); color: #687451; background: rgba(231,224,204,.3); font-size: 12px; }
.original-dialog img { display: block; width: 100%; max-width: 100%; max-height: calc(94vh - 83px); margin: 0 auto; object-fit: contain; background: #f2ecdf; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 800px) {
  .original-dialog { width: 96vw; max-height: 92vh; }
  .original-dialog img { max-height: calc(92vh - 86px); }
  .dialog-top { gap: 7px; padding-left: 12px; }
  .download-map-button { min-height: 30px; padding: 5px 8px; font-size: 10px; }
  .drawer-backdrop:not([hidden]) { display: block; }
  .page-shell { padding: 17px 15px max(22px, env(safe-area-inset-bottom)); }
  .page-header { gap: 12px; padding-top: 6px; padding-bottom: 15px; }
  .header-mark { width: 46px; height: 46px; flex-basis: 46px; }
  .header-mark svg { width: 30px; height: 30px; }
  .eyebrow { font-size: 10px; margin-bottom: 4px; letter-spacing: .12em; }
  h1 { font-size: clamp(20px, 5vw, 29px); }
  .subtitle { font-size: 12px; margin-top: 4px; }
  .original-button { padding: 8px 9px; gap: 5px; font-size: 11px; }
  .original-icon { font-size: 14px; }
  .product-card { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 11px; padding: 12px; }
  .product-window { padding-left: 0; border-left: 0; }
  .product-window strong { font-size: 14px; }
  .blackout-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .blackout-list li { padding: 6px 5px; text-align: center; font-size: 9px; }
  .product-date-note { grid-column: auto; padding-top: 7px; }
  .stats-strip { justify-content: space-between; gap: 7px; padding: 13px 0 15px; }
  .stat-item { display: flex; flex-direction: column; align-items: center; gap: 0; }
  .stat-item strong { font-size: 23px; line-height: 1.15; }
  .stat-item span { font-size: 10px; }
  .stats-strip > i { height: 27px; }
  .map-layout { display: block; }
  .map-toolbar { gap: 7px; margin-bottom: 8px; }
  .search-wrap { flex-basis: 0; }
  #citySearch { height: 40px; padding-left: 38px; font-size: 12px; }
  .search-glyph { left: 11px; font-size: 22px; }
  .map-tools { gap: 1px; padding: 3px; }
  .tool-button { min-width: 27px; min-height: 28px; padding: 2px 5px; }
  .zoom-value { min-width: 34px; font-size: 10px; }
  .reset-button { font-size: 10px; }
  #routeMap { aspect-ratio: 1.18 / 1; }
  .map-status { top: 8px; left: 8px; padding: 5px 7px; font-size: 9px; }
  .map-legend { right: 7px; bottom: 7px; gap: 7px; padding: 5px 7px; font-size: 9px; }
  .map-caption { margin-top: 7px; font-size: 10px; }
  .detail-panel { position: fixed; z-index: 20; left: 8px; right: 8px; top: auto; bottom: 0; max-height: min(72vh, 590px); min-height: 0; padding: 23px 19px calc(18px + env(safe-area-inset-bottom)); border-radius: 15px 15px 0 0; border-bottom: 0; background: #fbf8ef; box-shadow: 0 -10px 36px rgba(57,45,29,.18); transform: translateY(105%); visibility: hidden; transition: transform .28s cubic-bezier(.2,.75,.2,1), visibility .28s; }
  .detail-panel.is-open { transform: translateY(0); visibility: visible; }
  .detail-panel::before { left: calc(50% - 19px); right: auto; top: 8px; width: 38px; border-top: 3px solid rgba(141,127,99,.33); border-radius: 3px; }
  .detail-close { top: 12px; right: 12px; }
  .detail-empty { padding-top: 21px; }
  .detail-content { max-height: calc(72vh - 50px); overflow: auto; padding-top: 8px; }
  .detail-topline { padding-top: 4px; }
  .city-title { font-size: 28px; }
  .route-section { margin-top: 17px; }
  .page-footer { display: block; margin-top: 15px; font-size: 9px; }
  .map-credit { margin-top: 3px !important; }
}
@media (max-width: 390px) {
  .page-header { gap: 7px; }
  .header-mark { width: 32px; height: 32px; flex-basis: 32px; }
  .header-mark svg { width: 21px; height: 21px; }
  h1 { font-size: 17px; letter-spacing: -.02em; }
  .original-button { padding: 7px; }
  .original-button span:last-child { display: none; }
  .stats-strip > i { margin: 0 1px; }
  .stat-item strong { font-size: 21px; }
  .map-tools .tool-divider, .reset-button { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Multi-airline product selector and route-source disclosure */
.product-selector { display: flex; align-items: center; gap: 14px; margin: 14px 0 0; padding: 0 2px 11px; border-bottom: 1px dashed rgba(132,111,75,.23); }
.selector-label { flex: 0 0 auto; color: var(--muted); font-family: "Noto Serif SC", "Songti SC", serif; font-size: 12px; letter-spacing: .08em; }
.product-switcher { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.product-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 13px 6px 8px; border: 1px solid rgba(119,131,94,.3); border-radius: 999px; color: #65704e; background: rgba(250,247,237,.6); font-size: 12px; text-align: left; cursor: pointer; transition: color .18s, background .18s, border-color .18s, transform .18s; }
.product-tab-logo { display: block; width: 26px; height: 26px; flex: 0 0 26px; padding: 2px; border: 1px solid rgba(112,101,76,.1); border-radius: 50%; background: #fffdf8; object-fit: contain; }
.product-tab-label { white-space: nowrap; }
.product-tab:hover { border-color: rgba(181,94,52,.45); transform: translateY(-1px); }
.product-tab[aria-pressed="true"] { border-color: #9d5637; color: #fffaf0; background: #9d5637; box-shadow: 0 3px 9px rgba(112,65,52,.16); }
.product-window { align-content: center; }
.product-window-row { display: grid; gap: 5px; }
.booking-window-row { margin-top: 7px; padding-top: 7px; border-top: 1px dashed rgba(132,111,75,.2); }
.booking-window-row[hidden] { display: none; }
.product-window-row strong { white-space: normal; line-height: 1.5; }
.blackout-list li { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; white-space: normal; }
.blackout-period { font-variant-numeric: tabular-nums; }
.blackout-scope { color: #8a826f; font-size: 9px; }
.product-date-note { white-space: pre-line; }
.coverage-note { margin: 9px 2px 0; padding: 8px 10px; border-left: 2px solid var(--copper-light); color: #81745f; background: rgba(231,224,204,.4); font-size: 10px; line-height: 1.65; }
.coverage-note:empty { display: none; }
.map-legend { flex-wrap: wrap; max-width: calc(100% - 20px); justify-content: flex-end; }
.legend-line { position: relative; }
.legend-line::after { content: ""; position: absolute; top: -3px; right: -1px; width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid var(--copper); }
.legend-sage::after { border-left-color: var(--sage); }

.activation-date-control { display: grid; gap: 4px; min-width: 0; }
.activation-date-control input { width: 100%; min-width: 0; min-height: 38px; padding: 0 8px; border: 1px solid rgba(121,111,85,.27); border-radius: 5px; color: #514a3b; background: #fffdf8; font: inherit; font-size: 12px; }
.activation-date-control small { color: #8a806c; font-size: 9px; line-height: 1.45; }
.redeemable-time-row strong { color: #687451; font-size: 12px; }
.search-result-airports { display: block; margin-top: 3px; color: #7d755f; font-size: 9px; line-height: 1.4; white-space: normal; }
.search-result small { white-space: normal; }
.search-result-airports { font-style: normal; }
.search-result-group { padding: 7px 10px; border-bottom: 1px solid rgba(132,111,75,.12); }
.search-result-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.search-result-group-heading > span { color: #91866f; font-size: 9px; }
.search-result-city { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 0; border: 0; color: #514a3b; background: transparent; font: inherit; cursor: pointer; }
.search-result-city > span { font-size: 12px; font-weight: 600; }
.search-result-airport-options { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.search-result-airport { display: inline-flex; align-items: center; gap: 6px; padding: 5px 7px; border: 1px solid rgba(119,131,94,.24); border-radius: 5px; color: #65704e; background: rgba(223,228,205,.26); font: inherit; font-size: 9px; cursor: pointer; }
.search-result-airport:hover { border-color: rgba(181,94,52,.5); background: rgba(240,226,202,.7); }

@media (max-width: 800px) {
  .product-selector { align-items: flex-start; flex-direction: column; gap: 7px; margin-top: 10px; padding-bottom: 9px; }
  .product-switcher { width: 100%; flex-wrap: nowrap; overflow-x: auto; padding: 1px 1px 4px; scrollbar-width: thin; }
  .product-tab { flex: 0 0 auto; min-height: 34px; padding: 7px 11px; font-size: 11px; }
  .product-window-row { gap: 3px; }
  .booking-window-row { margin-top: 5px; padding-top: 5px; }
  .blackout-list li { align-items: center; gap: 3px; min-width: 0; line-height: 1.45; }
  .blackout-period { white-space: nowrap; font-size: 9px; }
  .blackout-scope { text-align: center; font-size: 8px; }
  .coverage-note { margin-top: 7px; padding: 7px 8px; font-size: 9px; }
  .map-legend { max-width: calc(100% - 14px); gap: 6px 8px; }
  .activation-date-control input { min-height: 40px; }
}
@media (max-width: 390px) {
  .product-tab { padding-inline: 9px; font-size: 10px; }
  .map-legend { left: 7px; right: 7px; justify-content: center; font-size: 8px; }
}

/* Keep semantic hidden states authoritative when component classes set display. */
[hidden] { display: none !important; }
