/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS
════════════════════════════════════════════════════════════ */
:root {
  --bg: #070d16;
  --bg-ambient-gold: rgba(201, 165, 90, 0.12);
  --bg-ambient-teal: rgba(77, 184, 166, 0.09);
  --bg-ambient-depth: rgba(0, 0, 0, 0.3);
  --bg-gradient-start: #0a1520;
  --bg-gradient-mid: #070c14;
  --bg-gradient-end: #050a11;
  --grid-line: rgba(201, 165, 90, 0.025);
  --grid-mask: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6) 20%, rgba(0, 0, 0, 0.4) 80%, transparent);
  --surface: rgba(9, 17, 28, 0.88);
  --surface-strong: rgba(11, 22, 36, 0.97);
  --surface-soft: rgba(15, 27, 43, 0.70);
  --border: rgba(183, 155, 105, 0.13);
  --border-strong: rgba(183, 155, 105, 0.28);
  --gold: #c9a55a;
  --gold-faint: rgba(201, 165, 90, 0.04);
  --gold-muted: rgba(201, 165, 90, 0.05);
  --gold-subtle: rgba(201, 165, 90, 0.06);
  --gold-soft-border: rgba(201, 165, 90, 0.25);
  --gold-border: rgba(201, 165, 90, 0.3);
  --gold-border-mid: rgba(201, 165, 90, 0.32);
  --gold-border-strong: rgba(201, 165, 90, 0.45);
  --gold-border-max: rgba(201, 165, 90, 0.5);
  --gold-line: rgba(201, 165, 90, 0.35);
  --gold-sheen: rgba(201, 165, 90, 0.6);
  --gold-elevated: rgba(201, 165, 90, 0.09);
  --gold-strong-surface: rgba(201, 165, 90, 0.1);
  --gold-stronger-surface: rgba(201, 165, 90, 0.12);
  --gold-hover-surface: rgba(201, 165, 90, 0.14);
  --gold-soft: rgba(201, 165, 90, 0.10);
  --gold-glow: rgba(201, 165, 90, 0.18);
  --teal: #4db8a6;
  --teal-surface: rgba(77, 184, 166, 0.1);
  --teal-surface-hover: rgba(77, 184, 166, 0.06);
  --teal-surface-strong: rgba(77, 184, 166, 0.18);
  --teal-border: rgba(77, 184, 166, 0.35);
  --teal-border-strong: rgba(77, 184, 166, 0.55);
  --blue: #7aadff;
  --sand: #eddfc0;
  --violet: #a88eff;
  --amber: #d09450;
  --green: #4db882;
  --rose: #e06b8b;
  --purple: #9b6bd6;
  --platinum: #d8d3ca;
  --text: #f0ebe2;
  --text-secondary: #8a9aaa;
  --text-dim: #54647a;
  --text-soft: rgba(240, 235, 226, 0.72);
  --surface-overlay-subtle: rgba(255, 255, 255, 0.02);
  --surface-overlay: rgba(255, 255, 255, 0.03);
  --surface-overlay-strong: rgba(255, 255, 255, 0.04);
  --surface-overlay-stronger: rgba(255, 255, 255, 0.045);
  --surface-overlay-hover: rgba(255, 255, 255, 0.05);
  --surface-border-subtle: rgba(255, 255, 255, 0.06);
  --surface-border-soft: rgba(255, 255, 255, 0.07);
  --surface-border-strong: rgba(255, 255, 255, 0.08);
  --intro-overlay: rgba(4, 8, 14, 0.78);
  --intro-stage-border: rgba(183, 155, 105, 0.22);
  --intro-stage-border-top: rgba(183, 155, 105, 0.35);
  --intro-stage-bg: rgba(7, 13, 22, 0.97);
  --intro-stage-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 48px 120px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(201, 165, 90, 0.06);
  --intro-orb-gold: radial-gradient(circle, rgba(201, 165, 90, 0.18) 0%, transparent 65%);
  --intro-orb-teal: radial-gradient(circle, rgba(77, 184, 166, 0.14) 0%, transparent 65%);
  --control-bg: rgba(255, 255, 255, 0.04);
  --control-border: rgba(255, 255, 255, 0.07);
  --control-border-hover: rgba(255, 255, 255, 0.14);
  --control-chip-bg: rgba(255, 255, 255, 0.05);
  --panel-highlight: inset 0 1px 0 rgba(201, 165, 90, 0.05);
  --panel-border-top: rgba(201, 165, 90, 0.22);
  --focus-ring: 0 0 0 3px rgba(201, 165, 90, 0.1);
  --popup-surface: #0d1c2e;
  --popup-text: #f2ede5;
  --popup-border: rgba(183, 155, 105, 0.18);
  --popup-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --attribution-bg: rgba(6, 16, 26, 0.8);
  --google: #4285f4;
  --google-border: rgba(66, 133, 244, 0.25);
  --google-border-strong: rgba(66, 133, 244, 0.45);
  --google-surface: rgba(66, 133, 244, 0.06);
  --google-surface-hover: rgba(66, 133, 244, 0.12);
  --green-border: rgba(77, 184, 130, 0.3);
  --green-surface: rgba(77, 184, 130, 0.08);
  --blue-border: rgba(122, 173, 255, 0.3);
  --blue-surface: rgba(122, 173, 255, 0.08);
  --violet-border: rgba(168, 142, 255, 0.3);
  --violet-surface: rgba(168, 142, 255, 0.08);
  --amber-border: rgba(212, 152, 80, 0.3);
  --amber-surface: rgba(212, 152, 80, 0.08);
  --rose-border: rgba(224, 107, 139, 0.35);
  --rose-line: rgba(224, 107, 139, 0.5);
  --rose-surface: rgba(224, 107, 139, 0.06);
  --rose-badge-surface: rgba(224, 107, 139, 0.1);
  --purple-border: rgba(155, 107, 214, 0.35);
  --purple-surface: rgba(155, 107, 214, 0.1);
  --legend-east-asia: #e8a235;
  --legend-se-asia: #e07248;
  --legend-europe: #9b7ee8;
  --legend-americas: #4b95e0;
  --legend-oceania: #5ec9aa;
  --legend-love-rest: #e06b8b;
  --legend-love-hotel: #9b6bd6;
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6a7a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.32);
  --floating-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  --sheet-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
  --legend-dot-border: rgba(0, 0, 0, 0.3);
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --nav-h: 52px;
  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans: "Figtree", system-ui, sans-serif;
}

