﻿:root,
body[data-theme="casual"] {
  --bg: #faf6ee;
  --surface: #ffffff;
  --surface-subtle: #f5f0e6;
  --surface-hover: #ece5d8;
  --border: #e6dfd1;
  --border-strong: #d4cab8;
  --ink: #1c1917;
  --ink-secondary: #57534e;
  --ink-muted: #78716c;

  --accent: #e05a2b;
  --accent-hover: #c5481d;
  --accent-soft: #fff2ec;

  --hot: #ea580c;
  --hot-soft: #fff7ed;
  --hot-border: #fed7aa;

  --verified: #0f766e;
  --verified-soft: #ecfdf5;
  --verified-border: #99f6e4;

  --open: #15803d;
  --open-soft: #f0fdf4;
  --closed: #b91c1c;
  --closed-soft: #fef2f2;
  --amber: #d97706;

  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 6px 20px rgba(28, 25, 23, 0.1);
  --shadow-lg: 0 18px 44px rgba(28, 25, 23, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;

  --sidebar-w: 435px;
  --drawer-w: 395px;
  --shorts-w: 248px;
}

/* ==================== UPSCALE SPENNY ATMOSPHERE THEME ==================== */
body[data-theme="spenny"] {
  --bg: #0e0f14;
  --surface: #161820;
  --surface-subtle: #1e212b;
  --surface-hover: #272b38;
  --border: #2c303e;
  --border-strong: #3f4558;
  --ink: #f6f1e7;
  --ink-secondary: #cfc7b8;
  --ink-muted: #9a9284;

  --accent: #d4af37;
  --accent-hover: #e5c354;
  --accent-soft: rgba(212, 175, 55, 0.15);

  --hot: #e5a93c;
  --hot-soft: rgba(212, 175, 55, 0.12);
  --hot-border: rgba(212, 175, 55, 0.36);

  --verified: #34d399;
  --verified-soft: rgba(16, 185, 129, 0.14);
  --verified-border: rgba(52, 211, 153, 0.35);

  --open: #4ade80;
  --open-soft: rgba(74, 222, 128, 0.14);
  --closed: #f87171;
  --closed-soft: rgba(248, 113, 113, 0.14);
  --amber: #f5c451;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 22px 54px rgba(0, 0, 0, 0.68);
}

body[data-theme="spenny"] .brand-mark {
  background: linear-gradient(135deg, #d4af37 0%, #8c6a16 100%);
  color: #111216;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

body[data-theme="spenny"] .action-pill.primary,
body[data-theme="spenny"] .btn-primary {
  background: linear-gradient(135deg, #d4af37 0%, #b89022 100%);
  border-color: #d4af37;
  color: #111216;
}

body[data-theme="spenny"] .action-pill.primary:hover,
body[data-theme="spenny"] .btn-primary:hover {
  background: linear-gradient(135deg, #e5c354 0%, #c99e28 100%);
}

body[data-theme="spenny"] .surprise-btn {
  background: linear-gradient(135deg, #272214 0%, #3d3113 100%);
  border-color: #d4af37;
  color: #f6e2a1;
}

body[data-theme="spenny"] .gemini-prompt-box {
  background: linear-gradient(135deg, #1b1e29 0%, #242133 100%);
  border-color: #4c4668;
}

body[data-theme="spenny"] .gemini-prompt-box:focus-within {
  background: #1f2230;
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

body[data-theme="spenny"] .gemini-prompt-box input::placeholder {
  color: #c7bfe8;
}

body[data-theme="spenny"] .gemini-banner {
  background: linear-gradient(135deg, #1e1d2e 0%, #25202e 100%);
  border-bottom-color: #3f3b58;
  color: #e9e4f5;
}

body[data-theme="spenny"] .gemini-banner strong {
  color: #e5c354;
}

body[data-theme="spenny"] .gemini-banner button {
  background: #272b38;
  border-color: #4c4668;
  color: #f6f1e7;
}

body[data-theme="spenny"] .hot-section {
  background: linear-gradient(180deg, #1c1914 0%, #0e0f14 100%);
  border-bottom-color: rgba(212, 175, 55, 0.28);
}

body[data-theme="spenny"] .hot-section-head h2 {
  color: #e5c354;
}

body[data-theme="spenny"] .hot-section-head p,
body[data-theme="spenny"] .hot-card-reason {
  color: #d9c79b;
}

body[data-theme="spenny"] .hot-link-btn {
  background: #1e212b;
  border-color: rgba(212, 175, 55, 0.4);
  color: #e5c354;
}

body[data-theme="spenny"] .card-footer {
  background: #1a1c25;
  border-top-color: var(--border);
}

body[data-theme="spenny"] .card-rating-pill {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.35);
  color: #f5d26b;
}

body[data-theme="spenny"] .top-comment-callout {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.32);
}

body[data-theme="spenny"] .top-comment-callout .tc-label {
  color: #e5c354;
}

body[data-theme="spenny"] .vb-pin {
  background: rgba(22, 24, 32, 0.96);
  color: #f6f1e7;
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
}

body[data-theme="spenny"] .vb-pin.is-hot {
  background: linear-gradient(135deg, #241e12, #1b1822);
  border-color: #d4af37;
}

body[data-theme="spenny"] .vb-pin.selected {
  background: linear-gradient(135deg, #d4af37, #b58d1e);
  color: #111216;
  border-color: #fff;
}

body[data-theme="spenny"] .vb-pin.selected .pin-rating,
body[data-theme="spenny"] .vb-pin.selected .pin-sep,
body[data-theme="spenny"] .vb-pin.selected .pin-row-sub {
  color: #111216;
}

body[data-theme="spenny"] .map-legend {
  background: rgba(22, 24, 32, 0.92);
  color: #f6f1e7;
}

body[data-theme="spenny"] .filter-pill.hot-toggle {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
  color: #f5d26b;
}

body[data-theme="spenny"] .filter-pill.hot-toggle.active {
  background: linear-gradient(135deg, #d4af37, #b48418);
  color: #111216;
  border-color: #e5c354;
}

body[data-theme="spenny"] .qb-chip.active {
  background: #d4af37;
  border-color: #d4af37;
  color: #111216;
}

body[data-theme="spenny"] .bill-estimator {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.35);
}

body[data-theme="spenny"] .map-stage {
  background: #14161c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button,
input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==================== LAYOUT SHELL ==================== */
.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.top-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 60;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.top-bar-primary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent) 0%, #b83718 100%);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(217, 78, 42, 0.28);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--verified);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Center Navigation Hub: Location + Surprise Me */
.nav-hub {
  display: flex;
  align-items: center;
  gap: 10px;
}

.location-capsule {
  display: flex;
  align-items: center;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px 5px 3px 6px;
  gap: 4px;
}

.location-divider {
  width: 1px;
  height: 20px;
  background: var(--border-strong);
  flex-shrink: 0;
}

.location-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.location-btn:hover {
  background: var(--surface-hover);
}

.location-btn svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex-shrink: 0;
}

.location-btn .chevron {
  width: 13px;
  height: 13px;
  color: var(--ink-muted);
}

.geo-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--verified-border);
  background: var(--surface);
  color: var(--verified);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.15s;
}

.geo-btn:hover {
  background: var(--verified-soft);
}

.geo-btn.locating {
  opacity: 0.7;
  pointer-events: none;
}

.geo-btn svg {
  width: 14px;
  height: 14px;
}

/* Surprise Me (Proximity Randomizer) CTA */
.surprise-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  color: #92400e;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.18);
  transition: transform 0.14s, box-shadow 0.14s;
}

.surprise-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.28);
}

.shorts-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
  transition: all 0.14s;
}

.shorts-toggle-btn:hover {
  background: #fee2e2;
}

.shorts-toggle-btn.active {
  background: #dc2626;
  border-color: #b91c1c;
  color: #fff;
}

.dice-icon {
  font-size: 0.96rem;
  line-height: 1;
}

/* Subtle Compact Search Input (Low-prominence UX) */
.top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.gemini-hub {
  position: relative;
}

/* Gemini Dynamic Prompt Box (Replaces Keyword Search) */
.gemini-prompt-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  width: 268px;
  background: linear-gradient(135deg, #f8f7ff 0%, #eff6ff 100%);
  border: 1.5px solid #c7d2fe;
  border-radius: var(--radius-pill);
  padding: 4px 5px 4px 10px;
  transition: width 0.2s ease, border-color 0.16s, box-shadow 0.16s;
}

.gemini-prompt-box:focus-within {
  width: 300px;
  background: #fff;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}

.gemini-spark {
  font-size: 0.95rem;
  background: linear-gradient(135deg, #2563eb, #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
  font-weight: 800;
}

.gemini-prompt-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--ink);
}

.gemini-prompt-box input::placeholder {
  color: #6366f1;
  opacity: 0.78;
  font-weight: 500;
}

.gemini-go-btn {
  border: none;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  transition: opacity 0.14s;
}

.gemini-go-btn:hover {
  opacity: 0.92;
}

.gemini-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 420px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid #c7d2fe;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
  padding: 12px;
  z-index: 160;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gemini-sugg-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4f46e5;
  padding: 2px 6px 4px;
}

.gemini-sugg-btn {
  text-align: left;
  border: none;
  background: transparent;
  padding: 7px 9px;
  border-radius: 9px;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--ink);
}

.gemini-sugg-btn:hover {
  background: #eef2ff;
  color: #3730a3;
}

.gemini-banner {
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  border-bottom: 1px solid #c7d2fe;
  padding: 9px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.77rem;
  color: #312e81;
  flex-shrink: 0;
}

.gemini-banner strong {
  display: block;
  font-size: 0.78rem;
  color: #4338ca;
  margin-bottom: 2px;
}

.gemini-banner button {
  border: 1px solid #c7d2fe;
  background: #fff;
  color: #4338ca;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.icon-btn-subtle {
  border: none;
  background: transparent;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.icon-btn-subtle:hover {
  background: var(--surface-hover);
  color: var(--ink);
}

.icon-btn-subtle svg {
  width: 12px;
  height: 12px;
}

.action-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.81rem;
  font-weight: 600;
  transition: all 0.15s;
  white-space: nowrap;
}

.action-pill:hover {
  background: var(--surface-subtle);
  border-color: var(--border-strong);
}

.action-pill.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.action-pill.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.action-pill.primary:hover {
  background: #27272a;
}

.action-pill svg {
  width: 14px;
  height: 14px;
}

.mini-badge {
  background: var(--surface-subtle);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}

.action-pill.active .mini-badge {
  background: var(--accent);
  color: #fff;
}

/* ==================== FILTER RIBBON ==================== */
.filter-ribbon {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px 9px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-ribbon::-webkit-scrollbar {
  display: none;
}

.filter-group {
  flex-shrink: 0;
}

/* Global Casual vs Spenny Mode Switch */
.mode-switch {
  display: inline-flex;
  align-items: center;
  background: var(--surface-subtle);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 2px;
  gap: 2px;
  flex-shrink: 0;
}

.mode-btn {
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.77rem;
  font-weight: 800;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.mode-btn:hover {
  color: var(--ink);
}

.mode-btn.active {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 2px 8px rgba(24, 24, 27, 0.2);
}

.mode-btn.spenny.active {
  background: linear-gradient(135deg, #18181b 0%, #78350f 55%, #b45309 100%);
  color: #fef3c7;
  box-shadow: 0 3px 12px rgba(180, 83, 9, 0.32);
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: all 0.14s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.filter-pill:hover {
  background: var(--surface-subtle);
  border-color: #a1a1aa;
}

.filter-pill .pill-icon {
  width: 13px;
  height: 13px;
  color: var(--ink-secondary);
}

.filter-pill .pill-icon.star {
  color: var(--amber);
}

.filter-pill .chevron {
  width: 12px;
  height: 12px;
  color: var(--ink-muted);
}

.filter-pill.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
}

.filter-pill.active .pill-icon,
.filter-pill.active .chevron {
  color: var(--accent-hover);
}

.filter-pill.hot-toggle {
  border-color: var(--hot-border);
  background: var(--hot-soft);
  color: #c2410c;
  font-weight: 700;
}

.filter-pill.hot-toggle:hover {
  background: #ffedd5;
}

.filter-pill.hot-toggle.active {
  background: linear-gradient(135deg, #ea580c, #dc2626);
  border-color: #c2410c;
  color: #fff;
}

.filter-pill.active-verified {
  background: var(--verified-soft);
  border-color: var(--verified);
  color: var(--verified);
}

.filter-pill.active-verified .pill-icon,
.filter-pill.active-verified .chevron {
  color: var(--verified);
}

.filter-pill.quick-toggle .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca3af;
}

.filter-pill.quick-toggle.active {
  background: var(--open-soft);
  border-color: var(--open);
  color: var(--open);
}

.filter-pill.quick-toggle.active .status-dot {
  background: var(--open);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.18);
}

.reset-link {
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.reset-link:hover {
  text-decoration: underline;
}

/* ==================== WORKSPACE SPLIT ==================== */
.workspace {
  flex: 1;
  display: flex;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
  z-index: 20;
}

.sidebar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.results-heading {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.results-subtext {
  margin: 2px 0 0;
  font-size: 0.76rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.sort-select {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  max-width: 158px;
  flex-shrink: 0;
}

.sort-select:focus {
  border-color: var(--accent);
}

/* Active Chips */
.active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 7px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
  font-size: 0.73rem;
  font-weight: 600;
}

.active-chip button {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.75rem;
  color: var(--ink-muted);
  line-height: 1;
}

.active-chip button:hover {
  color: var(--accent);
}

/* Breakdown Bar (2 clean tiles — Open Right Now 4/4 removed, Top Cuisine wraps cleanly) */
.breakdown-bar {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 8px;
  padding: 9px 14px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 11px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.stat-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.stat-value {
  font-size: clamp(0.78rem, 0.98vw, 0.94rem);
  font-weight: 800;
  color: var(--ink);
  margin-top: 2px;
  line-height: 1.2;
  white-space: normal;
  overflow: visible;
  word-break: break-word;
}

/* Scrollable Sidebar Feed */
.sidebar-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* ==================== HOT & NEW SECTION ==================== */
.hot-section {
  background: linear-gradient(180deg, #fff7ed 0%, #f6f4ef 100%);
  border-bottom: 1px solid var(--hot-border);
  padding: 12px 14px 12px;
  flex-shrink: 0;
}

.hot-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.hot-section-head h2 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #9a3412;
}

.hot-section-head p {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: #7c2d12;
  opacity: 0.85;
}

.hot-link-btn {
  border: 1px solid var(--hot-border);
  background: #fff;
  color: #c2410c;
  font-size: 0.71rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}

.hot-link-btn:hover {
  background: #ffedd5;
}

.hot-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.hot-card {
  width: 215px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1.5px solid var(--hot-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.14s, box-shadow 0.14s, border-color 0.14s;
  display: flex;
  flex-direction: column;
}

.hot-card:hover {
  transform: scale(1.045) translateY(-3px);
  z-index: 6;
  box-shadow: var(--shadow-lg);
  border-color: var(--hot);
}

.hot-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(217, 78, 42, 0.22);
}

.hot-card-img {
  position: relative;
  height: 86px;
  background: #27272a;
}

.hot-card-img img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hot-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  background: linear-gradient(135deg, #ea580c, #dc2626);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.hot-dist {
  position: absolute;
  bottom: 6px;
  right: 6px;
  z-index: 2;
  background: rgba(24, 24, 27, 0.78);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.hot-card-body {
  padding: 8px 10px 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hot-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.hot-card-top strong {
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-card-top span {
  font-size: 0.72rem;
  font-weight: 800;
  color: #b45309;
  flex-shrink: 0;
}

.hot-card-meta {
  font-size: 0.72rem;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-card-reason {
  font-size: 0.69rem;
  color: #9a3412;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
}

/* One-Click Quick Browse Strip */
.quick-browse-strip {
  display: flex;
  gap: 6px;
  padding: 10px 14px 2px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}

.quick-browse-strip::-webkit-scrollbar {
  display: none;
}

.qb-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 0.73rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.14s;
}

.qb-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--surface-subtle);
}

.qb-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* Restaurant List */
.restaurant-list {
  padding: 14px 18px 80px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.restaurant-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: relative;
  transform-origin: center center;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.16s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.restaurant-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: scale(1.038) translateY(-3px);
  z-index: 8;
}

.restaurant-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 78, 42, 0.14);
}

.card-main {
  display: flex;
  gap: 12px;
  padding: 11px 12px;
}

.card-thumb {
  width: 96px;
  height: 106px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(135deg, #2c2a29, #574337);
}

.card-thumb img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-thumb-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #f3e8df, #e8d5c4);
}

.card-verified-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  background: rgba(15, 118, 110, 0.94);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  backdrop-filter: blur(4px);
}

.card-verified-badge.hot {
  background: linear-gradient(135deg, #ea580c, #dc2626);
}

.card-verified-badge.unverified {
  background: rgba(82, 82, 91, 0.88);
}

.card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.card-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}

.card-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.77rem;
  font-weight: 800;
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 2px 6px;
  border-radius: 6px;
  flex-shrink: 0;
}

.card-meta-line {
  font-size: 0.77rem;
  color: var(--ink-secondary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.meta-dot {
  color: #a1a1aa;
}

.price-tag {
  font-weight: 700;
  color: var(--ink);
}

.cost-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--surface-subtle);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--ink);
}

.card-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.74rem;
  margin-top: 2px;
}

.open-badge {
  font-weight: 700;
  color: var(--open);
}

.open-badge.closed {
  color: var(--closed);
}

.distance-badge {
  color: var(--ink-muted);
  font-weight: 700;
}

.card-top-quote {
  font-size: 0.73rem;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
  background: var(--surface-subtle);
  padding: 3px 7px;
  border-radius: 6px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  border-top: 1px solid var(--surface-subtle);
  background: #fcfbf9;
}

.meal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.meal-chip {
  font-size: 0.67rem;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--surface-subtle);
  padding: 2px 6px;
  border-radius: 5px;
}

