/* ==========================================================================
   Leaflet API Map - Custom Styles (map-style.css)
   ========================================================================== */

/* Correzione Clic e Cursore sui Marker Custom */
.custom-leaflet-marker-icon {
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: filter 0.15s ease-in-out;
    filter: drop-shadow(0px 3px 6px rgba(0, 0, 0, 0.3));
}

/* Effetto Hover: Aumenta l'ombra ed evidenzia il marker SENZA alterare il transform di Leaflet */
.custom-leaflet-marker-icon:hover {
    filter: drop-shadow(0px 6px 12px rgba(0, 0, 0, 0.5)) brightness(1.1) !important;
}

/* Previene conflitti con il tema WordPress */
.leaflet-container img {
    max-width: none !important;
    max-height: none !important;
}

/* Styling del Popup Personalizzato */
.lam-popup-card {
    font-family: inherit;
    text-align: center;
    min-width: 200px;
    padding: 6px 2px;
}

.lam-popup-title {
    margin: 0 0 6px 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111 !important;
    line-height: 1.3 !important;
}

.lam-popup-address {
    margin: 0 0 10px 0 !important;
    font-size: 12px !important;
    color: #666 !important;
    line-height: 1.2 !important;
}

.lam-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lam-popup-btn {
    display: block;
    padding: 8px 12px;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    transition: background-color 0.2s ease;
}

.lam-btn-detail {
    background-color: #333;
    color: #fff !important;
}

.lam-btn-detail:hover {
    background-color: #555;
}

.lam-btn-gmaps {
    background-color: #A21A17;
    color: #fff !important;
}

.lam-btn-gmaps:hover {
    background-color: #801412;
}

/* Fix estetico della nuvoletta Leaflet */
.leaflet-popup-content-wrapper {
    border-radius: 10px !important;
    padding: 6px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
}

.leaflet-popup-content {
    margin: 8px 12px !important;
    line-height: 1.4 !important;
}