/* ============================================
    BOTÓN DE LAYER SWITCH
    Mismo estilo que geolocate-control.css
    ============================================ */

.leaflet-control-switch-layer.leaflet-bar {
    width: 33px;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 2px solid rgba(0,0,0,0.2);
    cursor: pointer;
    margin: 0 !important;
    margin-left: 3px !important;
    margin-right: 0 !important;
    box-sizing: border-box;
    position: relative;
    border-radius: 4px;
    transition: all 0.12s ease;
    user-select: none;
    -webkit-user-select: none;
}

.leaflet-control-switch-layer.leaflet-bar:active {
    transform: scale(0.98);
}

.leaflet-control-switch-layer.leaflet-bar:hover {
    background-color: #f2f8fc;
    border-color: rgba(0,0,0,0.3);
}

.leaflet-control-switch-layer img {
    width: 27px;
    height: 27px;
    display: block;
    margin: 0;  /* Sin márgenes adicionales */
    padding: 0;  /* Sin padding adicional */
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: auto;
}

.leaflet-control-switch-layer.activa {
    background: #FF7B00 !important;
    color: #fff;
}

.switch-tooltip-touch {
    position: fixed;
    background: rgba(0,0,0,0.88);
    color: #fff;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.12s ease;
    z-index: 100000;
    pointer-events: none;
    transform-origin: right center;
}

.switch-tooltip-touch.visible {
    opacity: 1;
}

@media (max-width: 360px) {
    .switch-tooltip-touch {
        font-size: 0.72rem;
        padding: 5px 7px;
    }
}