.card-quick-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mini-action-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 0.71rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  transition: all 0.14s;
}

.mini-action-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.mini-action-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 34px 18px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

.empty-state h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.empty-state p {
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* ==================== DETAIL DRAWER ==================== */
.detail-drawer {
  width: var(--drawer-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 30;
  display: flex;
  flex-direction: column;
  min-height: 0;
  animation: slideInDrawer 0.18s ease-out;
}

@keyframes slideInDrawer {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.drawer-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-secondary);
}

.drawer-nav-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.drawer-nav-btn {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
}

.drawer-nav-btn:hover:not(:disabled) {
  border-color: var(--ink);
  color: var(--ink);
}

.drawer-nav-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.drawer-scroll {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 40px;
}

.drawer-hero {
  position: relative;
  height: 196px;
  background: #27272a;
}

.drawer-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.drawer-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.12) 55%, rgba(0, 0, 0, 0.35) 100%);
}

.drawer-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
}

.drawer-close-btn:hover {
  background: #fff;
  transform: scale(1.05);
}

.drawer-hero-badges {
  position: absolute;
  top: 10px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hero-badge {
  background: rgba(15, 118, 110, 0.94);
  color: #fff;
  font-size: 0.71rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.hero-badge.hot {
  background: linear-gradient(135deg, #ea580c, #dc2626);
}

.hero-badge.unverified {
  background: rgba(82, 82, 91, 0.92);
}

.drawer-hero-title {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 13px;
  color: #fff;
}

.drawer-hero-title h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.42rem;
  line-height: 1.15;
}

.drawer-hero-title p {
  margin: 4px 0 0;
  font-size: 0.81rem;
  opacity: 0.92;
}

.drawer-summary-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
  background: var(--surface-subtle);
}

.summary-cell {
  padding: 9px 10px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.summary-cell:last-child {
  border-right: none;
}

.summary-cell strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 800;
}

.summary-cell span {
  font-size: 0.69rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.drawer-action-row {
  display: flex;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.drawer-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 10px;
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 5;
}

.drawer-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 4px;
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--ink-muted);
  border-bottom: 2.5px solid transparent;
  white-space: nowrap;
  transition: all 0.14s;
}

