/* Gotanda Guide — dark nightcity, mobile-first */

/* SEO-only block injected at the edge for crawlers. Keep it in the
   accessibility tree (screen readers can still see it) but invisible to
   sighted users — the React app paints the real UI on top. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:root {
  /* cast-guide パレット: 紫×ピンク×シアンのナイトクラブ系。
     urban-guide (amber × pink) と混同しないよう全体的に紫寄り。 */
  --bg: #0e0a18;
  --bg-elev: #1a1228;
  --bg-elev-2: #221934;
  --bg-elev-3: #2d2245;
  --line: rgba(200, 160, 255, 0.10);
  --line-strong: rgba(200, 160, 255, 0.22);
  --fg: #f4ecff;
  --fg-mid: rgba(244, 236, 255, 0.74);
  --fg-low: rgba(244, 236, 255, 0.50);
  --fg-faint: rgba(244, 236, 255, 0.28);
  --accent: #c084fc;   /* electric violet – primary */
  --accent-2: #ff61b5; /* hot pink – secondary */
  --accent-text: #14081f;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 8px;
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.6), 0 6px 20px -8px rgba(0, 0, 0, 0.5);
  --maxw: 480px;
  --maxw-wide: 1240px;
  --pad: 22px;
  --font-sans: "Space Grotesk", "Noto Sans JP", system-ui, sans-serif;
  --font-jp: "Noto Sans JP", "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --card-radius: 16px;
}

[data-theme="light"] {
  /* light mode は淡い lavender bg。本テーマは dark 想定だが念のため整える。 */
  --bg: #f5efff;
  --bg-elev: #ffffff;
  --bg-elev-2: #faf5ff;
  --bg-elev-3: #efe6fa;
  --line: rgba(80, 50, 130, 0.08);
  --line-strong: rgba(80, 50, 130, 0.16);
  --fg: #1c1029;
  --fg-mid: rgba(28, 16, 41, 0.72);
  --fg-low: rgba(28, 16, 41, 0.48);
  --fg-faint: rgba(28, 16, 41, 0.22);
  --accent-text: #14081f;
  --shadow-lg: 0 24px 60px -28px rgba(60, 30, 100, 0.18), 0 4px 16px -8px rgba(60, 30, 100, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-jp);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  letter-spacing: 0.005em;
}

/* Fluid responsive shell */
.phone-shell {
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  padding-bottom: 96px;
  overflow-x: hidden;
}
@media (min-width: 1024px) { .phone-shell { padding-bottom: 60px; } }

/* Wider container helper used by inner sections at tablet+ widths */
.wide { max-width: var(--maxw-wide); margin: 0 auto; }

/* Breadcrumb sits above the top bar so site-wide navigation context is
   the first thing on every area SPA. */
.crumb-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px 8px;
  font-size: 12px;
  color: var(--fg-low);
  letter-spacing: 0.01em;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.crumb-link { color: var(--fg-mid); text-decoration: none; }
.crumb-link:hover { color: var(--accent); text-decoration: underline; }
.crumb-sep { color: var(--fg-faint); }
.crumb-current { color: var(--fg); font-weight: 700; }
@media (min-width: 720px) {
  .crumb-bar { padding-left: 32px; padding-right: 32px; }
  .crumb-bar > * { max-width: var(--maxw-wide); }
}

/* ── Top bar ───────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 18px 10px;
  background: linear-gradient(to bottom, var(--bg) 60%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: color-mix(in oklab, var(--bg) 88%, transparent);
}
.topbar.scrolled { border-bottom: 1px solid var(--line); }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.16em;
  display: flex; align-items: center; gap: 8px;
}
.brand-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 24%, transparent);
}
.brand-jp { color: var(--fg-low); font-weight: 500; letter-spacing: 0.05em; }
.icon-btn {
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--fg);
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font-sans);
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.icon-btn:hover { background: var(--bg-elev-2); border-color: var(--line-strong); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn.is-on { border-color: var(--accent); color: var(--accent); }

.search-bar {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px;
  padding: 11px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.2s;
}
.search-bar:focus-within { border-color: var(--accent); }
.search-bar-inline {
  margin: 4px 22px 12px;
}
@media (min-width: 768px) {
  .search-bar-inline {
    margin-left: 32px;
    margin-right: 32px;
    max-width: var(--maxw-wide);
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
    box-sizing: border-box;
  }
}
.search-bar input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--fg);
  outline: none;
  font: inherit;
  font-size: 14px;
}
.search-bar input::placeholder { color: var(--fg-low); }
.search-icon { color: var(--fg-low); font-size: 14px; }

/* ── Hero ───────────────────────── */
.hero {
  position: relative;
  padding: 28px 22px 32px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -10% -10% auto -10%;
  height: 320px;
  background:
    radial-gradient(ellipse at 30% 60%, color-mix(in oklab, var(--accent) 30%, transparent), transparent 60%),
    radial-gradient(ellipse at 80% 30%, color-mix(in oklab, var(--accent-2) 22%, transparent), transparent 60%);
  filter: blur(30px);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}
.hero-cityskyline {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 78px;
  background:
    linear-gradient(to top, var(--bg) 25%, transparent),
    repeating-linear-gradient(90deg,
      var(--bg-elev) 0 14px, transparent 14px 16px,
      var(--bg-elev-2) 16px 36px, transparent 36px 38px,
      var(--bg-elev) 38px 52px, transparent 52px 54px);
  mask: linear-gradient(to top, black 0 60%, transparent);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-low);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ""; display: inline-block; height: 1px; flex: 1; background: var(--line);
}
.hero h1 {
  font-family: var(--font-jp);
  font-size: clamp(28px, 8vw, 38px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  white-space: pre-line;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero p {
  color: var(--fg-mid);
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 38ch;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: transform 0.15s;
}
.hero-cta:active { transform: scale(0.97); }
.hero-cta-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-strong);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  margin-left: 8px;
  cursor: pointer;
  font-family: var(--font-sans);
}

