/* -----------------------------
   BASISSTYLING EN TRANSITIONS
------------------------------ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: light dark;
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-elevated: rgba(255, 255, 255, 0.78);
  --text: #2b2f33;
  --muted: #68707a;
  --accent: #2f7a5f;
  --accent-2: #3aa176;
  --accent-soft: #e8f5ef;
  --highlight: #f7e08a;
  --border: #e6e6e6;
  --bg-grad-start: #fafbf9;
  --bg-grad-end: #f3f5f1;
  --sticky-surface: rgba(246, 247, 244, 0.92);
  --sticky-border: rgba(0, 0, 0, 0.06);
  --placeholder: #9aa1a7;
  --focus-ring: rgba(47, 122, 95, 0.15);
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-lift: 0 10px 24px rgba(0, 0, 0, 0.12);
  --bubble-start: #2f7a5f;
  --bubble-end: #328260;
  --bubble-hover-start: #2c765a;
  --bubble-hover-end: #328260;
  --bubble-selected-start: #fff4b0;
  --bubble-selected-end: #ffe27b;
  --bubble-selected-text: #1d1d1d;
  --bubble-selected-shadow: 0 8px 18px rgba(255, 215, 74, 0.35);
  --bubble-glow-color: rgba(255, 255, 255, 0.28);
  --bubble-shimmer-color: rgba(255, 255, 255, 0.35);
  --guide-card-bg: rgba(255, 255, 255, 0.75);
  --guide-card-border: rgba(0, 0, 0, 0.08);
  --guide-chip-bg: rgba(47, 122, 95, 0.08);
  --guide-chip-border: rgba(47, 122, 95, 0.22);
  --overlay-combo-start: #2f7a5f;
  --overlay-combo-end: #328260;
  --overlay-combo-border: rgba(47, 122, 95, 0.5);
  --overlay-combo-text: #ffffff;
  --overlay-combo-hover-start: #2c765a;
  --overlay-combo-hover-end: #328260;
  --overlay-backdrop: rgba(17, 22, 20, 0.55);
  --overlay-panel-bg: #ffffff;
  --overlay-panel-border: rgba(0, 0, 0, 0.12);
  --overlay-card-bg: #f7faf8;
  --overlay-card-border: rgba(43, 47, 51, 0.1);
  --overlay-title: #1f252b;
  --overlay-muted: #5f6874;
  --panel-glow: radial-gradient(circle at top, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0) 58%);
}

body {
  font-family: var(--ui-font);
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  background: linear-gradient(180deg, var(--bg-grad-start) 0%, var(--bg-grad-end) 100%);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  overscroll-behavior-y: none;
  opacity: 1;
}

body.is-standalone .page-content {
  padding-top: calc(18px + env(safe-area-inset-top));
}

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

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

/* HEADER */
#offlineFallback.visually-hidden { display: none; }

.pwa-panel {
  position: fixed; inset: 0; z-index: 1400; display: none;
  align-items: center; justify-content: center;
  background: var(--overlay-backdrop);
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.pwa-panel.is-open { display: flex; }
.pwa-sheet {
  width: min(600px, 100%); max-height: 100%; overflow: auto; overscroll-behavior: contain;
  background: var(--overlay-panel-bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-soft);
}
.pwa-head {
  display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 1;
  padding: 16px; border-bottom: 1px solid var(--border); background: var(--overlay-panel-bg);
}
.pwa-content { padding: 0 18px 18px; }
.pwa-section { padding: 18px 0; border-bottom: 1px solid var(--border); }
.pwa-section p { margin: 8px 0; }
.pwa-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pwa-actions .kitchens-trigger { white-space: normal; min-height: 44px; }
.pwa-confirm { padding: 12px; margin-top: 12px; border: 1px solid var(--accent); border-radius: 16px; }
.pwa-notice {
  position: fixed; bottom: calc(16px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  z-index: 1500; max-width: calc(100% - 32px); width: max-content;
  background: var(--text); color: var(--surface); border-radius: 16px; padding: 12px 16px;
  opacity: 0; pointer-events: none;
}
.pwa-notice.is-visible { opacity: 1; }
@supports (height: 100dvh) {
  .pwa-panel, .cuisine-overlay, .depth-overlay { height: 100dvh; bottom: auto; }
}

.header-container {
  position: relative;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 18px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.8) 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 30px;
  box-shadow: 0 22px 48px rgba(16, 24, 20, 0.08);
  isolation: isolate;
}

.header-container::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 50%;
  width: min(420px, 100%);
  height: 220px;
  transform: translateX(-50%);
  background: var(--panel-glow);
  pointer-events: none;
  z-index: -1;
}

