/**
 * Styles pour les marqueurs de carte Google Maps
 * Le Gazouilleur - Page d'accueil
 */

/* Marqueur de position utilisateur */
.user-location-marker {
    background: transparent !important;
    border: none !important;
}

.user-location-marker div {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Marqueur d'événement */
.event-marker {
    background: transparent !important;
    border: none !important;
}

.event-marker div {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.event-marker:hover div {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Popup Google Maps personnalisé */
.google-maps-popup-content {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: 'Nunito', sans-serif;
    margin: 0;
}

/* Animation d'apparition des marqueurs */
@keyframes markerAppear {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.event-marker div {
    animation: markerAppear 0.3s ease-out;
}

/* Limite la largeur de la popup et permet le débordement */
.google-maps-popup-content,
.event-popup {
    max-width: 260px !important;
    min-width: 180px;
    box-sizing: border-box;
}

/* Forcer la couleur du texte du bouton de la popup Google Maps */
.event-popup a {
    color: #fff !important;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

/**
 * Styles pour la carte des événements - Page détail événement
 */

/* Conteneur de la carte */
.event-detail-map {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-detail-map:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Marqueur pour la page détail */
.event-detail-marker {
    background: transparent !important;
    border: none !important;
}

.event-detail-marker div {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: eventMarkerPulse 2s infinite;
}

@keyframes eventMarkerPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Popup pour la page détail événement */
.event-detail-popup .google-maps-popup-content {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    padding: 16px;
}

.event-detail-popup .google-maps-popup-content {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

/* Indicateur de clic sur la carte */
.map-click-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.event-detail-map:hover .map-click-indicator {
    opacity: 1;
}

/* Marqueurs personnalisés */
.custom-marker {
    background: transparent !important;
    border: none !important;
}

.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: var(--color-earth-600);
    position: relative;
    transform: rotate(-45deg);
    margin: -15px -15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.marker-pin::after {
    content: '';
    width: 24px;
    height: 24px;
    margin: 3px 0 0 3px;
    background: white;
    position: absolute;
    border-radius: 50%;
}

/* Marqueur en surbrillance - Cibler spécifiquement les marqueurs Google Maps */
.google-maps-marker-icon .marker-pin.highlighted,
.marker-pin.highlighted {
    background: var(--color-nature-600);
    transform: rotate(-45deg) scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    animation: markerPulse 1s infinite;
}

@keyframes markerPulse {
    0% {
        transform: rotate(-45deg) scale(1.2);
    }
    50% {
        transform: rotate(-45deg) scale(1.4);
    }
    100% {
        transform: rotate(-45deg) scale(1.2);
    }
}

.google-maps-marker-icon .marker-pin.highlighted,
.marker-pin.highlighted {
    background: var(--color-nature-600);
    transform: rotate(-45deg) scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    animation: markerPulse 1s infinite;
}

/* Marqueur standard */
.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: var(--color-earth-600);
    position: relative;
    transform: rotate(-45deg);
    margin: -15px -15px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

/* Forcer la visibilité des marqueurs Google Maps */
.google-maps-marker-icon .marker-pin {
    display: block !important;
    visibility: visible !important;
}

/* Carte d'événement en surbrillance - Défini dans main.css */

/* Transitions générales */
.transition-all {
    transition: all 0.3s ease;
}

/* Conteneur de liste d'événements */
.events-list-container {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.events-list-container::-webkit-scrollbar {
    width: 6px;
}

.events-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.events-list-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.events-list-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
} 