/*
 * Bestand  : componenten.css
 * Project  : Kantoorruimte Dijkhuizen
 * Datum    : 2026-10-01
 * Doel     : Herbruikbare UI-componenten — knoppen, kaarten, badges, tabellen,
 *            formuliervelden, FAQ, meldingen en de zwevende contactknoppen.
 */

@import url('variabelen.css');


/* ═══════════════════════════════════════════════════════════════════════════
   KNOPPEN
   ═══════════════════════════════════════════════════════════════════════════ */

/* Pilvormig, zoals in alle drie de references, met een pijl erachter die
   bij hover meebeweegt. */
.knop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.95rem 1.6rem;
  min-height: 48px;
  border-radius: var(--afronding-pill);
  font-family: var(--font-tekst);
  font-size: var(--tekst-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--overgang), color var(--overgang),
              border-color var(--overgang), transform var(--overgang);
  cursor: pointer;
}

.knop svg { flex-shrink: 0; }

/* Ronde pijl in de knop, zoals bij 'Get Started' en 'Оставить заявку' */
.knop--pijl::after {
  content: '→';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: -0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.9em;
  line-height: 1;
  transition: transform var(--overgang);
}

.knop--pijl:hover::after { transform: translateX(3px); }
.knop--outline.knop--pijl::after,
.knop--wit.knop--pijl::after { background: rgba(0, 123, 255, 0.14); }

.knop--primair {
  background: var(--kleur-accent);
  border-color: var(--kleur-accent);
  color: var(--kleur-wit);
}

.knop--primair:hover {
  background: var(--kleur-accent-diep);
  border-color: var(--kleur-accent-diep);
  color: var(--kleur-wit);
  text-decoration: none;
}

/* Omlijnd op lichte achtergrond */
.knop--outline {
  background: transparent;
  border-color: var(--kleur-accent);
  color: var(--kleur-accent);
}

.knop--outline:hover {
  background: var(--kleur-accent);
  color: var(--kleur-wit);
  text-decoration: none;
}

/* Omlijnd op donkere achtergrond of foto */
.knop--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--kleur-wit);
}

.knop--ghost:hover {
  background: var(--kleur-wit);
  border-color: var(--kleur-wit);
  color: var(--kleur-donker);
  text-decoration: none;
}

/* Wit op gekleurde achtergrond */
.knop--wit {
  background: var(--kleur-wit);
  border-color: var(--kleur-wit);
  color: var(--kleur-accent);
}

.knop--wit:hover {
  background: transparent;
  color: var(--kleur-wit);
  text-decoration: none;
}

/* ─── Tekstlink — het terugkerende 'lees verder'-element ────────────────────
   Een gespatieerd label op een haarlijn die bij hover in de accentkleur
   van links naar rechts dichtloopt. Dit element komt op elke pagina terug.
   ────────────────────────────────────────────────────────────────────────── */

.tekstlink {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 7px;
  font-family: var(--font-tekst);
  font-size: var(--tekst-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kleur-tekst-sterk);
  /* De rustende haarlijn */
  border-bottom: 1px solid var(--kleur-lijn);
}

/* Het pijltje staat ná het label, vandaar order */
.tekstlink::before {
  content: '→';
  order: 1;
  font-size: 1.1em;
  line-height: 1;
  transition: transform 0.35s cubic-bezier(0.16, 0.8, 0.24, 1);
}

/* De accentlijn die bij hover van links naar rechts dichtloopt */
.tekstlink::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--kleur-accent);
  transition: width 0.45s cubic-bezier(0.16, 0.8, 0.24, 1);
}

.tekstlink:hover,
.tekstlink:focus-visible { color: var(--kleur-accent); text-decoration: none; }
.tekstlink:hover::after,
.tekstlink:focus-visible::after { width: 100%; }
.tekstlink:hover::before { transform: translateX(5px); }

/* Op donkere ondergrond */
.sectie--donker .tekstlink,
.held .tekstlink,
.cta .tekstlink {
  color: var(--kleur-wit);
  border-bottom-color: var(--kleur-lijn-donker);
}


/* ═══════════════════════════════════════════════════════════════════════════
   FOTOVLAK — het dragende element van de site
   Elke foto zit in een frame met een vaste beeldverhouding, zodat de pagina
   niet verspringt terwijl de afbeeldingen laden. Is het frame aanklikbaar,
   dan zoomt de foto bij hover licht in en verschijnt er een ronde pijlknop.
   ═══════════════════════════════════════════════════════════════════════════ */

