html, body {
    height: 100%;
    margin: 0;
}

body.map-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--white);
    margin: 0;
}

.map-page main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    box-sizing: border-box;
    width: 100%;
}

.map-page main > section {
    width: 100%;
    max-width: 81.25rem;
}

.footer-map {
    text-align: left;
}

#map-container {
    display: flex;
    width: 100%;
    max-width: 81.25rem;
    height: 75vh;
    min-height: 35rem;
    background: oklch(100% 0 0);
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.75rem oklch(0 0 0 / 0.1);
    overflow: hidden;
    isolation: isolate;
}

#sidebar {
    width: 17.5rem;
    padding: 1.5rem;
    background: oklch(98% 0.002 240);
    box-sizing: border-box;
    border-right: 0.0625rem solid oklch(85% 0 0);
    flex-shrink: 0;
}

#map {
    flex: 1;
    min-width: 0;
    height: 100%;
    z-index: 0;
}

/* --- 1. Navigatieknoppen (.btn) --- */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--banana-cream, oklch(93.823% 0.10388 96.1));
    color: var(--ink, oklch(24.372% 0.0059 271.178));
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    border: 0.125rem solid transparent;
    box-shadow: 0 0.125rem 0.375rem oklch(0% 0 0 / 0.08);
    transition: all 0.25s ease-in-out;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--banana-light, oklch(96.773% 0.05399 95.884));
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 0.625rem oklch(0% 0 0 / 0.15);
    border-color: var(--laser-blue, oklch(62.31% 0.1881 259.83));
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 0.125rem 0.25rem oklch(0% 0 0 / 0.1);
}

/* --- 2. Categorie filters (pill-stijl) --- */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.8rem;
    background-color: oklch(100% 0 0);
    border: 0.0625rem solid oklch(85% 0 0);
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 0;
}

.filter-group label:hover {
    background-color: oklch(95% 0.02 240);
    border-color: var(--laser-blue, oklch(62.31% 0.1881 259.83));
}

.filter-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    border: 0.125rem solid oklch(70% 0 0);
    border-radius: 0.25rem;
    outline: none;
    cursor: pointer;
    display: grid;
    place-content: center;
    transition: background-color 0.2s, border-color 0.2s;
}

.filter-group input[type="checkbox"]:focus-visible {
    outline: 0.125rem solid var(--laser-blue, oklch(62.31% 0.1881 259.83));
    outline-offset: 0.125rem;
}

.filter-group input[type="checkbox"]:checked::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    background-color: var(--laser-blue, oklch(62.31% 0.1881 259.83));
    border-radius: 0.125rem;
}

.filter-group input[type="checkbox"]:checked {
    border-color: var(--laser-blue, oklch(62.31% 0.1881 259.83));
    background-color: oklch(95% 0.05 250);
}

/* --- 3. Custom markers (L.divIcon) --- */
.custom-marker {
    background: transparent;
    border: none;
}

.marker-pin {
    --pin-color: oklch(76.463% 0.15148 229.462);
    width: 1.875rem;
    height: 1.875rem;
    border-radius: 50% 50% 50% 0;
    background: var(--pin-color);
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -0.9375rem 0 0 -0.9375rem;
    box-shadow: 0 0.2rem 0.5rem oklch(0 0 0 / 0.3);
}

.marker-pin::after {
    content: "";
    position: absolute;
    width: 0.75rem;
    height: 0.75rem;
    top: 50%;
    left: 50%;
    margin: -0.375rem 0 0 -0.375rem;
    border-radius: 50%;
    background: oklch(100% 0 0);
}

.marker-pin--activiteiten { 
    --pin-color: oklch(61.6% 0.10416 183.225); 
}
.marker-pin--restaurants { 
    --pin-color: oklch(50.512% 0.1918 258.573); 
}
.marker-pin--winkels { 
    --pin-color: oklch(58.286% 0.15228 3.178); 
}