/* Amsterdam Private Jet — booking platform */

:root {
  --bg: #fafbfc;
  --surface: #ffffff;
  --surface-2: #f4f5f8;
  --border: #e6e8ee;
  --border-strong: #d4d7e0;
  --ink: #0e1220;
  --ink-2: #3a3f52;
  --muted: #6b7184;
  --subtle: #9096a7;
  --accent: oklch(0.58 0.17 255);
  --accent-soft: oklch(0.95 0.04 255);
  --accent-ink: oklch(0.35 0.12 255);

  --cat-light: oklch(0.72 0.12 85);
  --cat-mid: oklch(0.68 0.14 180);
  --cat-super: oklch(0.62 0.16 260);
  --cat-heavy: oklch(0.54 0.18 330);

  --radius: 4px;
  --radius-lg: 6px;
  --shadow-sm: 0 1px 0 rgba(14,18,32,0.04), 0 1px 2px rgba(14,18,32,0.04);
  --shadow-md: 0 4px 12px rgba(14,18,32,0.06), 0 1px 0 rgba(14,18,32,0.04);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #0a0c12;
  --surface: #12141c;
  --surface-2: #181b25;
  --border: #232632;
  --border-strong: #2f3342;
  --ink: #eef0f5;
  --ink-2: #b8bcc8;
  --muted: #8289a0;
  --subtle: #5d6375;
  --accent-soft: oklch(0.25 0.06 255);
  --accent-ink: oklch(0.78 0.12 255);
}

[data-accent="emerald"] {
  --accent: oklch(0.62 0.15 160);
  --accent-soft: oklch(0.95 0.04 160);
  --accent-ink: oklch(0.38 0.12 160);
}
[data-theme="dark"][data-accent="emerald"] {
  --accent-soft: oklch(0.25 0.06 160);
  --accent-ink: oklch(0.78 0.12 160);
}
[data-accent="amber"] {
  --accent: oklch(0.70 0.15 60);
  --accent-soft: oklch(0.96 0.05 60);
  --accent-ink: oklch(0.42 0.12 60);
}
[data-theme="dark"][data-accent="amber"] {
  --accent-soft: oklch(0.25 0.06 60);
  --accent-ink: oklch(0.82 0.13 60);
}

* { box-sizing: border-box; }
html, body, #root { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }

