/*
Theme Name:  Plan Zuid – Habeo+
Theme URI:   https://www.rijssen-holten.nl/
Author:      Studenten van Habeo+
Version:     2.0.0
Requires WP: 7.0
License:     GNU General Public License v2 or later
Text Domain: planzuid
Description: Buurtwebsite-thema in Rijssen-Holten huisstijl. De header toont automatisch het adres van de ingelogde bewoner. Activiteiten, buren en initiatieven worden beheerd via het WordPress-dashboard.
*/

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --rh-blauw:       #1a3f6f;
  --rh-blauw-mid:   #2a5fa8;
  --rh-blauw-licht: #e8f0fb;
  --rh-roze:        #c0326f;
  --rh-roze-licht:  #fce8f0;
  --rh-teal:        #2e8b8b;
  --rh-groen:       #3a7d44;
  --rh-oranje:      #e07b2a;
  --rh-zand:        #f5f3ef;
  --rh-wit:         #ffffff;
  --rh-tekst:       #1a1a2e;
  --rh-gedimpt:     #5c6b80;
  --rh-rand:        #d4dce8;
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px;
  --schaduw-sm: 0 2px 8px rgba(26,63,111,.08);
  --schaduw-md: 0 6px 24px rgba(26,63,111,.12);
  --font: 'Source Sans 3', system-ui, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--rh-zand); color: var(--rh-tekst); font-size: 15px; line-height: 1.6; }
a { color: var(--rh-blauw-mid); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── Topbar ──────────────────────────────────────────────── */
.site-topbar {
  background: var(--rh-blauw);
  padding: 10px 20px;
  display: flex; align-items: center; gap: 12px;
}
.topbar-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.topbar-logo-mark {
  width: 36px; height: 36px; background: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.topbar-logo-tekst { color: white; font-size: 13px; font-weight: 600; line-height: 1.2; }
.topbar-logo-tekst span { font-weight: 300; font-size: 11px; opacity: .8; display: block; }
.topbar-sep { flex: 1; }
.topbar-nav { display: flex; gap: 16px; }
.topbar-nav a { color: rgba(255,255,255,.75); font-size: 12px; font-weight: 600; text-decoration: none; }
.topbar-nav a:hover { color: white; }
.topbar-login {
  background: var(--rh-roze); color: white;
  font-size: 11px; font-weight: 700; padding: 5px 12px;
  border-radius: 20px; text-decoration: none; white-space: nowrap;
}
.topbar-login:hover { background: #a82860; color: white; }

/* ── Hero – dynamisch via template-tag ───────────────────── */
.site-hero {
  background: linear-gradient(135deg, var(--rh-blauw) 0%, var(--rh-blauw-mid) 100%);
  padding: 28px 20px 22px; position: relative; overflow: hidden;
}
.site-hero::before {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(192,50,111,.15); pointer-events: none;
}
.hero-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 4px;
}
.hero-adres {
  font-family: var(--serif); font-size: 26px; font-weight: 600;
  color: white; line-height: 1.15; margin-bottom: 6px;
}
.hero-meta { font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: 18px; }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
  border: 1.5px solid rgba(255,255,255,.4); color: white;
  background: rgba(255,255,255,.1); text-decoration: none; transition: all .2s;
}
.hero-chip:hover { background: rgba(255,255,255,.22); border-color: white; text-decoration: none; }
.hero-chip.roze { background: var(--rh-roze); border-color: var(--rh-roze); }
.hero-chip.roze:hover { background: #a82860; }

/* ── Hero foto (uitgelogd) ───────────────────────────────── */
.site-hero-foto {
  position: relative;
  min-height: 340px;
  background: var(--rh-blauw) center/cover no-repeat;
  /* Fallback kleurverloop als er geen foto is ingesteld */
  background-image: linear-gradient(160deg, #1a3f6f 0%, #2e8b8b 60%, #c0326f 100%);
}
.hero-foto-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,24,48,.45) 0%, rgba(10,24,48,.72) 100%);
  display: flex; align-items: flex-end;
}
.hero-foto-inhoud {
  padding: 28px 20px 22px; width: 100%;
}
.hero-foto-stats {
  display: flex; gap: 20px; margin-top: 18px;
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2);
}
.hf-stat { text-align: center; }
.hf-stat-getal {
  font-family: var(--serif); font-size: 28px; font-weight: 600;
  color: white; line-height: 1;
}
.hf-stat-label { font-size: 11px; color: rgba(255,255,255,.65); margin-top: 2px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* ── Hoofd-layout ────────────────────────────────────────── */
.site-main { max-width: 680px; margin: 0 auto; padding: 0 14px 40px; }

/* ── Kaarten ─────────────────────────────────────────────── */
.pz-kaart {
  background: var(--rh-wit); border-radius: var(--r-md);
  box-shadow: var(--schaduw-sm); border: 1px solid var(--rh-rand);
  overflow: hidden; margin-top: 12px;
}
.pz-kaart-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px 10px; border-bottom: 1px solid var(--rh-rand);
}
.pz-kaart-icoon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}
.icoon-blauw  { background: var(--rh-blauw-licht); }
.icoon-roze   { background: var(--rh-roze-licht); }
.icoon-teal   { background: rgba(46,139,139,.12); }
.icoon-groen  { background: rgba(58,125,68,.12); }
.pz-kaart-titel { font-size: 14px; font-weight: 700; color: var(--rh-blauw); letter-spacing: .03em; text-transform: uppercase; }
.pz-kaart-sub   { font-size: 12px; color: var(--rh-gedimpt); margin-top: 1px; }
.sectie-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--rh-gedimpt); padding: 18px 0 6px;
}