/* clock chip */
.clock-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 10px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-mid);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.clock-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 14px 8px;
  border-right: 1px solid var(--line);
  text-align: left;
}
.stat:last-child { border-right: 0; }
.stat-v {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.stat-v small { font-size: 11px; color: var(--fg-low); margin-left: 2px; font-weight: 500; }
.stat-l {
  font-size: 10px;
  color: var(--fg-low);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ── Section header ───────────────────────── */
section { padding: 28px 0 0; }
.sec-hd {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 22px 14px;
}
.sec-hd h2 {
  font-family: var(--font-jp);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.005em;
}
.sec-hd-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-low);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 4px;
  display: block;
}
.sec-hd .more {
  font-size: 12px;
  color: var(--fg-mid);
  text-decoration: none;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 0; background: transparent;
  padding: 0;
}
.sec-hd .more:hover { color: var(--accent); }

/* ── Category chips ───────────────────────── */
.chips {
  display: flex; gap: 8px;
  flex-wrap: wrap;
  padding: 4px 22px 14px;
}
.chip {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--fg-mid);
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font-jp);
  white-space: nowrap;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.chip-icon { font-size: 11px; opacity: 0.7; }
/* 「営業中のみ」chip 用の LED 風インジケータ。off で暗く、on で発光する。 */
.chip-led {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(80, 200, 120, 0.20);
  box-shadow: inset 0 0 0 1px rgba(80, 200, 120, 0.30);
  transition: background 0.2s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}
.chip.is-on .chip-led {
  background: #4dd98a;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 0 6px #4dd98a,
    0 0 14px rgba(77, 217, 138, 0.7);
  animation: chip-led-pulse 1.6s ease-in-out infinite;
}
@keyframes chip-led-pulse {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4), 0 0 6px #4dd98a, 0 0 14px rgba(77,217,138,0.7); }
  50%      { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4), 0 0 8px #4dd98a, 0 0 20px rgba(77,217,138,0.9); }
}
.chip:hover { color: var(--fg); border-color: var(--line-strong); }
.chip.is-on {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}
.chip.is-on .chip-icon { opacity: 1; }
.chip-count {
  font-family: var(--font-mono); font-size: 10px; opacity: 0.7; margin-left: 2px;
}

/* Sort bar */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px 14px;
  font-size: 11px;
}
.sort-bar-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--fg-faint);
  text-transform: uppercase;
}
.sort-bar-sel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 6px 10px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}
.sort-bar-reset {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg-low);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
}
.sort-bar-reset:hover { border-color: var(--accent); color: var(--accent); }

/* Reorder buttons on cards */
.spot-reorder {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 2;
}
.spot-reorder-btn {
  width: 26px; height: 22px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}
.spot-reorder-btn:hover:not(:disabled) {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.spot-reorder-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.modal-pill-edit { transition: border-color 0.15s ease; }
.modal-pill-edit:hover { border-color: var(--accent); }

/* ── Spot cards ───────────────────────── */
.spot-list { padding: 0 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
/* Row-style spots (e.g. the Saved list) are horizontal cards — they need a
   single column on mobile and at most two on desktop, not the dense magazine
   grid. */
.spot-list.spot-list-row { grid-template-columns: 1fr; }

/* row card */
.spot-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  cursor: pointer;
  position: relative;
  transition: transform 0.18s ease, border-color 0.2s, background 0.2s;
}
.spot-card:hover { border-color: var(--line-strong); background: var(--bg-elev-2); }
.spot-card:active { transform: scale(0.99); }
.spot-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-elev-3);
}
.spot-body { display: flex; flex-direction: column; justify-content: space-between; padding: 4px 4px 4px 0; min-width: 0; }
.spot-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}
.spot-name {
  font-weight: 600;
  font-size: 15px;
  margin: 4px 0 4px;
  letter-spacing: -0.005em;
  line-height: 1.25;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.spot-meta {
  display: flex; align-items: center; gap: 8px;
  color: var(--fg-low);
  font-size: 11.5px;
  font-family: var(--font-sans);
}
.spot-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-faint); }
.spot-meta b { color: var(--fg-mid); font-weight: 500; }
.spot-fav {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border: 1px solid var(--line);
  color: var(--fg-low);
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(8px);
  font-size: 13px;
}
.spot-fav.is-on { color: var(--accent-2); border-color: var(--accent-2); }

/* magazine card */
.spot-card.mag {
  display: block;
  padding: 0;
  overflow: hidden;
}
.spot-card.mag .spot-thumb {
  border-radius: 0;
  aspect-ratio: 4 / 3;
  width: 100%;
}
.spot-card.mag .spot-body { padding: 14px 16px 16px; gap: 6px; }
.spot-card.mag .spot-name { font-size: 18px; white-space: normal; }
.spot-card.mag .spot-fav { top: 12px; right: 12px; }

/* grid card */
.spot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 22px;
}
.spot-card.grid-c {
  display: block;
  padding: 0;
  overflow: hidden;
}
.spot-card.grid-c .spot-thumb {
  border-radius: 0;
  aspect-ratio: 1;
  width: 100%;
}
.spot-card.grid-c .spot-body { padding: 10px 12px 12px; gap: 4px; }
.spot-card.grid-c .spot-name { font-size: 14px; white-space: normal; }
.spot-card.grid-c .spot-meta { font-size: 11px; }

