/* ─── Custom properties ─────────────────────────────────────────────────────── */
:root {
  --bg:            #F9FAFB;
  --surface:       #FFFFFF;
  --primary:       #1A3A2A;
  --primary-hover: #245038;
  --accent:        #B07D2A;
  --accent-light:  #FBF3E3;
  --text:          #111827;
  --text-muted:    #6B7280;
  --border:        #E5E7EB;
  --shadow-sm:     0 1px 2px rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.04);
  --shadow-md:     0 4px 12px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg:     0 12px 32px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     14px;
  --font-serif:    'Playfair Display', Georgia, serif;
  --font-sans:     'Inter', system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg:            #0F1117;
  --surface:       #161B22;
  --primary:       #4ADE80;
  --primary-hover: #86EFAC;
  --accent:        #FBBF24;
  --accent-light:  #1C1A12;
  --text:          #F0F6FC;
  --text-muted:    #8B949E;
  --border:        #21262D;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.40);
  --shadow-md:     0 4px 16px rgba(0,0,0,.50);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.60);
}

/* ─── Reset & base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Geen scroll-behavior: smooth op html — verstoort iOS Safari scroll-restoration */

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Header ────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249,250,251,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
[data-theme="dark"] .site-header {
  background: rgba(15,17,23,0.95);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 60px;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

.logo-icon { font-size: 1.4rem; }
.logo-text  { font-family: var(--font-serif); letter-spacing: -.3px; }

/* ─── Nav links (midden, desktop) ───────────────────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  font-size: .875rem;
  font-weight: 400;
}

.nav-links a {
  color: var(--text-muted);
  position: relative;
  padding-bottom: 2px;
  transition: color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ─── Nav actions (rechts) ──────────────────────────────────────────────────── */
.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.nav-cta {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: .875rem;
  font-weight: 500;
  transition: background .2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--primary-hover); color: #fff; }

/* ─── Dark mode toggle ──────────────────────────────────────────────────────── */
.btn-theme {
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: background .15s, border-color .15s, color .15s;
  flex-shrink: 0;
}
.btn-theme:hover { background: var(--bg); border-color: var(--text-muted); color: var(--text); }
[data-theme="dark"] .btn-theme { border-color: var(--border); color: var(--text-muted); }
[data-theme="dark"] .btn-theme:hover { background: var(--surface); border-color: #444D56; color: var(--text); }

/* ─── Hamburger (mobile only) ───────────────────────────────────────────────── */
.btn-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
  transition: border-color .15s;
}
.btn-hamburger:hover { border-color: var(--text-muted); }
.btn-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
.btn-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(0, 6.5px); }
.btn-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.btn-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(0, -6.5px); }

