/* ══════════════════════════════════════
   REVALIDATIE FINDER — Stylesheet
   Healthcare kleurenpalet: Blauw + Groen
   ══════════════════════════════════════ */

:root {
  --blue-900: #0d2d4a;
  --blue-800: #1a4b7a;
  --blue-700: #1e6f9f;
  --blue-600: #2185c5;
  --blue-500: #3b9fd4;
  --blue-100: #dbeeff;
  --blue-50:  #f0f7ff;

  --green-700: #1a7a4a;
  --green-600: #27ae60;
  --green-500: #2ecc71;
  --green-100: #d4f5e2;

  --orange: #e67e22;
  --orange-light: #fef3e2;
  --red: #e74c3c;
  --red-light: #fde8e6;
  --teal: #16a085;
  --teal-light: #d1f0ea;
  --purple: #8e44ad;
  --purple-light: #ede0f8;

  --gray-900: #1a202c;
  --gray-700: #4a5568;
  --gray-500: #718096;
  --gray-300: #cbd5e0;
  --gray-100: #f7fafc;
  --gray-50:  #fafbfd;

  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.16);

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; border: none; font-family: inherit; }

/* ── Header ── */
.site-header {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 100%);
  color: var(--white);
  padding: 0 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.logo-title {
  display: block;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--white);
}
.logo-title strong { font-weight: 800; }
.logo-sub {
  display: block;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.header-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  display: none;
}
@media (min-width: 640px) { .header-tagline { display: block; } }

/* ── Main / Screens ── */
main { flex: 1; }
.screen { display: none !important; }
.screen.active { display: block !important; }
#screen-loading.active { display: flex !important; align-items: center; justify-content: center; flex-direction: column; }
#screen-error.active { display: flex !important; align-items: center; justify-content: center; }

/* ── Hero / Startscherm ── */
.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}
.hero h1 .accent { color: var(--blue-700); }
.hero-sub {
  font-size: 1.1rem;
  color: var(--gray-700);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.5rem;
  max-width: 440px;
  margin: 0 auto 2.5rem;
  text-align: left;
}
.feature-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
}
.feature-chip i {
  width: 22px; height: 22px;
  background: var(--green-100);
  color: var(--green-700);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
}
.hero-note {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--gray-500);
}
.hero-note i { margin-right: 0.3rem; color: var(--blue-500); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-600) 100%);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(30,111,159,0.35);
  transition: all var(--transition);
  border: none;
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-700) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30,111,159,0.4);
}
.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.btn-primary.btn-large {
  font-size: 1.15rem;
  padding: 1rem 2.25rem;
  border-radius: 14px;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--blue-700);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  border: 1.5px solid var(--blue-100);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.btn-secondary:hover {
  background: var(--blue-50);
  border-color: var(--blue-500);
  transform: translateY(-1px);
}
.btn-gps {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  border: 1.5px solid var(--green-500);
  transition: all var(--transition);
}
.btn-gps:hover {
  background: var(--green-500);
  color: var(--white);
  transform: translateY(-1px);
}

/* ── Progress bar ── */
.progress-container {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 68px;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.progress-bar-wrap {
  max-width: 640px;
  margin: 0 auto 0.75rem;
  height: 6px;
  background: var(--gray-100);
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-700), var(--green-600));
  border-radius: 99px;
  transition: width 0.4s ease;
}
.progress-steps {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  max-width: 640px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.progress-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  border: 2px solid var(--gray-300);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gray-500);
  transition: all 0.3s ease;
  position: relative;
}
.progress-dot.active {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: var(--white);
  box-shadow: 0 0 0 4px var(--blue-100);
}
.progress-dot.done {
  background: var(--green-600);
  border-color: var(--green-600);
  color: var(--white);
}
.progress-label {
  font-size: 0.65rem;
  position: absolute;
  bottom: -1.2rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: var(--gray-500);
  font-weight: 500;
}
.progress-dot.active .progress-label { color: var(--blue-700); font-weight: 600; }

/* ── Wizard Card ── */
.wizard-card {
  max-width: 820px;
  margin: 2.5rem auto;
  padding: 0 1.25rem 3rem;
}
.wizard-step.hidden { display: none; }