/* ── Placeholder thumbnails ───────────────────────── */
.thumb-ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  background:
    repeating-linear-gradient(135deg,
      rgba(255, 255, 255, 0.04) 0 6px,
      rgba(255, 255, 255, 0.0) 6px 12px),
    var(--ph-grad, linear-gradient(135deg, #2a1f1a, #4a2c1a));
}
.thumb-ph::after {
  content: "";
  position: absolute; inset: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  pointer-events: none;
}
.thumb-ph .ph-cap {
  position: relative; z-index: 1;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Brand placeholder used when a spot has no image. */
.thumb-ph-brand {
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(135deg, #2a1410, #5a2a18);
  /* override the striped pattern from the base .thumb-ph rule */
  background-image: linear-gradient(135deg, #2a1410, #5a2a18) !important;
  color: var(--accent);
}
.thumb-ph-icon {
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
}
.thumb-ph-brand-text {
  font-family: var(--font-sans);
  letter-spacing: 0.28em;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: none;
}

/* ── Map section ───────────────────────── */
.map-wrap {
  position: relative;
  margin: 0 22px;
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.map-iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
  background: var(--bg-elev);
}
.map-iframe.leaflet-container { background: var(--bg-elev); outline: none; }
/* CartoDB Dark Matter is very dark out of the box. Lift it with a CSS
   filter so streets, water, and labels stay readable against the page. */
.leaflet-container a { color: var(--fg); }
.leaflet-control-attribution {
  background: rgba(0,0,0,0.45) !important;
  color: var(--fg-low) !important;
  font-size: 10px !important;
  font-family: var(--font-mono);
}
.leaflet-control-attribution a { color: var(--fg-mid) !important; }
.leaflet-bar a, .leaflet-bar a:hover {
  background: var(--bg-elev) !important;
  color: var(--fg) !important;
  border-bottom-color: var(--line) !important;
}
.leaflet-bar { border-color: var(--line) !important; }
/* Custom Leaflet divIcon for spots. The L.divIcon wraps an outer div with
   class `gg-leaflet-pin`; the inner `gg-pin` is the visible chip. */
.gg-leaflet-pin { background: transparent; border: 0; }
.gg-pin {
  --pin-fill: var(--accent);
  --pin-ring: var(--accent-text);
  border-radius: 50%;
  background: var(--pin-fill);
  color: var(--pin-ring);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-family: var(--font-sans);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  border: 2px solid var(--bg);
  transition: transform 0.18s ease;
}
.gg-leaflet-pin.is-active .gg-pin { transform: scale(1.05); }

/* ── AI Chat Widget ─────────────────────────────────────
   Floating action button (right-bottom) + slide-in panel.
   モバイルでは bnav (z:1000) より前面に出すため z-index 高め。 */
/* AI ナビ FAB: 左下に配置、吹き出し型 + 3 色グラデ + 脈動グロー。
   spot モーダル (z:1500) よりも前面 (z:1600)。SP モバイルは bnav 上 (bottom:92)。
   ::before で外側に blur した同色レイヤーを置き、脈動でネオン風グローを演出。 */
.gg-chat-fab {
  position: fixed;
  left: 16px;
  bottom: 92px;
  height: 50px;
  padding: 0 22px 0 16px;
  border-radius: 25px 25px 25px 6px;
  background: linear-gradient(135deg, #ffb14d 0%, #ff61b5 45%, #a463ff 100%);
  background-size: 180% 180%;
  color: #fff;
  border: 0;
  cursor: pointer;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  z-index: 1600;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  isolation: isolate;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: gg-fab-shimmer 5s ease-in-out infinite;
}
.gg-chat-fab::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: linear-gradient(135deg, #ffb14d, #ff61b5, #a463ff);
  filter: blur(12px);
  opacity: 0.55;
  z-index: -1;
  animation: gg-fab-pulse 2.4s ease-in-out infinite;
}
.gg-chat-fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.30);
}
.gg-chat-fab:hover::before { opacity: 0.85; }
.gg-chat-fab-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 16px rgba(255, 255, 255, 0.5);
  animation: gg-chat-blink 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes gg-chat-blink {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.5); }
}
@keyframes gg-fab-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes gg-fab-pulse {
  0%, 100% { opacity: 0.40; transform: scale(0.95); }
  50%      { opacity: 0.80; transform: scale(1.08); }
}
.gg-chat-fab-text {
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.10em;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

@media (min-width: 1024px) {
  .gg-chat-fab { bottom: 30px; left: 30px; height: 54px; padding: 0 26px 0 20px; border-radius: 27px 27px 27px 6px; }
  .gg-chat-fab-text { font-size: 15px; }
}

/* SP のみ: spot モーダル開放中は AIナビα を画面左上隅に退避させる。
   モーダルが下から大きく被さるので、bnav 上の通常位置だと隠れてしまう。
   モーダル閉じたら通常位置に自動復帰 (body:has が外れる)。 */
@media (max-width: 767px) {
  body:has(.modal-bd) .gg-chat-fab {
    bottom: auto;
    top: 12px;
    left: 12px;
    height: 36px;
    padding: 0 14px 0 11px;
    border-radius: 18px 18px 18px 4px;
  }
  body:has(.modal-bd) .gg-chat-fab-text {
    font-size: 12px;
  }
}

/* Slide-up panel. モバイルではほぼ全画面、PC では 380×560 で右下浮遊
   spot モーダル (z:1500) よりも前面に出して FAB と同様にする。
   100vh ではなく 100dvh を使うことで、ソフトキーボード出現時にも高さが
   追従して input が隠れない。env(safe-area-inset-*) も考慮。 */
.gg-chat-panel {
  position: fixed;
  z-index: 1700;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(192, 132, 252,0.10);
  left: 12px; right: 12px;
  bottom: 12px;
  max-height: calc(100dvh - 24px);
  border-radius: 18px;
  animation: gg-chat-slideup 0.22s ease-out;
}
@keyframes gg-chat-slideup {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@media (min-width: 768px) {
  .gg-chat-panel {
    /* PC では FAB と同じ左下に出す（右側は SiteFooter や spot モーダルの操作を
       邪魔しないため左を空けてある）。 */
    left: 24px;
    right: auto;
    bottom: 24px;
    width: 400px;
    max-height: 600px;
  }
}
@media (min-width: 1024px) {
  /* PC では bnav (画面下中央 ~80px 高) と重ならないよう bottom: 100px に逃がす */
  .gg-chat-panel { left: 30px; bottom: 100px; max-height: calc(100vh - 130px); }
}

.gg-chat-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(192, 132, 252,.08), transparent);
}
.gg-chat-hd-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gg-chat-hd-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: gg-chat-blink 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
.gg-chat-hd-ttl {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--fg);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gg-chat-hd-r { display: flex; gap: 4px; flex-shrink: 0; }
.gg-chat-icon {
  background: transparent;
  border: 0;
  color: var(--fg-mid);
  font-size: 18px;
  cursor: pointer;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.gg-chat-icon:hover { background: rgba(255,255,255,0.08); color: var(--fg); }

.gg-chat-list {
  flex: 1; min-height: 0;
  overflow-y: auto;
  /* スクロール終端でページに連鎖しないように。iOS でも有効。 */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px 8px;
  display: flex; flex-direction: column; gap: 12px;
  scroll-behavior: smooth;
}

.gg-chat-empty { padding: 8px 4px; }
.gg-chat-empty-ttl {
  font-size: 14px; font-weight: 700; color: var(--fg);
  margin-bottom: 6px;
}
.gg-chat-empty-sub {
  font-size: 13px; color: var(--fg-mid); margin-bottom: 14px;
  line-height: 1.6;
}
.gg-chat-presets { display: flex; flex-direction: column; gap: 6px; }
.gg-chat-preset {
  text-align: left;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--fg-mid);
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.gg-chat-preset:hover {
  background: rgba(192, 132, 252,0.08);
  border-color: rgba(192, 132, 252,0.30);
  color: var(--fg);
}

.gg-chat-msg { display: flex; flex-direction: column; gap: 6px; max-width: 92%; }
.gg-chat-msg-user { align-self: flex-end; align-items: flex-end; }
.gg-chat-msg-assistant { align-self: flex-start; align-items: flex-start; }
.gg-chat-bubble {
  font-size: 13.5px;
  line-height: 1.6;
  padding: 9px 12px;
  border-radius: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}
.gg-chat-msg-user .gg-chat-bubble {
  background: var(--accent);
  color: var(--accent-text);
  border-bottom-right-radius: 4px;
}
.gg-chat-msg-assistant .gg-chat-bubble {
  background: rgba(255,255,255,0.06);
  color: var(--fg);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.gg-chat-msg.is-err .gg-chat-bubble {
  background: rgba(255, 97, 181,0.10);
  color: #ffb0c2;
  border-color: rgba(255, 97, 181,0.30);
}

/* インライン店舗リンク。本文中の店名を button にしてクリックで spot モーダル展開 */
.gg-chat-spot-link {
  display: inline;
  background: rgba(192, 132, 252,0.15);
  border: 1px solid rgba(192, 132, 252,0.40);
  color: var(--accent);
  padding: 1px 8px;
  margin: 0 1px;
  border-radius: 6px;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  cursor: pointer;
  line-height: inherit;
  vertical-align: baseline;
  transition: background 0.12s;
}
.gg-chat-spot-link:hover {
  background: rgba(192, 132, 252,0.30);
  color: var(--accent-2);
}

/* 「地図で確認」ボタン: 応答の店舗リストの最後に表示 */
.gg-chat-mapbtn {
  align-self: flex-start;
  margin-top: 4px;
  background: rgba(192, 132, 252,0.10);
  color: var(--accent);
  border: 1px solid rgba(192, 132, 252,0.45);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.15s, transform 0.12s;
}
.gg-chat-mapbtn:hover {
  background: rgba(192, 132, 252,0.20);
  transform: translateY(-1px);
}

.gg-chat-sources { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 2px; }
.gg-chat-source {
  background: rgba(192, 132, 252,0.08);
  border: 1px solid rgba(192, 132, 252,0.25);
  color: var(--fg);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.gg-chat-source:hover:not(:disabled) {
  background: rgba(192, 132, 252,0.18);
  border-color: var(--accent);
}
.gg-chat-source:disabled { cursor: default; opacity: 0.7; }

/* 入力中インジケータ(3 つの点が順番に光る) */
.gg-chat-typing { display: inline-flex; gap: 4px; }
.gg-chat-typing span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--fg-low);
  animation: gg-chat-dots 1.3s infinite;
}
.gg-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.gg-chat-typing span:nth-child(3) { animation-delay: 0.30s; }
@keyframes gg-chat-dots {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40%           { transform: scale(1);   opacity: 1; }
}

.gg-chat-input {
  display: flex; gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
}
.gg-chat-input input {
  flex: 1; min-width: 0;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 14px;
  /* iOS Safari は input の font-size が 16px 未満だと focus 時に自動ズーム
     してレイアウトを崩すので必ず 16px 以上にする。 */
  font-size: 16px;
  font-family: inherit;
  outline: none;
}
.gg-chat-input input:focus { border-color: var(--accent); }
.gg-chat-input button {
  background: var(--accent);
  color: var(--accent-text);
  border: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
}
.gg-chat-input button:disabled {
  opacity: 0.4; cursor: not-allowed;
}

/* 現在地ボタン（地図右上にオーバーレイ） */
.gg-locate-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--fg);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: background 0.15s;
}
.gg-locate-btn:hover { background: var(--bg-elev-2); }
.gg-locate-btn:disabled { opacity: 0.6; cursor: wait; }

