/* ==========================================================================
   20 · Profielpagina's van installateurs en EMS-specialisten (src/lib/profielpaginas.mjs), uit onze eigen tabel
   i.p.v. Webflow. Bouwstenen van de homepage (.hn, pp-) plus de pf-klassen hieronder.
   Huisstijl: Ink #231f20, Eniris Red #9b1915, Web Red #ff1500 alleen als accent, vlak #f7f4f4, lijn #e6e2e2.
   ========================================================================== */
/* Hero: tekst links, rechts een compacte kaart met logo en de kernfeiten (land, regio's, sector) */
.pf-hero-g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.pf-hero-tx { grid-column: 1 / 8; min-width: 0; }
.pf-kaartje { grid-column: 9 / 13; min-width: 0; background: #fff; border-radius: 12px; box-shadow: var(--hn-schaduw); overflow: hidden; }
.pf-x .pf-logo { height: 160px; display: flex; align-items: center; justify-content: center; padding: 24px 32px; border-bottom: 1px solid var(--hn-lijn); box-sizing: border-box; }
.pf-x .pf-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pf-initiaal { font: 700 72px/1 var(--hn-kop); color: var(--hn-lijn); }
.pf-dl { margin: 0; padding: 8px 24px 16px; }
.pf-dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hn-lijn); font-size: 14px; line-height: 21px; }
.pf-dl > div:last-child { border-bottom: 0; }
.pf-dl dt { color: var(--hn-muted); }
.pf-dl dd { margin: 0; color: var(--hn-ink); display: flex; gap: 8px; align-items: flex-start; }
.pf-dl .pf-vlag { flex: none; margin-top: 1px; }
.hn .pf-h1 { font-size: 64px !important; line-height: 68px !important; overflow-wrap: anywhere; margin-top: 0 !important; }
.pf-vlag { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.pf-soort { display: flex; align-items: center; gap: 8px; margin-top: 14px !important; font-size: 15px; line-height: 22px; color: var(--hn-ink); }
.pf-soort .hn-i { width: 18px; height: 18px; color: var(--hn-web); }
.pf-x .pp-acts { margin-top: 28px; }
.pf-x .pp-acts .hn-btn .hn-i { width: 16px; height: 16px; margin-left: 8px; }
.pf-x button.hn-btn { cursor: pointer; font-family: var(--hn-kop); }

.pf-kol { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.pf-tekst { grid-column: 1 / 8; min-width: 0; }
.pf-feiten { grid-column: 9 / 13; min-width: 0; display: grid; gap: 28px; background: var(--hn-vlak); border-radius: 12px; padding: 28px; }
.pf-x .pf-big { font-size: 40px !important; line-height: 46px !important; letter-spacing: -.03em !important; }
.pf-rich { margin-top: 24px; font-size: 17px; line-height: 28px; color: var(--hn-muted); }
.pf-rich > * + * { margin-top: 14px; }
.pf-rich h2, .pf-rich h3, .pf-rich h4 { font: 700 22px/28px var(--hn-kop) !important; color: var(--hn-ink); margin-top: 28px !important; }
.pf-rich strong { color: var(--hn-ink); font-weight: 600; }
.pf-rich a { color: var(--hn-rood) !important; text-decoration: underline; text-underline-offset: 3px; }
.pf-rich ul { list-style: disc !important; padding-left: 22px !important; }
.pf-rich ul li::marker { content: initial; color: var(--hn-web); }
.pf-tekst .hn-tlink { display: inline-block; margin-top: 28px; }
.pf-feiten h3 { font-size: 15px !important; line-height: 20px !important; color: var(--hn-ink); }
.pf-foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px !important; }
.pf-chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 8px; padding: 8px 12px !important; font-size: 14px; line-height: 20px; }
.pf-chip img { width: 20px; height: 20px; object-fit: contain; }
.pf-regios { margin-top: 10px !important; font-size: 15px; line-height: 24px; color: var(--hn-muted); }

.pf-merken .hn-lead { margin-top: 12px; }
.pf-merkenlijst { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 32px !important; }
.pf-merkenlijst li { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; background: var(--hn-vlak); border-radius: 8px; padding: 18px !important; }
.pf-merkenlijst img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pf-merkenlijst span { font: 700 15px/20px var(--hn-kop); text-align: center; }

