/* ================================================================
   DISHI V2 — "Editorial Gastronomy" Design System
   ================================================================ */

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

:root {
  /* === Brand: Editorial Gastronomy === */
  --charcoal: #1C1917;
  --espresso: #292524;
  --terracotta: #C2410C;
  --terracotta-light: #EA580C;
  --terracotta-pale: #FFF7ED;
  --cream: #FFFBEB;
  --warm-white: #FEF3C7;
  --stone: #F5F0EB;
  --warm-gray: #78716C;
  --warm-gray-light: #A8A29E;
  --warm-gray-dark: #57534E;
  --warm-border: #E7E5E4;
  --warm-border-subtle: #F5F5F4;

  /* === Semantic === */
  --bg-primary: var(--stone);
  --bg-card: #FFFFFF;
  --bg-surface: #FAF9F7;
  --text-primary: var(--espresso);
  --text-secondary: var(--warm-gray-dark);
  --text-muted: var(--warm-gray);
  --border-light: var(--warm-border);
  --border-subtle: var(--warm-border-subtle);
  --accent: var(--terracotta);
  --accent-light: var(--terracotta-light);
  --accent-pale: var(--terracotta-pale);

  /* Legacy aliases for existing component compat */
  --green: var(--terracotta);
  --green-light: var(--terracotta-light);
  --green-pale: var(--terracotta-pale);
  --green-dark: var(--charcoal);
  --orange: #D97706;
  --orange-pale: #FEF3E2;
  --red: #DC2626;
  --blue: #2563eb;
  --white: #ffffff;
  --gray-50: #FAF9F7;
  --gray-100: #F5F5F4;
  --gray-200: #E7E5E4;
  --gray-300: #D6D3D1;
  --gray-400: #A8A29E;
  --gray-600: #57534E;
  --gray-800: #292524;

  /* === Layout === */
  --header-h: 0px;
  --controls-h: 56px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --max-width: 1200px;

  /* === Typography === */
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-lg: 17px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-3xl: 36px;
  --text-4xl: 48px;
  --line-height-tight: 1.15;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.65;

  /* === Spacing === */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;

  /* === Radius === */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 99px;

  /* === Shadows (warm tones) === */
  --shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 4px 12px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 8px 24px rgba(28, 25, 23, 0.12);
  --shadow-xl: 0 16px 48px rgba(28, 25, 23, 0.16);
  --shadow-card: 0 1px 4px rgba(28, 25, 23, 0.05);
  --shadow-card-hover: 0 8px 24px rgba(28, 25, 23, 0.10);
  --shadow-glow: 0 0 0 4px rgba(194, 65, 12, 0.15);

  /* === Transitions === */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: var(--line-height-normal);
}

/* ================================================================
   HERO
   ================================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--cream);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(194, 65, 12, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(234, 88, 12, 0.12) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 80%, rgba(254, 243, 199, 0.06) 0%, transparent 45%);
  animation: meshMove 20s ease-in-out infinite alternate;
}

@keyframes meshMove {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.05) rotate(1deg); }
  100% { transform: scale(1) rotate(-1deg); }
}

/* Hero Nav */
.hero-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  z-index: 10;
}

.hero-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--cream);
  letter-spacing: -0.01em;
  line-height: 1;
  font-variation-settings: 'opsz' 28;
  text-decoration: none;
}

/* ─── Dishi Wordmark ─── */
/* The terracotta dots on "i" characters are the brand signature */
.dishi-wordmark .i-char {
  position: relative;
  display: inline-block;
}
.dishi-wordmark .i-char .i-base {
  display: inline-block;
}
/* Terracotta dot — replaces native i-dot */
.dishi-wordmark .i-char::before {
  content: '';
  position: absolute;
  background: var(--terracotta);
  border-radius: 50%;
  z-index: 2;
}
/* Nav size (28px) */
.hero-logo.dishi-wordmark .i-char::before {
  width: 7px;
  height: 7px;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
}
/* Footer size (24px) */
.footer-logo.dishi-wordmark .i-char::before {
  width: 6px;
  height: 6px;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-nav-links { display: none; }

.hero-nav-link {
  color: var(--cream);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  opacity: 0.6;
  transition: opacity var(--duration-fast);
}
.hero-nav-link:hover { opacity: 1; }

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 10vw, 96px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -2.5px;
  margin-bottom: 20px;
}

.hero-line--top {
  white-space: nowrap;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: heroLineIn 0.7s var(--ease-out) forwards;
}

.hero-line--top {
  animation-delay: 0.15s;
}

.hero-line--bottom {
  animation-delay: 0.35s;
}

.hero-word--accent {
  color: var(--terracotta-light);
  font-style: italic;
}

@keyframes heroLineIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
  font-family: var(--font);
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 400;
  color: rgba(255, 251, 235, 0.55);
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeInUp 0.5s var(--ease-out) 0.55s forwards;
  min-height: 1.5em;
  letter-spacing: 0.01em;
}

/* Glassmorphism search */
.hero-search {
  display: flex;
  align-items: center;
  max-width: 520px;
  margin: 0 auto 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 4px 4px 4px 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--duration-normal) var(--ease-out);
  opacity: 0;
  animation: fadeInUp 0.5s var(--ease-out) 0.75s forwards;
}

.hero-search:focus-within {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-glow);
  transform: scale(1.02);
}

.hero-search-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--cream);
  font-family: var(--font);
  font-size: 16px;
  padding: 12px 16px;
  outline: none;
  min-width: 0;
}
.hero-search-input::placeholder { color: rgba(255, 251, 235, 0.4); }

.hero-locate-btn {
  background: none;
  border: none;
  color: var(--cream);
  padding: 12px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--duration-fast);
  flex-shrink: 0;
}
.hero-locate-btn:hover { opacity: 1; }
.hero-locate-btn.locating svg { animation: pulse-locate 1s ease-in-out infinite; }

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

.hero-search-btn {
  background: var(--terracotta);
  border: none;
  color: white;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--duration-fast);
}
.hero-search-btn:hover { background: var(--terracotta-light); transform: scale(1.05); }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 251, 235, 0.5);
  opacity: 0;
  animation: fadeInUp 0.5s var(--ease-out) 0.7s forwards;
}
.hero-stat strong { font-weight: 700; color: rgba(255, 251, 235, 0.8); }
.hero-stat-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.4;
  animation: scrollBounce 2s ease-in-out 2.5s infinite;
  z-index: 5;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ================================================================
   GENERIC SECTIONS
   ================================================================ */

.section {
  padding: 88px 24px;
  background: var(--bg-card);
  position: relative;
}

.section + .section::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--bg-card));
  pointer-events: none;
  z-index: 1;
}

.section--stone { background: var(--stone); }
.section--dark { background: var(--charcoal); color: var(--cream); }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1.5px;
  line-height: var(--line-height-tight);
}
.section-title--light { color: var(--cream); }

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin-top: 4px;
  max-width: 540px;
  line-height: 1.65;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.section-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  margin-top: 24px;
  background: var(--charcoal);
  color: var(--cream);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-spring, var(--ease-out));
}
.section-cta:hover { background: var(--terracotta); transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 24px rgba(28, 25, 23, 0.15), 0 0 0 1px rgba(194, 65, 12, 0.1); }
.section-cta:active { transform: translateY(-1px) scale(0.98); transition-duration: 100ms; }