.foto {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--afronding-foto);
  background: var(--kleur-accent-zacht);
  isolation: isolate;
}

.foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.16, 0.8, 0.24, 1);
}

/* Ontbreekt het bestand nog, dan mag de alt-tekst niet als losse regel in
   beeld komen voordat het script de <img> weghaalt. */
.foto img,
.held__foto img,
.cta__foto img,
.pagina-kop__foto img { color: transparent; }

/* Beeldverhoudingen — benoemd naar gebruik, niet naar getal */
.foto--breed    { aspect-ratio: 16 / 9; }
.foto--liggend  { aspect-ratio: 4 / 3; }
.foto--vierkant { aspect-ratio: 1 / 1; }
.foto--staand   { aspect-ratio: 4 / 5; }
.foto--hoog     { aspect-ratio: 3 / 4; }
.foto--vullend  { height: 100%; }

/* ─── Aanklikbaar fotovlak ─────────────────────────────────────────────── */

a.foto,
button.foto {
  cursor: pointer;
  border: none;
  padding: 0;
  width: 100%;
}

a.foto:hover,
button.foto:hover { text-decoration: none; }

a.foto:hover img,
button.foto:hover img,
.foto-kaart:hover .foto img { transform: scale(1.05); }

/* Verloop onderin, zodat een bijschrift op de foto leesbaar blijft */
.foto--bijschrift::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background: linear-gradient(to top, rgba(20, 24, 28, 0.78) 0%, transparent 100%);
  pointer-events: none;
}

/* ─── Ronde pijlknop rechtsonder op de foto ────────────────────────────── */

.foto__pijl {
  position: absolute;
  right: var(--ruimte-2);
  bottom: var(--ruimte-2);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--kleur-wit);
  color: var(--kleur-accent);
  box-shadow: var(--schaduw-zacht);
  transition: background var(--overgang), color var(--overgang), transform var(--overgang);
}

a.foto:hover .foto__pijl,
button.foto:hover .foto__pijl,
.foto-kaart:hover .foto__pijl {
  background: var(--kleur-accent);
  color: var(--kleur-wit);
  transform: translate(2px, -2px);
}

/* ─── Bijschrift op de foto ────────────────────────────────────────────── */

.foto__label {
  position: absolute;
  left: var(--ruimte-3);
  bottom: var(--ruimte-3);
  right: calc(var(--ruimte-2) + 56px);
  z-index: 2;
  text-align: left;
  color: var(--kleur-wit);
}

.foto__label-titel {
  display: block;
  font-family: var(--font-kop);
  font-size: var(--tekst-lg);
  font-weight: 700;
  line-height: 1.2;
}

.foto__label-sub {
  display: block;
  margin-top: 3px;
  font-size: var(--tekst-xs);
  color: rgba(255, 255, 255, 0.78);
}

/* Badge linksboven op de foto */
.foto__badge {
  position: absolute;
  top: var(--ruimte-2);
  left: var(--ruimte-2);
  z-index: 2;
  background: var(--kleur-wit);
  box-shadow: var(--schaduw-zacht);
}


/* ═══════════════════════════════════════════════════════════════════════════
   FOTOPLAATSHOUDER IN EEN FRAME
   Zolang de foto's nog niet zijn aangeleverd vult dit het frame op, met het
   exacte pad en formaat erin. Vervangen door <img> en het frame blijft staan.
   ═══════════════════════════════════════════════════════════════════════════ */

.foto__wacht {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: var(--ruimte-3);
  background: var(--kleur-accent-zacht);
  border: 1px dashed var(--kleur-accent-rand);
  border-radius: inherit;
}

.foto__wacht svg { color: #b4c4dd; }

.foto__wacht-label {
  font-family: var(--font-tekst);
  font-size: var(--tekst-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kleur-secundair);
}

.foto__wacht-pad {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--kleur-tekst);
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-accent-rand);
  border-radius: var(--afronding-klein);
  padding: 4px 10px;
  word-break: break-all;
  max-width: 100%;
}

.foto__wacht-spec {
  font-size: 11px;
  line-height: 1.5;
  color: var(--kleur-secundair);
  max-width: 34ch;
}

/* In een klein frame alleen het pad tonen */
.foto--klein .foto__wacht-spec,
.foto--klein .foto__wacht svg { display: none; }