/* ─── Mobile menu (slide-down) ──────────────────────────────────────────────── */
.mobile-menu {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 24px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .2s ease;
  z-index: 99;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
}
.mobile-menu-links a {
  padding: 13px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.mobile-menu-links a:hover { color: var(--primary); }
.mobile-menu-divider { margin: 16px 0 12px; border-top: 1px solid var(--border); }
.mobile-menu-auth { display: flex; flex-direction: column; gap: 8px; }

.mobile-menu-user {
  font-size: .875rem;
  color: var(--text-muted);
  padding: 4px 0 8px;
  display: block;
}
.mobile-menu-btn {
  display: block;
  width: 100%;
  padding: 11px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background .15s;
}
.mobile-menu-btn:hover { background: var(--border); }
.mobile-menu-btn--danger { color: #B91C1C; border-color: transparent; background: none; }
[data-theme="dark"] .mobile-menu-btn--danger { color: #FCA5A5; }

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  background: #1A3A2A;
  color: #fff;
  padding: 96px 0 96px;
}

.hero-inner {
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 20px;
  color: #fff;
  letter-spacing: -.02em;
}

.hero-title em {
  font-style: italic;
  color: rgba(251,191,36,.9);
}

.hero-subtitle {
  max-width: 500px;
  margin: 0 auto 40px;
  font-size: 1rem;
  color: rgba(255,255,255,.62);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity .15s, background .2s;
}

.btn:hover { opacity: .88; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { opacity: 1; background: #9a6c22; }

.btn-ghost {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
  border: 1.5px solid rgba(255,255,255,.2);
}

.btn-ghost:hover { background: rgba(255,255,255,.16); opacity: 1; }

/* ─── Sections gemeenschappelijk ────────────────────────────────────────────── */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 40px;
}

.section-header { text-align: center; margin-bottom: 32px; }

/* ─── Hoe het werkt ─────────────────────────────────────────────────────────── */
.how-it-works {
  background: var(--bg);
  padding: 80px 0;
  text-align: center;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-icon { font-size: 2rem; margin-bottom: 12px; }

.step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.step p { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }

.step-arrow {
  font-size: 1.8rem;
  color: var(--border);
  padding-top: 48px;
  display: flex;
  align-items: center;
}

/* ─── Featured restaurants ──────────────────────────────────────────────────── */
.featured-section {
  background: var(--bg);
  padding: 80px 0;
}

.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* Skeleton loading */
.loading-cards { display: contents; }

.skeleton-card {
  height: 220px;
  background: linear-gradient(90deg, #e8e0d4 25%, #f5f0e8 50%, #e8e0d4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-md);
}
[data-theme="dark"] .skeleton-card {
  background: linear-gradient(90deg, #1e2922 25%, #243228 50%, #1e2922 75%);
  background-size: 200% 100%;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.restaurant-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 0;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow .2s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.restaurant-card:hover {
  box-shadow: var(--shadow-md);
}

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

.cuisine-tag {
  background: var(--accent-light);
  color: #8a5a10;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}
[data-theme="dark"] .cuisine-tag { color: var(--accent); }

.price-badge {
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .85rem;
  font-weight: 600;
  color: #b07d1a;
}

.star { color: #E8C040; }

.card-description {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-address {
  font-size: .8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

.card-hint {
  font-size: .78rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 2px;
}

/* ─── Chat sectie ───────────────────────────────────────────────────────────── */
.chat-section {
  background: var(--bg);
  padding: 80px 0 100px;
}

.chat-intro { text-align: center; }

.chat-wrapper {
  max-width: 780px;
  margin: 0 auto;
}

.chat-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ─── Chat berichten ────────────────────────────────────────────────────────── */
.chat-messages {
  height: min(420px, 55vh);
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 100px; }

.message {
  display: flex;
  gap: 10px;
  max-width: 86%;
  animation: fadeUp .25s ease-out;
}

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

.message-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-assistant { align-self: flex-start; }
.message-error     { align-self: flex-start; }

.message-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.bubble {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: .925rem;
  line-height: 1.65;
}

.message-user .bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.message-assistant .bubble {
  background: var(--bg);
  color: var(--text);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}

.message-error .bubble {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}
[data-theme="dark"] .message-error .bubble {
  background: rgba(185,28,28,.15);
  color: #FCA5A5;
  border-color: rgba(185,28,28,.3);
}

/* Markdown in AI-berichten */
.bubble strong { font-weight: 600; color: var(--primary); }
.bubble em     { font-style: italic; }

/* ─── Typing indicator ──────────────────────────────────────────────────────── */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 18px;
}

.typing-indicator span {
  width: 7px;
  height: 7px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: .15s; }
.typing-indicator span:nth-child(3) { animation-delay: .30s; }

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

/* ─── Suggesties ────────────────────────────────────────────────────────────── */
.chat-suggestions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 20px 16px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.chip {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: .82rem;
  font-weight: 500;
  font-family: var(--font-sans);
  padding: 7px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}

.chip:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: #7a500a;
}

/* ─── Chat invoer ───────────────────────────────────────────────────────────── */
.chat-input-area {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.chat-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: .9rem;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.chat-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,42,.08);
}

.chat-input:disabled { opacity: .55; }

.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}

.chat-send-btn:hover   { background: var(--primary-hover); }
.chat-send-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ─── Nav auth ──────────────────────────────────────────────────────────────── */
.nav-auth { display: flex; align-items: center; gap: 10px; position: relative; }

/* ─── User dropdown ──────────────────────────────────────────────────────────── */
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 6px;
  z-index: 200;
  display: none;
}
.user-dropdown.open { display: block; }
.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-family: var(--font-sans);
  color: var(--text);
  cursor: pointer;
  transition: background .12s;
}
.user-dropdown-item:hover { background: var(--bg); }
.user-dropdown-item svg { flex-shrink: 0; color: var(--text-muted); }
.user-dropdown-item--danger { color: #B91C1C; }
[data-theme="dark"] .user-dropdown-item--danger { color: #FCA5A5; }
.user-dropdown-item--danger:hover { background: rgba(185,28,28,.08); }
.user-dropdown-item--danger svg { color: inherit; }
.user-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ─── Settings modal ─────────────────────────────────────────────────────────── */
.modal-box--settings {
  max-width: min(560px, 92vw);
  padding: 0;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  position: relative;
}
.settings-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 52px 0 20px;
  flex-shrink: 0;
}
.settings-tab {
  padding: 14px 16px;
  font-size: .875rem;
  font-weight: 500;
  font-family: var(--font-sans);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.settings-tab.active { color: var(--text); border-bottom-color: var(--primary); }
.settings-tab:hover  { color: var(--text); }
.settings-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
}
.settings-loading { color: var(--text-muted); font-size: .9rem; }
.settings-empty   { color: var(--text-muted); font-size: .9rem; }

/* Settings profiel tab */
.settings-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.settings-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--primary);
  font-family: var(--font-serif);
  font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.settings-name  { font-weight: 600; font-size: .95rem; color: var(--text); }
.settings-email { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.settings-section { margin-top: 4px; }
.settings-section-title {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); margin-bottom: 10px;
}
.settings-section-desc { font-size: .82rem; color: var(--text-muted); margin-bottom: 10px; }

/* Settings gesprekken tab */
.settings-sessions { display: flex; flex-direction: column; gap: 2px; }
.settings-session {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px;
  background: none; border: none;
  border-radius: var(--radius-sm);
  cursor: pointer; width: 100%; text-align: left;
  transition: background .15s;
}
.settings-session:hover { background: var(--bg); }
.settings-session-title {
  font-size: .875rem; font-weight: 500; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0;
}
.settings-session-date { font-size: .75rem; color: var(--text-muted); white-space: nowrap; margin-left: 12px; }

.btn-user-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 12px 6px 14px;
  font-size: .85rem;
  font-family: var(--font-sans);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}
.btn-user-menu strong { color: var(--text); font-weight: 600; }
.btn-user-menu:hover  { border-color: var(--text-muted); background: var(--bg); color: var(--text); }

.nav-greeting { font-size: .85rem; color: var(--text-muted); }
.nav-greeting strong { color: var(--text); font-weight: 600; }

.btn-login {
  background: var(--primary);
  border: none;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  font-family: var(--font-sans);
  padding: 8px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-login:hover { background: var(--primary-hover); transform: translateY(-1px); }

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: .85rem;
}

.nav-user-name { font-weight: 600; color: var(--primary); }

.btn-logout {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: .8rem;
  font-family: var(--font-sans);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color .15s;
}
.btn-logout:hover { color: var(--text); }

.btn-account {
  color: var(--primary);
  font-size: .82rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
  transition: background .15s;
  white-space: nowrap;
}
.btn-account:hover { background: var(--bg); }

/* ─── Chatgeschiedenisbalk ───────────────────────────────────────────────────── */
.chat-history-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: none;
}

.history-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.history-sessions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}

.session-chip {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 14px;
  font-size: .8rem;
  cursor: pointer;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background .15s, border-color .15s;
}
.session-chip:hover, .session-chip.active {
  background: var(--accent-light);
  border-color: var(--accent);
  color: #7a500a;
}

.btn-new-chat {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 5px 14px;
  font-size: .8rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.btn-new-chat:hover { background: var(--primary-hover); }

/* ─── Modals (gemeenschappelijk) ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.50);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overscroll-behavior: contain; /* voorkomt rubber-band scroll op achtergrond (iOS 16+) */
  animation: fadeIn .2s ease-out;
}
.modal-overlay[hidden] { display: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: slideUp .25s ease-out;
  /* Eigen scroll op iOS */
  -webkit-overflow-scrolling: touch;
}

.modal-box--wide {
  max-width: min(680px, 92vw);
  padding: 0;
  background: var(--surface); /* expliciete achtergrond — voorkomt transparantie */
  overflow: hidden;           /* flex-layout werkt alleen correct met hidden of auto */
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

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

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: .9rem;
  color: var(--text-muted);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 1;
  transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--border); color: var(--text); }

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

/* ─── Auth modal ────────────────────────────────────────────────────────────── */
.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 8px;
  border-radius: calc(var(--radius-sm) - 2px);
  font-size: .9rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  color: var(--text-muted);
  transition: background .15s, color .15s;
}
.auth-tab.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group label .hint { font-weight: 400; color: var(--text-muted); }