.step-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.step-icon {
  width: 64px; height: 64px;
  background: var(--blue-50);
  border: 2px solid var(--blue-100);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--blue-700);
  margin: 0 auto 1.25rem;
}
.step-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}
.step-header p {
  font-size: 0.95rem;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Option Grid (leeftijd, duur) ── */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.option-card {
  background: var(--white);
  border: 2px solid var(--gray-200, #e2e8f0);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.option-card:hover {
  border-color: var(--blue-500);
  background: var(--blue-50);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.option-card.selected {
  border-color: var(--blue-700);
  background: linear-gradient(135deg, var(--blue-50) 0%, #e8f4ff 100%);
  box-shadow: 0 0 0 3px rgba(30,111,159,0.15), var(--shadow-md);
}
.option-icon {
  width: 52px; height: 52px;
  background: var(--blue-50);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--blue-700);
  transition: all var(--transition);
}
.option-icon.green { background: var(--green-100); color: var(--green-700); }
.option-icon.orange { background: var(--orange-light); color: var(--orange); }
.option-icon.red { background: var(--red-light); color: var(--red); }
.option-icon.blue { background: var(--blue-100); color: var(--blue-700); }
.option-icon.teal { background: var(--teal-light); color: var(--teal); }
.option-icon.purple { background: var(--purple-light); color: var(--purple); }
.option-card:hover .option-icon,
.option-card.selected .option-icon { transform: scale(1.1); }
.option-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
}
.option-desc {
  font-size: 0.78rem;
  color: var(--gray-500);
  line-height: 1.4;
}
.intensiteit-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.intensiteit-card .option-desc { max-width: 220px; }

/* ── Zorg Grid ── */
.zorg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.zorg-card {
  background: var(--white);
  border: 2px solid var(--gray-200, #e2e8f0);
  border-radius: 12px;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.zorg-card i { font-size: 1.4rem; color: var(--blue-600); }
.zorg-card span { font-size: 0.78rem; font-weight: 600; color: var(--gray-700); line-height: 1.3; }
.zorg-card:hover {
  border-color: var(--blue-500);
  background: var(--blue-50);
  transform: translateY(-2px);
}
.zorg-card.selected {
  border-color: var(--blue-700);
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--blue-100) 100%);
  box-shadow: 0 0 0 3px rgba(30,111,159,0.12);
}
.zorg-card.selected i { color: var(--blue-800); }

/* ── Locatie ── */
.locatie-form {
  max-width: 480px;
  margin: 0 auto 2rem;
  text-align: center;
}
.locatie-input-wrap {
  position: relative;
  margin-bottom: 0.5rem;
}
.locatie-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue-600);
  font-size: 1rem;
  pointer-events: none;
}
.locatie-input {
  width: 100%;
  padding: 0.9rem 3rem 0.9rem 2.75rem;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid var(--gray-300);
  border-radius: 12px;
  background: var(--white);
  color: var(--gray-900);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.locatie-input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(30,111,159,0.12);
}
.clear-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 0.9rem;
  padding: 0.25rem;
  cursor: pointer;
}
.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  max-height: 260px;
  overflow-y: auto;
  text-align: left;
}
.autocomplete-item {
  padding: 0.7rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gray-900);
  transition: background var(--transition);
}
.autocomplete-item:last-child { border-bottom: none; border-radius: 0 0 12px 12px; }
.autocomplete-item:hover, .autocomplete-item.highlighted { background: var(--blue-50); }
.autocomplete-item i { color: var(--blue-600); font-size: 0.85rem; }
.autocomplete-item .stad-prov { font-size: 0.75rem; color: var(--gray-500); }
.locatie-of {
  color: var(--gray-400);
  font-size: 0.85rem;
  margin: 1.25rem 0;
}
.locatie-skip { margin-top: 1rem; font-size: 0.85rem; color: var(--gray-500); }
.locatie-skip a { color: var(--gray-500); text-decoration: underline; }

