/* ==========================================================================
   STAMPLUNCH — Bespoke Gothenburg Gastro-Radar & Postal Lunch Decider
   Crafted specifically for the Stampgatan office (411 01 Göteborg).
   ========================================================================== */

:root {
  --bg-base: #0a0d13;
  --bg-card: #131722;
  --bg-card-hover: #181e2b;
  --bg-surface: #1a2130;
  --bg-chalkboard: #0e1218;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 255, 255, 0.22);
  --border-gold: rgba(245, 158, 11, 0.35);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --stamp-brick: #e25822;
  --stamp-gold: #f59e0b;
  --stamp-gold-light: #fef08a;
  --stamp-blue: #0284c7;
  --stamp-cyan: #38bdf8;
  --stamp-copper: #10b981;
  --stamp-cream: #fdfbf7;

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* Ambient subtle canal / river glow in background */
.bg-canal-glow {
  position: fixed;
  top: -150px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, rgba(226, 88, 34, 0.05) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Header Bar
   ========================================================================== */
#main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 19, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 20px;
}

.header-container {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Authentic Postal Rubber Stamp Icon */
.stamp-seal-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px dashed var(--stamp-brick);
  background: rgba(226, 88, 34, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--stamp-brick);
  transform: rotate(-5deg);
  box-shadow: 0 0 14px rgba(226, 88, 34, 0.2);
  user-select: none;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.stamp-seal-badge:hover {
  transform: rotate(0deg) scale(1.05);
}

.seal-text {
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
}

.seal-icon {
  font-size: 14px;
  line-height: 1;
  margin: 1px 0;
}

.seal-sub {
  font-family: var(--font-mono);
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.1;
}

.brand-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--stamp-brick);
}

.brand-tagline {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.header-location {
  display: flex;
  align-items: center;
  gap: 10px;
}

.loc-badge {
  font-size: 12px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 20px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--stamp-copper);
  box-shadow: 0 0 8px var(--stamp-copper);
  animation: pulseBeacon 2s infinite ease-in-out;
}

@keyframes pulseBeacon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.icon-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-focus);
}

.icon-btn.active {
  background: rgba(2, 132, 199, 0.18);
  border-color: rgba(2, 132, 199, 0.5);
  color: var(--stamp-cyan);
}

/* ==========================================================================
   Main Container
   ========================================================================== */
.main-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 20px 80px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Hero Decision Section / Lunch-Automat
   ========================================================================== */
.hero-decision-card {
  position: relative;
  background: linear-gradient(135deg, #161b26 0%, #12151d 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

/* Ticket notch cuts on the side */
.hero-ticket-edge {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 28px;
  background: var(--bg-base);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-ticket-edge.left {
  left: -8px;
  border-radius: 0 16px 16px 0;
  border-left: none;
}

.hero-ticket-edge.right {
  right: -8px;
  border-radius: 16px 0 0 16px;
  border-right: none;
}

.hero-content {
  flex: 1;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.editorial-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--stamp-brick);
  text-transform: uppercase;
}

.live-clock-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 12px;
  color: var(--stamp-cream);
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 8px;
}

.hero-heading em {
  font-style: italic;
  color: var(--stamp-gold);
}

.hero-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.5;
  margin-bottom: 16px;
}

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

.quick-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.quick-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: var(--border-focus);
}

/* Tactile Big 3D Lever Button */
.roulette-cta-box {
  flex-shrink: 0;
}

.roulette-cta-btn {
  position: relative;
  background: linear-gradient(135deg, #ea580c 0%, #d97706 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 18px 28px;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 6px 0 #9a3412, 0 16px 30px rgba(234, 88, 12, 0.35);
  transition: all 0.12s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.roulette-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #9a3412, 0 20px 36px rgba(234, 88, 12, 0.45);
}

.roulette-cta-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #9a3412, 0 8px 18px rgba(234, 88, 12, 0.3);
}

.cta-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cta-dice {
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.cta-text-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.cta-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cta-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.9;
}

/* ==========================================================================
   Toolbar & Filters
   ========================================================================== */
.toolbar-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px 20px;
}