/* ── Twee kolommen ───────────────────────────────────────── */
.pz-twee-kolom { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
@media (max-width: 480px) { .pz-twee-kolom { grid-template-columns: 1fr; } }

/* ── Tijdlijn ────────────────────────────────────────────── */
.pz-tijdlijn {
  display: flex; overflow-x: auto; padding: 20px 18px 16px; gap: 12px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; position: relative;
}
.pz-tijdlijn::before {
  content: ''; position: absolute; left: 18px; right: 18px; top: 29px;
  height: 2px; background: var(--rh-rand);
}
.tl-item {
  flex-shrink: 0; min-width: 130px; background: var(--rh-zand);
  border: 1.5px solid var(--rh-rand); border-radius: var(--r-sm);
  padding: 10px 12px; position: relative; transition: all .2s;
  text-decoration: none; color: inherit; display: block;
}
.tl-item:hover { border-color: var(--tl-dot, var(--rh-blauw-mid)); transform: translateY(-2px); box-shadow: var(--schaduw-sm); text-decoration: none; }
.tl-item::before {
  content: ''; position: absolute; top: -7px; left: 14px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--tl-dot, var(--rh-blauw)); border: 2px solid white; box-shadow: 0 0 0 2px var(--tl-dot, var(--rh-blauw));
}
.tl-jaar  { font-size: 11px; font-weight: 700; color: var(--rh-roze); letter-spacing: .06em; margin-bottom: 4px; }
.tl-label { font-size: 12px; font-weight: 600; color: var(--rh-blauw); line-height: 1.3; }

/* ── Activiteiten ────────────────────────────────────────── */
.activiteit-lijst { padding: 4px 0 8px; }
.activiteit-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 18px; border-bottom: 1px solid var(--rh-rand);
  text-decoration: none; color: inherit; transition: background .15s;
}
.activiteit-item:last-child { border-bottom: none; }
.activiteit-item:hover { background: var(--rh-blauw-licht); text-decoration: none; }
.act-pijl { color: var(--rh-gedimpt); font-size: 14px; align-self: center; }
.act-datum {
  flex-shrink: 0; min-width: 44px; background: var(--rh-blauw); color: white;
  border-radius: var(--r-sm); text-align: center; padding: 4px 6px;
  font-size: 11px; font-weight: 700; line-height: 1.3;
}
.act-datum.roze { background: var(--rh-roze); }
.act-datum.teal { background: var(--rh-teal); }
.act-naam { font-size: 13px; font-weight: 700; color: var(--rh-blauw); }
.act-org  { font-size: 11px; color: var(--rh-gedimpt); margin-top: 1px; }
.leeg-staat { padding: 16px 18px; font-size: 13px; color: var(--rh-gedimpt); }

