/* === ROUTE MAP SECTION STYLES === */

.route-map-section {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    position: relative;
}

.route-map-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--color-accent),
            var(--color-accent-light),
            var(--color-accent-dark));
}

.route-map-container {
    max-width: 1200px;
    margin: 0 auto;
}

.route-map-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.route-map-title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
    position: relative;
    display: inline-block;
}

.route-map-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color-accent);
    border-radius: var(--radius-full);
}

.route-map-subtitle {
    font-size: var(--text-lg);
    color: var(--color-gray-dark);
    line-height: 1.6;
}

.route-map-wrapper {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    background: var(--color-white);
}

#route-map {
    width: 100%;
    height: 600px;
    border-radius: var(--radius-2xl);
}

.route-map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    z-index: 999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-gray-light);
    border-top: 4px solid var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-4);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: var(--text-base);
    color: var(--color-gray-dark);
    font-weight: var(--font-medium);
}

/* Анимация для скрипта */
.route-map-wrapper {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.route-map-wrapper.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 768px) {
    .route-map-section {
        padding: var(--space-16) 0;
    }

    .route-map-title {
        font-size: var(--text-3xl);
    }

    .route-map-subtitle {
        font-size: var(--text-base);
    }

    #route-map {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .route-map-title {
        font-size: var(--text-2xl);
    }

    #route-map {
        height: 400px;
    }
}