/**
 * Module: block-coverage-germany
 * Purpose: Стили переиспользуемого блока «Unser Service in ganz Deutschland» — карта и список городов.
 * Inputs: design-tokens.css, base.css
 * Outputs: BEM-классы .vc-contacts-coverage
 * Notes: Используется на template-contacts.php и template-thank-you.php.
 *        Подключается отдельно через functions.php для всех шаблонов с этим блоком.
 */

/* ==========================================================================
   1. SECTION
   ========================================================================== */

.vc-contacts-coverage {
    padding: 40px 0;
    background: #215ca2;
}

/* ==========================================================================
   2. GRID LAYOUT
   ========================================================================== */

.vc-contacts-coverage__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 373px;
    align-items: start;
    gap: 44px;
    min-height: 493px;
}

/* ==========================================================================
   3. CONTENT
   ========================================================================== */

.vc-contacts-coverage__content {
    max-width: 626px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vc-contacts-coverage__title {
    margin: 0;
    color: #fff;
    font-size: 44px;
    line-height: 1.1;
    font-weight: var(--vc-font-weight-bold);
}

.vc-contacts-coverage__lead {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--vc-font-size-body);
    line-height: var(--vc-line-height-relaxed);
    font-weight: var(--vc-font-weight-medium);
}

/* ==========================================================================
   4. CITIES LIST
   ========================================================================== */

.vc-contacts-coverage__cities {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vc-contacts-coverage__city {
    height: 52px;
    min-height: 52px;
    max-height: 52px;
    padding: 0 30px;
    box-sizing: border-box;
    border-radius: 1000px;
    border: 1px solid transparent;
    background: rgba(235, 233, 246, 0.25);
    color: #fff;
    font-size: 13px;
    line-height: 20px;
    font-weight: var(--vc-font-weight-medium);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    transition: background-color var(--vc-transition-fast), border-color var(--vc-transition-fast), color var(--vc-transition-fast);
}

.vc-contacts-coverage__city:visited {
    color: #fff !important;
}

.vc-contacts-coverage__city:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.4);
}

.vc-contacts-coverage__city:active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.55);
}

.vc-contacts-coverage__city:focus-visible {
    color: #fff !important;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ==========================================================================
   5. MAP
   ========================================================================== */

.vc-contacts-coverage__map {
    width: 100%;
    max-width: 373px;
    min-height: 493px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vc-contacts-coverage__map img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.92;
}

/* ==========================================================================
   6. RESPONSIVE — Tablet (≤ 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    .vc-contacts-coverage {
        padding: 36px 0;
    }

    .vc-contacts-coverage__inner {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 24px;
    }

    .vc-contacts-coverage__content {
        max-width: 100%;
    }

    .vc-contacts-coverage__title {
        font-size: 36px;
    }

    .vc-contacts-coverage__map {
        max-width: 360px;
        min-height: 0;
        margin: 0 auto;
    }
}

/* ==========================================================================
   7. RESPONSIVE — Mobile (≤ 768px)
   ========================================================================== */

@media (max-width: 768px) {
    .vc-contacts-coverage {
        padding: 50px 0;
    }

    .vc-contacts-coverage__inner {
        gap: 18px;
    }

    .vc-contacts-coverage__content {
        max-width: 335px;
        gap: 12px;
    }

    .vc-contacts-coverage__title {
        font-size: 21px;
        line-height: 26px;
    }

    .vc-contacts-coverage__lead {
        font-size: 14px;
        line-height: 16px;
    }

    .vc-contacts-coverage__cities {
        margin-top: 2px;
        gap: 10px;
    }

    .vc-contacts-coverage__city {
        height: 36px;
        min-height: 36px;
        max-height: 36px;
        padding: 0 16px;
        box-sizing: border-box;
        font-size: 13px;
    }

    .vc-contacts-coverage__map {
        max-width: 262px;
        margin-top: 4px;
    }
}