/* ── Initiatieven ────────────────────────────────────────── */
.initiatief-lijst { padding: 8px 0 4px; }
.initiatief-item {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  text-decoration: none; color: inherit; border-bottom: 1px solid var(--rh-rand); transition: background .15s;
}
.initiatief-item:last-child { border-bottom: none; }
.initiatief-item:hover { background: var(--rh-zand); text-decoration: none; }
.init-stip { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.init-naam { font-size: 13px; font-weight: 600; color: var(--rh-blauw); flex: 1; }
.tag {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px;
  letter-spacing: .04em; text-transform: uppercase;
}
.tag-blauw  { background: var(--rh-blauw-licht); color: var(--rh-blauw-mid); }
.tag-teal   { background: rgba(46,139,139,.12); color: var(--rh-teal); }
.tag-groen  { background: rgba(58,125,68,.12);  color: var(--rh-groen); }
.tag-oranje { background: rgba(224,123,42,.12); color: var(--rh-oranje); }
.tag-roze   { background: var(--rh-roze-licht); color: var(--rh-roze); }

/* ── Buren ───────────────────────────────────────────────── */
.buren-rij { padding: 8px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.buur-kaart {
  display: flex; align-items: center; gap: 12px; background: var(--rh-zand);
  border: 1.5px solid var(--rh-rand); border-radius: var(--r-sm);
  padding: 10px 12px; text-decoration: none; color: inherit; transition: all .2s;
}
.buur-kaart:hover { border-color: var(--rh-blauw-mid); background: var(--rh-blauw-licht); transform: translateX(3px); text-decoration: none; }
.buur-cta {
  font-size: 11px; font-weight: 700; color: var(--rh-roze); white-space: nowrap;
  padding: 4px 10px; border: 1.5px solid var(--rh-roze); border-radius: 20px; transition: all .2s;
}
.buur-kaart:hover .buur-cta { background: var(--rh-roze); color: white; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: white; flex-shrink: 0;
}
.av-blauw { background: var(--rh-blauw); }
.av-teal  { background: var(--rh-teal); }
.av-roze  { background: var(--rh-roze); }
.buur-naam { font-size: 13px; font-weight: 700; color: var(--rh-blauw); }
.buur-info { font-size: 11px; color: var(--rh-gedimpt); margin-top: 1px; line-height: 1.4; }

/* ── RSS nieuws ──────────────────────────────────────────── */
.rss-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 18px;
  border-bottom: 1px solid var(--rh-rand); text-decoration: none; color: inherit; transition: background .15s;
}
.rss-item:last-child { border-bottom: none; }
.rss-item:hover { background: var(--rh-blauw-licht); text-decoration: none; }
.rss-stip { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.rss-titel { font-size: 13px; font-weight: 600; color: var(--rh-blauw); line-height: 1.3; }
.rss-meta  { font-size: 11px; color: var(--rh-gedimpt); margin-top: 2px; }

/* ── Social strip ────────────────────────────────────────── */
.social-rij { display: flex; overflow-x: auto; gap: 10px; padding: 12px 16px; scrollbar-width: none; }
.social-knop {
  display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 20px;
  text-decoration: none; font-size: 12px; font-weight: 700; white-space: nowrap;
  border: 1.5px solid; transition: all .2s; flex-shrink: 0;
}
.sk-fb  { color: #1877f2; border-color: #1877f2; background: rgba(24,119,242,.06); }
.sk-fb:hover  { background: #1877f2; color: white; text-decoration: none; }
.sk-web { color: var(--rh-blauw); border-color: var(--rh-blauw); background: var(--rh-blauw-licht); }
.sk-web:hover { background: var(--rh-blauw); color: white; text-decoration: none; }

/* ── Bronnen grid ────────────────────────────────────────── */
.bronnen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
@media (max-width: 420px) { .bronnen-grid { grid-template-columns: 1fr; } }
.bron-kaart {
  background: white; border: 1.5px solid var(--rh-rand); border-radius: var(--r-md);
  padding: 14px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 6px;
  transition: all .2s; box-shadow: var(--schaduw-sm);
}
.bron-kaart:hover { border-color: var(--rh-blauw-mid); box-shadow: var(--schaduw-md); transform: translateY(-2px); text-decoration: none; }
.bron-icoon { font-size: 22px; }
.bron-naam  { font-size: 13px; font-weight: 700; color: var(--rh-blauw); }
.bron-tekst { font-size: 11px; color: var(--rh-gedimpt); line-height: 1.4; }
.bron-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.bron-link {
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 10px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 3px; transition: all .2s;
}
.bl-blauw { background: var(--rh-blauw-licht); color: var(--rh-blauw); }
.bl-blauw:hover { background: var(--rh-blauw); color: white; }
.bl-fb    { background: rgba(24,119,242,.1); color: #1877f2; }
.bl-fb:hover    { background: #1877f2; color: white; }
.bl-roze  { background: var(--rh-roze-licht); color: var(--rh-roze); }
.bl-roze:hover  { background: var(--rh-roze); color: white; }

/* ── Contact links ───────────────────────────────────────── */
.contact-rij { padding: 8px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.contact-link {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  background: var(--rh-zand); border: 1.5px solid var(--rh-rand); border-radius: var(--r-sm);
  text-decoration: none; color: var(--rh-blauw); font-size: 13px; font-weight: 600; transition: all .2s;
}
.contact-link:hover { background: var(--rh-blauw); color: white; border-color: var(--rh-blauw); text-decoration: none; }
.contact-link:hover .cl-sub { color: rgba(255,255,255,.7); }
.contact-link:hover .cl-icoon { background: rgba(255,255,255,.15); }
.contact-link:hover .cl-pijl { color: white; }
.cl-pijl  { color: var(--rh-gedimpt); font-size: 14px; transition: color .2s; }
.cl-icoon {
  width: 32px; height: 32px; border-radius: 8px; background: var(--rh-blauw-licht);
  display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; transition: background .2s;
}
.cl-sub { font-size: 11px; font-weight: 400; color: var(--rh-gedimpt); margin-top: 1px; }

/* ── WordPress widget ────────────────────────────────────── */
.widget { margin-bottom: 24px; }
.widget-title {
  font-size: 14px; font-weight: 700; color: var(--rh-blauw); text-transform: uppercase;
  letter-spacing: .05em; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--rh-roze);
}

/* ── Floating Huiskamer Chat ─────────────────────────────── */
#fc-wrap {
  position: fixed; bottom: 20px; right: 20px; z-index: 9998;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
#fc-bubble {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--rh-blauw); color: white; border: none;
  font-size: 22px; cursor: pointer;
  box-shadow: 0 4px 16px rgba(26,63,111,.4);
  transition: all .2s; position: relative;
  display: flex; align-items: center; justify-content: center;
}
#fc-bubble:hover { background: var(--rh-blauw-mid); transform: scale(1.08); }
.fc-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--rh-roze); color: white;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white; padding: 0 3px;
}
.fc-venster {
  width: 320px; background: white;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 8px 40px rgba(26,63,111,.2);
  border: 1px solid var(--rh-rand);
  display: flex; flex-direction: column;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  transform-origin: bottom right;
}
.fc-gesloten { opacity: 0; transform: scale(.85) translateY(10px); pointer-events: none; max-height: 0; }
.fc-open     { opacity: 1; transform: scale(1) translateY(0);       pointer-events: auto; max-height: 520px; }
#fc-header {
  background: linear-gradient(135deg, var(--rh-blauw), var(--rh-blauw-mid));
  padding: 12px 14px; display: flex; align-items: center;
  justify-content: space-between; flex-shrink: 0;
}
#fc-berichten {
  flex: 1; overflow-y: auto; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
  min-height: 280px; max-height: 340px;
  scroll-behavior: smooth; background: var(--rh-zand);
}
#fc-berichten::-webkit-scrollbar { width: 3px; }
#fc-berichten::-webkit-scrollbar-thumb { background: var(--rh-rand); border-radius: 3px; }
#fc-invoer-wrap {
  display: flex; gap: 6px; padding: 8px 10px;
  border-top: 1px solid var(--rh-rand); background: white; flex-shrink: 0;
}
#fc-invoer {
  flex: 1; resize: none; border: 1.5px solid var(--rh-rand);
  border-radius: var(--r-sm); padding: 7px 10px;
  font-family: var(--font); font-size: 12px; line-height: 1.4;
  outline: none; background: var(--rh-zand); max-height: 80px;
}
#fc-invoer:focus { border-color: var(--rh-blauw-mid); background: white; }
#fc-invoer-wrap button {
  background: var(--rh-blauw); color: white; border: none;
  border-radius: var(--r-sm); width: 34px; font-size: 14px;
  cursor: pointer; transition: background .2s; flex-shrink: 0;
}
#fc-invoer-wrap button:hover { background: var(--rh-blauw-mid); }

