:root {
    --map-height: 580px;
    --map-width: 100%;
    --accent: #518110;
    --accent-dark: #518110;
    --surface: #F9FCF6;
    --border: #d8ddd1;
    --text: #1f2a17;
}

.map-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 24px auto;
    background: var(--surface);
}

#map {
    width: var(--map-width);
    height: var(--map-height);
    overflow: hidden;
}

.map-filters {
    display: flex;
    width: var(--map-width);
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: var(--surface);
}

.map-filters[hidden] {
    display: none;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: color 160ms ease;
}

.filter-option input {
    margin: 0;
    accent-color: var(--accent);
}

.filter-option:has(input:checked) {
    color: #518110;
}

.marker {
    width: 46px;
    height: 62px;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 100% auto;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.2));
    border: 0;
    padding: 0;
    background-color: transparent;
    appearance: none;
    -webkit-appearance: none;
}


.maplibregl-popup-content {
    min-width: 0;
    max-width: 597px;
    max-height: 512px;
    padding: 12px;
    background: #ffffff;
    box-sizing: border-box;
    box-shadow: 0 18px 38px rgba(22, 26, 18, 0.18);
    position: relative;
}

.maplibregl-popup-content h3 {
    margin: 15px 0 10px;
    padding-right: 8px;
    font-size: 16px;
    line-height: 1.25;
}

.maplibregl-popup-content p {
    margin: 4px 0;
    font-size: 14px;
    line-height: 1.45;
}

.maplibregl-popup-content a {
    color: #0d5f4d;
}

.maplibregl-popup-close-button {
    font-size: 24px;
    line-height: 26px;
    color: #518110;
}

.maplibregl-popup-close-button:hover {
    color: #518110;
}

@media (max-width: 720px) {
    .map-shell {
        width: calc(100% - 20px);
        margin: 10px auto;
    }

    #map {
        height: 64vh;
    }

    .map-filters {
        padding: 12px;
    }

    .filter-option {
        width: 100%;
        justify-content: flex-start;
    }
}