.map-legend {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--bg-elev-2);
  font-size: 11px;
  color: var(--fg-low);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}
.access-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 16px 22px 0;
}
.access-card {
  padding: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.access-card-l {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-low);
  text-transform: uppercase;
}
.access-card-v {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  margin-top: 4px;
  letter-spacing: -0.02em;
}
.access-card-s { font-size: 11px; color: var(--fg-mid); margin-top: 2px; }

/* ── Events ───────────────────────── */
.events-wrap { position: relative; }
.events {
  display: flex; gap: 12px;
  overflow-x: auto;
  padding: 0 22px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.events::-webkit-scrollbar { display: none; }

/* Mouse/trackpad users get visible prev/next chevrons; touch devices
   already have native swipe so we hide them via @media (hover: hover). */
.events-nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  color: var(--fg);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  padding: 0 0 3px;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.6);
  transition: background 0.15s, transform 0.15s, opacity 0.15s;
  align-items: center;
  justify-content: center;
}
.events-nav:hover {
  background: var(--bg-elev-2);
  transform: translateY(-50%) scale(1.05);
}
.events-nav:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.events-nav.prev { left: 4px; }
.events-nav.next { right: 4px; }
@media (hover: hover) and (pointer: fine) {
  .events-nav { display: flex; }
}
.event-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  padding: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
  overflow: hidden;
}
.event-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
}
.event-date {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-sans);
}
.event-date b {
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
}
.event-date small {
  font-size: 11px; color: var(--fg-low);
  font-family: var(--font-mono); letter-spacing: 0.08em;
}
.event-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.event-where { font-size: 12px; color: var(--fg-mid); }
.event-tag {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--fg-mid);
}

