/* ─── Custom properties ─────────────────────────────────────────────────────── */
:root {
  --bg:            #fbf8e9;
  --surface:       #FFFFFF;
  --primary:       #015d2c;
  --primary-hover: #084420;
  --accent:        #f0822b;
  --accent-light:  #fff3e8;
  --matcha:        #c7d074;
  --text:          #111827;
  --text-muted:    #6B7280;
  --border:        #e0ddd0;
  --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:     8px;
  --radius-md:     12px;
  --radius-lg:     18px;
  --font-serif:    'Varela Round', system-ui, sans-serif;
  --font-sans:     'Inter', system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg:            #111827;
  --surface:       #1a2535;
  --primary:       #4ADE80;
  --primary-hover: #86EFAC;
  --accent:        #f0822b;
  --accent-light:  #2a1a0a;
  --matcha:        #c7d074;
  --text:          #F0F6FC;
  --text-muted:    #8B949E;
  --border:        #2d3748;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.45);
  --shadow-md:     0 4px 16px rgba(0,0,0,.60), 0 2px 6px rgba(0,0,0,.40);
  --shadow-lg:     0 8px 40px rgba(0,0,0,.70), 0 4px 12px rgba(0,0,0,.50);
}

/* ─── 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;
  overflow-x: hidden; /* voorkomt horizontale paginascroll door negatieve marges (bijv. .gallery carrousel) */
}

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(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
[data-theme="dark"] .site-header {
  background: rgba(13,31,21,0.97);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

/* ─── Announcement bar ──────────────────────────────────────────────────────── */
.announcement-bar {
  background: #084420;
  color: rgba(255,255,255,.78);
  text-align: center;
  padding: 9px 20px;
  font-size: .82rem;
  line-height: 1.5;
}
.announcement-highlight { color: #f0822b; font-weight: 600; }
[data-theme="dark"] .announcement-bar {
  background: #0d2318;
  color: rgba(240,246,252,.65);
}

.logo-img { display: block; width: auto; }

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

.logo-mark  { flex-shrink: 0; }
.logo-text  { font-family: var(--font-serif); letter-spacing: -.3px; }
.logo-a     { color: #f0822b; }
.site-footer .logo-a { color: #f0822b; }

/* ─── Chat hero action-knoppen ──────────────────────────────────────────────── */
.chat-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.chat-hero-btn {
  background: rgba(1,93,44,.06);
  border: 1.5px solid rgba(1,93,44,.18);
  color: var(--primary);
  font-size: .875rem;
  padding: 8px 20px;
  border-radius: 100px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background .15s;
}
.chat-hero-btn:hover { background: rgba(1,93,44,.12); }

/* ─── 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; }

/* ─── Nav knoppen ───────────────────────────────────────────────────────────── */
.btn-pill-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: .875rem;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-sans);
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
}
.btn-pill-toggle:hover { border-color: var(--text-muted); background: var(--bg); }

/* Thema-knop: ronde 44×44 icoonknop, consistent met de hamburger */
#btnTheme {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.05rem;
  line-height: 1;
}

.btn-login {
  background: none;
  border: none;
  font-size: .875rem;
  font-family: var(--font-sans);
  color: var(--text);
  cursor: pointer;
  padding: 6px 4px;
  font-weight: 500;
}
.btn-login:hover { color: var(--primary); }

.btn-register {
  background: none;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 100px;
  padding: 7px 18px;
  font-size: .875rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.btn-register:hover { background: var(--accent); color: #fff; }

/* ─── 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: 50%;
  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;
}
/* Translate vóór rotate: anders verschuift de translate in het geroteerde
   assenstelsel en kruisen de twee balken niet exact in het midden. */
.btn-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.btn-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.btn-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── 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; }


.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:active:not(:disabled) { transform: scale(0.97); }

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

.btn-primary:hover { opacity: 1; background: #d96b1d; }
[data-theme="dark"] .btn-primary { background: var(--accent); color: #fff; }
[data-theme="dark"] .btn-primary:hover { background: #c4601a; }
[data-theme="dark"] .chat-send-btn { background: var(--primary); color: #0d1f15; }

.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(--surface);
  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; }
}

/* ─── Restaurants count header ──────────────────────────────────────────────── */
.restaurants-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 28px;
}
.restaurants-count {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 700;
}
.restaurants-desc { color: var(--text-muted); font-size: .9rem; }

.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, transform .2s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

/* Card nieuwe stijl */
.card-name--orange { color: var(--accent); font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.card-meta { font-size: .82rem; color: var(--text-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 4px; }
.card-tag {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.card-cta-row { margin-top: auto; }
.card-book-cta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.card-book-sub { font-size: .75rem; color: var(--text-muted); }

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

.cuisine-tag {
  background: var(--accent-light);
  color: #c06010;
  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-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;
  display: none; /* vervangen door .card-cta */
  margin-top: 2px;
}

/* ─── Hero sectie ───────────────────────────────────────────────────────────── */
.hero-section {
  background: var(--bg);
  padding: 64px 0 56px;
}
.hero-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}
.hero-badge {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-serif);
  line-height: 1.05;
  margin-bottom: 16px;
}
.hero-line-1 {
  display: block;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  color: var(--primary);
}
.hero-line-2 {
  display: block;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  color: var(--accent);
}
.hero-subtitle {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 28px;
  line-height: 1.6;
}
/* Chat container */
#chatContainer {
  max-width: 780px;
  margin: 32px auto 0;
}


.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(300px, 40vh);
  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: 28px;
  height: 28px;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.message-avatar img { display: block; width: 28px; height: 28px; }

.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, 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; }


.btn-user-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: .875rem;
  min-height: 44px;
  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; }


.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: 520px;
  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(840px, 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: 100;
  transform: translateZ(0); /* GPU-layer promotie — garandeert weergave boven foto's */
  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);
}
[data-theme="dark"] .form-group input {
  background: #0f1923;
  border-color: var(--border);
}
[data-theme="dark"] .form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74,222,128,.18);
}
[data-theme="dark"] .filter-search { background: #0f1923; }
[data-theme="dark"] .filter-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74,222,128,.18);
}