/* ── Step Nav ── */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ── Loading ── */
#screen-loading {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.loading-wrap { text-align: center; padding: 2rem 1.5rem; }
.loading-spinner {
  position: relative;
  width: 80px; height: 80px;
  margin: 0 auto 2rem;
}
.spinner-ring {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 4px solid var(--blue-100);
  border-top-color: var(--blue-700);
  animation: spin 1s linear infinite;
}
.spinner-icon {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--blue-700);
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-wrap h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}
.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
  display: inline-flex;
}
.loading-step {
  font-size: 0.88rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.4s;
}
.loading-step.active { color: var(--blue-700); font-weight: 600; }
.loading-step.done { color: var(--green-600); }

/* ── Results ── */
#screen-results { max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.results-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
}
.results-count {
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 99px;
  vertical-align: middle;
}
.results-summary { font-size: 0.9rem; color: var(--gray-500); margin-top: 0.25rem; }
.btn-opnieuw { align-self: flex-start; }
.criteria-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.criteria-pill {
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: 99px;
  padding: 0.3rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: var(--shadow-sm);
}
.criteria-pill i { color: var(--blue-600); font-size: 0.75rem; }

/* Results grid */
.results-grid {
  display: grid;
  gap: 1.25rem;
}
.result-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1.5px solid transparent;
  transition: all 0.25s ease;
  display: grid;
  grid-template-columns: 1fr;
}
.result-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200, #bee3f8);
}
.result-card.rank-1 { border-color: var(--green-500); }
.result-card.rank-1 .rank-badge { background: linear-gradient(135deg, var(--green-700), var(--green-600)); }

.card-top {
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.rank-badge {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}
.card-info { flex: 1; min-width: 0; }
.card-naam {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}
.card-locatie {
  font-size: 0.85rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.6rem;
}
.card-locatie i { color: var(--blue-500); }
.card-afstand {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  margin-left: 0.5rem;
}
.match-score-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}
.match-score {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green-700);
  line-height: 1;
}
.match-score-label {
  font-size: 0.68rem;
  color: var(--gray-500);
  font-weight: 600;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.match-bar {
  width: 70px;
  height: 5px;
  background: var(--gray-100);
  border-radius: 99px;
  overflow: hidden;
}
.match-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-600), var(--green-500));
  border-radius: 99px;
  transition: width 1s ease;
}

.card-reden {
  padding: 0 1.5rem 1rem;
  font-size: 0.88rem;
  color: var(--gray-600, #555);
  line-height: 1.55;
  background: var(--gray-50);
  margin: 0;
  padding: 0.85rem 1.5rem;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.card-reden i { color: var(--green-600); margin-top: 0.15rem; flex-shrink: 0; }

.card-tags {
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
}
.tag i { font-size: 0.65rem; }
.tag.blue-tag { background: var(--blue-50); color: var(--blue-700); }
.tag.green-tag { background: var(--green-100); color: var(--green-700); }

.card-footer {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.btn-meer-info {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--blue-700);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(30,111,159,0.3);
}
.btn-meer-info:hover {
  background: var(--blue-800);
  transform: translateY(-1px);
}
.card-plaatsen {
  font-size: 0.8rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.card-plaatsen i { color: var(--green-600); }

.results-footer {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--blue-50);
  border: 1.5px solid var(--blue-100);
  border-radius: var(--radius);
  text-align: center;
}
.results-footer p {
  font-size: 0.85rem;
  color: var(--gray-600, #555);
  margin-bottom: 1rem;
}
.results-footer p i { color: var(--blue-600); }

/* ── Detail Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: sticky;
  top: 1rem;
  float: right;
  margin: 1rem 1rem 0 0;
  width: 36px; height: 36px;
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  font-size: 0.9rem;
  color: var(--gray-600, #555);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--gray-300); }
.modal-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--gray-100);
}
.modal-naam {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.modal-locatie {
  font-size: 0.9rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.modal-locatie i { color: var(--blue-600); }
.modal-beschrijving {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.65;
}
.modal-section {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--gray-100);
}
.modal-section:last-child { border-bottom: none; }
.modal-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.modal-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.modal-tag {
  background: var(--blue-50);
  color: var(--blue-800);
  border: 1px solid var(--blue-100);
  border-radius: 99px;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 0.3rem;
}
.modal-tag i { font-size: 0.72rem; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.modal-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray-700);
}
.modal-meta-item i { color: var(--blue-600); width: 16px; text-align: center; }
.modal-bijzonderheden { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.modal-bijzonderheden li {
  font-size: 0.88rem;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.modal-bijzonderheden li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-500);
  flex-shrink: 0;
}
.modal-actions {
  padding: 1.5rem 2rem 2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-600);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(39,174,96,0.3);
}
.btn-call:hover { background: var(--green-700); transform: translateY(-1px); }
.btn-website {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--blue-700);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  border: 1.5px solid var(--blue-200, #bee3f8);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-website:hover { background: var(--blue-50); transform: translateY(-1px); }
.btn-maps {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  border: 1.5px solid var(--gray-300);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-maps:hover { background: var(--gray-50); transform: translateY(-1px); }

/* ── Error screen ── */
#screen-error {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.error-wrap {
  text-align: center;
  padding: 2rem;
  max-width: 480px;
  margin: 0 auto;
}
.error-icon {
  font-size: 3rem;
  color: var(--orange);
  margin-bottom: 1.25rem;
}
.error-wrap h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.error-wrap p { color: var(--gray-500); margin-bottom: 1.5rem; }

/* ── Footer ── */
.site-footer {
  background: var(--blue-900);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 1.75rem 1.5rem;
  font-size: 0.8rem;
  line-height: 1.7;
}
.footer-disclaimer { font-size: 0.72rem; margin-top: 0.35rem; }

/* ── Demo sectie (startscherm) ── */
.demo-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}
.demo-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.demo-divider::before, .demo-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gray-200, #e2e8f0);
}
.demo-divider-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.demo-disclaimer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fffbeb;
  border: 1.5px solid #f6d860;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  color: #92660a;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.demo-disclaimer i { color: #d97706; flex-shrink: 0; }