/* ================================================================
   DISH DISCOVERY BY TYPE
   ================================================================ */

.discovery-group {
  margin-bottom: 48px;
}
.discovery-group:last-child { margin-bottom: 0; }

.discovery-type-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: opacity var(--duration-fast);
}
.discovery-type-header:hover { opacity: 0.7; }

.discovery-emoji {
  font-size: 36px;
  line-height: 1;
}

.discovery-type-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--text-primary);
}

.discovery-type-count {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.discovery-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.discovery-row::-webkit-scrollbar { display: none; }

.discovery-card {
  flex-shrink: 0;
  scroll-snap-align: start;
  width: 260px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 2px 8px rgba(28, 25, 23, 0.06);
  position: relative;
  overflow: hidden;
}
.discovery-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.discovery-card:hover::before { transform: scaleX(1); }
.discovery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(28, 25, 23, 0.06), 0 16px 40px rgba(28, 25, 23, 0.10);
  border-color: var(--terracotta);
}

.discovery-card-name {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discovery-card-price {
  font-weight: 700;
  color: var(--terracotta);
  font-size: var(--text-base);
}

.discovery-card-restaurant {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discovery-card-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 4px;
}

/* Fallback: restaurant card for types without dishes */
.discovery-restaurant-card {
  flex-shrink: 0;
  scroll-snap-align: start;
  width: 240px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-card);
}
.discovery-restaurant-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--terracotta);
}

/* ================================================================
   OPEN NOW SECTION
   ================================================================ */

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #FEF2F2;
  color: #DC2626;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #DC2626;
  animation: livePulse 1.5s ease-in-out infinite;
}

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

.open-now-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* ================================================================
   STATS SECTION
   ================================================================ */

.stats-section { text-align: center; padding: 80px 24px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 20px;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -2px;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--warm-gray-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}

.stats-tagline {
  font-size: var(--text-base);
  color: var(--text-muted);
  font-style: italic;
}

/* ================================================================
   CONTROLS BAR (sticky)
   ================================================================ */

.controls-sentinel { height: 0; }

.controls-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 24px;
}

.controls-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
}

.view-toggle {
  display: flex;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  padding: 3px;
  flex-shrink: 0;
}

.toggle-btn {
  border: none;
  background: none;
  padding: 7px 18px;
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font);
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-out);
}

.toggle-btn.active {
  background: var(--bg-card);
  color: var(--terracotta);
  box-shadow: var(--shadow-sm);
}

.filter-toggle-btn {
  border: 1.5px solid var(--border-light);
  background: var(--bg-card);
  padding: 7px 16px;
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font);
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-spring, var(--ease-out));
  flex-shrink: 0;
}

.filter-toggle-btn:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  background: var(--terracotta-pale);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.15), 0 0 0 1px rgba(194, 65, 12, 0.1);
}
.filter-toggle-btn:active { transform: translateY(-1px) scale(0.98); transition-duration: 100ms; }

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--terracotta);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
}

.results-count {
  margin-left: auto;
  font-size: var(--text-sm);
  color: var(--text-muted);
  white-space: nowrap;
}

/* ================================================================
   FILTER PANEL
   ================================================================ */

.filter-panel {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1100;
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform var(--duration-slow) var(--ease-out);
  box-shadow: 0 -8px 32px rgba(28, 25, 23, 0.15);
}
.filter-panel.open { transform: translateY(0); }

.filter-overlay {
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(28, 25, 23, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.filter-overlay.open { opacity: 1; pointer-events: auto; }

.filter-panel-header {
  display: flex;
  align-items: center;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.filter-panel-title { font-size: var(--text-lg); font-weight: 700; }

.filter-clear-btn {
  margin-left: auto;
  background: none; border: none;
  color: var(--terracotta);
  font-size: var(--text-sm); font-weight: 600;
  cursor: pointer; font-family: var(--font);
  padding: 4px 8px;
}

.filter-close-btn {
  background: none; border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer; padding: 4px 4px 4px 12px; line-height: 1;
}

.filter-panel-body {
  overflow-y: auto;
  padding: 8px 20px 20px;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.filter-panel-footer {
  padding: 12px 20px;
  padding-bottom: calc(12px + var(--safe-bottom));
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.filter-apply-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-light) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.25);
}
.filter-apply-btn:hover { box-shadow: 0 6px 20px rgba(194, 65, 12, 0.35); transform: translateY(-1px); }
.filter-apply-btn:active { transform: translateY(0); }

/* Filter sections */
.filter-section { padding: 16px 0; border-bottom: 1px solid var(--border-subtle); }
.filter-section:last-child { border-bottom: none; }

.filter-section-title {
  font-size: var(--text-xs); font-weight: 700;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.8px; margin-bottom: 10px;
}

.filter-chips {
  display: flex; gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: 2px;
}
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chips-wrap { flex-wrap: wrap; }

.filter-chip {
  border: 1.5px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-secondary);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-family: var(--font);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration-normal) var(--ease-out);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.filter-chip:hover { border-color: var(--terracotta-light); color: var(--terracotta); background: var(--terracotta-pale); }
.filter-chip.active {
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-light) 100%);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.3);
}

.filter-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0; cursor: pointer; font-size: var(--text-base);
}

.filter-toggle input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px;
  border: 2px solid var(--gray-300);
  border-radius: 5px;
  cursor: pointer; position: relative; flex-shrink: 0;
  transition: all var(--duration-fast);
}