/* ═══════════════════════════════════════════════════════════════════════════
   LIGHTBOX — foto's op volle grootte bekijken
   ═══════════════════════════════════════════════════════════════════════════ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(16, 20, 24, 0.92);
  overscroll-behavior: contain;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox[open],
.lightbox.open { display: flex; }

.lightbox__beeld {
  width: auto;
  height: auto;
  max-width: min(1200px, 100%);
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--afronding);
  box-shadow: var(--schaduw-sterk);
}

.lightbox__bijschrift {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(16px, 3vw, 32px);
  text-align: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--tekst-sm);
  padding: 0 var(--ruimte-4);
}

.lightbox__teller {
  display: block;
  margin-top: 4px;
  font-size: var(--tekst-xs);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.08em;
}

/* Bedieningsknoppen */
.lightbox__knop {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  color: var(--kleur-wit);
  touch-action: manipulation;
  cursor: pointer;
  transition: background var(--overgang), border-color var(--overgang);
}

.lightbox__knop:hover {
  background: var(--kleur-accent);
  border-color: var(--kleur-accent);
}

.lightbox__sluit { top: clamp(16px, 3vw, 32px); right: clamp(16px, 3vw, 32px); }
.lightbox__vorige { left: clamp(12px, 2.5vw, 28px); top: 50%; transform: translateY(-50%); }
.lightbox__volgende { right: clamp(12px, 2.5vw, 28px); top: 50%; transform: translateY(-50%); }


/* ═══════════════════════════════════════════════════════════════════════════
   KAARTEN
   ═══════════════════════════════════════════════════════════════════════════ */

/* Wit paneel met ruime ronding op de lichte ondergrond */
.kaart {
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-grens);
  border-radius: var(--afronding-groot);
  padding: var(--ruimte-4);
  transition: transform var(--overgang), box-shadow var(--overgang), border-color var(--overgang);
}

.kaart--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--schaduw-medium);
  border-color: rgba(0, 123, 255, 0.20);
  text-decoration: none;
}

.sectie--donker .kaart {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--kleur-lijn-donker);
}

/* Kaart die als geheel een link is */
a.kaart { display: block; color: inherit; }
a.kaart:hover { text-decoration: none; }

.kaart__icoon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--afronding-klein);
  background: var(--kleur-accent-zacht);
  color: var(--kleur-accent);
  margin-bottom: var(--ruimte-2);
}

.kaart__icoon svg { width: 24px; height: 24px; }

.kaart h3,
.kaart h4 { color: var(--kleur-donker); }

/* Op een donkere sectie moet de kaartkop wit blijven — anders valt hij weg */
.sectie--donker .kaart h3,
.sectie--donker .kaart h4 { color: var(--kleur-wit); }

.kaart p:last-child { margin-bottom: 0; }


/* ═══════════════════════════════════════════════════════════════════════════
   BADGES & LABELS
   ═══════════════════════════════════════════════════════════════════════════ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--kleur-accent-zacht);
  color: var(--kleur-accent-diep);
  font-family: var(--font-tekst);
  font-size: var(--tekst-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--afronding-klein);
  padding: 6px 12px;
  line-height: 1.4;
}

.badge--vrij {
  background: var(--kleur-ja-zacht);
  color: var(--kleur-ja);
}

.badge--onbekend {
  background: var(--kleur-let-op-zacht);
  color: var(--kleur-let-op);
}

/* Eyebrow — het label boven elke sectiekop. Benoemt waar de sectie over gaat,
   zodat de kop zelf vrij is om een uitspraak te doen in plaats van een
   categorie te herhalen. */
.overline {
  display: block;
  font-family: var(--font-tekst);
  font-size: var(--tekst-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kleur-accent);
  margin-bottom: var(--ruimte-2);
}

.sectie--donker .overline,
.held .overline,
.cta .overline { color: var(--kleur-wit); opacity: 0.75; }


/* ═══════════════════════════════════════════════════════════════════════════
   PLAATSHOUDER — nog ontbrekende ruimtegegevens
   Alle gegevens die de verhuurder nog moet aanleveren (m², prijs, voorwaarden)
   krijgen dit label, zodat ze na oplevering in één oogopslag te vinden zijn.
   ═══════════════════════════════════════════════════════════════════════════ */