/* ── News ───────────────────────── */
.news-list { padding: 0 22px; display: flex; flex-direction: column; gap: 0; }
.news-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
}
.news-item:last-child { border-bottom: 0; }
.news-cat {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding-top: 2px;
}
.news-title { font-weight: 600; font-size: 14px; line-height: 1.4; margin-bottom: 4px; text-wrap: pretty; }
.news-excerpt { color: var(--fg-mid); font-size: 12.5px; line-height: 1.5; margin-bottom: 6px; }
.news-when { font-family: var(--font-mono); font-size: 10px; color: var(--fg-low); letter-spacing: 0.06em; }

/* ── Area blurb ───────────────────────── */
.area-card {
  margin: 0 22px;
  padding: 22px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  position: relative;
  overflow: hidden;
}
.area-card::before {
  content: "";
  position: absolute; top: -40px; right: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 50%, transparent), transparent 70%);
  opacity: 0.35;
}
.area-eyebrow {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.area-card p { line-height: 1.7; color: var(--fg-mid); margin: 0; font-size: 13.5px; }

/* ── Footer ───────────────────────── */
.foot {
  text-align: center;
  padding: 36px 22px 28px;
  color: var(--fg-low);
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.foot-links {
  font-family: var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
}
.foot-links a { color: var(--fg-mid); text-decoration: none; }
.foot-links a:hover { color: var(--fg); text-decoration: underline; }
.foot-links span { color: var(--fg-low); margin: 0 4px; }

/* ── Site footer (magazine style) ───────────────────────── */
.site-footer {
  margin-top: 60px;
  padding: 56px 22px 96px;
  background: linear-gradient(180deg, transparent 0%, rgba(192, 132, 252,.04) 50%, rgba(0,0,0,.4) 100%);
  border-top: 1px solid var(--line);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}
/* ブランドブロックは独立した上段。下の grid とは別行扱いにして、
   都道府県が増えても auto-fit でセクション列だけが横に流れるように分離。 */
.sf-brand-block {
  max-width: var(--maxw-wide);
  margin: 0 auto 36px;
}
.sf-grid {
  display: grid;
  /* auto-fit + minmax で列数が viewport 幅と項目数で自動的に決まる。
     都道府県が 1 つでも 47 個でも grid が破綻しない。 */
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px 32px;
  max-width: var(--maxw-wide);
  margin: 0 auto;
}
.sf-brand-row {
  display: flex; align-items: center; gap: 10px;
}
.sf-brand-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent), 0 0 20px rgba(192, 132, 252,.4);
  animation: sf-pulse 2.4s ease-in-out infinite;
}
@keyframes sf-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.7; }
}
.sf-brand-name {
  font-family: var(--font-sans);
  font-size: 18px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg);
}
.sf-tagline {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--accent);
}
.sf-blurb {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--fg-mid);
  max-width: 36ch;
}
.sf-col-hd {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-low);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.sf-col ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.sf-col li { font-size: 14px; }
.sf-col a {
  color: var(--fg-mid);
  text-decoration: none;
  transition: color 0.15s;
}
.sf-col a:hover { color: var(--accent); }
.sf-soon {
  color: var(--fg-low);
  cursor: default;
}
.sf-soon small {
  margin-left: 6px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  vertical-align: middle;
}
.sf-bottom {
  max-width: var(--maxw-wide);
  margin: 48px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.sf-copy {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--fg-low);
}
.sf-top {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--fg-mid);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.sf-top:hover {
  color: var(--accent);
  border-color: var(--accent);
}
@media (min-width: 720px) {
  .sf-grid { gap: 32px 40px; }
}
@media (min-width: 1024px) {
  .site-footer { padding: 72px 32px 110px; }
  .sf-brand-block { margin-bottom: 48px; }
  .sf-grid { gap: 40px 56px; }
}

/* ── Bottom nav ───────────────────────── */
.bnav {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: 14px;
  width: calc(100% - 28px);
  max-width: calc(var(--maxw) - 28px);
  background: color-mix(in oklab, var(--bg-elev) 92%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  /* Leaflet の marker pane(600)/popup pane(700) より前面に出す */
  z-index: 1000;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px;
  box-shadow: var(--shadow-lg);
}
/* PC のみ表示する追加ナビ項目 (events, news)。デフォルト非表示。
   @media (min-width: 1024px) で表示し、bnav の列数も 6 に拡張する。 */
.bnav-pc-only { display: none !important; }
@media (min-width: 1024px) {
  .bnav { grid-template-columns: repeat(6, 1fr); }
  .bnav-pc-only { display: flex !important; }
}
.bnav-btn {
  border: 0; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 12px;
  color: var(--fg-low);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s, background 0.2s;
}
.bnav-btn .bnav-icon { font-size: 17px; line-height: 1; }
.bnav-btn:hover { color: var(--fg); }
.bnav-btn.is-on { color: var(--accent); background: color-mix(in oklab, var(--accent) 10%, transparent); }

/* ── Modal ───────────────────────── */
.modal-bd {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* Leaflet marker(600)/popup(700)、bnav(1000)、chat FAB(1100)、chat panel
     (1200) のいずれよりも前面に出す。spot モーダルは常に最前面が望ましい。 */
  z-index: 1500;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadein 0.25s ease;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%;
  max-width: var(--maxw);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border-top: 1px solid var(--line-strong);
  animation: slideup 0.32s cubic-bezier(.22,.95,.45,1);
  position: relative;
  padding-bottom: 24px;
}
@media (min-width: 800px) {
  .modal-bd { align-items: center; }
  .modal { border-radius: 24px; max-height: 86vh; border: 1px solid var(--line-strong); }
}
@keyframes slideup { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-grip {
  width: 40px; height: 4px;
  background: var(--line-strong);
  border-radius: 99px;
  margin: 10px auto 0;
}
.modal-cover {
  position: relative;
  height: 280px;
  margin: 14px 16px 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-elev-3);
}
/* Stretch the hero photo to fill the frame (aspect ratio may distort,
   but no cropping and no letterboxing). */
.modal-cover .thumb-img { object-fit: fill; }
.modal-x {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  cursor: pointer;
  z-index: 3;
  font-size: 18px;
  backdrop-filter: blur(8px);
}
.modal-share {
  right: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.modal-share svg { display: block; }
.modal-content { padding: 18px 22px 0; }
.modal-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}
.modal-title {
  font-size: 24px; font-weight: 700;
  margin: 6px 0 10px;
  letter-spacing: -0.01em;
}
.modal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.modal-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--fg-mid);
  font-family: var(--font-sans);
}
.modal-desc { color: var(--fg-mid); line-height: 1.7; font-size: 14px; margin: 14px 0 18px; }
.modal-info {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 18px;
}
.info-cell {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.info-cell-l {
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-low);
  margin-bottom: 4px;
}
.info-cell-v { font-size: 13px; }
.info-cell-link {
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
}
.info-cell-link:hover { text-decoration: underline; }
.modal-actions { display: flex; gap: 10px; padding: 0 22px; }
.btn-primary {
  flex: 1;
  padding: 13px 16px;
  background: var(--accent);
  color: var(--accent-text);
  border: 0;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font-sans);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none;
}
.btn-secondary {
  padding: 13px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--fg);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font-sans);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-secondary.is-on { border-color: var(--accent-2); color: var(--accent-2); }