[data-theme='light'] {
  --bg: #f5f5f5;
  --bg-ambient-gold: rgba(212, 175, 55, 0.12);
  --bg-ambient-teal: rgba(77, 184, 166, 0.08);
  --bg-ambient-depth: rgba(255, 255, 255, 0.42);
  --bg-gradient-start: #ffffff;
  --bg-gradient-mid: #fafafa;
  --bg-gradient-end: #f1f1f1;
  --grid-line: rgba(212, 175, 55, 0.045);
  --grid-mask: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.4) 20%, rgba(0, 0, 0, 0.2) 80%, transparent);
  --surface: #fafafa;
  --surface-strong: #ffffff;
  --surface-soft: #f4f4f4;
  --border: #e0e0e0;
  --border-strong: #d2d2d2;
  --gold: #d4af37;
  --gold-faint: rgba(212, 175, 55, 0.05);
  --gold-muted: rgba(212, 175, 55, 0.07);
  --gold-subtle: rgba(212, 175, 55, 0.08);
  --gold-soft-border: rgba(212, 175, 55, 0.22);
  --gold-border: rgba(212, 175, 55, 0.3);
  --gold-border-mid: rgba(212, 175, 55, 0.34);
  --gold-border-strong: rgba(212, 175, 55, 0.42);
  --gold-border-max: rgba(212, 175, 55, 0.48);
  --gold-line: rgba(212, 175, 55, 0.34);
  --gold-sheen: rgba(212, 175, 55, 0.54);
  --gold-elevated: rgba(212, 175, 55, 0.12);
  --gold-strong-surface: rgba(212, 175, 55, 0.14);
  --gold-stronger-surface: rgba(212, 175, 55, 0.16);
  --gold-hover-surface: rgba(212, 175, 55, 0.18);
  --gold-soft: rgba(212, 175, 55, 0.12);
  --gold-glow: rgba(212, 175, 55, 0.2);
  --text: #1a1a1a;
  --text-secondary: #333333;
  --text-dim: #666666;
  --text-soft: rgba(26, 26, 26, 0.72);
  --surface-overlay-subtle: rgba(26, 26, 26, 0.025);
  --surface-overlay: rgba(26, 26, 26, 0.03);
  --surface-overlay-strong: rgba(26, 26, 26, 0.045);
  --surface-overlay-stronger: rgba(26, 26, 26, 0.055);
  --surface-overlay-hover: rgba(26, 26, 26, 0.065);
  --surface-border-subtle: #ebebeb;
  --surface-border-soft: #e4e4e4;
  --surface-border-strong: #dddddd;
  --intro-overlay: rgba(245, 245, 245, 0.84);
  --intro-stage-border: #e0e0e0;
  --intro-stage-border-top: #d6d6d6;
  --intro-stage-bg: #ffffff;
  --intro-stage-shadow:
    0 0 0 1px rgba(26, 26, 26, 0.04),
    0 28px 64px rgba(18, 27, 39, 0.1),
    0 0 40px rgba(212, 175, 55, 0.08);
  --control-bg: rgba(26, 26, 26, 0.03);
  --control-border: #e0e0e0;
  --control-border-hover: rgba(212, 175, 55, 0.5);
  --control-chip-bg: rgba(26, 26, 26, 0.05);
  --panel-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --panel-border-top: rgba(212, 175, 55, 0.22);
  --focus-ring: 0 0 0 3px rgba(212, 175, 55, 0.14);
  --popup-surface: #ffffff;
  --popup-text: #1a1a1a;
  --popup-border: #e0e0e0;
  --popup-shadow: 0 12px 28px rgba(18, 27, 39, 0.14);
  --attribution-bg: rgba(250, 250, 250, 0.92);
  --shadow: 0 16px 40px rgba(18, 27, 39, 0.08);
  --shadow-sm: 0 8px 20px rgba(18, 27, 39, 0.06);
  --floating-shadow: 0 12px 24px rgba(18, 27, 39, 0.08);
  --sheet-shadow: 0 -8px 24px rgba(18, 27, 39, 0.12);
  --legend-dot-border: rgba(26, 26, 26, 0.22);
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666666' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ═══════════════════════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 55% 38% at 0% 0%, var(--bg-ambient-gold) 0%, transparent 58%),
    radial-gradient(ellipse 42% 30% at 100% 8%, var(--bg-ambient-teal) 0%, transparent 52%),
    radial-gradient(ellipse 30% 50% at 50% 100%, var(--bg-ambient-depth) 0%, transparent 70%),
    linear-gradient(175deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
  color: var(--text);
  font: 15px/1.65 var(--sans);
  transition: background-color 0.28s ease, color 0.28s ease;
}

body.intro-active {
  overflow: hidden;
}

/* Subtle diagonal grid overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: var(--grid-mask);
  transition: opacity 0.28s ease;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

/* Non-selectable interactive elements */
button,
select,
input,
.primary-link,
.toolbar-toggle,
.ghost-btn,
.download-btn,
.inline-link,
#map,
#stays-map,
#love-map,
#tft-map,
.leaflet-container,
.intro-choice {
  -webkit-user-select: none;
  user-select: none;
}

/* Fix white bars on map: override Leaflet's default #ddd background */
.leaflet-container {
  background: var(--bg) !important;
}

/* Selectable content */
.focus-body,
.table-scroll th,
.table-scroll td,
.mobile-card,
.empty-state,
.empty-table,
.context-copy,
.brief-card {
  -webkit-user-select: text;
  user-select: text;
}


/* ═══════════════════════════════════════════════════════════
   INTRO GATE
════════════════════════════════════════════════════════════ */
.intro-gate {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--intro-overlay);
  backdrop-filter: blur(32px) saturate(1.3);
  transition: background-color 0.28s ease;
}

.intro-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.intro-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
}

.intro-orb-gold {
  top: -10%;
  right: -5%;
  width: 55vw;
  height: 55vw;
  max-width: 700px;
  max-height: 700px;
  background: var(--intro-orb-gold);
}

.intro-orb-teal {
  bottom: -10%;
  left: -5%;
  width: 45vw;
  height: 45vw;
  max-width: 580px;
  max-height: 580px;
  background: var(--intro-orb-teal);
}

.intro-stage {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 44px 40px 36px;
  border: 1px solid var(--intro-stage-border);
  border-top: 1px solid var(--intro-stage-border-top);
  border-radius: 28px;
  background: var(--intro-stage-bg);
  box-shadow: var(--intro-stage-shadow);
  animation: gate-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition:
    background-color 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

/* Thin gold shimmer line at top of intro card */
.intro-stage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-sheen), transparent);
  border-radius: 0 0 2px 2px;
}

