/* Leaflet Maps for Elementor - Frontend Styles */

.leaflet-elementor-wrapper {
    width: 100%;
    position: relative;
}

.leaflet-map-container {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
}

/* Custom popup styles */
.leaflet-popup-content-custom {
    padding: 10px;
    min-width: 150px;
}

.leaflet-popup-content-custom h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.leaflet-popup-content-custom p {
    margin: 10px 0 0 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.leaflet-popup-content-custom img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Custom marker styles */
.leaflet-marker-icon {
    transition: transform 0.3s ease;
}

.leaflet-marker-icon:hover {
    transform: scale(1.1);
}

/* Circle marker styles */
.leaflet-circle-marker {
    cursor: pointer;
    transition: all 0.3s ease;
}

.leaflet-circle-marker:hover {
    stroke-width: 4px;
}

/* Polygon/Area styles */
.leaflet-interactive {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.leaflet-interactive:hover {
    opacity: 0.8;
}

/* Map controls customization */
.leaflet-control-zoom {
    border: 2px solid rgba(0,0,0,0.2) !important;
    border-radius: 4px;
}

.leaflet-control-zoom a {
    background-color: #fff !important;
    color: #333 !important;
    transition: background-color 0.3s ease;
}

.leaflet-control-zoom a:hover {
    background-color: #f4f4f4 !important;
}

/* Attribution styling */
.leaflet-control-attribution {
    background-color: rgba(255,255,255,0.8) !important;
    padding: 2px 5px !important;
    font-size: 11px !important;
}

/* Loading state */
.leaflet-map-container.loading {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leaflet-map-container.loading::after {
    content: 'Loading map...';
    color: #999;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .leaflet-popup-content-custom {
        min-width: 120px;
    }
    
    .leaflet-popup-content-custom h3 {
        font-size: 14px;
    }
    
    .leaflet-popup-content-custom p {
        font-size: 12px;
    }
}

/* Fix for Elementor editor */
.elementor-widget-leaflet-map .leaflet-map-container {
    z-index: 0;
}

/* Editor preview placeholder */
.leaflet-editor-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.editor-map-placeholder {
    text-align: center;
    color: white;
}

.editor-map-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.editor-map-placeholder p {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
}