/* Поиск туров, новый вид — <x-tour-search design="v2"/>, макет docs/design (17.11.2026).
   Подключается после tour-search.css и только переопределяет его под классом .tsearch--v2:
   разметка, скрипт и запросы общие. Прежний вид этот файл не затрагивает. */

.tsearch--v2 {
    --ts-line: #dce4e5;
    --ts-soft: #f4f7f6;
    --ts-text: #202b30;
    --ts-muted: #637378;
    --ts2-green: #23654d;
    --ts2-green-bg: #eaf3ee;
    --ts2-shadow: 0 14px 50px rgba(32, 59, 59, .07);
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    column-gap: 24px;
    align-items: start;
    padding: 4px 24px 28px;
    background: var(--ts-soft);
    border-radius: 16px;
}

/* форма «растворяется»: её части — карточка полей и колонка фильтров — ложатся в сетку компонента */
.tsearch--v2 > .tsearch__form {
    display: contents;
}
.tsearch--v2 .ts2-intro,
.tsearch--v2 .ts2-shell {
    grid-column: 1 / -1;
}
.tsearch--v2 .tsearch__more {
    grid-column: 1;
    min-width: 0;
    margin: 0;
}
.tsearch--v2 .tsearch__out {
    grid-column: 2;
    min-width: 0;
}

/* стартовый экран: форма, под ней свёрнутый блок всех параметров и популярные направления; выдачи нет */
.tsearch--v2.is-start .tsearch__out {
    display: none;
}

/* ---------- заголовок ---------- */

.ts2-intro {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 20px;
    padding: 22px 0 16px;
}
.ts2-intro h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
    color: var(--ts-text);
}
.ts2-intro p {
    margin: 0;
    font-size: 15px;
    color: var(--ts-muted);
}
.tsearch--v2.is-start .ts2-intro {
    padding-top: 48px;
}
.tsearch--v2.is-start .ts2-intro h1 {
    font-size: 36px;
}
.tsearch--v2.is-start {
    padding-bottom: 64px;
}

/* ---------- карточка основных полей ---------- */

.ts2-shell {
    margin-bottom: 18px;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--ts-line);
    border-radius: 15px;
    box-shadow: var(--ts2-shadow);
}
.tsearch--v2 .tsearch__row--main {
    gap: 8px;
    align-items: stretch;
}
/* поле — рамка с мелкой подписью внутри; сам элемент ввода без своей рамки */
.tsearch--v2 .ts2-shell .tsearch__field {
    gap: 0;
    padding: 6px 4px 2px;
    background: #fff;
    border: 1px solid var(--ts-line);
    border-radius: 8px;
    transition: border-color .15s, box-shadow .15s;
}
.tsearch--v2 .ts2-shell .tsearch__field:focus-within,
.tsearch--v2 .ts2-shell .tsearch__field:has(.is-open, .open) {
    border-color: var(--ts-accent);
    box-shadow: 0 0 0 3px rgba(247, 147, 30, .13);
}
.tsearch--v2 .ts2-shell .tsearch__label {
    padding: 0 8px;
    font-size: 11px;
    line-height: 1.3;
}
.tsearch--v2 .ts2-shell .mz-select {
    --mz-height: 32px;
    --mz-border: transparent;
    font-size: 14px;
}
.tsearch--v2 .ts2-shell .mz-select .mz-select__trigger {
    padding-left: 8px;
    box-shadow: none;
    border-color: transparent;
}
.tsearch--v2 .ts2-shell .mz-select__trigger.has-icon {
    background-position: 8px center;
}
.tsearch--v2 .ts2-shell .date-wrap {
    --cal-height: 32px;
    --cal-line: transparent;
}
.tsearch--v2 .ts2-shell .date-wrap .date-input {
    padding-left: 30px;
    font-size: 14px;
    box-shadow: none;
    border-color: transparent;
    outline: none;
}
/* календарь открывается на одном уровне с окнами «Ночей» и «Туристы»: те отсчитываются
   от низа рамки поля, а календарь — от поля даты, которое на 4px выше (18.11.2026) */
.tsearch--v2 .ts2-shell .date-wrap .cal-pop {
    top: calc(100% + 10px);
}
.tsearch--v2 .ts2-shell .date-wrap .date-ico {
    left: 8px;
}
.tsearch--v2 .ts2-shell .tsearch__pair {
    gap: 0;
}
.tsearch--v2 .ts2-shell .tsearch-pop__trigger {
    /* 44px, как поле дат и выпадающие списки: при 32px текст «Ночей» и «Туристы» стоял выше соседей */
    height: 44px;
    padding-left: 8px;
    font-size: 14px;
    border-color: transparent;
    box-shadow: none;
}
.tsearch--v2 .ts2-shell .tsearch__submit {
    height: auto;
    min-height: 52px;
    min-width: 132px;
    font-size: 15px;
    border-radius: 9px;
}

/* быстрые кнопки */
.ts2-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}
.ts2-chip {
    padding: 7px 13px;
    font: inherit;
    font-size: 13px;
    line-height: 1.4;
    color: var(--ts-text);
    background: #fff;
    border: 1px solid var(--ts-line);
    border-radius: 30px;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.ts2-chip:hover {
    border-color: #94aaa9;
}
.ts2-chip[aria-pressed="true"] {
    color: var(--ts-accent-dark);
    background: #fff2ed;
    border-color: var(--ts-accent);
}
.ts2-chip:focus-visible,
.ts2-tag:focus-visible,
.ts2-link:focus-visible,
.tsearch-card__choose:focus-visible {
    outline: 3px solid #20738b;
    outline-offset: 2px;
}
.ts2-dirty {
    margin: 10px 0 0;
    font-size: 13px;
    color: #854d17;
}
.ts2-dirty[hidden] {
    display: none;
}

/* ---------- колонка фильтров ---------- */

.tsearch--v2 .tsearch__more {
    padding: 4px 18px 0;
    background: #fff;
    border: 1px solid var(--ts-line);
    border-radius: 13px;
}
.tsearch--v2 .tsearch__more > summary {
    display: none;
}
/* блоки панели — столбиком в порядке макета: бюджет, отель, класс, питание, оценка, курорты, услуги */
.tsearch--v2 .tsearch__panel {
    display: flex;
    flex-direction: column;
    margin: 0;
}
.tsearch--v2 .tsearch__row--more,
.tsearch--v2 .tsearch__split,
.tsearch--v2 .tsearch__split-left,
.tsearch--v2 .tsearch__split-right {
    display: contents;
}
.tsearch--v2 .tsearch__panel .tsearch__field,
.tsearch--v2 .tsearch__starsbar {
    gap: 9px;
    margin: 0;
    padding: 15px 0;
    border-bottom: 1px solid var(--ts-line);
}
.tsearch--v2 .tsearch__panel .tsearch__label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ts-text);
}
.ts2-filters__head { order: 0; }
.tsearch--v2 .tsearch__field--price { order: 1; }
.tsearch--v2 .tsearch-hotels { order: 2; }
.tsearch--v2 .tsearch__starsbar { order: 3; }
.tsearch--v2 .tsearch__row--more > .tsearch__field:nth-child(1) { order: 4; } /* питание */
.tsearch--v2 .tsearch__row--more > .tsearch__field:nth-child(2) { order: 5; } /* оценка */
.tsearch--v2 .tsearch__field--regions { order: 6; }
.ts2-services { order: 7; }
.ts2-filters__apply { order: 8; }

