:root {
  --ink: #12232b;
  --ink-soft: #2a4149;
  --paper: #f3efe6;
  --surface: #fffdf8;
  --surface-muted: #ebe7dd;
  --line: #d7d1c5;
  --muted: #6b7779;
  --accent: #ee6c4d;
  --accent-dark: #cb4c31;
  --teal: #278f8b;
  --teal-soft: #dcecea;
  --blue: #d9e9ef;
  --shadow: 0 16px 42px rgba(18, 35, 43, .10);
  --radius: 14px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", Meiryo, system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.site-header {
  min-height: 76px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 14px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.04em; white-space: nowrap; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid var(--accent); border-radius: 50%; font-size: 22px; background: rgba(255,255,255,.08); }
.mode-nav { display: flex; align-items: center; gap: 8px; }
.mode-link { display: inline-flex; align-items: center; gap: 8px; padding: 12px 17px; color: #fff; text-decoration: none; border-radius: 8px; font-weight: 800; font-size: 15px; }
.mode-link[aria-current="page"], .mode-link.is-active { background: var(--accent); }
.header-spacer { flex: 1; }
.header-link { color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; opacity: .92; }
.menu-button { display: none; border: 0; color: #fff; background: transparent; font-weight: 700; }

.app-shell { min-height: calc(100vh - 76px); }
.hero { min-width: 0; display: grid; grid-template-columns: minmax(360px, .88fr) minmax(520px, 1.12fr); min-height: 660px; }
.hero-copy { min-width: 0; padding: clamp(38px, 5vw, 72px) clamp(22px, 5vw, 70px) 42px; display: flex; flex-direction: column; justify-content: center; }
.hero-title { margin: 0 0 18px; font-size: clamp(34px, 4.2vw, 64px); line-height: 1.08; letter-spacing: -.075em; max-width: 12ch; }
.hero-title .accent-line { color: var(--accent); display: block; }
.hero-lede { margin: 0 0 28px; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.8; color: var(--ink-soft); max-width: 38rem; }
.origin-note { margin: 0 0 18px; font-size: 15px; font-weight: 800; }
.filter-panel { min-width: 0; border-top: 1px solid var(--line); }
.filter-row { min-width: 0; display: grid; grid-template-columns: 116px 1fr; align-items: stretch; border-bottom: 1px solid var(--line); min-height: 52px; }
.filter-label { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 13px; color: var(--ink-soft); }
.filter-options { min-width: 0; display: flex; gap: 6px; padding: 7px 0 7px 8px; flex-wrap: wrap; }
.filter-option { flex: 1 1 94px; min-height: 36px; padding: 6px 10px; background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 6px; font-weight: 800; font-size: 13px; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.filter-option:hover, .filter-option:focus-visible { border-color: var(--accent); }
.filter-option[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.quick-section { padding-top: 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 0 0 10px; font-size: 15px; }
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.quick-action { min-height: 75px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.25); color: var(--ink); padding: 9px 5px 7px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 5px; font-weight: 800; font-size: 11px; line-height: 1.25; }
.quick-action:hover, .quick-action:focus-visible { background: var(--surface); border-color: var(--teal); }
.quick-icon { font-size: 24px; color: var(--teal); line-height: 1; }
.quick-action:last-child .quick-icon { color: var(--accent); }

.map-panel { min-width: 0; position: relative; min-height: 660px; background: var(--blue); overflow: hidden; border-bottom-left-radius: 0; }
.map-panel::before { content: ""; position: absolute; inset: 0; opacity: .42; background-image: linear-gradient(rgba(39,143,139,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(39,143,139,.12) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }
.map-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 38% 48%, transparent 0 14%, rgba(217,233,239,.35) 44%, rgba(217,233,239,.85) 100%); }
.map-canvas { position: absolute; inset: 0; z-index: 1; }
.fallback-map { width: 100%; height: 100%; display: block; }
.maplibre-map { position: absolute; inset: 0; display: none; }
.maplibre-map.is-ready { display: block; }
.map-status { position: absolute; top: 18px; left: 20px; z-index: 5; background: rgba(255,253,248,.9); border: 1px solid rgba(18,35,43,.18); border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 800; }
.map-legend { position: absolute; z-index: 5; right: 18px; bottom: 18px; width: min(250px, calc(100% - 36px)); padding: 15px; background: rgba(255,253,248,.94); border: 1px solid rgba(18,35,43,.16); border-radius: 10px; font-size: 12px; box-shadow: 0 8px 22px rgba(18,35,43,.08); }
.legend-row { display: flex; align-items: center; gap: 10px; margin: 5px 0; font-weight: 700; }
.legend-line { width: 36px; height: 4px; border-radius: 4px; background: var(--teal); }
.legend-line.muted { background: repeating-linear-gradient(90deg, #8a9391 0 9px, transparent 9px 14px); }
.map-disclaimer { margin: 10px 0 0; color: var(--muted); line-height: 1.5; }
.map-attribution { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.map-attribution a { color: inherit; }
.route { fill: none; stroke: var(--teal); stroke-width: 4; stroke-linecap: round; opacity: .95; }
.route.muted { stroke: #8a9391; stroke-dasharray: 8 8; opacity: .45; }
.map-node { fill: var(--teal); stroke: #fff; stroke-width: 3; }
.map-origin { fill: var(--accent); stroke: #fff; stroke-width: 5; }
.map-label rect { fill: rgba(255,253,248,.96); stroke: rgba(18,35,43,.32); stroke-width: 1; rx: 8; }
.map-label { opacity: 1; }
.map-label text { fill: #12232b; stroke: #12232b; stroke-width: .22px; paint-order: stroke fill; font-size: 14px; font-weight: 900; }
.map-label .small { font-size: 10px; font-weight: 700; stroke-width: .16px; }
.origin-label rect { fill: var(--accent); stroke: var(--accent); }
.origin-label text { fill: #fff; }

.results-section { padding: 32px clamp(22px, 5vw, 70px) 54px; background: var(--paper); }
.results-inner { max-width: 1480px; margin: 0 auto; }
.results-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.results-heading h2 { font-size: 22px; margin: 0; letter-spacing: -.04em; }
.results-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.sort-select { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 8px 10px; color: var(--ink); font-weight: 700; font-size: 12px; }
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.destination-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 12px rgba(18,35,43,.04); }
.card-body { padding: 20px; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-title { margin: 0; font-size: 25px; letter-spacing: -.06em; }
.card-region { color: var(--muted); font-size: 12px; font-weight: 700; margin-left: 5px; }
.status { color: var(--teal); font-size: 12px; font-weight: 900; white-space: nowrap; }
.status::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 50%; background: currentColor; }
.status.static { color: #94764b; }
.status.outbound { color: #7b697c; }
.card-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0 14px; border-block: 1px solid var(--line); padding: 12px 0; }
.summary-item { padding: 0 12px; border-left: 1px solid var(--line); }
.summary-item:first-child { border-left: 0; padding-left: 0; }
.summary-label { display: block; font-size: 10px; color: var(--muted); font-weight: 800; margin-bottom: 4px; }
.summary-value { font-size: 18px; font-weight: 900; letter-spacing: -.04em; }
.schedule-list { display: grid; gap: 6px; }
.schedule-row { display: grid; grid-template-columns: 48px 1fr auto 1fr auto; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; }
.schedule-tag { background: var(--teal); color: #fff; padding: 4px 6px; border-radius: 4px; font-weight: 900; text-align: center; }
.schedule-row strong { font-size: 15px; }
.arrow { color: var(--muted); }
.card-cta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.data-note { color: var(--muted); font-size: 11px; line-height: 1.5; }
.booking-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 16px; border-radius: 7px; background: var(--accent); color: #fff; text-decoration: none; font-size: 13px; font-weight: 900; white-space: nowrap; }
.booking-link:hover, .booking-link:focus-visible { background: var(--accent-dark); }
.empty-state { padding: 34px 16px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; background: rgba(255,255,255,.2); }

.detail-page { max-width: 1120px; margin: 0 auto; padding: 42px 22px 64px; }
.breadcrumbs { color: var(--muted); font-size: 12px; margin-bottom: 24px; }
.detail-hero { display: grid; grid-template-columns: 1fr .75fr; gap: 28px; align-items: end; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.detail-hero h1 { margin: 0 0 12px; font-size: clamp(34px, 5vw, 66px); letter-spacing: -.08em; line-height: 1.05; }
.detail-hero p { max-width: 52ch; color: var(--ink-soft); line-height: 1.8; }
.detail-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.detail-stat div { background: var(--surface); padding: 18px; }
.detail-stat small { display: block; color: var(--muted); font-size: 11px; font-weight: 800; margin-bottom: 6px; }
.detail-stat strong { font-size: 20px; }
.detail-section { padding-top: 30px; }
.detail-section h2 { margin: 0 0 14px; font-size: 21px; }
.source-box { padding: 16px; border-left: 4px solid var(--teal); background: var(--teal-soft); font-size: 13px; line-height: 1.7; }
.source-box a { color: var(--ink); font-weight: 800; }
.notice { margin: 18px 0; padding: 14px 16px; background: #f8e6d7; border-radius: 9px; color: #704a37; font-size: 12px; line-height: 1.7; }
.back-link { display: inline-flex; gap: 7px; color: var(--ink); font-weight: 800; text-decoration: none; margin-top: 25px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px clamp(22px, 5vw, 70px); background: var(--ink); color: #d9e2e3; font-size: 12px; }
.site-footer a { color: #fff; }
.noscript { max-width: 680px; margin: 100px auto; padding: 24px; }

@media (max-width: 980px) {
  .site-header { gap: 16px; }
  .header-link { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 30px; }
  .map-panel { min-height: 560px; border-radius: 0; }
  .results-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { min-height: 64px; padding: 10px 15px; gap: 6px; }
  .brand { font-size: 18px; gap: 7px; }
  .brand-mark { width: 34px; height: 34px; font-size: 17px; }
  .mode-nav { margin-left: auto; gap: 2px; }
  .mode-link { padding: 9px 6px; font-size: 10px; gap: 3px; }
  .menu-button { display: none; }
  .hero-copy { padding: 34px 16px 22px; }
  .hero-title { font-size: 38px; }
  .hero-lede { font-size: 14px; margin-bottom: 22px; }
  .filter-row { grid-template-columns: 1fr; padding: 8px 0 0; }
  .filter-label { margin-bottom: 2px; }
  .filter-options { padding: 4px 0 7px; gap: 5px; }
  .filter-option { min-width: 0; font-size: 12px; min-height: 34px; }
  .filter-option[data-filter-key="date"] { flex: 0 0 calc((100% - 10px) / 3); }
  .filter-option[data-filter-key="trip"], .filter-option[data-filter-key="budget"], .filter-option[data-filter-key="duration"] { flex: 0 0 calc((100% - 5px) / 2); }
  .quick-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .quick-action { min-height: 69px; font-size: 10px; }
  .quick-icon { font-size: 20px; }
  .map-panel { min-height: 480px; }
  .map-legend { right: 10px; bottom: 10px; padding: 10px; }
  .results-section { padding: 28px 16px 42px; }
  .results-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .results-heading h2 { font-size: 20px; }
  .sort-select { width: 100%; }
  .card-body { padding: 16px; }
  .card-title { font-size: 23px; }
  .card-summary { gap: 0; }
  .summary-item { padding: 0 8px; }
  .summary-value { font-size: 15px; }
  .schedule-row { grid-template-columns: 42px 1fr auto 1fr auto; gap: 4px; font-size: 10px; }
  .schedule-row strong { font-size: 13px; }
  .card-cta { align-items: stretch; flex-direction: column; }
  .booking-link { width: 100%; }
  .site-footer { align-items: flex-start; flex-direction: column; padding: 20px 16px; }
  .detail-page { padding: 28px 16px 46px; }
  .detail-hero { grid-template-columns: 1fr; gap: 18px; }
  .detail-hero h1 { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Gate 5: discovery-first presentation. The data and filter contracts remain unchanged. */
.hero { min-height: 610px; grid-template-columns: minmax(390px, .82fr) minmax(560px, 1.18fr); }
.hero-copy { justify-content: flex-start; padding-top: clamp(34px, 4vw, 54px); }
.hero-title { font-size: clamp(32px, 3.8vw, 56px); max-width: 14ch; margin-bottom: 14px; }
.hero-lede { margin-bottom: 20px; line-height: 1.65; }
.origin-note { margin-bottom: 14px; }
.filter-panel { border-top: 0; }
.filter-row { min-height: 48px; }
.filter-label { font-size: 12px; }
.filter-options { padding-block: 6px; }
.filter-option { min-height: 34px; border-radius: 8px; }
.selected-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0 2px; }
.filter-chip { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 9px; border-radius: 999px; background: var(--teal-soft); color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.advanced-filters { margin-top: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.advanced-filters summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 900; list-style: none; }
.advanced-filters summary::-webkit-details-marker { display: none; }
.advanced-filters summary::after { content: "+"; color: var(--teal); font-size: 20px; line-height: 1; }
.advanced-filters[open] summary::after { content: "−"; }
.advanced-filters summary span { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 700; }
.advanced-filter-body { padding-bottom: 8px; }
.quick-section { padding-top: 16px; }
.section-heading { margin-bottom: 8px; font-size: 14px; }
.quick-grid { gap: 8px; }
.quick-primary-grid { grid-template-columns: repeat(3, 1fr); }
.quick-secondary-grid { grid-template-columns: repeat(3, 1fr); margin-top: 8px; }
.quick-action { min-height: 54px; padding: 8px 7px; background: rgba(255,255,255,.38); border-radius: 10px; font-size: 12px; }
.quick-action-primary { min-height: 76px; background: var(--surface); border-color: var(--teal); color: var(--ink); }
.quick-action-primary .quick-icon { font-size: 20px; }
.quick-action-gacha { background: var(--accent); border-color: var(--accent); color: #fff; }
.quick-action-gacha .quick-icon { color: #fff; }
.quick-secondary-grid .quick-action { min-height: 38px; font-size: 11px; }
.map-panel { min-height: 610px; }
.map-canvas { isolation: isolate; }
.maplibre-map.is-ready { display: block; position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.fallback-map { position: relative; z-index: 2; }
.fallback-map[aria-hidden="true"] { pointer-events: none; }
.fallback-map[aria-hidden="true"] .route { opacity: 0; }
.fallback-map[aria-hidden="true"] .map-node > circle { opacity: 0; }
.fallback-map[aria-hidden="true"] .map-label { opacity: 1; }
.map-status { display: grid; gap: 2px; padding: 9px 13px; border: 0; border-left: 4px solid var(--accent); border-radius: 10px; box-shadow: 0 5px 18px rgba(18,35,43,.08); }
.map-status span { color: var(--muted); font-size: 10px; font-weight: 800; }
.map-status strong { color: var(--ink); font-size: 13px; }
.map-node { cursor: pointer; transition: opacity .2s ease, transform .2s ease; transform-box: fill-box; transform-origin: center; }
.map-node:hover, .map-node:focus { outline: none; transform: scale(1.12); }
.map-node.selected .map-label rect { fill: var(--accent); stroke: var(--accent); }
.map-node.selected .map-label text { fill: #fff; stroke: #fff; }
.map-node.muted { opacity: .38; }
.map-node:focus-visible circle { stroke: var(--accent); stroke-width: 5; }
.results-section { padding-top: 38px; }
.results-heading { align-items: flex-end; margin-bottom: 20px; }
.results-kicker { margin: 0 0 3px !important; color: var(--teal) !important; font-size: 12px !important; font-weight: 900; letter-spacing: .02em; }
.results-heading h2 { font-size: clamp(22px, 2.2vw, 30px); }
.results-grid { gap: 18px; }
.destination-card { border: 0; box-shadow: var(--shadow); }
.card-body { padding: 22px; }
.card-title { font-size: 28px; }
.card-region { display: inline-block; margin-left: 7px; font-size: 11px; }
.status { padding-top: 5px; font-size: 11px; }
.card-benefit { margin: 13px 0 0; color: var(--teal); font-size: 17px; font-weight: 900; letter-spacing: -.03em; }
.card-summary { margin: 15px 0 13px; padding: 13px 0; border-color: var(--surface-muted); }
.summary-item { border-color: var(--surface-muted); }
.summary-value { font-size: 17px; }
.schedule-row { border-color: var(--surface-muted); background: #fffefa; }
.card-cta { align-items: flex-end; }
.card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.detail-link, .booking-link { min-height: 40px; padding: 9px 14px; border-radius: 8px; font-size: 12px; font-weight: 900; }
.detail-link { display: inline-flex; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; border: 1px solid var(--teal); background: var(--teal-soft); }
.detail-link:hover, .detail-link:focus-visible { background: var(--teal); color: #fff; }
.booking-link-secondary { background: transparent; color: var(--accent-dark); border: 1px solid var(--accent); }
.booking-link-secondary:hover, .booking-link-secondary:focus-visible { color: #fff; }
.data-note { font-size: 11px; }
.empty-state { display: grid; justify-items: center; gap: 9px; padding: 42px 18px; }
.empty-state strong { color: var(--ink); font-size: 17px; }
.empty-state span { color: var(--muted); }
.reset-button { min-height: 40px; padding: 8px 15px; border: 1px solid var(--teal); border-radius: 8px; background: var(--surface); color: var(--ink); font-weight: 900; }
.reset-button:hover, .reset-button:focus-visible { background: var(--teal); color: #fff; }
.detail-page { max-width: 900px; }
.detail-hero { display: block; padding-bottom: 26px; }
.detail-eyebrow { margin: 0 0 8px !important; color: var(--teal) !important; font-size: 12px; font-weight: 900; }
.detail-hero h1 { font-size: clamp(38px, 6vw, 68px); }
.detail-trip-section { padding-top: 24px; }
.trip-highlight { display: grid; gap: 6px; padding: 20px; border-left: 5px solid var(--accent); border-radius: 10px; background: #fff5ec; }
.trip-highlight strong { color: var(--accent-dark); font-size: 20px; }
.trip-highlight span { color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.detail-stat { box-shadow: 0 7px 20px rgba(18,35,43,.06); }
.detail-action .booking-link { min-height: 48px; background: var(--accent); color: #fff; font-size: 14px; }

@media (max-width: 980px) {
  .hero { min-height: 0; grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 22px; }
  .map-panel { min-height: 560px; }
}

@media (max-width: 620px) {
  .site-header { gap: 4px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 32px; height: 32px; font-size: 16px; }
  .mode-link { padding-inline: 5px; font-size: 10px; }
  .hero-copy { padding: 24px 16px 18px; }
  .hero-title { max-width: 16ch; font-size: 30px; line-height: 1.06; margin-bottom: 12px; }
  .hero-lede { margin-bottom: 15px; font-size: 13px; line-height: 1.55; }
  .origin-note { margin-bottom: 10px; font-size: 13px; }
  .filter-row { padding-top: 5px; min-height: 0; }
  .filter-label { font-size: 11px; }
  .filter-options { padding: 4px 0 5px; }
  .filter-option { min-height: 32px; font-size: 11px; }
  .selected-filters { padding-top: 7px; }
  .filter-chip { min-height: 23px; font-size: 10px; }
  .advanced-filters { margin-top: 5px; }
  .advanced-filters summary { min-height: 38px; font-size: 12px; }
  .quick-section { padding-top: 12px; }
  .section-heading { font-size: 13px; }
  .quick-grid { gap: 5px; }
  .quick-action-primary { min-height: 66px; font-size: 10px; }
  .quick-secondary-grid .quick-action { min-height: 34px; padding-inline: 4px; font-size: 9px; }
  .map-panel { min-height: 480px; }
  .map-status { top: 12px; left: 12px; }
  .map-legend { max-width: 210px; font-size: 10px; }
  .results-section { padding-top: 28px; }
  .results-heading h2 { font-size: 21px; line-height: 1.25; }
  .card-body { padding: 17px; }
  .card-title { font-size: 24px; }
  .card-benefit { font-size: 15px; }
  .card-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .summary-item:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
  .card-cta { align-items: stretch; }
  .card-actions { justify-content: stretch; }
  .card-actions > * { flex: 1 1 140px; }
  .booking-link, .detail-link { width: 100%; }
  .detail-page { padding-top: 26px; }
  .detail-hero h1 { font-size: 40px; }
  .detail-stat strong { font-size: 16px; }
}

/* Gate 5.5: the hero is a network instrument, not a second road map. */
.map-panel { min-height: 610px; }
.maplibre-map.is-ready { background: var(--blue); }
.map-node.selected { opacity: 1; }
.map-panel::before { opacity: .18; background-image: radial-gradient(circle at 50% 52%, rgba(255,253,248,.32) 0 1px, transparent 1px); background-size: 26px 26px; }
.map-panel::after { background: radial-gradient(circle at 50% 52%, transparent 0 18%, rgba(217,233,239,.08) 64%, rgba(217,233,239,.28) 100%); }
.map-status small { color: var(--ink-soft); font-size: 10px; font-weight: 800; }
.map-status a { display: inline-flex; width: fit-content; margin-top: 2px; color: var(--accent-dark); font-size: 10px; font-weight: 900; text-decoration: underline; text-underline-offset: 2px; }
.map-status [hidden] { display: none; }
.map-label-dom.is-preview { border-color: var(--accent); box-shadow: 0 4px 14px rgba(238,108,77,.22); }
.card-top-actions { display: grid; justify-items: end; gap: 6px; }
.card-map-select { min-height: 26px; padding: 3px 8px; border: 1px solid var(--teal); border-radius: 999px; background: var(--teal-soft); color: var(--ink); cursor: pointer; font-size: 10px; font-weight: 900; }
.card-map-select:hover, .card-map-select:focus-visible, .card-map-select[aria-pressed="true"] { background: var(--teal); color: #fff; }
.destination-card.is-selected { background: #fffaf5; box-shadow: 0 0 0 2px rgba(238,108,77,.32), var(--shadow); }
.destination-card.is-selected .card-title a { color: var(--accent-dark); }
.destination-card:focus-within { box-shadow: 0 0 0 2px rgba(39,143,139,.26), var(--shadow); }
.fallback-map[aria-hidden="true"] { visibility: hidden; }
.map-label-overlay { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.map-label-dom { position: absolute; transform: translate(-50%, calc(-100% - 13px)); display: inline-grid; gap: 1px; min-width: 58px; padding: 5px 8px 6px; border: 1px solid rgba(22, 132, 127, .5); border-radius: 7px; background: rgba(255, 253, 248, .94); color: var(--ink); box-shadow: 0 4px 12px rgba(18, 35, 43, .14); pointer-events: auto; cursor: pointer; text-align: left; }
.map-label-dom::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; border-right: 1px solid rgba(22, 132, 127, .5); border-bottom: 1px solid rgba(22, 132, 127, .5); background: inherit; transform: translateX(-50%) rotate(45deg); }
.map-label-dom strong { position: relative; z-index: 1; font-size: 12px; line-height: 1.1; white-space: nowrap; }
.map-label-dom span { position: relative; z-index: 1; color: var(--muted); font-size: 9px; font-weight: 800; white-space: nowrap; }
.map-label-dom.major { border-color: var(--teal); }
.map-label-dom.is-selected { border-color: var(--accent); background: var(--accent); color: #fff; }
.map-label-dom.is-selected::after { border-color: var(--accent); }
.map-label-dom.is-selected span { color: #fff; }
.map-label-dom:focus-visible { outline: 3px solid rgba(238, 108, 77, .55); outline-offset: 2px; }
.map-hub-label { position: absolute; transform: translate(13px, -50%); z-index: 6; padding: 6px 9px; border: 1px solid var(--accent); border-radius: 7px; background: rgba(255, 253, 248, .95); color: var(--accent-dark); box-shadow: 0 4px 12px rgba(18, 35, 43, .14); font-size: 11px; font-weight: 900; white-space: nowrap; pointer-events: none; }
.map-geography-note { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }

@media (max-width: 980px) {
  .map-panel { min-height: 480px; }
}

@media (max-width: 620px) {
  .map-panel { min-height: 420px; }
  .fallback-map .map-label:not(.major) { display: none; }
  .map-label-dom:not(.major):not(.is-selected) { display: none; }
  .map-label-dom { padding: 4px 7px 5px; }
  .map-label-dom strong { font-size: 11px; }
  .map-hub-label { font-size: 10px; }
  .card-top-actions { gap: 4px; }
  .card-map-select { min-height: 24px; font-size: 9px; }
}