.form-group input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .925rem;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31,59,46,.1);
}

.form-error {
  font-size: .85rem;
  color: #B91C1C;
  margin-bottom: 12px;
  min-height: 20px;
}
[data-theme="dark"] .form-error { color: #FCA5A5; }

.btn-full { width: 100%; justify-content: center; border-radius: var(--radius-md); }

.auth-hint {
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ─── Restaurant detail modal ───────────────────────────────────────────────── */
.restaurant-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.restaurant-detail-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--primary);
}

.restaurant-detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.restaurant-detail-description {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.restaurant-detail-info {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: .875rem;
}

.info-item { display: flex; align-items: center; gap: 6px; color: var(--text-muted); }
.info-item strong { color: var(--text); }

.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.feature-tag {
  background: var(--accent-light);
  color: #7a500a;
  font-size: .75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
}

.dishes-section h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.dish-category { margin-bottom: 18px; }

.dish-category-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.dish-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.dish-item:last-child { border-bottom: none; }

.dish-info { flex: 1; }
.dish-name  { font-weight: 600; font-size: .9rem; margin-bottom: 2px; }
.dish-desc  { font-size: .82rem; color: var(--text-muted); line-height: 1.5; }
.dish-tags  { margin-top: 4px; display: flex; gap: 4px; flex-wrap: wrap; }

.diet-tag {
  background: #DCFCE7;
  color: #166534;
  font-size: .7rem;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 100px;
}
[data-theme="dark"] .diet-tag { background: rgba(90,175,122,.15); color: #5AAF7A; }

.dish-price {
  font-weight: 600;
  font-size: .9rem;
  color: var(--primary);
  white-space: nowrap;
}

.reserve-btn {
  display: block;
  width: 100%;
  margin-bottom: 20px;
  text-align: center;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 13px;
  font-size: .95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  text-decoration: none;
  transition: background .2s;
}
.reserve-btn:hover { background: var(--primary-hover); }

.detail-ask-btn {
  display: block;
  width: 100%;
  margin-top: 24px;
  text-align: center;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 13px;
  font-size: .95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background .2s;
}
.detail-ask-btn:hover { background: var(--primary-hover); }

.error-text { color: #B91C1C; padding: 20px; text-align: center; }
[data-theme="dark"] .error-text { color: #FCA5A5; }

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  background: #1A3A2A;
  color: rgba(255,255,255,.55);
  padding: 48px 0;
  text-align: center;
}

.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.site-footer .logo { color: rgba(255,255,255,.9); justify-content: center; }
.site-footer .logo-text { color: rgba(255,255,255,.9); }

.footer-tagline { font-size: .875rem; color: rgba(255,255,255,.5); margin-top: 4px; }
.footer-copy    { font-size: .78rem; color: rgba(255,255,255,.3); margin-top: 4px; }

/* ─── Hero extras ───────────────────────────────────────────────────────────── */
.btn-ghost--subtle { opacity: .7; font-size: .85rem; padding: 10px 20px; }

.hero-user-hint {
  margin-top: 20px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: rgba(255,255,255,.9);
  font-size: .875rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  cursor: pointer;
  transition: background .2s;
}
.hero-user-hint:hover { background: rgba(255,255,255,.16); }
.hero-user-hint strong { color: #E8C77A; }
.hint-top  { font-weight: 600; font-size: .875rem; }
.hint-bottom { font-size: .8rem; opacity: .8; }
.hint-cta  { color: #E8C77A; margin-left: 6px; font-weight: 600; }

/* ─── AI-aanbevelingen sectie ────────────────────────────────────────────────── */
.recommendations-section {
  max-width: 780px;
  margin: 0 auto 24px;
}

.reco-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.reco-cards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.reco-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  flex: 1;
  min-width: 200px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.reco-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.reco-card-name  { font-weight: 600; font-size: .95rem; color: var(--primary); margin-bottom: 4px; }
.reco-card-meta  { font-size: .8rem; color: var(--text-muted); }

/* ─── Conversatie-starters ───────────────────────────────────────────────────── */
.starters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.starter-tile {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background .15s, border-color .15s, transform .15s;
  font-family: var(--font-sans);
}
.starter-tile:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.starter-emoji  { font-size: 1.4rem; }
.starter-title  { font-size: .85rem; font-weight: 600; color: var(--primary); }
.starter-sub    { font-size: .8rem; color: var(--text-muted); }

/* ─── Mini restaurant-kaartjes in chat ───────────────────────────────────────── */
.chat-restaurant-cards {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-left: 44px; /* uitlijning met avatar */
}

.chat-mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
  min-width: 150px;
  flex: 1;
  max-width: 220px;
}
.chat-mini-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.chat-mini-name  { font-weight: 600; font-size: .85rem; color: var(--primary); margin-bottom: 3px; }
.chat-mini-meta  { font-size: .75rem; color: var(--text-muted); }
.chat-mini-btn   { font-size: .75rem; color: var(--accent); font-weight: 600; margin-top: 6px; display: block; }

/* ─── Soortgelijke restaurants in detail ─────────────────────────────────────── */
.similar-section { margin-top: 28px; }
.similar-section h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.similar-cards { display: flex; gap: 10px; flex-wrap: wrap; }
.similar-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  flex: 1;
  min-width: 160px;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.similar-card:hover { background: var(--accent-light); transform: translateY(-1px); }
.similar-card-name { font-weight: 600; font-size: .875rem; color: var(--primary); }
.similar-card-meta { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }

/* ─── Animaties ──────────────────────────────────────────────────────────────── */

/* ─── Responsive ────────────────────────────────────────────────────────────── */

/* Tablet (≤900px) */
@media (max-width: 900px) {
  .filter-bar { flex-wrap: wrap; gap: 12px; }
  .filter-search-wrap { width: 100%; min-width: 0; }
}

/* Mobiel (≤700px) */
@media (max-width: 700px) {
  /* Navigatie: 3-kolom grid → 2-kolom (logo | acties) */
  .header-inner   { grid-template-columns: 1fr auto; gap: 8px; }
  .nav-links      { display: none; }
  .nav-auth       { display: none; }
  .btn-hamburger  { display: flex; }
  .nav-cta        { padding: 7px 14px; font-size: .82rem; }
  .btn-theme      { width: 40px; height: 40px; }

  /* Hero */
  .hero { padding-top: 60px; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: .95rem; }

  /* Stappen */
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { display: none; }

  /* Restaurant grid */
  .restaurant-grid { grid-template-columns: 1fr; }

  /* Chat */
  .chat-messages { height: min(340px, 50vh); }
  .message { max-width: 95%; }
  .starters-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 12px 14px;
    gap: 8px;
  }
  .starter-tile { padding: 12px 10px; }
  .starter-emoji { font-size: 1.2rem; }
  .chat-input-area { padding: 12px 14px; gap: 8px; }

  /* Filter */
  .filter-bar { flex-direction: column; gap: 10px; padding: 14px 16px; }
  .filter-group { flex-wrap: wrap; }

  /* Fonts op mobiel leesbaar */
  .filter-label       { font-size: .85rem; }
  .cuisine-tag        { font-size: .8rem; }
  .card-address       { font-size: .85rem; }
  .dish-category-title{ font-size: .85rem; }
  .card-description   { font-size: .875rem; }

  /* Account drawer */
  .account-drawer { width: 100vw; }
  .drawer-body    { padding: 16px 18px; }

  /* Modals */
  .modal-box { padding: 28px 20px; }
  .detail-photo-in-scroll { height: 180px; }
  .detail-inner { padding: 16px 18px 28px; }

  /* Reco cards */
  .reco-cards { flex-direction: column; }

  /* Chat mini-kaartjes */
  .chat-restaurant-cards { flex-direction: column; padding-left: 0; }
  .chat-mini-card { max-width: 100%; }

  /* Vergelijk header */
  .compare-header { grid-template-columns: 1fr auto 1fr; }
  .compare-restaurant { padding: 10px; }
  .compare-restaurant-name { font-size: .9rem; }
}

/* Klein (≤480px) — iPhone SE en vergelijkbaar */
@media (max-width: 480px) {
  /* Container iets minder padding */
  .container { padding: 0 14px; }

  /* Hero acties op volle breedte */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; justify-content: center; }

  /* Hero hint compacter */
  .hero-user-hint { padding: 12px 14px; font-size: .82rem; }

  /* Sectie titels */
  .section-title { font-size: 1.6rem; }

  /* Gewone modals (auth, groepsplanner) — gecentreerd met padding */
  .modal-box { padding: 24px 16px; border-radius: var(--radius-md); max-height: 92svh; }

  /* Restaurant/vergelijk modals — volledige schermhoogte als sheet */
  .modal-overlay--sheet { padding: 0; align-items: flex-start; }
  .modal-overlay--sheet .modal-box--wide { max-width: 100%; border-radius: 0; max-height: 100svh; }

  .detail-photo-in-scroll { height: 140px; }
  .detail-inner { padding: 14px 16px 24px; }
  .detail-sticky-bar { padding: 10px 16px; }
  #compareModalContent { padding: 16px; }

  /* Groepsplanner */
  .radio-row { gap: 6px; }
  .radio-chip, .checkbox-chip { padding: 7px 12px; font-size: .8rem; }

  /* Chat starters: 1 kolom op heel kleine schermen */
  .starters-grid { grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 12px; }

  /* Filter chips wrap beter */
  .filter-chips { gap: 5px; }
  .filter-chip { font-size: .8rem; padding: 8px 12px; }

  /* Card foto iets kleiner */
  .card-photo { height: 130px; }

  /* Vergelijk op heel klein: gestapeld */
  .compare-header { grid-template-columns: 1fr; gap: 8px; }
  .compare-vs { display: none; }
}

/* ─── Weer-banner ────────────────────────────────────────────────────────────── */
.weather-banner {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}
.weather-banner:hover { background: linear-gradient(135deg, #d97706, #b45309); }

/* ─── Filterbar ──────────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

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

.filter-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  white-space: nowrap;
}

.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }

.filter-chip {
  padding: 7px 16px;
  min-height: 36px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: .83rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  white-space: nowrap;
  color: var(--text-muted);
}
.filter-chip:hover    { border-color: var(--text-muted); color: var(--text); background: var(--bg); }
.filter-chip.active   { background: var(--primary); border-color: var(--primary); color: #fff; }

.filter-search-wrap { flex: 1; min-width: 180px; }
.filter-search {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: .875rem;
  font-family: var(--font-sans);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}
.filter-search:focus { border-color: var(--primary); }

.grid-footer { text-align: center; margin-top: 24px; }
.btn-load-more {
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 24px;
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  transition: all .2s;
}
.btn-load-more:hover { border-color: var(--primary); color: var(--primary); }

/* ─── Account drawer ─────────────────────────────────────────────────────────── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(3px);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.account-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 95vw);
  background: var(--surface);
  z-index: 401;
  box-shadow: -8px 0 40px rgba(0,0,0,.15);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
}
.account-drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.drawer-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.drawer-close {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.drawer-close:hover { background: var(--border); color: var(--text); }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.drawer-loading { color: var(--text-muted); font-size: .9rem; padding: 20px 0; }

/* Drawer profiel */
.drawer-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-md);
}
.drawer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--primary);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.drawer-name  { font-weight: 600; font-size: 1rem; color: var(--primary); }
.drawer-email { font-size: .8rem; color: var(--text-muted); }
.drawer-since { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }

/* Drawer sectie */
.drawer-section { }
.drawer-section-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Smaakprofiel tags */
.taste-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.taste-tag {
  background: var(--accent-light);
  color: #7a500a;
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}
.taste-tag--empty { color: var(--text-muted); font-size: .85rem; font-style: italic; }

/* Drawer sessies */
.drawer-sessions { display: flex; flex-direction: column; gap: 2px; }
.drawer-session {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s;
}
.drawer-session:hover { background: var(--bg); }
.drawer-session-title { font-size: .875rem; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.drawer-session-date  { font-size: .75rem; color: var(--text-muted); white-space: nowrap; }

/* Drawer voorkeuren knop */
.drawer-prefs-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: .875rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  color: var(--primary);
  transition: background .15s;
}
.drawer-prefs-btn:hover { background: var(--accent-light); }

.drawer-logout-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  font-size: .875rem;
  font-family: var(--font-sans);
  cursor: pointer;
  color: var(--text-muted);
  transition: all .15s;
  margin-top: auto;
}
.drawer-logout-btn:hover { border-color: #B91C1C; color: #B91C1C; }

/* ─── Checkbox & radio chips (gedeeld door account + groepsplanner modal) ─────── */
.checkbox-row, .radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkbox-chip, .radio-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: .82rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  user-select: none;
  transition: background .15s, border-color .15s, color .15s;
}