.drawer-tab:hover {
  color: var(--ink);
}

.drawer-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.drawer-tab-panel {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

/* Verification Dossier Card */
.dossier-card {
  background: var(--verified-soft);
  border: 1px solid var(--verified-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.dossier-card.unverified {
  background: var(--surface-subtle);
  border-color: var(--border-strong);
}

.dossier-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.dossier-top strong {
  font-size: 0.85rem;
  color: var(--verified);
}

.dossier-card.unverified .dossier-top strong {
  color: var(--ink-secondary);
}

.hygiene-pill {
  font-size: 0.71rem;
  font-weight: 800;
  background: #fff;
  border: 1px solid var(--verified-border);
  color: var(--verified);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.dossier-notes {
  margin: 0 0 8px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ink-secondary);
}

.dossier-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.71rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.dossier-meta span:last-child {
  white-space: nowrap;
  flex-shrink: 0;
}

.top-comment-callout {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.8rem;
}

.top-comment-callout .tc-label {
  font-size: 0.69rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #b45309;
  margin-bottom: 4px;
}

.top-comment-callout p {
  margin: 0;
  line-height: 1.45;
  color: var(--ink);
  font-style: italic;
}

.top-comment-callout .tc-foot {
  margin-top: 5px;
  font-size: 0.72rem;
  color: var(--ink-muted);
  font-weight: 700;
}

.info-block h4 {
  margin: 0 0 8px;
  font-size: 0.79rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.dish-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dish-item {
  background: var(--surface-subtle);
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  font-size: 0.73rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
}

/* Cost Breakdown Panel */
.cost-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.cost-box {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.cost-box span {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.cost-box strong {
  font-size: 1.03rem;
  font-weight: 800;
  margin-top: 2px;
  display: block;
}

.bill-estimator {
  background: var(--accent-soft);
  border: 1px solid #fbd4c7;
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.bill-estimator-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.bill-estimator input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

/* Popular Times Chart */
.popular-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 90px;
  padding: 10px 6px 4px;
  background: var(--surface-subtle);
  border-radius: 10px;
}

.pop-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 4px;
}

.pop-bar {
  width: 100%;
  background: #cbd5e1;
  border-radius: 4px 4px 0 0;
  min-height: 3px;
  transition: height 0.2s, background 0.15s;
}

.pop-bar.current {
  background: var(--accent);
}

.pop-bar-label {
  font-size: 0.62rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.hours-table {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.81rem;
  padding: 6px 10px;
  border-radius: 8px;
}

.hours-row.today {
  background: var(--accent-soft);
  font-weight: 700;
  color: var(--accent-hover);
}

/* Reviews Tab */
.review-card {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.review-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.review-author {
  font-size: 0.84rem;
  font-weight: 800;
}

.review-role {
  font-size: 0.7rem;
  color: var(--verified);
  font-weight: 700;
  display: block;
}

.review-text {
  margin: 0;
  font-size: 0.81rem;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.review-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.73rem;
  color: var(--ink-muted);
}

.review-form {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.review-form h4 {
  margin: 0;
  font-size: 0.86rem;
}

.review-form input,
.review-form select,
.review-form textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.81rem;
  background: var(--surface-subtle);
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
}

/* ==================== MAP STAGE ==================== */
.map-stage {
  flex: 1;
  position: relative;
  min-width: 0;
  background: #e9e6de;
  isolation: isolate;
  z-index: 1;
}

.map-canvas {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Minimalist low-detail Esri Gray Canvas styling */
.map-canvas .leaflet-tile-pane {
  filter: contrast(0.98) brightness(1.01);
}

/* Highest-Liked Comment + Recommended Dish Photos Map Tooltip */
.leaflet-tooltip.bb-map-tooltip {
  background: rgba(24, 24, 27, 0.97);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
  white-space: normal;
  max-width: 300px;
}

.leaflet-tooltip.bb-map-tooltip::before {
  border-top-color: rgba(24, 24, 27, 0.97);
}

.map-tooltip-card {
  padding: 10px 12px;
  width: 286px;
  font-family: var(--font-sans);
}

.mt-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 7px;
}

.mt-head strong {
  font-size: 0.87rem;
  color: #fff;
}

.mt-meta {
  font-size: 0.71rem;
  color: #d4d4d8;
}

.mt-dishes-label {
  font-size: 0.63rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a1a1aa;
  margin-bottom: 5px;
}

.mt-dishes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.mt-dish-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.mt-dish-card img {
  width: 100%;
  height: 54px;
  object-fit: cover;
  display: block;
}

.mt-dish-info {
  padding: 4px 6px 5px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mt-dish-name {
  font-size: 0.66rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mt-dish-price {
  font-size: 0.64rem;
  font-weight: 700;
  color: #fbbf24;
}

.mt-quote {
  font-size: 0.74rem;
  line-height: 1.38;
  color: #fef3c7;
  font-style: italic;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 8px;
  border-radius: 8px;
  border-left: 2.5px solid #f59e0b;
}

.mt-credit {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  color: #a1a1aa;
}

/* Custom Map Name + Cuisine Pill Pins */
.vb-marker-container {
  background: transparent;
  border: none;
}

.vb-pin {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  padding: 5px 9px 5px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-family: var(--font-sans);
  white-space: nowrap;
  border: 1.5px solid rgba(24, 24, 27, 0.16);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
  transition: transform 0.14s ease, background 0.14s ease, color 0.14s ease;
  position: relative;
}

.pin-row-top {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1.15;
}

.pin-name {
  color: inherit;
}

.pin-row-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.63rem;
  font-weight: 700;
  color: var(--ink-muted);
  line-height: 1.1;
  padding-left: 19px;
}

.vb-pin.selected .pin-row-sub {
  color: rgba(255, 255, 255, 0.9);
}

.vb-pin.is-hot {
  border-color: #ea580c;
  background: #fff7ed;
}

.vb-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  background: inherit;
  border-right: 1.5px solid rgba(24, 24, 27, 0.14);
  border-bottom: 1.5px solid rgba(24, 24, 27, 0.14);
  transform: translateX(-50%) rotate(45deg);
}

.vb-pin .pin-shield {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--verified);
  color: #fff;
  font-size: 0.62rem;
  display: inline-grid;
  place-items: center;
}

.vb-pin .pin-hot {
  font-size: 0.72rem;
  line-height: 1;
}

.vb-pin .pin-rating {
  color: #b45309;
}

.vb-pin .pin-sep {
  color: #a1a1aa;
}

.vb-pin.is-closed {
  opacity: 0.8;
}

.vb-pin:hover,
.vb-pin.hovered {
  transform: scale(1.18) translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  z-index: 20;
}

.vb-pin.selected {
  background: var(--accent);
  color: #fff;
  border-color: #fff;
  transform: scale(1.16) translateY(-3px);
  box-shadow: 0 8px 22px rgba(217, 78, 42, 0.45);
}

.vb-pin.selected .pin-rating,
.vb-pin.selected .pin-sep {
  color: #fff;
}

.vb-pin.selected .pin-shield {
  background: #fff;
  color: var(--accent);
}

/* User Beacon */
.user-beacon-wrapper {
  background: transparent;
  border: none;
}

.user-beacon {
  position: relative;
  width: 24px;
  height: 24px;
}

.user-beacon-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.28);
  animation: beaconPulse 2s infinite ease-out;
}

.user-beacon-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #2563eb;
  border: 2.5px solid #fff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.5);
}

@keyframes beaconPulse {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Floating Map Controls */
.search-area-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 400;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.79rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: transform 0.14s;
}

.search-area-btn:hover {
  transform: scale(1.03);
}

.search-area-btn svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.map-floating-tools {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.map-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.77rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: all 0.14s;
}

.map-tool-btn.icon-only {
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

.map-tool-btn:hover {
  background: var(--surface-subtle);
}

.map-tool-btn svg {
  width: 15px;
  height: 15px;
  color: var(--verified);
}

.map-legend {
  position: absolute;
  bottom: 16px;
  left: 14px;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.legend-dot.hot {
  background: var(--hot);
}

.legend-dot.verified {
  background: var(--verified);
}

.legend-dot.user {
  background: #2563eb;
}

/* Fallback Map */
.fallback-map {
  position: relative;
  width: 100%;
  height: 100%;
  background: #ebe7de;
  overflow: hidden;
}

.fallback-map.dark {
  background: #18181b;
}

.fallback-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(24, 24, 27, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(24, 24, 27, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
}

.fallback-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--surface);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.fallback-user {
  position: absolute;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
}

.fallback-pin-wrap {
  position: absolute;
  transform: translate(-50%, -50%);
  border: none;
  background: transparent;
  padding: 0;
}

/* ==================== RANDOMIZER MODAL ==================== */
.randomizer-card {
  width: 520px;
}

.randomizer-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.randomizer-controls {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.rand-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--ink-secondary);
}

.randomizer-stage {
  min-height: 210px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ==================== FULL-SCREEN SURPRISE ME ORIGIN STAGE ==================== */
.surprise-fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: #0d0d11;
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fsPopIn 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fsPopIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.surprise-backdrop-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 34%, rgba(217, 78, 42, 0.28), rgba(13, 13, 17, 0.96) 72%);
  transition: background 0.55s ease;
  overflow: hidden;
}

.origin-particle {
  position: absolute;
  bottom: -40px;
  font-size: var(--p-size, 2rem);
  opacity: 0;
  left: var(--p-left, 50%);
  animation: originFloatUp var(--p-dur, 4.4s) var(--p-delay, 0s) ease-out infinite;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

@keyframes originFloatUp {
  0% {
    transform: translateY(0) scale(0.7) rotate(-10deg);
    opacity: 0;
  }
  18% {
    opacity: 0.72;
  }
  80% {
    opacity: 0.42;
  }
  100% {
    transform: translateY(-92vh) scale(1.2) rotate(14deg);
    opacity: 0;
  }
}

.surprise-fs-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 24px;
  background: rgba(18, 18, 22, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.surprise-fs-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.surprise-fs-title h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.surprise-mode-pill {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  color: #fde68a;
  border: 1px solid rgba(253, 230, 138, 0.35);
}

.surprise-fs-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.choice-chip.dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #e4e4e7;
}

.choice-chip.dark:hover {
  background: rgba(255, 255, 255, 0.16);
}

.choice-chip.dark.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.dark-check {
  color: #e4e4e7;
  font-size: 0.78rem;
}

.dark-check input {
  accent-color: #f59e0b;
}

.surprise-fs-stage {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 28px;
  overflow-y: auto;
}

.surprise-fs-spin {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.surprise-fs-spin-kicker {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fde68a;
}

.surprise-fs-roulette-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(251, 191, 36, 0.65);
  padding: 18px 34px;
  border-radius: 22px;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(10px);
  animation: roulettePulse 0.18s ease-in-out infinite alternate;
}

.surprise-fs-winner {
  width: 100%;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.origin-hero-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: originHeroPop 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes originHeroPop {
  0% {
    opacity: 0;
    transform: scale(0.72) translateY(-18px);
  }
  70% {
    opacity: 1;
    transform: scale(1.04) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.origin-country-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fef3c7;
  backdrop-filter: blur(8px);
}

.origin-cuisine-headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.origin-venue-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(24, 24, 27, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.origin-venue-meta strong {
  color: #fff;
  font-size: 1.02rem;
}

.origin-venue-meta span {
  color: #d4d4d8;
}

.origin-dishes-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.76);
  margin-top: 4px;
}

.origin-dishes-stage {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.origin-dish-card {
  background: rgba(24, 24, 27, 0.86);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(72vh) scale(0.84);
  animation: dishLaunchFromBottom 0.68s var(--dish-delay, 0.12s) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dishLaunchFromBottom {
  0% {
    opacity: 0;
    transform: translateY(72vh) scale(0.84) rotate(2deg);
  }
  70% {
    opacity: 1;
    transform: translateY(-10px) scale(1.02) rotate(-0.5deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

.origin-dish-card-img {
  position: relative;
  height: 148px;
  background: #27272a;
}

.origin-dish-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.origin-dish-stamp {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: #fde68a;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}

.origin-dish-card-body {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.origin-dish-card-body strong {
  font-size: 0.9rem;
  line-height: 1.28;
  color: #fff;
}

.origin-dish-card-body span {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fbbf24;
  flex-shrink: 0;
}

.surprise-fs-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 24px 22px;
  background: linear-gradient(to top, rgba(13, 13, 17, 0.96), rgba(13, 13, 17, 0));
}

.btn-primary.lg,
.btn-light.lg {
  padding: 12px 24px;
  font-size: 0.92rem;
  border-radius: var(--radius-pill);
  font-weight: 800;
}

.btn-light {
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.14s, background 0.14s;
}

.btn-light:hover {
  transform: translateY(-1px);
  background: #fef3c7;
}

@media (max-width: 780px) {
  .origin-dishes-stage {
    grid-template-columns: 1fr;
  }
}

/* ==================== DOOMSCROLL DETAILS DRAWER ==================== */
.doomscroll-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 800;
}

.doom-range-badge {
  background: rgba(15, 118, 110, 0.35);
  border: 1px solid rgba(94, 234, 212, 0.45);
  color: #99f6e4;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.doom-footer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.doom-info-btn {
  border: 1px solid #3f3f46;
  background: #27272a;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
}

.doom-info-btn:hover {
  background: #3f3f46;
}

.doom-side-details {
  width: 340px;
  max-width: 90vw;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 20px;
  color: #fff;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  animation: popIn 0.16s ease-out;
}

.doom-side-details h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.doom-details-meta {
  font-size: 0.8rem;
  color: #d4d4d8;
}

.doom-details-dishes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doom-details-dish {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px;
  border-radius: 10px;
}

.doom-details-dish img {
  width: 48px;
  height: 48px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}

.doom-details-dish span {
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
}

.rand-shuffling .shuffle-pill {
  font-size: 0.73rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rand-shuffling strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--ink);
}

.rand-winner {
  background: var(--surface);
}

.rand-winner-hero {
  position: relative;
  height: 142px;
  background: #27272a;
}

.rand-winner-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rand-winner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.1));
}

.rand-winner-badges {
  position: absolute;
  top: 10px;
  left: 12px;
  display: flex;
  gap: 6px;
}

.rand-winner-title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  color: #fff;
}

.rand-winner-title h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.32rem;
}

.rand-winner-title p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  opacity: 0.92;
}

.rand-winner-content {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.rand-winner-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
}

.randomizer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* ==================== POPOVERS ==================== */
.popover-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(24, 24, 27, 0.14);
}

.filter-popover {
  position: fixed;
  z-index: 90;
  width: 310px;
  max-width: calc(100vw - 24px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: popIn 0.14s ease-out;
}

.filter-popover.wide {
  width: 380px;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.popover-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}

.popover-header h3 {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 800;
}

.popover-header p {
  margin: 3px 0 0;
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.popover-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  max-height: 62vh;
  overflow-y: auto;
}

.popover-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-subtle);
}

.section-label {
  font-size: 0.71rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-top: 2px;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--verified-soft);
  border: 1px solid var(--verified-border);
  cursor: pointer;
}

