/* =====================
   WijkRadar &#8212; style.css
   ===================== */

:root {
  --groen: #16315c;
  --groen-licht: #2d6e57;
  --groen-pale: #e8f2ee;
  --accent: #f0641e;
  --tekst: #16315c;
  --tekst-zacht: #5a5a54;
  --rand: #e2ddd6;
  --bg: #f6f5f1;
  --wit: #ffffff;
  --radius: 10px;
  --radius-lg: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--tekst);
  font-size: 15px;
  line-height: 1.6;
}

/* ---- HEADER ---- */
.header {
  background: var(--groen);
  padding: 0;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  font-family: 'Newsreader', serif;
  font-size: 22px;
  color: var(--wit);
  letter-spacing: -0.5px;
}

.header-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: 1.5rem;
}

/* ---- HERO ---- */
.hero {
  background: var(--groen);
  padding: 3rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 40px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
}

.hero h1 {
  font-family: 'Newsreader', serif;
  font-size: clamp(32px, 5vw, 52px);
  color: var(--wit);
  line-height: 1.15;
  margin-bottom: 1rem;
  font-weight: 400;
}

.hero h1 em {
  color: var(--accent);
  font-style: italic;
}

.hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  line-height: 1.6;
}

/* ---- MAIN ---- */
.main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ---- FILTERS ---- */
.filters {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr;
  gap: 12px;
  margin-bottom: 1.5rem;
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tekst-zacht);
}

.filter-group select,
.filter-group input {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--tekst);
  background: var(--bg);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.15s;
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: var(--groen-licht);
}

/* ---- STATS BAR ---- */
.stats-bar {
  font-size: 13px;
  color: var(--tekst-zacht);
  margin-bottom: 1.25rem;
  padding: 0 2px;
}

/* ---- RESULTATEN ---- */
.resultaten {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 2.5rem;
}

.wijk-kaart {
  background: var(--wit);
  border: 1px solid var(--rand);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  transition: border-color 0.15s, transform 0.1s;
  cursor: default;
  animation: fadeIn 0.3s ease both;
}

.wijk-kaart:hover {
  border-color: var(--groen-licht);
  transform: translateY(-1px);
}

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

.wijk-rank {
  font-family: 'Newsreader', serif;
  font-size: 20px;
  color: var(--accent);
  text-align: center;
}

.wijk-info {}

.wijk-naam {
  font-size: 15px;
  font-weight: 500;
  color: var(--tekst);
  margin-bottom: 2px;
}

.wijk-gemeente {
  font-size: 12px;
  color: var(--tekst-zacht);
  margin-bottom: 6px;
}

.wijk-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.wijk-stat {
  font-size: 12px;
  color: var(--tekst-zacht);
}

.wijk-stat strong {
  font-weight: 500;
  color: var(--tekst);
}

.wijk-score-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 70px;
}

.wijk-score {
  font-family: 'Newsreader', serif;
  font-size: 26px;
  line-height: 1;
}