@keyframes gate-rise {
  from { opacity: 0; transform: scale(0.96) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.intro-skip {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 16px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  background: var(--control-bg);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.intro-skip:hover {
  border-color: var(--control-border-hover);
  color: var(--text);
}

.intro-header {
  margin-bottom: 28px;
}

.intro-question {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.0;
  color: var(--text);
}

.intro-subtitle {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.intro-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.intro-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-overlay-subtle);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease;
  animation: choice-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.intro-choice:nth-child(1) { animation-delay: 0.10s; }
.intro-choice:nth-child(2) { animation-delay: 0.18s; }
.intro-choice:nth-child(3) { animation-delay: 0.26s; }
.intro-choice:nth-child(4) { animation-delay: 0.34s; }

@keyframes choice-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.intro-choice:hover {
  border-color: var(--gold-border-mid);
  background: var(--gold-subtle);
  transform: translateY(-3px);
  box-shadow: var(--floating-shadow), 0 0 0 1px var(--gold-soft);
}

.choice-label {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
  line-height: 1.1;
}

.choice-desc {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.intro-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.intro-guide-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-overlay-subtle);
}

.guide-step {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--gold-border-mid);
  border-radius: 999px;
  background: var(--gold-subtle);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.intro-guide-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-guide-card p {
  margin: 7px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.55;
}

.intro-trust-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.intro-trust-panel div {
  padding: 14px 16px;
  border: 1px solid var(--gold-soft);
  border-radius: 14px;
  background: var(--gold-subtle);
}

.intro-trust-panel strong,
.intro-trust-panel span {
  display: block;
}

.intro-trust-panel strong {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-trust-panel span {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.intro-skip-bottom {
  display: block;
  margin: 20px auto 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.intro-skip-bottom:hover {
  color: var(--text-secondary);
}


/* ═══════════════════════════════════════════════════════════
   PAGE SHELL
════════════════════════════════════════════════════════════ */
.page-shell {
  position: relative;
  max-width: 1520px;
  margin: 0 auto;
  padding: 20px 20px 48px;
}


/* ═══════════════════════════════════════════════════════════
   APP HEADER (luxury masthead)
════════════════════════════════════════════════════════════ */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
  padding: 18px 2px 16px;
  border-bottom: 1px solid var(--border);
  animation: fade-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.app-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.app-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text);
  line-height: 1.1;
}

.app-eyebrow {
  margin: 0;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.app-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}


/* ═══════════════════════════════════════════════════════════
   APP NAV (editorial underline tabs + scope sub-tabs)
════════════════════════════════════════════════════════════ */

/* Override panel-surface when on app-nav */
.app-nav.panel-surface {
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  border-radius: 0;
}

.app-nav {
  margin-bottom: 0;
  padding: 0 2px;
  animation: fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.06s;
}

.primary-nav {
  display: flex;
  align-items: flex-end;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.primary-nav::-webkit-scrollbar {
  display: none;
}

.primary-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px 12px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: color 0.2s ease;
}

.primary-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 22px;
  right: 22px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: left;
}

.primary-link:hover {
  color: var(--text-secondary);
}

.primary-link.active {
  color: var(--gold);
  font-weight: 700;
}

.primary-link.active::after {
  transform: scaleX(1);
}


/* ═══════════════════════════════════════════════════════════
   CONTEXT STRIP (editorial section header)
════════════════════════════════════════════════════════════ */
.context-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  align-items: end;
  gap: 24px;
  margin-bottom: 16px;
  padding: 24px 2px 0;
  animation: fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.10s;
}

.context-copy {
  min-width: 0;
}

.context-title {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.0;
  color: var(--text);
}

.context-desc {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 68ch;
  line-height: 1.55;
}

.summary-strip-text-inline {
  margin: 0 0 4px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-dim);
  max-width: 44ch;
  text-align: right;
  letter-spacing: 0.04em;
  line-height: 1.45;
}


/* ═══════════════════════════════════════════════════════════
   PROGRAM BRIEF (stubbed sections)
════════════════════════════════════════════════════════════ */
.program-brief {
  margin-bottom: 14px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.program-brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.brief-card {
  padding: 18px;
  border: 1px solid var(--surface-border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  transition: background-color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.brief-kicker {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brief-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.15;
}

.brief-copy {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.brief-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}


/* ═══════════════════════════════════════════════════════════
   SURFACE & PANEL SYSTEM
════════════════════════════════════════════════════════════ */
.panel-surface,
.map-panel,
.focus-panel,
.table-panel,
.mobile-results-panel {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow), var(--panel-highlight);
  backdrop-filter: blur(24px);
  transition:
    background-color 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    color 0.28s ease;
}

.map-panel,
.focus-panel,
.table-panel,
.mobile-results-panel {
  border-radius: var(--radius-xl);
  border-top-color: var(--panel-border-top);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.panel-head h2 {
  margin: 0 0 2px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
}

.panel-head p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.table-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface-strong);
}

.table-search-wrap {
  flex-shrink: 0;
}

.table-search-input {
  padding: 6px 10px;
  border: 1px solid var(--surface-border-soft);
  border-radius: var(--radius-xs);
  background: var(--control-bg);
  color: var(--text);
  font: 13px/1 "Figtree", sans-serif;
  width: 180px;
  transition: border-color 0.18s, box-shadow 0.18s, background-color 0.28s ease, color 0.28s ease;
}

.table-search-input:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: var(--focus-ring);
}

.table-search-input::placeholder {
  color: var(--text-dim);
}


/* ═══════════════════════════════════════════════════════════
   SUMMARY STRIP
════════════════════════════════════════════════════════════ */
.summary-strip {
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  animation: fade-up 0.6s ease both;
  animation-delay: 0.1s;
}

.summary-strip-text {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}


/* ═══════════════════════════════════════════════════════════
   EXPLORER GRID (map + detail panel)
════════════════════════════════════════════════════════════ */
.explorer-grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 380px);
  gap: 12px;
  margin-bottom: 12px;
  animation: fade-up 0.6s ease both;
  animation-delay: 0.12s;
}

.map-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#map,
#stays-map,
#love-map,
#tft-map {
  flex: 1;
  min-height: 440px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.map-downloads {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 8px 14px;
  border-top: 1px solid var(--border);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--legend-dot-border);
  flex-shrink: 0;
}

.legend-east-asia  { background: var(--legend-east-asia); }
.legend-se-asia    { background: var(--legend-se-asia); }
.legend-europe     { background: var(--legend-europe); }
.legend-americas   { background: var(--legend-americas); }
.legend-oceania    { background: var(--legend-oceania); }
.legend-love-rest  { background: var(--legend-love-rest); }
.legend-love-hotel { background: var(--legend-love-hotel); }
.legend-tft-available { background: var(--teal); }
.legend-tft-no-match  { background: var(--gold); }
.legend-tft-pending   { background: #c9a55a; }

.tft-marker-dot {
  pointer-events: none;
  transform-origin: center;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    width 0.16s ease,
    height 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease;
  will-change: opacity, transform;
}

.focus-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.focus-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.tft-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 12px;
  margin-bottom: 12px;
  animation: fade-up 0.6s ease both;
  animation-delay: 0.12s;
}

.tft-main-stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

.tft-map-panel {
  overflow: hidden;
}

.tft-list-panel {
  overflow: hidden;
}

.tft-alert-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 16px 12px;
  padding: 12px 14px;
  border: 1px solid var(--surface-border-soft);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.tft-alert-panel[hidden] {
  display: none;
}

.tft-alert-panel h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
}

.tft-alert-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.tft-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
  margin: 0 16px 12px;
}

.tft-toolbar .search-wrap {
  min-width: min(100%, 220px);
}

.tft-results-list {
  max-height: 620px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}

.tft-card {
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}