.ts2-filters__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0 4px;
}
.ts2-filters__head h2 {
    flex: 1;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ts-text);
}
.ts2-link {
    padding: 4px 0;
    font: inherit;
    font-size: 12px;
    color: var(--ts-accent-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    background: none;
    border: 0;
    cursor: pointer;
}
.ts2-filters__close,
.ts2-filters-open {
    display: none;
}

.tsearch--v2 .tsearch__panel .mz-select {
    --mz-height: 40px;
    font-size: 14px;
}
.tsearch--v2 .tsearch-price {
    flex-wrap: wrap;
}
.tsearch--v2 .tsearch-price__range,
.tsearch--v2 .tsearch__row--more .tsearch-price__range {
    flex: 1 1 100%;
    height: 40px;
}
.tsearch--v2 .tsearch-price__currency {
    flex: 1 1 100%;
    width: auto;
}
.tsearch--v2 .tsearch__starsbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    height: auto;
}
.tsearch--v2 .tsearch-hotels {
    position: static;
}
.tsearch--v2 .tsearch-hotels > .tsearch-box {
    flex: none;
}
.tsearch--v2 .tsearch-hotels .tsearch-box__list {
    flex: none;
    height: 168px;
}
.tsearch--v2 .tsearch__field--regions .tsearch-box__list {
    height: 196px;
}
.tsearch--v2 .tsearch-box__search input {
    font-size: 14px;
}

/* услуги отеля и перелёт: раскрывающиеся группы галочек */
.ts2-services .tsx__group {
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--ts-line);
    border-radius: 0;
}
.ts2-services .tsx__legend {
    float: none;
    position: relative;
    margin: 0;
    padding: 14px 24px 14px 0;
    font-size: 13px;
    list-style: none;
    cursor: pointer;
    user-select: none;
}
.ts2-services .tsx__legend::-webkit-details-marker {
    display: none;
}
.ts2-services .tsx__legend::after {
    content: "";
    position: absolute;
    right: 2px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border-right: 2px solid var(--ts-muted);
    border-bottom: 2px solid var(--ts-muted);
    transform: rotate(45deg);
    transition: transform .2s;
}
.ts2-services .tsx__group[open] > .tsx__legend::after {
    margin-top: -2px;
    transform: rotate(-135deg);
}
.ts2-services .tsx__icon {
    display: none;
}
.ts2-services .tsx__checks {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 10px;
}
.ts2-services .tsx__check {
    padding: 5px 0;
    font-size: 13px;
}
.ts2-services .tsx__check input {
    width: 16px;
    height: 16px;
}

/* «Обновить поиск»: держится у нижнего края окна, пока листают колонку; заметной становится,
   когда фильтры изменены, а поиск ещё не повторён */
.ts2-filters__apply {
    position: sticky;
    bottom: 0;
    margin: 0 -18px;
    padding: 12px 18px 16px;
    background: #fff;
    border-radius: 0 0 13px 13px;
}
.ts2-filters__apply .tsearch__submit {
    width: 100%;
    font-size: 15px;
    color: var(--ts-text);
    background: #fff;
    border: 1px solid var(--ts-line);
}
.ts2-filters__apply .tsearch__submit:hover {
    background: var(--ts-soft);
}
.tsearch--v2.is-dirty .ts2-filters__apply .tsearch__submit {
    color: #fff;
    background: var(--ts-accent);
    border-color: var(--ts-accent);
}
.tsearch--v2.is-dirty .ts2-filters__apply .tsearch__submit:hover {
    background: var(--ts-accent-dark);
}

/* ---------- над выдачей ---------- */

.ts2-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 34px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--ts-muted);
}
.ts2-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.ts2-tags:empty {
    display: none;
}
.ts2-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    padding: 5px 10px;
    font: inherit;
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
    color: var(--ts-text);
    background: #fff;
    border: 1px solid var(--ts-line);
    border-radius: 9px;
    cursor: pointer;
}
.ts2-tag:hover {
    border-color: #94aaa9;
}
.ts2-tag span {
    font-size: 15px;
    line-height: 1;
    color: var(--ts-muted);
}
.tsearch--v2 .tsearch-group {
    background: #fff;
    border: 1px solid var(--ts-line);
}
.tsearch--v2 .tsearch__fresh {
    background: #fff3df;
    color: #5f4318;
}
.tsearch--v2 .tsearch__fresh--end.is-waiting {
    background: #fff;
    color: var(--ts-muted);
}

/* ---------- карточка отеля ---------- */

.tsearch--v2 .tsearch__results {
    gap: 16px;
}
.tsearch--v2 .tsearch-card {
    display: block;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
}
.tsearch--v2 .tsearch-card__main {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 190px;
    min-height: 204px;
}
.tsearch--v2 .tsearch-card__photo {
    position: relative;
    min-height: 204px;
    aspect-ratio: auto;
    border-radius: 0;
    background: #e3eceb;
}
.tsearch--v2 .tsearch-card__photo img {
    position: absolute;
    inset: 0;
}
.tsearch--v2 .tsearch-card__body {
    padding: 17px 18px 14px;
}
.tsearch--v2 .tsearch-card__place {
    margin: 0 0 5px;
    font-size: 12px;
}
.tsearch--v2 .tsearch-card__name {
    font-size: 17px;
    line-height: 1.25;
    letter-spacing: -.01em;
}
.tsearch--v2 .tsearch-card__stars {
    font-size: 12px;
    color: #b68025;
    white-space: nowrap;
}
.tsearch--v2 .tsearch-card__rating {
    margin: 9px 0 0;
}
.tsearch--v2 .tsearch-card__rating:not(:empty) {
    display: inline-block;
    padding: 3px 7px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ts2-green);
    background: var(--ts2-green-bg);
    border-radius: 5px;
}
.tsearch--v2 .tsearch-card__rating:empty {
    display: none;
}
.tsearch--v2 .tsearch-card__desc {
    margin-top: 9px;
    font-size: 13px;
    color: var(--ts-muted);
}
.tsearch--v2 .tsearch-card__trip {
    display: grid;
    gap: 2px;
    margin: 12px 0 0;
    padding-top: 11px;
    font-size: 13px;
    line-height: 1.5;
    border-top: 1px solid var(--ts-line);
}
.tsearch--v2 .tsearch-card__trip:empty {
    display: none;
}
.tsearch--v2 .tsearch-card__trip strong {
    font-weight: 650;
}

