/**
 * Monumentos Históricos KML
 * Botón para mostrar monumentos históricos en el mapa
 * Contenedor: leaflet-top leaflet-right (debajo de parques-nacionales)
 */

/* Botón principal */
.leaflet-control-monumentos-historicos.leaflet-bar {
    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;
    margin: 0;
    box-sizing: border-box;
    border-radius: 4px;
    border: 2px solid rgba(0,0,0,0.2);
    background-color: #fff;
    background-size: 21px 21px;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('/wp-content/uploads/icons/svg/monumentos-historicos.svg');
    position: relative;
    z-index: 1000;
}

/* Estado hover */
.leaflet-control-monumentos-historicos.leaflet-bar:hover {
    background-color: #f2f8fc;
    border-color: rgba(0,0,0,0.3);
}

/* Estado activo/presionado */
.leaflet-control-monumentos-historicos.leaflet-bar:active {
    transform: scale(0.98);
}

/* Estado activado (marcadores visibles) */
.leaflet-control-monumentos-historicos.leaflet-bar.activa {
    background-color: #FF7B00 !important;
    border-color: #cc6200;
}

/* Tooltip táctil para móviles */
.leaflet-control-monumentos-historicos-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-monumentos-historicos-tooltip-touch.visible {
    opacity: 1;
}

@media (max-width: 360px) {
    .leaflet-control-monumentos-historicos-tooltip-touch {
        font-size: 0.72rem;
        padding: 5px 7px;
    }
}
