/**
 * Стили для карт Vector Medical
 * @version 2.0.0
 */

/* ========================================
   Базовые стили карт
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.08) 0%, rgba(0, 151, 167, 0.08) 100%);
    color: #0097A7;
    font-weight: 600;
    padding: 0.625rem 1.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid rgba(0, 188, 212, 0.2);
}

.section-badge svg {
    flex-shrink: 0;
}

.section-title {
    color: #212121;
    margin: 1.5rem 0 0.75rem;
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
}

.section-subtitle {
    color: #757575;
    font-size: 1.25rem;
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
}

.map-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.1), 
                0 0 0 1px rgba(0, 188, 212, 0.1);
    position: relative;
}

.yandex-map {
    width: 100%;
    height: 500px;
    min-height: 400px;
}

/* Описание под картой */
.map-description {
    max-width: 950px;
    margin: 0 auto;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.04) 0%, rgba(178, 235, 242, 0.06) 100%);
    border-radius: 20px;
    border: 2px solid rgba(0, 188, 212, 0.12);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.08);
}

.map-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00BCD4 0%, #0097A7 50%, #00BCD4 100%);
}

.map-description p {
    font-size: 1.1875rem;
    line-height: 2;
    color: #212121;
    margin: 0;
    text-align: center;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.map-description p a {
    color: #00BCD4;
    text-decoration: none;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(0, 188, 212, 0.08);
    display: inline-block;
    border-bottom: 2px solid transparent;
}

.map-description p a:hover {
    color: #0097A7;
    background: rgba(0, 188, 212, 0.15);
    border-bottom-color: #00BCD4;
}

/* ========================================
   Секция карты на главной странице
   ======================================== */

.service-zone-map {
    padding: 6rem 0;
    background: linear-gradient(180deg, #ffffff 0%, rgba(178, 235, 242, 0.08) 50%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.service-zone-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 188, 212, 0.25) 50%, transparent 100%);
}

/* ========================================
   Карта на странице контактов
   ======================================== */

.map-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, rgba(178, 235, 242, 0.05) 0%, #ffffff 50%, rgba(178, 235, 242, 0.05) 100%);
    position: relative;
}

.map-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 188, 212, 0.2) 50%, transparent 100%);
}

.map-section .container {
    position: relative;
    z-index: 1;
}

/* ========================================
   Карта на странице "О компании"
   ======================================== */

.geography-map-section {
    padding: 6rem 0 7rem;
    background: linear-gradient(180deg, #ffffff 0%, rgba(178, 235, 242, 0.06) 30%, rgba(0, 188, 212, 0.04) 70%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.geography-map-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 188, 212, 0.15) 20%, rgba(0, 151, 167, 0.15) 50%, rgba(0, 188, 212, 0.15) 80%, transparent 100%);
}

.geography-map-section .container {
    position: relative;
    z-index: 1;
}

/* ========================================
   Адаптивность
   ======================================== */

@media (max-width: 768px) {
    .yandex-map {
        height: 400px;
        min-height: 300px;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-badge {
        padding: 0.5rem 1.25rem;
        font-size: 0.8125rem;
    }

    .section-title {
        font-size: 2rem;
        margin: 1.25rem 0 0.5rem;
    }

    .section-subtitle {
        font-size: 1.0625rem;
    }

    .map-description {
        padding: 2rem;
        margin: 0 1rem;
    }

    .map-description p {
        font-size: 1.0625rem;
        line-height: 1.8;
    }

    .service-zone-map,
    .map-section,
    .geography-map-section {
        padding: 4rem 0;
    }

    .geography-map-section {
        padding-bottom: 5rem;
    }

    .map-container {
        border-radius: 16px;
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 480px) {
    .yandex-map {
        height: 350px;
        min-height: 300px;
    }

    .section-badge {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        gap: 0.375rem;
    }

    .section-badge svg {
        width: 14px;
        height: 14px;
    }

    .section-title {
        font-size: 1.625rem;
        margin: 1rem 0 0.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .map-description {
        padding: 1.5rem;
    }

    .map-description p {
        font-size: 1rem;
        line-height: 1.75;
    }

    .service-zone-map,
    .map-section,
    .geography-map-section {
        padding: 3rem 0;
    }

    .geography-map-section {
        padding-bottom: 4rem;
    }

    .map-container {
        border-radius: 12px;
        margin-bottom: 2rem;
    }
}