.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: .875rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
}
[data-theme="dark"] .feature-tag,
[data-theme="dark"] .taste-tag  { color: #fbbf24; }
[data-theme="dark"] .chip:hover,
[data-theme="dark"] .session-chip:hover,
[data-theme="dark"] .session-chip.active { color: #fbbf24; }

.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: .875rem;
  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; }
/* hidden-attribuut moet display:flex overrulen — anders verbergt zoeken niets */
.dish-item[hidden] { display: none; }

.dish-info { flex: 1; min-width: 0; }
/* Uniforme schrijfwijze, onafhankelijk van de import: naam altijd hoofdletters,
   beschrijving + sub-tags altijd kleine letters. */
.dish-name  { font-weight: 600; font-size: .9rem; margin-bottom: 2px; text-transform: uppercase; }
.dish-desc  { font-size: .875rem; color: var(--text-muted); line-height: 1.5; text-transform: lowercase; }
.dish-tags  { margin-top: 4px; display: flex; gap: 4px; flex-wrap: wrap; }

.diet-tag {
  background: #DCFCE7;
  color: #166534;
  font-size: .875rem;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 100px;
  text-transform: lowercase;
}
[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;
  flex-shrink: 0;
}

.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: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: .95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.detail-ask-btn:hover { background: var(--bg); border-color: var(--primary); }

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

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  background: #084420;
  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-logo { display: flex; align-items: center; gap: 8px; justify-content: center; }
.footer-logo .logo-text { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; 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; }
[data-theme="dark"] .site-footer {
  background: #0a1a10;
  color: rgba(240,246,252,.45);
}
[data-theme="dark"] .footer-tagline { color: rgba(240,246,252,.4); }
[data-theme="dark"] .footer-copy    { color: rgba(240,246,252,.25); }

/* ─── 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: #f0822b;
  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: .875rem; 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; }

  /* 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: .875rem; }
  .card-description   { font-size: .875rem; }

  /* Account drawer */
  .account-drawer { width: 100vw; }
  .drawer-profile-header { padding: 16px 18px; flex-wrap: wrap; }
  .drawer-quick-actions { flex-direction: row; }
  .drawer-body    { padding: 16px 18px; }
  .drawer-tab { padding: 12px 12px; font-size: .875rem; }

  /* Modals */
  .modal-box { padding: 28px 20px; }

  /* 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; }

  #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); }
[data-theme="dark"] .weather-banner {
  background: linear-gradient(135deg, #92400e, #78350f);
  color: #fde68a;
}
[data-theme="dark"] .weather-banner:hover {
  background: linear-gradient(135deg, #78350f, #5c2d0a);
}

/* ─── Omgevingsbanner (test/lokaal — nooit zichtbaar op productie) ───────────── */
/* Eén variabele koppelt de bannerhoogte aan de sticky-offset van de header,
   zodat er geen losse magische getallen uit de pas gaan lopen. */
:root           { --env-banner-h: 0px;  }
.has-env-banner { --env-banner-h: 34px; }

.env-banner { display: none; }
.has-env-banner .env-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 101;                 /* net boven de site-header (z-index 100) */
  height: var(--env-banner-h);
  padding: 0 16px;
  background: #b91c1c;
  color: #fff;
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
  overflow: hidden;
}
/* De sticky header zakt mee omlaag zodat de banner hem niet overlapt. */
.has-env-banner .site-header { top: var(--env-banner-h); }