.switch-row strong {
  display: block;
  font-size: 0.84rem;
  color: var(--verified);
}

.switch-row span {
  font-size: 0.74rem;
  color: var(--ink-secondary);
}

.switch-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--verified);
}

.checkbox-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.check-item:hover {
  background: var(--surface-subtle);
}

.check-item input {
  accent-color: var(--verified);
}

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

.tier-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  transition: all 0.14s;
}

.tier-btn:hover {
  border-color: var(--ink-muted);
}

.tier-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
}

.tier-symbol {
  font-size: 1.05rem;
  font-weight: 800;
}

.tier-desc {
  font-size: 0.73rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.cost-range-readout {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.dual-range {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dual-range input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.cost-histogram {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  align-items: end;
  height: 58px;
  padding: 8px 6px 2px;
  background: var(--surface-subtle);
  border-radius: 10px;
}

.hist-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 3px;
}

.hist-bar {
  width: 100%;
  background: var(--accent);
  opacity: 0.78;
  border-radius: 4px 4px 0 0;
  min-height: 4px;
}

.hist-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.popover-search {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 8px 11px;
  font-size: 0.83rem;
  outline: none;
}

.popover-search:focus {
  border-color: var(--accent);
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip-grid.scrollable {
  max-height: 220px;
  overflow-y: auto;
}

.choice-chip {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.14s;
}

.choice-chip:hover {
  background: var(--surface-subtle);
}

.choice-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface-subtle);
  padding: 3px;
  border-radius: 10px;
  gap: 3px;
}

.seg-btn {
  border: none;
  background: transparent;
  padding: 7px 6px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-secondary);
}

.seg-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.custom-time-panel {
  background: var(--surface-subtle);
  padding: 10px;
  border-radius: 10px;
}

.custom-time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.custom-time-grid label {
  display: block;
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.custom-time-grid select {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
}

.rating-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rating-opt {
  text-align: left;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.83rem;
  font-weight: 600;
}

.rating-opt:hover {
  background: var(--surface-subtle);
}

.rating-opt.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
}

.address-search-row {
  display: flex;
  gap: 7px;
}

.address-search-row input {
  flex: 1;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 8px 11px;
  font-size: 0.83rem;
  outline: none;
}

.address-search-row input:focus {
  border-color: var(--accent);
}