/* utility scroll-reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* empty state */
.empty {
  text-align: center;
  padding: 40px 22px;
  color: var(--fg-low);
  font-size: 13px;
}
.empty-icon { font-size: 28px; margin-bottom: 8px; opacity: 0.5; }

/* lang switch */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: var(--bg-elev);
}
.lang-switch button {
  padding: 0 10px;
  height: 38px;
  background: transparent;
  border: 0;
  color: var(--fg-low);
  cursor: pointer;
  letter-spacing: 0.06em;
  font: inherit;
}
.lang-switch button.is-on {
  background: var(--accent);
  color: var(--accent-text);
}

/* tonight strip */
.tonight {
  margin: 0 22px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--bg-elev), var(--bg-elev-2));
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  position: relative;
  overflow: hidden;
}
.tonight::before {
  content: "";
  position: absolute; right: -30px; top: -30px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent-2) 35%, transparent), transparent 70%);
  opacity: 0.5;
}
.tonight-l { position: relative; z-index: 1; }
.tonight-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.tonight-msg { font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.tonight-time {
  position: relative; z-index: 1;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

/* ── Responsive ─────────────────────────
   Mobile-first: above 720px we widen the canvas, multi-column the spot list,
   give the map more room, and trade the floating bottom nav for inline nav. */
.desktop-nav { display: none; }

@media (min-width: 720px) {
  :root { --pad: 32px; --card-radius: 18px; }
  .topbar { padding: 18px 32px 12px; }
  .topbar-row { max-width: var(--maxw-wide); margin: 0 auto; }
  .search-bar { max-width: var(--maxw-wide); margin-left: auto; margin-right: auto; }
  .hero { padding: 44px 32px 48px; }
  .hero-inner { max-width: var(--maxw-wide); margin: 0 auto; }
  .hero h1 { font-size: clamp(40px, 6vw, 56px); max-width: 22ch; }
  .hero p { font-size: 16px; max-width: 56ch; }
  .stats { margin-top: 36px; }
  .stat { padding: 18px 14px; }
  .stat-v { font-size: 22px; }
  .sec-hd { padding: 0 32px 16px; max-width: var(--maxw-wide); margin: 0 auto; }
  .sec-hd h2 { font-size: 26px; }
  .chips { padding: 4px 32px 18px; max-width: var(--maxw-wide); margin: 0 auto; }
  .spot-list, .spot-grid { padding: 0 32px; max-width: var(--maxw-wide); margin: 0 auto; }
  .spot-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .spot-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; flex-direction: unset; }
  .spot-list.spot-list-row { grid-template-columns: repeat(2, 1fr); }
  .spot-card { grid-template-columns: 120px 1fr; padding: 12px; }
  .spot-card.mag .spot-thumb { aspect-ratio: 4/3; }
  .map-wrap { margin: 0 32px; max-width: var(--maxw-wide); margin-left: auto; margin-right: auto; }
  .map-iframe { height: 460px; }
  .access-grid { padding: 18px 32px 0; max-width: var(--maxw-wide); margin: 0 auto; grid-template-columns: repeat(4, 1fr); }
  .events-wrap { max-width: var(--maxw-wide); margin: 0 auto; }
  .events { padding: 0 32px 8px; }
  .news-list { padding: 0 32px; max-width: var(--maxw-wide); margin: 0 auto; }
  .news-item { grid-template-columns: 80px 1fr; }
  .area-card { margin: 0 32px; max-width: var(--maxw-wide); margin-left: auto; margin-right: auto; padding: 32px; }
  .tonight { margin: 0 32px; max-width: var(--maxw-wide); margin-left: auto; margin-right: auto; padding: 22px 28px; }
  .tonight-msg { font-size: 16px; }
  .tonight-time { font-size: 36px; }
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex; gap: 4px; align-items: center;
    margin-left: 28px;
  }
  .desktop-nav button {
    background: transparent; border: 0;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--fg-mid);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    position: relative;
  }
  .desktop-nav button:hover { color: var(--fg); background: var(--bg-elev); }
  .desktop-nav button.is-on {
    color: var(--accent-text);
    background: var(--accent);
  }
  .desktop-nav-badge {
    margin-left: 4px;
    font-size: 10px; font-family: var(--font-mono);
    background: var(--accent-2); color: white;
    padding: 1px 6px; border-radius: 99px;
  }
  .hero { padding: 64px 32px 64px; }
  .hero h1 { font-size: clamp(52px, 5.5vw, 72px); }
  .hero p { font-size: 17px; }
  .spot-list { grid-template-columns: repeat(6, 1fr); }
  .spot-list.spot-list-row { grid-template-columns: repeat(2, 1fr); }
  .spot-grid { grid-template-columns: repeat(4, 1fr); }
  .map-iframe { height: 540px; }
  .news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 32px;
  }
  .news-item { border-bottom: 1px solid var(--line); }
}

@media (min-width: 1280px) {
  .spot-grid { grid-template-columns: repeat(4, 1fr); }
  .news-list { grid-template-columns: repeat(3, 1fr); }
  .map-iframe { height: 600px; }
}