.tft-card.active {
  border-left: 3px solid var(--teal);
}

.tft-status-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.tft-venue-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 14px;
  border: 1px solid var(--surface-border-soft);
  border-radius: var(--radius-md);
  background: var(--surface-overlay);
  object-fit: cover;
}

.tft-profile-desc {
  margin: 10px 0 12px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-line;
}

.tft-calendar-card,
.tft-calendar-empty {
  margin: 14px 0 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, var(--surface-overlay), transparent),
    var(--surface-soft);
}

.tft-calendar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tft-calendar-months {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.tft-month-pager {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

.tft-month-pager span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.tft-month-btn {
  min-height: 34px;
  padding: 6px 10px;
}

.tft-month-btn:disabled {
  cursor: default;
  opacity: 0.45;
}

.tft-calendar-month h5 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.tft-calendar-card h4,
.tft-calendar-empty h4 {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
}

.tft-calendar-empty p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.tft-calendar-weekdays,
.tft-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.tft-calendar-weekdays {
  margin-bottom: 6px;
}

.tft-calendar-weekdays span {
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.tft-calendar-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  min-height: 54px;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--surface-border-strong);
  border-radius: var(--radius-xs);
  background: var(--surface-overlay);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  text-align: left;
}

button.tft-calendar-cell {
  appearance: none;
  cursor: pointer;
  font: inherit;
}

button.tft-calendar-cell:hover {
  border-color: var(--teal);
}

.tft-calendar-cell.is-empty {
  border-color: transparent;
  background: transparent;
}

.tft-calendar-cell.is-seen {
  border-color: var(--gold-border);
  background: var(--gold-subtle);
  color: var(--gold);
}

.tft-calendar-cell.is-available {
  border-color: var(--teal-border-strong);
  background: var(--teal-surface-strong);
  color: var(--teal);
}

.tft-calendar-cell.is-selected {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.tft-day-number {
  line-height: 1;
}

.tft-day-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  width: 100%;
}

.tft-session-pill {
  display: inline-flex;
  max-width: 100%;
  overflow: hidden;
  padding: 2px 4px;
  border-radius: 4px;
  background: var(--surface-overlay);
  color: var(--text);
  font-size: 9px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tft-date-detail {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--surface-border-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-overlay);
}

.tft-date-detail h5 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.tft-date-detail p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.tft-date-session {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 6px 0;
}

.tft-time-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tft-time-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 7px;
  border: 1px solid var(--teal-border);
  border-radius: 5px;
  background: var(--teal-surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
}

.tft-time-chip em {
  color: var(--text-secondary);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}

.tft-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 11px;
}

.tft-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tft-calendar-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.tft-calendar-legend i.is-seen {
  background: var(--gold);
}

.tft-calendar-legend i.is-available {
  background: var(--teal);
}

.tft-calendar-legend i.is-selected {
  background: var(--gold);
}

.tft-calendar-meals {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--surface-border-soft);
}

.focus-note-warn {
  border-color: var(--amber-border);
  background: var(--amber-surface);
}


/* ═══════════════════════════════════════════════════════════
   FILTER TOOLBAR
════════════════════════════════════════════════════════════ */
.map-filter-shell {
  padding: 12px 16px 0;
}

.toolbar-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  margin-bottom: 10px;
}

.toolbar-toggle-title {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toolbar-toggle-meta {
  display: block;
  margin-top: 1px;
  color: var(--text-secondary);
  font-size: 12px;
}

.toolbar-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--control-chip-bg);
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  transition: background-color 0.28s ease, color 0.28s ease;
}

/* Toolbar filter grid */
.toolbar {
  display: none;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--surface-border-soft);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  min-width: 0;
  transition: background-color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.toolbar.is-open {
  display: grid;
  grid-template-columns: 1fr;
  animation: fade-up 0.2s ease both;
}

.toolbar.tft-toolbar {
  display: grid;
}

.tft-toolbar-toggle {
  display: none;
}

.tft-toolbar .filter-actions {
  grid-column: auto;
}

@media (min-width: 600px) {
  .toolbar.is-open {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-actions {
    grid-column: span 2;
  }
}

/* Date filters side by side */
.filter-date-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  grid-column: span 2;
  min-width: 0;
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  grid-column: span 2;
  padding-top: 2px;
  min-width: 0;
}

/* 3-column filter grid on wide screens when open */
@media (min-width: 1100px) {
  .toolbar.is-open {
    grid-template-columns: repeat(3, 1fr);
    padding: 10px 12px;
    gap: 6px;
    margin-bottom: 8px;
  }
  .filter-actions {
    grid-column: span 3;
  }
}

/* Form controls */
.label {
  display: block;
  color: var(--text-dim);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.search-wrap,
.filter-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.search-wrap input,
.filter-wrap select,
.filter-wrap input[type="date"],
.filter-wrap input[type="time"],
.filter-wrap input[type="number"] {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 7px 10px;
  border: 1px solid var(--surface-border-soft);
  border-radius: var(--radius-xs);
  background: var(--surface-strong);
  color: var(--text);
  font-size: 12px;
  transition: border-color 0.18s, background-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease;
  appearance: none;
  -webkit-appearance: none;
}

.search-wrap input:focus,
.filter-wrap select:focus,
.filter-wrap input[type="date"]:focus,
.filter-wrap input[type="time"]:focus,
.filter-wrap input[type="number"]:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: var(--focus-ring);
}

.filter-wrap select {
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--gold-faint);
  color: var(--text-secondary);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.ghost-btn:hover {
  border-color: var(--border-strong);
  background: var(--gold-elevated);
  color: var(--text);
}

.theme-toggle {
  gap: 8px;
  min-width: 92px;
}

.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  font-size: 14px;
  line-height: 1;
}

.theme-toggle-label {
  min-width: 36px;
  text-align: left;
}

.ghost-btn.secondary {
  width: auto;
  padding: 7px 14px;
  font-size: 11px;
  letter-spacing: 0.10em;
}


/* ═══════════════════════════════════════════════════════════
   TABLE PANEL
════════════════════════════════════════════════════════════ */
.table-shell {
  margin-bottom: 12px;
}

.table-panel {
  display: none;
}

.table-panel.is-open {
  display: block;
  animation: fade-up 0.22s ease both;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--surface-overlay-subtle);
}

tr.active td {
  background: var(--gold-muted);
}

tr {
  cursor: pointer;
}

.table-title {
  font-weight: 600;
  color: var(--text);
}

.table-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-secondary);
}

.empty-table {
  padding: 32px;
  text-align: center;
  color: var(--text-secondary);
}

.table-rating {
  font-weight: 700;
  color: var(--google);
  font-size: 13px;
}

.table-rating-count {
  font-weight: 400;
  color: var(--text-dim);
  font-size: 11px;
}


/* ═══════════════════════════════════════════════════════════
   MOBILE RESULTS PANEL
════════════════════════════════════════════════════════════ */
.mobile-results-panel {
  display: none;
}

