.leaflet-control {
    background: rgba(255,255,255,0.9);
    padding: 6px;
    border-radius: 8px;
}

.leaflet-control button {
    font-size: 14px;
    padding: 6px 10px;
    margin: 4px;
    border-radius: 6px;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    user-select: none;
    background: white;
    border: 1px solid #ccc;
}

/* Tablet */
@media (max-width: 1024px) {
    .leaflet-control button {
        font-size: 16px;
        padding: 10px 14px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .leaflet-control button {
        font-size: 18px;
        padding: 14px 18px;
    }
}

.leaflet-control button:active {
    transform: scale(0.96);
}

/* -------- DESKTOP (unchanged feel) -------- */
.custom-controls {
    display: flex;
    flex-direction: column;
}

/* -------- MOBILE TOOLBAR -------- */
@media (max-width: 600px) {

    .leaflet-control-container .leaflet-top.leaflet-right {
        top: auto;
        bottom: 10px;
        right: 0;
        left: 0;
        display: flex;
        justify-content: center;
    }

    .custom-controls {
        flex-direction: row;
        justify-content: space-around;
        width: 95%;
        max-width: 500px;
        background: rgba(255,255,255,0.95);
        border-radius: 12px;
        padding: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    .custom-controls button {
        flex: 1;
        margin: 4px;
        font-size: 16px;
        padding: 12px 8px;
        border-radius: 8px;
    }
}

.speedBtn.active {
    background-color: #007bff;
    color: white;
}