.site-title {
  font-size: var(--type-title-size);
  color: var(--accent);
  margin-bottom: 4px;
  font-family: var(--ui-font);
  font-weight: var(--type-title-weight);
  letter-spacing: -0.02em;
}

.logo-container {
  margin: 10px auto 12px;
  width: clamp(56px, 9vw, 66px);
}

.logo-image {
  width: 100%;
  height: auto;
  display: block;
}

.subtitle {
  font-family: var(--ui-font);
  font-size: var(--type-subtitle-size);
  font-weight: var(--type-subtitle-weight);
  color: var(--muted);
  line-height: 1.45;
  max-width: 560px;
  margin: 0 auto 12px auto;
}

.cuisine-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 auto 10px;
  max-width: 760px;
}

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

.cuisine-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: clamp(0.9rem, 1.08vw, 0.95rem);
  font-family: var(--ui-font);
  font-weight: var(--type-subtitle-weight);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  touch-action: manipulation;
  user-select: none;
}

.cuisine-chip.is-active {
  color: var(--accent);
  border-color: rgba(47,122,95,0.4);
  background: var(--accent-soft);
  box-shadow: 0 2px 10px rgba(47,122,95,0.12);
}

@media (hover: hover) and (pointer: fine) {
  .cuisine-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(47,122,95,0.35);
    color: var(--accent);
  }
}

.search-nav-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  width: 100%;
  max-width: none;
  padding: 12px;
  position: static;
  top: auto;
  z-index: auto;
  background: rgba(247, 249, 246, 0.9);
  backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 22px;
  transition: backdrop-filter 0.12s ease;
}

.search-container {
  position: relative;
  width: min(100%, 560px);
  flex: 0 1 560px;
  max-width: 560px;
  margin: 0;
}

.kitchens-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.78);
  color: var(--text);
  border-radius: 14px;
  min-height: 42px;
  padding: 8px 13px;
  font-size: clamp(0.9rem, 1.08vw, 0.95rem);
  font-family: var(--ui-font);
  font-weight: var(--type-subtitle-weight);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  transition: transform 0.08s ease, box-shadow 0.12s ease, border-color 0.12s ease, background-color 0.12s ease, color 0.12s ease;
  text-decoration: none;
}

.mobile-menu-toggle,
.mobile-quick-menu {
  display: none;
}

.mobile-menu-toggle {
  min-width: 42px;
  min-height: 40px;
  padding: 0;
}

