/* BNW Praktijken Kaart */
.bnw-kaart-wrap { margin: 0 0 1.5rem; }

.bnw-kaart-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    margin-bottom: .75rem;
}

/* Zoekveld, dropdowns en knop allemaal even hoog */
.bnw-kaart-filters input[type="search"],
.bnw-kaart-filters select,
.bnw-kaart-filters .bnw-f-reset {
    height: 44px;
    box-sizing: border-box;
    padding: 0 .7rem;
    border: 1px solid #cfd4da;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.2;
    background: #fff;
    color: #1d2327;
    max-width: 100%;
    vertical-align: middle;
    -webkit-appearance: none;
    appearance: none;
}
.bnw-kaart-filters select {
    padding-right: 1.8rem;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23667' d='M1 1l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right .6rem center;
}
.bnw-kaart-filters .bnw-f-naam { flex: 1 1 220px; min-width: 180px; }
.bnw-kaart-filters .bnw-f-reset { background: #f5f6f7; cursor: pointer; }
.bnw-kaart-filters .bnw-f-reset:hover { background: #eceef0; }
.bnw-kaart-count { color: #555; font-size: 13px; margin-left: auto; white-space: nowrap; }

.bnw-kaart {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    overflow: hidden;
    background: #e8eaed;
}

/* ---- Pop-up (Google InfoWindow) — desktop ---- */
.gm-style-iw.gm-style-iw-c { padding: 0 !important; overflow: visible !important; }
.gm-style-iw-d { overflow: visible !important; }
.gm-style-iw-ch { padding-top: 0 !important; }                 /* witte rand boven weg */
.gm-style-iw button.gm-ui-hover-effect { display: none !important; } /* standaard sluitknop verbergen */

.bnw-info {
    position: relative;
    width: 500px;
    max-width: 80vw;
    padding: 14px 16px;
    overflow: visible;        /* sluitknop mag buiten de hoek uitsteken */
}
.bnw-info, .bnw-info * { box-sizing: border-box; }

.bnw-info-close {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 100;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #fff;
    color: #333;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bnw-info-close:hover { background-color: #f0f0f0; }

.bnw-info-title { margin: 0 24px .55rem 0; font-size: 20px; line-height: 1.25; font-weight: 700; }
.bnw-info-title a { font-size: 20px; color: #2e6cb0; text-decoration: none; }
.bnw-info-title a:hover { text-decoration: underline; }

.bnw-info .zorgverlener-type { display: contents; }

/* "Bekijk praktijk"-knop uit de tekstflow, overhangend in de hoek (desktop) */
.bnw-info .infobox-button {
    position: absolute;
    bottom: -30px;
    right: -40px;
    width: 120px;
    text-align: center;
}

.bnw-info .infobox-right { max-height: 260px; overflow-y: auto; padding-right: 4px; }
.bnw-info-loading { padding: 8px 4px; color: #666; }

/* ---- Mobiel: herstel ingebouwde scroll en haal de knoppen in de box ----
   Op een korte (mobiele) kaart past de inhoud niet; met overhangende knoppen
   zou de inhoud buiten de pop-up vallen en de kaart onbedienbaar maken. */
@media (max-width: 768px) {
    .gm-style-iw.gm-style-iw-c { overflow: hidden !important; }
    .gm-style-iw-d { overflow: auto !important; }

    .bnw-info {
        width: auto;
        max-width: 88vw;
        overflow: hidden;
    }
    .bnw-info-close { top: 6px; right: 6px; }
    .bnw-info-title { margin-right: 38px; }

    .bnw-info .infobox-button {
        position: static;
        right: auto;
        bottom: auto;
        width: auto;
        display: inline-block;
        margin-top: 10px;
    }
    .bnw-info .infobox-button-wrapper { position: static; text-align: left; }
}

@media (max-width: 600px) {
    .bnw-kaart { height: 460px; }
    .bnw-kaart-count { margin-left: 0; }
}

/* ---- Samenvatting van actieve filters ("Gefilterd op: …"), boven de tabel ---- */
.bnw-kaart-actief {
    margin: 0 0 .6rem;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}
.bnw-kaart-actief[hidden] { display: none; }
.bnw-actief-label { font-weight: 600; }
.bnw-actief-sep { color: #999; margin: 0 .15rem; }
.bnw-actief-count { color: #555; }
.bnw-actief-wis {
    margin-left: .6rem;
    color: #a32d2d;
    text-decoration: none;
    white-space: nowrap;
}
.bnw-actief-wis:hover { text-decoration: underline; }

/* ---- Overzichtstabel [bnw_praktijken_table] (opmaak overgenomen uit functions.php) ---- */
.bnw-table-wrap { overflow: auto; border: 1px solid #e5e7eb; border-radius: 8px; max-height: 70vh; }
.bnw-table { border-collapse: separate; border-spacing: 0; min-width: 1000px; width: 100%; font-size: 14px; line-height: 1.4; }
.bnw-table thead th { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid #e5e7eb; padding: .75rem .75rem; text-align: left; white-space: nowrap; }
.bnw-table tbody td { border-bottom: 1px solid #f1f5f9; padding: .55rem .75rem; vertical-align: top; white-space: nowrap; }
.bnw-table tbody tr:nth-child(odd) { background: #fcfdff; }
.bnw-table .td-wrap { white-space: normal; max-width: 420px; }
.bnw-table a { text-decoration: none; border-bottom: 1px dotted #94a3b8; }

/* Meefilteren met de kaart: verborgen rijen + eigen strepen zolang er een filter actief is */
.bnw-table tbody tr[hidden] { display: none; }
.bnw-table.is-filtered tbody tr:nth-child(odd) { background: transparent; }
.bnw-table.is-filtered tbody tr.is-alt { background: #fcfdff; }
.bnw-table tr.bnw-table-empty td { padding: 1rem .75rem; white-space: normal; }

/* ---- Vast netwerk-filter op netwerksites (vervangt daar het netwerk-uitklapmenu) ---- */
.bnw-kaart-filters .bnw-f-vast {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    height: 44px;
    box-sizing: border-box;
    padding: 0 .85rem 0 .6rem;
    border: 1px solid #bcd0ea;
    border-radius: 6px;
    background: #eef3fb;
    color: #1f4e8c;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: default;
}
.bnw-kaart-filters .bnw-f-vast img { width: 20px; height: 20px; display: block; flex: 0 0 auto; }
.bnw-actief-vast { font-weight: 600; }

/* Alleen voor schermlezers */
.bnw-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