/* Berichten */
.fc-bericht { animation: chatIn .2s ease; }
.fc-bericht-wrap { display: flex; gap: 6px; align-items: flex-end; }
.fc-eigen .fc-bericht-wrap { flex-direction: row-reverse; }
.fc-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--rh-rand); }
.fc-avatar-init {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: white; flex-shrink: 0;
}
.fc-bericht-inhoud { max-width: 200px; }
.fc-bericht-naam { font-size: 10px; font-weight: 700; color: var(--rh-blauw); margin-bottom: 2px; }
.fc-bericht-tekst {
  background: white; border: 1px solid var(--rh-rand);
  border-radius: 4px 12px 12px 12px;
  padding: 6px 9px; font-size: 12px; line-height: 1.5;
  color: var(--rh-tekst); word-break: break-word;
}
.fc-eigen-tekst {
  background: var(--rh-blauw); color: white; border-color: transparent;
  border-radius: 12px 4px 12px 12px;
}
.fc-bericht-tijd { font-size: 9px; color: var(--rh-gedimpt); margin-top: 2px; text-align: right; }
.fc-eigen .fc-bericht-tijd { text-align: left; }

#fc-emoji-picker::-webkit-scrollbar { width: 3px; }
#fc-emoji-picker::-webkit-scrollbar-thumb { background: var(--rh-rand); border-radius: 3px; }