.mobile-menu-icon,
.mobile-menu-icon::before,
.mobile-menu-icon::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.mobile-menu-icon {
  position: relative;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.mobile-menu-icon::before {
  top: -5px;
}

.mobile-menu-icon::after {
  top: 5px;
}

.mobile-menu-toggle[aria-expanded="true"] {
  background: var(--accent-soft);
  border-color: rgba(47,122,95,0.4);
  color: var(--accent);
}

.mobile-quick-menu {
  width: min(74vw, 270px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px;
  background: var(--surface-elevated);
  box-shadow: var(--shadow-soft);
  gap: 8px;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.mobile-quick-menu.is-open {
  display: flex;
  flex-direction: column;
}

.mobile-quick-item {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.72);
  color: var(--text);
  border-radius: 10px;
  min-height: 40px;
  padding: 8px 10px;
  text-align: left;
  font-family: var(--ui-font);
  font-size: var(--type-body-size);
  font-weight: var(--type-subtitle-weight);
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .kitchens-trigger:hover {
    transform: translateY(-1px);
    border-color: rgba(47,122,95,0.35);
    box-shadow: var(--shadow-soft);
  }
}

/* Advertentie-containers */
.top-ad-container {
  width: 100%;
  max-width: 1200px;
  margin: 10px auto;
  text-align: center;
}
.in-content-ad {
  width: 100%;
  margin: 20px auto;
  text-align: center;
  background: var(--surface);
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-radius: 4px;
}

.top-ad-container:empty,
.in-content-ad:empty {
  display: none;
}

/* SEARCH INPUT */
.search-input {
  width: 100%;
  max-width: none;
  height: 50px;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  font-family: var(--ui-font);
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  background: rgba(255,255,255,0.92);
  transition: border-color 0.12s ease, box-shadow 0.12s ease, height 0.12s ease, padding 0.12s ease, border-radius 0.12s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.search-input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 4px var(--focus-ring);
}
.search-input::placeholder {
  color: var(--placeholder);
}

.network-status {
  max-width: 560px;
  margin: 8px auto 0;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: var(--type-body-size);
  font-family: var(--ui-font);
  font-weight: var(--type-subtitle-weight);
  text-align: center;
}

.network-status.is-offline {
  background: #fff7e6;
  border-color: #f2d7a6;
  color: #8a5a00;
}

.network-status.is-online {
  background: #eaf7ef;
  border-color: #b9dfc7;
  color: #1f6b43;
}

.suggestion-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  padding: 6px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 40;
}
.suggestion-list:empty {
  display: none;
}
.suggestion-list li {
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: var(--type-body-size);
  font-family: var(--ui-font);
  font-weight: var(--type-body-weight);
  text-align: left;
}
.suggestion-list li:hover,
.suggestion-list li[aria-selected="true"] {
  background: var(--accent-soft);
}

/* LAYOUT: PAGE CONTENT */
.page-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(12px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
}
.main-content {
  background: transparent;
  border-radius: 8px;
  padding: 8px 0 10px;
}

/* SECTIONS */
.section {
  margin: 8px auto 0;
  max-width: 1100px;
  padding: 0 4px;
}
.section + .section {
  margin-top: 16px;
}

.offline-fallback {
  margin-top: 6px;
}

.offline-fallback-card {
  border: 1px solid var(--guide-card-border);
  border-radius: 14px;
  background: var(--guide-card-bg);
  padding: 14px;
  text-align: center;
}

.offline-fallback-title {
  color: var(--text);
  font-size: var(--type-subtitle-size);
  font-family: var(--ui-font);
  font-weight: var(--type-title-weight);
}

.offline-fallback-text {
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--type-body-size);
  line-height: 1.55;
  font-family: var(--ui-font);
  font-weight: var(--type-body-weight);
}

.offline-fallback-retry {
  margin-top: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  min-height: 42px;
  padding: 8px 14px;
  font-size: var(--type-body-size);
  font-family: var(--ui-font);
  font-weight: var(--type-subtitle-weight);
  cursor: pointer;
}

body.data-unavailable .reset-container,
body.data-unavailable section[aria-labelledby="selectedTitle"],
body.data-unavailable section[aria-labelledby="resultsTitle"],
body.data-unavailable .in-content-ad {
  display: none;
}
.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 6px;
}
.section-title {
  font-size: var(--type-subtitle-size);
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--muted);
  font-family: var(--ui-font);
  font-weight: var(--type-subtitle-weight);
}
.section-count {
  font-size: var(--type-body-size);
  font-family: var(--ui-font);
  font-weight: var(--type-body-weight);
  color: var(--muted);
}

body.overlay-open {
  overflow: hidden;
}

.cuisine-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-backdrop);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 20px;
}

.cuisine-overlay.is-open {
  display: flex;
}

.cuisine-overlay-panel {
  width: min(960px, 100%);
  max-height: min(88vh, 860px);
  overflow: auto;
  position: relative;
  isolation: isolate;
  border-radius: 28px;
  border: 1px solid var(--overlay-panel-border);
  background: color-mix(in srgb, var(--overlay-panel-bg) 94%, white 6%);
  box-shadow: 0 28px 60px rgba(0,0,0,0.2);
  padding: 20px;
  font-family: var(--overlay-ui-font);
  -webkit-font-smoothing: antialiased;
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
}

.cuisine-overlay-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.cuisine-overlay-title {
  margin: 0;
  font-family: var(--overlay-ui-font);
  font-size: var(--type-subtitle-size);
  font-weight: var(--type-title-weight);
  color: var(--overlay-title);
  letter-spacing: 0.01em;
}