.toolbar-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.scope-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scope-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--stamp-cyan);
}

.pill-dot.gold {
  background: var(--stamp-gold);
}

.scope-count {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 10px;
}

.scope-pill:hover {
  border-color: var(--border-focus);
  color: var(--text-main);
}

.scope-pill.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.scope-pill[data-scope="curated"].active {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.5);
}

.view-toggle {
  display: flex;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.view-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.view-btn:hover {
  color: var(--text-main);
}

.view-btn.active {
  background: var(--bg-surface);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Search Box */
.search-row {
  display: flex;
  align-items: center;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 16px;
  transition: border-color 0.2s ease;
}

.search-box:focus-within {
  border-color: var(--stamp-brick);
}

.search-icon {
  font-size: 14px;
  opacity: 0.6;
}

.search-box input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
}

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

.clear-search-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 2px 6px;
  font-size: 12px;
}

.clear-search-btn:hover {
  color: var(--text-main);
}

/* Filter Rows */
.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  min-width: 90px;
}

.pills-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.walk-pill, .filter-pill {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.walk-pill:hover, .filter-pill:hover {
  border-color: var(--border-focus);
  color: var(--text-main);
}

.walk-pill.active, .filter-pill.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.3);
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.results-summary {
  display: flex;
  align-items: center;
  gap: 8px;
}

.count-label {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-main);
}

.live-dot {
  color: var(--stamp-copper);
  font-size: 10px;
  animation: pulseBeacon 2s infinite ease-in-out;
}

.office-hint {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

/* ==========================================================================
   VIEW 1: Restaurant Cards Grid (Matpass / Gastronomy Tickets)
   ========================================================================== */
.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 18px;
}

.spot-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.spot-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* Distinctive Golden Border & Glow for Curated Office Favorites */
.spot-card.curated {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(245, 158, 11, 0.2);
}

.spot-card.curated:hover {
  border-color: rgba(245, 158, 11, 0.65);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.12), inset 0 1px 0 rgba(245, 158, 11, 0.3);
}

/* Authentic Stamp Seal for Curated Spots */
.rubber-stamp {
  position: absolute;
  top: 14px;
  right: 14px;
  transform: rotate(-6deg);
  border: 1.5px dashed var(--stamp-gold);
  color: var(--stamp-gold);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
  pointer-events: none;
  user-select: none;
}

.spot-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.spot-emoji-token {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.spot-title-area {
  flex: 1;
  padding-right: 70px; /* Leave space for stamp or distance */
}

.spot-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1.2;
}

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

/* Walking Distance Landmark Pill */
.spot-walk-landmark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--stamp-copper);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 4px;
}

.spot-signature {
  font-size: 13px;
  color: #cbd5e1;
  font-style: italic;
  line-height: 1.45;
  padding-left: 8px;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
}

.spot-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 6px;
}

.price-tag {
  color: var(--stamp-gold);
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.08);
  font-weight: 600;
}

.hours-tag {
  color: var(--text-dim);
}

.spot-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-card-action {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-card-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-focus);
}

.btn-card-action.btn-primary-action {
  background: rgba(226, 88, 34, 0.15);
  border-color: rgba(226, 88, 34, 0.4);
  color: #ff8c5a;
}

.btn-card-action.btn-primary-action:hover {
  background: rgba(226, 88, 34, 0.28);
  border-color: var(--stamp-brick);
  color: #ffffff;
}

/* ==========================================================================
   VIEW 2: Svarta Tavlan (Bistro Blackboard List View)
   ========================================================================== */
.board-wrapper {
  background: var(--bg-chalkboard);
  border: 2px solid #2d3748;
  border-radius: 16px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6), 0 12px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.chalkboard-header {
  padding: 20px 24px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.2);
}

.chalk-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--stamp-cream);
  text-transform: uppercase;
}