.mobile-results-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mobile-card {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.18s ease;
  animation: fade-up 0.35s ease both;
}

.mobile-card:last-child {
  border-bottom: none;
}

.mobile-card:hover {
  background: var(--surface-overlay-subtle);
}

.mobile-card.active {
  background: var(--gold-muted);
}

.mobile-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.mobile-card-kicker {
  margin-bottom: 4px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}

.mobile-card-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.3;
}

.mobile-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.mobile-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.mobile-card-title {
  margin: 0 0 2px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
}

.mobile-card-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

.mobile-card-address {
  margin: 8px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.mobile-card-transit {
  margin: 4px 0;
  font-size: 12px;
  color: var(--text-dim);
}

.mobile-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mobile-price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.mobile-price-card {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}


/* ═══════════════════════════════════════════════════════════
   FOCUS CARD (selected venue detail)
════════════════════════════════════════════════════════════ */
.focus-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.focus-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
}

.focus-title-block {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Tabelog prominent badge in venue title row */
.tabelog-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding: 8px 12px;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  background: var(--gold-subtle);
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s;
}

.tabelog-badge:hover {
  background: var(--gold-hover-surface);
  border-color: var(--gold-border-max);
}

.tabelog-stars {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--gold);
  line-height: 1;
}

.tabelog-meta {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  white-space: nowrap;
}

/* Container for rating badges (Tabelog + Google) side by side */
.focus-ratings {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

/* Google Maps rating badge */
.google-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding: 8px 12px;
  border: 1px solid var(--google-border);
  border-radius: var(--radius-sm);
  background: var(--google-surface);
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s;
}

a.google-badge:hover {
  background: var(--google-surface-hover);
  border-color: var(--google-border-strong);
}

.google-stars {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--google);
  line-height: 1;
}

.google-meta {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  white-space: nowrap;
}

/* Inline Google rating in mobile list cards */
.card-google-rating {
  font-size: 11px;
  font-weight: 600;
  color: var(--google);
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-card-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.mobile-card-desc {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
  font-style: italic;
}

.tft-card .mobile-card-desc {
  font-family: var(--sans);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.card-region-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Primary action (Google Maps) stands out */
.inline-link.primary-action {
  background: var(--teal-surface);
  border-color: var(--teal-border);
  color: var(--teal);
  font-weight: 700;
}

.inline-link.primary-action:hover {
  background: var(--teal-surface-strong);
  border-color: var(--teal-border-strong);
}

.focus-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
  min-width: 0;
  color: var(--text);
}

/* Love Dining card detail sections */
.focus-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
}