.app-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Top bar ===== */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  height: 56px;
  flex-shrink: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--ink);
}
.brand-mark { color: var(--accent); }
.brand-word {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.top-nav-link {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.top-nav-link:hover { color: var(--ink); }
.top-nav-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
}
.top-nav-cta {
  background: var(--ink);
  color: var(--surface);
  padding: 7px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
}
[data-theme="dark"] .top-nav-cta { background: var(--accent); color: #fff; }

/* ===== Landing ===== */
.landing {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 0;
  height: calc(100vh - 56px);
}
.landing-left {
  padding: 56px 56px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  background: var(--bg);
  max-width: 780px;
  overflow-y: auto;
}
.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: oklch(0.65 0.18 150);
  box-shadow: 0 0 0 3px oklch(0.65 0.18 150 / 0.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.hero-title {
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  text-wrap: pretty;
  max-width: 14ch;
}
.hero-sub {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0;
  max-width: 48ch;
  text-wrap: pretty;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: auto;
}
.stat { padding-right: 20px; }
.stat + .stat { border-left: 1px solid var(--border); padding-left: 20px; }
.stat-k {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.stat-v {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.landing-right {
  position: relative;
  background: var(--surface-2);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.landing-side {
  border-top: 1px solid var(--border);
  padding: 16px 24px 20px;
  background: var(--surface);
}
.side-head {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 10px;
}
.side-routes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.side-route {
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 10px;
  cursor: pointer;
  transition: all 0.12s;
}
.side-route:hover {
  border-color: var(--accent);
  background: var(--surface);
}
.side-route-codes {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.side-arrow { color: var(--muted); }
.side-route-label { font-size: 11px; color: var(--ink-2); margin-top: 4px; }
.side-route-dist {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

/* ===== Search form ===== */
.search-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-md);
}
.search-form.is-compact {
  flex-direction: row;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
}
.search-form.is-compact .field-row { flex: 1; }

.trip-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  background: var(--surface-2);
  border-radius: var(--radius);
  width: fit-content;
}
.trip-tab {
  background: none;
  border: none;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 3px;
  font-weight: 500;
}
.trip-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.field-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  position: relative;
}
.field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  position: relative;
}
.field-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.field-input {
  height: 38px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 11px;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
  width: 100%;
  font-weight: 500;
}
textarea.field-input { padding: 8px 11px; height: auto; resize: vertical; font-weight: 400; }
.field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field-input::placeholder { color: var(--subtle); font-weight: 400; }

.swap-btn {
  height: 38px;
  width: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 0;
  align-self: flex-end;
  transition: all 0.12s;
}
.swap-btn:hover { border-color: var(--accent); color: var(--accent); }

.pax-control {
  display: flex;
  height: 38px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: center;
}
.pax-btn {
  width: 34px;
  height: 100%;
  background: none;
  border: none;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 16px;
}
.pax-btn:hover { color: var(--accent); }
.pax-value {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.search-btn {
  height: 40px;
  background: var(--ink);
  color: var(--surface);
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  padding: 0 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.12s;
  letter-spacing: 0.01em;
}
[data-theme="dark"] .search-btn { background: var(--accent); color: #fff; }
.search-form:not(.is-compact) .search-btn { align-self: stretch; }
.search-btn:hover:not(:disabled) {
  background: oklch(0.25 0.02 260);
}
[data-theme="dark"] .search-btn:hover:not(:disabled) { background: oklch(0.65 0.17 255); }
.search-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ===== Autocomplete ===== */
.ac-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 10000;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px;
}
.ac-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 3px;
  cursor: pointer;
}
.ac-item.is-active { background: var(--surface-2); }
.ac-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 3px 6px;
  border-radius: 3px;
  min-width: 40px;
  text-align: center;
}
.ac-body { min-width: 0; flex: 1; }
.ac-city {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.ac-country { color: var(--muted); font-weight: 400; }
.ac-name {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.ac-icao {
  font-family: var(--font-mono);
  font-size: 10px;
}
.ac-empty {
  padding: 10px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ===== World Map (Leaflet) ===== */
.worldmap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  overflow: hidden;
  background: var(--surface-2);
  flex: 1 1 auto;
  display: block;
}
.leaflet-root {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 420px;
}
.leaflet-container {
  font-family: var(--font-sans);
  background: var(--surface-2);
}
[data-theme="dark"] .leaflet-container { background: #0a0c12; }
.leaflet-control-zoom a {
  background: var(--surface) !important;
  color: var(--ink) !important;
  border: 1px solid var(--border) !important;
  width: 28px !important;
  height: 28px !important;
  line-height: 26px !important;
  font-size: 16px !important;
  font-weight: 400 !important;
}
.leaflet-control-zoom a:hover { background: var(--surface-2) !important; color: var(--accent) !important; }
.leaflet-control-attribution {
  background: rgba(255,255,255,0.8) !important;
  font-family: var(--font-mono) !important;
  font-size: 9px !important;
  color: var(--muted) !important;
  padding: 2px 6px !important;
  letter-spacing: 0.02em;
}
[data-theme="dark"] .leaflet-control-attribution {
  background: rgba(10,12,18,0.8) !important;
  color: var(--muted) !important;
}

/* Endpoint pin marker */
.endpoint-marker {
  position: relative;
  overflow: visible !important;
}
.endpoint-marker .ep-dot {
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  z-index: 2;
}
.endpoint-marker .ep-pulse {
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  opacity: 0.6;
  animation: ep-pulse 2s ease-out infinite;
}
@keyframes ep-pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.55; }
  100% { transform: translate(-50%, -50%) scale(3.2); opacity: 0; }
}
.endpoint-marker .ep-pin {
  position: absolute;
  left: 14px;
  top: -8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(14,18,32,0.12);
  pointer-events: none;
}
.endpoint-marker .ep-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.endpoint-marker .ep-city {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.2;
  margin-top: 1px;
}

/* Plane marker */
.plane-marker { background: transparent !important; border: none !important; }
.plane-wrap {
  width: 28px;
  height: 28px;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
  transition: transform 0.1s linear;
}

.map-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  z-index: 400;
}
.map-empty-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow-md);
}
.map-empty-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.map-empty-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.map-empty code {
  font-family: var(--font-mono);
  background: var(--surface-2);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--border);
  font-size: 10px;
}