.demo-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.demo-grid {
  display: grid;
  gap: 1rem;
}
.demo-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-200, #e2e8f0);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  opacity: 0.92;
}
.demo-card-top {
  padding: 1.1rem 1.25rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.demo-rank {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.demo-card.rank-1 .demo-rank { background: linear-gradient(135deg, var(--green-700), var(--green-600)); }
.demo-card-info { flex: 1; min-width: 0; }
.demo-card-naam { font-size: 0.95rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.2rem; }
.demo-card-loc { font-size: 0.78rem; color: var(--gray-500); display: flex; align-items: center; gap: 0.3rem; }
.demo-card-loc i { color: var(--blue-500); font-size: 0.7rem; }
.demo-score { text-align: right; flex-shrink: 0; }
.demo-score-num { font-size: 1.2rem; font-weight: 800; color: var(--green-700); line-height: 1; }
.demo-score-lbl { font-size: 0.65rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.05em; }
.demo-reden {
  padding: 0.6rem 1.25rem;
  font-size: 0.8rem;
  color: var(--gray-600, #555);
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  display: flex; gap: 0.4rem; align-items: flex-start;
  line-height: 1.5;
}
.demo-reden i { color: var(--green-600); margin-top: 0.1rem; flex-shrink: 0; font-size: 0.8rem; }
.demo-tags {
  padding: 0.75rem 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.35rem;
}
.demo-cta {
  margin-top: 1.5rem;
  text-align: center;
}
.demo-cta p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 0.75rem;
}

/* ── Responsive ── */
@media (min-width: 600px) {
  .results-grid { grid-template-columns: 1fr; }
  .result-card { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero { padding: 2.5rem 1rem 3rem; }
  .wizard-card { margin: 1.5rem auto; padding: 0 1rem 2rem; }
  .option-grid { grid-template-columns: 1fr 1fr; }
  .intensiteit-grid { grid-template-columns: 1fr; }
  .zorg-grid { grid-template-columns: repeat(3, 1fr); }
  .step-nav { flex-direction: column; align-items: stretch; }
  .step-nav button { justify-content: center; }
  .modal-actions { flex-direction: column; }
  .card-top { flex-direction: column; }
  .match-score-wrap { flex-direction: row; align-items: center; }
}