@media (max-width: 700px) {
  .has-env-banner             { --env-banner-h: 38px; }
  .has-env-banner .env-banner { font-size: .875rem;   }  /* mobiel: min. 14px */
}

/* ─── 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(520px, 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 profiel header ─────────────────────────────────────────────────── */
.drawer-profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-user-info { flex: 1; min-width: 0; }
.drawer-quick-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.drawer-action-btn {
  font-size: .78rem;
  font-weight: 500;
  font-family: var(--font-sans);
  padding: 6px 12px;
  min-height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.drawer-action-btn:hover { border-color: var(--primary); color: var(--primary); }
.drawer-action-btn--danger:hover { border-color: #B91C1C; color: #B91C1C; }

/* ─── Drawer tab navigatie ───────────────────────────────────────────────────── */
.drawer-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.drawer-tabs::-webkit-scrollbar { display: none; }
.drawer-tab {
  padding: 12px 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;
  min-height: 44px;
  flex-shrink: 0;
}
.drawer-tab.active { color: var(--text); border-bottom-color: var(--primary); }
.drawer-tab:hover { color: var(--text); }

/* Avatar 56px in de drawer */
.account-drawer .drawer-avatar { width: 56px; height: 56px; font-size: 1.4rem; }

/* Closing animation class */
.account-drawer--closing { transition: transform .25s cubic-bezier(.4,0,1,1) !important; }

/* ─── Auth drawer ────────────────────────────────────────────────────────────── */
.auth-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(460px, 95vw);
  background: var(--surface);
  z-index: 402;
  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;
  overflow: hidden;
}
.auth-drawer.open { transform: translateX(0); }
.auth-drawer--closing { transition: transform .25s cubic-bezier(.4,0,1,1) !important; }

.auth-drawer-body { gap: 0; padding: 24px 24px 32px; }

.auth-forgot-wrap { text-align: center; margin-top: 12px; }
.auth-forgot-link {
  font-size: .875rem;
  color: var(--primary);
  text-decoration: none;
  transition: opacity .15s;
}
.auth-forgot-link:hover { opacity: .75; }

@media (max-width: 480px) {
  .auth-drawer { width: 100vw; }
}

/* ─── Restaurant detail drawer ───────────────────────────────────────────── */
.restaurant-drawer {
  --rd-topbar-h: 56px;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(720px, 96vw);
  background: var(--surface);
  z-index: 402;
  box-shadow: -8px 0 40px rgba(0,0,0,.18);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.restaurant-drawer.open { transform: translateX(0); }
.restaurant-drawer--closing { transition: transform .25s cubic-bezier(.4,0,1,1) !important; }

/* restaurantModalContent vult het drawer-paneel */
#restaurantModalContent {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ─── Zwevende topbar — actieknoppen op de foto, solide bij scrollen ─────── */
.rd-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--rd-topbar-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  z-index: 10;
  pointer-events: none;            /* transparante balk vangt geen kliks op de foto */
  border-bottom: 1px solid transparent;
  transition: background .2s, border-color .2s;
}
.rd-topbar > * { pointer-events: auto; }
.rd-topbar--solid {
  background: var(--surface);
  border-bottom-color: var(--border);
  pointer-events: auto;            /* solide balk vangt kliks, niet doorvallen naar content */
}
.rd-topbar-actions { display: flex; gap: 8px; }
.rd-topbar-title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity .2s;
}
.rd-topbar--solid .rd-topbar-title { opacity: 1; }