/* Verberg native inputs — visuele staat via .checked class */
.checkbox-chip input,
.radio-chip input { display: none; }

.checkbox-chip.checked, .radio-chip.checked {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.checkbox-chip:hover:not(.checked), .radio-chip:hover:not(.checked) {
  background: var(--accent-light);
  border-color: var(--accent);
}

/* ─── Range input ────────────────────────────────────────────────────────────── */
.range-input {
  width: 100%;
  height: 4px;
  accent-color: var(--primary);
  margin-top: 8px;
}

/* ─── Vergelijkingsresultaat ──────────────────────────────────────────────────── */
.compare-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.compare-restaurant {
  text-align: center;
  padding: 14px;
  background: var(--bg);
  border-radius: var(--radius-md);
}
.compare-restaurant-name { font-family: var(--font-serif); font-size: 1rem; color: var(--primary); font-weight: 600; }
.compare-restaurant-meta { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }
.compare-vs { font-family: var(--font-serif); font-size: 1.4rem; color: var(--text-muted); text-align: center; }
.compare-result {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 20px;
  font-size: .925rem;
  line-height: 1.7;
  color: var(--text);
}
.compare-loading { text-align: center; padding: 40px; color: var(--text-muted); }

/* ─── Restaurant kaart foto ──────────────────────────────────────────────────── */
.card-photo {
  position: relative;
  height: 148px;
  overflow: hidden;
  flex-shrink: 0;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.restaurant-card:hover .card-photo img { transform: scale(1.03); }
.card-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  display: flex;
  gap: 6px;
  align-items: center;
}
.price-badge--light { color: #fff; }

.card-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; }
.card-special {
  font-size: .78rem;
  font-weight: 600;
  color: #92400e;
  background: #FEF3C7;
  padding: 3px 10px;
  border-radius: 100px;
  display: inline-block;
  align-self: flex-start;
}
[data-theme="dark"] .card-special { background: rgba(212,165,85,.15); color: #D4A555; }

/* ─── Detail modal foto ───────────────────────────────────────────────────────── */
.detail-photo {
  /* Geen negatieve margins meer — foto zit buiten .detail-content */
  height: 220px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  flex-shrink: 0;
  background: var(--border);
}
.detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Tussenlaag: restaurantModalContent vult de flex-modal */
#restaurantModalContent {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative; /* anker voor .detail-sticky-bar (position: absolute) */
  display: flex;
  flex-direction: column;
}

/* compareModalContent: scrollbare container */
#compareModalContent {
  padding: 24px 28px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* detail-content is de scroll-container */
.detail-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

/* Foto boven in het scroll-gebied */
.detail-photo-in-scroll {
  width: 100%;
  height: 220px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--border);
}
.detail-photo-in-scroll img {
  width: 100%;
  height: 130%;   /* extra hoogte voor parallax-beweging */
  object-fit: cover;
  display: block;
  transform: translateY(0);
  will-change: transform;
}