.focus-section {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.focus-row {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.focus-label {
  flex-shrink: 0;
  min-width: 56px;
  font-weight: 600;
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 1px;
}

.focus-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.focus-address {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.focus-transit {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.focus-summary {
  margin: 12px 0;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.62;
}

.focus-summary-ai {
  font-style: italic;
  color: var(--text-soft);
}

.focus-note {
  margin: 10px 0;
  padding: 10px 14px;
  border-left: 2px solid var(--gold-line);
  background: var(--gold-faint);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.focus-note-warn {
  border-left-color: var(--rose-line);
  background: var(--rose-surface);
}

.credit-terms {
  margin: 12px 0;
  border: 1px solid var(--surface-border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-overlay);
  overflow: hidden;
}

.credit-terms summary {
  cursor: pointer;
  list-style-position: inside;
  padding: 10px 14px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.credit-terms summary:hover {
  color: var(--gold);
  background: var(--gold-faint);
}

.credit-terms-content {
  padding: 0 14px 14px;
  border-top: 1px solid var(--border);
}

.credit-terms-intro {
  margin: 12px 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.credit-terms-intro a {
  display: inline-block;
  margin-left: 8px;
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.credit-terms-warning {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-left: 2px solid var(--rose-line);
  background: var(--rose-surface);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.credit-terms-list {
  display: grid;
  gap: 10px;
}

.credit-terms-item h4 {
  margin: 0 0 3px;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1.25;
}

.credit-terms-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.focus-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.price-card {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.price-label {
  display: block;
  margin-bottom: 4px;
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price-tier {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.price-raw {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.stay-detail-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.stay-detail-grid .price-card {
  position: relative;
  padding: 15px 16px 15px 18px;
  overflow: hidden;
}

.stay-detail-grid .price-card::before {
  content: "";
  position: absolute;
  inset: 14px auto 14px 0;
  width: 3px;
  border-radius: 999px;
  background: var(--gold);
}

.stay-detail-grid .price-tier {
  font-size: 15px;
  line-height: 1.4;
}

.stay-detail-grid .price-raw {
  margin-top: 6px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.stay-detail-grid .meta-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
}

.cell-muted {
  color: var(--text-dim);
}


/* ═══════════════════════════════════════════════════════════
   QUALITY SIGNALS (Tabelog / Google)
════════════════════════════════════════════════════════════ */
.signal-section {
  margin: 12px 0;
}

.signal-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.signal-card {
  flex: 1;
  min-width: 130px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.signal-source {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.signal-rating {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--gold);
  text-decoration: none;
}

.signal-rating:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.signal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.signal-meta span {
  font-size: 11px;
  color: var(--text-secondary);
}

.signal-note {
  margin-top: 5px;
  font-size: 11px;
  color: var(--text-dim);
}


/* ═══════════════════════════════════════════════════════════
   BADGES & TAGS
════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--surface-border-soft);
  border-radius: 999px;
  background: var(--surface-overlay-stronger);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge.gold {
  border-color: var(--gold-border);
  background: var(--gold-strong-surface);
  color: var(--gold);
}

.badge.amber {
  border-color: var(--amber-border);
  background: var(--amber-surface);
  color: var(--amber);
}

.badge.green {
  border-color: var(--green-border);
  background: var(--green-surface);
  color: var(--green);
}

.badge.blue {
  border-color: var(--blue-border);
  background: var(--blue-surface);
  color: var(--blue);
}

.badge.purple {
  border-color: var(--violet-border);
  background: var(--violet-surface);
  color: var(--violet);
}

.badge.love-rest {
  border-color: var(--rose-border);
  background: var(--rose-badge-surface);
  color: var(--rose);
}

.badge.love-hotel {
  border-color: var(--purple-border);
  background: var(--purple-surface);
  color: var(--purple);
}

.venue-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag-section {
  margin: 10px 0;
}

.tag-section-label {
  margin-bottom: 6px;
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* ═══════════════════════════════════════════════════════════
   INLINE LINKS & DOWNLOAD BUTTONS
════════════════════════════════════════════════════════════ */
.inline-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--gold-soft-border);
  border-radius: 999px;
  background: var(--gold-subtle);
  color: var(--gold);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.15s ease;
}

.inline-link:hover {
  border-color: var(--gold-border-strong);
  background: var(--gold-stronger-surface);
  transform: translateY(-1px);
}

.inline-link.compact {
  padding: 5px 10px;
  font-size: 12px;
}

.inline-link.subtle {
  border-color: var(--surface-border-strong);
  background: var(--surface-overlay);
  color: var(--text-secondary);
}

.meta-link {
  color: var(--text-dim);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stat-label {
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.download-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--surface-border-strong);
  border-radius: 999px;
  background: var(--surface-overlay);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: border-color 0.18s, color 0.18s, transform 0.15s;
}

.download-btn:hover {
  border-color: var(--border);
  color: var(--text);
  transform: translateY(-1px);
}

.download-btn.primary {
  border-color: var(--gold-soft-border);
  color: var(--gold);
}


/* ═══════════════════════════════════════════════════════════
   EMPTY STATES
════════════════════════════════════════════════════════════ */
.empty-state {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.empty-state.map-cta {
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.map-cta-icon {
  font-size: 28px;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 8px;
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 0.9; transform: scale(1.12); }
}

.map-cta-heading {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}

.map-cta-sub {
  margin: 0;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════
   LEAFLET POPUP
════════════════════════════════════════════════════════════ */
.leaflet-popup .leaflet-popup-content-wrapper,
.leaflet-popup-content-wrapper {
  background: var(--popup-surface) !important;
  border: 1px solid var(--popup-border) !important;
  border-radius: 14px !important;
  box-shadow: var(--popup-shadow) !important;
  color: var(--popup-text) !important;
}

.leaflet-popup .leaflet-popup-tip,
.leaflet-popup-tip {
  background: var(--popup-surface) !important;
}

.leaflet-popup .leaflet-popup-content,
.leaflet-popup-content {
  margin: 12px 16px !important;
  font: 13px/1.5 "Figtree", sans-serif !important;
  color: var(--popup-text) !important;
}

.popup-card {
  font-size: 13px;
}

.popup-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 4px;
  line-height: 1.2;
}

.popup-card div {
  color: var(--text-secondary);
  margin-top: 2px;
}

.popup-card a {
  color: var(--gold);
  text-decoration: none;
}

.popup-card a:hover {
  text-decoration: underline;
}

.popup-card p {
  margin: 6px 0 0;
}

.leaflet-control-zoom a {
  background: var(--surface-strong) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

.leaflet-control-attribution {
  background: var(--attribution-bg) !important;
  color: var(--text-dim) !important;
  font-size: 10px !important;
}

.leaflet-control-attribution a {
  color: var(--text-dim) !important;
}

.marker-cluster.benefit-marker-cluster {
  background: rgba(201, 165, 90, 0.18);
  border-radius: 999px;
}

.marker-cluster.benefit-marker-cluster .benefit-cluster-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: var(--gold);
  box-shadow:
    0 0 0 4px rgba(201, 165, 90, 0.18),
    0 10px 22px rgba(0, 0, 0, 0.38);
  color: #08111a;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.marker-cluster.benefit-marker-cluster-medium .benefit-cluster-inner {
  font-size: 14px;
}

.marker-cluster.benefit-marker-cluster-large .benefit-cluster-inner {
  font-size: 15px;
}


/* ═══════════════════════════════════════════════════════════
   SHARED TYPOGRAPHY
════════════════════════════════════════════════════════════ */
h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  letter-spacing: -0.01em;
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Preset strip (stay filter) */
.preset-wrap {
  display: flex;
  flex-direction: column;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */

/* Tablet breakpoint */
@media (max-width: 1024px) {
  .explorer-grid {
    grid-template-columns: 1fr;
  }

  .tft-grid {
    grid-template-columns: 1fr;
  }

  .program-brief-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile breakpoint */
@media (max-width: 820px) {
  .page-shell {
    padding: 14px 14px 48px;
  }

  .app-header {
    margin-bottom: 0;
    padding: 14px 2px 12px;
  }

  .app-title {
    font-size: clamp(15px, 4vw, 18px);
  }

  /* Hide header clutter on mobile - map should fill screen */
  .context-strip,
  .context-title,
  .summary-strip,
  .map-instructions,
  .refine-panel {
    display: none !important;
  }

  /* Mobile: Map full screen with minimal bottom sheet */
  .explorer-grid {
    display: flex;
    flex-direction: column;
    position: relative;
    height: auto;
    min-height: calc(100vh - 50px);
    margin-bottom: 0;
  }

  .map-panel {
    position: relative;
    flex: none;
    min-height: 0;
    order: 1;
    z-index: 5;
  }

  .focus-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    order: 2;
    max-height: none;
    border-top: 1px solid var(--border);
    z-index: 1;
  }

  .focus-body {
    overflow: visible;
  }

  /* Drag handle indicator */
  .focus-panel::before {
    content: '';
    position: sticky;
    top: 0;
    display: block;
    width: 40px;
    height: 4px;
    background: var(--gold-soft);
    border-radius: 2px;
    margin: 12px auto 16px;
  }

  .mobile-results-panel {
    display: none;
  }

  .tft-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .tft-main-stack {
    display: contents;
  }

  .tft-map-panel {
    position: relative;
    order: 0;
    z-index: 5;
  }

  #table-for-two-explorer .tft-grid > .focus-panel {
    display: none;
    order: 1;
    scroll-margin-top: 10px;
    z-index: 1;
  }

  #table-for-two-explorer.has-tft-selection .tft-grid > .focus-panel {
    display: flex;
  }

  #table-for-two-explorer .tft-grid > .focus-panel .panel-head {
    padding: 12px 14px 8px;
  }

  #table-for-two-explorer .tft-grid > .focus-panel .focus-body {
    padding: 12px 14px 14px;
  }

  .tft-list-panel {
    position: relative;
    order: 2;
    z-index: 1;
  }

  .tft-toolbar-toggle {
    display: flex;
    margin: 0 12px 10px;
  }

  .toolbar.tft-toolbar {
    display: none;
  }

  .toolbar.tft-toolbar.is-open {
    display: grid;
  }

  .tft-toolbar {
    grid-template-columns: 1fr;
    margin: 0 12px 12px;
    padding: 12px;
  }

  .tft-alert-panel {
    align-items: flex-start;
    flex-direction: column;
    margin: 0 12px 12px;
  }

  .tft-calendar-weekdays,
  .tft-calendar-grid {
    gap: 4px;
  }

  .tft-calendar-cell {
    min-height: 46px;
    padding: 5px;
  }

  .tft-session-pill {
    font-size: 8px;
    padding: 1px 3px;
  }

  .tft-date-session {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .tft-results-list {
    max-height: none;
  }

  .table-shell {
    display: none;
  }

  /* Hide map panel header (Property map, Browse properties...) */
  .map-panel .panel-head {
    display: none !important;
  }

  /* Hide refine count text (All filters off) */
  .toolbar-toggle-meta {
    display: none !important;
  }

  /* Make toolbar dropdown on right side (aligned with filter button) */
  .map-filter-shell .toolbar {
    position: fixed;
    top: 50px;
    right: 8px;
    left: auto;
    width: min(320px, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
    z-index: 1999;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    background: rgba(7, 13, 22, 0.98);
    border-radius: 8px;
    border: 1px solid rgba(201, 165, 90, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    max-height: 60vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
    margin: 0;
  }

  .map-filter-shell .toolbar > .search-wrap,
  .map-filter-shell .toolbar > .filter-date-group,
  .map-filter-shell .toolbar > .filter-actions {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .map-filter-shell .toolbar > .filter-wrap {
    min-width: 0;
  }

  .map-filter-shell .toolbar .filter-date-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-filter-shell .toolbar .filter-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-top: 2px;
    padding-top: 10px;
    background: rgba(7, 13, 22, 0.98);
    box-shadow: 0 -10px 18px rgba(7, 13, 22, 0.92);
  }

  .map-filter-shell .toolbar .filter-actions .ghost-btn {
    flex: 1 1 120px;
    min-width: 0;
    min-height: 40px;
  }

  /* Make toolbar button compact and top-right (away from Leaflet zoom controls) */
  .toolbar-toggle {
    position: fixed;
    top: 8px;
    right: 8px;
    left: auto;
    z-index: 2001;
    background: rgba(7, 13, 22, 0.95) !important;
    border: 1px solid rgba(201, 165, 90, 0.3) !important;
    border-radius: 8px !important;
    padding: 6px 8px !important;
    width: auto;
    margin: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  }

  .toolbar-toggle-title {
    font-weight: 500;
    font-size: 0.9rem;
    display: none;
  }

  /* Icon-only REFINE button on mobile */
  .toolbar-toggle::after {
    content: "⚙️";
    font-size: 1.2rem;
  }

  body.route-table-for-two .tft-map-panel {
    position: relative;
  }

  body.route-table-for-two #tft-map {
    min-height: 360px !important;
    height: min(58vh, 520px) !important;
    max-height: none !important;
  }

  body.route-table-for-two #tft-map-filter-shell {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    z-index: 1200;
    width: auto;
    padding: 0;
    pointer-events: none;
  }

  body.route-table-for-two #tft-map-filter-shell .tft-toolbar-toggle {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    display: inline-flex;
    min-width: 0;
    width: auto;
    margin: 0 !important;
    padding: 8px 10px !important;
    gap: 8px;
    border-radius: 999px !important;
    background: rgba(8, 15, 24, 0.88) !important;
    border-color: rgba(201, 165, 90, 0.34) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px) saturate(1.25);
    pointer-events: auto;
  }

  body.route-table-for-two #tft-map-filter-shell .tft-toolbar-toggle::after {
    content: none;
  }

  body.route-table-for-two #tft-map-filter-shell .toolbar-toggle-title {
    display: block;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.08em;
  }

  body.route-table-for-two #tft-map-filter-shell .toolbar-toggle-meta {
    display: block !important;
    max-width: 126px;
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 10px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.route-table-for-two #tft-map-filter-shell .toolbar-toggle-icon {
    width: 26px;
    height: 26px;
    background: rgba(201, 165, 90, 0.12);
    font-size: 16px;
  }

  body.route-table-for-two #tft-map-filter-shell .toolbar.tft-toolbar {
    position: absolute;
    top: 44px;
    right: 0;
    left: auto;
    width: min(310px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    grid-template-columns: minmax(0, 1fr);
    max-height: min(350px, calc(100vh - 128px));
    overflow-y: auto;
    margin: 0;
    padding: 12px;
    border-radius: 14px;
    background: rgba(8, 15, 24, 0.985);
    border: 1px solid rgba(201, 165, 90, 0.24);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(22px) saturate(1.2);
    pointer-events: auto;
  }

  body.route-table-for-two #tft-map-filter-shell .toolbar.tft-toolbar.is-open {
    display: grid;
  }

  body.route-table-for-two #tft-map-filter-shell .search-wrap input,
  body.route-table-for-two #tft-map-filter-shell .filter-wrap select,
  body.route-table-for-two #tft-map-filter-shell .filter-wrap input[type="date"],
  body.route-table-for-two #tft-map-filter-shell .filter-wrap input[type="time"] {
    min-height: 42px;
    color-scheme: dark;
    font-size: 14px;
  }

  body.route-table-for-two #tft-map-filter-shell .filter-actions {
    grid-column: auto;
  }

  body.route-table-for-two #table-for-two-explorer .tft-grid > .focus-panel {
    margin: 0;
    border-radius: 18px;
  }

  body.route-table-for-two #table-for-two-explorer .tft-grid > .focus-panel::before,
  body.route-table-for-two #table-for-two-explorer .tft-grid > .focus-panel .panel-head {
    display: none;
  }

  body.route-table-for-two #table-for-two-explorer .tft-grid > .focus-panel .focus-body {
    padding: 16px;
  }

  body.route-table-for-two #table-for-two-explorer .focus-title {
    font-size: 28px;
  }

  body.route-table-for-two #table-for-two-explorer .focus-address {
    font-size: 14px;
    line-height: 1.45;
  }

  body.route-table-for-two #table-for-two-explorer .tft-status-grid,
  body.route-table-for-two #table-for-two-explorer .focus-section {
    display: none;
  }

  body.route-table-for-two #table-for-two-explorer .focus-actions .inline-link.subtle,
  body.route-table-for-two #table-for-two-explorer .focus-actions [data-tft-focus-map] {
    display: none;
  }

  #map,
  #stays-map,
  #love-map,
  #tft-map {
    min-height: 300px;
    height: 100%;
    max-height: 100%;
    border-radius: 0 !important;
  }

  .map-panel {
    border-radius: var(--radius-xl);
  }

  .map-downloads {
    display: none;
  }

  .intro-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .intro-stage {
    max-height: calc(100vh - 24px);
    padding: 28px 20px 24px;
  }

  .intro-question {
    font-size: clamp(28px, 8vw, 40px);
  }

  .intro-subtitle {
    font-size: 13px;
  }

  .intro-guide,
  .intro-trust-panel {
    grid-template-columns: 1fr;
  }

  .context-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-top: 18px;
    grid-template-columns: 1fr;
  }

  .context-title {
    font-size: clamp(28px, 7.5vw, 42px);
  }

  .summary-strip-text-inline {
    max-width: none;
    text-align: left;
  }

  /* Mobile: primary nav — tighter text tabs */
  .primary-nav {
    gap: 0;
  }

  .primary-link {
    font-size: 11px;
    padding: 12px 14px 10px;
    letter-spacing: 0.07em;
  }

  .primary-link::after {
    left: 14px;
    right: 14px;
  }

  .focus-title {
    font-size: 22px;
  }
}