.overlay-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-height: 40px;
  border: 1px solid var(--border);
  background: var(--overlay-card-bg);
  color: var(--overlay-muted);
  border-radius: 12px;
  padding: 0;
  font-family: var(--ui-font);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.cuisine-overlay-close {
  border: 1px solid var(--border);
  background: var(--overlay-card-bg);
  color: var(--overlay-muted);
  border-radius: 12px;
  min-height: 44px;
  padding: 8px 12px;
  font-family: var(--overlay-ui-font);
  font-size: var(--type-subtitle-size);
  font-weight: var(--type-subtitle-weight);
  cursor: pointer;
}

.cuisine-overlay-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.cuisine-overlay-bubble {
  width: clamp(120px, 26vw, 180px);
  min-height: 58px;
  border-radius: 20px;
  font-size: var(--type-subtitle-size);
  font-family: var(--overlay-ui-font);
  font-weight: var(--type-subtitle-weight);
  line-height: 1.2;
  letter-spacing: 0.01em;
  box-shadow: 0 5px 14px rgba(0,0,0,0.14);
}

.cuisine-overlay-bubble.is-active {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.65), 0 10px 20px rgba(0,0,0,0.22);
  transform: translateY(-1px);
}

.cuisine-overlay-info {
  border: 1px solid var(--overlay-card-border);
  background: color-mix(in srgb, var(--overlay-card-bg) 92%, white 8%);
  border-radius: 20px;
  padding: 16px;
}

.cuisine-overlay-info-title {
  margin: 0;
  font-family: var(--overlay-ui-font);
  font-size: var(--type-subtitle-size);
  font-weight: var(--type-title-weight);
  color: var(--overlay-title);
  letter-spacing: 0.01em;
}

.cuisine-overlay-info-text {
  margin: 6px 0 0;
  color: var(--overlay-title);
  font-size: var(--type-body-size);
  line-height: 1.55;
  font-family: var(--overlay-ui-font);
  font-weight: var(--type-body-weight);
  letter-spacing: 0.01em;
}

.cuisine-overlay-info-subtitle {
  margin: 12px 0 0;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: var(--type-subtitle-size);
  color: var(--overlay-title);
  font-family: var(--overlay-ui-font);
  font-weight: var(--type-title-weight);
}

.cuisine-overlay-info-list {
  margin: 6px 0 0;
  color: var(--overlay-title);
  font-size: var(--type-body-size);
  font-family: var(--overlay-ui-font);
  font-weight: var(--type-body-weight);
  letter-spacing: 0.01em;
  line-height: 1.6;
}

.cuisine-overlay-info-combos {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cuisine-overlay-info-combos li {
  margin: 0;
  padding: 0;
  color: var(--overlay-title);
  font-family: var(--overlay-ui-font);
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
}

.cuisine-overlay-combo-button {
  border: 1px solid var(--overlay-combo-border);
  background: linear-gradient(135deg, var(--overlay-combo-start), var(--overlay-combo-end));
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--overlay-combo-text);
  font-size: var(--type-body-size);
  font-family: var(--overlay-ui-font);
  font-weight: var(--type-body-weight);
  letter-spacing: 0.01em;
  line-height: 1.5;
  cursor: pointer;
  transition: transform 0.08s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

@media (hover: hover) and (pointer: fine) {
  .cuisine-overlay-combo-button:hover {
    transform: translateY(-1px);
    border-color: var(--overlay-combo-border);
    background: linear-gradient(135deg, var(--overlay-combo-hover-start), var(--overlay-combo-hover-end));
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  }
}

.cuisine-overlay-combo-button:focus-visible {
  outline: 2px solid rgba(47,122,95,0.55);
  outline-offset: 2px;
}

.depth-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-backdrop);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1250;
  padding: 20px;
}

.depth-overlay.is-open {
  display: flex;
}

.depth-overlay-panel {
  width: min(960px, 100%);
  max-height: min(88vh, 860px);
  overflow: auto;
  border-radius: 28px;
  border: 1px solid var(--overlay-panel-border);
  background: color-mix(in srgb, var(--overlay-panel-bg) 94%, white 6%);
  box-shadow: 0 28px 60px rgba(0,0,0,0.2);
  padding: 0;
  font-family: var(--ui-font);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
}