.helper-text {
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.city-preset-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.city-btn {
  text-align: left;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 9px 12px;
  border-radius: 10px;
  transition: all 0.14s;
}

.city-btn:hover {
  background: var(--surface-subtle);
}

.city-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.city-btn strong {
  display: block;
  font-size: 0.85rem;
}

.city-btn span {
  font-size: 0.74rem;
  color: var(--ink-muted);
}

/* ==================== BUTTONS ==================== */
.btn-primary {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.83rem;
  font-weight: 700;
  transition: background 0.14s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-secondary:hover {
  background: var(--surface-subtle);
}

.btn-secondary.verified-active {
  background: var(--verified-soft);
  border-color: var(--verified);
  color: var(--verified);
}

.btn-ghost {
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
}

.btn-ghost:hover {
  background: var(--surface-hover);
  color: var(--ink);
}

.btn-primary.sm,
.btn-ghost.sm,
.btn-secondary.sm {
  padding: 6px 12px;
  font-size: 0.78rem;
}

/* ==================== COMPARE TRAY & MODALS ==================== */
.compare-tray {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 32px);
}

.compare-tray-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.compare-items {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.compare-chip {
  background: rgba(255, 255, 255, 0.14);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.77rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.compare-chip button {
  border: none;
  background: transparent;
  color: #d4d4d8;
  padding: 0;
  font-size: 0.78rem;
}

.compare-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.compare-tray .btn-ghost {
  color: #d4d4d8;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(24, 24, 27, 0.55);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-card {
  width: 560px;
  max-width: 100%;
  max-height: 90vh;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-card.wide {
  width: 860px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.24rem;
}

.modal-header p {
  margin: 4px 0 0;
  font-size: 0.79rem;
  color: var(--ink-muted);
}

.icon-btn {
  border: none;
  background: var(--surface-subtle);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 700;
}

.modal-form {
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: grid;
  gap: 10px;
}

.form-row.two-col {
  grid-template-columns: 1fr 1fr;
}

.form-row.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}

.modal-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-secondary);
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
}

.inline-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.inline-check {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 5px !important;
  font-weight: 600 !important;
  cursor: pointer;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 6px;
}

.compare-table-wrap {
  padding: 16px 20px;
  overflow: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.compare-table th,
.compare-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  color: var(--ink-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: 150px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
}

.mobile-view-toggle {
  display: none;
}

/* ==================== YOUTUBE SHORTS SIDE RAIL ==================== */
.shorts-rail {
  width: var(--shorts-w);
  flex-shrink: 0;
  background: #121215;
  color: #fff;
  border-left: 1px solid #27272a;
  display: flex;
  flex-direction: column;
  min-height: 0;
  z-index: 22;
}

.shorts-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  border-bottom: 1px solid #27272a;
  background: #18181b;
  flex-shrink: 0;
}

.shorts-rail-head h2 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
}

.shorts-rail-head span {
  display: block;
  font-size: 0.67rem;
  color: #a1a1aa;
  margin-top: 1px;
}

.shorts-expand-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #dc2626;
  color: #fff;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.shorts-expand-btn:hover {
  background: #ef4444;
}

.shorts-rail-feed {
  flex: 1;
  overflow-y: auto;
  scroll-snap-type: y proximity;
  padding: 10px 10px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: #3f3f46 #121215;
}

.short-card {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 15.2;
  border-radius: 14px;
  overflow: hidden;
  background: #1f1f23;
  border: 1.5px solid #27272a;
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
}

.short-card:hover {
  border-color: #ef4444;
}

.short-card.playing {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35);
}

.short-poster {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
}

.short-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.short-poster-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.1) 48%, rgba(0, 0, 0, 0.45) 100%);
}

.short-top-bar {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.short-tag-pill {
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
  font-size: 0.63rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.short-likes-pill {
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.short-play-center {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  padding-left: 3px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.14s;
  z-index: 2;
}

.short-poster:hover .short-play-center {
  transform: translate(-50%, -50%) scale(1.1);
}

.short-overlay-info {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 9px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.short-title {
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.28;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.short-creator {
  font-size: 0.66rem;
  color: #d4d4d8;
  font-weight: 600;
}

.short-action-row {
  display: flex;
  gap: 5px;
  margin-top: 2px;
}

.short-spot-btn {
  flex: 1;
  border: none;
  background: rgba(255, 255, 255, 0.94);
  color: #18181b;
  font-size: 0.67rem;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.short-spot-btn:hover {
  background: #fff;
}

.short-binge-btn {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(24, 24, 27, 0.75);
  color: #fff;
  font-size: 0.67rem;
  font-weight: 700;
  padding: 5px 7px;
  border-radius: 8px;
}

.short-iframe-wrap {
  position: relative;
  flex: 1;
  background: #000;
  display: flex;
  flex-direction: column;
}

.short-iframe-wrap iframe {
  width: 100%;
  flex: 1;
  border: 0;
}

.short-playing-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 8px;
  background: #18181b;
  border-top: 1px solid #27272a;
}

/* ==================== FULL-SCREEN DOOMSCROLL THEATER ==================== */
.doomscroll-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(9, 9, 11, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
}

.doomscroll-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  border-bottom: 1px solid #27272a;
  color: #fff;
}

.doomscroll-brand {
  font-size: 0.88rem;
  font-weight: 800;
}

.doomscroll-close {
  border: 1px solid #3f3f46;
  background: #27272a;
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
}

.doomscroll-close:hover {
  background: #3f3f46;
}

.doomscroll-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 14px;
}

.doomscroll-feed {
  width: 390px;
  max-width: 92vw;
  height: calc(100vh - 90px);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  border-radius: 20px;
}

.doomscroll-feed::-webkit-scrollbar {
  display: none;
}

.doom-slide {
  height: calc(100vh - 90px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #27272a;
  display: flex;
  flex-direction: column;
}

.doom-video-area {
  flex: 1;
  position: relative;
  background: #000;
}

.doom-video-area iframe,
.doom-video-area img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
}

.doom-footer {
  padding: 12px 14px;
  background: #18181b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #27272a;
}

.doom-footer-meta {
  min-width: 0;
}

.doom-footer-meta strong {
  display: block;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doom-footer-meta span {
  font-size: 0.74rem;
  color: #a1a1aa;
}

.doomscroll-nav-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.doom-nav-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #3f3f46;
  background: #27272a;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
}

.doom-nav-circle:hover {
  background: #dc2626;
  border-color: #ef4444;
}

.doom-counter {
  font-size: 0.78rem;
  font-weight: 800;
  color: #d4d4d8;
}

/* ==================== ANTI-SPAM REVIEW SHIELD ==================== */
.spam-shield-banner {
  background: var(--verified-soft);
  border: 1px solid var(--verified-border);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 0.75rem;
  color: var(--verified);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.spam-shield-banner strong {
  display: block;
  font-size: 0.77rem;
}

.credibility-pill {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 700;
  background: #ecfdf5;
  color: #0f766e;
  border: 1px solid #99f6e4;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  margin-left: 5px;
}

.review-card.filtered-spam {
  opacity: 0.68;
  background: #fef2f2;
  border-color: #fecaca;
}

.spam-reason-tag {
  font-size: 0.69rem;
  font-weight: 800;
  color: #b91c1c;
}

/* ==================== FULL-SCREEN RESTAURANT SPOTLIGHT ==================== */
.spotlight-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  animation: spotlightFade 0.18s ease-out;
}

@keyframes spotlightFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.spotlight-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.spotlight-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.spotlight-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-strong);
  background: var(--surface-subtle);
  color: var(--ink);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
}

.spotlight-back-btn:hover {
  background: var(--surface-hover);
  border-color: var(--ink);
}

.spotlight-topbar-center {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-secondary);
}

.spotlight-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spotlight-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(380px, 0.92fr);
  overflow: hidden;
}

.spotlight-left {
  overflow-y: auto;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding-bottom: 50px;
}

.spotlight-hero {
  position: relative;
  height: 250px;
  background: #27272a;
}

.spotlight-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spotlight-hero-content {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 20px;
  color: #fff;
}

.spotlight-hero-content h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.1;
}

.spotlight-hero-content p {
  margin: 6px 0 0;
  font-size: 0.92rem;
  opacity: 0.94;
}

.spotlight-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
  background: var(--surface-subtle);
}

.spotlight-summary-grid .summary-cell {
  padding: 13px 12px;
}

.spotlight-summary-grid .summary-cell strong {
  font-size: 1.02rem;
}

.spotlight-inner {
  padding: 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.spotlight-dishes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.spotlight-dish-card {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.14s, box-shadow 0.14s;
}

.spotlight-dish-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.spotlight-dish-card img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  display: block;
}

.spotlight-dish-meta {
  padding: 9px 11px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}

.spotlight-dish-meta strong {
  font-size: 0.81rem;
  line-height: 1.25;
  color: var(--ink);
}

.spotlight-dish-meta span {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
}

/* Right Side: Running Restaurant YouTube Shorts Theater */
.spotlight-right {
  background: #101013;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.spotlight-shorts-head {
  padding: 13px 18px;
  border-bottom: 1px solid #27272a;
  background: #18181b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.spotlight-shorts-head h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
}

.spotlight-shorts-head p {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: #a1a1aa;
}

.spotlight-shorts-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 18px 14px;
  gap: 12px;
  overflow: hidden;
}

.spotlight-player-frame {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid #27272a;
  background: #000;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
}

.spotlight-player-frame iframe {
  width: 100%;
  flex: 1;
  border: 0;
}

.spotlight-player-caption {
  padding: 9px 12px;
  background: #18181b;
  border-top: 1px solid #27272a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.spotlight-player-caption strong {
  display: block;
  font-size: 0.77rem;
  line-height: 1.25;
}

.spotlight-player-caption span {
  font-size: 0.69rem;
  color: #a1a1aa;
}

.spotlight-reel-strip {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 4px;
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: #3f3f46 #101013;
}

.spotlight-reel-thumb {
  width: 118px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #27272a;
  background: #18181b;
  padding: 0;
  text-align: left;
  color: #fff;
  transition: border-color 0.14s, transform 0.14s;
}

.spotlight-reel-thumb:hover {
  border-color: #71717a;
  transform: translateY(-1px);
}

.spotlight-reel-thumb.active {
  border-color: #ef4444;
}

.spotlight-reel-thumb img {
  width: 100%;
  height: 68px;
  object-fit: cover;
  display: block;
}

