/* Route Map Section Styles */
#route-map-section {
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

/* Route Map Container */
.route-map-container {
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Route Map Header */
.route-map-header {
    margin-bottom: 1.5rem;
}

.route-map-header .section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Route Information Cards */
.route-info-container {
    margin-bottom: 1.5rem;
}

.route-info-card {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
}

@media (max-width: 768px) {
    .route-info-card {
        flex-direction: column;
        gap: 1.5rem;
    }
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    color: var(--accent-green);
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Map Container */
.map-container {
    height: 500px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

/* Map Loading State */
.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 15, 0.7);
    color: var(--text-secondary);
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--accent-green);
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    padding: 1rem;
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 12px;
    color: var(--accent-pink);
    text-align: center;
}

/* Action Buttons */
.route-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.action-button:active {
    transform: translateY(0);
}

.share-button {
    color: var(--accent-blue);
}

.share-button:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.download-button {
    color: var(--accent-violet);
}

.download-button:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.directions-button {
    color: var(--accent-green);
}

.directions-button:hover {
    border-color: rgba(16, 185, 129, 0.3);
}

.button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Leaflet Map Custom Styles */
.custom-map-marker {
    background: transparent;
}

.marker-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    position: relative;
}

.start-icon {
    background: var(--accent-green);
    border: 3px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.start-icon:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

.end-icon {
    background: var(--accent-pink);
    border: 3px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.end-icon:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .route-info-card {
        flex-direction: column;
        gap: 1.5rem;
    }

    .route-actions {
        flex-direction: column;
        align-items: center;
    }

    .action-button {
        width: 100%;
        justify-content: center;
    }

    .map-container {
        height: 400px;
    }
}