/* Very small */
@media (max-width: 380px) {
  .primary-link {
    font-size: 10px;
    padding: 11px 11px 9px;
  }

  .primary-link::after {
    left: 11px;
    right: 11px;
  }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE VENUE BOTTOM SHEET
════════════════════════════════════════════════════════════ */
.mobile-venue-sheet {
  display: none; /* shown only on mobile via JS */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--surface-strong);
  border-top: 1px solid var(--border-strong);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--sheet-shadow);
  padding: 14px 16px 16px;
  backdrop-filter: blur(20px);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.mobile-venue-sheet.sheet-visible {
  transform: translateY(0);
}

.mvs-bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.mvs-region-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.mvs-info {
  flex: 1;
  min-width: 0;
}

.mvs-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mvs-meta {
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mvs-dismiss {
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1;
  padding: 4px 8px;
  color: var(--text-secondary);
}

.mvs-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.mvs-actions .ghost-btn,
.mvs-actions .inline-link {
  flex: 1;
  min-width: 0;
  text-align: center;
  justify-content: center;
}

@media (max-width: 820px) {
  .table-shell {
    display: none !important;
  }

  .mobile-venue-sheet {
    display: block;
  }

  /* Compress context strip on mobile — hide description to save vertical space */
  .context-desc {
    display: none;
  }

  /* Reduce context title size on mobile — already handled above */

  /* Increase map height on mobile for better visibility */
  #map,
  #stays-map,
  #love-map,
  #tft-map {
    height: 52vw !important;
    max-height: 380px !important;
  }

  /* No padding - card shows inline below map, no fixed sheets */
  .mobile-results-panel {
    padding-bottom: 0;
  }

  /* Compact the mobile venues panel header */
  .mobile-results-panel .panel-head {
    padding: 12px 16px 10px;
  }

  .mobile-results-panel .panel-head h2 {
    font-size: 16px;
  }
}