/* цена и главное действие */
.tsearch--v2 .tsearch-card__price {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    margin: 18px 0;
    padding: 0 17px;
    text-align: left;
    background: none;
    border-left: 1px solid var(--ts-line);
    border-radius: 0;
    cursor: default;
}
.tsearch--v2 .tsearch-card__price:hover {
    background: none;
}
.tsearch--v2 .tsearch-card__price strong {
    font-size: 23px;
    font-weight: 750;
    letter-spacing: -.03em;
    color: var(--ts-text);
}
.tsearch--v2 .tsearch-card__note {
    font-size: 11px;
    line-height: 1.35;
}
.tsearch-card__choose {
    margin-top: 8px;
    padding: 10px 6px;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    color: #fff;
    background: var(--ts-accent);
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    transition: background .15s;
}
.tsearch-card__choose:hover {
    background: var(--ts-accent-dark);
}
.tsearch--v2 .tsearch-card__more {
    margin: 2px 0 0;
    font-size: 12px;
    text-align: center;
    color: var(--ts-muted);
}
.tsearch--v2 .tsearch-card__more-btn {
    padding: 4px 0;
    font: inherit;
    font-size: 12px;
    color: var(--ts-accent-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    background: none;
    border: 0;
    cursor: pointer;
}

/* таблица вариантов — под карточкой, по кнопке «Ещё N вариантов» */
.tsearch--v2 .tsearch-card__variants {
    padding: 12px 16px 14px;
    background: #fbfcfc;
    border-top: 1px solid var(--ts-line);
}
.tsearch--v2 .tsearch-card:not(.is-open) .tsearch-card__variants {
    display: none;
}
.tsearch--v2 .tsearch-card__tours {
    margin: 0;
}
.tsearch--v2 .tsearch-card__sort + .tsearch-card__tours {
    margin-top: 4px;
}
.tsearch--v2 .tsearch-tour {
    background: #fff;
    border: 1px solid #edf1ef;
}

/* ---------- адаптив ---------- */

@media (max-width: 1250px) {
    .tsearch--v2 {
        grid-template-columns: 236px minmax(0, 1fr);
        column-gap: 18px;
        padding-left: 18px;
        padding-right: 18px;
    }
    .tsearch--v2 .tsearch-card__main {
        grid-template-columns: 190px minmax(0, 1fr);
    }
    .tsearch--v2 .tsearch-card__photo {
        grid-row: 1 / 3;
    }
    /* цена и кнопка — строкой под сведениями об отеле */
    .tsearch--v2 .tsearch-card__price {
        grid-column: 2;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        gap: 2px 12px;
        margin: 0;
        padding: 0 18px 16px;
        border-left: 0;
    }
    .tsearch--v2 .tsearch-card__price strong { grid-column: 1; grid-row: 1; }
    .tsearch--v2 .tsearch-card__note { grid-column: 1; grid-row: 2; }
    .tsearch-card__choose { grid-column: 2; grid-row: 1 / 3; margin: 0; }
    .tsearch--v2 .tsearch-card__more { grid-column: 1 / -1; text-align: left; }
}

/* планшет и телефон: одна колонка, фильтры — панель во весь экран по кнопке «Фильтры» */
@media (max-width: 900px) {
    .tsearch--v2 {
        display: block;
        padding: 0 12px 20px;
        border-radius: 12px;
    }
    .tsearch--v2 .tsearch__more {
        display: none;
    }
    .tsearch--v2.is-filters-open .tsearch__more {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1000;
        padding: 6px 18px 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 0;
        border-radius: 0;
    }
    .ts2-filters__close {
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        padding: 0;
        color: var(--ts-text);
        background: var(--ts-soft);
        border: 0;
        border-radius: 9px;
        cursor: pointer;
    }
    .ts2-filters__apply {
        border-radius: 0;
        box-shadow: 0 -1px 0 var(--ts-line);
    }
    .ts2-filters-open {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        flex: none;
        padding: 7px 12px;
        font: inherit;
        font-size: 13px;
        color: var(--ts-text);
        background: #fff;
        border: 1px solid var(--ts-line);
        border-radius: 9px;
        cursor: pointer;
    }
    html.ts2-lock {
        overflow: hidden;
    }
}

@media (max-width: 760px) {
    .ts2-intro {
        display: block;
        padding: 18px 0 12px;
    }
    .ts2-intro h1 {
        font-size: 24px;
    }
    .ts2-intro p {
        margin-top: 4px;
        font-size: 13px;
    }
    .tsearch--v2.is-start .ts2-intro {
        padding-top: 24px;
    }
    .tsearch--v2.is-start .ts2-intro h1 {
        font-size: 27px;
    }
    .tsearch--v2.is-start {
        padding-bottom: 28px;
    }
    /* поля столбиком в самой карточке; кнопка — под полями, быстрые кнопки — лентой под ней */
    .ts2-shell {
        display: grid;
        /* колонка не шире карточки: лента быстрых кнопок (nowrap) иначе растягивала её, и поля
           с кнопкой «Найти туры» вылезали за край экрана — страница прокручивалась вбок */
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
        padding: 11px;
        border-radius: 12px;
    }
    .tsearch--v2 .ts2-shell .tsearch__submit {
        order: 1;
        min-height: 48px;
    }
    .ts2-quick {
        order: 2;
        flex-wrap: nowrap;
        margin-top: 2px;
        padding-bottom: 4px;
        overflow-x: auto;
    }
    .ts2-chip {
        flex: none;
        white-space: nowrap;
        font-size: 12px;
    }
    .ts2-dirty {
        order: 3;
        margin: 0;
    }
    .ts2-summary {
        align-items: flex-start;
        font-size: 12px;
    }
    .tsearch--v2 .tsearch-card__main {
        grid-template-columns: 1fr;
    }
    .tsearch--v2 .tsearch-card__photo {
        grid-row: auto;
        height: 190px;
        min-height: 0;
    }
    .tsearch--v2 .tsearch-card__body {
        padding: 15px;
    }
    .tsearch--v2 .tsearch-card__price {
        grid-column: auto;
        padding: 0 15px 15px;
    }
    .tsearch--v2 .tsearch-card__variants {
        padding: 8px 12px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ts2-chip,
    .tsearch-card__choose,
    .ts2-services .tsx__legend::after {
        transition: none;
    }
}

/* флаг страны на кнопке списка: место под картинку слева от названия */
.tsearch--v2 .ts2-shell .mz-select .mz-select__trigger.has-icon {
    padding-left: 36px;
}

/* подпись «от 4 ★ и выше» — под звёздами: в узкой колонке рядом не помещается */
.tsearch--v2 .tsearch-stars {
    flex-wrap: wrap;
    gap: 2px 12px;
    height: auto; /* общая высота 32px — под одну строку: подпись на второй строке ложилась на линию-разделитель */
}
.tsearch--v2 .tsearch-stars__note {
    flex: 1 1 100%;
    font-size: 12px;
    line-height: 1.4;
}
.tsearch--v2 .tsearch-stars__note:empty {
    display: none;
}

/* Панель фильтров на телефоне — поверх нижнего меню сайта: обёртка страницы (.content_, свой слой
   z-index: 5) поднимается над ним, только пока панель открыта — тот же приём, что у раскрытых
   списков в tour-search.css */
.content_:has(.tsearch--v2.is-filters-open) {
    position: relative;
    z-index: 1001;
}

/* лента быстрых кнопок на телефоне листается пальцем, полоса прокрутки не нужна */
@media (max-width: 760px) {
    .ts2-quick {
        scrollbar-width: none;
    }
    .ts2-quick::-webkit-scrollbar {
        display: none;
    }
}

/* строка «Показано N из M найденных отелей»: выдача отобрана из найденного, поиск не повторён */
.ts2-preview {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    margin: 0 0 12px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.45;
    color: #5f4318;
    background: #fff3df;
    border-radius: 10px;
}
.ts2-preview[hidden] {
    display: none;
}
.ts2-preview .ts2-link {
    font-size: 13px;
    font-weight: 600;
}

/* ---------- варианты тура в карточке: строки по макету ----------
   Без рамок и заливки, разделены тонкой линией; в ячейке две строки: дата вылета и под ней
   «6 ночей · питание», номер и под ним размещение. Цена — спокойная кнопка со стрелкой.
   Сортировка — одним списком над вариантами (tour-search.js, SORT_OPTIONS), кнопок-заголовков нет. */

.tsearch--v2 .tsearch-card__sort {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0 0 8px;
    font-size: 12px;
    color: var(--ts-muted);
    background: none;
    border: 0;
    border-bottom: 1px solid var(--ts-line);
    border-radius: 0;
}
.ts2-vcount {
    flex: 1;
    min-width: 0;
}
.ts2-vsort {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
    cursor: pointer;
}
.ts2-vsort select {
    max-width: 210px;
    padding: 4px 2px;
    font: inherit;
    font-weight: 600;
    color: var(--ts-text);
    background: none;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}
.ts2-vsort select:focus-visible {
    outline: 3px solid #20738b;
    outline-offset: 1px;
}

.tsearch--v2 .tsearch-card__tours {
    gap: 0;
}
.tsearch--v2 .tsearch-card__sort + .tsearch-card__tours {
    margin-top: 0;
}
.tsearch--v2 .tsearch-tour,
.tsearch--v2.tsearch--no-operator .tsearch-tour {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr) auto auto;
    grid-template-rows: auto auto;
    gap: 1px 12px;
    align-items: center;
    padding: 11px 0;
    font-size: 13px;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--ts-line);
    border-radius: 0;
}
.tsearch--v2.tsearch--no-operator .tsearch-tour {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.25fr) auto auto;
}
.tsearch--v2 .tsearch-tour:last-child {
    border-bottom: 0;
    padding-bottom: 2px;
}
/* дата — первая строка, под ней «6 ночей · питание» мелко */
.tsearch--v2 .tsearch-tour__date {
    grid-column: 1 / 3;
    grid-row: 1;
    font-size: 14px;
    color: var(--ts-text);
}
.tsearch--v2 .tsearch-tour__nights,
.tsearch--v2 .tsearch-tour__meal {
    grid-row: 2;
    font-size: 12px;
    color: var(--ts-muted);
}
.tsearch--v2 .tsearch-tour__nights {
    grid-column: 1;
}
.tsearch--v2 .tsearch-tour__meal {
    grid-column: 2;
    margin-left: -8px; /* вплотную к ночам: между ними только точка */
}
.tsearch--v2 .tsearch-tour__meal::before {
    content: "· ";
}
.tsearch--v2 .tsearch-tour__room,
.tsearch--v2 .tsearch-tour__operator,
.tsearch--v2 .tsearch-tour__pick,
.tsearch--v2 .tsearch-tour__price {
    grid-row: 1 / 3;
}
.tsearch--v2 .tsearch-tour__room {
    display: block;
}
.tsearch--v2 .tsearch-tour__room-btn {
    display: block;
    font-size: 14px;
}
.tsearch--v2 .tsearch-tour__room small {
    display: block;
    margin-top: 1px;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    color: var(--ts-muted);
}
.tsearch--v2 .tsearch-tour__operator {
    font-size: 13px;
}
/* цена варианта: нейтральная кнопка, красной становится при наведении — главная кнопка у карточки одна */
.tsearch--v2 .tsearch-tour__price {
    height: 36px;
    padding: 0 8px 0 12px;
    font-size: 13px;
    font-weight: 650;
    color: var(--ts-text);
    background: #fff;
    border-color: var(--ts-line);
    border-radius: 9px;
}
.tsearch--v2 .tsearch-tour__price:hover,
.tsearch--v2 .tsearch-tour__price:focus-visible {
    color: #fff;
    background: var(--ts-accent);
    border-color: var(--ts-accent);
}