.depth-overlay-sticky {
  position: sticky;
  top: 0;
  z-index: 8;
  margin: 0;
  padding: 18px 18px 12px;
  background: var(--overlay-panel-bg);
  border-bottom: 1px solid var(--overlay-panel-border);
}

.depth-overlay-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.depth-overlay-title {
  margin: 0;
  font-family: var(--ui-font);
  font-size: var(--type-subtitle-size);
  font-weight: var(--type-title-weight);
  color: var(--overlay-title);
  letter-spacing: 0.01em;
}

.depth-overlay-close {
  border: 1px solid var(--border);
  background: var(--overlay-card-bg);
  color: var(--overlay-muted);
  border-radius: 12px;
  min-height: 44px;
  padding: 8px 12px;
  font-family: var(--ui-font);
  font-size: var(--type-subtitle-size);
  font-weight: var(--type-subtitle-weight);
  cursor: pointer;
}

.cuisine-overlay-close,
.depth-overlay-close {
  display: none;
}

.depth-overlay-intro {
  margin-top: 8px;
  color: var(--overlay-title);
  font-size: var(--type-body-size);
  line-height: 1.55;
  font-family: var(--ui-font);
  font-weight: var(--type-body-weight);
}

.depth-overlay-nav {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.depth-overlay-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid var(--overlay-combo-border);
  background: var(--overlay-card-bg);
  color: var(--overlay-title);
  font-family: var(--ui-font);
  font-size: var(--type-body-size);
  font-weight: var(--type-subtitle-weight);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.depth-overlay-chip.is-active {
  background: linear-gradient(135deg, var(--overlay-combo-start), var(--overlay-combo-end));
  border-color: var(--overlay-combo-border);
  color: var(--overlay-combo-text);
  box-shadow: 0 6px 14px rgba(47,122,95,0.28), inset 0 1px 0 rgba(255,255,255,0.14);
  font-weight: var(--type-title-weight);
}

.depth-overlay-section {
  display: none;
  margin-top: 0;
  padding: 14px 18px 18px;
}

.depth-overlay-section.is-active {
  display: block;
}

.depth-overlay-card {
  border: 1px solid var(--overlay-card-border);
  background: color-mix(in srgb, var(--overlay-card-bg) 92%, white 8%);
  border-radius: 20px;
  padding: 16px;
}

.depth-overlay-card + .depth-overlay-card {
  margin-top: 10px;
}

.depth-overlay-card-title {
  margin: 0;
  color: var(--overlay-title);
  font-family: var(--ui-font);
  font-size: var(--type-subtitle-size);
  font-weight: var(--type-title-weight);
}

.depth-overlay-card-text {
  margin: 6px 0 0;
  color: var(--overlay-title);
  font-family: var(--ui-font);
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  line-height: 1.55;
}

.depth-overlay-card-subtitle {
  margin: 10px 0 0;
  color: var(--overlay-title);
  font-family: var(--ui-font);
  font-size: var(--type-subtitle-size);
  font-weight: var(--type-title-weight);
  letter-spacing: 0.01em;
}

.depth-overlay-list {
  margin: 6px 0 0;
  padding-left: 18px;
  list-style: disc;
}

.depth-overlay-list li {
  margin: 6px 0 0;
  color: var(--overlay-title);
  font-family: var(--ui-font);
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  line-height: 1.55;
}

.depth-overlay-source-title {
  font-weight: var(--type-subtitle-weight);
}

.depth-overlay-source-link {
  margin-left: 8px;
  color: var(--accent);
  font-family: var(--ui-font);
  font-size: var(--type-body-size);
  font-weight: var(--type-subtitle-weight);
  text-decoration: underline;
}

/* RESET-KNOP */
.reset-container {
  text-align: center;
  margin-bottom: 20px;
}
#errorMessage {
  max-width: 520px;
  margin: 6px auto 0;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: center;
  font-size: var(--type-body-size);
  font-family: var(--ui-font);
  font-weight: var(--type-body-weight);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  background: #fff1f1;
  color: #b91c1c;
  border: 1px solid #f5c2c2;
}
#errorMessage.show {
  opacity: 1;
  transform: translateY(0);
}
#resetButton {
  display: none;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  color: #fff;
  font-size: var(--type-subtitle-size);
  font-family: var(--ui-font);
  font-weight: var(--type-subtitle-weight);
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background 0.12s ease, transform 0.08s ease, box-shadow 0.12s ease;
  position: relative;
  z-index: 1000;
  touch-action: manipulation;
  user-select: none;
}
#resetButton.show {
  display: inline-block;
}
@media (hover: hover) and (pointer: fine) {
#resetButton:hover {
  background: #2a6d55;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}
}
#resetButton:focus {
  outline: 2px solid rgba(47,122,95,0.4);
  outline-offset: 4px;
}