/* ===== Results view ===== */
.results-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.results-top {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.results-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}
.results-map-pane {
  position: relative;
  border-right: 1px solid var(--border);
  background: var(--surface-2);
}
.map-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}
.overlay-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
  min-width: 180px;
}
.overlay-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  font-size: 11px;
}
.overlay-k {
  font-family: var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.06em;
}
.overlay-v {
  color: var(--ink);
  font-weight: 600;
  font-family: var(--font-mono);
}

.results-list-pane {
  overflow-y: auto;
  background: var(--bg);
}
.results-list {
  padding: 20px 24px 40px;
}
.results-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.results-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.results-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: 0.02em;
}
.sort-group { display: flex; align-items: center; gap: 8px; }
.sort-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.sort-select {
  height: 30px;
  padding: 0 24px 0 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 4l3 3 3-3' stroke='%236b7184' stroke-width='1.25' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.jet-grid {
  display: grid;
  gap: 10px;
}
.jet-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.12s;
}
.jet-card:hover { border-color: var(--border-strong); }
.jet-card.is-unavailable { opacity: 0.5; }

.jet-card-img {
  position: relative;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  min-height: 128px;
}
[data-theme="dark"] .jet-card-img { filter: brightness(0.35) saturate(0.6); }
.jet-card-img-inner { width: 100%; }
.jet-silhouette { width: 100%; height: auto; }
.cat-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 3px;
  background: var(--surface);
  color: var(--chip);
  border: 1px solid var(--chip);
}
[data-theme="dark"] .cat-chip { background: rgba(18,20,28,0.9); }

.jet-card-body {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.jet-card-head { display: flex; justify-content: space-between; gap: 12px; }
.jet-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.jet-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.dot-sep { color: var(--border-strong); }
.unavail-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: oklch(0.5 0.18 25);
  background: oklch(0.96 0.04 25);
  border: 1px solid oklch(0.85 0.08 25);
  padding: 2px 6px;
  border-radius: 3px;
  height: fit-content;
  letter-spacing: 0.04em;
}

.jet-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.price-total {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.price-per {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.quote-btn {
  background: var(--surface);
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: all 0.12s;
}
.quote-btn:hover:not(:disabled) {
  background: var(--ink);
  color: var(--surface);
}
.quote-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.unreachable-block {
  margin-top: 20px;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.unreachable-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}
.unreachable-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 3px 0;
  color: var(--ink-2);
}
.unreachable-row .muted { font-family: var(--font-mono); font-size: 11px; color: var(--subtle); }

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14,18,32,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
  border: 1px solid var(--border);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}