.pf-kaart-raam { margin-top: 28px; border-radius: 12px; overflow: hidden; background: var(--hn-vlak); aspect-ratio: 16 / 7; }
.pf-kaart-raam iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Contact: dialoog met het formulier */
.pf-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 0; border-radius: 12px; padding: 0; color: #231f20; font: 400 16px/24px Inter, "Segoe UI", Arial, sans-serif; box-shadow: 6px 8px 40px rgba(35, 31, 32, .25); }
.pf-dialog::backdrop { background: rgba(35, 31, 32, .55); }
.pf-dialog-kop { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 24px 0; }
.pf-dialog-kop h2 { margin: 0; font: 700 24px/30px Sora, "Segoe UI", Arial, sans-serif; letter-spacing: -.02em; }
.pf-sluit { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: #f7f4f4; color: #231f20; cursor: pointer; }
.pf-sluit .hn-i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pf-dialog [data-form-wrapper] { padding: 16px 24px 24px; }
.pf-dialog form { display: grid; gap: 14px; }
.pf-naar { margin: 0; font-size: 15px; color: #5c5657; }
.pf-veld { display: grid; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 600; }
.pf-veld input, .pf-veld textarea { width: 100%; box-sizing: border-box; min-height: 48px; border: 1px solid #8a8485; border-radius: 8px; padding: 10px 14px; font: 400 16px/24px Inter, "Segoe UI", Arial, sans-serif; color: #231f20; background: #fff; }
.pf-veld textarea { resize: vertical; }
.pf-veld input:focus, .pf-veld textarea:focus { outline: 2px solid #231f20; outline-offset: 1px; }
.pf-dialog .work-email { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.pf-dialog .hn-btn { justify-self: start; height: 48px; padding: 0 24px; border: 0; border-radius: 8px; background: #9b1915; color: #fff; font: 700 15px/20px Sora, "Segoe UI", Arial, sans-serif; cursor: pointer; }
.pf-dialog .hn-btn:hover { background: #82140f; }
.pf-klaar, .pf-fout { margin: 0; padding: 16px; border-radius: 8px; background: #f7f4f4; font-size: 15px; }
.pf-fout { color: #9b1915; }

/* ==========================================================================
   Overzicht /network/installers en /network/ems-specialists (io-): filters, kaartjes en kaart
   ========================================================================== */
.io-x .io-hero { padding-bottom: 0; }
.hn .io-h1 { font-size: 64px !important; line-height: 68px !important; max-width: 12em; margin-top: 0 !important; text-wrap: balance; }
.hn .io-lead { margin-top: 24px; max-width: 40em; font-size: 19px; line-height: 30px; }
.hn.io-sec { padding-top: 48px; }
.io-filters { background: var(--hn-vlak); border-radius: 12px; padding: 20px; display: grid; gap: 18px; }
.io-rij { display: flex; flex-wrap: wrap; gap: 12px; }
.io-zoek { flex: 1 1 280px; position: relative; display: flex; align-items: center; }
.io-zoek .hn-i { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--hn-muted); pointer-events: none; }
.io-zoek input, .io-land-kies select { width: 100%; height: 48px; box-sizing: border-box; border: 1px solid #8a8485; border-radius: 8px; background: #fff; font: 400 16px/24px var(--hn-tekst); color: var(--hn-ink); }
.io-zoek input { padding: 0 14px 0 42px; }
.io-land-kies { flex: 0 1 240px; }
.io-land-kies select { padding: 0 36px 0 14px; appearance: none; background: #fff 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' fill='none' stroke='%23231f20' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center; cursor: pointer; }
.io-zoek input:focus, .io-land-kies select:focus { outline: 2px solid var(--hn-ink); outline-offset: 1px; }
.io-x .io-dichtbij { height: 48px; gap: 8px; cursor: pointer; font-family: var(--hn-kop); background: #fff; }
.io-x .io-dichtbij .hn-i { width: 18px; height: 18px; }
.io-x .io-dichtbij[aria-pressed="true"] { background: var(--hn-ink); border-color: var(--hn-ink); color: #fff !important; }
.io-x .io-dichtbij[hidden] { display: none; }
.io-x .io-dichtbij:disabled { opacity: .7; cursor: progress; }
.io-groep { display: grid; gap: 10px; }
.io-groep-h { font: 700 14px/20px var(--hn-kop); color: var(--hn-ink); }
.io-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.io-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--hn-lijn); border-radius: 8px; background: #fff; color: var(--hn-ink); font: 600 14px/20px var(--hn-tekst); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.io-chip img { width: 18px; height: 18px; object-fit: contain; }
.io-chip:hover { border-color: var(--hn-ink); }
.io-chip[aria-pressed="true"] { background: var(--hn-ink); border-color: var(--hn-ink); color: #fff; }
.io-chip[aria-pressed="true"] img { filter: brightness(0) invert(1); }
.io-chip:focus-visible, .io-x .io-dichtbij:focus-visible { outline: 2px solid var(--hn-ink); outline-offset: 2px; }
.io-kop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin: 28px 0 16px; }
.io-aantal { font-size: 15px; color: var(--hn-muted) !important; }
.io-aantal strong { font: 700 15px var(--hn-kop); color: var(--hn-ink); }
.io-melding { font-size: 14px; color: var(--hn-rood) !important; }
.io-x .io-wis { background: none; border: 0; cursor: pointer; padding: 0; min-height: 44px; }
.io-g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.io-lijst-kolom { grid-column: 1 / 8; min-width: 0; }
.io-g-vol .io-lijst-kolom { grid-column: 1 / -1; }
.io-g-vol .io-lijst { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.io-meer-rij { margin-top: 24px !important; text-align: center; }
.io-x .io-meer { cursor: pointer; font-family: var(--hn-kop); gap: 6px; }
.io-x .io-meer[hidden] { display: none; }
.io-lijst { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.io-lijst > li[hidden] { display: none; }
.io-kaartje { display: flex; gap: 16px; align-items: flex-start; padding: 16px; box-sizing: border-box; height: 100%; background: #fff; border: 1px solid var(--hn-lijn); border-radius: 12px; overflow: hidden; text-decoration: none !important; color: var(--hn-ink) !important; transition: border-color .2s ease, box-shadow .2s ease; }
.io-kaartje:hover { border-color: var(--hn-ink); box-shadow: var(--hn-schaduw); }
.io-kaartje:focus-visible { outline: 2px solid var(--hn-ink); outline-offset: 2px; }
.io-logo { flex: none; width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; padding: 8px; border: 1px solid var(--hn-lijn); border-radius: 8px; box-sizing: border-box; background: #fff; }
.io-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.io-initiaal { font: 700 32px/1 var(--hn-kop); color: var(--hn-lijn); }
.io-tx { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; align-self: stretch; }
.io-naam { font: 700 17px/23px var(--hn-kop); letter-spacing: -.01em; overflow-wrap: anywhere; }
.io-sub { font-size: 14px; color: var(--hn-muted); }
.io-land { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; }
.io-land img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.io-afstand { color: var(--hn-muted); }
.io-reg { font-size: 13px; line-height: 19px; color: var(--hn-muted); }
.io-sectoren { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.io-sectoren span { font-size: 12px; line-height: 16px; padding: 3px 8px; border-radius: 4px; background: var(--hn-vlak); }
.io-bekijk { margin-top: auto; padding-top: 8px; font: 700 14px/20px var(--hn-kop); color: var(--hn-rood); text-decoration: underline; text-underline-offset: 4px; }
.io-kaart-kolom { grid-column: 8 / 13; position: sticky; top: 104px; }
.io-kaart { height: calc(100vh - 140px); min-height: 420px; max-height: 720px; border-radius: 12px; overflow: hidden; background: var(--hn-vlak); }
.io-leeg { margin-top: 8px; padding: 40px; text-align: center; background: var(--hn-vlak); border-radius: 12px; display: grid; gap: 16px; justify-items: center; }
.io-leeg[hidden] { display: none; }
.io-leeg p { font-size: 16px; color: var(--hn-muted); }
.io-x .io-leeg .hn-btn { cursor: pointer; font-family: var(--hn-kop); }

/* Eigen kaart (Leaflet): popups en bediening in onze stijl */
.ek-kaart { position: relative; z-index: 0; }
.ek-kaart .leaflet-popup-content-wrapper { border-radius: 8px; box-shadow: var(--hn-schaduw, 6px 8px 24px rgba(35,31,32,.1)); font: 400 14px/20px Inter, "Segoe UI", Arial, sans-serif; }
.ek-kaart .leaflet-control-zoom a { width: 36px; height: 36px; line-height: 36px; color: #231f20; }
.ek-kaart .leaflet-control-attribution { font-size: 11px; }
.ek-kaart-fout { display: none; }
.pf-kaart-raam.ek-kaart { aspect-ratio: auto; height: 440px; }
@media (max-width: 600px) { .pf-kaart-raam.ek-kaart { height: 300px; } }
.ek-kaart .leaflet-tile-pane { filter: grayscale(1) contrast(.92) brightness(1.04); }

@media (max-width: 991px) {
  .pf-tekst, .pf-feiten { grid-column: 1 / -1; }
  .pf-feiten { margin-top: 40px; }
  .pf-merkenlijst { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pf-x .pf-big { font-size: 32px !important; line-height: 38px !important; }
  .pf-hero-tx, .pf-kaartje { grid-column: 1 / -1; }
  .pf-kaartje { margin-top: 32px; }
  .hn .pf-h1, .hn .io-h1 { font-size: 44px !important; line-height: 48px !important; }
  .io-lijst-kolom, .io-kaart-kolom { grid-column: 1 / -1; }
  .io-g-vol .io-lijst { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .io-kaart-kolom { position: static; order: -1; margin-bottom: 20px; }
  .io-kaart { height: 340px; min-height: 0; }
}
@media (max-width: 600px) {
  .pf-merkenlijst { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .pf-kaart-raam { aspect-ratio: 4 / 3; }
  .pf-x .pp-acts .hn-btn { width: 100%; }
  .hn .pf-h1, .hn .io-h1 { font-size: 36px !important; line-height: 40px !important; }
  .io-lead { font-size: 17px; line-height: 27px; }
  .io-lijst, .io-g-vol .io-lijst { grid-template-columns: 1fr; }
  .io-land-kies, .io-x .io-dichtbij { flex: 1 1 100%; }
  .io-filters { padding: 16px; }
  .io-kaart { height: 280px; }
  .pf-dl > div { grid-template-columns: 84px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .io-chip, .io-kaartje, .dg-prod strong { transition: none; } }
