@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Nunito:wght@400;500;600&display=swap');

.p77-locations-module,
.p77-locations-module *{
    box-sizing:border-box;
    font-family:'Nunito',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;
}


/* Locatiekaarten volgen de website-typografie: h3 + p, nooit zwaarder dan 600. */
.p77-locations-module h1,
.p77-locations-module h2,
.p77-locations-module h3,
.p77-locations-module h4,
.p77-locations-module h5,
.p77-locations-module h6,
.p77-locations-module strong,
.p77-locations-module b,
.p77-locations-module button,
.p77-locations-module input,
.p77-locations-module select,
.p77-locations-module .p77-location-pill,
.p77-locations-module .p77-marker-cluster span{
    font-weight:600!important;
}
.p77-locations-module p,
.p77-locations-module span,
.p77-locations-module label{
    font-weight:400!important;
}

.p77-locations-module{
    --p77-red:#d4162f;
    --p77-red-soft:rgba(212,22,47,.07);
    --p77-red-line:rgba(212,22,47,.22);
    --p77-ink:#182033;
    --p77-muted:#677189;
    --p77-border:#e8ebf2;
    --p77-panel:#ffffff;
    --p77-blue:#2374b7;
    --p77-green:#148556;
    width:100%;
    color:var(--p77-ink);
    background:#fff;
    padding:0;
}

.p77-locations-shell{
    width:min(1180px,calc(100% - 32px));
    margin:0 auto;
    padding:0;
    background:transparent;
    border:0;
    box-shadow:none;
    overflow:visible;
}

.p77-locations-filterbar{
    display:grid;
    grid-template-columns:minmax(300px,1fr) minmax(180px,250px) minmax(180px,230px);
    gap:12px;
    align-items:end;
    margin:0 0 16px;
    padding:14px;
    background:#fff;
    border:1px solid var(--p77-border);
    border-radius:24px;
    box-shadow:0 12px 34px rgba(24,32,51,.06);
}

.p77-locations-field{
    display:flex;
    flex-direction:column;
    gap:7px;
    min-width:0;
}

.p77-locations-field span{
    color:var(--p77-muted);
    font-size:15px;
    line-height:1.2;
}

.p77-locations-field input,
.p77-locations-field select{
    width:100%;
    height:52px;
    border:1px solid #dfe3ea;
    border-radius:16px;
    background:#f9fafc;
    color:var(--p77-ink);
    font-size:17px;
    line-height:1.2;
    outline:none;
    padding:0 16px;
    transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.p77-locations-field select{cursor:pointer;}

.p77-locations-field input:focus,
.p77-locations-field select:focus{
    border-color:rgba(212,22,47,.48);
    background:#fff;
    box-shadow:0 0 0 4px var(--p77-red-soft);
}

.p77-locations-count{
    display:flex;
    align-items:baseline;
    gap:8px;
    margin:0 0 18px;
    color:var(--p77-muted);
    font-size:16px;
}

.p77-locations-count strong{
    color:var(--p77-red);
    font-size:24px;
}

.p77-locations-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
}