.placeholder {
  display: inline-block;
  background: var(--kleur-let-op-zacht);
  color: var(--kleur-let-op);
  border: 1px dashed #d8c47e;
  border-radius: var(--afronding-klein);
  padding: 0.05em 0.5em;
  font-family: var(--font-tekst);
  font-size: 0.9em;
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════════════════════
   MELDINGEN / TOELICHTINGSBLOKKEN
   ═══════════════════════════════════════════════════════════════════════════ */

.melding {
  display: flex;
  gap: var(--ruimte-2);
  background: var(--kleur-accent-zacht);
  border-left: 3px solid var(--kleur-accent);
  border-radius: 0;
  padding: var(--ruimte-3);
  font-size: var(--tekst-sm);
  line-height: 1.6;
}

.melding__icoon {
  flex-shrink: 0;
  color: var(--kleur-accent);
}

.melding p:last-child { margin-bottom: 0; }

.melding--let-op {
  background: var(--kleur-let-op-zacht);
  border-left-color: #d8c47e;
}

.melding--let-op .melding__icoon { color: var(--kleur-let-op); }

.melding--neutraal {
  background: var(--kleur-licht);
  border-left-color: var(--kleur-accent-rand);
}

.melding--neutraal .melding__icoon { color: var(--kleur-secundair); }

/* Bronvermelding onder tabellen en vergelijkingen */
.bronnoot {
  font-size: var(--tekst-xs);
  color: var(--kleur-secundair);
  line-height: 1.6;
  margin-top: var(--ruimte-2);
}


/* ═══════════════════════════════════════════════════════════════════════════
   TABELLEN
   ═══════════════════════════════════════════════════════════════════════════ */

.tabel-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--afronding-groot);
  border: 1px solid var(--kleur-grens);
  background: var(--kleur-wit);
  padding: 0 var(--ruimte-3);
}

.tabel {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: var(--tekst-sm);
}

.tabel th,
.tabel td {
  padding: var(--ruimte-3) var(--ruimte-3) var(--ruimte-3) 0;
  text-align: left;
  border-bottom: 1px solid var(--kleur-lijn);
  vertical-align: top;
}

/* Kolomtitels zijn labels, geen koppen — klein, gespatieerd, geen vlak */
.tabel thead th {
  font-family: var(--font-tekst);
  font-size: var(--tekst-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kleur-secundair);
  background: transparent;
  padding-top: var(--ruimte-2);
  padding-bottom: var(--ruimte-2);
  white-space: nowrap;
}

.tabel tbody tr:hover { background: var(--kleur-licht); }

.tabel__nadruk {
  font-family: var(--font-kop);
  font-weight: 700;
  color: var(--kleur-donker);
}

/* Rij van het eigen aanbod valt op door een accentlijn ervoor, niet door
   een gekleurd vlak — dezelfde taal als de rest van de opbouw. */
.tabel tr.tabel__rij--eigen td { font-weight: 600; color: var(--kleur-tekst-sterk); }
.tabel tr.tabel__rij--eigen td:first-child {
  box-shadow: inset 3px 0 0 var(--kleur-accent);
  padding-left: var(--ruimte-2);
}


/* ═══════════════════════════════════════════════════════════════════════════
   SPECIFICATIELIJST — m², prijs, werkplekken per ruimte
   ═══════════════════════════════════════════════════════════════════════════ */

.spec-lijst {
  list-style: none;
  padding: 0;
  margin: 0;
}

.spec-lijst {
  border-top: 1px solid var(--kleur-lijn);
}

.spec-lijst li {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ruimte-1);
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--kleur-lijn);
  margin: 0;
  font-size: var(--tekst-sm);
}

.spec-lijst__naam {
  font-size: var(--tekst-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--kleur-secundair);
}

.spec-lijst__waarde {
  font-family: var(--font-kop);
  font-size: var(--tekst-lg);
  font-weight: 700;
  color: var(--kleur-donker);
  text-align: right;
}


/* ═══════════════════════════════════════════════════════════════════════════
   CHECKLIJST — wel / niet inbegrepen
   ═══════════════════════════════════════════════════════════════════════════ */

.checklijst {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--ruimte-1);
}

.checklijst li {
  display: flex;
  align-items: flex-start;
  gap: var(--ruimte-2);
  margin: 0;
  padding: 0.55rem 0;
  font-size: var(--tekst-sm);
  line-height: 1.6;
}

.checklijst__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  background: var(--kleur-accent-zacht);
  color: var(--kleur-accent);
}