/* Sticky balk: position absolute, verschijnt via opacity (translateY wordt geclipped door overflow:hidden) */
.detail-sticky-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.detail-sticky-bar.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.detail-sticky-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.detail-sticky-rating {
  font-size: .85rem;
  font-weight: 600;
  color: #b07d1a;
  white-space: nowrap;
  margin-left: 10px;
  flex-shrink: 0;
}
.detail-sticky-rating .star { color: #E8C040; }

/* Content-sectie met eigen padding */
.detail-inner {
  padding: 20px 24px 32px;
  flex: 1;
}

.restaurant-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap; /* titel en share-knoppen wrappen als er te weinig ruimte is */
}

.restaurant-detail-title { flex: 1; min-width: 0; word-break: break-word; }

/* ─── Share knoppen ───────────────────────────────────────────────────────────── */
.share-buttons { display: flex; gap: 6px; flex-shrink: 0; margin-top: 4px; align-self: flex-start; }
.share-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  color: var(--text-muted);
}
.share-btn:hover { border-color: var(--primary); color: var(--primary); }
.share-btn--wa { color: #25D366; border-color: #25D366; }
.share-btn--wa:hover { background: #25D366; color: #fff; }
.share-btn--copy.copied { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ─── Dagspecial badge in detail ──────────────────────────────────────────────── */
.detail-special {
  background: #FEF3C7;
  color: #92400e;
  font-size: .875rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
[data-theme="dark"] .detail-special { background: rgba(212,165,85,.15); color: #D4A555; }

/* ─── Vergelijk-dropdown in detailmodal ──────────────────────────────────────── */
.compare-trigger { margin-bottom: 16px; }
.compare-select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .9rem;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
}
.compare-select:focus { border-color: var(--primary); }
