/* Aifory AI — плавающий виджет ИИ-помощника */
.aic { position: fixed; right: 22px; bottom: 22px; z-index: 10000; font-family: inherit; }
/* Старый виджет чата сайта прячем — консьерж = единственный контакт */
.aif-chat { display: none !important; }

.aic-bubble {
    display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
    border: none; font-family: inherit; padding: 13px 20px 13px 17px; border-radius: 40px;
    background: linear-gradient(135deg, #7C5CFF 0%, #5b3ff0 100%); color: #fff;
    box-shadow: 0 8px 26px rgba(124, 92, 255, .42); transition: transform .15s, box-shadow .15s;
}
.aic-bubble:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(124, 92, 255, .5); }
.aic-bubble__ava {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 30px; height: 30px; border-radius: 50%; background: #fff; font-size: 18px; line-height: 1;
}
.aic-bubble__txt { font-size: 15px; font-weight: 600; white-space: nowrap; }
.aic-bubble__txt b { font-weight: 800; }
.aic.is-open .aic-bubble { display: none; }

.aic-panel {
    display: none; flex-direction: column; width: 372px; max-width: calc(100vw - 32px);
    height: 560px; max-height: calc(100vh - 100px); background: #fff; border-radius: 20px;
    overflow: hidden; box-shadow: 0 18px 60px rgba(20, 16, 50, .28); border: 1px solid #ecebf5;
}
.aic.is-open .aic-panel { display: flex; }

