/* ═══════════════════════════════════════════════════════════════════
   Beurskaart – public stylesheet  v2.2
   ═══════════════════════════════════════════════════════════════════ */

.bk-wrap {
    --bk-accent:      #A2438F;
    --bk-accent-dim:  rgba(162,67,143,.15);
    --bk-dark:        #1a1208;

    max-width: 1200px;
    margin: 2em auto;
    font-family: inherit;
    color: var(--bk-dark);
}

/* ── Page title ──────────────────────────────────────────────────── */
.bk-kaart-titel {
    text-align: center;
    font-size: 1.6em;
    margin: 0 0 .9em;
    color: var(--bk-dark);
}

/* ══════════════════════════════════════════════════════════════════
   LINK LIST – plain links, no backgrounds, no badges
   ══════════════════════════════════════════════════════════════════ */
.bk-locatie-lijst {
    margin-bottom: 1.1em;
}

/* Items always visible on desktop – 3 columns, gevuld per kolom (1-4 links, 5-8 midden, 9-12 rechts).
   grid-template-rows is afgestemd op 12 locaties; pas het getal aan bij een ander aantal. */
.bk-lijst-items {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-flow: column;
    grid-template-rows: repeat(4, auto);
    gap: .15em 2em;
}

.bk-lijst-link {
    display: inline-flex;
    align-items: baseline;
    gap: .3em;
    text-decoration: none;
    color: inherit;
    font-size: .9em;
    line-height: 1.5;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: color .15s, border-color .15s;
}

.bk-lijst-link:hover,
.bk-lijst-link.bk-actief {
    color: var(--bk-accent);
    border-bottom-color: var(--bk-accent);
}

.bk-lijst-num {
    font-weight: 600;
    font-size: .85em;
    color: #888;
    flex-shrink: 0;
}

.bk-lijst-link:hover .bk-lijst-num,
.bk-lijst-link.bk-actief .bk-lijst-num {
    color: var(--bk-accent);
}

/* ══════════════════════════════════════════════════════════════════
   MAP CONTAINER – no shadow, no radius
   ══════════════════════════════════════════════════════════════════ */
/* Map: scrollable wrapper so the map itself can be wider than the screen on mobile */
.bk-kaart-scroll {
    width: 100%;
}

.bk-kaart-container {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
}

.bk-kaart-img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════════════════════════════════
   HIGHLIGHT IMAGE OVERLAYS – purely visual, never intercepts clicks
   ══════════════════════════════════════════════════════════════════ */
.bk-highlight-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
    opacity: 0;
    z-index: 2;
    transition: opacity .25s ease;
    mix-blend-mode: multiply;  /* blends naturally with the map */
}

.bk-highlight-img.bk-hl-actief {
    opacity: 1;
}

/* ══════════════════════════════════════════════════════════════════
   HITBOXES – the actual hover/click targets, sized to each building
   ══════════════════════════════════════════════════════════════════ */
.bk-hitbox {
    position: absolute;
    cursor: pointer;
    z-index: 3;
    /* invisible by default; visual feedback comes from the highlight image */
}

/* bk-hitbox-full hidden — fallback hitboxes should not cover the whole map */
.bk-hitbox-full {
    display: none;
}

/* ══════════════════════════════════════════════════════════════════
   MODAL – no border-radius, no shadow on image
   ══════════════════════════════════════════════════════════════════ */
.bk-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(120,120,120,.35);
    z-index: 999990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: bk-fade .2s ease;
}

.bk-modal-overlay[hidden] { display: none !important; }

@keyframes bk-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.bk-modal {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    max-width: 760px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: bk-omhoog .22s ease;

    /* hide scrollbar visually, scrolling still works */
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* old Edge/IE */
}

.bk-modal::-webkit-scrollbar {
    display: none;               /* Chrome, Safari, new Edge */
}

@keyframes bk-omhoog {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.bk-modal-sluit {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.9em;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 0 4px;
    z-index: 2;
    transition: color .15s;
}
.bk-modal-sluit:hover { color: #c0392b; }

.bk-modal-img-wrap {
    margin: 0 0 1em;
}

.bk-modal-img-wrap img {
    display: block;
    max-width: 320px;
    width: 100%;
    height: auto;
    border-radius: 0;
}

.bk-modal-body {
    padding: 1.4em 1.6em 1.7em;
}

.bk-modal-periode {
    margin: 0 0 .2em;
    font-size: .82em;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #8b6200;
}

.bk-modal-titel {
    margin: 0 0 .7em;
    font-size: 1.25em;
    line-height: 1.25;
    color: var(--bk-dark);
    padding-right: 1.8em;
}

.bk-modal-tekst {
    font-size: .82em;
    line-height: 1.55;
    color: #333;
}

.bk-modal-tekst p:first-child { margin-top: 0; }
.bk-modal-tekst p:last-child  { margin-bottom: 0; }

/* ── Notice ──────────────────────────────────────────────────────── */
.bk-notice {
    background: #fff3cd;
    border-left: 4px solid #e0a800;
    padding: .8em 1em;
    color: #555;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE & TOUCH
   ══════════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 780px) {
    .bk-modal {
        max-width: 100%;
    }
}

/* Mobile */
@media (max-width: 600px) {

    /* ── Locatielijst: gewone lijst onder elkaar, geen accordion ── */
    .bk-locatie-lijst {
        flex-direction: column;
        gap: 0;
    }

    /* Lijst altijd zichtbaar, gewoon onder elkaar */
    .bk-lijst-items {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .bk-lijst-link {
        padding: .5em 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: .92em;
    }
    .bk-lijst-link:last-child {
        border-bottom: none;
    }

    /* ── Kaart: groter dan het scherm, scrollbaar in beide richtingen + pinch-zoom ── */
    .bk-kaart-scroll {
        overflow: auto;
        max-height: 70vh;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y pinch-zoom;
        /* hide scrollbar but keep it scrollable */
        scrollbar-width: thin;
    }

    .bk-kaart-container {
        width: 720px;   /* vaste, grotere breedte dan het scherm */
        max-width: none;
        overflow: visible;
    }

    /* ── Modal: fullscreen onderaan ── */
    .bk-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .bk-modal {
        max-width: 100%;
        width: 100%;
        max-height: 85vh;
        border-radius: 0;
        /* Slide omhoog vanaf onderaan */
        animation: bk-slide-up-mobile .25s ease;
    }

    @keyframes bk-slide-up-mobile {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }



    .bk-modal-body {
        padding: 1em 1.1em 2em; /* extra ruimte onderaan voor duim */
    }

    .bk-modal-titel {
        font-size: 1.1em;
    }

    /* Sluitknop groter voor touch */
    .bk-modal-sluit {
        font-size: 2.2em;
        top: 8px;
        right: 12px;
        padding: .1em .3em;
    }
}