@media (max-width: 1100px) {
    /* в общих стилях на этой ширине номер и туроператор скрыты — в новом виде остаются */
    .tsearch--v2 .tsearch-tour__room,
    .tsearch--v2 .tsearch-tour__operator {
        display: block;
    }
}
@media (max-width: 760px) {
    /* телефон: слева столбиком дата, ночи и питание, номер, туроператор; справа цена */
    .tsearch--v2 .tsearch-tour,
    .tsearch--v2.tsearch--no-operator .tsearch-tour {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        grid-template-rows: none;
        gap: 2px 8px;
    }
    .tsearch--v2 .tsearch-tour__date { grid-column: 1 / 3; grid-row: 1; }
    .tsearch--v2 .tsearch-tour__nights { grid-column: 1; grid-row: 2; }
    .tsearch--v2 .tsearch-tour__meal { grid-column: 2; grid-row: 2; margin-left: 0; }
    .tsearch--v2 .tsearch-tour__room { grid-column: 1 / 3; grid-row: 3; }
    .tsearch--v2 .tsearch-tour__operator { grid-column: 1 / 3; grid-row: 4; }
    .tsearch--v2 .tsearch-tour__pick { grid-column: 3; grid-row: 1 / 4; }
    .tsearch--v2 .tsearch-tour__price { grid-column: 4; grid-row: 1 / 4; }
    .tsearch--v2 .tsearch-card__sort {
        flex-wrap: wrap;
        gap: 2px 12px;
    }
}

/* порядок блоков колонки (решение 17.11.2026): цена, курорты, за ними отели, класс, питание, рейтинг, услуги */
.tsearch--v2 .tsearch__field--regions { order: 2; }
.tsearch--v2 .tsearch-hotels { order: 3; }
.tsearch--v2 .tsearch__starsbar { order: 4; }
.tsearch--v2 .tsearch__row--more > .tsearch__field:nth-child(1) { order: 5; }
.tsearch--v2 .tsearch__row--more > .tsearch__field:nth-child(2) { order: 6; }

/* Отбор из найденного ничего не дал: блок на месте списка — что случилось и кнопка «Обновить поиск».
   Строка сортировки и карты на это время скрыта: сортировать нечего */
.ts2-empty {
    padding: 30px 32px 32px;
    background: #fff;
    border: 1px solid var(--ts-line);
    border-radius: 14px;
}
.ts2-empty h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.3;
    color: var(--ts-text);
}
.ts2-empty p {
    max-width: 640px;
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ts-muted);
}
.tsearch--v2.is-empty-preview .tsearch-group,
.tsearch--v2.is-empty-preview .tsearch__loadmore {
    display: none;
}
@media (max-width: 760px) {
    .ts2-empty {
        padding: 22px 18px 24px;
    }
    .ts2-empty .tsearch__submit {
        width: 100%;
    }
}

/* Список «Отели» после поиска: сверху найденные в этом поиске — с ценой «от», ниже остальные
   отели страны, приглушённые: их отметка сработает только после «Обновить поиск» */
.tsearch-box__group {
    position: sticky;
    top: -4px; /* у списка поле сверху 4px — заголовок прилипает к самому краю */
    z-index: 1;
    padding: 7px 12px 5px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .02em;
    color: var(--ts-muted);
    background: var(--ts-soft);
}
.tsearch--v2 .tsearch-box__list li.is-found small {
    font-weight: 650;
    color: var(--ts-text);
}
.tsearch--v2 .tsearch-box__list li.is-notfound .tsearch-check span {
    color: var(--ts-muted);
}

/* Страница нового поиска (/findtour-v2): серый фон — на всю ширину окна, сам поиск — по центру,
   шириной как в макете (docs/design: 1320px с полями по 28px). Не резиновый: на широком экране
   по бокам остаётся фон. */
.ts2-page {
    background: #f4f7f6;
}
.ts2-page > .tsearch--v2 {
    max-width: 1320px;
    margin: 0 auto;
    background: none;
    border-radius: 0;
}
@media (min-width: 901px) {
    .ts2-page > .tsearch--v2 {
        padding: 6px 28px 40px;
    }
}

