#map-controls {
    position: absolute;
    top: 10%;
    right: 14px;
    z-index: 800;
    max-height: calc(100% - 90px);
    padding: 5px;
    overflow-x: visible;
    overflow-y: auto;
    text-align: center;
    scrollbar-width: none;
}

#map-controls::-webkit-scrollbar {
    display: none;
}

#map-controls .map-control-symbols {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

#map-controls .btn-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 8px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    background: rgba(8, 24, 42, .92);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .24), 0 2px 7px rgba(0, 0, 0, .18);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

#map-controls .btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px !important;
    background: transparent;
    color: rgba(255, 255, 255, .82);
    box-shadow: none;
    line-height: 40px;
    text-align: center;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

#map-controls .map-control-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .18s ease;
}

#map-controls .btn:hover {
    border-color: rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .10);
    color: #fff;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .18);
    transform: translateX(-2px);
}

#map-controls .btn:hover .map-control-icon {
    transform: scale(1.08);
}

#map-controls .btn:focus {
    outline: none;
    border-color: rgba(255, 103, 31, .8);
    box-shadow: 0 0 0 3px rgba(255, 103, 31, .24);
}

#map-controls .btn.active {
    border-color: rgba(255, 103, 31, .72);
    background: rgba(255, 103, 31, .18);
    color: #ff8f59;
    box-shadow: inset 3px 0 0 #ff671f, 0 4px 12px rgba(255, 103, 31, .16);
}

#map-controls .btn.active:hover {
    background: rgba(255, 103, 31, .28);
    color: #ffad85;
}

#map-controls .btn input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

@media (max-height: 720px) {
    #map-controls {
        top: 60px;
        max-height: calc(100% - 70px);
    }

    #map-controls .btn-group-vertical {
        gap: 2px;
        margin-bottom: 6px;
        padding: 3px;
    }

    #map-controls .btn {
        width: 36px;
        height: 36px;
        line-height: 36px;
    }

    #map-controls .map-control-icon {
        width: 18px;
        height: 18px;
    }
}
