/**
 * Styles pour les marqueurs personnalisés Leaflet
 * Corrige le problème des icônes PNG manquantes
 */

/* Style pour les marqueurs personnalisés avec icône de patte */
.custom-leaflet-marker {
    background: transparent;
    border: none;
}

.marker-pin {
    width: 30px;
    height: 42px;
    position: relative;
    background: linear-gradient(135deg, #119FBF 0%, #66CC91 100%);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.marker-pin:hover {
    transform: rotate(-45deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.marker-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animation au survol */
.custom-leaflet-marker:hover .marker-pin {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: rotate(-45deg) translateY(0); }
    50% { transform: rotate(-45deg) translateY(-5px); }
}

/* Style pour les popups de la carte */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
}

.mapDetails {
    min-width: 200px;
}

.mapDetails strong {
    font-size: 15px;
    color: #119FBF;
    margin-bottom: 8px;
    display: block;
}

.mapDetails a {
    color: #119FBF;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mapDetails a:hover {
    color: #66CC91;
    text-decoration: underline;
}

/* Fix pour les icônes Leaflet par défaut qui ne chargent pas */
.leaflet-default-icon-path {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iNDEiIHZpZXdCb3g9IjAgMCAyNSA0MSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMTIuNSAwQzUuNiAwIDAgNS42IDAgMTIuNWMwIDguMiAxMi41IDI4LjUgMTIuNSAyOC41UzI1IDIwLjcgMjUgMTIuNUMyNSA1LjYgMTkuNCAwIDEyLjUgMHptMCAxN2MtMi41IDAtNC41LTItNC41LTQuNXMyLTQuNSA0LjUtNC41IDQuNSAyIDQuNSA0LjUtMiA0LjUtNC41IDQuNXoiIGZpbGw9IiMxMTlGQkYiLz4KICA8cGF0aCBkPSJNMTIuNSA4YTQuNSA0LjUgMCAxIDAgMCA5IDQuNSA0LjUgMCAwIDAgMC05eiIgZmlsbD0iI2ZmZiIvPgo8L3N2Zz4=");
}

/* Correction pour les marqueurs qui apparaissent cassés */
.leaflet-marker-icon {
    /* Fallback si l'icône ne charge pas */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Style amélioré pour la carte */
#vets-map,
#vet_location_map,
.vet-location-map {
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    #vets-map,
    #vet_location_map,
    .vet-location-map {
        min-height: 300px;
    }
    
    .marker-pin {
        width: 25px;
        height: 35px;
    }
}

