/**
 * Perfecto Map - Styles CSS
 */

/* Container principal */
.perfecto-map-container {
    width: 100%;
    margin: 20px 0;
    position: relative;
}

/* Carte elle-même */
.perfecto-map {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Marqueurs personnalisés */
.leaflet-marker-icon {
    background: white;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.leaflet-marker-icon:hover {
    transform: scale(1.1);
    z-index: 1000 !important;
}

.leaflet-marker-icon i {
    font-size: 16px;
}

/* Marqueur central */
.center-marker {
    background: transparent !important;
    box-shadow: none !important;
}

.center-marker-wrapper {
    background: white;
    border: 4px solid #d63638;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(214, 54, 56, 0.5);
    animation: pulse-center 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.center-marker-wrapper i {
    font-size: 20px;
}

/* Logo personnalisé pour le marqueur central */
.center-marker-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

/* Description du marqueur central */
.center-description {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

@keyframes pulse-center {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(214, 54, 56, 0.5);
    }
    50% {
        box-shadow: 0 4px 20px rgba(214, 54, 56, 0.8);
    }
}

/* Marqueur d'hébergement spécial */
.accommodation-marker {
    background: transparent !important;
    box-shadow: none !important;
}

.accommodation-marker-wrapper {
    background: white;
    border: 3px solid #6e2d1b;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(110, 45, 27, 0.4);
}

.accommodation-marker-wrapper i {
    font-size: 18px;
}

/* Popups */
.poi-popup {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    min-width: 200px;
}

.poi-popup strong {
    font-size: 16px;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.poi-popup em {
    color: #666;
    font-size: 13px;
    display: block;
    margin-bottom: 8px;
}

.poi-popup br {
    margin: 4px 0;
}

.poi-popup i {
    margin-right: 5px;
    color: #666;
}

.poi-popup a {
    color: #0073aa;
    text-decoration: none;
}

.poi-popup a:hover {
    text-decoration: underline;
}

.accommodation-popup {
    border-left: 4px solid #6e2d1b;
    padding-left: 10px;
}

/* Popup du centre - SANS bordure rouge */
.center-popup {
    /* Pas de bordure pour le popup central */
}

/* Filtres de catégories */
.perfecto-map-filters {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 16px;
    background: white;
    border-radius: 20px;
    border: 2px solid #e0e0e0;
    transition: all 0.2s ease;
    user-select: none;
}

.filter-checkbox-label:hover {
    border-color: #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-checkbox-label input[type="checkbox"] {
    margin: 0 8px 0 0;
    cursor: pointer;
}

.filter-checkbox-label input[type="checkbox"]:checked + .filter-checkbox-text {
    font-weight: 600;
}

.filter-checkbox-text {
    font-size: 14px;
    color: #333;
    transition: color 0.2s ease;
}

/* Effet de couleur sur les filtres actifs */
.filter-checkbox-label:has(input:checked) {
    border-width: 2px;
}

/* Message d'erreur */
.perfecto-map-error {
    padding: 20px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c33;
    text-align: center;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .perfecto-map {
        height: 400px;
    }
    
    .filter-checkboxes {
        gap: 10px;
    }
    
    .filter-checkbox-label {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* Améliorations pour Leaflet */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-tip {
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.2);
}

.leaflet-control-zoom a {
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 18px;
}

.leaflet-control-scale-line {
    border: 2px solid #777;
    border-top: none;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 5px;
}