/* высота списков колонки: отелей всегда больше, чем курортов, — их список выше (17.11.2026) */
.tsearch--v2 .tsearch__field--regions .tsearch-box__list {
    height: 176px;
}
.tsearch--v2 .tsearch-hotels .tsearch-box__list {
    height: 320px;
}

/* ---------- стартовый экран: все параметры до первого поиска ----------
   Блок фильтров (после поиска — колонка слева) на старте стоит под формой во всю ширину, свёрнутый:
   строка-заголовок раскрывает его, параметры ложатся в четыре столбца. Кнопки «Обновить поиск»
   и шапки колонки здесь нет — ищет «Найти туры» в форме. */
.tsearch--v2.is-start .tsearch__more {
    grid-column: 1 / -1;
    margin-bottom: 18px;
    padding: 0 18px;
}
.tsearch--v2.is-start .tsearch__more > summary {
    display: block;
    position: relative;
    padding: 15px 34px 15px 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--ts-muted);
    cursor: pointer;
    list-style: none;
}
.tsearch--v2.is-start .tsearch__more > summary span {
    margin-right: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ts-text);
}
.tsearch--v2.is-start .tsearch__more > summary::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 9px;
    height: 9px;
    margin-top: -7px;
    border-right: 2px solid var(--ts-muted);
    border-bottom: 2px solid var(--ts-muted);
    transform: rotate(45deg);
    transition: transform .2s;
}
.tsearch--v2.is-start .tsearch__more[open] > summary::after {
    margin-top: -2px;
    transform: rotate(-135deg);
}
.tsearch--v2.is-start .tsearch__more[open] > summary {
    border-bottom: 1px solid var(--ts-line);
}
.tsearch--v2.is-start .ts2-filters__head,
.tsearch--v2.is-start .ts2-filters__apply {
    display: none;
}
@media (min-width: 901px) {
    .tsearch--v2.is-start .tsearch__panel {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: auto auto auto 1fr;
        gap: 0 28px;
        padding-bottom: 18px;
    }
    .tsearch--v2.is-start .tsearch__panel .tsearch__field,
    .tsearch--v2.is-start .tsearch__starsbar {
        border-bottom: 0;
        padding: 16px 0 4px;
    }
    /* 1-й столбец: цена, класс, питание, рейтинг; 2-й — курорты; 3-й — отели; 4-й — услуги */
    .tsearch--v2.is-start .tsearch__field--price { grid-column: 1; grid-row: 1; }
    .tsearch--v2.is-start .tsearch__starsbar { grid-column: 1; grid-row: 2; }
    .tsearch--v2.is-start .tsearch__row--more > .tsearch__field:nth-child(1) { grid-column: 1; grid-row: 3; }
    .tsearch--v2.is-start .tsearch__row--more > .tsearch__field:nth-child(2) { grid-column: 1; grid-row: 4; align-self: start; }
    .tsearch--v2.is-start .tsearch__field--regions { grid-column: 2; grid-row: 1 / 5; }
    .tsearch--v2.is-start .tsearch-hotels { grid-column: 3; grid-row: 1 / 5; }
    .tsearch--v2.is-start .ts2-services {
        grid-column: 4;
        grid-row: 1 / 5;
        align-self: start;
        max-height: 400px;
        margin-top: 12px;
        overflow-y: auto;
    }
    .tsearch--v2.is-start .tsearch__field--regions .tsearch-box__list,
    .tsearch--v2.is-start .tsearch-hotels .tsearch-box__list {
        height: 300px;
    }
}
@media (max-width: 900px) {
    /* телефон: на старте блок параметров — обычный раскрывающийся блок под формой, не панель во весь экран */
    .tsearch--v2.is-start .tsearch__more {
        display: block;
    }
}

/* популярные направления — только на стартовом экране */
.ts2-popular {
    grid-column: 1 / -1;
    margin-top: 6px;
}
.tsearch--v2:not(.is-start) .ts2-popular {
    display: none;
}
.ts2-popular h2 {
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ts-text);
}
.ts2-popular__list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}
.ts2-popular__item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 13px 14px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    color: var(--ts-text);
    background: #fff;
    border: 1px solid var(--ts-line);
    border-radius: 11px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.ts2-popular__item:hover {
    border-color: var(--ts-accent);
    box-shadow: 0 6px 18px rgba(32, 59, 59, .08);
}
.ts2-popular__item:focus-visible {
    outline: 3px solid #20738b;
    outline-offset: 2px;
}
.ts2-popular__item img {
    flex: none;
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}
.ts2-popular__item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tsearch--v2.is-start {
    padding-bottom: 36px;
}
@media (max-width: 1100px) {
    .ts2-popular__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .ts2-popular__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .ts2-popular h2 { font-size: 17px; }
}

/* ---------- полосы прокрутки ----------
   Стандартная полоса Chrome (широкая, со стрелками) слишком выделялась на светлых блоках. Во всех
   прокручиваемых списках нового вида — тонкая полоса без стрелок, светлая; темнеет при наведении. */
.tsearch--v2 .tsearch-box__list,
.tsearch--v2 .tsearch-hotels__picked,
.tsearch--v2 .mz-select__dropdown,
.tsearch--v2 .mz-select__list,
.tsearch--v2 .tsearch__more {
    scrollbar-width: thin;
    scrollbar-color: #e4e9e9 transparent;
}
.tsearch--v2 ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.tsearch--v2 ::-webkit-scrollbar-track {
    background: transparent;
}
.tsearch--v2 ::-webkit-scrollbar-thumb {
    background: #e4e9e9;
    border-radius: 6px;
}
.tsearch--v2 :hover::-webkit-scrollbar-thumb {
    background: #d3dbdb;
}
.tsearch--v2 ::-webkit-scrollbar-thumb:hover {
    background: #b4c0c0;
}
.tsearch--v2 ::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}
/* Chrome 121+ при заданных scrollbar-width/scrollbar-color рисует свою полосу и не слушает
   ::-webkit-scrollbar — там, где они поддерживаются, стандартные свойства снимаем */
@supports selector(::-webkit-scrollbar) {
    .tsearch--v2 .tsearch-box__list,
    .tsearch--v2 .tsearch-hotels__picked,
    .tsearch--v2 .mz-select__dropdown,
    .tsearch--v2 .mz-select__list,
    .tsearch--v2 .tsearch__more {
        scrollbar-width: auto;
        scrollbar-color: auto;
    }
}

/* Блок услуг на стартовом экране: без полосы прокрутки. Что ниже есть ещё параметры, показывают
   затухание у нижнего края и кнопка-стрелка (tour-search.js, initServicesScroll); листается
   колесом и перетаскиванием мышью */