/* Mobile card list "show more" button */
.mobile-show-more {
  width: 100%;
  padding: 13px;
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
}

.mobile-show-more:hover {
  background: var(--teal-surface-hover);
}

/* Summary divider and text styles (extracted from inline styles) */
.detail-summary-divider {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-summary-text {
  font-size: 0.85em;
  color: var(--text-secondary);
}

/* ============================================================================
   UNIFIED MOBILE BOTTOM SHEETS (Redesigned)
   Dining, Stays, and Love Dining all use same template with theme variants
   ============================================================================ */

.mobile-sheet {
  display: none !important;
  /* Mobile sheets disabled - details now show inline via .focus-panel below map */
}

.mobile-sheet.sheet-visible {
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-sheet.sheet-expanded {
  max-height: 90vh;
  overflow-y: auto;
}

.sheet-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 8px 8px;
  margin-bottom: 4px;
}

.sheet-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
}

.sheet-close:hover {
  color: var(--text);
}

.sheet-content {
  padding: 0 16px;
}

.venue-card {
  position: relative;
  background: rgba(11, 22, 36, 0.5);
  border: 1px solid rgba(201, 165, 90, 0.15);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.rating-badge {
  display: inline-flex;
  background: rgba(201, 165, 90, 0.1);
  border: 1px solid rgba(201, 165, 90, 0.2);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  gap: 4px;
  align-items: center;
  margin-bottom: 8px;
}

.rating-badge .sheet-rating {
  color: #d4af37;
  font-weight: 600;
}

.venue-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--text);
  letter-spacing: -0.3px;
}

.quick-info {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  align-items: center;
  flex-wrap: wrap;
}

.quick-tag {
  background: rgba(201, 165, 90, 0.1);
  color: #d4af37;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.8rem;
}

.quick-price {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.quick-status {
  color: #4ade80;
  font-weight: 500;
}

.quick-status.closed {
  color: #ef4444;
}

.venue-details {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

.detail-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-secondary);
}

.detail-icon {
  color: #d4af37;
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.detail-text {
  line-height: 1.4;
  flex: 1;
}

.detail-text a {
  color: #d4af37;
  text-decoration: none;
  border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.detail-text a:hover {
  border-bottom-color: #d4af37;
}

.detail-divider {
  height: 1px;
  background: linear-gradient(to right, rgba(201, 165, 90, 0.2), transparent);
  margin: 12px 0;
}

.warnings {
  background: rgba(255, 107, 157, 0.1);
  border: 1px solid rgba(255, 107, 157, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: #ff6b9d;
  margin-top: 12px;
  display: none;
}

.warnings.active {
  display: block;
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 16px;
}

.sheet-actions .btn {
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid #d4af37;
  background: transparent;
  color: #d4af37;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  font-family: var(--font-body);
}

.sheet-actions .btn.primary {
  background: #d4af37;
  color: #0a0e1a;
}

.sheet-actions .btn:hover {
  background: rgba(212, 175, 55, 0.15);
  transform: translateY(-2px);
}

.sheet-actions .btn.primary:hover {
  background: #e5c158;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.sheet-actions .btn:active {
  transform: scale(0.95);
}

/* Theme Variants */

/* Stays - Teal Accents */
.mobile-sheet.stays .quick-tag {
  background: rgba(77, 184, 166, 0.1);
  color: #4db8a6;
}

.mobile-sheet.stays .rating-badge {
  border-color: rgba(77, 184, 166, 0.2);
  background: rgba(77, 184, 166, 0.1);
}

.mobile-sheet.stays .rating-badge .sheet-rating {
  color: #4db8a6;
}

.mobile-sheet.stays .detail-icon {
  color: #4db8a6;
}

.mobile-sheet.stays .detail-text a {
  color: #4db8a6;
  border-color: rgba(77, 184, 166, 0.3);
}

.mobile-sheet.stays .detail-text a:hover {
  border-color: #4db8a6;
}

.mobile-sheet.stays .sheet-actions .btn {
  border-color: #4db8a6;
  color: #4db8a6;
}

.mobile-sheet.stays .sheet-actions .btn.primary {
  background: #4db8a6;
  color: white;
}

/* Love Dining - Rose/Purple Accents */
.mobile-sheet.love-dining .quick-tag {
  background: rgba(224, 107, 139, 0.1);
  color: #e06b8b;
}

.mobile-sheet.love-dining .rating-badge {
  border-color: rgba(224, 107, 139, 0.2);
  background: rgba(224, 107, 139, 0.1);
}

.mobile-sheet.love-dining .rating-badge .sheet-rating {
  color: #e06b8b;
}

.mobile-sheet.love-dining .detail-icon {
  color: #e06b8b;
}

.mobile-sheet.love-dining .detail-text a {
  color: #e06b8b;
  border-color: rgba(224, 107, 139, 0.3);
}

.mobile-sheet.love-dining .detail-text a:hover {
  border-color: #e06b8b;
}

.mobile-sheet.love-dining .sheet-actions .btn {
  border-color: #e06b8b;
  color: #e06b8b;
}

.mobile-sheet.love-dining .sheet-actions .btn.primary {
  background: #e06b8b;
  color: white;
}

/* Mobile Responsive */
@media (max-width: 820px) {
  .mobile-sheet {
    display: block;
  }

  .mobile-sheet:not(.sheet-visible) {
    display: none;
  }
}

@media (max-width: 640px) {
  .intro-choices {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .venue-name {
    font-size: 1.25rem;
  }

  .sheet-actions {
    grid-template-columns: 1fr;
  }

  .sheet-actions .btn {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}