.spotlight-reel-thumb span {
  display: block;
  padding: 5px 6px;
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 960px) {
  .spotlight-body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .spotlight-left {
    overflow-y: visible;
    border-right: none;
  }

  .spotlight-right {
    min-height: 540px;
  }

  .spotlight-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spotlight-dishes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1220px) {
  .shorts-rail {
    display: none;
  }

  .shorts-rail.force-open {
    display: flex;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 48;
    box-shadow: var(--shadow-lg);
  }
}

@media (max-width: 1140px) {
  :root {
    --sidebar-w: 400px;
    --drawer-w: 380px;
  }

  .detail-drawer {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 45;
  }
}

@media (max-width: 860px) {
  .top-bar-primary {
    flex-wrap: wrap;
    padding: 8px 12px;
    gap: 8px;
  }

  .top-actions {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }

  .compact-search {
    flex: 1;
    width: auto;
  }

  .sidebar {
    width: 100%;
  }

  .detail-drawer {
    width: 100%;
  }

  .map-stage {
    position: absolute;
    inset: 0;
    z-index: 10;
  }

  .workspace.mobile-map-active .sidebar {
    display: none;
  }

  .workspace:not(.mobile-map-active) .map-stage {
    pointer-events: none;
    opacity: 0;
  }

  .mobile-view-toggle {
    display: inline-flex;
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 65;
    border: none;
    background: var(--ink);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
  }
}


/* ==================== CHOOSEMYBITE: FOOD FOR MY MOOD + AUTH + BUSINESS PORTAL ==================== */

.action-pill {
  padding: 6px 10px;
  font-size: 0.78rem;
  gap: 5px;
}

.action-pill.auth-pill {
  border-color: var(--border-strong);
  font-weight: 700;
}

.action-pill.auth-pill.signed-in {
  background: var(--verified-soft);
  border-color: var(--verified-border);
  color: var(--verified);
}

.action-pill.auth-pill.business-signed-in,
.action-pill.business-pill {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
  font-weight: 700;
}

.action-pill.business-pill:hover {
  background: #fde68a;
}

/* Food for my Mood Trigger Pill + Rich Hover Tooltip */
.gemini-mood-pill {
  position: relative;
  border: 1px solid #d8b4fe;
  background: linear-gradient(135deg, #fdf4ff 0%, #ede9fe 100%);
  color: #6b21a8;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  white-space: nowrap;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.gemini-mood-pill:hover {
  background: linear-gradient(135deg, #f3e8ff 0%, #ddd6fe 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(147, 51, 234, 0.22);
}

.gemini-mood-pill::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 10px);
  right: -20px;
  width: 240px;
  padding: 8px 11px;
  border-radius: 10px;
  background: #1e1b4b;
  color: #f5f3ff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
  text-align: left;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 200;
}

.gemini-mood-pill:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Food for my Mood Section inside Ask Gemini Dropdown */
.mood-section {
  background: linear-gradient(145deg, #faf5ff 0%, #fdf2f8 52%, #fff7ed 100%);
  border: 1px solid #e9d5ff;
  border-radius: 13px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.mood-section-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mood-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  color: #581c87;
}

.mood-tooltip-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e9d5ff;
  color: #6b21a8;
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 800;
  cursor: help;
}

.mood-tooltip-prompt {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.42;
  color: #6b21a8;
}

.mood-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid #d8b4fe;
  border-radius: 11px;
  padding: 4px 5px 4px 10px;
}

.mood-input-row:focus-within {
  border-color: #9333ea;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.14);
}

.mood-input-row input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--ink);
}

.mood-match-btn {
  border: none;
  background: linear-gradient(135deg, #9333ea 0%, #db2777 100%);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 6px 11px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s, transform 0.15s;
}

.mood-match-btn:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

.mood-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.mood-chip-btn {
  border: 1px solid #e9d5ff;
  background: rgba(255, 255, 255, 0.88);
  color: #581c87;
  font-size: 0.71rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  transition: all 0.14s ease;
}

.mood-chip-btn:hover {
  background: #f3e8ff;
  border-color: #a855f7;
  transform: translateY(-1px);
}

/* Emotional Result Card inside Food for my Mood */
.mood-result-card {
  background: #fff;
  border: 1.5px solid #c084fc;
  border-radius: 12px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 8px 22px rgba(147, 51, 234, 0.12);
  animation: moodFadeIn 0.28s ease;
}

@keyframes moodFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mood-res-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 800;
  color: #7e22ce;
}

.mood-res-mode {
  font-size: 0.67rem;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: #f3e8ff;
  color: #6b21a8;
}

.mood-res-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.mood-link-pill {
  font-size: 0.67rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  color: #9d174d;
}

.mood-res-spot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px;
  border-radius: 10px;
  background: #faf5ff;
}

.mood-res-spot img {
  width: 56px;
  height: 56px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}

.mood-res-spot-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mood-res-spot-meta strong {
  font-size: 0.88rem;
  color: #18181b;
}

.mood-res-spot-meta span {
  font-size: 0.72rem;
  color: #52525b;
}

.mood-res-spot-meta em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: #9333ea;
}

.mood-res-story {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.52;
  color: #3b0764;
  font-style: italic;
}

.mood-res-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gemini-divider {
  height: 1px;
  background: var(--border);
  margin: 2px 0;
}

.gemini-sugg-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gemini-banner.mood-banner {
  background: linear-gradient(135deg, #faf5ff 0%, #fdf2f8 100%);
  border-bottom-color: #e9d5ff;
  color: #4c1d95;
}

.gemini-banner.mood-banner strong {
  color: #7e22ce;
}

.gemini-banner .mood-banner-cta {
  background: linear-gradient(135deg, #9333ea 0%, #db2777 100%);
  border-color: transparent;
  color: #fff;
  padding: 4px 10px;
}

/* ==================== AUTH MODAL (DINER & BUSINESS OWNER LOGIN) ==================== */

.auth-modal-card {
  max-width: 520px;
}

.auth-role-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px 22px 0;
}

.auth-role-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface-subtle);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink);
  transition: all 0.16s ease;
}

.auth-role-tab span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-secondary);
}

.auth-role-tab.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(217, 78, 42, 0.12);
}

.auth-mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.auth-mode-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.auth-demo-btn {
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  transition: all 0.14s ease;
}

.auth-demo-btn:hover {
  background: #e0e7ff;
}

.compact-switch {
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}

.auth-helper-note {
  font-size: 0.76rem;
  line-height: 1.45;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.auth-signed-in-view {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.signed-in-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}

.signed-in-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.signed-in-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.signed-in-meta strong {
  font-size: 0.96rem;
  color: var(--ink);
}

.signed-in-meta span {
  font-size: 0.78rem;
  color: var(--ink-secondary);
}

.signed-in-badges {
  margin-top: 4px;
}

.signed-in-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==================== REVIEW LOGIN GATE & STAR PICKER ==================== */

.review-login-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--surface-subtle) 100%);
  border: 1.5px dashed var(--accent);
  margin: 12px 0;
}

.review-login-gate-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.review-login-gate-text strong {
  font-size: 0.88rem;
  color: var(--ink);
}

.review-login-gate-text span {
  font-size: 0.76rem;
  color: var(--ink-secondary);
  line-height: 1.4;
}

.review-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.review-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--verified-soft);
  color: var(--verified);
}

.inline-link-btn {
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: underline;
  padding: 0;
}

.star-picker-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.star-picker-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-secondary);
}

.star-picker {
  display: inline-flex;
  gap: 2px;
}

.star-pick-btn {
  border: none;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  color: #d4d4d8;
  padding: 2px 3px;
  transition: transform 0.12s ease, color 0.12s ease;
}

.star-pick-btn.active,
.star-pick-btn:hover {
  color: #f59e0b;
  transform: scale(1.15);
}

/* ==================== OWNER BLURB & BUSINESS MANAGEMENT PORTAL ==================== */

.owner-blurb-callout {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #f59e0b;
  border-radius: 14px;
  padding: 13px 15px;
  margin-bottom: 14px;
}

.owner-blurb-callout .ob-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  color: #92400e;
  margin-bottom: 6px;
}

.owner-blurb-callout .ob-badge {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.78);
  color: #78350f;
}

.owner-blurb-callout p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #451a03;
}

.business-portal-card {
  max-width: 720px;
}

.portal-owner-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #92400e;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 4px;
}

.portal-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 22px 0;
  border-bottom: 1px solid var(--border);
}

.portal-tab {
  border: none;
  border-bottom: 2.5px solid transparent;
  background: transparent;
  padding: 8px 14px 10px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-secondary);
}

.portal-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.portal-tab-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-hours-inline {
  display: flex;
  align-items: center;
  gap: 5px;
}

.portal-hours-inline input {
  width: 100%;
  min-width: 0;
}

.portal-dishes-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.portal-dishes-header strong {
  font-size: 0.88rem;
  color: var(--ink);
}

.portal-dishes-header span {
  font-size: 0.75rem;
  color: var(--ink-secondary);
}

.portal-dishes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.portal-dish-row {
  display: grid;
  grid-template-columns: 44px 1fr 84px 32px;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 10px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}

.portal-dish-row img {
  width: 44px;
  height: 36px;
  border-radius: 7px;
  object-fit: cover;
}

.portal-dish-row input {
  padding: 6px 8px;
  font-size: 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
}

.portal-add-dish-box {
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-subtle);
  border: 1px dashed var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portal-footer {
  justify-content: space-between;
  align-items: center;
}

/* ==================== SPENNY UPSCALE DARK THEME OVERRIDES FOR NEW FEATURES ==================== */

body[data-theme="spenny"] .gemini-mood-pill {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(147, 51, 234, 0.28));
  border-color: rgba(212, 175, 55, 0.48);
  color: #fde68a;
}

body[data-theme="spenny"] .gemini-suggestions {
  background: #141210;
  border-color: rgba(212, 175, 55, 0.35);
}