/* Ronde zwevende knoppen — op de foto: wit met schaduw */
.rd-circle-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: #1a1a1a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.30);
  transition: background .2s, color .2s, box-shadow .2s, border-color .2s;
}
.rd-circle-btn:hover { background: #fff; }
.rd-circle-btn--close { font-size: 1.1rem; }
/* In de solide balk: lichte vulling + rand zodat de knoppen blijven opvallen */
.rd-topbar--solid .rd-circle-btn {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.rd-topbar--solid .rd-circle-btn:hover { background: var(--surface); }
.rd-circle-btn--fav.active { color: #E11D48; }
.rd-circle-btn--fav.active svg { fill: #E11D48; }
.rd-circle-btn.copied { background: var(--primary); color: #fff; }

/* ─── Zwevende reserveer-FAB — pill die inklapt tot ronde bubbel ─────────── */
.rd-fab {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 170px;          /* vaste breedtes i.p.v. auto → width animeert soepel */
  height: 56px;
  padding: 0 22px;
  border: none;
  border-radius: 28px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
  transition: padding .25s, gap .25s, width .25s, box-shadow .15s;
}
.rd-fab:hover { box-shadow: 0 8px 24px rgba(0,0,0,.34); }
.rd-fab svg { flex-shrink: 0; }
.rd-fab-label {
  overflow: hidden;
  max-width: 160px;
  transition: max-width .25s, opacity .2s;
}
.rd-fab--mini {
  padding: 0;
  width: 56px;
  gap: 0;
  justify-content: center;
}
.rd-fab--mini .rd-fab-label {
  max-width: 0;
  opacity: 0;
}
/* Hover over de ingeklapte bubbel → weer de volledige pill (soepel, vaste breedte) */
.rd-fab--mini:hover {
  width: 170px;
  padding: 0 22px;
  gap: 8px;
}
.rd-fab--mini:hover .rd-fab-label {
  max-width: 160px;
  opacity: 1;
}

/* ─── Scrollgebied — alles onder de topbar ───────────────────────────────── */
.rd-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  /* Strakke, dunne scrollbar i.p.v. de chunky systeembalk */
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,.22) transparent;
}
.rd-scroll::-webkit-scrollbar { width: 8px; }
.rd-scroll::-webkit-scrollbar-track { background: transparent; }
.rd-scroll::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.20);
  border-radius: 4px;
}
.rd-scroll::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.32); }
[data-theme="dark"] .rd-scroll { scrollbar-color: rgba(255,255,255,.22) transparent; }
[data-theme="dark"] .rd-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.20); }
[data-theme="dark"] .rd-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.32); }

