/**
 * Pontelandolfo — Map Styles
 * Design system per mappe interattive
 *
 * @package Pontelandolfo
 * @since 2.0.0
 */

/* Map wrapper */
.ec-map-wrapper {
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Legend */
.ec-map-legend {
    font-family: 'Inter', sans-serif;
}

/* Filter buttons */
.ec-map-filters button {
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ec-map-filters button:hover {
    border-color: #0a4a8f;
    background: #f0f7ff;
}

.ec-map-filters button.active {
    background: #0a4a8f !important;
    color: white !important;
    border-color: #0a4a8f !important;
}

/* Marker pulse animation */
.ec-marker__inner {
    transition: transform 0.2s ease;
}

.ec-marker:hover .ec-marker__inner {
    transform: scale(1.2);
}

/* Cluster styles */
.ec-cluster {
    transition: all 0.2s ease;
}

.ec-cluster:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* Popup overrides */
.leaflet-popup-content-wrapper {
    border-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    padding: 0 !important;
}

.leaflet-popup-content {
    margin: 12px !important;
    font-family: 'Inter', sans-serif !important;
    line-height: 1.4 !important;
}

.leaflet-popup-close-button {
    color: #64748b !important;
    font-size: 18px !important;
    top: 8px !important;
    right: 8px !important;
}

/* Map on mobile */
@media (max-width: 768px) {
    .ec-map-filters {
        top: 8px !important;
        gap: 4px !important;
    }

    .ec-map-filters button {
        padding: 4px 10px !important;
        font-size: 11px !important;
    }

    .ec-map-legend {
        top: 60px !important;
        right: 8px !important;
        padding: 8px 12px !important;
        font-size: 11px !important;
    }
}

/* Loading state */
.ec-map-loading {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    font-family: 'Inter', sans-serif;
    color: #0a4a8f;
    font-weight: 600;
}

/* Fullscreen button custom */
.ec-map-fullscreen-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 1000;
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