body[data-theme="spenny"] .mood-section {
  background: linear-gradient(145deg, rgba(88, 28, 135, 0.26) 0%, rgba(28, 22, 16, 0.96) 100%);
  border-color: rgba(212, 175, 55, 0.32);
}

body[data-theme="spenny"] .mood-section-title,
body[data-theme="spenny"] .mood-tooltip-prompt {
  color: #fde68a;
}

body[data-theme="spenny"] .mood-input-row {
  background: #0d0b0a;
  border-color: rgba(212, 175, 55, 0.35);
}

body[data-theme="spenny"] .mood-chip-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(212, 175, 55, 0.25);
  color: #f5f0e6;
}

body[data-theme="spenny"] .mood-chip-btn:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: #d4af37;
}

body[data-theme="spenny"] .mood-result-card {
  background: #1a1612;
  border-color: rgba(212, 175, 55, 0.52);
}

body[data-theme="spenny"] .mood-res-badge,
body[data-theme="spenny"] .mood-res-spot-meta em {
  color: #fbbf24;
}

body[data-theme="spenny"] .mood-res-spot {
  background: rgba(255, 255, 255, 0.05);
}

body[data-theme="spenny"] .mood-res-spot-meta strong,
body[data-theme="spenny"] .mood-res-story {
  color: #f5f0e6;
}

body[data-theme="spenny"] .mood-res-spot-meta span {
  color: #a8a29e;
}

body[data-theme="spenny"] .mood-link-pill {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.35);
  color: #fde68a;
}

body[data-theme="spenny"] .gemini-banner.mood-banner {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(212, 175, 55, 0.14));
  border-bottom-color: rgba(212, 175, 55, 0.32);
  color: #f5f0e6;
}

body[data-theme="spenny"] .gemini-banner.mood-banner strong {
  color: #fde68a;
}

body[data-theme="spenny"] .owner-blurb-callout {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16), rgba(30, 24, 16, 0.95));
  border-color: rgba(212, 175, 55, 0.55);
}

body[data-theme="spenny"] .owner-blurb-callout .ob-head,
body[data-theme="spenny"] .owner-blurb-callout p {
  color: #fef3c7;
}

body[data-theme="spenny"] .owner-blurb-callout .ob-badge {
  background: rgba(212, 175, 55, 0.2);
  color: #fde68a;
}

body[data-theme="spenny"] .auth-helper-note {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.3);
  color: #fde68a;
}

body[data-theme="spenny"] .auth-demo-btn {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.38);
  color: #fde68a;
}

body[data-theme="spenny"] .action-pill.auth-pill.business-signed-in,
body[data-theme="spenny"] .action-pill.business-pill {
  background: rgba(212, 175, 55, 0.2);
  border-color: #d4af37;
  color: #fde68a;
}

/* Ensure modals always sit cleanly above Spotlight YouTube iframes */
.modal-overlay {
  z-index: 1200;
}

body:has(.modal-overlay:not(.hidden)) .spotlight-player-frame iframe,
body:has(.modal-overlay:not(.hidden)) .doom-video-area iframe {
  visibility: hidden;
  pointer-events: none;
}


/* ==================== SHARK MOUTH ICON (GOLDEN TEETH IN SPENNY), EYE-CATCHING FONT, HERO "CHOOSE MY BITE" & JAWS ANIMATION ==================== */

/* Eye-Catching Top-Left Wordmark */
.brand {
  gap: 9px;
}

.brand-mark.shark-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 55%, #b91c1c 100%);
  border: 2px solid rgba(255, 255, 255, 0.22);
  padding: 2px;
  box-shadow: 0 5px 15px rgba(217, 78, 42, 0.34);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.brand:hover .brand-mark.shark-brand-mark {
  transform: scale(1.09) rotate(-4deg);
}

.shark-mouth-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.shark-mouth-svg .shark-tooth {
  fill: #ffffff;
  stroke: #cbd5e1;
  stroke-width: 0.9;
  stroke-linejoin: round;
  transition: fill 0.25s ease, stroke 0.25s ease, filter 0.25s ease;
}

/* SPENNY MODE: Great White Shark Mouth upgrades to 24k GOLDEN TEETH! */
body[data-theme="spenny"] .brand-mark.shark-brand-mark {
  background: radial-gradient(circle at 35% 28%, #292218 0%, #0d0b09 75%);
  border: 2px solid #d4af37;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.48), inset 0 0 10px rgba(251, 191, 36, 0.22);
}

body[data-theme="spenny"] .shark-mouth-svg .shark-tooth {
  fill: url(#goldToothGrad);
  stroke: #92400e;
  stroke-width: 1;
  filter: drop-shadow(0 0 2.5px rgba(253, 224, 71, 0.9));
}

body[data-theme="spenny"] .shark-mouth-svg .shark-maw-cavity {
  stroke: #f59e0b;
}

.brand-name {
  font-family: "Lilita One", var(--font-display), cursive, sans-serif;
  font-size: 1.32rem;
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.brand-bite-pop {
  color: #dc2626;
  letter-spacing: 0.03em;
}

body[data-theme="spenny"] .brand-name {
  color: #fef3c7;
  text-shadow: 0 2px 12px rgba(212, 175, 55, 0.35);
}

body[data-theme="spenny"] .brand-bite-pop {
  background: linear-gradient(135deg, #fffbeb 0%, #fde047 45%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.45));
}

/* MAIN FEATURE HERO CTA: "Choose My BITE" */
.surprise-btn.hero-bite-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(135deg, #e11d48 0%, #ea580c 52%, #f59e0b 100%);
  color: #ffffff;
  font-family: "Lilita One", var(--font-sans), sans-serif;
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 22px rgba(225, 29, 72, 0.36), 0 0 0 3px rgba(249, 115, 22, 0.16);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, filter 0.2s ease;
  animation: heroBitePulse 2.8s ease-in-out infinite;
  white-space: nowrap;
  flex-shrink: 0;
}

.surprise-btn.hero-bite-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 22%, rgba(255, 255, 255, 0.38) 50%, transparent 78%);
  transform: translateX(-135%);
  animation: heroBiteSweep 3.2s ease-in-out infinite;
  pointer-events: none;
}

.surprise-btn.hero-bite-cta:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.48), 0 0 0 5px rgba(249, 115, 22, 0.24);
  filter: brightness(1.05);
}

.surprise-btn.hero-bite-cta:active {
  transform: scale(0.98);
}

.hero-bite-shark {
  font-size: 1.18rem;
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

.hero-bite-label strong {
  font-family: "Bebas Neue", "Lilita One", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.07em;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

@keyframes heroBitePulse {
  0%, 100% {
    box-shadow: 0 8px 22px rgba(225, 29, 72, 0.36), 0 0 0 3px rgba(249, 115, 22, 0.16);
  }
  50% {
    box-shadow: 0 10px 28px rgba(225, 29, 72, 0.48), 0 0 0 6px rgba(249, 115, 22, 0.26);
  }
}

@keyframes heroBiteSweep {
  0%, 55% {
    transform: translateX(-135%);
  }
  100% {
    transform: translateX(135%);
  }
}

body[data-theme="spenny"] .surprise-btn.hero-bite-cta {
  background: linear-gradient(135deg, #b45309 0%, #d4af37 45%, #fde047 100%);
  color: #140f08;
  border-color: #fef08a;
  box-shadow: 0 8px 26px rgba(212, 175, 55, 0.45), 0 0 0 3px rgba(253, 224, 71, 0.2);
}

body[data-theme="spenny"] .surprise-btn.hero-bite-cta:hover {
  box-shadow: 0 12px 34px rgba(212, 175, 55, 0.65), 0 0 0 5px rgba(253, 224, 71, 0.28);
}

/* Keep Gemini Prompt slightly tighter so the prominent Choose My BITE CTA has room at 1440px */
.gemini-prompt-box {
  width: 238px;
}

.gemini-prompt-box:focus-within {
  width: 278px;
}

/* ==================== FILTER BUTTONS EXPAND ON HOVER ==================== */
.filter-ribbon {
  padding: 7px 14px 10px;
}

.filter-pill {
  position: relative;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.14s ease, border-color 0.14s ease, box-shadow 0.18s ease, color 0.14s ease;
  will-change: transform;
}

.filter-pill:hover {
  transform: scale(1.075) translateY(-1.5px);
  z-index: 5;
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.14);
}

.filter-pill:active {
  transform: scale(0.99);
}

body[data-theme="spenny"] .filter-pill:hover {
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.26);
  border-color: #d4af37;
}

.mode-btn {
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.mode-btn:hover {
  transform: scale(1.06);
}

.reset-link {
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), color 0.14s ease;
}

.reset-link:hover {
  transform: scale(1.07);
}

/* ==================== BOLD "CHOOSE MY BITE" & GREAT WHITE SHARK JAWS CHOMP ANIMATION ==================== */

.surprise-fs-spin.bold-spin {
  position: relative;
  gap: 18px;
}

.bite-radar-ring {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 80px rgba(234, 88, 12, 0.35), inset 0 0 60px rgba(255, 255, 255, 0.08);
  animation: biteRadarPulse 0.55s ease-out infinite;
  pointer-events: none;
}

@keyframes biteRadarPulse {
  0% {
    transform: scale(0.65);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.38);
    opacity: 0;
  }
}

.surprise-fs-roulette-card.bold-roulette {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 46px;
  border-radius: 26px;
  border: 3px solid rgba(255, 255, 255, 0.55);
  background: rgba(10, 10, 14, 0.65);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(249, 115, 22, 0.38);
  transform: rotate(var(--tick-rot, 0deg)) scale(1.04);
  animation: boldRoulettePop 0.14s cubic-bezier(0.16, 1, 0.3, 1);
}