.ts2-services__more {
    display: none;
}
@media (min-width: 901px) {
    .tsearch--v2.is-start .ts2-services {
        position: relative;
        scrollbar-width: none;
        cursor: grab;
        overscroll-behavior: contain;
    }
    .tsearch--v2.is-start .ts2-services::-webkit-scrollbar {
        display: none;
    }
    .tsearch--v2.is-start .ts2-services.is-dragging {
        cursor: grabbing;
        user-select: none;
    }
    .tsearch--v2.is-start .ts2-services.is-dragging * {
        cursor: grabbing;
    }
    .tsearch--v2.is-start .ts2-services::after {
        content: "";
        position: sticky;
        bottom: 0;
        display: block;
        height: 64px;
        margin-top: -64px;
        background: linear-gradient(rgba(255, 255, 255, 0), #fff 78%);
        pointer-events: none;
        opacity: 0;
        transition: opacity .2s;
    }
    .tsearch--v2.is-start .ts2-services.has-more::after {
        opacity: 1;
    }
    .tsearch--v2.is-start .ts2-services.has-more .ts2-services__more {
        position: sticky;
        bottom: 6px;
        z-index: 2;
        display: grid;
        place-items: center;
        width: 34px;
        height: 34px;
        margin: -40px auto 0;
        padding: 0;
        color: var(--ts-text);
        background: #fff;
        border: 1px solid var(--ts-line);
        border-radius: 50%;
        box-shadow: 0 4px 14px rgba(32, 59, 59, .14);
        cursor: pointer;
        animation: ts2-nudge 1.8s ease-in-out infinite;
    }
    .tsearch--v2.is-start .ts2-services__more:hover {
        border-color: var(--ts-accent);
        color: var(--ts-accent-dark);
    }
}
@keyframes ts2-nudge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
    .tsearch--v2.is-start .ts2-services.has-more .ts2-services__more {
        animation: none;
    }
}

/* ---------- сотрудник: пометка и подборка в карточке формы ----------
   Строка под полями: слева быстрые кнопки, справа — кто вошёл (менеджер или руководитель отдела
   продаж, ссылка в кабинет) и подборка туров со счётчиком. Плавающей кнопки сбоку в новом виде нет. */
.ts2-shellfoot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 13px;
}
.ts2-shellfoot .ts2-quick {
    flex: 1 1 auto;
    margin-top: 0;
}
.ts2-staff {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.tsearch--v2 .ts2-staff .tsearch__who {
    gap: 8px;
    padding: 3px 12px 3px 3px;
    background: #fff;
    border-color: var(--ts-line);
}
.tsearch--v2 .ts2-staff .tsearch__who-ava {
    width: 30px;
    height: 30px;
}
.tsearch--v2 .ts2-staff .tsearch__who-text {
    line-height: 1.2;
}
.tsearch--v2 .ts2-staff .tsearch__who-text b {
    font-size: 12px;
}
.tsearch--v2 .ts2-staff .tsearch__who-text small {
    font-size: 11px;
}
.tsearch-picks.ts2-picks {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}
.ts2-picks .tsearch-picks__open {
    flex-direction: row;
    gap: 8px;
    padding: 6px 13px 6px 10px;
    font-size: 13px;
    font-weight: 600;
    border-color: var(--ts-line);
    border-radius: 30px;
    box-shadow: none;
}
.ts2-picks .tsearch-picks__icon {
    position: relative;
    display: inline-flex;
}
.ts2-picks .tsearch-picks__text {
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
}
.ts2-picks .tsearch-picks__new {
    padding: 8px 11px;
    font-size: 12px;
    border-color: var(--ts-line);
    border-radius: 30px;
    box-shadow: none;
}
@media (max-width: 760px) {
    .ts2-shellfoot {
        order: 2;
        margin-top: 2px;
    }
    .ts2-shellfoot .ts2-quick {
        flex: 1 1 100%;
        min-width: 0;
    }
    .ts2-staff {
        flex-wrap: wrap;
        margin-left: 0;
    }
}

/* Колонка фильтров едет за прокруткой выдачи (tour-search.js, initStickyFilters): sticky, а `top`
   двигает скрипт — колонка выше окна, и держаться ей нужно то верхом, то низом */
@media (min-width: 901px) {
    .tsearch--v2:not(.is-start) .tsearch__more {
        position: sticky;
        top: 130px;
        align-self: start;
    }
}

/* страница нового поиска: у общей обёртки нижнее поле 16px давало белую полосу между серым фоном и подвалом */
.page_search__wrapper.ts2-main {
    padding-bottom: 0;
}

/* счётчик подборки выступает за значок вправо — отступ, чтобы не ложился на подпись */
.ts2-picks .tsearch-picks__icon {
    margin-right: 9px;
}

/* у последней группы услуг линии снизу нет: ниже либо край блока, либо своя граница кнопки «Обновить поиск» */
.ts2-services .tsx__group:last-of-type {
    border-bottom: 0;
}

/* Сортировка вариантов — список, оформленный общим скриптом сайта (mz-select), как в форме */
.ts2-vsort {
    gap: 8px;
    cursor: default;
}
.tsearch--v2 .ts2-vsort .mz-select {
    --mz-height: 34px;
    width: 232px;
    font-size: 13px;
}
.tsearch--v2 .ts2-vsort .mz-select__dropdown {
    min-width: 232px;
}
/* Выпадающий список не должен обрезаться краем карточки: у карточки нет overflow: hidden,
   скругления углов — у фото и у блока вариантов; карточка с раскрытым списком — над соседними */
.tsearch--v2 .tsearch-card {
    overflow: visible;
}
.tsearch--v2 .tsearch-card__photo {
    overflow: hidden;
    border-radius: 13px 0 0 13px;
}
.tsearch--v2 .tsearch-card.is-open .tsearch-card__photo {
    border-radius: 13px 0 0 0;
}
.tsearch--v2 .tsearch-card__variants {
    border-radius: 0 0 13px 13px;
}
.tsearch--v2 .tsearch-card:has(.mz-select.is-open) {
    position: relative;
    z-index: 6;
}
@media (max-width: 760px) {
    .tsearch--v2 .tsearch-card__photo,
    .tsearch--v2 .tsearch-card.is-open .tsearch-card__photo {
        border-radius: 13px 13px 0 0;
    }
    .tsearch--v2 .ts2-vsort .mz-select {
        width: 200px;
    }
}

/* Подборка в карточке формы: от плавающей кнопки ей достался z-index: 900 — внутри строки он
   поднимал её над шапкой сайта, и при прокрутке блок проезжал поверх шапки, а не под ней */
.tsearch-picks.ts2-picks {
    z-index: auto;
}

/* в списке сортировки вариантов до девяти пунктов — показываем все без прокрутки */
.tsearch--v2 .ts2-vsort .mz-select__dropdown {
    max-height: 420px;
}

/* Сортировка вариантов — без рамки: выглядит как строка текста со стрелкой («сначала дешёвые ⌄»),
   список появляется только по нажатию. Оформление общего скрипта (рамка, высота поля) здесь снято. */
.tsearch--v2 .ts2-vsort .mz-select {
    --mz-height: 26px;
    --mz-border: transparent;
    --mz-bg: transparent;
    width: auto;
}
.tsearch--v2 .ts2-vsort .mz-select .mz-select__trigger {
    width: auto;
    padding: 0 22px 0 0;
    font-weight: 600;
    color: var(--ts-text);
    background-color: transparent;
    border-color: transparent;
    box-shadow: none;
}
.tsearch--v2 .ts2-vsort .mz-select .mz-select__trigger::after {
    right: 0;
}
.tsearch--v2 .ts2-vsort .mz-select .mz-select__trigger:hover,
.tsearch--v2 .ts2-vsort .mz-select.is-open .mz-select__trigger {
    color: var(--ts-accent-dark);
    border-color: transparent;
    box-shadow: none;
}
.tsearch--v2 .ts2-vsort .mz-select .mz-select__trigger:focus-visible {
    outline: 3px solid #20738b;
    outline-offset: 3px;
    border-radius: 4px;
}
/* список — от правого края подписи */
.tsearch--v2 .ts2-vsort .mz-select__dropdown {
    left: auto;
    right: 0;
    width: 232px;
}
.ts2-vsort {
    gap: 6px;
}
.tsearch--v2 .ts2-vsort .mz-select .mz-select__trigger {
    height: 26px;
    min-height: 0;
    line-height: 26px;
    font-size: 12px;
}

/* ---------- Главная страница: форма поиска в обновлённом виде ----------
   include/search/index_search_new: <x-tour-search design="v2" action="/findtour"> во вкладке
   «Поиск туров». Здесь только форма — белая карточка с полями, «Найти туры» и быстрыми кнопками;
   поиск идёт на /findtour. Серой подложки страницы поиска, колонки фильтров и выдачи нет:
   карточка лежит прямо на картинке шапки главной. */
.tsearch--v2[data-action] {
    display: block;
    max-width: none;
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
}
.tsearch--v2[data-action] .tsearch__form {
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.tsearch--v2[data-action] .ts2-shell {
    margin-bottom: 0;
    box-shadow: 0 14px 40px rgba(20, 40, 80, .18);
}
.tsearch--v2[data-action] .tsearch__more,
.tsearch--v2[data-action] .tsearch__out {
    display: none;
}

/* ---------- Телефон: поле «Цена, рейтинг, класс отеля» и окно к нему (18.11.2026) ----------
   tour-search.js, initQuickSheet. На компьютере поля нет — эти фильтры в колонке слева. */
.ts2-qf {
    display: none;
}
.ts2-qf__btn.has-value {
    color: var(--ts-text, #282828);
    font-weight: 600;
}
.ts2-qf__btn:not(.has-value) {
    color: var(--ts-muted, #667085);
}
@media (max-width: 760px) {
    .ts2-qf {
        display: block;
    }
}

.ts2-sheet {
    --ts-accent: #f7931e;
    --ts-line: #dce4e5;
    --ts-text: #282828;
    --ts-muted: #667085;
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: flex-end;
    background: rgba(20, 24, 28, .45);
}
.ts2-sheet[hidden] {
    display: none;
}
html.ts2-sheet-open,
html.ts2-sheet-open body {
    overflow: hidden;
}
.ts2-sheet__box {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 92vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 32px rgba(40, 40, 40, .18);
    animation: ts2-sheet-up .2s ease-out;
}
@keyframes ts2-sheet-up {
    from { transform: translateY(40px); opacity: .4; }
    to { transform: none; opacity: 1; }
}
.ts2-sheet__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--ts-line);
}
.ts2-sheet__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--ts-text);
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}
.ts2-sheet__title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: var(--ts-text);
}
.ts2-sheet__done {
    padding: 6px 4px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--ts-accent);
    background: transparent;
    border: 0;
    cursor: pointer;
}
.ts2-sheet__body {
    flex: 1;
    overflow-y: auto;
    padding: 4px 16px 8px;
}
.ts2-sheet__sec {
    padding: 16px 0;
    border-bottom: 1px solid var(--ts-line);
}
.ts2-sheet__sec:last-child {
    border-bottom: 0;
}
.ts2-sheet__sec h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ts-text);
}
.ts2-sheet__hint {
    margin: -6px 0 10px;
    font-size: 13px;
    color: var(--ts-muted);
}
.ts2-sheet__price {
    height: 44px;
}
.ts2-sheet__price input {
    font-size: 16px; /* меньше 16px — iOS увеличивает страницу при вводе */
}
.ts2-sheet__chips {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}
.ts2-sheet__chip {
    height: 44px;
    padding: 0 4px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--ts-text);
    background: #f2f4f5;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.ts2-sheet__chip.is-on {
    color: #fff;
    background: var(--ts-accent);
}
.ts2-sheet__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--ts-line);
}
.ts2-sheet__apply {
    flex: 1;
    max-width: 220px;
    height: 48px;
}