/* Image fill for thumbnails */
.thumb-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Import modal */
.imp-tabs {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--bg-elev);
  font-family: var(--font-mono);
}
.imp-tabs button {
  padding: 8px 18px;
  background: transparent;
  border: 0;
  color: var(--fg-low);
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.imp-tabs button.is-on {
  background: var(--accent);
  color: var(--accent-text);
}
.imp-textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  padding: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  outline: none;
}
.imp-textarea:focus { border-color: var(--accent); }
.imp-actions-row {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin: 10px 0 14px;
}
.imp-link {
  background: none; border: 0;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 12.5px;
  padding: 0;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}
.imp-mode {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--fg-mid);
  padding: 12px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
}
.imp-mode label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.imp-mode input[type="radio"] { accent-color: var(--accent); }
.imp-count { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--fg-low); }
.imp-msg {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  margin-bottom: 12px;
}
.imp-err { background: color-mix(in oklab, #ff5b5b 18%, transparent); color: #ff8a8a; border: 1px solid #ff5b5b; }
.imp-ok  { background: color-mix(in oklab, var(--accent) 18%, transparent); color: var(--accent); border: 1px solid var(--accent); }

.imp-pic-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  background: rgba(0,0,0,0.55);
  color: white;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 12px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.imp-pic-btn:hover { background: rgba(0,0,0,0.75); border-color: var(--accent); }

/* Google Places panel */
.gp-panel { display: flex; flex-direction: column; gap: 12px; }
.gp-row { display: flex; flex-direction: column; gap: 6px; }
.gp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gp-grid > div { display: flex; flex-direction: column; gap: 6px; }
.gp-lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-low);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
}
.gp-help {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 9px;
  color: var(--fg-low);
  text-decoration: none;
}
.gp-help:hover { color: var(--accent); border-color: var(--accent); }
.gp-input {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
}
.gp-input:focus { border-color: var(--accent); }
.gp-hint { font-size: 11px; color: var(--fg-low); line-height: 1.5; }
.gp-result-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
  color: var(--fg-mid);
  margin-top: 4px;
}
.gp-results {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}
.gp-result {
  display: grid;
  grid-template-columns: 18px 56px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.gp-result.is-on { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 8%, var(--bg-elev)); }
.gp-result input[type="checkbox"] { accent-color: var(--accent); }
.gp-result-thumb {
  width: 56px; height: 56px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-elev-3);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-faint);
  font-size: 16px;
}
.gp-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gp-result-body { min-width: 0; }
.gp-result-name {
  font-weight: 600; font-size: 13.5px;
  text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
}
.gp-result-meta {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px;
  color: var(--fg-low);
  font-family: var(--font-sans);
  margin-top: 2px;
}
.gp-result-addr {
  font-size: 11px; color: var(--fg-low); margin-top: 2px;
  text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
}
.gp-attrib {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--fg-low);
  text-align: right;
  margin-top: 6px;
}

/* Category manager */
.cat-mgr { display: flex; flex-direction: column; gap: 14px; }
.cat-list {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}
.cat-row {
  display: grid;
  grid-template-columns: 26px 38px 70px 1fr 1fr 1.2fr 28px;
  gap: 6px;
  align-items: center;
  padding: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.cat-move {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cat-mv-btn {
  width: 26px;
  height: 14px;
  background: var(--bg-elev-3);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--fg-low);
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  padding: 0;
}
.cat-mv-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.cat-mv-btn:disabled { opacity: 0.25; cursor: not-allowed; }
.cat-row.is-builtin { background: var(--bg-elev-2); }
.cat-icon-input {
  width: 38px; height: 32px;
  background: var(--bg-elev-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
  color: var(--fg);
  font-size: 14px;
}
.cat-id {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--fg-low);
  display: flex; align-items: center; gap: 4px;
  text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
}
.cat-builtin-tag {
  font-size: 8px;
  padding: 1px 4px;
  background: var(--bg-elev-3);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--fg-faint);
}
.cat-name-input { font-size: 12px !important; padding: 7px 8px !important; }
.cat-del {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--fg-low);
  cursor: pointer;
  font-size: 14px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
}
.cat-del:hover:not(:disabled) {
  border-color: var(--accent-2);
  color: var(--accent-2);
}
.cat-del:disabled { opacity: 0.25; cursor: not-allowed; }

.cat-add {
  padding: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.cat-add-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 640px) {
  .cat-add-grid { grid-template-columns: repeat(3, 1fr); }
}

.cat-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cat-actions .btn-primary { flex: 0 1 auto; }

