body { 
    margin: 0; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #2d2d2d 100%);
    color: #fff;
    overflow: hidden;
}

#map { 
    height: 100vh; 
    width: 100%; 
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin: 0;
    border: 2px solid #333;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), inset 0 0 100px rgba(0, 0, 0, 0.3);
}

.map-container {
    padding: 10px;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #2d2d2d 100%);
    min-height: 100vh;
}

.leaflet-popup-content-wrapper {
    border-radius: 15px;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.leaflet-popup-content {
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin: 0 !important;
}

.leaflet-popup-content b {
    color: #fff200;
    font-size: 16px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.leaflet-popup-tip {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

/* Estilos para los marcadores de origen */
.origin-marker {
    background: radial-gradient(circle, #ff6b6b, #e55656);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.6);
}

/* Estilos para los marcadores de destino */
.destination-marker {
    background: radial-gradient(circle, #4ecdc4, #45b7b8);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.6);
}

/* Título del mapa - Tema oscuro */
.map-title {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid #FF4757;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 71, 87, 0.3);
    backdrop-filter: blur(15px);
    text-shadow: 0 0 15px rgba(255, 71, 87, 0.8);
}

.map-title:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 71, 87, 0.5);
    transition: all 0.3s ease;
}

/* Leyenda - Tema oscuro */
.map-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid #2ED573;
    padding: 15px;
    border-radius: 15px;
    font-size: 12px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 25px rgba(46, 213, 115, 0.3);
    backdrop-filter: blur(15px);
}

.map-legend:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.9), 0 0 35px rgba(46, 213, 115, 0.4);
    transition: all 0.3s ease;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 8px 0;
    color: #fff;
}

.legend-item:hover {
    transform: translateX(5px);
    transition: all 0.2s ease;
}

.legend-color {
    width: 25px;
    height: 4px;
    margin-right: 12px;
    border-radius: 2px;
    box-shadow: 0 0 10px currentColor;
}

/* Estilos para botones de música en popups */
.music-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.music-button:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    color: white;
}

.youtube-button {
    background: linear-gradient(45deg, #FF0000, #CC0000);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.youtube-button:hover {
    background: linear-gradient(45deg, #FF3333, #FF0000);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.5);
}

.spotify-button {
    background: linear-gradient(45deg, #1DB954, #1ed760);
    box-shadow: 0 4px 15px rgba(29, 185, 84, 0.3);
}

.spotify-button:hover {
    background: linear-gradient(45deg, #1ed760, #1DB954);
    box-shadow: 0 8px 25px rgba(29, 185, 84, 0.5);
}

/* Mejorar popups */
.leaflet-popup-close-button {
    color: #fff !important;
    font-size: 18px !important;
    padding: 8px !important;
}

.leaflet-popup-close-button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ff4757 !important;
}

/* Efectos adicionales para tema oscuro */
.map-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(255, 71, 87, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(46, 213, 115, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 60%, rgba(55, 66, 250, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .map-title {
        font-size: 18px;
        padding: 10px 20px;
        top: 10px;
    }
    
    .map-legend {
        bottom: 10px;
        right: 10px;
        font-size: 11px;
        padding: 10px;
    }
}