.checklijst__marker--ja  { background: var(--kleur-ja-zacht);  color: var(--kleur-ja); }
.checklijst__marker--nee { background: var(--kleur-nee-zacht); color: var(--kleur-nee); }
.checklijst__marker--onbekend { background: var(--kleur-let-op-zacht); color: var(--kleur-let-op); }

.checklijst__marker svg { width: 13px; height: 13px; }


/* ═══════════════════════════════════════════════════════════════════════════
   FAQ — native details/summary, geen JavaScript nodig
   ═══════════════════════════════════════════════════════════════════════════ */

.faq {
  border-top: 1px solid var(--kleur-lijn);
}

.faq__item {
  border-bottom: 1px solid var(--kleur-lijn);
}

.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--ruimte-3);
  padding: var(--ruimte-3) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-kop);
  font-size: var(--tekst-lg);
  font-weight: 600;
  color: var(--kleur-donker);
  transition: color var(--overgang);
}

.faq__item summary:hover { color: var(--kleur-accent); }
.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: '+';
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--kleur-accent-zacht);
  color: var(--kleur-accent);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  transition: var(--overgang);
}

.faq__item[open] summary::after {
  content: '−';
  background: var(--kleur-accent);
  color: var(--kleur-wit);
}

.faq__antwoord {
  padding: 0 0 var(--ruimte-3);
  max-width: var(--container-tekst);
  font-size: var(--tekst-sm);
}


/* ═══════════════════════════════════════════════════════════════════════════
   FORMULIERVELDEN
   ═══════════════════════════════════════════════════════════════════════════ */

.formulier {
  display: grid;
  gap: var(--ruimte-3);
}

.formulier__veld { display: grid; gap: 6px; }

.formulier__veld label {
  font-family: var(--font-tekst);
  font-size: var(--tekst-sm);
  font-weight: 600;
  color: var(--kleur-tekst-sterk);
}

.formulier__hint {
  font-size: var(--tekst-xs);
  color: var(--kleur-secundair);
}

input,
textarea,
select {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--afronding);
  padding: 0.8rem var(--ruimte-2);
  font-family: var(--font-tekst);
  font-size: var(--tekst-base);
  color: var(--kleur-donker);
  background: var(--kleur-wit);
  transition: var(--overgang);
  appearance: none;
}

textarea { resize: vertical; min-height: 140px; }

input:focus,
textarea:focus,
select:focus {
  border-color: var(--kleur-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236c757d' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--ruimte-2) center;
  padding-right: var(--ruimte-5);
}


/* ═══════════════════════════════════════════════════════════════════════════
   ZWEVENDE KNOPPEN — WhatsApp & naar boven
   ═══════════════════════════════════════════════════════════════════════════ */

.zwevende-knoppen {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 90;
}

.zweef-knop {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  color: var(--kleur-wit);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
  cursor: pointer;
}

.zweef-knop:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  text-decoration: none;
}

.zweef-telefoon { background: var(--kleur-accent); }

.zweef-top {
  background: var(--kleur-donker);
  opacity: 0;
  pointer-events: none;
}

.zweef-top.zichtbaar {
  opacity: 1;
  pointer-events: auto;
}


/* ═══════════════════════════════════════════════════════════════════════════
   COOKIEBANNER — zwevende kaart linksonder, niet-blokkerend
   Weigeren en accepteren zijn even groot en even zichtbaar (AP-richtlijn).
   ═══════════════════════════════════════════════════════════════════════════ */

.cookiebanner {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 300;
  width: min(420px, calc(100vw - 2rem));
  padding: var(--ruimte-3);
  background: var(--kleur-wit);
  border: 1px solid var(--kleur-grens);
  border-radius: var(--afronding-groot);
  box-shadow: var(--schaduw-sterk);
  color: var(--kleur-tekst);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--overgang), transform var(--overgang);
}

.cookiebanner--zichtbaar { opacity: 1; transform: none; }

.cookiebanner[hidden],
.cookiebanner [hidden],
.locatie-kaart iframe[hidden] { display: none !important; }

.cookiebanner__kop {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--ruimte-1);
}

.cookiebanner__icoon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--kleur-accent-zacht);
  color: var(--kleur-accent);
}

.cookiebanner__titel {
  margin: 0;
  font-family: var(--font-kop);
  font-size: var(--tekst-lg);
  line-height: 1.25;
  color: var(--kleur-donker);
}

