/* ===================================================================
   КОНТАКТЫ — редизайн: тема "улыбки"
   Сигнатурный элемент: силуэт зуба/улыбки повторяется в шапке,
   разделителе и водяном знаке карточки формы.
=================================================================== */

/* ===== ГЕРОЙ ===== */

.contact-hero {
    position: relative;
    overflow: hidden;
    padding: 150px 20px 90px;
    text-align: center;
    background: radial-gradient(560px 320px at 18% -10%, rgba(255,182,114,0.25), transparent 65%), radial-gradient(700px 420px at 85% 0%, rgba(95,217,196,0.35), transparent 60%), var(--gradient-primary);
    isolation: isolate;
}

.contact-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
    animation: heroRise .9s var(--ease-smooth) both;
}

.contact-hero-icon {
    display: inline-flex;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.18));
    animation: heroFloat 5s ease-in-out infinite;
}

    .contact-hero-icon svg {
        width: 100%;
        height: 100%;
    }

.contact-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.2vw, 2.9rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
    margin: 0 0 12px;
    text-shadow: 0 4px 18px rgba(0,0,0,0.15);
}

.contact-hero-subtitle {
    font-size: clamp(0.95rem, 1.6vw, 1.08rem);
    color: rgba(255,255,255,0.92);
    line-height: 1.7;
    margin: 0;
}

.contact-hero-divider {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 90px;
    z-index: 1;
}

    .contact-hero-divider path {
        fill: var(--light);
    }

/* Плавающие "пузырьки" — отсылка к полосканию/чистке зубов */
.hero-bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.28);
    filter: blur(0.5px);
    z-index: 1;
    animation: bubbleFloat 7s ease-in-out infinite;
}

.hero-bubble--1 {
    width: 18px;
    height: 18px;
    left: 12%;
    top: 30%;
    animation-delay: 0s;
}

.hero-bubble--2 {
    width: 12px;
    height: 12px;
    left: 82%;
    top: 22%;
    animation-delay: 1.4s;
}

.hero-bubble--3 {
    width: 26px;
    height: 26px;
    left: 68%;
    top: 62%;
    animation-delay: 2.6s;
    background: rgba(255,182,114,0.3);
}

.hero-bubble--4 {
    width: 9px;
    height: 9px;
    left: 30%;
    top: 68%;
    animation-delay: 3.8s;
}

@keyframes heroRise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFloat {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

@keyframes bubbleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: .55;
    }

    50% {
        transform: translateY(-26px) scale(1.15);
        opacity: .9;
    }
}

/* ===== ОБЩАЯ СЕКЦИЯ ===== */

.contact-section {
    max-width: 1120px;
    margin: 0 auto 40px;
    padding: 56px 20px 0;
}

.faq-contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
}

/* Левая колонка */
.faq-block {
    background: #fff;
    padding: 34px 32px;
    border-radius: 22px;
    box-shadow: var(--shadow-md);
    border: 1px solid #e8f0ed;
    transition: transform .45s var(--ease-bounce), box-shadow .45s ease, border-color .45s ease;
}

    .faq-block:hover {
        transform: translateY(-4px);
        border-color: #d6f0eb;
        box-shadow: 0 20px 50px rgba(19,179,155,0.18);
    }

.visit-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.visit-title {
    color: var(--text);
    font-family: var(--font-heading);
    margin: 0 0 4px 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.3px;
}

.highlight-text {
    color: #1d5c52;
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.6;
    margin: 4px 0 8px;
    padding: 14px 16px;
    background: #f0faf8;
    border-left: 4px solid var(--primary);
    border-radius: 12px;
}

.visit-description {
    color: #5b6b68;
    font-size: 14.5px;
    line-height: 1.7;
    margin: 0;
}

.before-visit {
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 800;
    margin: 6px 0 2px 0;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

/* Чек-лист с анимированными отметками, каскадное появление */
.visit-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .visit-checklist li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-size: 14px;
        line-height: 1.55;
        color: #48605c;
        opacity: 0;
        transform: translateX(-14px);
        transition: opacity .5s ease, transform .5s ease;
    }