.filter-toggle input[type="checkbox"]:checked {
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.filter-toggle input[type="checkbox"]:checked::after {
  content: '';
  position: absolute; left: 5px; top: 2px;
  width: 6px; height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ================================================================
   MAIN CONTENT AREA
   ================================================================ */

.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.list-view {
  padding: 16px 0;
  padding-bottom: calc(16px + var(--safe-bottom));
}

.restaurant-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ================================================================
   RESTAURANT CARDS
   ================================================================ */

.restaurant-card {
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 2px 8px rgba(28, 25, 23, 0.06);
  animation: cardFadeIn var(--duration-normal) var(--ease-out) both;
  will-change: transform, box-shadow;
}
.restaurant-card:hover { transform: translateY(-4px) scale(1.008); box-shadow: 0 4px 12px rgba(28, 25, 23, 0.06), 0 16px 40px rgba(28, 25, 23, 0.10); border-color: rgba(194, 65, 12, 0.12); }
.restaurant-card:active { transform: translateY(0) scale(0.97); transition-duration: 80ms; box-shadow: 0 1px 2px rgba(28, 25, 23, 0.06); }
.restaurant-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--click-x, 50%) var(--click-y, 50%), rgba(194, 65, 12, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  border-radius: inherit;
}
.restaurant-card:active::after { opacity: 1; }

.card-photo { margin: -20px -22px 12px; height: 160px; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; position: relative; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.restaurant-card:hover .card-photo img { transform: scale(1.04); }
.card-photo::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40px; background: linear-gradient(to top, rgba(28, 25, 23, 0.06), transparent); pointer-events: none; }

.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.card-name { font-size: 18px; font-weight: 700; line-height: var(--line-height-tight); color: var(--text-primary); letter-spacing: -0.3px; }
.card-distance { font-size: var(--text-sm); color: var(--text-muted); white-space: nowrap; flex-shrink: 0; font-weight: 500; }
.card-type { font-size: var(--text-sm); color: var(--text-muted); margin-top: 3px; }
.card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.card-price { font-size: var(--text-sm); font-weight: 700; color: var(--terracotta); font-family: var(--font-display); }
.card-rating { font-size: var(--text-sm); color: var(--orange); font-weight: 600; }
.card-desc { font-size: var(--text-sm); color: var(--text-secondary); margin-top: 8px; line-height: var(--line-height-relaxed); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* Open Now section accent */
#section-open-now .section-title { padding-left: 16px; border-left: 3px solid var(--terracotta); }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-full); font-size: var(--text-xs); font-weight: 600; white-space: nowrap; letter-spacing: 0.2px; }
.badge-open { background: var(--terracotta-pale); color: var(--terracotta); }
.badge-closed { background: var(--gray-100); color: var(--text-muted); }

/* Tags */
.tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: var(--radius-full); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.tag-green { background: var(--terracotta-pale); color: var(--terracotta); }
.tag-blue { background: #DBEAFE; color: var(--blue); }
.tag-gray { background: var(--gray-100); color: var(--text-secondary); }
.tag-buffet { background: #FEF3C7; color: #92400E; }
.badge-lunch { background: #FEF3C7; color: #92400E; }
.dish-diet-badge.buffet { background: #FEF3C7; color: #92400E; }

/* Weekly menu tabs */
.weekly-menu-tabs { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 12px; -webkit-overflow-scrolling: touch; }
.weekly-tab { padding: 6px 14px; border-radius: var(--radius-full); border: 1px solid var(--gray-200, #e5e7eb); background: transparent; cursor: pointer; white-space: nowrap; font-family: var(--font); font-size: var(--text-sm); font-weight: 500; color: var(--text-secondary); transition: all 0.2s; }
.weekly-tab:hover { background: var(--gray-100); }
.weekly-tab.active { background: var(--terracotta); color: white; border-color: var(--terracotta); }
.weekly-menu-content { min-height: 60px; }
.weekly-regular { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--gray-100); }
.weekly-regular-title { font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }

/* Lunch hours in opening hours */
.hours-lunch { display: inline-block; margin-left: 8px; font-size: var(--text-xs); color: #92400E; background: #FEF3C7; padding: 1px 6px; border-radius: var(--radius-full); font-weight: 500; }

/* ================================================================
   MAP VIEW
   ================================================================ */

.map-view { position: relative; }
#map-container { width: 100%; height: 75vh; min-height: 400px; border-radius: var(--radius-lg); overflow: hidden; }

.dishi-marker { background: none !important; border: none !important; }

.leaflet-popup-content-wrapper { border-radius: var(--radius-md) !important; box-shadow: var(--shadow-lg) !important; border: 1px solid var(--border-subtle) !important; }
.leaflet-popup-content { margin: 14px 16px !important; font-family: var(--font) !important; font-size: var(--text-sm) !important; line-height: var(--line-height-normal) !important; color: var(--text-primary) !important; }
.leaflet-popup-tip { box-shadow: var(--shadow-md) !important; }

/* ================================================================
   DETAIL VIEW
   ================================================================ */

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

.detail-view {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg-card);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: detailSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 16px;
  min-height: 48px;
  display: flex; align-items: center;
}

.detail-back-btn {
  background: none; border: none;
  color: var(--terracotta);
  font-size: var(--text-base); font-weight: 600;
  cursor: pointer; padding: 8px 0;
  font-family: var(--font);
}

.detail-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 calc(24px + var(--safe-bottom));
  background: var(--bg-primary);
}

.detail-hero-gradient {
  height: 140px;
  background: linear-gradient(135deg, var(--charcoal) 0%, #44403C 40%, var(--warm-gray-dark) 100%);
  position: relative; overflow: hidden;
}

.detail-hero-pattern {
  position: absolute; inset: 0; opacity: 0.06;
  background-image: radial-gradient(circle at 20% 50%, white 1px, transparent 1px),
                    radial-gradient(circle at 80% 20%, white 1.5px, transparent 1.5px),
                    radial-gradient(circle at 50% 80%, white 1px, transparent 1px);
  background-size: 60px 60px, 80px 80px, 40px 40px;
}

.detail-hero-image { height: 240px; overflow: hidden; }
.detail-hero-image img { width: 100%; height: 100%; object-fit: cover; }

.detail-actions { display: flex; gap: 8px; padding: 16px 12px 8px; overflow-x: auto; scrollbar-width: none; }
.detail-actions::-webkit-scrollbar { display: none; }

.detail-action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--terracotta);
  text-decoration: none;
  font-size: var(--text-xs); font-weight: 600; font-family: var(--font);
  flex-shrink: 0; min-width: 80px;
  transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.detail-action-btn:hover { background: var(--terracotta-pale); border-color: var(--terracotta); transform: translateY(-1px); }

.detail-hero { padding: 24px 24px 20px; margin-top: -32px; margin-left: 12px; margin-right: 12px; margin-bottom: 8px; background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: 0 4px 20px rgba(28, 25, 23, 0.10), 0 1px 3px rgba(28, 25, 23, 0.06); position: relative; z-index: 1; }
.detail-name { font-family: var(--font-display); font-size: clamp(26px, 4vw, 34px); font-weight: 700; line-height: var(--line-height-tight); letter-spacing: -0.3px; }
.detail-type-line { display: flex; gap: 8px; margin-top: 6px; font-size: var(--text-sm); color: var(--text-muted); }
.detail-cuisine { font-weight: 500; }
.detail-establishment { font-weight: 400; }
.detail-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.detail-badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 600; }
.detail-price { font-size: var(--text-sm); font-weight: 700; color: var(--terracotta); }
.detail-rating { font-size: var(--text-sm); color: var(--orange); font-weight: 600; }
.detail-rating small { color: var(--text-muted); font-weight: 400; }
.detail-distance { font-size: var(--text-sm); color: var(--text-muted); }

.detail-section { padding: 18px 20px; margin: 0 12px 8px; background: var(--bg-card); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.detail-section:last-child { margin-bottom: 0; }
.detail-section-title { font-size: var(--text-xs); font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 12px; }
.detail-desc { font-size: var(--text-base); line-height: var(--line-height-relaxed); color: var(--text-secondary); }

.detail-hours { display: flex; flex-direction: column; gap: 2px; }
.detail-hours-row { display: flex; justify-content: space-between; padding: 6px 10px; font-size: var(--text-sm); border-radius: var(--radius-sm); }
.detail-hours-row.hours-today { background: var(--terracotta-pale); }
.detail-hours-row.hours-today .hours-day { color: var(--terracotta); font-weight: 700; }
.detail-hours-row.hours-today .hours-time { color: var(--terracotta); }
.hours-day { color: var(--text-secondary); font-weight: 500; }
.hours-time { font-weight: 600; color: var(--text-primary); }
.hours-time.closed { color: var(--text-muted); font-weight: 400; }
.detail-no-data { font-size: var(--text-sm); color: var(--text-muted); font-style: italic; }

.offering-item { padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
.offering-item:last-child { border-bottom: none; }
.offering-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.offering-name { font-weight: 600; font-size: var(--text-base); }
.offering-price { font-weight: 700; color: var(--terracotta); font-size: var(--text-base); white-space: nowrap; }
.offering-desc { font-size: var(--text-sm); color: var(--text-secondary); margin-top: 3px; line-height: 1.4; }
.offering-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: var(--text-xs); color: var(--text-muted); }
.offering-health { text-transform: capitalize; }

.detail-features { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-feature-tag { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: var(--radius-full); font-size: var(--text-sm); background: var(--bg-surface); color: var(--text-secondary); }

.detail-contact { display: flex; flex-direction: column; gap: 6px; }
.detail-address { font-size: var(--text-base); font-weight: 500; }
.detail-neighborhood { font-size: var(--text-sm); color: var(--text-muted); }
.detail-links { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.detail-link { font-size: var(--text-sm); color: var(--blue); text-decoration: none; font-weight: 600; }
.detail-link:hover { text-decoration: underline; }

/* ================================================================
   LUNCH FINDER
   ================================================================ */

.lunch-finder { padding: 20px 0 0; }
.finder-header { margin-bottom: 16px; }
.finder-heading { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--text-primary); line-height: var(--line-height-tight); margin-bottom: 4px; }
.finder-subtitle { font-size: var(--text-sm); color: var(--text-secondary); }
.finder-controls { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.finder-control-group { display: flex; flex-direction: column; gap: 6px; }
.finder-label { font-size: var(--text-xs); font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.finder-chips { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.finder-chips::-webkit-scrollbar { display: none; }

.finder-chip {
  flex-shrink: 0; padding: 7px 16px; border-radius: var(--radius-full);
  border: 1.5px solid var(--border-light);
  background: var(--bg-card); color: var(--text-primary);
  font-family: var(--font); font-size: var(--text-sm); font-weight: 500;
  cursor: pointer; transition: all var(--duration-fast) var(--ease-out); white-space: nowrap;
}
.finder-chip:hover { border-color: var(--terracotta-light); background: var(--terracotta-pale); }
.finder-chip.active { background: var(--terracotta); color: var(--white); border-color: var(--terracotta); font-weight: 600; }
.finder-chip.active:hover { background: var(--terracotta-light); border-color: var(--terracotta-light); }

.dish-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }

.dish-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 14px 16px;
  cursor: pointer; transition: all var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-card);
}
.dish-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); border-color: var(--terracotta-pale); }
.dish-card:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.dish-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.dish-name { font-weight: 600; font-size: var(--text-base); color: var(--text-primary); line-height: var(--line-height-tight); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.dish-price { font-weight: 700; font-size: var(--text-base); color: var(--terracotta); white-space: nowrap; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.dish-restaurant { font-size: var(--text-sm); color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }
.dish-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dish-distance { font-size: var(--text-xs); color: var(--text-muted); font-weight: 500; }
.dish-portion { font-size: var(--text-xs); color: var(--text-muted); text-transform: capitalize; }

.dish-diet-badge { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: var(--radius-full); line-height: 1; letter-spacing: 0.02em; }
.dish-diet-badge.v { background: var(--terracotta-pale); color: var(--terracotta); }
.dish-diet-badge.vg { background: #E8F5E9; color: #2e7d32; }
.dish-diet-badge.gf { background: var(--orange-pale); color: #c27218; }
.dish-diet-badge.df { background: #E3F2FD; color: #1565c0; }

.finder-empty { text-align: center; padding: 32px 16px; }
.finder-empty-icon { margin-bottom: 12px; opacity: 0.6; }
.finder-empty-text { font-size: var(--text-lg); font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.finder-empty-hint { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: 16px; }
.finder-empty-actions { display: flex; gap: 8px; justify-content: center; }

.finder-expand-btn {
  padding: 8px 16px; border-radius: var(--radius-full);
  border: 1.5px solid var(--terracotta); background: transparent;
  color: var(--terracotta); font-family: var(--font);
  font-size: var(--text-sm); font-weight: 600;
  cursor: pointer; transition: all var(--duration-fast) var(--ease-out);
}
.finder-expand-btn:hover { background: var(--terracotta); color: var(--white); }

.finder-show-all {
  display: block; width: 100%; margin-top: 12px; padding: 12px;
  border-radius: var(--radius-md); border: 1.5px dashed var(--border-light);
  background: transparent; color: var(--terracotta);
  font-family: var(--font); font-size: var(--text-sm); font-weight: 600;
  cursor: pointer; transition: all var(--duration-fast) var(--ease-out);
}
.finder-show-all:hover { border-color: var(--terracotta); background: var(--terracotta-pale); }

.finder-divider {
  display: flex; align-items: center; gap: 16px;
  margin-top: 24px; margin-bottom: 4px;
  color: var(--text-muted); font-size: var(--text-sm); font-weight: 500;
}
.finder-divider::before, .finder-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-light); }
.finder-divider span { white-space: nowrap; }

/* ================================================================
   ABOUT SECTION
   ================================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.about-desc {
  font-size: var(--text-lg);
  color: rgba(255, 251, 235, 0.6);
  line-height: var(--line-height-relaxed);
  margin-bottom: 16px;
  max-width: 520px;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
  backdrop-filter: blur(8px);
}

.about-stat-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--terracotta-light);
  display: block;
  margin-bottom: 4px;
}

.about-stat-text {
  font-size: var(--text-sm);
  color: rgba(255, 251, 235, 0.5);
}

/* ================================================================
   FOOTER
   ================================================================ */

.footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 64px 24px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  font-variation-settings: 'opsz' 24;
  letter-spacing: -0.01em;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
  color: var(--stone);
}

.footer-desc { font-size: var(--text-sm); opacity: 0.5; }

.footer-link-title {
  display: block; font-size: var(--text-xs);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; opacity: 0.4; margin-bottom: 12px;
}

.footer-link {
  display: block; color: var(--cream);
  text-decoration: none; font-size: var(--text-sm);
  opacity: 0.7; padding: 4px 0;
  transition: opacity var(--duration-fast);
  position: relative;
}
.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}
.footer-link:hover { opacity: 1; }
.footer-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--text-xs);
  opacity: 0.4;
}

/* ================================================================
   LOADING
   ================================================================ */

.loading-bar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1200; height: 3px;
  background: var(--terracotta-pale); overflow: hidden;
}

.loading-bar::after {
  content: ''; display: block;
  height: 100%; width: 30%;
  background: linear-gradient(90deg, var(--terracotta), var(--terracotta-light));
  border-radius: 0 2px 2px 0;
  animation: loading-bar 1.2s ease-in-out infinite;
}

@keyframes loading-bar {
  0% { transform: translateX(-100%); width: 30%; }
  50% { width: 60%; }
  100% { transform: translateX(400%); width: 30%; }
}

/* Skeleton */
@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 16px 18px; box-shadow: var(--shadow-card); }
.skeleton-line { background: linear-gradient(90deg, rgba(245, 240, 235, 0.6) 25%, rgba(231, 229, 228, 0.8) 50%, rgba(245, 240, 235, 0.6) 75%); background-size: 400% 100%; border-radius: var(--radius-sm); animation: skeleton-pulse 2s linear infinite; }
.skeleton-title { height: 18px; width: 65%; margin-bottom: 8px; }
.skeleton-subtitle { height: 14px; width: 40%; margin-bottom: 12px; }
.skeleton-row { display: flex; gap: 8px; margin-bottom: 12px; }
.skeleton-tag { height: 24px; width: 60px; border-radius: var(--radius-full); }
.skeleton-desc { height: 13px; width: 90%; margin-bottom: 6px; }
.skeleton-desc-short { height: 13px; width: 55%; }

/* Empty state */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 24px; }
.empty-icon { margin-bottom: 16px; }
.empty-title { font-size: var(--text-lg); font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.empty-text { font-size: var(--text-sm); color: var(--text-muted); max-width: 280px; line-height: var(--line-height-relaxed); }
.empty-clear-btn { margin-top: 16px; padding: 10px 24px; background: none; border: 1.5px solid var(--terracotta); color: var(--terracotta); border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 600; cursor: pointer; font-family: var(--font); transition: all var(--duration-normal) var(--ease-out); }
.empty-clear-btn:hover { background: var(--terracotta); color: var(--white); }

/* Load more */
.load-more-sentinel { padding: 16px; text-align: center; }
.load-more-btn { padding: 10px 24px; background: var(--bg-card); border: 1.5px solid var(--border-light); border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 600; color: var(--text-secondary); cursor: pointer; font-family: var(--font); transition: all var(--duration-normal) var(--ease-out); box-shadow: var(--shadow-sm); }
.load-more-btn:hover { border-color: var(--terracotta); color: var(--terracotta); background: var(--terracotta-pale); }

/* ================================================================
   SCROLL REVEAL ANIMATIONS
   ================================================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 80ms);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

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

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

/* ================================================================
   REDUCED MOTION
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero-word { opacity: 1; transform: none; }
  .hero-subtitle, .hero-search, .hero-stats { opacity: 1; }
  .detail-view { animation: none !important; }
  .card-photo img, .recent-review-photo { transition: none !important; }
  .reveal { transition-delay: 0ms !important; }
  .scroll-progress { display: none; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (min-width: 600px) {
  .dish-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .open-now-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .hero-nav-links { display: flex; gap: 24px; }
  .section { padding: 120px 32px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }

  .open-now-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .restaurant-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .load-more-sentinel, .empty-state { grid-column: 1 / -1; }

  .main-content { padding: 0 24px; }
  .list-view { padding: 16px 0; }
  .controls-bar { padding: 10px 32px; }

  /* Filter panel sidebar */
  .filter-panel {
    top: 0; bottom: 0; right: auto; left: 0;
    width: 340px; max-height: 100vh;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    transform: translateX(-100%);
    box-shadow: 4px 0 32px rgba(28, 25, 23, 0.12);
  }
  .filter-panel.open { transform: translateX(0); }

  /* Detail modal */
  .detail-view {
    padding: 32px;
    background: rgba(28, 25, 23, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .detail-header, .detail-content { max-width: 700px; margin: 0 auto; width: 100%; }
  .detail-view > .detail-header, .detail-view > .detail-content { background: var(--bg-card); }
  .detail-header { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  .detail-content { border-radius: 0 0 var(--radius-xl) var(--radius-xl); }

  .finder-controls { flex-direction: row; gap: 24px; }
  .finder-control-group { flex: 1; }
}

@media (min-width: 1024px) {
  .section { padding: 160px 48px; }
  .restaurant-list { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .main-content { padding: 0 32px; }
  .open-now-grid { grid-template-columns: repeat(3, 1fr); }
  .dish-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
  .restaurant-list { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   AUTH & MODALS
   ============================================================ */
.hero-auth { display: flex; align-items: center; gap: 0.5rem; }
.auth-signin-btn { background: var(--orange); color: white; border: none; padding: 0.5rem 1.25rem; border-radius: 999px; font-family: var(--font); font-weight: 600; font-size: 0.875rem; cursor: pointer; transition: all var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-spring, var(--ease-out)); }
.auth-signin-btn:hover { background: var(--orange-dark, #a13508); transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 24px rgba(28, 25, 23, 0.15), 0 0 0 1px rgba(194, 65, 12, 0.1); }
.auth-signin-btn:active { transform: translateY(-1px) scale(0.98); transition-duration: 100ms; }
.auth-avatar-btn { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--orange); background: var(--stone-200, #e7e5e4); cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; color: var(--charcoal); padding: 0; }
.auth-avatar { width: 100%; height: 100%; object-fit: cover; }
.auth-user-menu { position: relative; }
.auth-dropdown { position: absolute; top: calc(100% + 0.5rem); right: 0; background: white; border-radius: 0.75rem; box-shadow: 0 8px 32px rgba(0,0,0,0.15); min-width: 180px; overflow: hidden; z-index: 1000; }
.auth-dropdown-item { display: block; width: 100%; padding: 0.75rem 1rem; font-family: var(--font); font-size: 0.875rem; color: var(--charcoal); text-decoration: none; border: none; background: none; text-align: left; cursor: pointer; transition: background 0.15s; }
.auth-dropdown-item:hover { background: var(--stone-100, #f5f5f4); }
.auth-dropdown-signout { color: var(--orange); border-top: 1px solid var(--stone-200, #e7e5e4); }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-card { background: white; border-radius: 1.25rem; max-width: 420px; width: 100%; padding: 2rem; position: relative; box-shadow: 0 24px 64px rgba(0,0,0,0.2); }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--stone-400, #a8a29e); line-height: 1; }
.modal-header { text-align: center; margin-bottom: 1.5rem; }
.modal-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--charcoal); margin: 0; }
.modal-subtitle { font-size: 0.875rem; color: var(--stone-500, #78716c); margin: 0.5rem 0 0; }
.modal-body { display: flex; flex-direction: column; gap: 0.75rem; }
.auth-provider-btn { display: flex; align-items: center; justify-content: center; gap: 0.75rem; width: 100%; padding: 0.75rem 1rem; border-radius: 0.75rem; font-family: var(--font); font-size: 0.9375rem; font-weight: 600; cursor: pointer; transition: background 0.2s, transform 0.1s; border: 1.5px solid var(--stone-200, #e7e5e4); background: white; color: var(--charcoal); }
.auth-provider-btn:hover { background: var(--stone-100, #f5f5f4); }
.auth-provider-btn:active { transform: scale(0.98); }
.auth-divider { display: flex; align-items: center; gap: 1rem; margin: 0.25rem 0; color: var(--stone-400, #a8a29e); font-size: 0.8125rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--stone-200, #e7e5e4); }
/* Magic link expandable */
.auth-magic-link-wrapper { display: flex; flex-direction: column; }
.auth-magic-link svg { color: var(--stone-400, #a8a29e); }
.magic-link-expand { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease, opacity 0.3s ease, padding 0.2s ease; opacity: 0; }
.magic-link-expand > * { overflow: hidden; }
.magic-link-expand.is-open { grid-template-rows: 1fr; opacity: 1; padding-top: 0.625rem; }
.auth-email-btn--subtle { background: var(--charcoal, #292524); }
.auth-email-btn--subtle:hover { background: var(--stone-700, #44403c); }
.auth-magic-sent { display: flex; align-items: center; justify-content: center; gap: 0.375rem; text-align: center; color: var(--green, #16a34a); font-weight: 600; font-size: 0.875rem; padding: 0.5rem 0 0; margin: 0; }
.auth-magic-link.is-active { border-color: var(--charcoal, #292524); background: var(--stone-50, #fafaf9); }
.auth-email-input { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--stone-200, #e7e5e4); border-radius: 0.75rem; font-family: var(--font); font-size: 0.9375rem; outline: none; transition: border-color 0.2s; box-sizing: border-box; }
.auth-email-input:focus { border-color: var(--orange); }
.auth-email-btn { width: 100%; padding: 0.75rem 1rem; background: var(--orange); color: white; border: none; border-radius: 0.75rem; font-family: var(--font); font-size: 0.9375rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.auth-email-btn:hover { background: var(--orange-dark, #a13508); }
.auth-email-sent { text-align: center; color: var(--green, #16a34a); font-weight: 600; font-size: 0.9375rem; padding: 1rem 0; }
#auth-email-form { display: flex; flex-direction: column; gap: 0.5rem; }
.auth-error { text-align: center; color: #dc2626; font-size: 0.875rem; padding: 0.5rem 0 0; }
.input-hint { font-size: 0.8125rem; color: var(--stone-400, #a8a29e); margin: 0.25rem 0 0; }
.input-error { font-size: 0.8125rem; color: #dc2626; margin: 0.25rem 0 0; }

/* ============================================================
   REVIEW FORM & COMPONENTS
   ============================================================ */
.modal-card--wide { max-width: 520px; max-height: 90vh; overflow-y: auto; }
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-weight: 600; font-size: 0.875rem; color: var(--charcoal); margin-bottom: 0.375rem; }
.form-optional { font-weight: 400; color: var(--stone-400, #a8a29e); }
.form-select { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--stone-200, #e7e5e4); border-radius: 0.75rem; font-family: var(--font); font-size: 0.9375rem; background: white; outline: none; appearance: none; cursor: pointer; box-sizing: border-box; }
.form-select:focus { border-color: var(--orange); }
.form-textarea { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid var(--stone-200, #e7e5e4); border-radius: 0.75rem; font-family: var(--font); font-size: 0.9375rem; resize: vertical; outline: none; box-sizing: border-box; }
.form-textarea:focus { border-color: var(--orange); }
.form-char-count { display: block; text-align: right; font-size: 0.75rem; color: var(--stone-400, #a8a29e); margin-top: 0.25rem; }
.form-error { color: #dc2626; font-size: 0.875rem; font-weight: 500; margin: 0.5rem 0; }
.form-success { color: var(--green, #16a34a); font-size: 0.875rem; font-weight: 500; margin: 0.5rem 0; }
.star-rating { display: flex; gap: 0.25rem; }
.star-rating .star { width: 32px; height: 32px; cursor: pointer; transition: transform 0.1s; color: var(--stone-300, #d6d3d1); }
.star-rating .star:hover { transform: scale(1.15); }
.star-rating .star.active { color: #f59e0b; }
.star-rating .star.hover { color: #fbbf24; }
.photo-upload-area { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-start; }
.photo-upload-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.375rem; width: 100px; height: 100px; border: 2px dashed var(--stone-300, #d6d3d1); border-radius: 0.75rem; background: var(--stone-100, #f5f5f4); color: var(--stone-400, #a8a29e); font-size: 0.75rem; font-family: var(--font); cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.photo-upload-btn:hover { border-color: var(--orange); color: var(--orange); }
.photo-previews { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.photo-preview { position: relative; width: 100px; height: 100px; border-radius: 0.75rem; overflow: hidden; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview-remove { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,0.6); color: white; border: none; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; }
.review-extend-btn { background: none; border: none; color: var(--orange); font-family: var(--font); font-size: 0.875rem; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px; }

/* Review cards */
.reviews-section { margin-top: 1.5rem; }
.reviews-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.reviews-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; }
.reviews-aggregate { display: flex; gap: 1.5rem; margin-bottom: 1.25rem; padding: 1rem; background: var(--stone-100, #f5f5f4); border-radius: 0.75rem; }
.reviews-aggregate-item { text-align: center; flex: 1; }
.reviews-aggregate-value { font-size: 1.5rem; font-weight: 700; color: var(--charcoal); }
.reviews-aggregate-label { font-size: 0.75rem; color: var(--stone-500, #78716c); }
.reviews-aggregate-stars { color: #f59e0b; font-size: 0.875rem; }
.review-card { padding: 1rem 0; border-bottom: 1px solid var(--stone-200, #e7e5e4); }
.review-card:last-child { border-bottom: none; }
.review-card-header { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 0.5rem; }
.review-card-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--stone-200, #e7e5e4); }
.review-card-user { font-weight: 600; font-size: 0.875rem; color: var(--orange); text-decoration: none; }
.review-card-user:hover { text-decoration: underline; }
.review-card-date { font-size: 0.75rem; color: var(--stone-400, #a8a29e); margin-left: auto; }
.review-card-dish { font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.375rem; }
.review-card-ratings { display: flex; gap: 1rem; font-size: 0.8125rem; color: var(--stone-500, #78716c); margin-bottom: 0.5rem; }
.review-card-ratings span { display: flex; align-items: center; gap: 0.25rem; }
.review-card-comment { font-size: 0.875rem; color: var(--charcoal); line-height: 1.5; margin-bottom: 0.5rem; }
.review-card-photos { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.review-card-photo { width: 120px; height: 90px; border-radius: 0.5rem; object-fit: cover; cursor: pointer; }
.review-card-actions { display: flex; gap: 8px; margin-top: 8px; }
.review-action-btn { font-family: var(--font); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 4px; border: 1px solid var(--warm-border); background: transparent; color: var(--text-secondary); cursor: pointer; transition: all 0.15s; }
.review-action-btn:hover { background: var(--warm-border); }
.review-action-btn--delete { color: var(--red); border-color: var(--red); }
.review-action-btn--delete:hover { background: var(--red); color: white; }
.review-flag-btn { background: none; border: none; color: var(--stone-400, #a8a29e); font-size: 0.75rem; cursor: pointer; font-family: var(--font); padding: 0; }
.review-flag-btn:hover { color: #dc2626; }
.review-write-btn { background: var(--orange); color: white; border: none; padding: 0.625rem 1.25rem; border-radius: 999px; font-family: var(--font); font-weight: 600; font-size: 0.875rem; cursor: pointer; transition: background 0.2s; }
.review-write-btn:hover { background: var(--orange-dark, #a13508); }
.review-suggest-link { color: var(--orange); font-size: 0.8125rem; text-decoration: none; font-weight: 500; }
.review-suggest-link:hover { text-decoration: underline; }
.badge-toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); background: var(--charcoal); color: white; padding: 0.75rem 1.5rem; border-radius: 999px; font-family: var(--font); font-size: 0.9375rem; font-weight: 600; box-shadow: 0 8px 32px rgba(0,0,0,0.2); z-index: 20000; animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(1rem); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(-50%) translateY(1rem); } }

/* ============================================================
   USER PROFILES
   ============================================================ */
.profile-view { max-width: 640px; margin: 0 auto; padding: 2rem 1rem; }
.profile-header { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--stone-200, #e7e5e4); flex-shrink: 0; }
.profile-info { flex: 1; }
.profile-display-name { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; }
.profile-username { font-size: 0.875rem; color: var(--stone-500, #78716c); }
.profile-bio { font-size: 0.875rem; color: var(--charcoal); margin-top: 0.25rem; }
.profile-trust-badge { display: inline-block; padding: 0.25rem 0.625rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; margin-top: 0.375rem; }
.trust-0 { background: var(--stone-200, #e7e5e4); color: var(--stone-600, #57534e); }
.trust-1 { background: #dbeafe; color: #1e40af; }
.trust-2 { background: #dcfce7; color: #166534; }
.trust-3 { background: #fef3c7; color: #92400e; }
.profile-stats { display: flex; gap: 1.5rem; margin-bottom: 1.25rem; font-size: 0.875rem; color: var(--stone-500, #78716c); }
.profile-stats strong { color: var(--charcoal); }
.profile-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.badge-chip { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0.75rem; background: var(--stone-100, #f5f5f4); border-radius: 999px; font-size: 0.8125rem; font-weight: 500; }
.badge-chip-icon { font-size: 1rem; }
.profile-reviews-title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--stone-200, #e7e5e4); }

/* ============================================================
   RECENT REVIEWS (LANDING)
   ============================================================ */
.recent-reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.recent-review-card { background: white; border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 2px 8px rgba(28, 25, 23, 0.06); border: 1px solid transparent; transition: transform 0.15s, box-shadow 0.15s; overflow: hidden; }
.recent-review-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(28, 25, 23, 0.06), 0 16px 40px rgba(28, 25, 23, 0.10); }
.recent-review-photo { width: 100%; height: 160px; object-fit: cover; border-radius: 0.5rem; margin-bottom: 0.75rem; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.recent-review-card:hover .recent-review-photo { transform: scale(1.03); }
.recent-review-dish { font-weight: 600; font-size: 0.9375rem; }
.recent-review-restaurant { font-size: 0.8125rem; color: var(--stone-500, #78716c); }
.recent-review-user { font-size: 0.8125rem; color: var(--orange); margin-top: 0.5rem; }

/* ============================================================
   CATEGORY CARDS — "What's Nearby" redesign
   ============================================================ */

.discovery-nearby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  padding: 0 4px;
}

.discovery-category-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 2px 8px rgba(28, 25, 23, 0.06);
}

.discovery-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(28, 25, 23, 0.06), 0 16px 40px rgba(28, 25, 23, 0.10);
}

.discovery-category-emoji {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

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

.discovery-category-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary, #1a1a1a);
  line-height: 1.2;
}

.discovery-category-restaurant {
  font-size: 0.875rem;
  color: var(--text-secondary, #666);
  margin-top: 2px;
}

.discovery-category-meta {
  font-size: 0.8rem;
  color: var(--text-muted, #999);
  margin-top: 4px;
}

.discovery-category-count {
  font-size: 0.75rem;
  color: var(--accent, #e07a2f);
  font-weight: 500;
  margin-top: 4px;
}

/* ============================================================
   CATEGORY DETAIL PANEL — click-through view
   ============================================================ */

.category-detail-panel {
  max-width: 480px;
}

.category-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  margin-bottom: 16px;
}

.category-detail-emoji {
  font-size: 2.5rem;
  line-height: 1;
}

.category-detail-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary, #1a1a1a);
}

.category-detail-subtitle {
  font-size: 1rem;
  color: var(--text-secondary, #666);
  margin: 2px 0 0;
}

.category-detail-meta {
  font-size: 0.85rem;
  color: var(--text-muted, #999);
  margin: 4px 0 0;
}

.open-badge {
  color: #16a34a;
  font-weight: 600;
}

.category-detail-offerings {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 50vh;
  overflow-y: auto;
  padding-right: 4px;
}

.category-offering-card {
  padding: 12px 14px;
  background: var(--card-bg-alt, #fafafa);
  border-radius: 10px;
  border: 1px solid var(--border-light, #f0f0f0);
}

.category-offering-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.category-offering-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary, #1a1a1a);
}

.category-offering-price {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent, #e07a2f);
  white-space: nowrap;
  flex-shrink: 0;
}

.category-offering-desc {
  font-size: 0.85rem;
  color: var(--text-secondary, #666);
  margin: 4px 0 0;
  line-height: 1.4;
}

.category-offering-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
}

.tag-veg {
  background: #dcfce7;
  color: #166534;
}

.tag-vegan {
  background: #d1fae5;
  color: #065f46;
}

.tag-gf {
  background: #fef3c7;
  color: #92400e;
}

.tag-combo {
  background: #dbeafe;
  color: #1e40af;
}

.category-detail-empty {
  color: var(--text-muted, #999);
  text-align: center;
  padding: 20px;
  font-style: italic;
}

.category-detail-footer {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border, #e5e7eb);
}

.category-detail-footer .btn-primary,
.category-detail-footer .btn-secondary {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.category-detail-footer .btn-primary {
  background: var(--accent, #e07a2f);
  color: white;
}

.category-detail-footer .btn-secondary {
  background: var(--card-bg-alt, #f5f5f5);
  color: var(--text-primary, #1a1a1a);
  border: 1px solid var(--border, #e5e7eb);
}

/* Mobile responsive */
@media (max-width: 640px) {
  .discovery-nearby-grid {
    grid-template-columns: 1fr;
  }

  .category-detail-panel {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
  }
}

/* ==================== SKIP LINK ==================== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--terracotta);
  color: white;
  padding: 8px 16px;
  z-index: 10000;
  font-family: var(--font-body);
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 0;
}

/* ==================== EDIT PROFILE ==================== */
.profile-avatar-upload {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--warm-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
}
.profile-avatar-upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-avatar-upload .auth-initials {
  font-size: 28px;
  font-weight: 700;
  color: var(--warm-gray);
}
.profile-avatar-btn {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 0;
  cursor: pointer;
  transition: opacity 0.15s;
}
.profile-avatar-upload:hover .profile-avatar-btn { opacity: 1; }
.form-hint {
  font-size: 12px;
  color: var(--warm-gray);
  margin-top: 4px;
  display: block;
}

/* ==================== ACTIVITY FEED ==================== */
.feed-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.feed-filters {
  display: flex;
  gap: 8px;
}
.feed-filter-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255,255,255,0.2);
  background: transparent;
  color: var(--stone);
  cursor: pointer;
  transition: all 0.15s;
}
.feed-filter-btn:hover { border-color: rgba(255,255,255,0.4); }
.feed-filter-btn.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: white;
}
.feed-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feed-card {
  display: flex;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: background 0.15s;
}
.feed-card:hover { background: rgba(255,255,255,0.1); }
.feed-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.feed-avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  color: var(--stone);
  font-weight: 700;
  font-size: 16px;
}
.feed-card-content { flex: 1; min-width: 0; }
.feed-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.feed-username {
  font-weight: 600;
  color: var(--stone);
  text-decoration: none;
  font-size: 14px;
}
.feed-username:hover { text-decoration: underline; }
.feed-time { font-size: 12px; color: var(--warm-gray); }
.feed-card-action {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}
.feed-card-action a, .feed-restaurant {
  color: var(--terracotta-light);
  text-decoration: none;
  font-weight: 500;
}
.feed-card-action a:hover { text-decoration: underline; }
.feed-stars { color: #f59e0b; font-size: 13px; letter-spacing: 1px; }
.feed-card-comment {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-card-photo {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.feed-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feed-empty {
  text-align: center;
  padding: 32px;
  color: var(--warm-gray);
  font-size: 14px;
}
.feed-load-more {
  display: block;
  margin: 16px auto 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255,255,255,0.2);
  background: transparent;
  color: var(--stone);
  cursor: pointer;
  transition: all 0.15s;
}
.feed-load-more:hover {
  border-color: var(--terracotta);
  color: var(--terracotta-light);
}

/* ==================== LUNCH ROULETTE ==================== */
.roulette-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--terracotta);
  background: transparent;
  color: var(--terracotta);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-spring, var(--ease-out));
  white-space: nowrap;
}
.roulette-btn:hover {
  background: var(--terracotta);
  color: white;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.15), 0 0 0 1px rgba(194, 65, 12, 0.1);
}
.roulette-btn:active {
  transform: translateY(-1px) scale(0.98);
  transition-duration: 100ms;
}
.roulette-spinning {
  animation: rouletteSpin 0.8s ease-in-out;
}
@keyframes rouletteSpin {
  0% { transform: scale(1); }
  25% { transform: scale(1.1) rotate(10deg); }
  50% { transform: scale(0.95) rotate(-5deg); }
  75% { transform: scale(1.05) rotate(3deg); }
  100% { transform: scale(1); }
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--charcoal);
  color: var(--stone);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  animation: toastIn 0.3s ease-out, toastOut 0.3s ease-in 2.7s forwards;
  box-shadow: var(--shadow-xl);
}
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(-50%) translateY(20px); } }

@media (max-width: 600px) {
  .roulette-btn { display: none; }
}

/* ==================== SCROLL PROGRESS ==================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--terracotta), var(--terracotta-light));
  z-index: 9999;
  transition: width 50ms linear;
  pointer-events: none;
}

/* ==================== COOKIE CONSENT BANNER ==================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--charcoal);
  color: var(--stone);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  z-index: 9999;
  font-size: 0.875rem;
  font-family: var(--font-body);
  box-shadow: 0 -2px 16px rgba(0,0,0,0.2);
}
.cookie-text { margin: 0; }
.cookie-text a { color: var(--terracotta-light); text-decoration: none; }
.cookie-text a:hover { text-decoration: underline; }
.cookie-accept {
  background: var(--terracotta);
  color: white;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: background 0.15s;
}
.cookie-accept:hover { background: var(--terracotta-light); }

@media (max-width: 768px) {
  .hero-content {
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero-stats {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding: 1rem;
  }
}

/* Follow System */
.profile-follow-stats {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}
.profile-follow-stats strong {
  font-weight: 700;
  color: var(--text-primary);
}
.profile-stat-dot {
  color: var(--warm-gray-light);
}
.follow-btn {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 24px;
  border-radius: var(--radius-full);
  border: 2px solid var(--terracotta);
  background: var(--terracotta);
  color: white;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 12px;
}
.follow-btn:hover {
  background: var(--terracotta-light);
  border-color: var(--terracotta-light);
}
.follow-btn--following {
  background: transparent;
  color: var(--terracotta);
}
.follow-btn--following:hover {
  background: #DC2626;
  border-color: #DC2626;
  color: white;
}

/* Review Reactions */
.review-reactions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.reaction-btn {
  font-family: var(--font);
  font-size: 13px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--warm-border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.reaction-btn:hover { background: var(--warm-border); }
.reaction-btn.reaction-active {
  background: var(--terracotta-pale);
  border-color: var(--terracotta);
  color: var(--terracotta);
}
.reaction-count { font-weight: 600; min-width: 0; }

/* Profile Streaks */
.profile-streak {
  font-size: 14px;
  color: var(--terracotta);
  font-weight: 600;
  margin-top: 8px;
}
.profile-streak-longest {
  font-size: 12px;
  color: var(--warm-gray);
  margin-top: 2px;
}

/* Photo Gallery */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.photo-thumb {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.15s;
}
.photo-thumb:hover { opacity: 0.85; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
.lightbox-img { max-width: 90vw; max-height: 80vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; color: white; font-size: 32px; cursor: pointer;
}
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); border: none; color: white; font-size: 32px;
  padding: 12px 16px; cursor: pointer; border-radius: 8px;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-caption {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.7); font-size: 14px; text-align: center;
}

/* Top Dishes */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.section-subtitle-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}
.top-dishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.top-dish-card {
  display: flex;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  transition: box-shadow 0.15s;
}
.top-dish-card:hover { box-shadow: var(--shadow-card-hover); }
.top-dish-photo {
  width: 64px; height: 64px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
}
.top-dish-photo img { width: 100%; height: 100%; object-fit: cover; }
.top-dish-name { font-weight: 600; font-size: 15px; color: var(--text-primary); }
.top-dish-restaurant { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.top-dish-rating { font-size: 13px; margin-top: 4px; }

/* Neighborhood Guides */

/* Price History */
.price-changes { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.price-change-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: var(--bg-surface); border-radius: 6px; font-size: 13px;
}
.price-change-dish { font-weight: 500; color: var(--text-primary); }
.price-change-value { font-weight: 600; }
.price-change-time { color: var(--text-muted); font-size: 12px; }

/* Collections */
.collection-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  font-size: 14px;
}
.collection-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--terracotta);
}
.collection-item-name { flex: 1; font-weight: 500; }
.collection-item-count { color: var(--text-muted); font-size: 13px; }
.collection-create-btn {
  display: block;
  width: 100%;
  padding: 10px;
  margin-top: 12px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--terracotta);
  background: transparent;
  border: 1.5px dashed var(--terracotta);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}
.collection-create-btn:hover { background: var(--terracotta-pale); }
.profile-collection-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.profile-collection-name { font-weight: 500; font-size: 14px; }
.profile-collection-count { color: var(--text-muted); font-size: 13px; }