/* BUBBLES */
.ingredient-bubble {
  position: relative;
  width: clamp(116px, 36vw, 166px);
  min-height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--bubble-start), var(--bubble-end));
  border: 1px solid rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  padding: 10px 12px;
  transition: transform 0.08s ease, box-shadow 0.12s ease, background 0.12s ease, opacity 0.12s;
  box-shadow: 0 10px 22px rgba(22, 32, 26, 0.12), inset 0 1px 0 rgba(255,255,255,0.14);
  font-weight: var(--type-subtitle-weight);
  color: #fff;
  font-family: var(--ui-font);
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  background-clip: padding-box;
  touch-action: manipulation;
  user-select: none;
}


.selected-container,
.alphabetical-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 12px auto 0;
  max-width: 1100px;
  padding: 0 4px;
}

.selected-section-title,
.selected-section-help {
  display: none;
  width: 100%;
  text-align: center;
}

.selected-section-title.is-visible {
  display: block;
  margin: 18px 0 2px;
  color: var(--text);
  font-family: var(--ui-font);
  font-size: var(--type-subtitle-size);
  font-weight: var(--type-subtitle-weight);
}

.selected-section-help.is-visible {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
}

.recommendation-hint {
  margin: 0 auto 10px;
  color: var(--muted);
  font-family: var(--ui-font);
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  text-align: center;
}

.alphabetical-container.is-flat,
.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  align-items: stretch;
  gap: 12px;
}

.alphabetical-container.is-flat .ingredient-bubble,
.ingredient-grid .ingredient-bubble {
  width: 100%;
}