/* ─── Hero-foto — full-bleed, eerste element in het scrollgebied ────────── */
.rd-hero {
  position: relative;
  width: 100%;
  height: min(340px, 52vw);
  overflow: hidden;
  background: var(--border);
  flex-shrink: 0;
}
.rd-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hero-info — matte/frosted band onderin .rd-hero */
.rd-hero-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 20px 18px;
  background: linear-gradient(to top, rgba(12,14,18,.62), rgba(12,14,18,.30));
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  border-top: 1px solid rgba(255,255,255,.10);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rd-hero-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rd-hero-meta {
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
}
.rd-hero-address,
.rd-hero-phone {
  font-size: .875rem;
  color: rgba(255,255,255,.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rd-hero-address a,
.rd-hero-phone a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.rd-hero-address a:hover,
.rd-hero-phone a:hover { color: #fff; }

/* Content boven de tabbalk (direct na hero) */
.rd-above {
  padding: 0 0 4px;
}

/* Inhoud-sectie met padding */
.rd-above-inner {
  padding: 16px 20px 4px;
}

/* Tabbalk + zoekveld — sticky binnen .rd-scroll, plakt onder de topbar */
.rd-tabsbar {
  position: sticky;
  top: var(--rd-topbar-h);
  z-index: 5;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.rd-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rd-tabs::-webkit-scrollbar { display: none; }
.rd-tab {
  flex: 1;
  min-width: 0;
  padding: 12px 8px;
  min-height: 44px;
  border: none;
  background: none;
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.rd-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.rd-tab:hover:not(.active) { color: var(--text); }
.rd-search-wrap {
  padding: 8px 12px;
  border-top: 1px solid var(--border);
}
.rd-search {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .9rem;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.rd-search:focus { border-color: var(--primary); }
.rd-search::placeholder { color: var(--text-muted); }

/* Tab-inhoud panes */
.rd-panes { padding: 4px 20px 32px; }
.rd-pane { display: block; }
.rd-pane[hidden] { display: none; }

/* Lege staat binnen een pane */
.rd-empty {
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
}

/* Footer-sectie: "Misschien ook interessant" + "Stel een vraag"-knop
   Extra onderruimte zodat content niet achter de zwevende FAB verdwijnt. */
.rd-footer {
  padding: 8px 20px 88px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .rd-hero { height: min(300px, 48vw); }
}
@media (max-width: 700px) {
  .restaurant-drawer { width: min(720px, 100vw); }
  .rd-hero { height: min(280px, 52vw); }
  .rd-above-inner { padding: 14px 16px 4px; }
  .rd-panes { padding: 4px 16px 28px; }
  .rd-footer { padding: 8px 16px 88px; }
}
@media (max-width: 480px) {
  .restaurant-drawer { width: 100vw; }
  .rd-tab { font-size: .875rem; }
  .rd-hero { height: min(264px, 66vw); }
  .rd-hero-name { font-size: 1.2rem; }
  .rd-fab { bottom: 16px; right: 16px; }
}

.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-body--list {
  gap: 8px;
  padding: 18px 20px 16px;
}
.card-body--list .card-name {
  font-size: 1.1rem;
  line-height: 1.3;
  margin-top: 2px;
}
.card-body--list .card-description {
  color: var(--text);
  font-size: .875rem;
  line-height: 1.6;
  opacity: .75;
  margin-top: 2px;
}
.card-body--list .card-address {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.card-cta {
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.restaurant-card:hover .card-cta { text-decoration: underline; }

/* ─── Open/gesloten badge ─────────────────────────────────────────────────── */
.open-badge { display:inline-flex; align-items:center; gap:4px; padding:3px 10px; border-radius:999px; font-size:.875rem; font-weight:600; }
.open-badge--open   { background:#DCFCE7; color:#15803D; }
.open-badge--closed { background:#FEE2E2; color:#B91C1C; }
[data-theme="dark"] .open-badge--open   { background:rgba(74,222,128,.15); color:#4ADE80; }
[data-theme="dark"] .open-badge--closed { background:rgba(252,165,165,.15); color:#FCA5A5; }

/* Openingstijden — inklapbaar <details>: alleen vandaag, uitklap = hele week */
.hours-week { margin: 4px 0 2px; font-size: .875rem; }
.hours-week summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  cursor: pointer;
  color: var(--text);
  font-weight: 500;
  list-style: none;
}
.hours-week summary::-webkit-details-marker { display: none; }
.hours-week summary::after {
  content: '▾';
  margin-left: 2px;
  color: var(--text-muted);
  transition: transform .2s;
}
.hours-week[open] summary::after { transform: rotate(180deg); }
.hours-week table { border-collapse: collapse; margin: 2px 0 6px; }
.hours-week td { padding: 2px 10px 2px 0; color: var(--text-muted); white-space: nowrap; }
.hours-week td:first-child { width: 34px; font-weight: 500; }
.hours-week tr.hours-today td { color: var(--text); }
.hours-week tr.hours-today td:first-child::after { content: ' ◀'; font-size: .7rem; color: var(--primary); }

/* ─── Favorieten hart ─────────────────────────────────────────────────────── */
.fav-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 1.1rem;
  padding: 4px 6px; line-height: 1;
  transition: color .15s, transform .15s;
}
.fav-btn.active { color: #E11D48; }
.fav-btn:hover  { transform: scale(1.2); }

/* ─── Chat onboarding chips ──────────────────────────────────────────────── */
.chat-onboarding {
  padding: 14px 20px 10px;
}
.onboarding-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.onboarding-chip {
  padding: 8px 16px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--surface);
  font-size: .875rem; font-family: var(--font-sans);
  cursor: pointer; color: var(--text);
  transition: background .12s, border-color .12s, color .12s;
}
.onboarding-chip:hover {
  background: var(--bg); border-color: var(--primary); color: var(--primary);
}

/* ─── Populaire restaurantkaartjes ───────────────────────────────────────── */
.popular-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px; margin-bottom: 28px;
}
.popular-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px 16px;
  cursor: pointer; transition: box-shadow .15s, border-color .15s;
}
.popular-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.popular-card-name  { font-weight: 600; font-size: .875rem; color: var(--text); margin-bottom: 4px; }
.popular-card-meta  { font-size: .75rem; color: var(--text-muted); }

/* ─── Populaire restaurants: pill-chips ──────────────────────────────────── */
.popular-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.popular-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: box-shadow .15s, border-color .15s, background .15s;
  white-space: nowrap;
}

.popular-chip:hover {
  border-color: var(--primary);
  background: var(--accent-light);
  box-shadow: var(--shadow-md);
}

@media (max-width: 700px) {
  .popular-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .popular-chips::-webkit-scrollbar { display: none; }
  .popular-chip { flex-shrink: 0; }
}

/* ─── Restaurant-galerij ─────────────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 90vw), 1fr));
  gap: 20px;
  margin-bottom: 8px;
}

/* Mobiele carrousel */
@media (max-width: 700px) {
  .gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 24px;       /* gesnapte kaart 24px van de schermrand */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    /* Negatieve marge zodat kaarten tot de container-edge lopen */
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
    /* Subtiele rand-fade: suggereert dat de carrousel doorloopt */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 36px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 36px), transparent 100%);
  }
  .gallery::-webkit-scrollbar { display: none; }
}

/* Galerij-kaart — immersief: tekst over de foto */
.gallery-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Carrousel-modus: kaart ~76vw zodat de volgende duidelijk piept (scroll-affordance) */
@media (max-width: 700px) {
  .gallery-card {
    flex: 0 0 76vw;
    scroll-snap-align: start;
  }
}

@media (max-width: 480px) {
  .gallery-card { flex: 0 0 80vw; }
}

/* Foto vult de hele kaart — immersieve tegel, geen aparte footer */
.gallery-card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  flex-shrink: 0;
}

.gallery-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}

.gallery-card:hover .gallery-card-photo img { transform: scale(1.04); }

/* Badge-stapel linksboven op de foto: status + kenmerk-pills.
   right houdt de stapel weg van het favoriet-hartje rechtsboven. */
.gallery-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

/* Open/gesloten-status — pill linksboven op de foto */
.gallery-card-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 100px;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px) saturate(140%);
  box-shadow: var(--shadow-sm);
}
.gallery-card-status--open   { color: #1a7a3c; }
.gallery-card-status--closed { color: #6b7280; }
[data-theme="dark"] .gallery-card-status        { background: rgba(0,0,0,.6); }
[data-theme="dark"] .gallery-card-status--open  { color: #4ade80; }

/* Favoriet-hartje — ronde knop rechtsboven op de foto */
.gallery-card-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px) saturate(140%);
  box-shadow: var(--shadow-sm);
  color: #6b7280;
  cursor: pointer;
  transition: transform .15s, color .15s;
}
.gallery-card-fav:hover  { transform: scale(1.08); }
.gallery-card-fav.active { color: var(--primary); }
[data-theme="dark"] .gallery-card-fav        { background: rgba(0,0,0,.6); color: #cbd0d8; }
[data-theme="dark"] .gallery-card-fav.active { color: var(--primary); }

/* Frosted band met alle kaartinhoud over de onderkant van de foto */
.gallery-card-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 52px 14px 14px;
  color: #fff;
  /* Soepele scrim — donker genoeg onderin voor de tekst, maar laat de foto
     bovenin doorschemeren (geen zwart blok). De text-shadow houdt de naam
     leesbaar waar de scrim lichter wordt, ook op lichte foto's. */
  background: linear-gradient(to top,
    rgba(0,0,0,.92) 0%, rgba(0,0,0,.80) 32%, rgba(0,0,0,.54) 64%,
    rgba(0,0,0,.22) 86%, transparent 100%);
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
}

.gallery-card-name {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

.gallery-card-meta {
  margin-top: 2px;
  font-size: .875rem;
  color: rgba(255,255,255,.95);
}

.gallery-card-desc {
  margin-top: 4px;
  font-size: .875rem;
  line-height: 1.4;
  color: rgba(255,255,255,.92);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Kenmerk-pills — rij badges op de foto, onder de status */
.gallery-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Kenmerk-pill — lichte frosted badge, leesbaar op élke foto (zoals de status) */
.gallery-card-tag {
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
  color: #374151;
  background: rgba(255,255,255,.92);
  border-radius: 100px;
  padding: 4px 11px;
  white-space: nowrap;
  text-transform: capitalize;
  -webkit-backdrop-filter: blur(6px) saturate(140%);
  backdrop-filter: blur(6px) saturate(140%);
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .gallery-card-tag { background: rgba(0,0,0,.6); color: #cbd0d8; }

/* Reserveer-knop — gevulde accent-CTA op een eigen regel, volle breedte.
   Dit is de reserveer-zone van de kaart.
   PLACEHOLDER: de toekomstige "reserveer op tijdslot"-feature vervangt deze
   knop door een rij beschikbare tijdslot-chips op exact deze plek. */
.gallery-card-reserve {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 14px;
  border: none;
  border-radius: 100px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 600;
  padding: 10px 16px;
  min-height: 44px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  transition: background .15s;
}
.gallery-card-reserve:hover { background: var(--primary-hover); }
.gallery-card-reserve svg { flex-shrink: 0; }
/* Donkere modus: --primary is een lichte groen → donkere tekst voor contrast */
[data-theme="dark"] .gallery-card-reserve { color: #0F1117; }

/* Sentinel voor infinite scroll — bínnen #restaurantGallery als laatste kind */
#gallerySentinel {
  /* Desktop (grid): spant de volle breedte; genoeg hoogte zodat hij pas triggert
     als de gebruiker écht naar de onderkant van de galerij scrollt */
  grid-column: 1 / -1;
  height: 40px;
  width: 100%;
}

@media (max-width: 700px) {
  /* Mobiele carrousel (flex): smalle flex-item aan het einde van de horizontale rij.
     root:null + geen rootMargin → triggert pas als hij horizontaal in de viewport scrollt. */
  #gallerySentinel {
    flex: 0 0 20px;
    width: 20px;
    height: 100%;
    align-self: stretch;
  }
}

/* ─── Responsief: onboarding + populair ─────────────────────────────────── */
@media (max-width: 480px) {
  .popular-cards { grid-template-columns: 1fr 1fr; }
  .onboarding-chip { font-size: .8rem; padding: 7px 12px; }
}
.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; }

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


.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; }

/* ─── 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); }

/* ─── Foto-galerij strip (detail modal) ──────────────────────────────────── */
.detail-gallery-strip {
  display: flex;
  gap: 6px;
  padding: 8px 16px;
  overflow-x: auto;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.detail-gallery-strip::-webkit-scrollbar { display: none; }

.gallery-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 44px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  transition: border-color .15s;
  min-width: 44px;
  min-height: 44px;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--accent); }

@media (max-width: 700px) {
  .gallery-thumb { width: 48px; height: 44px; }
}

/* ─── E-mail verificatie hint (header) ───────────────────────────────────── */
.email-verify-hint {
  font-size: .875rem;
  font-weight: 600;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 100px;
  padding: 8px 16px;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.email-verify-hint:hover { background: #ffedd5; }
[data-theme="dark"] .email-verify-hint {
  color: #fcd34d;
  background: rgba(146,64,14,.35);
  border-color: rgba(217,119,6,.45);
}
@media (max-width: 480px) {
  .email-verify-hint { font-size: .75rem; padding: 4px 9px; }
}

/* ─── Onboarding wizard ─────────────────────────────────────────────────────── */

/* De wizard hergebruikt .modal-overlay + .modal-box; onderstaande klassen
   verfijnen de lay-out specifiek voor de wizard. */

.onboarding-wizard {
  max-width: min(540px, 92vw);
  padding: 36px 32px 28px;
  text-align: center;
}

/* Voortgangsindicator */
.ob-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.ob-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: background .25s, transform .2s;
}

.ob-dot--active {
  background: var(--primary);
  transform: scale(1.25);
}

/* Vraagtitel */
.ob-question {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.35;
}

/* Kaartenrij: naast elkaar op desktop */
.ob-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

/* Keuzekaart */
.ob-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  text-align: center;
  padding: 0 0 16px;
  /* Tap target: het volledige kaartoppervlak is klikbaar */
  min-height: 44px;
}

.ob-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.ob-card--selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(1,93,44,.18);
}

