/* ============================================================
   Smilora — Карта + форма запису (фінальний блок)
   ============================================================ */

.map-contact-showcase {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 55% at 12% 20%, rgba(58, 68, 152, 0.06) 0%, transparent 62%),
        radial-gradient(ellipse 70% 50% at 88% 78%, rgba(153, 162, 220, 0.12) 0%, transparent 58%),
        linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

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

.map-contact-showcase .map-contact-heading {
    margin-bottom: 36px;
}

.map-contact-showcase .map-contact-heading .special-text {
    color: var(--primary--color);
}

.map-contact-block {
    position: relative;
    z-index: 2;
}

.map-contact-map-wrap {
    position: relative;
    overflow: hidden;
    background: var(--lavender--color2);
    border: 1px solid rgba(58, 68, 152, 0.12);
}

.map-contact-map-wrap iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.map-contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text--color);
    margin-bottom: 10px;
}

.map-contact-info-list li:last-child {
    margin-bottom: 0;
}

.map-contact-info-list li i {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(58, 68, 152, 0.08);
    color: var(--primary--color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.map-contact-info-list li a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.map-contact-info-list li a:hover {
    color: var(--primary--color);
}

.map-contact-form-panel {
    position: relative;
    overflow: hidden;
    background: var(--secondary--color);
    border: 1px solid var(--border--color);
    border-radius: 24px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
}

.map-contact-form-panel h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--black--family--color2);
    margin: 0 0 8px;
    line-height: 1.3;
}

.map-contact-form-panel .map-contact-form-lead {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text--color);
    margin-bottom: 24px;
}

.map-contact-form .map-contact-field {
    position: relative;
    margin-bottom: 14px;
}

.map-contact-form .map-contact-field i.field-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary--color);
    font-size: 15px;
    pointer-events: none;
    z-index: 1;
}

.map-contact-form .map-contact-field--phone .ua-phone-field {
    width: 100%;
}

.map-contact-form .map-contact-field--phone .ua-phone-field__prefix {
    height: 54px;
    border-radius: 14px 0 0 14px;
    background: var(--bg--color);
    border-color: var(--border--color);
}

.map-contact-form .map-contact-field--phone .ua-phone-field__input {
    height: 54px;
    border-radius: 0 14px 14px 0 !important;
    background: var(--bg--color);
    border-color: var(--border--color);
    padding-left: 16px !important;
}

.map-contact-form .map-contact-field--phone .ua-phone-field__input:focus {
    outline: none;
    border-color: var(--primary--color);
    box-shadow: 0 0 0 3px rgba(58, 68, 152, 0.12);
}

.map-contact-form .map-contact-input {
    width: 100%;
    height: 54px;
    border: 1px solid var(--border--color);
    border-radius: 14px;
    background: var(--bg--color);
    padding: 0 18px 0 48px;
    font-size: 15px;
    color: var(--black--family--color2);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.map-contact-form .map-contact-input:focus {
    outline: none;
    border-color: var(--primary--color);
    box-shadow: 0 0 0 3px rgba(58, 68, 152, 0.12);
}

.map-contact-form .map-contact-submit {
    width: 100%;
    margin-top: 6px;
    border: none;
    cursor: pointer;
}

.map-contact-messengers {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border--color);
}

.map-contact-messengers span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text--color);
    margin-right: 2px;
}

.map-contact-messengers a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg--color);
    color: var(--primary--color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.map-contact-messengers a:hover {
    background: var(--primary--color);
    color: var(--secondary--color);
    transform: translateY(-2px);
}

/* V1 — Atlas (фінальний) */
.map-contact-v1 .map-contact-v1-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 24px;
    align-items: stretch;
}

.map-contact-v1 .map-contact-map-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    min-height: 100%;
    height: 100%;
}

.map-contact-v1 .map-contact-map-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.map-contact-v1 .map-contact-map-wrap {
    flex: 1 1 auto;
    width: 100%;
    min-height: 440px;
    height: 100%;
    border-radius: 22px;
    box-shadow:
        0 4px 24px rgba(58, 68, 152, 0.08),
        0 18px 48px rgba(58, 68, 152, 0.12);
}

.map-contact-v1 .map-contact-map-pin {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 24px rgba(58, 68, 152, 0.14);
    font-size: 12px;
    font-weight: 700;
    color: var(--primary--color);
    letter-spacing: 0.02em;
}

.map-contact-v1 .map-contact-map-pin i {
    font-size: 13px;
}

.map-contact-v1 .map-contact-info-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    flex: 0 0 auto;
}