.score-hoog { color: #1a6640; }
.score-mid  { color: #8a6200; }
.score-laag { color: #8a2a00; }

.score-balk-wrap {
  width: 60px;
  height: 4px;
  background: var(--rand);
  border-radius: 2px;
  overflow: hidden;
}

.score-balk {
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.balk-hoog { background: #1a6640; }
.balk-mid  { background: #8a6200; }
.balk-laag { background: #8a2a00; }

/* Top 3 highlight */
.wijk-kaart.top3 {
  border-color: var(--accent);
  background: linear-gradient(135deg, #fffdf8 0%, var(--wit) 100%);
}

/* Lege staat */
.leeg {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--tekst-zacht);
  font-size: 14px;
}

/* ---- CTA ---- */
.cta-block {
  background: var(--groen);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.cta-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cta-text strong {
  font-size: 15px;
  font-weight: 500;
  color: var(--wit);
}

.cta-text span {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

.cta-btn {
  background: var(--accent);
  color: var(--groen);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.cta-btn:hover { opacity: 0.85; }

/* ---- FOOTER ---- */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 12px;
  color: var(--tekst-zacht);
  border-top: 1px solid var(--rand);
}

.footer a {
  color: var(--groen-licht);
  text-decoration: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .filters {
    grid-template-columns: 1fr;
  }
  .wijk-kaart {
    grid-template-columns: 28px 1fr auto;
  }
  .cta-block {
    flex-direction: column;
    text-align: center;
  }
  .wijk-stats {
    gap: 8px;
  }
}

/* ---- MODUS TOGGLE ---- */
.modus-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.modus-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--rand);
  background: var(--wit);
  color: var(--tekst-zacht);
  cursor: pointer;
  transition: all 0.15s;
}

.modus-btn:hover {
  border-color: var(--groen-licht);
  color: var(--groen);
}

.modus-btn.actief {
  background: var(--groen);
  border-color: var(--groen);
  color: var(--wit);
}

/* ---- GROEI BADGES ---- */
.groei-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.groei-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 10px;
}

.groei-pos {
  background: #e8f5e9;
  color: #2e7d32;
}

.groei-neg {
  background: #fce4ec;
  color: #c62828;
}

/* ---- SCORE LABEL ---- */
.score-label-small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tekst-zacht);
  text-align: right;
  margin-bottom: 2px;
}

/* ---- UITLEG ZIN ---- */
.wijk-uitleg {
  font-size: 12px !important;
  color: #2d6e57 !important;
  margin-top: 5px !important;
  font-style: italic !important;
  line-height: 1.5 !important;
  display: block !important;
}

/* ---- GROEI LABEL ---- */
.groei-label {
  font-size: 11px;
  color: var(--tekst-zacht);
  font-weight: 500;
  margin-right: 4px;
}

/* ---- WORDPRESS OVERRIDE: modus knoppen ---- */
.modus-btn {
  font-family: 'Outfit', sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 8px 18px !important;
  border-radius: 20px !important;
  border: 1px solid #d8d3cc !important;
  background: #ffffff !important;
  color: #5a5a54 !important;
  cursor: pointer !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  text-decoration: none !important;
}
.modus-btn:hover {
  border-color: #2d6e57 !important;
  color: #16315c !important;
  background: #ffffff !important;
}
.modus-btn.actief {
  background: #16315c !important;
  border-color: #16315c !important;
  color: #ffffff !important;
}

/* ---- CHECKBOX G4 FILTER ---- */
.sluit-groot-uit {
  margin-bottom: 1rem;
}
.checkbox-label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 13px !important;
  color: #5a5a54 !important;
  cursor: pointer !important;
  font-weight: 400 !important;
}
.checkbox-label input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  cursor: pointer !important;
  accent-color: #16315c !important;
}

/* ---- STATS SUB ---- */
#stats-sub {
  display: block !important;
  font-size: 11px !important;
  color: #888780 !important;
  margin-top: 2px !important;
}

/* ---- LOCATIESCORE NAV ---- */
.logo-link {
  text-decoration: none !important;
}
.logo-link:hover .logo {
  opacity: 0.85;
}
.header-nav {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-left: auto !important;
}
.nav-link {
  font-size: 13px !important;
  color: rgba(255,255,255,0.65) !important;
  text-decoration: none !important;
  padding: 6px 12px !important;
  border-radius: 20px !important;
  transition: color 0.15s !important;
}
.nav-link:hover {
  color: #fff !important;
}
.nav-btn {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #16315c !important;
  background: #f0641e !important;
  text-decoration: none !important;
  padding: 7px 16px !important;
  border-radius: 20px !important;
  white-space: nowrap !important;
  transition: opacity 0.15s !important;
  display: inline-block !important;
}
.nav-btn:hover {
  opacity: 0.85 !important;
}

/* ---- HERO ADRES BANNER ---- */
.hero-adres-banner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  border-radius: 14px !important;
  padding: 14px 20px !important;
  margin-top: 2.5rem !important;
  max-width: 560px !important;
  backdrop-filter: blur(4px) !important;
}
.hero-adres-tekst {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}
.hero-adres-label {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #fff !important;
}
.hero-adres-sub {
  font-size: 12px !important;
  color: rgba(255,255,255,0.6) !important;
}
.hero-adres-btn {
  font-family: 'Outfit', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #16315c !important;
  background: #f0641e !important;
  text-decoration: none !important;
  padding: 9px 20px !important;
  border-radius: 10px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  transition: opacity 0.15s !important;
}
.hero-adres-btn:hover {
  opacity: 0.85 !important;
  color: #16315c !important;
}
@media (max-width: 500px) {
  .hero-adres-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .hero-adres-btn {
    width: 100% !important;
    text-align: center !important;
  }
}
