/* ============================================================
   INTEGRATIES-PAGINA — bibliotheek met zoeken, filters en drawer
   Bouwt voort op tokens.css en site.css.
   ============================================================ */

/* -- Subpagina-hero (donker, compact) -- */
.subhero {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, #011E26 0%, #0A2E38 70%, #16404C 100%);
  color: #fff; padding: 72px 0 56px;
}
.subhero .kicker { color: var(--mist); }
.subhero h1 { font-size: clamp(32px, 3.8vw, 48px); letter-spacing: -.015em; margin-bottom: 18px; max-width: 21ch; }
.subhero h1 em { font-style: normal; color: var(--ping); }
.subhero .sub { font-size: 17.5px; color: rgba(255, 255, 255, .76); max-width: 62ch; margin-bottom: 30px; }

/* -- Zoekbalk -- */
.zoekbox { position: relative; max-width: 640px; }
.zoekbox svg {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; stroke: var(--muted-2); fill: none; stroke-width: 2; stroke-linecap: round;
}
#zoek {
  width: 100%; font-family: var(--font-body); font-size: 17px; color: var(--ink);
  padding: 16px 18px 16px 50px; border: 1.5px solid transparent;
  border-radius: 999px; background: #fff; outline: none;
  transition: box-shadow .15s ease;
}
#zoek:focus { box-shadow: 0 0 0 4px rgba(182, 248, 153, .35); }
.subhero .schaal { margin-top: 16px; font-size: 15px; color: rgba(255, 255, 255, .68); }
.subhero .schaal b { color: #fff; font-weight: 600; }

/* -- Verschil-blok -- */
.verschil { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 0 56px 0 0; overflow: hidden; }
.verschil .kolom { padding: 32px 34px; background: #fff; }
.verschil .kolom.met { background: var(--pitch); color: #fff; }
.verschil .kolomtitel {
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px;
}
.verschil .kolom.zonder .kolomtitel { color: var(--muted-2); }
.verschil .kolom.met .kolomtitel { color: var(--ping); }
.verschil .regel { padding: 13px 0; font-size: 16.5px; border-top: 1px solid var(--line-2); }
.verschil .kolom.met .regel { border-top-color: rgba(255, 255, 255, .12); }
.verschil .kolom.zonder .regel { color: var(--muted-2); }

/* -- Filterbalk -- */
.filterbalk {
  position: sticky; top: 72px; z-index: 20;
  background: rgba(247, 247, 247, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); padding: 13px 0;
}
.filterbalk .wrap { display: flex; align-items: center; gap: 16px; }
.filterchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.filterchips::-webkit-scrollbar { display: none; }
.fchip {
  white-space: nowrap; border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--baseline);
  padding: 8px 14px; border-radius: 999px; display: flex; align-items: center; gap: 7px;
  transition: all .14s ease;
}
.fchip:hover { border-color: var(--sage); color: var(--sage); }
.fchip[aria-pressed="true"] { background: var(--pitch); border-color: var(--pitch); color: #fff; }
.fchip .n { font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }
.toggle {
  display: flex; align-items: center; gap: 9px; white-space: nowrap; font-size: 14px;
  color: var(--baseline); cursor: pointer; user-select: none; background: none; border: 0;
  font-family: var(--font-body); font-weight: 600;
}
.switch { width: 38px; height: 22px; border-radius: 999px; background: var(--static); position: relative; transition: background .16s ease; flex: none; }
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .16s ease;
}
.toggle[aria-pressed="true"] .switch { background: var(--ping-ink); }
.toggle[aria-pressed="true"] .switch::after { transform: translateX(16px); }

/* -- Subbalk en grid -- */
.subbalk { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0 4px; flex-wrap: wrap; }
.legenda { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13.5px; color: var(--muted); align-items: center; }
.legenda span { display: flex; align-items: center; gap: 8px; }
.aantal { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.aantal b { color: var(--ink); }
.badge {
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 6px; white-space: nowrap;
}
.badge.bewezen { background: var(--ping-soft); color: #33652B; }
.badge.koppelbaar { background: var(--mist); color: var(--baseline); }
.intgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 15px; padding: 16px 0 72px; }
.intkaart {
  text-align: left; font-family: var(--font-body); cursor: pointer;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) var(--radius) var(--radius-sm);
  padding: 17px; display: flex; flex-direction: column; gap: 11px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .14s ease;
}
.intkaart:hover { border-color: var(--sage); box-shadow: var(--shadow); transform: translateY(-2px); }
.intkaart:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
.intkaart .rij { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tile {
  width: 58px; height: 58px; border-radius: 16px 16px 16px 6px;
  display: grid; place-items: center; flex: none;
  background: #fff; border: 1px solid var(--line-2); font-weight: 700; font-size: 22px;
  font-family: var(--font-head);
}
.tile svg { width: 30px; height: 30px; }
.intkaart:hover .tile { transform: scale(1.06); }
.tile { transition: transform .15s ease; }
.intkaart .naam { font-family: var(--font-head); font-weight: 600; font-size: 16.5px; margin-top: 2px; }
.intkaart .catlabel { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted-2); font-weight: 600; }
.intkaart .tag { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.leeg { grid-column: 1 / -1; text-align: center; padding: 64px 20px; color: var(--muted); }
.leeg b { color: var(--ink); }

/* -- Drawer -- */
.scrim { position: fixed; inset: 0; background: rgba(1, 30, 38, .5); opacity: 0; pointer-events: none; transition: opacity .22s ease; z-index: 60; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(460px, 94vw);
  background: #fff; z-index: 70; transform: translateX(100%);
  transition: transform .27s cubic-bezier(.4, 0, .2, 1);
  box-shadow: -24px 0 64px -32px rgba(1, 30, 38, .55);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.dtop { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.dtop .catlabel { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 600; }
.dsluit {
  border: 0; background: var(--canvas); cursor: pointer; width: 34px; height: 34px;
  border-radius: 10px; display: grid; place-items: center; color: var(--muted); font-size: 19px;
}
.dsluit:hover { background: var(--mist); color: var(--ink); }
.dbody { padding: 24px 22px 30px; overflow-y: auto; }
.dkop { display: flex; align-items: center; gap: 15px; margin-bottom: 12px; }
.dkop .tile { width: 68px; height: 68px; font-size: 26px; }
.dkop .tile svg { width: 38px; height: 38px; }
.dkop h2 { font-size: 22px; margin: 0; }
.dtag { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.dvoorbeeld {
  font-size: 14.5px; color: var(--ink); background: var(--ping-soft);
  border: 1px solid #CBEEB4; border-radius: var(--radius-sm); padding: 13px 15px; margin-bottom: 20px; line-height: 1.5;
}
.dblok { margin-bottom: 22px; }
.dblok h3 {
  font-family: var(--font-body); font-size: 12px; text-transform: uppercase;
  letter-spacing: .09em; color: var(--muted); margin-bottom: 11px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.dblok h3::before { content: ""; width: 7px; height: 7px; border-radius: 2px 2px 5px 2px; background: var(--sage); }
.dblok.doet h3::before { background: var(--ping-ink); }
.dlijst { list-style: none; display: grid; gap: 9px; }
.dlijst li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink); align-items: baseline; line-height: 1.45; }
.dlijst li::before { content: "✓"; color: var(--sage); font-weight: 700; flex: none; }
.dblok.doet .dlijst li::before { color: var(--ping-ink); }
.dcta .btn { width: 100%; justify-content: center; }
.dnoot { font-size: 13px; color: var(--muted-2); margin-top: 12px; text-align: center; }

@media (max-width: 720px) {
  .verschil { grid-template-columns: 1fr; border-radius: 0 56px 0 0; }
  .filterbalk { top: 72px; }
}