.p77-location-card{
    position:relative;
    min-height:176px;
    background:#fff;
    border:1px solid var(--p77-border);
    border-radius:24px;
    box-shadow:0 12px 30px rgba(24,32,51,.055);
    overflow:hidden;
    transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.p77-location-card:hover{
    transform:translateY(-3px);
    border-color:var(--p77-red-line);
    box-shadow:0 20px 45px rgba(24,32,51,.10);
}

.p77-location-card-accent{
    position:absolute;
    inset:0 auto 0 0;
    width:5px;
    background:linear-gradient(180deg,var(--p77-red),rgba(212,22,47,.35));
}

.p77-location-card-body{
    position:relative;
    z-index:1;
    display:flex;
    flex-direction:column;
    min-height:176px;
    padding:22px 62px 20px 25px;
}

.p77-location-card-title{
    order:1;
    margin:0 0 7px!important;
    color:var(--p77-ink)!important;
    font-family:'Bebas Neue',sans-serif!important;
    font-size:28px!important;
    font-weight:400!important;
    line-height:1.1!important;
    letter-spacing:.02em;
    word-break:normal;
    overflow-wrap:anywhere;
}

.p77-location-card-address{
    order:2;
    margin:0 0 18px!important;
    color:var(--p77-muted)!important;
    font-weight:400!important;
    line-height:1.5!important;
    overflow-wrap:anywhere;
}

.p77-location-pill{
    order:3;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:max-content;
    max-width:100%;
    min-height:34px;
    margin-top:auto;
    padding:7px 13px;
    border-radius:999px;
    border:1px solid var(--p77-red-line);
    background:var(--p77-red-soft);
    color:var(--p77-red);
    font-size:15px;
    line-height:1;
    white-space:nowrap;
}

.p77-location-pill-indoor{
    background:rgba(35,93,171,.08);
    border-color:rgba(35,93,171,.18);
    color:#235dab;
}

.p77-location-pill-outdoor{
    background:rgba(20,133,86,.08);
    border-color:rgba(20,133,86,.18);
    color:var(--p77-green);
}

.p77-location-card-logo{
    position:absolute;
    right:16px;
    bottom:14px;
    width:31px;
    height:auto;
    object-fit:contain;
    opacity:.68;
    pointer-events:none;
    z-index:2;
    transition:opacity .18s ease, transform .18s ease;
}

.p77-location-card:hover .p77-location-card-logo{
    opacity:.88;
    transform:translateY(-1px);
}

.p77-locations-empty{
    margin-top:14px;
    border:1px dashed var(--p77-red-line);
    border-radius:22px;
    background:var(--p77-red-soft);
    padding:28px;
    text-align:center;
}

.p77-locations-empty strong{
    display:block;
    margin-bottom:6px;
    font-size:22px;
    color:var(--p77-ink);
}

.p77-locations-empty p{
    margin:0;
    color:var(--p77-muted);
}

/* Kaart */
.p77-map-wrap{
    position:relative;
    background:#fff;
    border:1px solid var(--p77-border);
    border-radius:26px;
    overflow:hidden;
    box-shadow:0 14px 38px rgba(24,32,51,.08);
}

.p77-map-canvas{
    width:100%;
    height:clamp(440px,62vh,720px);
    background:#f6f8fb;
}

.p77-map-legend{
    position:absolute;
    left:16px;
    bottom:16px;
    z-index:500;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:center;
    padding:10px;
    border:1px solid var(--p77-border);
    border-radius:999px;
    background:rgba(255,255,255,.94);
    box-shadow:0 10px 28px rgba(24,32,51,.10);
    backdrop-filter:blur(10px);
}

.p77-map-legend span{
    display:inline-flex;
    align-items:center;
    gap:7px;
    color:var(--p77-muted);
    font-size:14px;
    white-space:nowrap;
}

.p77-dot{
    display:inline-block;
    width:11px;
    height:11px;
    border-radius:50%;
    box-shadow:0 0 0 4px rgba(24,32,51,.05);
}
.p77-dot-indoor{background:var(--p77-blue);}
.p77-dot-outdoor{background:var(--p77-green);}
.p77-dot-both{background:var(--p77-red);}

.p77-map-status{
    position:absolute;
    right:16px;
    top:16px;
    z-index:500;
    max-width:min(360px,calc(100% - 32px));
    padding:10px 12px;
    border:1px solid var(--p77-border);
    border-radius:16px;
    background:rgba(255,255,255,.94);
    color:var(--p77-muted);
    font-size:14px;
    box-shadow:0 10px 28px rgba(24,32,51,.10);
}

.p77-locations-map-popup h3{
    margin:0 0 6px;
    font-family:'Bebas Neue',sans-serif!important;
    font-size:28px!important;
    font-weight:400!important;
    line-height:1.1;
    letter-spacing:.02em;
    color:var(--p77-ink);
}
.p77-locations-map-popup p{
    margin:0 0 8px;
    color:var(--p77-muted);
    font-size:14px;
}
.p77-locations-map-popup span{
    display:inline-flex;
    border-radius:999px;
    padding:5px 10px;
    background:var(--p77-red-soft);
    color:var(--p77-red);
    font-size:13px;
}

.p77-location-marker{
    width:18px!important;
    height:18px!important;
    border-radius:999px;
    border:3px solid #fff;
    box-shadow:0 5px 15px rgba(24,32,51,.25);
}
.p77-location-marker-indoor{background:var(--p77-blue);}
.p77-location-marker-outdoor{background:var(--p77-green);}
.p77-location-marker-indoor_outdoor{background:var(--p77-red);}

@media (max-width: 980px){
    .p77-locations-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
    .p77-locations-filterbar{grid-template-columns:1fr 1fr;}
    .p77-locations-field-search{grid-column:1 / -1;}
}

@media (max-width: 640px){
    .p77-locations-shell{width:min(100% - 20px,1180px);}
    .p77-locations-filterbar{grid-template-columns:1fr; padding:12px; border-radius:20px; gap:11px;}
    .p77-locations-grid{grid-template-columns:1fr; gap:14px;}
    .p77-location-card{min-height:160px; border-radius:20px;}
    .p77-location-card-body{min-height:160px; padding:20px 54px 18px 22px;}
    .p77-map-canvas{height:68vh; min-height:420px;}
    .p77-map-legend{left:10px; right:10px; bottom:10px; border-radius:18px; justify-content:center;}
    .p77-map-status{top:10px; right:10px; left:10px;}
}

/* Snelle kaartweergave met clustering */
.p77-marker-cluster{
    border-radius:999px;
    background:rgba(212,22,47,.14);
    display:flex!important;
    align-items:center;
    justify-content:center;
    border:2px solid rgba(255,255,255,.95);
    box-shadow:0 8px 22px rgba(24,32,51,.18);
}
.p77-marker-cluster span{
    width:32px;
    height:32px;
    border-radius:999px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#d4162f;
    color:#fff;
    font-size:14px;
    line-height:1;
}
.p77-marker-cluster-medium span{width:36px;height:36px;font-size:15px;}
.p77-marker-cluster-large span{width:40px;height:40px;font-size:16px;}
.p77-locations-map-module .leaflet-popup-content-wrapper{
    border-radius:18px;
    box-shadow:0 16px 40px rgba(24,32,51,.18);
}
.p77-locations-map-module .leaflet-popup-content{margin:14px 16px;}
