﻿/* ================= Map Controls Container ================= */
.map-controls {
    position: fixed;
    top: 90px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1050;
}

/* ================= Main Buttons ================= */
.basemap-icon {
    background-color: darkblue;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

    .basemap-icon:hover {
        background-color: #5a6268;
        transform: scale(1.05);
    }

    .basemap-icon i {
        font-size: 20px;
    }

/* ================= Layer Panel ================= */
.nested-icons {
    position: fixed;
    top: 90px;
    right: 75px;
    background-color: darkblue;
    padding: 8px 10px;
    border-radius: 12px;
    display: none;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1050;
}

    /* show */
    .nested-icons.show {
        display: flex;
    }

/* ================= Icons inside panel ================= */
.icon {
    background-color: darkslateblue;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .icon:hover {
        transform: scale(1.05);
        background-color: #5a6268;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    .icon i {
        font-size: 16px;
    }

.icon-label {
    font-size: 9px;
    margin: 0;
    line-height: 1;
}

/* ================= MOBILE RESPONSIVE (50% REDUCTION) ================= */
@media (max-width: 576px) {

    .map-controls {
        top: 87.5px !important; /* 70 * 1.25 */
        right: 10px !important; /* 8 * 1.25 */
        gap: 6.25px !important; /* 5 * 1.25 */
    }

    .basemap-icon {
        width: 30px !important; /* 24 * 1.25 */
        height: 30px !important;
    }

        .basemap-icon i {
            font-size: 12.5px !important; /* 10 * 1.25 */
        }

    .nested-icons {
        top: 87.5px !important; /* 70 * 1.25 */
        right: 47.5px !important; /* 38 * 1.25 */
        padding: 6.25px !important; /* 5 * 1.25 */
        gap: 5px !important; /* 4 * 1.25 */
    }

    .icon {
        width: 35px !important; /* 28 * 1.25 */
        height: 35px !important;
        padding: 2.5px !important; /* 2 * 1.25 */
    }

        .icon i {
            font-size: 11.25px !important; /* 9 * 1.25 */
        }

    .icon-label {
        font-size: 7.5px !important; /* 6 * 1.25 */
    }
}
