/**
 * Styles pour les cartes Leaflet
 *
 * @package FFBoxing_Club_Finder
 */

/* Conteneur de la carte */
#ffboxing-map,
#ffboxing-detail-map {
    position: relative;
    z-index: 1;
    border: 2px solid #e0e0e0;
}

/* Popup personnalisée */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 15px;
    line-height: 1.6;
    font-size: 14px;
}

.leaflet-popup-content h4 {
    margin: 0 0 10px 0;
    color: #0066cc;
    font-size: 16px;
    font-weight: bold;
}

.leaflet-popup-content p {
    margin: 5px 0;
}

.leaflet-popup-content .popup-type {
    display: inline-block;
    padding: 2px 8px;
    background: #0066cc;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
}

.leaflet-popup-content .popup-link {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    background: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: background 0.3s;
}

.leaflet-popup-content .popup-link:hover {
    background: #0052a3;
    color: white;
}

/* Markers personnalisés */
.club-marker {
    background: #0066cc;
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    border: 3px solid white;
    font-weight: bold;
    font-size: 14px;
}

.club-marker.ecole {
    background: #28a745;
}

.club-marker.nearby {
    background: #ffc107;
}

/* Cluster markers */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: rgba(0, 102, 204, 0.6);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: rgba(0, 102, 204, 0.8);
    color: white;
    font-weight: bold;
}

/* Loading overlay */
.map-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 8px;
}

.map-loading-overlay .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
