body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    overflow: hidden;
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

.map-controls {
    position: absolute;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
}

@media (min-width: 769px) {
    .map-controls {
        top: 15px;
        left: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .map-controls {
        top: 10px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 5px;
    }
}

.map-panel {
    transition: all 0.3s ease;
}

@media (min-width: 769px) {
    .map-panel {
        width: auto;
        min-width: 140px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: rgba(255, 255, 255, 0.95);
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        border: 1px solid #e0e0e0;
    }

    .layers-title {
        display: block;
        font-size: 11px;
        text-transform: uppercase;
        color: #696969;
        font-weight: 700;
        margin-bottom: 4px;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 768px) {
    .map-panel {
        padding: 8px;
        display: flex;
        gap: 5px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .map-panel::-webkit-scrollbar {
        display: none;
    }

    .layers-title {
        display: none;
    }
}

.layer-btn {
    appearance: none;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background-color: #f1f3f5;
    color: #868e96;
    border: 1px solid transparent;

}

.layer-btn.active {
    background-color: #fff;
    color: var(--btn-color);
    border: 1px solid var(--btn-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

.bottom-nav {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);

    width: fit-content;
    max-width: 95%;

    z-index: 20;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);

    padding: 5px;

    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;

    display: flex;
    overflow-x: auto;
    gap: 4px;
}

.nav-item {
    background: transparent;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #495057;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s;
}

.nav-item:hover {
    background: #f1f3f5;
}

.nav-item:active {
    background: #e9ecef;
}

.bottom-nav::-webkit-scrollbar {
    display: none;
}