/* Ползунок цены с двумя бегунками (окно фильтров на телефоне, 18.11.2026): два input[type=range]
   друг на друге, полоса между бегунками — .ts2-range__fill. Нажимаются только бегунки. */
.ts2-range__value {
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ts-text);
}
.ts2-range__track {
    position: relative;
    height: 28px;
    margin: 0 12px;
}
.ts2-range__track::before,
.ts2-range__fill {
    content: "";
    position: absolute;
    top: 12px;
    height: 4px;
    border-radius: 2px;
}
.ts2-range__track::before {
    left: 0;
    right: 0;
    background: var(--ts-line);
}
.ts2-range__fill {
    background: var(--ts-accent);
}
.ts2-range__track input[type=range] {
    position: absolute;
    left: -12px;
    width: calc(100% + 24px);
    top: 0;
    height: 28px;
    margin: 0;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}
.ts2-range__track input[type=range]::-webkit-slider-runnable-track {
    background: transparent;
}
.ts2-range__track input[type=range]::-moz-range-track {
    background: transparent;
}
.ts2-range__track input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border: 1px solid var(--ts-line);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(40, 40, 40, .25);
    pointer-events: auto;
    cursor: pointer;
}
.ts2-range__track input[type=range]::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border: 1px solid var(--ts-line);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(40, 40, 40, .25);
    pointer-events: auto;
    cursor: pointer;
}

/* ---------- «Туроператоры» (только сотрудникам): панель под строкой над выдачей ----------
   tour-search.js, renderOperators. Как в модуле Tourvisor PRO: туроператоры с турами и ценой «от»,
   «Туров нет», «Не отвечает». */