/* ── Geschiedenispagina ──────────────────────────────────── */
.geschiedenis-tekst { padding: 16px 18px; display: flex; flex-direction: column; gap: 20px; background: white; }
.gesch-paragraaf { display: flex; gap: 14px; align-items: flex-start; }
.gesch-jaar-badge {
  flex-shrink: 0; color: #ffffff !important; font-size: 11px; font-weight: 700;
  padding: 4px 8px; border-radius: var(--r-sm); white-space: nowrap;
  margin-top: 4px; letter-spacing: .02em;
}
.gesch-paragraaf h3 {
  font-size: 16px; font-weight: 700; color: #1a3f6f !important;
  font-family: var(--serif); margin-bottom: 8px;
}
.gesch-paragraaf p {
  font-size: 13px; line-height: 1.75; color: #1a1a2e !important; margin-bottom: 8px;
}
.gesch-paragraaf p em { color: #2a5fa8 !important; font-style: italic; }
.gesch-paragraaf p:last-child { margin-bottom: 0; }

/* ── Interactieve tijdlijn ───────────────────────────────── */
.tijdlijn-container { display: flex; flex-direction: column; background: white; }
.tl-item-volledig { border-bottom: 1px solid var(--rh-rand); transition: background .15s; }
.tl-item-volledig:last-child { border-bottom: none; }
.tl-jaar-knop {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; cursor: pointer; transition: background .15s;
}
.tl-jaar-knop:hover { background: var(--rh-blauw-licht); }
.tl-jaar-cirkel {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.tl-jaar-cirkel span {
  color: #ffffff !important; font-size: 11px; font-weight: 700;
  text-align: center; line-height: 1.2; letter-spacing: -.02em;
}
.tl-jaar-info { flex: 1; }
.tl-jaar-titel { font-size: 14px; font-weight: 700; color: #1a3f6f !important; line-height: 1.3; }
.tl-jaar-cat { font-size: 11px; color: #5c6b80 !important; margin-top: 2px; }
.tl-jaar-pijl {
  font-size: 16px; color: #5c6b80 !important; flex-shrink: 0;
  transition: transform .2s; width: 20px; text-align: center;
}
.tl-detail { padding-bottom: 12px; animation: slideDown .2s ease; }
.tl-detail p { color: #1a1a2e !important; font-size: 13px; line-height: 1.75; }
@keyframes slideDown { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:translateY(0); } }

.inzending-status {
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}
.status-wacht { background: #fff8e1; color: #e07b2a; border: 1px solid #e07b2a; }
.status-ok    { background: #e8f5e9; color: #3a7d44; border: 1px solid #3a7d44; }

/* ── Activiteiten overzicht kaart ───────────────────────── */
.act-kaart-groot {
  display: flex; align-items: center; gap: 14px;
  background: white; border: 1.5px solid var(--rh-rand);
  border-radius: var(--r-md); padding: 14px 16px;
  text-decoration: none; color: inherit; transition: all .2s;
  box-shadow: var(--schaduw-sm);
}
.act-kaart-groot:hover { border-color: var(--rh-roze); box-shadow: var(--schaduw-md); transform: translateX(4px); text-decoration: none; }
.act-datum-blok {
  width: 52px; height: 52px; border-radius: var(--r-sm);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.act-dag   { font-size: 20px; font-weight: 700; color: white; line-height: 1; }
.act-maand { font-size: 10px; color: rgba(255,255,255,.85); text-transform: uppercase; letter-spacing: .04em; }
.act-info  { flex: 1; min-width: 0; }
.act-kaart-titel { font-size: 14px; font-weight: 700; color: #1a3f6f; line-height: 1.3; }
.act-kaart-meta  { font-size: 11px; color: #5c6b80; margin-top: 3px; }
.act-kaart-omschr { font-size: 12px; color: #5c6b80; margin-top: 4px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Initiatieven overzicht kaart ───────────────────────── */
.init-kaart-groot {
  display: flex; align-items: center; gap: 14px;
  background: white; border: 1.5px solid var(--rh-rand);
  border-radius: var(--r-md); padding: 14px 16px;
  text-decoration: none; color: inherit; transition: all .2s;
  box-shadow: var(--schaduw-sm);
}
.init-kaart-groot:hover { border-color: var(--rh-blauw-mid); box-shadow: var(--schaduw-md); transform: translateX(4px); text-decoration: none; }
.init-groot-stip {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
}

/* ── Meedoen tabs ────────────────────────────────────────── */
.meedoen-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 16px; margin-bottom: 12px;
}
.meedoen-tab {
  flex: 1; min-width: 120px; padding: 10px 14px;
  background: white; border: 1.5px solid var(--rh-rand);
  border-radius: var(--r-sm); font-size: 13px; font-weight: 600;
  color: var(--rh-gedimpt); font-family: var(--font);
  cursor: pointer; transition: all .2s; position: relative;
}
.meedoen-tab:hover { border-color: var(--rh-blauw); color: var(--rh-blauw); }
.meedoen-tab.aktief { background: var(--rh-blauw); border-color: var(--rh-blauw); color: white; }
.meedoen-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--rh-roze); color: white; border-radius: 10px;
  font-size: 10px; font-weight: 700; min-width: 16px; height: 16px;
  padding: 0 4px; margin-left: 4px;
}
@media (max-width: 680px) {
  .meedoen-tab { min-width: calc(50% - 6px); flex: none; font-size: 12px; }
}

/* ── Nieuws filter tabs ──────────────────────────────────── */
.nieuws-filter-knop {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 700;
  text-decoration: none; border: 1.5px solid var(--rh-rand);
  color: var(--rh-gedimpt); background: white; transition: all .2s; white-space: nowrap;
}
.nieuws-filter-knop:hover { border-color: var(--rh-blauw); color: var(--rh-blauw); text-decoration: none; }
.nieuws-filter-knop.aktief {
  background: var(--filter-kleur, var(--rh-blauw));
  border-color: var(--filter-kleur, var(--rh-blauw));
  color: white;
}

/* ── Huiskamer chat ──────────────────────────────────────── */
#chat-berichten::-webkit-scrollbar { width: 4px; }
#chat-berichten::-webkit-scrollbar-track { background: var(--rh-zand); }
#chat-berichten::-webkit-scrollbar-thumb { background: var(--rh-rand); border-radius: 4px; }
.chat-bericht { animation: chatIn .2s ease; }
@keyframes chatIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

/* ── Auth pagina (inloggen / registreren) ────────────────── */
.pz-auth-pagina {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--rh-blauw) 0%, var(--rh-blauw-mid) 60%, #1a6f6f 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px 16px;
}
.pz-auth-kaart {
  background: white; border-radius: var(--r-lg);
  width: 100%; max-width: 420px;
  padding: 28px 24px;
  box-shadow: 0 24px 64px rgba(10,24,48,.3);
  display: flex; flex-direction: column; gap: 14px;
}
.pz-auth-logo {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 16px; border-bottom: 1px solid var(--rh-rand);
}
.pz-auth-logo-icoon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--rh-blauw-licht);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pz-auth-logo-titel {
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  color: var(--rh-blauw); line-height: 1.1;
}
.pz-auth-logo-sub {
  font-size: 12px; color: var(--rh-gedimpt); margin-top: 2px;
}
.pz-auth-titel {
  font-size: 22px; font-weight: 700; color: var(--rh-blauw);
  font-family: var(--serif); margin-bottom: -6px;
}
.pz-auth-intro { font-size: 13px; color: var(--rh-gedimpt); margin-top: -6px; }
.pz-auth-form  { display: flex; flex-direction: column; gap: 12px; }
.pz-auth-scheiding {
  display: flex; align-items: center; gap: 10px;
  color: var(--rh-gedimpt); font-size: 12px;
}
.pz-auth-scheiding::before,
.pz-auth-scheiding::after {
  content: ''; flex: 1; height: 1px; background: var(--rh-rand);
}
.pz-auth-registreer-knop {
  display: block; text-align: center;
  padding: 12px 24px; border-radius: var(--r-sm);
  border: 1.5px solid var(--rh-blauw); color: var(--rh-blauw);
  font-size: 14px; font-weight: 700; text-decoration: none;
  transition: all .2s;
}
.pz-auth-registreer-knop:hover {
  background: var(--rh-blauw); color: white; text-decoration: none;
}
.pz-auth-privacy {
  font-size: 11px; color: var(--rh-gedimpt); text-align: center; line-height: 1.5;
}
.pz-auth-privacy a { color: var(--rh-blauw-mid); }

/* auth pagina heeft geen topbar nodig */
.pz-auth-pagina ~ * .site-topbar { display: none; }

/* ── Buren overzicht kaart ───────────────────────────────── */
.buren-kaart-groot {
  display: flex; align-items: center; gap: 14px;
  background: var(--rh-wit); border: 1.5px solid var(--rh-rand);
  border-radius: var(--r-md); padding: 14px 16px;
  text-decoration: none; color: inherit; transition: all .2s;
  box-shadow: var(--schaduw-sm);
}
.buren-kaart-groot:hover { border-color: var(--rh-blauw-mid); box-shadow: var(--schaduw-md); transform: translateX(4px); text-decoration: none; }
.avatar-groot { width: 56px !important; height: 56px !important; font-size: 18px !important; flex-shrink: 0; }
.bkd-info { flex: 1; min-width: 0; }
.bkd-naam { font-size: 14px; font-weight: 700; color: var(--rh-blauw); }
.bkd-straat { font-weight: 400; color: var(--rh-gedimpt); font-size: 13px; }
.bkd-meta { font-size: 12px; color: var(--rh-gedimpt); margin-top: 3px; }
.bkd-bio { font-size: 12px; color: var(--rh-gedimpt); margin-top: 4px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bkd-cta {
  font-size: 11px; font-weight: 700; color: var(--rh-roze);
  white-space: nowrap; padding: 4px 10px;
  border: 1.5px solid var(--rh-roze); border-radius: 20px; flex-shrink: 0;
  transition: all .2s;
}
.buren-kaart-groot:hover .bkd-cta { background: var(--rh-roze); color: white; }

/* ── Kaart tabs ──────────────────────────────────────────── */
.kaart-tab {
  flex: 1; padding: 10px; font-size: 12px; font-weight: 700;
  background: none; border: none; cursor: pointer;
  color: var(--rh-gedimpt); font-family: var(--font);
  border-bottom: 2px solid transparent; transition: all .2s;
}
.kaart-tab:hover { color: var(--rh-blauw); }
.kaart-tab-actief { color: var(--rh-blauw); border-bottom-color: var(--rh-blauw); }

/* ── Profielfoto groot ───────────────────────────────────── */
.avatar-foto {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--rh-rand);
}
.pz-foto-upload {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px; background: var(--rh-zand);
  border: 1.5px solid var(--rh-rand); border-radius: var(--r-sm);
}
.pz-foto-preview {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--rh-rand);
}
.pz-input-file {
  font-size: 12px; color: var(--rh-gedimpt);
  font-family: var(--font);
}
.pz-textarea {
  resize: vertical; min-height: 100px; line-height: 1.5;
}
.pz-bio-preview {
  margin-top: 10px; padding: 10px 12px;
  background: var(--rh-zand); border-radius: var(--r-sm);
  font-size: 12px; color: var(--rh-gedimpt); line-height: 1.6;
  border-left: 3px solid var(--rh-blauw-mid);
}

/* ── Profiel formulier ───────────────────────────────────── */
.pz-veld { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pz-veld-rij { display: flex; gap: 12px; }
@media (max-width: 480px) { .pz-veld-rij { flex-direction: column; } }
.pz-label { font-size: 12px; font-weight: 700; color: var(--rh-blauw); letter-spacing: .02em; }
.pz-input {
  padding: 9px 12px; border-radius: var(--r-sm);
  border: 1.5px solid var(--rh-rand); font-size: 13px;
  font-family: var(--font); color: var(--rh-tekst);
  background: var(--rh-wit); width: 100%; transition: border-color .2s;
}
.pz-input:focus { outline: none; border-color: var(--rh-blauw-mid); box-shadow: 0 0 0 3px rgba(42,95,168,.12); }
.pz-hint { font-size: 11px; color: var(--rh-gedimpt); margin-top: 2px; }
.pz-sectie-kop {
  font-size: 12px; font-weight: 700; color: var(--rh-blauw);
  text-transform: uppercase; letter-spacing: .06em;
  padding-top: 8px; border-top: 1px solid var(--rh-rand); margin-top: 4px;
}
.pz-toggle-rij {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  padding: 10px 12px; background: var(--rh-zand);
  border: 1.5px solid var(--rh-rand); border-radius: var(--r-sm);
}
.pz-toggle-rij input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; accent-color: var(--rh-blauw); }
.pz-toggle-tekst { display: flex; flex-direction: column; gap: 2px; }
.pz-toggle-tekst strong { font-size: 13px; color: var(--rh-blauw); }
.pz-toggle-tekst span { font-size: 11px; color: var(--rh-gedimpt); }
.pz-opslaan-knop {
  background: var(--rh-blauw); color: white; border: none;
  padding: 12px 24px; border-radius: var(--r-sm); font-size: 14px; font-weight: 700;
  font-family: var(--font); cursor: pointer; transition: background .2s; width: 100%;
}
.pz-opslaan-knop:hover { background: var(--rh-blauw-mid); }
.pz-veld-groep { display: flex; flex-direction: column; gap: 12px; }

/* ── Meldingen ───────────────────────────────────────────── */
.pz-melding {
  padding: 12px 16px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600; margin-top: 12px;
}
.pz-melding-succes { background: rgba(58,125,68,.12); color: var(--rh-groen); border: 1.5px solid rgba(58,125,68,.3); }
.pz-melding-fout   { background: var(--rh-roze-licht); color: var(--rh-roze); border: 1.5px solid rgba(192,50,111,.3); }

/* ── Topbar acties ───────────────────────────────────────── */
.topbar-acties { display: flex; align-items: center; gap: 8px; }

/* ── Mobiel/Desktop zichtbaarheid ────────────────────────── */
.topbar-nav-desktop { display: flex; }
.topbar-nav-mobiel  { display: none; }

/* ── Hamburger knop ──────────────────────────────────────── */
.topbar-hamburger {
  background: none; border: none; cursor: pointer;
  padding: 6px; display: flex; flex-direction: column;
  gap: 5px; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex-shrink: 0;
}
.topbar-hamburger span {
  display: block; width: 22px; height: 2px;
  background: white; border-radius: 2px;
  transition: all .25s ease; transform-origin: center;
}
.topbar-hamburger.hamburger-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar-hamburger.hamburger-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.topbar-hamburger.hamburger-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobiel menu (slide-in van links) ────────────────────── */
.mobiel-menu {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 9997;
  width: 280px; max-width: 85vw;
  background: white; box-shadow: 4px 0 24px rgba(26,63,111,.2);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; overscroll-behavior: contain;
}
.mobiel-menu-dicht { transform: translateX(-100%); }
.mobiel-menu-open  { transform: translateX(0); }
.mobiel-menu-inhoud { padding: 70px 0 24px; }
.mobiel-menu-sectie { padding: 4px 0; }
.mobiel-menu-label {
  font-size: 10px; font-weight: 700; color: var(--rh-gedimpt);
  text-transform: uppercase; letter-spacing: .08em;
  padding: 8px 20px 4px;
}
.mobiel-menu-link {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 20px; font-size: 15px; font-weight: 600;
  color: var(--rh-blauw); text-decoration: none;
  transition: background .15s; border-left: 3px solid transparent;
}
.mobiel-menu-link:hover { background: var(--rh-blauw-licht); border-left-color: var(--rh-blauw); text-decoration: none; }
.mobiel-menu-link span { flex: 1; }
.mobiel-menu-link-blauw { color: var(--rh-blauw); }
.mobiel-menu-link-roze  { color: var(--rh-roze); }
.mobiel-menu-link-roze:hover { background: var(--rh-roze-licht); border-left-color: var(--rh-roze); }
.mobiel-menu-scheider { height: 1px; background: var(--rh-rand); margin: 8px 20px; }

/* ── Overlay achter mobiel menu ──────────────────────────── */
.mobiel-overlay {
  position: fixed; inset: 0; z-index: 9996;
  background: rgba(10,24,48,.5); opacity: 0;
  pointer-events: none; transition: opacity .3s;
}
.mobiel-overlay-actief { opacity: 1; pointer-events: auto; }

/* ── Responsive breakpoints ──────────────────────────────── */
@media (max-width: 680px) {
  .topbar-nav-desktop { display: none !important; }
  .topbar-acties      { display: none !important; }
  .topbar-nav-mobiel  { display: flex !important; }

  /* Logo tekst inkorten op heel smal scherm */
  .topbar-logo-tekst  { font-size: 12px; }
  .topbar-logo-tekst span { font-size: 10px; }

  /* Hero aanpassen */
  .hero-adres  { font-size: 20px; }
  .site-hero   { padding: 20px 16px 16px; }
  .hero-chips  { gap: 6px; }
  .hero-chip   { font-size: 11px; padding: 4px 10px; }

  /* Kaarten */
  .site-main   { padding: 0 10px 30px; }
  .pz-twee-kolom { grid-template-columns: 1fr; }
  .bronnen-grid  { grid-template-columns: 1fr; }
  .source-grid   { grid-template-columns: 1fr; }

  /* Floating chat kleiner op mobiel */
  #fc-wrap { bottom: 12px; right: 12px; }
  .fc-venster { width: calc(100vw - 24px); max-width: 340px; }

  /* Auth pagina */
  .pz-auth-kaart { padding: 20px 16px; }

  /* Tijdlijn */
  .pz-tijdlijn { padding: 20px 12px 14px; }
}

@media (max-width: 380px) {
  .topbar-logo-tekst { display: none; }
  #fc-bubble { width: 46px; height: 46px; font-size: 18px; }
}

/* ── Topbar dropdown ─────────────────────────────────────── */
.topbar-dropdown { position: relative; }
.topbar-dropdown-trigger {
  color: rgba(255,255,255,.75); font-size: 12px; font-weight: 600;
  text-decoration: none; display: flex; align-items: center; gap: 3px; cursor: pointer;
}
.topbar-dropdown-trigger:hover { color: white; text-decoration: none; }
.topbar-dropdown-pijl { font-size: 9px; opacity: .7; }
.topbar-dropdown-menu {
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%); background: white;
  border-radius: var(--r-md); box-shadow: var(--schaduw-lg);
  border: 1px solid var(--rh-rand); min-width: 200px; z-index: 999;
  overflow: hidden;
  transition: opacity .2s ease, visibility .2s ease;
  /* 1 seconde vertraging bij weggaan — ook voor mensen die langzamer bewegen */
  transition-delay: 0s, 1s;
}
.topbar-dropdown:hover .topbar-dropdown-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}
/* Onzichtbaar gebied tussen trigger en menu zodat muis niet "valt" */
.topbar-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px; left: 0; right: 0;
  height: 12px;
}
.topbar-dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; font-size: 13px; font-weight: 600;
  color: var(--rh-blauw); text-decoration: none; transition: background .15s;
}
.topbar-dropdown-menu a:hover { background: var(--rh-blauw-licht); text-decoration: none; }
.topbar-dropdown-menu a span { flex: 1; }
.topbar-dropdown-scheider { height: 1px; background: var(--rh-rand); margin: 4px 0; }

