#map-container {
    display: flex;
    align-items: center;
    touch-action: none;
    user-select: none;
    position: relative;
}

.container:has(#map-container) {
    padding: 0;
    overflow: hidden;
    margin: 0;
    height: 100%;
    width: 100%;
}

#map-svg {
    margin: 0 auto;
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Controls styling */
#controls {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    font-family: sans-serif;
}

.control-group {
    margin-top: 15px;
}

.control-group:first-child {
    margin-top: 0;
}

.control-label {
    display: block;
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 8px;
}

.radio-item input[type="radio"] {
    cursor: pointer;
    margin-left: 0;
    margin-right: 0;
}

.radio-item label {
    cursor: pointer;
    font-size: 12px;
    margin: 0;
}

#legend {
    font-size: 11px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-color {
    width: 16px;
    height: 16px;
    border: 1px solid #999;
    flex-shrink: 0;
}

.legend-label {
    font-size: 12px;
}

#zoom-controls {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.zoom-btn {
    padding: 8px 12px;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid #999;
    background: white;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    text-align: center;
}

.zoom-btn:hover {
    background-color: #f0f0f0;
}

.zoom-btn:active {
    background-color: #e0e0e0;
}

@media (max-width: 768px) {
    #map-container {
        display: block;
        height: 100%;
        margin: 0;
    }

    #controls {
        padding: 10px;
    }

    .control-group:has(#zoom-controls) {
        display: none;
    }
}