/* Kaartfoto — geen vaste hoogte, relatieve fallback */
.ob-card-photo {
  width: 100%;
  height: min(180px, 24vh);
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

/* Emoji-fallback (als foto ontbreekt) */
.ob-card-photo-fallback {
  width: 100%;
  height: min(180px, 24vh);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.ob-card-label {
  font-size: .9375rem;  /* 15px — boven minimum 14px */
  font-weight: 600;
  color: var(--text);
  margin-top: 14px;
  padding: 0 12px;
  line-height: 1.3;
}

/* Inline foutmelding bij API-fout */
.ob-error {
  font-size: .875rem;    /* 14px — minimum op mobiel */
  color: #B91C1C;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 8px;
  text-align: center;
  line-height: 1.45;
}
[data-theme="dark"] .ob-error {
  background: #2D1B1B;
  border-color: #7F1D1D;
  color: #FCA5A5;
}
.ob-error[hidden] { display: none; }

/* Overslaan-link */
.ob-skip-wrap {
  margin-top: 4px;
}

.ob-skip {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: .875rem;  /* 14px — minimum op mobiel */
  font-family: var(--font-sans);
  cursor: pointer;
  padding: 12px 24px;  /* tap target ≥ 44px via min-height */
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s;
}

.ob-skip:hover { color: var(--text); }

/* ── Responsive ── */

/* ≤ 700px — kaarten verticaal stapelen */
@media (max-width: 700px) {
  .ob-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ob-card-photo,
  .ob-card-photo-fallback {
    height: min(140px, 20vh);
  }

  .onboarding-wizard {
    padding: 28px 20px 22px;
  }

  .ob-question {
    font-size: 1.125rem;
  }
}

/* ≤ 480px — extra compacte lay-out */
@media (max-width: 480px) {
  .onboarding-wizard {
    padding: 22px 16px 18px;
    border-radius: var(--radius-md);
  }

  .ob-question {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  .ob-card-photo,
  .ob-card-photo-fallback {
    height: min(120px, 18vh);
  }

  .ob-card-label {
    font-size: .875rem;  /* 14px — nooit kleiner */
    margin-top: 10px;
  }
}

/* ─── Toast notificaties ────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-size: .9rem;
  font-family: var(--font-sans);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity .25s, transform .25s;
  z-index: 600;
  max-width: min(400px, 90vw);
  text-align: center;
  pointer-events: none;
}
.toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--success { border-color: var(--primary); color: var(--primary); }
.toast--error   { border-color: #B91C1C; color: #B91C1C; }