.faq-block.reveal-visible .visit-checklist li {
    opacity: 1;
    transform: translateX(0);
}

    .faq-block.reveal-visible .visit-checklist li:nth-child(1) {
        transition-delay: .1s;
    }

    .faq-block.reveal-visible .visit-checklist li:nth-child(2) {
        transition-delay: .22s;
    }

    .faq-block.reveal-visible .visit-checklist li:nth-child(3) {
        transition-delay: .34s;
    }

    .faq-block.reveal-visible .visit-checklist li:nth-child(4) {
        transition-delay: .46s;
    }

.check-icon {
    flex-shrink: 0;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    box-shadow: 0 3px 8px rgba(19,179,155,0.3);
}

/* Правая колонка (форма) */
.contact-form-block {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 34px 30px;
    border: 1px solid #e8f0ed;
    background: linear-gradient(160deg, #ffffff 0%, #f7fffd 100%);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform .45s var(--ease-bounce), box-shadow .45s ease, border-color .45s ease;
}

    .contact-form-block::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--gradient-primary);
    }

    .contact-form-block:hover {
        transform: translateY(-4px);
        border-color: #d6f0eb;
        box-shadow: 0 20px 50px rgba(19,179,155,0.2);
    }

.form-watermark {
    position: absolute;
    right: -38px;
    bottom: -30px;
    width: 220px;
    height: 220px;
    fill: rgba(19,179,155,0.05);
    z-index: 0;
    pointer-events: none;
}

.form-title {
    position: relative;
    z-index: 1;
    color: var(--text);
    font-family: var(--font-heading);
    margin: 0 0 6px 0;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.3px;
    text-align: center;
}

.contact-form-block p {
    position: relative;
    z-index: 1;
    color: #667772;
    font-size: 13.5px;
    margin: 0 0 20px;
    line-height: 1.55;
    text-align: center;
}

.contact-form-block form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form-row {
    display: flex;
    gap: 14px;
}

    .contact-form-row .form-group {
        flex: 1 1 0;
        min-width: 0;
    }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group--empty {
    visibility: hidden;
}