.cookiebanner__tekst {
  margin: 0 0 var(--ruimte-2);
  font-size: var(--tekst-sm);
  line-height: 1.6;
}

.cookiebanner__acties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cookiebanner__acties .knop { width: 100%; padding-inline: 1rem; white-space: normal; text-align: center; line-height: 1.2; }

.cookiebanner__voet {
  display: flex;
  justify-content: space-between;
  gap: var(--ruimte-2);
  margin-top: 12px;
}

.cookiebanner__link {
  padding: 6px 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: var(--tekst-xs);
  font-weight: 600;
  color: var(--kleur-secundair);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cookiebanner__link:hover { color: var(--kleur-accent); }

.cookiebanner__instellingen {
  display: grid;
  gap: 8px;
  margin-bottom: var(--ruimte-2);
}

/* Schakelaar per categorie */
.cookie-optie {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--kleur-accent-rand);
  border-radius: var(--afronding);
  cursor: pointer;
  font-size: var(--tekst-sm);
}

.cookie-optie input { position: absolute; opacity: 0; pointer-events: none; }

.cookie-optie strong { display: block; color: var(--kleur-tekst-sterk); }
.cookie-optie small  { display: block; font-size: var(--tekst-xs); color: var(--kleur-secundair); }

.cookie-optie__schakelaar {
  position: relative;
  flex-shrink: 0;
  order: 2;
  margin-left: auto;
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: #cbd5e1;
  transition: background var(--overgang);
}

.cookie-optie__schakelaar::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--kleur-wit);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform var(--overgang);
}

.cookie-optie input:checked + .cookie-optie__schakelaar { background: var(--kleur-accent); }
.cookie-optie input:checked + .cookie-optie__schakelaar::after { transform: translateX(18px); }
.cookie-optie input:disabled + .cookie-optie__schakelaar { opacity: 0.55; }
.cookie-optie input:focus-visible + .cookie-optie__schakelaar { outline: 2px solid var(--kleur-accent); outline-offset: 2px; }

/* Plaatshouder op de plek van een Google Maps-kaart zonder toestemming */
.kaart-toestemming {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--ruimte-2);
  height: 100%;
  min-height: inherit;
  padding: var(--ruimte-4) var(--ruimte-3);
  text-align: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 123, 255, 0.08), transparent 55%),
    repeating-linear-gradient(45deg, #eef2f7 0 14px, #e8edf4 14px 28px);
}

.kaart-toestemming[hidden] { display: none; }

.kaart-toestemming__icoon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--kleur-wit);
  color: var(--kleur-accent);
  box-shadow: var(--schaduw-zacht);
}

.kaart-toestemming__tekst {
  max-width: 34ch;
  margin: 0;
  font-size: var(--tekst-sm);
  color: var(--kleur-tekst-sterk);
}

.kaart-toestemming__acties {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--ruimte-3);
}

.locatie-kaart { display: flex; flex-direction: column; }
.locatie-kaart > .kaart-toestemming { flex: 1; }

@media (max-width: 560px) {
  .cookiebanner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
    padding: var(--ruimte-2) var(--ruimte-2) 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookiebanner { transition: none; }
}


/* ─── Compacte cookiebanner — klein en laag, knoppen gelijkwaardig ─────── */

.cookiebanner {
  left: 0.75rem;
  right: auto;
  bottom: 0.75rem;
  width: min(290px, calc(100vw - 1.5rem));
  padding: 10px 12px 6px;
  border-radius: var(--afronding);
}

.cookiebanner__icoon { display: none; }
.cookiebanner__kop { margin-bottom: 2px; }

.cookiebanner__titel {
  font-size: var(--tekst-sm);
  line-height: 1.3;
}

.cookiebanner__tekst {
  margin-bottom: 8px;
  font-size: 0.75rem;
  line-height: 1.4;
}

.cookiebanner__acties { gap: 6px; }

.cookiebanner__acties .knop {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.cookiebanner__voet { margin-top: 0; }
.cookiebanner__link { padding: 4px 0; font-size: 0.6875rem; }

@media (max-width: 560px) {
  .cookiebanner {
    left: 0.75rem;
    right: auto;
    bottom: 0.75rem;
    width: min(290px, calc(100vw - 1.5rem));
    padding: 10px 12px 6px;
  }

  /* De zwevende bel- en terugknop vallen anders over de cookieknoppen */
  body:has(.cookiebanner--zichtbaar:not([hidden])) .zwevende-knoppen { display: none; }
}