.tsearch--v2 .ts2-ops-btn.is-active {
    background: var(--ts-accent, #f7931e);
    border-color: var(--ts-accent, #f7931e);
    color: #fff;
}
.tsearch--v2 .ts2-ops {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 28px;
    margin: -4px 0 16px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--ts-line);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(16, 38, 44, .08);
}
.tsearch--v2 .ts2-ops[hidden] { display: none; }
.tsearch--v2 .ts2-ops__col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tsearch--v2 .ts2-ops__head {
    padding-bottom: 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--ts-line);
    font-weight: 600;
}
.tsearch--v2 .ts2-ops__col--none .ts2-ops__head::before { content: '✕ '; color: #d9534f; }
.tsearch--v2 .ts2-ops__col--wait .ts2-ops__head::before { content: '↻ '; color: #2f8fd8; }
.tsearch--v2 .ts2-ops__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tsearch--v2 .ts2-ops__check { display: inline-flex; align-items: center; gap: 8px; min-width: 0; cursor: pointer; }
.tsearch--v2 .ts2-ops__check input { width: 16px; height: 16px; flex: none; accent-color: var(--ts-accent, #f7931e); }
.tsearch--v2 .ts2-ops__check span { overflow-wrap: anywhere; }
.tsearch--v2 .ts2-ops__price {
    flex: none;
    padding: 0;
    background: none;
    border: 0;
    color: #1f6fb2;
    font: inherit;
    font-size: 14px;
    text-decoration: underline dotted;
    cursor: pointer;
    white-space: nowrap;
}
.tsearch--v2 .ts2-ops__price:hover { text-decoration-style: solid; }
.tsearch--v2 .ts2-ops__name { color: var(--ts-muted); overflow-wrap: anywhere; }
.tsearch--v2 .ts2-ops__empty { margin: 0; color: var(--ts-muted); }
.tsearch--v2 .ts2-ops__close {
    align-self: flex-end;
    margin-top: auto;
    padding: 8px 14px;
    background: #f1f4f5;
    border: 0;
    border-radius: 8px;
    color: var(--ts-muted);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}
@media (max-width: 767px) {
    .tsearch--v2 .ts2-ops { grid-template-columns: 1fr; padding: 14px 16px; }
}

/* ---------- «Об отеле», «Отзывы», «Карта» в карточке (hotel-info.js) ---------- */
.tsearch--v2 .ts2-hbtns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.tsearch--v2 .ts2-hbtn {
    padding: 7px 14px;
    background: #f1f4f5;
    border: 0;
    border-radius: 999px;
    color: #33464b;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.tsearch--v2 .ts2-hbtn:hover { background: #e4eaec; }
.tsearch--v2 .ts2-hbtn.is-active { background: #33464b; color: #fff; }
.tsearch--v2 .ts2-hpanel { padding: 16px 20px 18px; border-top: 1px dashed var(--ts-line); }
.tsearch--v2 .ts2-hpanel[hidden] { display: none; }
.tsearch--v2 .ts2-hpanel__facts {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px 18px;
    margin: 0;
    font-size: 14px;
}
.tsearch--v2 .ts2-hpanel__facts dt { color: var(--ts-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; padding-top: 2px; }
.tsearch--v2 .ts2-hpanel__facts dd { margin: 0; }
.tsearch--v2 .ts2-hpanel__note { padding: 14px 16px; background: #fff7e8; border-radius: 10px; color: #5f4318; font-size: 14px; }
.tsearch--v2 .ts2-hpanel__note p { margin: 4px 0 0; }
.tsearch--v2 .ts2-hpanel__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tsearch--v2 .ts2-hpanel__link {
    padding: 7px 14px;
    border: 0;
    font: inherit;
    cursor: pointer;
    background: #f1f4f5;
    border-radius: 999px;
    color: #33464b;
    font-size: 13px;
    text-decoration: none;
}
.tsearch--v2 .ts2-hpanel__link:hover { background: #e4eaec; }
.tsearch--v2 .ts2-hpanel__muted { margin: 0; color: var(--ts-muted); font-size: 14px; }
.tsearch--v2 .ts2-hpanel__map { height: 360px; border-radius: 12px; overflow: hidden; background: #eef2f3; }
@media (max-width: 767px) {
    .tsearch--v2 .ts2-hpanel { padding: 14px 14px 16px; }
    .tsearch--v2 .ts2-hpanel__facts { grid-template-columns: 1fr; gap: 2px; }
    .tsearch--v2 .ts2-hpanel__facts dd { margin-bottom: 8px; }
    .tsearch--v2 .ts2-hpanel__map { height: 280px; }
}

/* окно «Отзывы» из карточки — само окно и крестик; содержимое — общий блок (css/hotel-reviews.css) */
.ts2-rv-open { overflow: hidden; }
.ts2-rv {
    position: fixed;
    inset: 0;
    width: min(1040px, calc(100vw - 32px));
    height: calc(100vh - 48px);
    max-height: 860px;
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: #1f2d31;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.ts2-rv::backdrop { background: rgba(16, 28, 32, .55); }
.ts2-rv__box { position: relative; height: 100%; padding: 28px; box-sizing: border-box; }
.ts2-rv__body { height: 100%; }
.ts2-rv__body .hrv__top { padding-right: 44px; } /* шапка не заезжает под крестик */
.ts2-rv__close {
    position: absolute;
    z-index: 5;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1f4f5;
    color: #33464b;
    font-size: 15px;
    cursor: pointer;
}
@media (max-width: 767px) {
    .ts2-rv { width: 100vw; max-height: none; height: 100vh; border-radius: 0; }
    .ts2-rv__box { padding: 20px 16px; overflow-y: auto; }
    .ts2-rv__body { height: auto; }
}
}

/* «Номера» (только сотрудникам) — варианты по типу номера */
.tsearch--v2 .ts2-rooms { display: flex; flex-direction: column; gap: 8px; }
.tsearch--v2 .ts2-rooms__item { background: #f4f7f7; border-radius: 12px; }
.tsearch--v2 .ts2-rooms__row { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 16px; }
.tsearch--v2 .ts2-rooms__info { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; flex: 1; }
.tsearch--v2 .ts2-rooms__info small { color: var(--ts-muted); font-size: 13px; cursor: pointer; }
.tsearch--v2 .ts2-rooms__name {
    padding: 0;
    border: 0;
    background: none;
    color: #1f2d31;
    font: inherit;
    font-weight: 700;
    text-align: left;
    text-decoration: underline dashed #9fb0b3;
    text-underline-offset: 3px;
    cursor: pointer;
}
.tsearch--v2 .ts2-rooms__price {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 8px 12px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #1f2d31;
    font: inherit;
    cursor: pointer;
    white-space: nowrap;
}
.tsearch--v2 .ts2-rooms__price small { color: var(--ts-muted); font-size: 12px; }
.tsearch--v2 .ts2-rooms__price strong { font-size: 16px; }
.tsearch--v2 .ts2-rooms__price:hover { background: #fdf1e2; }
.tsearch--v2 .ts2-rooms__toggle {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: none;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}
/* стрелка — по центру круга: вниз (свёрнуто) и вверх (раскрыто) */
.tsearch--v2 .ts2-rooms__toggle::before {
    content: '';
    width: 8px;
    height: 8px;
    margin-bottom: 4px;
    border-right: 2px solid #33464b;
    border-bottom: 2px solid #33464b;
    transform: rotate(45deg);
}
.tsearch--v2 .ts2-rooms__row.is-open .ts2-rooms__toggle::before { margin: 4px 0 0; transform: rotate(-135deg); }
/* туры раскрытого номера — цены под ценой «от» строки номера (справа отступ под стрелку) */
.tsearch--v2 .ts2-rooms__tours { padding-right: 62px !important; padding-left: 94px !important; }
.tsearch--v2 .ts2-rooms__tours { margin: 0; padding: 0 14px 10px 16px; list-style: none; }
.tsearch--v2 .ts2-rooms__tours[hidden] { display: none; }
.tsearch--v2 .ts2-rooms__tour { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #e3e9ea; font-size: 14px; }
.tsearch--v2 .ts2-rooms__what { display: flex; flex-direction: column; min-width: 0; }
.tsearch--v2 .ts2-rooms__what span { color: var(--ts-muted); font-size: 13px; }
.tsearch--v2 .ts2-rooms__go {
    flex: none;
    padding: 6px 12px;
    border: 1px solid var(--ts-line);
    border-radius: 999px;
    background: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.tsearch--v2 .ts2-rooms__go:hover { border-color: var(--ts-accent, #f7931e); color: var(--ts-accent, #f7931e); }
.tsearch--v2 .ts2-rooms__pic { width: 64px; height: 48px; flex: none; overflow: hidden; border-radius: 8px; background: #e3e9ea; cursor: pointer; }
.tsearch--v2 .ts2-rooms__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tsearch--v2 .ts2-rooms__facts { color: #33464b; font-size: 13px; }
@media (max-width: 760px) {
    .tsearch--v2 .ts2-rooms__tours { padding-left: 16px !important; padding-right: 14px !important; }
    .tsearch--v2 .ts2-rooms__row { flex-wrap: wrap; }
}