.alphabet-section {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
}
.alphabet-letter {
  font-size: var(--type-subtitle-size);
  font-weight: var(--type-subtitle-weight);
  margin: 10px 0;
  color: var(--accent);
  letter-spacing: 0.01em;
  font-family: var(--ui-font);
}
.ingredient-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  animation: groupBubbles 0.18s ease-out;
}
@keyframes groupBubbles {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .ingredient-bubble:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
    background: linear-gradient(135deg, var(--bubble-hover-start), var(--bubble-hover-end));
  }
}
.ingredient-bubble:focus-visible {
  outline: 2px solid rgba(47,122,95,0.6);
  outline-offset: 3px;
}
.ingredient-bubble.pulse {
  animation: pulse 110ms ease-out;
}
@keyframes pulse {
  0% { transform: scale(0.98); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* Geselecteerde (gele) bubbels */
.ingredient-bubble.added {
  background: linear-gradient(135deg, var(--bubble-selected-start), var(--bubble-selected-end));
  box-shadow: var(--bubble-selected-shadow);
  color: var(--bubble-selected-text);
  animation: popIn 0.12s;
  will-change: transform;
}
@keyframes popIn {
  0% {
    transform: scale(0.75);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Glinsterend effect: geen infinite */
@keyframes glow {
  0% {
    transform: scale(0.7);
    opacity: 0.25;
  }
  100% {
    transform: scale(1.05);
    opacity: 0.45;
  }
}
.ingredient-bubble.added::before {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 200%;
  background: radial-gradient(var(--bubble-glow-color), transparent 70%);
  pointer-events: none;
  animation: glow 0.4s ease-out forwards;
  will-change: transform;
}

/* Shimmer-effect: geen infinite */
@keyframes shimmer {
  0% {
    left: -120%;
    opacity: 0;
  }
  30% {
    opacity: 0.4;
  }
  100% {
    left: 120%;
    opacity: 0;
  }
}
.ingredient-bubble.added::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 0%,
    var(--bubble-shimmer-color) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  animation: shimmer 0.5s ease-out forwards;
  will-change: left;
}

/* Geen resultaten */
.no-results {
  text-align: center;
  color: var(--muted);
  font-size: var(--type-body-size);
  font-family: var(--ui-font);
  font-weight: var(--type-body-weight);
  margin-top: 20px;
  font-style: italic;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 18px 10px 6px;
}
.empty-title {
  font-size: var(--type-subtitle-size);
  color: var(--text);
  font-family: var(--ui-font);
  font-weight: var(--type-subtitle-weight);
  margin-bottom: 4px;
}
.empty-subtitle {
  font-size: var(--type-body-size);
  font-family: var(--ui-font);
  font-weight: var(--type-body-weight);
  margin-bottom: 12px;
}

.anchor-hint {
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: var(--type-body-size);
  font-family: var(--ui-font);
  font-weight: var(--type-body-weight);
  margin-top: 2px;
  margin-bottom: 8px;
}

.anchor-section {
  width: 100%;
  margin-top: 14px;
  border-top: 1px dashed rgba(104, 112, 122, 0.3);
  padding-top: 12px;
}

.anchor-title {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: var(--type-subtitle-size);
  color: var(--muted);
  text-align: center;
  margin-bottom: 4px;
  font-family: var(--ui-font);
  font-weight: var(--type-subtitle-weight);
}

.anchor-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: var(--type-body-size);
  font-family: var(--ui-font);
  font-weight: var(--type-body-weight);
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .cuisine-chip,
  .kitchens-trigger,
  .mobile-quick-item,
  .depth-overlay-chip,
  .offline-fallback-retry {
    min-height: 44px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111514;
    --surface: #161d1a;
    --surface-elevated: rgba(22, 29, 26, 0.78);
    --text: #e7ece9;
    --muted: #a7b1ab;
    --accent: #58b488;
    --accent-2: #3d9f75;
    --accent-soft: #1d2f28;
    --highlight: #f1d56c;
    --border: #2b3632;
    --bg-grad-start: #121815;
    --bg-grad-end: #0b0f0d;
    --sticky-surface: rgba(17, 23, 20, 0.9);
    --sticky-border: rgba(255, 255, 255, 0.08);
    --placeholder: #8d9791;
    --focus-ring: rgba(88, 180, 136, 0.24);
    --shadow-soft: 0 8px 18px rgba(0, 0, 0, 0.34);
    --shadow-lift: 0 12px 28px rgba(0, 0, 0, 0.42);
    --bubble-start: #2a6b53;
    --bubble-end: #245a46;
    --bubble-hover-start: #32745b;
    --bubble-hover-end: #2b634f;
    --bubble-selected-start: #fff4b0;
    --bubble-selected-end: #ffe27b;
    --bubble-selected-text: #1d1d1d;
    --bubble-selected-shadow: 0 8px 18px rgba(255, 215, 74, 0.35);
    --bubble-glow-color: rgba(230, 216, 172, 0.12);
    --bubble-shimmer-color: rgba(250, 238, 198, 0.18);
    --guide-card-bg: rgba(22, 29, 26, 0.88);
    --guide-card-border: rgba(255, 255, 255, 0.09);
    --guide-chip-bg: rgba(88, 180, 136, 0.12);
    --guide-chip-border: rgba(88, 180, 136, 0.24);
    --overlay-combo-start: #2a6b53;
    --overlay-combo-end: #245a46;
    --overlay-combo-border: rgba(108, 194, 151, 0.52);
    --overlay-combo-text: #f2faf5;
    --overlay-combo-hover-start: #32745b;
    --overlay-combo-hover-end: #2b634f;
    --overlay-backdrop: rgba(3, 6, 5, 0.76);
    --overlay-panel-bg: #141b18;
    --overlay-panel-border: rgba(255, 255, 255, 0.14);
    --overlay-card-bg: #1a2320;
    --overlay-card-border: rgba(255, 255, 255, 0.16);
    --overlay-title: #edf2ef;
    --overlay-muted: #b6c0ba;
    --panel-glow: radial-gradient(circle at top, rgba(79, 130, 105, 0.16), rgba(79, 130, 105, 0) 58%);
  }

  .header-container {
    background: linear-gradient(180deg, rgba(22,29,26,0.92) 0%, rgba(18,24,21,0.84) 100%);
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 26px 56px rgba(0, 0, 0, 0.34);
  }
  #resetButton { background: #2f7a5f; }

  .search-nav-row,
  .kitchens-trigger,
  .mobile-quick-menu {
    background: rgba(23, 31, 27, 0.88);
    border-color: rgba(255,255,255,0.08);
  }

  .search-input {
    background: rgba(23,31,27,0.92);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  }

  #errorMessage {
    background: rgba(120, 36, 36, 0.28);
    border-color: rgba(245, 194, 194, 0.28);
    color: #ffd6d6;
  }

  .network-status.is-offline {
    background: rgba(138, 90, 0, 0.22);
    border-color: rgba(242, 215, 166, 0.4);
    color: #f5dca4;
  }

  .network-status.is-online {
    background: rgba(31, 107, 67, 0.22);
    border-color: rgba(154, 215, 178, 0.35);
    color: #c6f0d9;
  }
}

/* RESPONSIVE */
@media (max-width: 480px) {
  .page-content {
    padding-bottom: calc(94px + env(safe-area-inset-bottom));
  }
  .header-container {
    padding: 16px 12px 12px;
    border-radius: 26px;
  }
  .site-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }
  .subtitle {
    display: none;
  }
  .section-head {
    align-items: center;
    text-align: center;
  }
  .section-title {
    font-size: var(--type-subtitle-size);
    letter-spacing: 0.01em;
  }
  .section-count {
    font-size: var(--type-body-size);
  }
  .search-nav-row {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
  }
  .search-container {
    order: 1;
    flex: 1 0 100%;
    width: min(100%, 560px);
    max-width: 560px;
  }
  #openCuisineOverlayButton {
    display: none;
  }
  #openDepthOverlayButton {
    display: none;
  }
  .settings-desktop-trigger { display: none; }
  .mobile-menu-toggle {
    display: inline-flex;
    position: fixed;
    top: calc(env(safe-area-inset-top) + 10px);
    left: calc(env(safe-area-inset-left) + 10px);
    z-index: 1300;
    width: 44px;
    min-height: 44px;
    padding: 0;
  }
  .mobile-quick-menu {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 58px);
    left: calc(env(safe-area-inset-left) + 10px);
    z-index: 1299;
  }
  .cuisine-toolbar {
    gap: 6px;
    margin-bottom: 8px;
  }
  .mobile-cuisine-toggle {
    display: inline-flex;
    margin: 0 auto 8px;
    min-height: 44px;
    padding: 7px 12px;
    font-size: 0.92rem;
  }
  .cuisine-chip {
    font-size: 0.92rem;
    padding: 7px 10px;
  }
  .kitchens-trigger {
    min-height: 44px;
    padding: 7px 11px;
    font-size: 0.92rem;
  }
  .header-container {
    padding: 10px;
  }
  .search-input {
    max-width: 100%;
  }
  .suggestion-list {
    max-width: 100%;
  }
  .main-content {
    padding: 4px 0 8px;
  }
  .reset-container {
    margin-bottom: 10px;
  }
  .selected-container,
  .alphabetical-container {
    margin-top: 10px;
    gap: 10px;
  }
  .ingredient-bubble {
    width: clamp(108px, 41vw, 146px);
    min-height: 60px;
    font-size: var(--type-subtitle-size);
  }
  .alphabetical-container.is-flat,
  .ingredient-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .anchor-subtitle {
    font-size: var(--type-body-size);
    padding: 0 8px;
  }
  .cuisine-overlay-panel {
    padding: 14px;
    max-height: 100%;
  }
  .cuisine-overlay-bubbles {
    gap: 8px;
  }
  .cuisine-overlay-bubble {
    width: calc(50% - 4px);
    min-height: 52px;
    font-size: var(--type-subtitle-size);
  }
  .depth-overlay-panel {
    padding: 0;
    max-height: 100%;
  }
  .depth-overlay-sticky {
    padding: 14px 14px 10px;
  }
  .depth-overlay-section {
    padding: 12px 14px 14px;
  }
  .depth-overlay-nav {
    gap: 8px;
  }
  .depth-overlay-chip {
    width: 100%;
  }

  .cuisine-chip,
  .kitchens-trigger,
  .mobile-menu-toggle,
  .mobile-quick-item,
  .depth-overlay-chip,
  .cuisine-overlay-combo-button,
  #resetButton,
  .offline-fallback-retry {
    min-height: 44px;
  }

}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