.map-contact-v1 .map-info-tile {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 8px;
    align-items: start;
    min-width: 0;
    padding: 16px 14px;
    border-radius: 20px;
    background: var(--secondary--color);
    border: 1px solid rgba(58, 68, 152, 0.12);
    box-shadow:
        0 2px 10px rgba(58, 68, 152, 0.05),
        0 10px 28px rgba(58, 68, 152, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.map-contact-v1 .map-info-tile__copy {
    display: contents;
}

.map-contact-v1 .map-info-tile__icon {
    grid-column: 1;
    grid-row: 1;
}

.map-contact-v1 .map-info-tile__label {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: start;
    text-align: left;
}

.map-contact-v1 .map-info-tile__value {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
}

.map-contact-v1 .map-info-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(90deg, var(--primary--color) 0%, var(--lavender--color) 100%);
    opacity: 0.85;
    z-index: 1;
}

.map-contact-v1 .map-info-tile--schedule::before {
    background: linear-gradient(90deg, #6670b8 0%, #99a2dc 100%);
}

.map-contact-v1 .map-info-tile--phone::before {
    background: linear-gradient(90deg, #2f3778 0%, #3a4498 55%, #6670b8 100%);
}

.map-contact-v1 .map-info-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(58, 68, 152, 0.2);
    box-shadow:
        0 8px 18px rgba(58, 68, 152, 0.08),
        0 18px 36px rgba(58, 68, 152, 0.12);
}

.map-contact-v1 .map-info-tile__icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 14px;
    background: rgba(58, 68, 152, 0.1);
    color: var(--primary--color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.map-contact-v1 .map-info-tile__label {
    position: relative;
    z-index: 1;
    margin: 0 0 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary--color);
}

.map-contact-v1 .map-info-tile__value {
    position: relative;
    z-index: 1;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
    color: var(--black--family--color2);
    max-width: 100%;
}

.map-contact-v1 .map-info-tile__value a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.map-contact-v1 .map-info-tile__value a:hover {
    color: var(--primary--color);
}

.map-contact-v1 .map-info-tile__phone-link {
    display: inline-block;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--primary--color) !important;
    cursor: pointer;
}

.map-contact-v1 .map-info-tile__phone-link:hover {
    color: var(--black--family--color2) !important;
}

.map-contact-v1 .map-contact-form-panel {
    position: relative;
    z-index: 2;
    align-self: stretch;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(58, 68, 152, 0.06),
        0 16px 40px rgba(58, 68, 152, 0.1);
    border-color: rgba(58, 68, 152, 0.1);
}

.map-contact-v1 .map-contact-form-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.82) 42%,
        rgba(227, 232, 254, 0.95) 100%
    );
    box-shadow: inset 0 -1px 0 rgba(58, 68, 152, 0.08);
    z-index: 1;
}

.map-contact-v1 .map-contact-form {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.map-contact-v1 .map-contact-messengers {
    margin-top: auto;
}

@media (max-width: 1199.98px) {
    .map-contact-v1 .map-contact-v1-grid {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 20px;
    }

    .map-contact-v1 .map-contact-map-stage {
        min-height: 400px;
    }

    .map-contact-v1 .map-contact-map-wrap {
        min-height: 400px;
    }
}

@media (max-width: 991.98px) {
    .map-contact-v1 .map-contact-v1-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .map-contact-v1 .map-contact-map-column {
        height: auto;
        min-height: 0;
    }

    .map-contact-v1 .map-contact-map-stage {
        flex: 0 0 auto;
        min-height: 320px;
    }

    .map-contact-v1 .map-contact-map-wrap {
        min-height: 320px;
        height: 320px;
        max-height: none;
    }

    .map-contact-v1 .map-contact-form-panel {
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
        height: auto;
        min-height: 0;
    }

    .map-contact-v1 .map-contact-info-tiles {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .map-contact-v1 .map-info-tile {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 14px;
    }

    .map-contact-v1 .map-info-tile__copy {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        flex: 1 1 auto;
        min-width: 0;
        gap: 4px;
        text-align: left;
    }

    .map-contact-v1 .map-info-tile__icon {
        margin-top: 2px;
    }

    .map-contact-v1 .map-info-tile__label,
    .map-contact-v1 .map-info-tile__value {
        grid-column: auto;
        grid-row: auto;
        align-self: auto;
        text-align: left;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .map-contact-showcase .map-contact-heading {
        margin-bottom: 28px;
    }

    .map-contact-v1 .map-contact-map-stage {
        min-height: 260px;
    }

    .map-contact-v1 .map-contact-map-wrap {
        min-height: 260px;
        height: 260px;
        border-radius: 18px;
    }

    .map-contact-v1 .map-contact-map-pin {
        top: 12px;
        right: 12px;
        padding: 7px 12px;
        font-size: 11px;
    }

    .map-contact-v1 .map-contact-info-tiles {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .map-contact-v1 .map-info-tile {
        padding: 14px 14px;
        border-radius: 18px;
    }

    .map-contact-v1 .map-info-tile__icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .map-contact-v1 .map-info-tile__value {
        font-size: 13px;
    }

    .map-contact-v1 .map-info-tile__phone-link {
        font-size: 16px;
    }

    .map-contact-v1 .map-info-tile:hover {
        transform: none;
    }

    .map-contact-form-panel {
        padding: 22px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .map-contact-v1 .map-info-tile {
        transition: none;
    }

    .map-contact-v1 .map-info-tile:hover {
        transform: none;
    }
}