/* ── Welkomst popup ──────────────────────────────────────── */
.pz-popup-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10,24,48,.6);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: fadeIn .3s ease;
}
.pz-popup-overlay.verborgen { display: none; }
.pz-popup {
  background: white; border-radius: var(--r-lg);
  max-width: 480px; width: 100%;
  box-shadow: 0 24px 64px rgba(10,24,48,.3);
  overflow: hidden;
  animation: slideUp .35s ease;
}
.pz-popup-header {
  background: linear-gradient(135deg, var(--rh-blauw) 0%, var(--rh-blauw-mid) 100%);
  padding: 28px 24px 22px; position: relative; overflow: hidden;
}
.pz-popup-header::before {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 140px; height: 140px; border-radius: 50%;
  background: rgba(192,50,111,.2); pointer-events: none;
}
.pz-popup-icoon {
  font-size: 36px; margin-bottom: 10px; display: block;
}
.pz-popup-titel {
  font-family: var(--serif); font-size: 22px; font-weight: 600;
  color: white; line-height: 1.2; margin-bottom: 4px;
}
.pz-popup-subtitel {
  font-size: 13px; color: rgba(255,255,255,.7);
}
.pz-popup-body {
  padding: 22px 24px;
}
.pz-popup-tekst {
  font-size: 14px; line-height: 1.75; color: var(--rh-tekst);
}
.pz-popup-tekst p { margin-bottom: 10px; }
.pz-popup-tekst p:last-child { margin-bottom: 0; }
.pz-popup-chips {
  display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0;
}
.pz-popup-chip {
  background: var(--rh-blauw-licht); color: var(--rh-blauw);
  font-size: 12px; font-weight: 700; padding: 4px 12px;
  border-radius: 20px; border: 1.5px solid var(--rh-rand);
}
.pz-popup-footer {
  padding: 0 24px 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.pz-popup-toggle {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 10px 14px; background: var(--rh-zand);
  border-radius: var(--r-sm); border: 1.5px solid var(--rh-rand);
}
.pz-popup-toggle input { accent-color: var(--rh-blauw); width: 16px; height: 16px; flex-shrink: 0; }
.pz-popup-toggle-tekst { font-size: 13px; color: var(--rh-gedimpt); }
.pz-popup-knop {
  background: var(--rh-blauw); color: white; border: none;
  padding: 13px 24px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 700; font-family: var(--font);
  cursor: pointer; transition: background .2s; width: 100%;
}
.pz-popup-knop:hover { background: var(--rh-blauw-mid); }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ── Registreren link in topbar ──────────────────────────── */
.topbar-registreer {
  color: rgba(255,255,255,.75); font-size: 12px; font-weight: 600; text-decoration: none;
}
.topbar-registreer:hover { color: white; text-decoration: none; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--rh-blauw); color: rgba(255,255,255,.6);
  font-size: 11px; text-align: center; padding: 16px 20px; margin-top: 24px; line-height: 1.6;
}
.site-footer a { color: rgba(255,255,255,.8); }
.site-footer a:hover { color: white; }
.site-footer strong { color: white; }

@media (max-width: 600px) {
  .hero-adres { font-size: 22px; }
  .site-main  { padding: 0 10px 30px; }
}