.chalk-subtitle {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.chalkboard-table-header {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr;
  padding: 10px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chalkboard-list {
  display: flex;
  flex-direction: column;
  max-height: 700px;
  overflow-y: auto;
}

.chalkboard-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
  font-size: 13.5px;
}

.chalkboard-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.chalkboard-row.curated {
  background: rgba(245, 158, 11, 0.03);
}

.chalkboard-row.curated:hover {
  background: rgba(245, 158, 11, 0.08);
}

.chalkboard-row .col-name {
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chalkboard-row .col-cuisine {
  color: var(--text-muted);
  font-size: 12.5px;
}

.chalkboard-row .col-walk {
  font-family: var(--font-mono);
  color: var(--stamp-copper);
  font-size: 12px;
}

.chalkboard-row .col-price {
  font-family: var(--font-mono);
  color: var(--stamp-gold);
  font-size: 12px;
}

.chalkboard-row .col-actions {
  display: flex;
  gap: 6px;
}

.chalk-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.chalk-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   VIEW 3: Map View
   ========================================================================== */
.map-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.map-legend-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
  font-family: var(--font-mono);
}

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

.legend-pin.gold {
  color: var(--stamp-gold);
  font-size: 14px;
}

.legend-pin.blue {
  color: var(--stamp-cyan);
}

.legend-pin.pulse {
  color: var(--stamp-copper);
}

#map-container {
  height: 600px;
  width: 100%;
}

.restaurant-map-pin {
  background: transparent;
  border: none;
}

.map-emoji-marker {
  width: 32px;
  height: 32px;
  background: #1e293b;
  border: 2px solid #64748b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease;
}

.map-emoji-marker:hover {
  transform: scale(1.2);
  z-index: 999;
}

.map-emoji-marker.curated {
  border-color: var(--stamp-gold);
  background: #272015;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
  transform: scale(1.1);
}

.map-popup {
  color: #0f172a;
  font-family: var(--font-sans);
}

.map-popup h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.map-popup p {
  font-size: 12px;
  font-style: italic;
  margin: 6px 0;
  color: #475569;
}

.popup-nav-link {
  display: inline-block;
  background: var(--stamp-brick);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  margin-top: 4px;
}

/* ==========================================================================
   Modal / Vintage Lunch-Automat (Roulette)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  background: #141822;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  padding: 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.modal-header {
  text-align: center;
}

.modal-pre {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--stamp-gold);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.slot-machine-casing {
  background: #0a0d14;
  border: 2px solid #232a3b;
  border-radius: 14px;
  padding: 12px;
  box-shadow: inset 0 4px 15px rgba(0, 0, 0, 0.8);
}

.slot-window {
  height: 90px;
  background: #111622;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.roulette-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  padding: 10px;
}

.spin-emoji {
  font-size: 32px;
}

.spin-name {
  font-family: var(--font-serif);
  font-size: 22px;
}

/* Stamped Receipt Winner Card */
.winner-card {
  position: relative;
  background: #1a2130;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  animation: receiptSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes receiptSlideUp {
  0% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.winner-rubber-stamp {
  position: absolute;
  top: -12px;
  right: -6px;
  transform: rotate(-10deg);
  border: 2px dashed #ef4444;
  color: #ef4444;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: rgba(239, 68, 68, 0.12);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
  animation: stampSlap 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes stampSlap {
  0% { transform: scale(2.2) rotate(-20deg); opacity: 0; }
  100% { transform: scale(1) rotate(-10deg); opacity: 1; }
}

.winner-emoji {
  font-size: 42px;
}

.winner-name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.winner-meta {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--stamp-copper);
}

.winner-signature {
  font-size: 13.5px;
  font-style: italic;
  color: #cbd5e1;
}

.winner-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.winner-buttons {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.winner-buttons a, .winner-buttons button {
  flex: 1;
  padding: 10px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}

.primary-btn {
  background: var(--stamp-brick);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

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

.secondary-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 13px;
  font-family: var(--font-mono);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2000;
  white-space: nowrap;
}

.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-decision-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }
  .roulette-cta-box {
    width: 100%;
  }
  .roulette-cta-btn {
    width: 100%;
    justify-content: center;
  }
  .chalkboard-table-header {
    display: none;
  }
  .chalkboard-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-location {
    width: 100%;
    justify-content: space-between;
  }
}