.modal-close:hover { background: var(--surface-2); color: var(--ink); }
.modal-head { margin-bottom: 18px; }
.modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 4px;
}
.modal-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.modal-summary {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 18px;
}
.sum-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 12px;
  align-items: baseline;
}
.sum-row + .sum-row { border-top: 1px solid var(--border); }
.sum-row.total { border-top: 1px solid var(--border-strong); padding-top: 8px; margin-top: 4px; }
.sum-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.sum-v { color: var(--ink); font-weight: 500; text-align: right; }
.sum-v.price { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); font-weight: 400; }

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-foot {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.modal-fine {
  font-size: 11px;
  color: var(--muted);
  flex: 1;
}

.modal-confirm {
  text-align: center;
  padding: 20px 10px;
}
.confirm-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.confirm-body {
  color: var(--ink-2);
  margin: 8px auto 20px;
  max-width: 40ch;
  text-wrap: pretty;
}

.search-wrap { position: relative; z-index: 10; }

/* Responsive fallback */
@media (max-width: 1100px) {
  .landing { grid-template-columns: 1fr; }
  .landing-right { border-left: none; border-top: 1px solid var(--border); }
  .side-routes { grid-template-columns: repeat(2, 1fr); }
  .results-body { grid-template-columns: 1fr; }
  .results-map-pane { border-right: none; border-bottom: 1px solid var(--border); min-height: 320px; }
}

/* ===== Breakdown styles (added — were inline in JSX) ===== */
.breakdown-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 18px;
}
.breakdown-toggle {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 2px 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink);
  cursor: pointer;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.breakdown-toggle .muted {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0.02em;
}
.breakdown-lines {
  padding: 8px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bd-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 12px;
}
.bd-label { min-width: 0; flex: 1; }
.bd-name {
  color: var(--ink);
  font-weight: 500;
}
.bd-detail {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 1px;
}
.bd-amount {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.bd-row.bd-subtotal {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.bd-row.bd-subtotal .bd-name { font-weight: 600; }
.bd-row.bd-subtotal .bd-amount { font-weight: 600; }
.bd-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-strong);
}
.bd-total-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.bd-total-amount {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* Modal width override for the price-detail layout */
.modal.modal-wide { max-width: 580px; }

/* Submit error banner */
.modal-error {
  margin-top: 10px;
  background: oklch(0.96 0.04 25);
  border: 1px solid oklch(0.85 0.08 25);
  color: oklch(0.4 0.18 25);
  padding: 8px 10px;
  font-size: 12px;
  border-radius: var(--radius);
}

/* Unreachable list spacing */
.unreachable-list { display: flex; flex-direction: column; gap: 2px; }

/* ===== Footer ===== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 18px 28px 16px;
  flex-shrink: 0;
}
.footer-disclaimer {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 90ch;
  margin: 0 auto 12px;
  text-align: center;
  text-wrap: pretty;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.footer-links {
  display: flex;
  gap: 18px;
}
.footer-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}
.footer-links a:hover { color: var(--accent); }

/* The landing/results panes are full-height — relax that so the footer can sit below */
.app-root .landing,
.app-root .results-view {
  height: auto;
  flex: 1;
}

/* ===== Legal pages ===== */
.legal-page {
  flex: 1;
  padding: 56px 28px 64px;
  background: var(--bg);
  overflow-y: auto;
}
.legal-inner {
  max-width: 720px;
  margin: 0 auto;
  color: var(--ink-2);
}
.legal-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
}
.legal-title {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 6px;
  text-wrap: pretty;
}
.legal-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 32px;
  letter-spacing: 0.04em;
}
.legal-page h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 28px 0 8px;
  letter-spacing: -0.01em;
}
.legal-page p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 12px;
  text-wrap: pretty;
}
.legal-page a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.legal-back {
  margin-top: 36px;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.12s;
}
.legal-back:hover { border-color: var(--ink); color: var(--ink); }

/* ===== Mobile: minimum-viable fixes ===== */
@media (max-width: 720px) {
  .top-bar { padding: 12px 16px; height: auto; min-height: 56px; flex-wrap: wrap; gap: 8px; }
  .brand-tag { display: none; }
  .top-nav { gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
  .top-nav-link { font-size: 12px; }
  .top-nav-sep { display: none; }
  .top-nav-cta { font-size: 11px; padding: 6px 10px; }

  .landing-left { padding: 28px 20px 24px; gap: 20px; }
  .hero-title { font-size: 32px; max-width: none; }

  .hero-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding-top: 16px; }
  .stat { padding-right: 10px; }
  .stat + .stat { padding-left: 10px; }
  .stat-k { font-size: 17px; line-height: 1.1; }
  .stat-v { font-size: 9px; }

  .field-row { flex-wrap: wrap; }
  .field { min-width: 120px; }

  .results-top { padding: 8px 12px; }
  .search-form.is-compact { flex-direction: column; align-items: stretch; }
  .search-form.is-compact .search-btn { align-self: stretch; }

  .jet-card { grid-template-columns: 1fr; }
  .jet-card-img { min-height: 92px; padding: 10px; border-right: none; border-bottom: 1px solid var(--border); }
  .jet-card-body { padding: 12px 14px; }

  .results-list { padding: 14px 14px 28px; }
  .results-head { flex-direction: column; align-items: flex-start; gap: 8px; }

  .map-overlay { top: 8px; left: 8px; right: 8px; }
  .overlay-card { font-size: 10px; }

  .legal-page { padding: 36px 18px 48px; }
  .legal-title { font-size: 28px; }

  .modal { padding: 20px 18px; }
  .modal-title { font-size: 18px; }

  .footer-row { flex-direction: column; align-items: stretch; text-align: center; }
  .footer-links { justify-content: center; gap: 14px; }

  .side-routes { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 26px; }
  .top-nav { font-size: 11px; gap: 10px; }
  .top-nav-link { font-size: 11px; }
}
