﻿/* =====================================================
   GA Map Widget — ga-map.css v2.0.0
   ===================================================== */

.ga-map-wrapper {
    width: 100%;
    position: relative;
}

.ga-map-container {
    width: 100%;
    height: 450px;
    z-index: 1;
    position: relative;
    /* Leaflet gestiona touch internamente */
    -webkit-tap-highlight-color: transparent;
}

/* ---- Pines: elimina caja por defecto de Leaflet ---- */
.ga-map-svg-pin,
.ga-map-emoji-icon {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.ga-map-emoji {
    font-size: 28px;
    line-height: 1;
    display: block;
}

/* ---- Popup ---- */
.ga-map-popup strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
    color: #1a1a1a;
}

.ga-map-popup p {
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.45;
}

/* ---- Controles de zoom — toque mas grande en movil ---- */
.ga-map-container .leaflet-control-zoom a {
    width:       36px;
    height:      36px;
    line-height: 36px;
    font-size:   18px;
}

/* ---- Atribucion — texto mas pequeno en movil ---- */
@media (max-width: 600px) {
    .ga-map-container .leaflet-control-attribution {
        font-size: 9px;
        max-width: 180px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ga-map-container .leaflet-control-zoom a {
        width:       40px;
        height:      40px;
        line-height: 40px;
        font-size:   20px;
    }
}

/* ---- Popup — ancho reducido en pantallas angostas ---- */
@media (max-width: 480px) {
    .leaflet-popup-content-wrapper {
        max-width: 220px;
    }
}

/* ---- Placeholder en editor de Elementor ---- */
.ga-map-editor-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f4f8;
    border: 2px dashed #b0d4e8;
}

.ga-map-editor-placeholder {
    text-align: center;
    color: #4a8aaa;
    padding: 20px;
}

.ga-map-editor-icon {
    font-size: 52px;
    display: block;
    margin-bottom: 8px;
}

.ga-map-editor-placeholder strong {
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.ga-map-editor-sub {
    font-size: 12px;
    color: #7aafc8;
    margin: 0;
}
