/* =========================================================
   OSM Multi-Location Map v2 – Estilos Frontend
   ========================================================= */

/* Contenedor */
.osm-map-wrapper {
    width: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
}

.osm-map-container {
    width: 100%;
    min-height: 200px;
    z-index: 1;
}

/* ── Hint de scroll ── */
.osm-scroll-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity .25s ease;
}

.osm-scroll-hint.osm-hint-visible {
    opacity: 1;
}

.osm-scroll-hint span {
    background: rgba(0,0,0,.65);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

/* ── Marcadores ── */
.osm-custom-icon { background: transparent !important; border: none !important; }
.osm-fa-marker   { transition: transform .2s; }
.osm-fa-marker:hover { transform: scale(1.15) translateY(-2px); }
.osm-svg-icon    { transition: transform .2s; }

/* ═══════════════════════════════════════════════════════
   Popup
   ═══════════════════════════════════════════════════════ */
.osm-custom-popup .leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    border: none;
    overflow: hidden;
    min-width: 200px;
}

.osm-custom-popup .leaflet-popup-content {
    margin: 0;
    width: auto !important;
}

.osm-custom-popup .leaflet-popup-tip { box-shadow: none; }

.osm-popup {
    padding: 16px 18px;
    font-family: inherit;
}

.osm-popup-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
    line-height: 1.3;
}

.osm-popup-address {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.osm-popup-address i { font-size: 11px; color: #aaa; flex-shrink: 0; }

.osm-popup-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 12px;
}

.osm-popup-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #3498db;
    text-decoration: none;
    border: 1.5px solid #3498db;
    border-radius: 6px;
    padding: 5px 12px;
    transition: all .2s ease;
    background: transparent;
    margin-top: 4px;
}

.osm-popup-link:hover {
    background: #3498db;
    color: #fff;
    text-decoration: none;
}

.osm-popup-link i { font-size: 10px; transition: transform .2s; }
.osm-popup-link:hover i { transform: translateX(3px); }

/* ═══════════════════════════════════════════════════════
   Controles Leaflet
   ═══════════════════════════════════════════════════════ */
.osm-map-container .leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.15) !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.osm-map-container .leaflet-control-zoom a {
    width: 34px !important; height: 34px !important;
    line-height: 34px !important; font-size: 16px !important;
    color: #333 !important; background: #fff !important;
    border: none !important;
}

.osm-map-container .leaflet-control-zoom a:hover {
    background: #f0f0f0 !important; color: #000 !important;
}

.osm-map-container .leaflet-control-attribution {
    background: rgba(255,255,255,.8) !important;
    font-size: 10px !important;
    border-radius: 4px 0 0 0 !important;
    padding: 2px 6px !important;
}