.surprise-fs-roulette-card.locked-card {
  border-color: #ef4444;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.3), 0 28px 70px rgba(0, 0, 0, 0.72);
  transform: scale(1.1);
}

body[data-theme="spenny"] .surprise-fs-roulette-card.locked-card {
  border-color: #fde047;
  box-shadow: 0 0 0 6px rgba(253, 224, 71, 0.32), 0 28px 70px rgba(0, 0, 0, 0.75);
}

.roulette-flag {
  font-size: 2.3rem;
  line-height: 1;
}

.roulette-cuisine {
  font-family: "Bebas Neue", "Lilita One", sans-serif;
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  letter-spacing: 0.06em;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
}

.roulette-venue-flash {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fef3c7;
  text-transform: uppercase;
}

.jaws-alert {
  color: #fca5a5 !important;
  font-weight: 900 !important;
  letter-spacing: 0.14em !important;
  animation: jawsAlertBlink 0.22s linear infinite alternate;
}

@keyframes jawsAlertBlink {
  from { opacity: 0.65; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1.06); }
}

@keyframes boldRoulettePop {
  from { transform: scale(0.92); opacity: 0.75; }
  to { transform: scale(1.04); opacity: 1; }
}

/* FULL-SCREEN GREAT WHITE SHARK JAWS OVERLAY */
.shark-jaws-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.jaws-upper-wrap,
.jaws-lower-wrap {
  position: absolute;
  left: -4%;
  width: 108%;
  height: 58%;
  will-change: transform, opacity;
}

.jaws-upper-wrap {
  top: 0;
  transform: translateY(-108%);
}

.jaws-lower-wrap {
  bottom: 0;
  transform: translateY(108%);
}

.jaws-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.78));
}

.jaws-impact-flash {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 35;
  opacity: 0;
}

.jaws-shockwave {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 10px solid #ffffff;
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.9), 0 0 110px rgba(239, 68, 68, 0.85);
}

body[data-theme="spenny"] .jaws-shockwave {
  border-color: #fde047;
  box-shadow: 0 0 60px rgba(253, 224, 71, 0.95), 0 0 120px rgba(212, 175, 55, 0.85);
}

.jaws-chomp-stamp {
  font-family: "Bebas Neue", "Lilita One", sans-serif;
  font-size: clamp(4.2rem, 11vw, 8.2rem);
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow: 0 8px 0 #991b1b, 0 16px 40px rgba(0, 0, 0, 0.85);
  transform: rotate(-6deg);
}

body[data-theme="spenny"] .jaws-chomp-stamp {
  color: #fef08a;
  text-shadow: 0 8px 0 #92400e, 0 0 42px rgba(253, 224, 71, 0.85);
}

/* Choreographed 1020ms Shark Chomp + Disappear Sequence */
.shark-jaws-overlay.chomping .jaws-upper-wrap {
  animation: jawsUpperChomp 1.02s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.shark-jaws-overlay.chomping .jaws-lower-wrap {
  animation: jawsLowerChomp 1.02s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.shark-jaws-overlay.chomping .jaws-impact-flash {
  animation: jawsFlashBurst 1.02s ease-out forwards;
}

.shark-jaws-overlay.chomping .jaws-shockwave {
  animation: jawsShockExpand 1.02s ease-out forwards;
}

@keyframes jawsUpperChomp {
  0% {
    transform: translateY(-108%) scaleY(0.95);
    opacity: 1;
  }
  18% {
    transform: translateY(-48%) scaleY(1);
    opacity: 1;
  }
  39% {
    transform: translateY(8%) scaleY(1.06);
    opacity: 1;
  }
  56% {
    transform: translateY(5%) scaleY(1.03);
    opacity: 1;
  }
  78% {
    transform: translateY(-28%) scale(1.12);
    opacity: 0.72;
  }
  100% {
    transform: translateY(-120%) scale(1.24);
    opacity: 0;
  }
}

@keyframes jawsLowerChomp {
  0% {
    transform: translateY(108%) scaleY(0.95);
    opacity: 1;
  }
  18% {
    transform: translateY(48%) scaleY(1);
    opacity: 1;
  }
  39% {
    transform: translateY(-8%) scaleY(1.06);
    opacity: 1;
  }
  56% {
    transform: translateY(-5%) scaleY(1.03);
    opacity: 1;
  }
  78% {
    transform: translateY(28%) scale(1.12);
    opacity: 0.72;
  }
  100% {
    transform: translateY(120%) scale(1.24);
    opacity: 0;
  }
}

@keyframes jawsFlashBurst {
  0%, 34% {
    opacity: 0;
    transform: scale(0.5);
  }
  42% {
    opacity: 1;
    transform: scale(1.16);
  }
  62% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.38);
  }
}

@keyframes jawsShockExpand {
  0%, 35% {
    transform: scale(0.2);
    opacity: 0;
  }
  44% {
    transform: scale(1.4);
    opacity: 0.95;
  }
  100% {
    transform: scale(4.8);
    opacity: 0;
  }
}

/* Bold Screen Tremor on Chomp Impact */
.surprise-fullscreen-overlay.jaws-shake {
  animation: jawsScreenShake 0.34s linear;
}

@keyframes jawsScreenShake {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-9px, 7px); }
  40% { transform: translate(9px, -8px); }
  60% { transform: translate(-7px, -5px); }
  80% { transform: translate(6px, 5px); }
  100% { transform: translate(0, 0); }
}

/* Bold Explosive Winner Reveal right as the Shark vanishes */
.surprise-fs-winner {
  animation: winnerBurstIn 0.56s cubic-bezier(0.16, 1, 0.3, 1);
}

.origin-cuisine-headline {
  font-family: "Lilita One", var(--font-display), sans-serif !important;
  letter-spacing: 0.025em;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.65);
}

@keyframes winnerBurstIn {
  0% {
    opacity: 0;
    transform: scale(0.76);
  }
  65% {
    opacity: 1;
    transform: scale(1.03);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}


/* ==================== FULL-BLEED EDGE-TO-EDGE TEETH-ONLY ICON ==================== */
.brand-mark.shark-brand-mark {
  width: 44px;
  height: 44px;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #450a0a;
  border: 2px solid #dc2626;
  box-shadow: 0 5px 16px rgba(220, 38, 38, 0.34);
}

.shark-mouth-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.shark-mouth-svg .shark-tooth {
  fill: #ffffff;
  stroke: #cbd5e1;
  stroke-width: 1.25;
  stroke-linejoin: round;
}

body[data-theme="spenny"] .brand-mark.shark-brand-mark {
  background: #0d0b09;
  border: 2px solid #d4af37;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.52);
}

body[data-theme="spenny"] .shark-mouth-svg .shark-maw-cavity {
  fill: #140f0a;
}

body[data-theme="spenny"] .shark-mouth-svg .shark-tooth {
  fill: url(#goldToothGrad);
  stroke: #92400e;
  stroke-width: 1.25;
  filter: drop-shadow(0 0 3px rgba(253, 224, 71, 0.92));
}

/* ==================== PROMINENT COUNTRY & RESTAURANT ANIMATED REVEAL BACKDROP ==================== */
.origin-scene-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  animation: sceneRevealZoom 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.origin-scene-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.92;
  animation: sceneGentlePan 14s ease-in-out infinite alternate;
}

.origin-country-watermark {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Bebas Neue", "Lilita One", sans-serif;
  font-size: clamp(7rem, 22vw, 19rem);
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.085);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  animation: watermarkBreath 8s ease-in-out infinite alternate;
}

.origin-particle {
  opacity: 0.85 !important;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.prominent-origin-pill {
  background: rgba(15, 23, 42, 0.62) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.42) !important;
  backdrop-filter: blur(8px);
  font-size: 0.86rem !important;
  letter-spacing: 0.08em !important;
  padding: 7px 16px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.scene-pulse-slow {
  animation: scenePulseGlow 4.2s ease-in-out infinite alternate;
}

.scene-sway-a {
  animation: sceneLanternSway 3.6s ease-in-out infinite alternate;
}

.scene-sway-b {
  animation: sceneLanternSway 4.2s ease-in-out infinite alternate-reverse;
}

.scene-drift-x {
  animation: sceneWaveDrift 6s ease-in-out infinite alternate;
}

.scene-float-up {
  animation: sceneSteamFloat 3.8s ease-in-out infinite;
}

@keyframes sceneRevealZoom {
  from {
    opacity: 0;
    transform: scale(1.12);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes sceneGentlePan {
  from {
    transform: scale(1.02) translateY(0px);
  }
  to {
    transform: scale(1.07) translateY(-10px);
  }
}

@keyframes watermarkBreath {
  from {
    opacity: 0.065;
    transform: translate(-50%, -50%) scale(0.98);
  }
  to {
    opacity: 0.12;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@keyframes scenePulseGlow {
  from { opacity: 0.65; }
  to { opacity: 1; }
}

@keyframes sceneLanternSway {
  from { transform: rotate(-6deg); }
  to { transform: rotate(6deg); }
}

@keyframes sceneWaveDrift {
  from { transform: translateX(-35px); }
  to { transform: translateX(35px); }
}

@keyframes sceneSteamFloat {
  0%, 100% {
    transform: translateY(8px);
    opacity: 0.28;
  }
  50% {
    transform: translateY(-16px);
    opacity: 0.65;
  }
}

/* 1-Click Maps Quick Action on Cards */
.mini-action-btn.maps-quick-btn {
  text-decoration: none;
  color: var(--verified);
  border-color: var(--verified-border);
  background: var(--verified-soft);
}

.mini-action-btn.maps-quick-btn:hover {
  filter: brightness(0.95);
}