/* Sponsors / Partners */
#sec-sponsors { padding-top: 28px; }
.sp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  padding: 0 22px;
}
.sp-disclaimer { padding: 0 22px; }
@media (min-width: 768px) {
  .sp-grid, .sp-disclaimer { padding-left: 32px; padding-right: 32px; max-width: var(--maxw-wide); margin-left: auto; margin-right: auto; }
}
.sp-card {
  display: flex;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.sp-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.sp-img {
  width: 92px;
  flex: none;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-elev-2);
}
.sp-img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg-elev-2);
  font-family: var(--font-display);
}
.sp-body {
  padding: 12px 14px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sp-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.sp-desc {
  font-size: 11px;
  color: var(--fg-low);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sp-url {
  margin-top: auto;
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--fg-faint);
  display: flex;
  align-items: center;
  gap: 6px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.sp-arrow { color: var(--accent); }
.sp-disclaimer {
  margin-top: 14px;
  font-size: 10px;
  color: var(--fg-faint);
  line-height: 1.6;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* Google reviews */
.reviews { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.reviews-hd {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; margin-bottom: 10px;
}
.reviews-title {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 6px;
}
.reviews-count {
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 99px;
  color: var(--fg-low);
}
.reviews-attrib {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
  margin-top: 4px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.reviews-powered { color: var(--fg-low); }
.reviews-refresh {
  font-size: 11px;
  padding: 5px 10px;
  background: var(--bg-elev-2);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  flex: none;
  font-family: inherit;
}
.reviews-refresh:hover { border-color: var(--accent); }
.reviews-refresh:disabled { opacity: 0.5; cursor: wait; }
.reviews-empty { font-size: 11px; color: var(--fg-faint); padding: 12px 0; }
.reviews-list { display: flex; flex-direction: column; gap: 12px; }
.rv {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.rv-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rv-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.rv-avatar-fb {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elev-2);
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-display);
}
.rv-meta { flex: 1; min-width: 0; }
.rv-author {
  font-size: 12px; font-weight: 600;
  color: var(--fg); text-decoration: none;
}
.rv-author:hover { color: var(--accent); }
.rv-sub {
  font-size: 10px; color: var(--fg-faint);
  display: flex; gap: 8px;
  font-family: var(--font-mono);
  margin-top: 2px;
}
.rv-stars { color: #ffc107; letter-spacing: 1px; }
.rv-stars-dim { color: var(--line); }
/* Generic star glyph color — used wherever a `★` is rendered. The
   !important here beats more-specific selectors like `.spot-meta b` that
   otherwise inherit a different colour. */
.star { color: #ffc107 !important; }
.rv-text {
  font-size: 12px;
  color: var(--fg-low);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.reviews-more {
  align-self: flex-start;
  font-size: 11px;
  padding: 6px 10px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}
.reviews-more:hover { border-color: var(--accent); }

/* Tonight picks list */
.tonight-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tonight-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.tonight-pick {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.tonight-pick:hover { border-color: var(--accent); transform: translateY(-1px); }
.tonight-pick-arrow { color: var(--accent); font-family: var(--font-mono); }
.tonight-pick-name { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.01em; }
.tonight-pick-meta { font-size: 10px; color: var(--fg-faint); font-family: var(--font-mono); }

/* Tonight target hint */
.tonight.is-clickable { cursor: pointer; transition: border-color 0.15s ease, transform 0.15s ease; }
.tonight.is-clickable:hover { border-color: var(--accent); transform: translateY(-1px); }
.tonight-target {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--fg-low);
}
.tonight-target-arrow { color: var(--accent); }
.tonight-target-name { color: var(--fg); font-family: var(--font-display); font-size: 12px; letter-spacing: 0.02em; }
.tonight-target-meta { color: var(--fg-faint); font-size: 10px; }

/* Back-to-top floating button */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 88px;
  /* Leaflet の marker pane(600)/popup pane(700) より前面に出す。
     bnav(1000) より下、spot モーダル(1500) より下で十分。 */
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06) inset;
  font-family: var(--font-mono);
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
}
.to-top.is-on {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.to-top:hover { background: var(--accent-2); color: var(--accent-fg); }
.to-top-arrow { font-size: 16px; line-height: 1; font-weight: 700; }
.to-top-lbl { font-size: 8px; letter-spacing: 0.16em; line-height: 1; }
@media (min-width: 700px) {
  .to-top { bottom: 24px; }
}

/* Sponsor strip (header/footer) */
.sp-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 22px;
  padding-left: max(22px, env(safe-area-inset-left));
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  font-size: 11px;
}
.sp-strip::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .sp-strip { padding-left: 32px; padding-right: 32px; max-width: var(--maxw-wide); margin-left: auto; margin-right: auto; }
}
.sp-strip-footer {
  border-bottom: none;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.sp-strip-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--fg-faint);
  text-transform: uppercase;
  flex: none;
}
.sp-strip-list { display: flex; gap: 8px; flex: 1; }
.sp-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--fg);
  white-space: nowrap;
  transition: border-color 0.15s ease;
  flex: none;
}
.sp-strip-item:hover { border-color: var(--accent); }
.sp-strip-img {
  width: 18px; height: 18px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex: none;
}
.sp-strip-name { font-size: 11px; font-weight: 500; }

/* Position pills (manager) */
.sp-pos-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.sp-pos-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--fg-faint);
  text-transform: uppercase;
  margin-right: 4px;
}
.sp-pos-pill {
  background: var(--bg-elev-3);
  border: 1px solid var(--line);
  color: var(--fg-low);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}
.sp-pos-pill.is-on {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}

/* Sponsor manager rows */
.sp-bi { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sp-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.sp-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.sp-fields .gp-input { font-size: 12px !important; padding: 7px 8px !important; }
.sp-row-actions { display: flex; flex-direction: column; gap: 4px; }

/* Feed (events/news) manager */
.feed-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 4px 2px 12px;
}
.feed-list { display: flex; flex-direction: column; gap: 8px; }
.feed-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.feed-row.is-off { opacity: 0.5; }
.feed-row-main { flex: 1; min-width: 0; }
.feed-row-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--fg-low);
  margin-bottom: 4px;
}
.feed-src {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}
.feed-date { font-family: var(--font-mono); }
.feed-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.feed-extra { font-size: 12px; color: var(--fg-mid); margin-bottom: 4px; }
.feed-summary { font-size: 13px; color: var(--fg-mid); line-height: 1.5; }
.feed-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--fg-low);
  word-break: break-all;
}
.feed-row-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
}

/* Area manager rows */
.area-row {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.area-row.is-off { opacity: 0.55; }
.area-row-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.area-row-body { display: flex; flex-direction: column; gap: 6px; }
.area-pair { display: grid; grid-template-columns: 2fr 1fr; gap: 6px; }
.area-pill {
  background: var(--bg-elev-3);
  color: var(--fg-mid);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.area-add-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr auto;
  gap: 8px;
  align-items: center;
}
.sp-row.is-off { opacity: 0.45; }
.sp-row.is-off .sp-thumb { filter: grayscale(1); }
.sp-toggle {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 2px;
  letter-spacing: 0.04em;
}
.sp-toggle.is-on {
  background: rgba(80, 200, 120, 0.18);
  color: #6ce28b;
  border-color: rgba(80, 200, 120, 0.5);
}
.sp-toggle.is-off {
  background: rgba(255, 120, 120, 0.12);
  color: #ff9a9a;
  border-color: rgba(255, 120, 120, 0.4);
}
.sp-thumb-wrap { cursor: pointer; flex: none; }
.sp-thumb {
  width: 56px; height: 56px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}
.sp-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elev-3);
  color: var(--fg-faint);
  font-size: 11px;
}
.sp-add-grid {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

/* twk overrides for dark panel */
[data-theme="dark"] .twk-panel,
.twk-panel.dark {
  background: rgba(20, 20, 24, 0.78) !important;
  color: var(--fg) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
