/* Estilo del botón de Lagunas KML */
/* Mismo estilo que farmacias, gasolineras, municipios-kml, etc. */
.leaflet-control-lagunas-kml.leaflet-bar {
    background-color: #fff;
    border: 2px solid rgba(0,0,0,0.2);
    width: 33px;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.12s ease;
    user-select: none;
    -webkit-user-select: none;
    border-radius: 4px;
    position: relative;
    z-index: 1000;
}

.leaflet-control-lagunas-kml.leaflet-bar:hover {
    background-color: #f2f8fc;
    border-color: rgba(0,0,0,0.3);
}

.leaflet-control-lagunas-kml.leaflet-bar:active {
    transform: scale(0.98);
}

.leaflet-control-lagunas-kml.leaflet-bar.activa {
    background-color: #FF7B00 !important;
    border-color: #cc6200;
}

/* Wrapper SVG dentro del botón */
.leaflet-control-lagunas-kml .lg-svg-wrap {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leaflet-control-lagunas-kml .lg-svg-wrap svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Marker SVG wrapper */
.lg-svg-marker {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    transform: translateY(-6px);
    pointer-events: auto;
}

.lg-svg-marker svg {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Tooltip touch para móviles */
.leaflet-control-lagunas-kml-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;
}

.leaflet-control-lagunas-kml-tooltip-touch.visible {
    opacity: 1;
}

@media (max-width: 360px) {
    .leaflet-control-lagunas-kml-tooltip-touch {
        font-size: 0.72rem;
        padding: 5px 7px;
    }
}