.contact-form-block label {
    color: var(--primary-dark);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Поля с иконкой-подсказкой слева */
.field-shell {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #9db9b3;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transition: stroke .3s ease;
}

.field-shell--textarea .field-icon {
    top: 12px;
}

.contact-form-block input,
.contact-form-block textarea {
    width: 100%;
    padding: 11px 12px 11px 36px;
    font-size: 13.5px;
    border: 1.5px solid #e0e8e5;
    border-radius: 12px;
    background-color: #fafcfb;
    font-family: inherit;
    color: #263a36;
    transition: border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}

    .contact-form-block input::placeholder,
    .contact-form-block textarea::placeholder {
        color: #a9bdb8;
    }

.contact-form-block textarea {
    min-height: 78px;
    resize: vertical;
    padding-top: 11px;
}

    .contact-form-block input:focus,
    .contact-form-block textarea:focus {
        border-color: var(--primary);
        outline: none;
        background-color: #fff;
        box-shadow: 0 0 0 4px rgba(19,179,155,0.12);
    }

        .contact-form-block input:focus ~ .field-icon,
        .field-shell:focus-within .field-icon {
            stroke: var(--primary);
        }

.use-profile-phone-btn {
    align-self: flex-start;
    margin-top: 2px;
    border: none;
    background: none;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

    .use-profile-phone-btn:hover {
        color: var(--primary-dark);
    }

    .use-profile-phone-btn.hidden {
        display: none;
    }

.contact-form-block .btn-primary {
    width: 100%;
    margin-top: 4px;
}

/* ===== НИЖНИЙ БЛОК КОНТАКТОВ ===== */

.extra-contacts {
    margin-top: 46px;
}

    .extra-contacts hr {
        border: none;
        border-top: 1px solid #d0ebe5;
        margin: 0 auto 36px;
        max-width: 1120px;
    }

.contact-cards-grid {
    margin-top: 0;
}

.contact-card .card__icon-circle {
    width: 54px;
    height: 54px;
}

    .contact-card .card__icon-circle svg {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: #fff;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* ===== КАРТА ===== */

.location-section {
    margin-top: 40px;
    padding: 40px 20px 56px;
    text-align: center;
    background: linear-gradient(180deg, #f6fbfa 0%, #eef8f6 100%);
    border-top: 1px solid #d0ebe5;
}

.map-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-container {
    position: relative;
    width: 92%;
    max-width: 980px;
    border: 1px solid #e0e7e4;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

    .map-container iframe {
        display: block;
        width: 100%;
        height: 440px;
        border: none;
        filter: saturate(0.92) contrast(1.02);
    }

.map-pulse {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-dark);
    box-shadow: 0 0 0 0 rgba(255, 152, 67, 0.6);
    z-index: 2;
    animation: mapPulse 2.4s ease-out infinite;
}

@keyframes mapPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 152, 67, 0.55);
    }

    70% {
        box-shadow: 0 0 0 16px rgba(255, 152, 67, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 152, 67, 0);
    }
}

/* ===== ЯВНАЯ КНОПКА "ПОСТРОИТЬ МАРШРУТ" ===== */

.route-fab-btn {
    position: absolute;
    z-index: 4;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: none;
    border-radius: 999px;
    padding: 12px 20px 12px 16px;
    background: var(--gradient-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(19,179,155,0.45);
    transition: transform .3s var(--ease-bounce), box-shadow .3s ease;
    animation: fabPulse 2.6s ease-in-out infinite;
}

    .route-fab-btn .route-fab-icon {
        font-size: 17px;
    }

    .route-fab-btn:hover {
        transform: translateY(-3px) scale(1.03);
        box-shadow: 0 16px 36px rgba(19,179,155,0.55);
    }

    .route-fab-btn:active {
        transform: translateY(-1px) scale(0.98);
    }

    .route-fab-btn:disabled {
        cursor: default;
        opacity: 0.9;
    }

@keyframes fabPulse {
    0%, 100% {
        box-shadow: 0 12px 30px rgba(19,179,155,0.45);
    }

    50% {
        box-shadow: 0 12px 34px rgba(19,179,155,0.65);
    }
}

.route-fab-btn.is-loading .route-fab-icon {
    display: none;
}

.route-fab-btn.is-loading::before {
    content: '';
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    animation: fabSpin .7s linear infinite;
}

@keyframes fabSpin {
    to {
        transform: rotate(360deg);
    }
}

.route-result-toast {
    position: absolute;
    z-index: 4;
    right: 16px;
    bottom: 76px;
    max-width: 260px;
    background: #fff;
    border: 1px solid #e3ece9;
    border-radius: 14px;
    padding: 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: #48605c;
    box-shadow: 0 16px 40px rgba(6,40,35,0.22);
    opacity: 0;
    transform: translateY(8px) scale(.97);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
}

    .route-result-toast.is-visible {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
        padding: 14px 16px;
    }

    .route-result-toast a {
        display: inline-block;
        margin-top: 4px;
        color: var(--primary);
        font-weight: 700;
        text-decoration: none;
    }

        .route-result-toast a:hover {
            text-decoration: underline;
        }

/* ===== ДВИЖЕНИЕ С УВАЖЕНИЕМ К prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
    .contact-hero-icon,
    .hero-bubble,
    .map-pulse,
    .route-fab-btn {
        animation: none !important;
    }

    .contact-hero-inner {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}

/* ===== АДАПТИВ ===== */

@media (max-width: 1024px) {
    .faq-contact-container {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .contact-section {
        padding-top: 44px;
    }

    .contact-hero {
        padding: 130px 20px 80px;
    }
}

@media (max-width: 768px) {
    .faq-block,
    .contact-form-block {
        padding: 26px 22px;
    }

    .contact-hero {
        padding: 110px 20px 76px;
    }

    .contact-hero-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 640px) {
    .contact-form-row {
        flex-direction: column;
    }

    .form-group--empty {
        display: none;
    }

    .map-frame {
        width: 96%;
        padding: 6px;
    }

    .map-info-card {
        left: 14px;
        top: 12px;
        padding: 9px 13px;
    }

    .route-fab-btn {
        right: 10px;
        bottom: 10px;
        padding: 10px 16px 10px 13px;
        font-size: 12.5px;
    }

    .route-result-toast {
        right: 10px;
        left: 10px;
        max-width: none;
        bottom: 66px;
    }

    .map-corner {
        display: none;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 100px 16px 66px;
    }

    .contact-hero-icon {
        width: 52px;
        height: 52px;
    }

    .visit-title {
        font-size: 1.15rem;
    }

    .map-container iframe {
        height: 280px;
    }
}

/* ===== ROUTE COMPANION V7 — controls beside the map ===== */
.location-section {
    max-width: 1380px;
    margin-inline: auto;
}

.map-experience {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 16px;
    width: min(100%, 1240px);
    margin: 0 auto;
}

.map-wrapper {
    min-width: 0;
    position: relative;
}

.map-container {
    width: 100%;
    min-height: clamp(430px, 50vw, 620px);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(19,179,155,.22);
    box-shadow: 0 24px 70px rgba(10,93,80,.16);
    background: linear-gradient(145deg,#eaf8f5,#dff2ee);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: inherit;
    border: 0;
    filter: saturate(.96) contrast(1.02);
}

/* Nothing interactive is placed over the map anymore. */
.map-pulse {
    pointer-events: none;
}

.route-companion {
    position: relative;
    width: 72px;
    min-width: 72px;
    min-height: 100%;
    border-radius: 24px;
    transition: width .34s cubic-bezier(.2,.75,.2,1), min-width .34s cubic-bezier(.2,.75,.2,1);
}

.route-companion.is-open {
    width: min(360px, 31vw);
    min-width: min(360px, 31vw);
}

.route-dock-toggle {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(19,179,155,.28);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(232,249,245,.96));
    color: #087c6c;
    box-shadow: 0 15px 36px rgba(4,78,67,.14);
    cursor: pointer;
    overflow: hidden;
    transition: width .3s ease, border-radius .3s ease, transform .2s ease, box-shadow .2s ease;
}

.route-dock-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(4,78,67,.19);
}

.route-dock-toggle__icon {
    flex: 0 0 auto;
    font-size: 1.55rem;
    filter: drop-shadow(0 6px 12px rgba(14,163,141,.22));
}

.route-dock-toggle__label {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    font-family: var(--font-heading);
    font-weight: 800;
    transition: max-width .28s ease, opacity .22s ease;
}

.route-companion.is-open .route-dock-toggle {
    width: 100%;
    justify-content: flex-start;
    padding: 0 18px;
    border-radius: 18px;
}

.route-companion.is-open .route-dock-toggle__label {
    max-width: 220px;
    opacity: 1;
}

.smart-map-panel {
    position: relative;
    width: 100%;
    margin-top: 12px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(19,179,155,.20);
    box-shadow: 0 20px 54px rgba(0,60,52,.14);
    text-align: left;
    overflow: hidden;
}

.smart-map-panel::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg,#10b79d,#54dec9 55%,transparent);
}

.smart-map-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.smart-map-panel__close {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border: 1px solid #d7ebe6;
    border-radius: 50%;
    background: #f7fbfa;
    color: #46645e;
    font-size: 1.25rem;
    cursor: pointer;
}

.smart-map-panel__eyebrow {
    color: #0c8d7a;
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.smart-map-panel__title {
    margin: 5px 0 4px;
    color: #064f45;
    font-size: clamp(1.1rem, 1.7vw, 1.42rem);
}

.smart-map-panel__address {
    margin: 4px 0 14px;
    color: #62736f;
    line-height: 1.45;
    font-size: .88rem;
}

.route-origin-field {
    display: grid;
    gap: 7px;
    margin: 12px 0 9px;
    color: #365a53;
    font-size: .78rem;
    font-weight: 800;
}

.route-origin-field input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #cfe6e0;
    border-radius: 12px;
    background: #fbfefd;
    color: #183f38;
    font: inherit;
    font-weight: 500;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.route-origin-field input:focus {
    border-color: #16b79e;
    box-shadow: 0 0 0 4px rgba(22,183,158,.10);
}

.route-location-btn {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px dashed #9bd8cd;
    border-radius: 12px;
    background: #effaf7;
    color: #176c5e;
    font-weight: 800;
    cursor: pointer;
}

.route-location-btn:disabled,
.route-build-btn:disabled {
    opacity: .58;
    cursor: progress;
}

.smart-map-modes {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 7px;
    margin-top: 12px;
}

.smart-map-mode {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 42px;
    padding: 6px;
    border: 1px solid #cfe8e2;
    border-radius: 12px;
    background: #f6fbfa;
    color: #315d54;
    font-weight: 750;
    cursor: pointer;
    transition: .2s ease;
}

.smart-map-mode:hover,
.smart-map-mode.is-active {
    color: #fff;
    background: linear-gradient(135deg,#0fa88f,#20c5ae);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(15,168,143,.20);
}

.smart-map-insight {
    margin-top: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    background: #eaf8f5;
    color: #315d54;
    font-size: .81rem;
    line-height: 1.48;
}

.route-panel-actions {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.route-build-btn,
.route-reset-btn {
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    cursor: pointer;
}

.route-build-btn {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg,#0fa88f,#22c9b0);
    box-shadow: 0 12px 24px rgba(15,168,143,.22);
}

.route-reset-btn {
    border: 1px solid #d4e8e3;
    background: #fff;
    color: #315d54;
}

.route-result-inline {
    display: none;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f2f8f6;
    color: #48605c;
    font-size: .79rem;
    line-height: 1.45;
}

.route-result-inline.is-visible { display: block; }
.route-result-inline[data-tone="success"] { background:#e9f9f2; color:#17664f; }
.route-result-inline[data-tone="warning"] { background:#fff7e8; color:#845b16; }

.route-nudge {
    position: absolute;
    z-index: 6;
    top: 88px;
    right: 0;
    width: min(310px, 78vw);
    padding: 16px 16px 14px;
    border-radius: 18px;
    background: rgba(8,71,62,.96);
    color: #fff;
    text-align: left;
    box-shadow: 0 20px 54px rgba(0,48,42,.28);
    animation: routeNudgeIn .36s cubic-bezier(.2,.8,.2,1) both;
}

.route-nudge::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 27px;
    width: 14px;
    height: 14px;
    background: inherit;
    transform: rotate(45deg);
}

.route-nudge__spark {
    display: inline-block;
    margin-right: 6px;
    color: #65eed8;
}

.route-nudge strong { font-size: .93rem; }
.route-nudge p {
    margin: 7px 0 11px;
    color: rgba(255,255,255,.82);
    font-size: .79rem;
    line-height: 1.45;
}

.route-nudge__action {
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    background: #58e1cb;
    color: #064b40;
    font-weight: 800;
    cursor: pointer;
}

.route-nudge__close {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.68);
    font-size: 1.15rem;
    cursor: pointer;
}

@keyframes routeNudgeIn {
    from { opacity: 0; transform: translateY(-7px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1040px) {
    .route-companion.is-open {
        width: min(330px, 36vw);
        min-width: min(330px, 36vw);
    }
}

@media (max-width: 820px) {
    .map-experience {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .map-container {
        min-height: 470px;
        border-radius: 22px;
    }

    .route-companion,
    .route-companion.is-open {
        width: 100%;
        min-width: 0;
        min-height: 0;
    }

    .route-dock-toggle {
        width: 58px;
        height: 58px;
        margin-left: auto;
        border-radius: 18px;
    }

    .route-companion.is-open .route-dock-toggle {
        width: min(100%, 330px);
        margin-left: auto;
    }

    .smart-map-panel {
        width: 100%;
        margin-top: 10px;
        border-radius: 18px;
    }

    .route-nudge {
        top: 68px;
        right: 0;
        width: min(330px, 92vw);
    }
}

@media (max-width: 520px) {
    .location-section {
        padding-inline: 12px;
    }

    .map-container {
        min-height: 390px;
        border-radius: 18px;
    }

    .smart-map-panel {
        padding: 16px;
    }

    .smart-map-modes {
        grid-template-columns: repeat(3,1fr);
    }

    .smart-map-mode span {
        display: none;
    }

    .smart-map-mode {
        font-size: 1.02rem;
    }

    .route-dock-toggle__label {
        font-size: .84rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .route-companion,
    .route-dock-toggle,
    .route-dock-toggle__label,
    .route-nudge {
        transition: none !important;
        animation: none !important;
    }
}


/* ===================================================================
   AI MAP STUDIO v8 — premium split-layout inspired by the supplied concept
   =================================================================== */
.ai-location-section { max-width:1320px; margin:64px auto 88px; padding:0 20px; }
.ai-map-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:20px; }
.ai-map-heading .section-title { margin:4px 0 5px; text-align:left; }
.ai-map-heading__eyebrow { font-size:10px; font-weight:900; letter-spacing:.22em; color:#12a48f; }
.ai-map-heading__subtitle { margin:0; color:#70888d; font-size:14px; }
.ai-map-heading__badge { flex:0 0 auto; padding:7px 12px; border:1px solid rgba(19,179,155,.2); border-radius:999px; color:#0c8d7b; background:#f3fffc; font-size:9px; font-weight:900; letter-spacing:.16em; }

.ai-map-shell { display:grid; grid-template-columns:minmax(320px, .76fr) minmax(0, 1.5fr); gap:12px; min-height:610px; padding:10px; border-radius:30px; border:1px solid rgba(19,179,155,.2); background:linear-gradient(135deg,rgba(246,255,253,.98),rgba(255,255,255,.95)); box-shadow:0 28px 76px rgba(12,91,83,.13); overflow:hidden; }
.route-companion[data-ai-route-console] { position:relative; inset:auto; width:auto; max-width:none; display:flex; flex-direction:column; gap:13px; padding:22px 19px; border-radius:23px; background:linear-gradient(160deg,#fff 0%,#f9fffd 52%,#f1fbfa 100%); border:1px solid rgba(24,146,136,.12); box-shadow:none; z-index:4; transform:none!important; opacity:1!important; }
.route-companion[data-ai-route-console][hidden] { display:none!important; }
.route-companion[data-ai-route-console]::before { content:''; position:absolute; width:190px; height:190px; left:-70px; top:-76px; border-radius:50%; background:radial-gradient(circle,rgba(19,179,155,.12),transparent 70%); pointer-events:none; }
.route-companion[data-ai-route-console]__head { position:relative; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.route-companion[data-ai-route-console] .route-dock-toggle { position:static; width:auto; height:auto; min-height:36px; padding:7px 10px; border-radius:999px; display:inline-flex; flex-direction:row; gap:6px; color:#0b8b79; border:1px solid rgba(19,179,155,.18); background:#effdf9; box-shadow:none; }
.route-companion[data-ai-route-console] .route-dock-toggle__label { display:inline!important; max-width:none; opacity:1!important; transform:none!important; font-size:9px; letter-spacing:.04em; }
.route-companion[data-ai-route-console] .route-dock-toggle__icon { font-size:14px; }
.route-companion[data-ai-route-console].is-open .route-dock-toggle { background:#e9faf6; }
.route-companion[data-ai-route-console] .smart-map-panel { position:static; inset:auto; width:auto; padding:0; background:transparent; border:0; box-shadow:none; overflow:visible; animation:none; }
.route-companion[data-ai-route-console] .smart-map-panel::before { display:none; }
.route-companion[data-ai-route-console] .smart-map-panel__head--mobile { display:none; }
.route-companion[data-ai-route-console] .smart-map-panel__eyebrow { font-size:9px; letter-spacing:.17em; color:#12a48f; }
.route-companion[data-ai-route-console] .smart-map-panel__title { margin-top:3px; color:#124f51; font-size:20px; }

.ai-clinic-facts { display:grid; gap:8px; position:relative; z-index:2; }
.ai-clinic-fact { display:grid; grid-template-columns:36px 1fr; align-items:center; gap:10px; min-width:0; padding:10px 11px; border-radius:15px; background:rgba(255,255,255,.83); border:1px solid rgba(27,127,120,.09); box-shadow:0 8px 19px rgba(20,93,87,.045); }
.ai-clinic-fact--address { background:linear-gradient(135deg,#effcf8,#fff); }
.ai-clinic-fact__icon { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; background:#ddf7f1; color:#0b9d89; font-size:18px; font-weight:900; }
.ai-clinic-fact__label { display:block; color:#8a9da1; font-size:9px; margin-bottom:2px; }
.ai-clinic-fact strong { display:block; color:#244f53; font-size:11.5px; line-height:1.35; overflow-wrap:anywhere; }

.route-companion[data-ai-route-console] .route-origin-field { gap:6px; color:#607c80; font-size:10px; font-weight:800; }
.route-companion[data-ai-route-console] .route-origin-field input { min-height:44px; border-radius:12px; border:1px solid rgba(22,149,136,.16); background:#fff; padding:0 12px; font-size:12px; box-shadow:inset 0 1px 1px rgba(19,83,76,.03); }
.route-companion[data-ai-route-console] .route-location-btn { min-height:40px; border-radius:12px; background:#effcf8; color:#0d8a79; border:1px solid rgba(19,179,155,.16); font-size:11px; }
.route-companion[data-ai-route-console] .smart-map-modes { gap:7px; }
.route-companion[data-ai-route-console] .smart-map-mode { min-height:38px; border-radius:11px; background:#fff; border:1px solid rgba(15,108,101,.11); font-size:10px; }
.route-companion[data-ai-route-console] .smart-map-mode:hover,.route-companion[data-ai-route-console] .smart-map-mode.is-active { background:linear-gradient(135deg,#0fb398,#18c5ab); color:#fff; border-color:transparent; box-shadow:0 8px 18px rgba(19,179,155,.2); }

.ai-route-prediction { padding:12px; border-radius:14px; background:linear-gradient(145deg,rgba(231,252,247,.86),rgba(247,254,253,.9)); border:1px solid rgba(19,179,155,.13); }
.ai-route-prediction__top { display:flex; align-items:center; justify-content:space-between; gap:12px; color:#557579; font-size:9.5px; font-weight:900; letter-spacing:.02em; }
.ai-route-prediction__top > span { display:flex; align-items:center; gap:6px; }
.ai-route-prediction__top strong { color:#0b907d; font-size:13px; }
.ai-pulse-dot { width:7px; height:7px; border-radius:50%; background:#12b69e; box-shadow:0 0 0 4px rgba(18,182,158,.10); animation:aiMapPulse 1.8s ease-in-out infinite; }
@keyframes aiMapPulse { 50% { transform:scale(.72); opacity:.55; } }
.route-companion[data-ai-route-console] .smart-map-insight { padding:0; margin:8px 0 7px; background:none; border:0; color:#3e686b; font-size:11px; line-height:1.45; min-height:32px; }
.ai-route-meter { height:5px; border-radius:999px; background:#dcefeb; overflow:hidden; }.ai-route-meter span { display:block; width:18%; height:100%; border-radius:inherit; background:linear-gradient(90deg,#15aa93,#49c8d9); transition:width .45s ease; }
.ai-route-prediction small { display:block; margin-top:7px; color:#8ba0a2; font-size:8px; line-height:1.35; }
.route-companion[data-ai-route-console] .route-panel-actions { grid-template-columns:1fr 1fr; gap:7px; }.route-companion[data-ai-route-console] .route-build-btn,.route-companion[data-ai-route-console] .route-reset-btn { min-height:40px; border-radius:11px; font-size:9.5px; font-weight:900; }.route-companion[data-ai-route-console] .route-build-btn { background:linear-gradient(135deg,#0faa93,#13c4a7); box-shadow:0 9px 20px rgba(19,179,155,.18); }.route-companion[data-ai-route-console] .route-reset-btn { background:#fff; color:#4d7374; border:1px solid rgba(21,126,118,.13); }
.route-companion[data-ai-route-console] .route-result-inline { border-radius:11px; font-size:10px; line-height:1.4; }
.route-companion[data-ai-route-console].is-thinking .ai-route-prediction { box-shadow:0 0 0 1px rgba(19,179,155,.15),0 0 28px rgba(19,179,155,.12); }

.ai-map-canvas { position:relative; min-width:0; min-height:590px; border-radius:23px; overflow:hidden; background:#dff3ed; }
.ai-map-canvas .map-container { height:100%; min-height:590px; border-radius:23px; overflow:hidden; border:0; box-shadow:none; }
.ai-map-canvas .map-container iframe { width:100%; height:100%; min-height:590px; border:0; display:block; filter:saturate(.9) contrast(.98) brightness(1.02); }
.ai-map-canvas.has-route .map-container iframe { filter:saturate(.98) contrast(1); }
.ai-map-canvas .map-pulse { z-index:5; }
.ai-map-overlay { position:absolute; z-index:7; pointer-events:none; background:rgba(255,255,255,.91); border:1px solid rgba(255,255,255,.75); box-shadow:0 12px 30px rgba(24,88,82,.16); backdrop-filter:blur(12px); color:#31585d; }
.ai-map-overlay--origin { left:18px; top:18px; width:min(300px,calc(100% - 36px)); padding:11px 13px; border-radius:16px; }
.ai-map-overlay__row { display:grid; grid-template-columns:20px 1fr; gap:9px; align-items:center; min-width:0; }.ai-map-overlay__row small { display:block; color:#8a9da1; font-size:8.5px; }.ai-map-overlay__row strong { display:block; font-size:10.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.ai-map-overlay__divider { height:1px; background:#e8f0ef; margin:7px 0 7px 29px; }
.ai-map-pin { width:13px; height:13px; border-radius:50%; border:3px solid #fff; box-shadow:0 0 0 2px rgba(24,132,224,.22),0 3px 9px rgba(24,132,224,.3); background:#2f8ce7; }.ai-map-pin--clinic { background:#e84d5b; box-shadow:0 0 0 2px rgba(232,77,91,.2),0 3px 9px rgba(232,77,91,.3); }
.ai-map-overlay--eta { right:17px; top:18px; display:flex; align-items:center; gap:9px; padding:10px 12px; border-radius:16px; min-width:120px; }.ai-map-overlay__spark { width:28px; height:28px; display:grid; place-items:center; border-radius:50%; background:#e5fbf6; color:#0aa58f; font-size:16px; }.ai-map-overlay--eta small,.ai-map-overlay--eta span { display:block; font-size:8px; color:#809699; }.ai-map-overlay--eta strong { display:block; font-size:14px; color:#17585a; line-height:1.2; }
.ai-map-overlay--note { left:18px; bottom:18px; display:flex; align-items:center; gap:8px; padding:9px 12px; border-radius:16px; max-width:240px; }.ai-map-overlay--note span { font-size:16px; }.ai-map-overlay--note p { margin:0; color:#4b7778; font-size:10px; line-height:1.35; }

.route-companion[data-ai-route-console] .route-nudge { left:20px; right:20px; bottom:20px; top:auto; z-index:20; }

@media (max-width: 980px) {
    .ai-map-shell { grid-template-columns:340px minmax(0,1fr); }
    .ai-map-overlay--eta { display:none; }
}
@media (max-width: 820px) {
    .ai-map-heading { align-items:flex-start; }.ai-map-heading__badge{display:none}.ai-map-shell { grid-template-columns:1fr; padding:8px; min-height:0; }.route-companion[data-ai-route-console] { order:2; padding:16px 14px; }.ai-map-canvas { order:1; min-height:430px; }.ai-map-canvas .map-container,.ai-map-canvas .map-container iframe{min-height:430px}.route-companion[data-ai-route-console] .route-dock-toggle{display:inline-flex}.route-companion[data-ai-route-console] .smart-map-panel[hidden]{display:none!important}.route-companion[data-ai-route-console] .smart-map-panel__head--mobile{display:flex}.route-companion[data-ai-route-console] .smart-map-panel__close{display:inline-grid;place-items:center}.route-companion[data-ai-route-console]:not(.is-open) .smart-map-panel{display:none}.route-companion[data-ai-route-console]:not(.is-open) .ai-clinic-facts{margin-bottom:0}.route-companion[data-ai-route-console] .route-nudge{position:fixed;left:16px;right:16px;bottom:18px;max-width:420px;margin:auto}.ai-map-overlay--origin{width:calc(100% - 30px);left:15px;top:15px}.ai-map-overlay--note{left:15px;bottom:15px}.ai-map-canvas .map-pulse{display:none}
}
@media (max-width: 520px) {
    .ai-location-section{padding:0 12px;margin:46px auto 65px}.ai-map-heading__subtitle{font-size:12px}.ai-map-shell{border-radius:22px}.ai-map-canvas,.ai-map-canvas .map-container{border-radius:17px}.ai-map-canvas,.ai-map-canvas .map-container,.ai-map-canvas .map-container iframe{min-height:390px}.ai-clinic-facts{grid-template-columns:1fr 1fr}.ai-clinic-fact--address{grid-column:1/-1}.route-companion[data-ai-route-console] .route-panel-actions{grid-template-columns:1fr}.ai-map-overlay--note{max-width:190px}.ai-map-overlay--note p{font-size:9px}
}
@media (prefers-reduced-motion: reduce) { .ai-pulse-dot{animation:none}.ai-route-meter span{transition:none} }
