/* =====================================================
   Map Styles - Leaflet Customization
   ===================================================== */

.route-map {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius);
}

/* Sin filtros para brillo máximo */
.leaflet-tile-pane {
    filter: none !important;
}

/* Custom popup */
.leaflet-popup-content-wrapper {
    background: var(--wapa-dark-card) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 0 !important;
}

.leaflet-popup-tip {
    background: var(--wapa-dark-card) !important;
    border: 1px solid var(--glass-border) !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    font-family: var(--font-body) !important;
}

.map-popup {
    padding: 16px 20px;
    min-width: 200px;
}

.map-popup-day {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--wapa-teal);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.map-popup-city {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.map-popup-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.map-popup-km {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(43, 194, 199, 0.1);
    border: 1px solid rgba(43, 194, 199, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--wapa-teal);
}

/* Custom marker */
.custom-marker {
    background: none;
    border: none;
}

.marker-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--wapa-teal);
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
}

.marker-dot.active {
    width: 26px;
    height: 26px;
    background: var(--wapa-orange);
    box-shadow: 0 0 20px rgba(246, 139, 31, 0.5);
}

.marker-dot.gold {
    background: var(--wapa-gold);
}

.marker-dot::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
    animation: marker-pulse 2s ease-out infinite;
}

.marker-dot.active::after {
    opacity: 1;
    border-color: var(--wapa-orange);
}

@keyframes marker-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2); opacity: 0; }
}

/* Route line animation */
.route-line-animated {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw-route 3s ease forwards;
}

@keyframes draw-route {
    to { stroke-dashoffset: 0; }
}

/* Map controls custom */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: var(--shadow-md) !important;
}

.leaflet-control-zoom a {
    background: var(--wapa-dark-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--glass-border) !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 18px !important;
}

.leaflet-control-zoom a:hover {
    background: var(--wapa-dark-surface) !important;
}

.leaflet-control-attribution {
    background: rgba(10, 10, 26, 0.8) !important;
    color: var(--text-muted) !important;
    font-size: 0.65rem !important;
}

.leaflet-control-attribution a {
    color: var(--wapa-teal) !important;
}