.aic-head {
    display: flex; align-items: center; gap: 11px; padding: 14px 16px;
    background: linear-gradient(135deg, #7C5CFF 0%, #5b3ff0 100%); color: #fff;
}
.aic-head__ava {
    position: relative; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 22px; background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}
.aic-head__online {
    position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%;
    background: #22c55e; border: 2px solid #6b4ef0;
}
.aic-head__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.aic-head__meta b { font-size: 15px; font-weight: 700; }
.aic-head__sub { font-size: 12px; opacity: .85; }
.aic-close {
    background: none; border: none; color: #fff; font-size: 17px; cursor: pointer;
    opacity: .8; padding: 4px; line-height: 1;
}
.aic-close:hover { opacity: 1; }

.aic-body {
    flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column;
    gap: 10px; background: #f7f7fb;
}
.aic-msg {
    max-width: 84%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5;
    word-wrap: break-word;
}
.aic-msg--bot { align-self: flex-start; background: #fff; color: #23233a; border-bottom-left-radius: 5px;
    box-shadow: 0 1px 4px rgba(20, 16, 50, .06); }
.aic-msg--user { align-self: flex-end; background: #7C5CFF; color: #fff; border-bottom-right-radius: 5px; }
.aic-msg--typing { color: #a9a9c0; letter-spacing: 3px; }

/* Карточки отелей в чате */
.aic-cards { align-self: stretch; display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.aic-card {
    display: flex; gap: 10px; background: #fff; border: 1px solid #ecebf5; border-radius: 14px;
    overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .1s;
}
.aic-card:hover { box-shadow: 0 6px 18px rgba(124, 92, 255, .16); transform: translateY(-1px); }
.aic-card__img { width: 92px; flex-shrink: 0; background-size: cover; background-position: center; background-color: #f2f2f7; }
.aic-card__body { flex: 1; min-width: 0; padding: 10px 12px 11px 0; display: flex; flex-direction: column; gap: 3px; }
.aic-card__name { font-size: 13.5px; font-weight: 700; color: #23233a; line-height: 1.3; display: flex; align-items: center; gap: 6px; }
.aic-card__rate { flex-shrink: 0; margin-left: auto; font-size: 11.5px; font-weight: 700; color: #fff; background: #1a9e5f; border-radius: 6px; padding: 1px 6px; }
.aic-card__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #8a8aa3; }
.aic-card__stars { color: #f0a020; }
.aic-card__price { margin-top: 2px; font-size: 14.5px; font-weight: 800; color: #5b3ff0; }
.aic-card__price i { font-style: normal; font-size: 11px; font-weight: 500; color: #a0a0b5; margin-left: 5px; }

/* Карточки мест рядом (рестораны, достопримечательности) */
.aic-places { align-self: stretch; display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.aic-place {
    display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #ecebf5;
    border-radius: 12px; padding: 9px 12px;
}
.aic-place__ic { font-size: 18px; flex-shrink: 0; }
.aic-place__body { display: flex; flex-direction: column; min-width: 0; }
.aic-place__body b { font-size: 13.5px; font-weight: 700; color: #23233a; }
.aic-place__body span { font-size: 12px; color: #8a8aa3; }
.aic-place--route { width: 100%; text-align: left; font-family: inherit; cursor: pointer; transition: box-shadow .15s, transform .1s, border-color .15s; }
.aic-place--route:hover { border-color: #b9a8ff; box-shadow: 0 5px 16px rgba(124, 92, 255, .16); transform: translateY(-1px); }
.aic-place__go { margin-left: auto; flex-shrink: 0; font-size: 12.5px; font-weight: 700; color: #7C5CFF; white-space: nowrap; }

/* ===== Полноэкранный «фантастический» маршрут ===== */
.aic-rt {
    position: fixed; inset: 0; z-index: 10002; display: flex; flex-direction: column;
    background: radial-gradient(1200px 700px at 70% 0%, #191636 0%, #0a0a18 60%, #07070f 100%);
    opacity: 0; transition: opacity .26s ease;
}
.aic-rt.is-in { opacity: 1; }
.aic-rt__head {
    display: flex; align-items: center; gap: 14px; padding: 16px 20px; color: #fff;
    background: linear-gradient(90deg, rgba(124,92,255,.28), rgba(255,77,141,.14));
    border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(6px);
}
.aic-rt__title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.aic-rt__title b { font-size: 17px; font-weight: 700; line-height: 1.25; }
.aic-rt__sub { font-size: 12.5px; color: #b9b6dd; margin-top: 2px; }
.aic-rt__close {
    flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255,255,255,.12); color: #fff; font-size: 17px; transition: background .15s;
}
.aic-rt__close:hover { background: rgba(255,255,255,.22); }
.aic-rt__map { flex: 1; position: relative; background: #07070f; }
.aic-rt__loading {
    position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center;
    color: #9d97d6; font-size: 15px; letter-spacing: .3px; animation: aicGlowPulse 1.4s ease-in-out infinite;
}
@keyframes aicGlowPulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
.aic-rt__bar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 20px;
    background: rgba(12,10,28,.92); border-top: 1px solid rgba(255,255,255,.08); color: #fff;
}
.aic-rt__stat { font-size: 15px; font-weight: 600; }
.aic-rt__nav {
    flex-shrink: 0; text-decoration: none; font-size: 14px; font-weight: 700; color: #fff;
    padding: 11px 18px; border-radius: 12px; white-space: nowrap;
    background: linear-gradient(135deg, #7C5CFF, #ff4d8d); box-shadow: 0 6px 20px rgba(124,92,255,.45);
    transition: transform .1s, box-shadow .15s;
}
.aic-rt__nav:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(124,92,255,.55); }

/* Пульсирующие маркеры */
.aic-pin {
    width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 18px; position: relative; box-shadow: 0 3px 12px rgba(0,0,0,.5), 0 0 0 3px rgba(255,255,255,.18);
}
.aic-pin--hotel { background: #7C5CFF; }
.aic-pin--dest { background: #ff4d8d; }
.aic-pin::before {
    content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid currentColor;
    animation: aicPingRing 1.7s ease-out infinite;
}
.aic-pin--hotel::before { color: #7C5CFF; }
.aic-pin--dest::before { color: #ff4d8d; }
@keyframes aicPingRing { 0% { transform: scale(.55); opacity: .75; } 100% { transform: scale(1.9); opacity: 0; } }

/* Светящаяся анимированная трасса */
.aic-route-line { stroke-dasharray: 2 13; stroke-linecap: round; filter: drop-shadow(0 0 6px #8f7bff); animation: aicFlow 1.1s linear infinite; }
@keyframes aicFlow { to { stroke-dashoffset: -30; } }
.aic-route-glow { filter: blur(3px); }
.aic-rt .leaflet-container { background: #07070f; font-family: inherit; }
.aic-rt .leaflet-control-attribution { background: rgba(0,0,0,.4); color: #8f8ab5; font-size: 10px; }
.aic-rt .leaflet-bar a { background: #1a1830; color: #fff; border-color: rgba(255,255,255,.1); }

@media (max-width: 600px) {
    .aic-rt__head { padding: 13px 16px; }
    .aic-rt__title b { font-size: 15px; }
    .aic-rt__bar { flex-direction: column; align-items: stretch; gap: 10px; }
    .aic-rt__nav { text-align: center; }
}

.aic-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 14px 10px; background: #f7f7fb; }
.aic-chip {
    border: 1.5px solid #d9d0ff; background: #fff; color: #5b3ff0; font-family: inherit;
    font-size: 13px; font-weight: 600; border-radius: 20px; padding: 7px 13px; cursor: pointer;
    transition: background .15s, border-color .15s;
}
.aic-chip:hover { background: #f2effe; border-color: #7C5CFF; }

.aic-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid #eeedf7; background: #fff; }
.aic-input input {
    flex: 1; min-width: 0; border: 1.5px solid #e2def2; border-radius: 22px; padding: 11px 16px;
    font-family: inherit; font-size: 14px; outline: none; transition: border-color .15s;
}
.aic-input input:focus { border-color: #7C5CFF; }
.aic-send {
    flex-shrink: 0; width: 42px; height: 42px; border: none; border-radius: 50%; cursor: pointer;
    background: #7C5CFF; color: #fff; font-size: 16px; transition: opacity .15s;
}
.aic-send:hover { opacity: .9; }
/* Микрофон (голосовой ввод) */
.aic-mic {
    flex-shrink: 0; width: 42px; height: 42px; border: 1.5px solid #e2def2; border-radius: 50%;
    cursor: pointer; background: #fff; font-size: 18px; line-height: 1; transition: background .15s, border-color .15s;
}
.aic-mic:hover { background: #f2effe; border-color: #7C5CFF; }
.aic-listening .aic-mic {
    background: #7C5CFF; border-color: #7C5CFF; color: #fff;
    animation: aicPulse 1.1s ease-in-out infinite;
}
@keyframes aicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 92, 255, .5); }
    50% { box-shadow: 0 0 0 8px rgba(124, 92, 255, 0); }
}
/* Кнопка «озвучивать ответы» в шапке */
.aic-voice {
    background: none; border: none; color: #fff; font-size: 16px; cursor: pointer; opacity: .8;
    padding: 4px; line-height: 1; margin-right: 2px;
}
.aic-voice:hover, .aic-voice.is-on { opacity: 1; }

@media (max-width: 500px) {
    .aic { right: 14px; bottom: 14px; }
    .aic-panel { height: calc(100vh - 90px); }
    .aic-bubble__txt { display: none; }
    .aic-bubble { padding: 15px; }
}

/* --- Помощник — это ИИ, а не оператор на смене ------------------------ */
/* Метка «ИИ» на кнопке: гость должен понять, с кем говорит, до первого клика. */
.aic-bubble__txt::after {
    content: 'ИИ';
    margin-left: 7px; padding: 2px 6px; border-radius: 6px;
    background: rgba(255, 255, 255, .22); font-size: 10px; font-weight: 700;
    letter-spacing: .6px; vertical-align: middle;
}

/* --- Проявление ------------------------------------------------------- */
/* Не выезжает из угла, как чат оператора, а проступает на месте: помощник
   не приходит раньше времени и не опаздывает — появляется, когда нужен. */
.aic-hint {
    position: relative; max-width: 300px; margin-bottom: 12px; cursor: pointer;
    padding: 14px 34px 14px 16px; border-radius: 18px 18px 18px 6px;
    background: #fff; color: #23233a; font-size: 14px; line-height: 1.45;
    border: 1px solid #ecebf5; box-shadow: 0 10px 34px rgba(20, 16, 50, .16);
    opacity: 0; transform: scale(.94); filter: blur(6px);
    transition: opacity .42s ease, transform .42s cubic-bezier(.2, .9, .3, 1.2), filter .42s ease;
}
.aic.is-hint-in .aic-hint { opacity: 1; transform: scale(1); filter: blur(0); }
.aic-hint:hover { box-shadow: 0 14px 40px rgba(124, 92, 255, .26); }
.aic-hint__x {
    position: absolute; top: 7px; right: 8px; width: 22px; height: 22px; padding: 0;
    border: none; border-radius: 50%; background: none; color: #b6b6c8;
    font-size: 12px; line-height: 1; cursor: pointer;
}
.aic-hint__x:hover { background: #f2f2f7; color: #6b6b85; }

/* Пока помощник проявляется — знак мягко разгорается, чтобы взгляд его нашёл. */
.aic.is-hinting .aic-bubble { animation: aicGlow 2.6s ease-in-out 3; }
@keyframes aicGlow {
    0%, 100% { box-shadow: 0 8px 26px rgba(124, 92, 255, .42); }
    50% { box-shadow: 0 8px 26px rgba(124, 92, 255, .42), 0 0 0 10px rgba(124, 92, 255, .12); }
}

@media (prefers-reduced-motion: reduce) {
    .aic-hint { transition: opacity .2s ease; transform: none; filter: none; }
    .aic.is-hinting .aic-bubble { animation: none; }
}

/* Курсор во время печати: видно, что фразу пишут прямо сейчас. */
.aic-msg--typing-live::after {
    content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px;
    background: #7C5CFF; vertical-align: text-bottom; animation: aicCaret .9s step-end infinite;
}
@keyframes aicCaret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .aic-msg--typing-live::after { animation: none; }
}

/* --- Карточки, отобранные помощником ---------------------------------- */
.catalog-item--ai {
    position: relative;
    outline: 2px solid #7C5CFF; outline-offset: 2px; border-radius: 18px;
}
/* Подпись кладём НАД карточкой, а не внутрь потока: карточка выложена в ряд
   (фото | описание), и обычный блок вставал вертикальной полосой поверх фото. */
.catalog-item__ai-note {
    position: absolute; top: 0; left: 0; z-index: 3;
    display: flex; align-items: center; gap: 6px; max-width: calc(100% - 24px);
    padding: 6px 14px; background: linear-gradient(135deg, #7C5CFF 0%, #5b3ff0 100%);
    color: #fff; font-size: 12px; font-weight: 600; line-height: 1.3;
    border-radius: 18px 0 14px 0;
    box-shadow: 0 4px 14px rgba(124, 92, 255, .35);
}
.catalog-item__ai-note::before { content: '✨'; font-size: 13px; }

/* --- «Это сделал помощник» + откат ------------------------------------ */
.aic-undo {
    position: fixed; left: 50%; bottom: 24px; z-index: 10001;
    display: flex; align-items: center; gap: 14px;
    padding: 11px 12px 11px 18px; border-radius: 40px;
    background: #23233a; color: #fff; font-size: 14px;
    box-shadow: 0 12px 40px rgba(20, 16, 50, .32);
    opacity: 0; transform: translate(-50%, 12px);
    transition: opacity .28s ease, transform .28s cubic-bezier(.2, .9, .3, 1.2);
}
.aic-undo.is-in { opacity: 1; transform: translate(-50%, 0); }
.aic-undo__txt::before { content: '✨'; margin-right: 7px; }
.aic-undo__btn {
    border: none; cursor: pointer; padding: 7px 15px; border-radius: 30px;
    background: #7C5CFF; color: #fff; font-family: inherit; font-size: 13px; font-weight: 600;
}
.aic-undo__btn:hover { background: #6b4ef0; }

@media (prefers-reduced-motion: reduce) {
    .aic-undo { transition: opacity .2s ease; transform: translate(-50%, 0); }
}

/* --- Строка помощника на странице -------------------------------------- */
/* Не окно чата в углу, а полоса по низу экрана: помощник живёт на странице,
   а не в отдельном приложении сбоку. */
/* Прозрачная: страница остаётся главной. Заметность держит не плотность фона, а
   фиолетовый — постоянный знак-кружок и ореол в момент разговора. */
.aiq {
    position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
    z-index: 10000; display: flex; align-items: center; gap: 14px;
    width: min(780px, calc(100vw - 28px));
    padding: 12px 14px; border-radius: 44px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255, 255, 255, .68);
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    border: 1px solid rgba(124, 92, 255, .28);
    box-shadow: 0 8px 28px rgba(20, 16, 50, .10), 0 0 0 4px rgba(124, 92, 255, .06);
    font-family: inherit;
    animation: aiqIn .5s cubic-bezier(.2, .9, .3, 1.15) both;
    transition: background .28s ease, border-color .28s ease, box-shadow .28s ease;
}

/* Активна — гость печатает или помощник отвечает. Только в эти моменты строка
   имеет право тянуть внимание на себя. */
.aiq.is-active,
.aiq.is-speaking,
.aiq.is-thinking {
    background: rgba(255, 255, 255, .84);
    border-color: rgba(124, 92, 255, .62);
    box-shadow: 0 10px 34px rgba(20, 16, 50, .12), 0 0 0 5px rgba(124, 92, 255, .15),
                0 0 36px rgba(124, 92, 255, .40);
}
@keyframes aiqIn {
    from { opacity: 0; transform: translate(-50%, 26px) scale(.96); }
    to   { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* Значок в светящемся круге — единственная деталь, по которой строку опознают
   как живого помощника, а не как поле поиска. */
.aiq__mark {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 16px;
    background: linear-gradient(135deg, #8f6fff 0%, #5b3ff0 100%);
    box-shadow: 0 0 0 0 rgba(124, 92, 255, .55);
    animation: aiqBeacon 3.4s ease-out infinite;
}
@keyframes aiqBeacon {
    0%        { box-shadow: 0 0 0 0 rgba(124, 92, 255, .5); }
    45%, 100% { box-shadow: 0 0 0 14px rgba(124, 92, 255, 0); }
}
.aiq.is-thinking .aiq__mark { animation: aiqPulse 1.1s ease-in-out infinite; }
@keyframes aiqPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.86); } }

/* Реплика: занимает место только когда есть что сказать. */
/* Ряд с полем ввода: он на месте всегда, реплика приходит и уходит над ним. */
.aiq__row { display: flex; align-items: center; gap: 14px; }

/* Реплика занимает столько места, сколько ей нужно, — до восьми строк, дальше
   прокрутка. Обрезать ответ на полуслове хуже, чем показать его целиком. */
.aiq__line {
    max-height: 12.4em; overflow-y: auto; padding: 6px 6px 0 10px;
    font-size: 14.5px; line-height: 1.55; color: #23233a;
    white-space: pre-wrap;
}
.aiq__line:empty { display: none; }
.aiq:has(.aiq__line:not(:empty)) { border-radius: 26px; }

.aiq__input {
    flex: 1 1 240px; min-width: 130px; border: none; background: none; outline: none;
    font-family: inherit; font-size: 14.5px; color: #23233a; padding: 7px 0;
}
.aiq__input::placeholder { color: #9b98b6; }

.aiq__more {
    flex-shrink: 0; border: none; cursor: pointer; padding: 9px 16px; border-radius: 30px;
    background: rgba(124, 92, 255, .12); color: #5b3ff0;
    font-family: inherit; font-size: 13px; font-weight: 600;
}
.aiq__more:hover { background: rgba(124, 92, 255, .22); }

/* Пока говорит помощник — поле ввода уступает место реплике. */

/* Панель отката поднимаем, чтобы не наезжала на строку. */
.aic-undo { bottom: 92px; }

/* Кнопка-пузырь в углу теперь лишняя: строка на странице — главная поверхность,
   а историю открывает кнопка в ней же. Два входа в одно и то же только сбивают,
   и угловой пузырь — ровно тот облик виджета поддержки, от которого уходили. */
.aic .aic-bubble { display: none; }

/* Строка закреплена внизу и перекрывала бы последние карточки. */
body { padding-bottom: 92px; }

@media (max-width: 640px) {
    .aiq { gap: 8px; padding-left: 14px; }
    .aiq__more { display: none; }
    .aiq__line { max-height: 2.9em; }
}
@media (prefers-reduced-motion: reduce) {
    .aiq.is-thinking .aiq__mark { animation: none; }
}

/* --- Тариф, который советует помощник ---------------------------------- */
/* Карточка тарифа выложена в колонку, поэтому подпись — обычный первый ребёнок.
   Абсолютом (как в каталоге, где карточка идёт строкой) она накрывала первую
   строку условий: у подсвеченного тарифа пропадал тип кровати. */
.room-grid__item--ai {
    outline: 2px solid #7C5CFF; outline-offset: 2px; border-radius: 16px;
}
.room-grid__ai-note {
    flex: 0 0 auto; margin: 0 0 12px;
    padding: 7px 12px; border-radius: 12px;
    background: linear-gradient(135deg, #7C5CFF 0%, #5b3ff0 100%);
    color: #fff; font-size: 12px; font-weight: 600; line-height: 1.35;
}
.room-grid__ai-note::before { content: '✨ '; }

@media (prefers-reduced-motion: reduce) {
    .aiq { animation: none; }
    .aiq__mark { animation: none; }
}

/* --- Маршрут на странице ----------------------------------------------- */
/* Не окно поверх сайта, а блок в потоке страницы: гость не «уходит в карту»,
   карта приходит к нему. */
.aic-route {
    margin: 22px 0; border-radius: 22px; overflow: hidden;
    background: #17142b; border: 1px solid rgba(124, 92, 255, .32);
    box-shadow: 0 16px 44px rgba(20, 16, 50, .16);
    animation: aicRouteIn .45s cubic-bezier(.2, .9, .3, 1.12) both;
}
@keyframes aicRouteIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.aic-route__head {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.aic-route__mark {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
    background: linear-gradient(135deg, #8f6fff 0%, #5b3ff0 100%);
}
.aic-route__title { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.aic-route__title b { color: #fff; font-size: 15px; font-weight: 600; }
.aic-route__sub { color: rgba(220, 214, 255, .62); font-size: 12.5px; margin-top: 2px; }
.aic-route__close {
    flex-shrink: 0; border: none; cursor: pointer; width: 30px; height: 30px;
    border-radius: 50%; background: rgba(255, 255, 255, .08); color: #d9d2ff; font-size: 13px;
}
.aic-route__close:hover { background: rgba(255, 255, 255, .16); color: #fff; }

.aic-route__map { height: 320px; background: #17142b; }
.aic-route__loading {
    height: 100%; display: flex; align-items: center; justify-content: center;
    color: rgba(220, 214, 255, .6); font-size: 13.5px;
}

.aic-route__bar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 13px 16px; border-top: 1px solid rgba(255, 255, 255, .07);
}
.aic-route__stat { color: #f3f1ff; font-size: 14px; font-weight: 600; }
.aic-route__nav { color: #b9a8ff; font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.aic-route__nav:hover { color: #fff; }

@media (max-width: 640px) {
    .aic-route__map { height: 250px; }
    .aic-route__bar { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .aic-route { animation: none; } }

/* Прокрутка внутри реплики — тонкая, чтобы не спорить со стеклом строки. */
.aiq__line::-webkit-scrollbar { width: 5px; }
.aiq__line::-webkit-scrollbar-thumb { background: rgba(124, 92, 255, .3); border-radius: 3px; }

/* --- Разбор отзывов на странице отеля ----------------------------------- */
.rvd {
    margin: 22px 0; padding: 20px 22px; border-radius: 22px;
    background: #fff; border: 1px solid #ece9fa;
    box-shadow: 0 10px 34px rgba(20, 16, 50, .07);
}
.rvd__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rvd__mark {
    flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 15px;
    background: linear-gradient(135deg, #8f6fff 0%, #5b3ff0 100%);
}
.rvd__title { display: flex; flex-direction: column; }
.rvd__title b { font-size: 17px; font-weight: 700; color: #23233a; }
.rvd__sub { font-size: 12.5px; color: #8c89a6; margin-top: 2px; }

.rvd__verdict { font-size: 15px; line-height: 1.6; color: #23233a; margin: 0 0 16px; }

.rvd__cols { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 16px; }
.rvd__col { flex: 1 1 240px; min-width: 220px; }
.rvd__col-title { font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.rvd__col--plus .rvd__col-title { color: #1f9d5c; }
.rvd__col--minus .rvd__col-title { color: #d2543f; }
.rvd__items { margin: 0; padding-left: 18px; }
.rvd__items li { font-size: 14px; line-height: 1.55; color: #3a3852; margin-bottom: 3px; }

.rvd__who { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.rvd__fits, .rvd__avoid {
    font-size: 14px; line-height: 1.5; padding: 9px 13px; border-radius: 12px;
}
.rvd__fits { background: #eefaf3; color: #196b42; }
.rvd__avoid { background: #fdf0ed; color: #9c3b28; }

/* Цитаты дословные: сервер сверяет каждую с текстом отзыва и выбрасывает
   ту, которой в базе нет. Поэтому их можно показывать как слова гостя. */
.rvd__quotes { display: flex; flex-direction: column; gap: 10px; }
.rvd__quote {
    margin: 0; padding: 10px 14px; border-left: 3px solid #cfc4ff;
    background: #faf9ff; border-radius: 0 12px 12px 0;
    font-size: 14px; line-height: 1.55; color: #4a4766; font-style: italic;
}
.rvd__caution {
    margin: 14px 0 0; padding: 10px 13px; border-radius: 12px;
    background: #fffaf0; color: #8a6516; font-size: 13.5px; line-height: 1.5;
}

@media (max-width: 640px) {
    .rvd { padding: 16px 16px; }
    .rvd__cols { gap: 14px; }
}

.rvd__sources {
    margin-top: 14px; padding: 10px 13px; border-radius: 12px;
    background: #f6f5fc; color: #57548a; font-size: 13px; line-height: 1.5;
    display: flex; flex-wrap: wrap; gap: 6px;
}
.rvd__sources-title { font-weight: 600; }
