/**
 * Styles pour l'affichage des cartes interactives basées sur des images
 * Style antique/jeu vidéo
 */

/* Conteneur principal de la carte */
.wp-leaflet-image-map {
    width: 100%;
    height: 600px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

/* Styles de bordure pour les différents types de cartes */
.map-border-antique {
    border: 12px solid transparent;
    border-image: url('../images/borders/antique-border.png') 12 round;
}

.map-border-medieval {
    border: 12px solid transparent;
    border-image: url('../images/borders/medieval-border.png') 12 round;
}

.map-border-fantasy {
    border: 12px solid transparent;
    border-image: url('../images/borders/fantasy-border.png') 12 round;
}

/* Message d'erreur */
.wp-leaflet-image-map-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-family: 'Times New Roman', serif;
}

/* Styles pour les popups des marqueurs */
.popup-style-antique {
    font-family: 'Times New Roman', serif;
    background-color: #f8f0dd;
    border: 2px solid #b5a88c;
    border-radius: 0;
}

.popup-style-medieval {
    font-family: 'Times New Roman', serif;
    background-color: #ede3c9;
    border: 2px solid #8c7b5b;
    border-radius: 0;
}

.popup-style-fantasy {
    font-family: 'Times New Roman', serif;
    background-color: #e6f0ff;
    border: 2px solid #8ca5b5;
    border-radius: 0;
}

.marker-popup h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
    font-family: 'Times New Roman', serif;
    color: #5c4b32;
    text-align: center;
    border-bottom: 1px solid #b5a88c;
    padding-bottom: 5px;
}

.marker-content {
    margin-bottom: 10px;
    font-family: 'Times New Roman', serif;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.marker-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid #b5a88c;
}

/* Styles pour l'échelle décorative */
.map-decorative-scale {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    border-radius: 4px;
    font-family: 'Times New Roman', serif;
    font-size: 12px;
    color: #5c4b32;
    text-align: center;
}

.scale-bar {
    height: 5px;
    background-color: #5c4b32;
    margin-bottom: 5px;
    position: relative;
}

.scale-bar:before, .scale-bar:after {
    content: '';
    position: absolute;
    width: 2px;
    height: 10px;
    background-color: #5c4b32;
    top: -2px;
}

.scale-bar:before {
    left: 0;
}

.scale-bar:after {
    right: 0;
}

.scale-text {
    font-style: italic;
}

/* Styles pour la rose des vents */
.map-compass-rose {
    background-color: transparent;
}

.map-compass-rose img {
    width: 80px;
    height: 80px;
    opacity: 0.8;
}

/* Styles pour les contrôles de zoom */
.leaflet-control-zoom {
    border: 1px solid #b5a88c !important;
    background-color: #f8f0dd !important;
}

.leaflet-control-zoom a {
    color: #5c4b32 !important;
    background-color: #f8f0dd !important;
}

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

/* Styles spécifiques pour les différents types de cartes */
.wp-leaflet-image-map-style-antique .leaflet-container {
    background-color: #f8f0dd;
}

.wp-leaflet-image-map-style-medieval .leaflet-container {
    background-color: #ede3c9;
}

.wp-leaflet-image-map-style-fantasy .leaflet-container {
    background-color: #e6f0ff;
}

/* Animation pour les marqueurs */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.leaflet-marker-icon:hover {
    animation: pulse 1.5s infinite;
}
