/* Раздел /tours. Карточка тура (T6) поверх product-page.css: те же
   компоненты карточки экскурсии, здесь только то, чего у нее нет.
   Mobile-first, токены из board/css/tokens.css. */

.tt-card { padding-bottom: var(--tp-7); }

/* Нижняя полоса брони на мобильном закреплена: место под нее держит body,
   иначе она закрывает подвал. Отступ под вырез экрана - safe-area. */
.tt-card-page .tp-sticky { padding-bottom: calc(var(--tp-3) + env(safe-area-inset-bottom)); }
@media (max-width: 991.98px) {
    body.tt-card-page { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}

.tt-daterow__unit { display: block; font-size: var(--tp-fs-xs); font-weight: 400; color: var(--tp-ink-muted); }

.tt-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--tp-2) var(--tp-3);
    margin: var(--tp-2) 0;
}

.tt-gallery { margin-bottom: var(--tp-4); }

.tt-route-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--tp-1);
    padding: var(--tp-1) var(--tp-3);
    border-radius: var(--tp-r-pill);
    background: var(--tp-surface-accent);
    color: var(--tp-ink);
    font-size: var(--tp-fs-sm);
}

/* Факты сеткой: подпись и значение */
.tt-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--tp-3);
    margin: 0 0 var(--tp-4);
    padding: var(--tp-4);
    border-radius: var(--tp-r-md);
    background: var(--tp-surface);
    box-shadow: var(--tp-ring);
}
.tt-fact dt { font-size: var(--tp-fs-xs); font-weight: 400; color: var(--tp-ink-muted); }
.tt-fact dd { margin: 0; font-weight: 600; }

/* Вкладки-якоря: обычные ссылки, без JS, липкие под шапкой. Полоса не шире
   контейнера (без отрицательных полей): лишние вкладки прокручиваются внутри
   нее, а не дают странице горизонтальную прокрутку на 320-390 px. */
.tt-tabs {
    position: sticky;
    top: 0;
    z-index: 5;
    max-width: 100%;
    margin: 0 0 var(--tp-5);
    padding: 0;
    background: var(--tp-surface);
    box-shadow: 0 1px 0 var(--tp-border);
    overflow-x: auto;
    scrollbar-width: none;
}
.tt-tabs ul { display: flex; gap: var(--tp-1); margin: 0; padding: 0; list-style: none; }
.tt-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 var(--tp-3);
    color: var(--tp-ink);
    white-space: nowrap;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.tt-tabs a:hover { border-bottom-color: var(--tp-border-strong); }
.tt-tabs a:focus-visible { outline: 2px solid var(--tp-link); outline-offset: -2px; }
.tt-section { scroll-margin-top: 56px; }

.tt-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--tp-5);
}

.tt-section { margin-bottom: var(--tp-6); }

/* Цена и даты */
.tt-booking { padding: var(--tp-4); }
.tt-booking .tp-booking__notes { margin: var(--tp-3) 0; padding: 0; }
.tt-booking__sub {
    margin: var(--tp-3) 0 var(--tp-2);
    font-size: var(--tp-fs-sm);
    font-weight: 600;
    color: var(--tp-ink-muted);
}
.tt-dates {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--tp-2);
    margin: 0 0 var(--tp-3);
    padding: 0;
    list-style: none;
}
.tt-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: var(--tp-2);
    border: 1px solid var(--tp-border-strong);
    border-radius: var(--tp-r-sm);
    background: var(--tp-surface);
    color: var(--tp-ink);
    font-size: var(--tp-fs-sm);
    line-height: 1.25;
}
.tt-date:hover { border-color: var(--tp-link); }
.tt-date:focus-visible { outline: 2px solid var(--tp-link); outline-offset: 2px; }
.tt-date__day { font-weight: 600; }
.tt-date__dow { font-size: var(--tp-fs-xs); color: var(--tp-ink-muted); }

.tt-booking__all { display: inline-block; margin-top: var(--tp-3); font-size: var(--tp-fs-sm); }
.tt-booking__guide {
    display: flex;
    align-items: center;
    gap: var(--tp-3);
    margin-top: var(--tp-4);
    padding-top: var(--tp-4);
    border-top: 1px solid var(--tp-border);
    color: var(--tp-ink);
    text-decoration: none;
}
.tt-booking__guide img,
.tt-booking__ava {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--tp-surface-accent);
    font-weight: 600;
}
.tt-booking__guide-name { display: block; font-weight: 600; }
.tt-booking__guide-role { display: block; font-size: var(--tp-fs-xs); color: var(--tp-ink-muted); }

/* Даты и цены строками */
.tt-daterows { margin: 0; padding: 0; list-style: none; }
.tt-daterow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--tp-2) var(--tp-3);
    padding: var(--tp-3) 0;
    border-bottom: 1px solid var(--tp-border);
}
.tt-daterow__date { font-weight: 600; }
.tt-daterow__len { display: block; font-size: var(--tp-fs-xs); font-weight: 400; color: var(--tp-ink-muted); }
.tt-daterow__price { color: var(--tp-price); font-weight: 600; text-align: right; }
.tt-daterow__book {
    grid-column: 1 / -1;
    min-height: 44px;
    padding: 0 var(--tp-4);
    border: 1px solid var(--tp-border-strong);
    border-radius: var(--tp-r-sm);
    background: var(--tp-surface);
    color: var(--tp-ink);
    font-weight: 600;
}
.tt-daterow__book:hover { border-color: var(--tp-link); }
.tt-daterow__book:focus-visible { outline: 2px solid var(--tp-link); outline-offset: 2px; }

/* Программа по дням */
.tt-program__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--tp-2); }
.tt-program__all {
    min-height: 44px;
    padding: 0 var(--tp-2);
    border: 0;
    background: none;
    color: var(--tp-link);
}
.tt-program__all:focus-visible { outline: 2px solid var(--tp-link); outline-offset: 2px; }
.tt-program { margin: 0; padding: 0; list-style: none; }
.tt-day {
    margin-bottom: var(--tp-3);
    border-radius: var(--tp-r-md);
    background: var(--tp-surface);
    box-shadow: var(--tp-ring), var(--tp-shadow-sm);
}
.tt-day__head { margin: 0; font-size: var(--tp-fs-md); }
.tt-day__toggle {
    display: flex;
    align-items: baseline;
    gap: var(--tp-2);
    width: 100%;
    min-height: 44px;
    padding: var(--tp-3) var(--tp-4);
    border: 0;
    background: none;
    color: var(--tp-ink);
    font-weight: 600;
    text-align: left;
}
.tt-day__toggle:focus-visible { outline: 2px solid var(--tp-link); outline-offset: -2px; border-radius: var(--tp-r-md); }
.tt-day__num { flex: none; color: var(--tp-link); }
/* Длинное слово названия дня («достопримечательности» на 320 px) переносится
   по слогам (html lang="ru"), а не рвется по букве, как от overflow-wrap: anywhere
   у кнопки карточки экскурсии. */
.tt-day__title { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.tt-day__toggle .bi { flex: none; transition: transform .2s; }
.tt-day__toggle[aria-expanded="true"] .bi { transform: rotate(180deg); }
.tt-day__body { padding: 0 var(--tp-4) var(--tp-4); }
.tt-day__body p { margin-bottom: var(--tp-3); }
.tt-day__photos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--tp-2);
    margin: 0;
    padding: 0;
    list-style: none;
}
.tt-day__photos img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--tp-r-sm);
}

/* Включено и не включено */
.tt-included { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--tp-4); }
.tt-included__col {
    padding: var(--tp-4);
    border-radius: var(--tp-r-md);
    background: var(--tp-surface);
    box-shadow: var(--tp-ring);
}
.tt-included__head { margin-bottom: var(--tp-2); font-size: var(--tp-fs-md); font-weight: 600; }
.tt-included__list { margin: 0; padding: 0; list-style: none; }
.tt-included__list li { display: flex; gap: var(--tp-2); margin-bottom: var(--tp-2); }
.tt-included__list .bi { flex: none; }
.tt-included__col--yes .bi { color: var(--tp-open); }
.tt-included__col--no .bi { color: var(--tp-ink-muted); }

/* Начало, финиш и карта по нажатию: место под карту зарезервировано */
.tt-route { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--tp-1) var(--tp-3); }
.tt-route dt { font-weight: 600; }
.tt-route dd { margin: 0; }
.tt-map #block-map { position: relative; }
.tt-map #yMap {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--tp-r-md);
    background: var(--tp-surface-accent);
    overflow: hidden;
}
.tt-map__load {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    min-height: 44px;
    padding: var(--tp-2) var(--tp-4);
    border: 1px solid var(--tp-border-strong);
    border-radius: var(--tp-r-pill);
    background: var(--tp-surface);
    color: var(--tp-ink);
    font-weight: 600;
}
.tt-map__load:focus-visible { outline: 2px solid var(--tp-link); outline-offset: 2px; }

/* Гид */
.tt-guide { display: flex; align-items: center; gap: var(--tp-3); }
.tt-guide__ava {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--tp-surface-accent);
    font-size: var(--tp-fs-xl);
    font-weight: 600;
}
.tt-guide__name { margin: 0; font-size: var(--tp-fs-lg); font-weight: 600; }
.tt-guide__meta { display: flex; flex-wrap: wrap; gap: var(--tp-2); margin: 0; color: var(--tp-ink-muted); }
.tt-guide__more { margin: var(--tp-4) 0 var(--tp-2); font-size: var(--tp-fs-md); font-weight: 600; }
.tt-guide__tours { margin: 0; padding-left: var(--tp-5); }
.tt-guide__tours li { margin-bottom: var(--tp-1); }

/* Перелинковка */
.tt-crosslinks ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--tp-2);
    margin: 0;
    padding: 0;
    list-style: none;
}
.tt-crosslinks a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: var(--tp-2) var(--tp-4);
    border-radius: var(--tp-r-pill);
    background: var(--tp-btn-soft);
    color: var(--tp-ink);
    text-decoration: none;
}
.tt-crosslinks a:hover { background: var(--tp-btn-soft-hover); }

@media (min-width: 640px) {
    .tt-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tt-daterow { grid-template-columns: minmax(0, 1fr) auto auto; }
    .tt-daterow__book { grid-column: auto; }
}

@media (min-width: 768px) {
    .tt-included { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tt-day__photos { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
    .tt-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
    .tt-aside { grid-column: 2; grid-row: 1; position: sticky; top: var(--tp-4); }
    .tt-main { grid-column: 1; grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .tt-day__toggle .bi { transition: none; }
}

/* ==========================================================================
   Листинги T1-T5. Компоненты фильтров (tp-check, tp-toggle, tp-range,
   tp-chip--removable, tp-pager, tp-listing__more) и карточка tp-product-card
   берутся из tokens.css, здесь раскладка, шторка и блоки раздела.
   Mobile-first: до 992px панель - шторка (только со скриптом, метка tt-js
   ставится в head до отрисовки, без сдвига), без скрипта панель стоит над списком.
   ========================================================================== */

.tt-listing { padding-bottom: var(--tp-7); }
.tt-h1 { margin: var(--tp-4) 0 var(--tp-2); font-size: var(--tp-fs-2xl); font-weight: 700; line-height: 1.2; }
.tt-lead { margin: 0 0 var(--tp-4); color: var(--tp-ink-muted); font-size: var(--tp-fs-md); }
/* Лид в синей полосе шапки: цвет текста шапки, как .tp-sh__lead (белый на #0a58ca). */
.tp-sh__head .tt-lead { color: var(--tp-sh-ink, #fff); }
.tt-listing .tt-section { margin: var(--tp-6) 0 0; }
.tt-section__title,
.tt-listing .tp-section__title { margin: 0 0 var(--tp-3); font-size: var(--tp-fs-xl); font-weight: 700; line-height: 1.25; }
.tt-item__price { color: var(--tp-price); font-weight: 700; }

/* --- Чипы тем --- */
.tt-themes { margin: 0 0 var(--tp-4); }
.tt-themes__title { margin: 0 0 var(--tp-2); font-size: var(--tp-fs-md); font-weight: 600; }
.tt-themes__list { display: flex; flex-wrap: wrap; gap: var(--tp-2); margin: 0; padding: 0; list-style: none; }
.tt-themes__chip {
    display: inline-flex;
    align-items: center;
    gap: var(--tp-2);
    min-height: 44px;
    padding: 0 var(--tp-4);
    border: 1px solid var(--tp-border-strong);
    border-radius: var(--tp-r-pill);
    background: var(--tp-surface);
    color: var(--tp-ink);
    font-size: var(--tp-fs-sm);
    text-decoration: none;
}
.tt-themes__chip:hover { background: var(--tp-surface-tint); }
.tt-themes__chip:focus-visible { outline: 2px solid var(--tp-link); outline-offset: 2px; }
.tt-themes__count { color: var(--tp-ink-muted); font-size: var(--tp-fs-xs); font-variant-numeric: tabular-nums; }

/* --- Раскладка панели и списка --- */
.tt-board { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--tp-4); }
.tt-results { min-width: 0; }

.tt-filters {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-r-md);
    background: var(--tp-surface);
}
.tt-filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tp-3);
    padding: var(--tp-3) var(--tp-4);
    border-bottom: 1px solid var(--tp-border);
}
.tt-filters__title { margin: 0; font-size: var(--tp-fs-lg); font-weight: 700; }
.tt-filters__close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: var(--tp-r-sm);
    background: var(--tp-surface-tint);
    color: var(--tp-ink);
}
.tt-filters__body { display: flex; flex-direction: column; gap: var(--tp-4); padding: var(--tp-4); }
.tt-filters__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--tp-3);
    padding: var(--tp-3) var(--tp-4);
    border-top: 1px solid var(--tp-border);
}
.tt-filters__foot .tp-filters__submit { min-height: 44px; }
.tt-filters__foot .tp-filters__submit[disabled] { opacity: .6; }

.tt-group { position: relative; min-width: 0; margin: 0; padding: 0; border: 0; }
.tt-group__legend {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--tp-2);
    float: none;
    width: 100%;
    margin-bottom: var(--tp-3);
    font-size: var(--tp-fs-md);
    font-weight: 700;
}
/* Сброс группы стоит вне legend (в legend ссылка попадала в имя группы), справа от заголовка */
.tt-group__legend:has(+ .tt-group__reset) { padding-right: 88px; }
.tt-group__reset { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; min-height: 24px; font-size: var(--tp-fs-sm); font-weight: 400; color: var(--tp-link); }
.tt-group__more {
    margin-top: var(--tp-2);
    padding: var(--tp-2) 0;
    border: 0;
    background: none;
    color: var(--tp-link);
    font-size: var(--tp-fs-sm);
}
.tt-group .tp-filters__list { gap: var(--tp-2); }
.tt-group .tp-check { min-height: 40px; align-items: center; }
.tt-group .tp-check__title { font-size: var(--tp-fs-sm); font-weight: 500; }
.tt-group .tp-toggle.is-empty input { cursor: not-allowed; }
.tt-check-link { color: inherit; text-decoration: none; }
.tt-check-link:hover .tp-check__title { text-decoration: underline; }
.tt-check-link:focus-visible { outline: 2px solid var(--tp-link); outline-offset: 2px; border-radius: 4px; }
.tt-range__cap { display: block; margin-bottom: var(--tp-1); color: var(--tp-ink-muted); font-size: var(--tp-fs-xs); }

.tt-search { position: relative; margin-bottom: var(--tp-3); }
.tt-search__icon { position: absolute; inset-block: 0; inset-inline-start: 12px; display: flex; align-items: center; color: var(--tp-ink-muted); }
.tt-search__input {
    width: 100%;
    min-height: 44px;
    padding: 0 var(--tp-3) 0 36px;
    border: 1px solid var(--tp-border-strong);
    border-radius: var(--tp-r-sm);
}
.tt-search__input:focus-visible { outline: 2px solid var(--tp-link); outline-offset: 1px; }
.tt-cities { max-height: 320px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }

/* Переключатель: вся строка активна, фокус на дорожке */
.tt-switch {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tp-3);
    min-height: 44px;
    cursor: pointer;
}
.tt-switch__text { font-size: var(--tp-fs-sm); font-weight: 500; }
.tt-switch__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tt-switch__track {
    position: relative;
    flex: none;
    width: 40px;
    height: 24px;
    border-radius: var(--tp-r-pill);
    background: var(--tp-border-strong);
    transition: background .15s;
}
.tt-switch__track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--tp-surface);
    box-shadow: var(--tp-shadow-sm);
    transition: transform .15s;
}
.tt-switch__input:checked + .tt-switch__track { background: var(--tp-link); }
.tt-switch__input:checked + .tt-switch__track::after { transform: translateX(16px); }
.tt-switch__input:focus-visible + .tt-switch__track { outline: 2px solid var(--tp-link); outline-offset: 2px; }
.tt-switch.is-empty { opacity: .45; cursor: not-allowed; }

/* --- Строка над списком --- */
.tt-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--tp-2) var(--tp-3); margin-bottom: var(--tp-3); }
.tt-total { margin: 0; color: var(--tp-ink-muted); font-size: var(--tp-fs-sm); font-variant-numeric: tabular-nums; }
.tt-filters-open { display: none; }
.tt-active { margin-bottom: var(--tp-3); min-height: 32px; }

.tt-sort { position: relative; margin-left: auto; }
.tt-sort__button {
    display: inline-flex;
    align-items: center;
    gap: var(--tp-1);
    min-height: 44px;
    padding: 0 var(--tp-3);
    border: 1px solid var(--tp-border-strong);
    border-radius: var(--tp-r-sm);
    background: var(--tp-surface);
    font-size: var(--tp-fs-sm);
    font-weight: 500;
    list-style: none;
    cursor: pointer;
    white-space: nowrap;
}
.tt-sort__button::-webkit-details-marker { display: none; }
.tt-sort__button:focus-visible { outline: 2px solid var(--tp-link); outline-offset: 2px; }
.tt-sort__cap { color: var(--tp-ink-muted); }
.tt-sort[open] .tt-sort__button .bi { transform: rotate(180deg); }
.tt-sort__menu {
    display: flex;
    flex-direction: column;
    gap: var(--tp-1);   /* строки меню не слипаются заливкой (R1) */
    position: absolute;
    right: 0;
    z-index: 20;
    min-width: 220px;
    margin: var(--tp-1) 0 0;
    padding: var(--tp-1);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-r-sm);
    background: var(--tp-surface);
    box-shadow: var(--tp-shadow-md);
    list-style: none;
}
.tt-sort__item {
    display: flex;
    align-items: center;
    gap: var(--tp-2);
    min-height: 44px;
    padding: 0 var(--tp-3);
    border-radius: 6px;
    color: var(--tp-ink);
    font-size: var(--tp-fs-sm);
    text-decoration: none;
}
/* Пункты сортировки - кнопки формы (ссылок на закрытые ?sort= нет): сброс вида кнопки. */
button.tt-sort__item { width: 100%; border: 0; background: none; font: inherit; font-size: var(--tp-fs-sm); text-align: left; cursor: pointer; }
button.tt-sort__item:hover { background: var(--tp-surface-tint); }
button.tt-sort__item:focus-visible { outline: 2px solid var(--tp-link); outline-offset: -2px; }
.tt-sort__item.is-active { font-weight: 600; }

/* --- Блоки ссылок (направления, страны, города старта) --- */

/* FAQ листинга: product-page.css здесь не подключен, у вопроса нет своей высоты (было 23 px) */
.tt-listing .tp-faq__q { display: flex; align-items: center; min-height: 44px; }
/* Вопрос в h3 внутри summary (извлекаемая пара вопрос-ответ): вид прежней подписи. */
.tt-listing .tp-faq__h { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }

/* Балл рейтинга числом: цвет текста, желтые только звезды (#ffc107 на белом 1.63:1) */
.tt-rating .ms-1 { color: var(--tp-ink); }

/* Похожие туры карточки: подписи из product-page.css (#8a949b, 3.09:1) темнее только в /tours */
.tt-card-page .sim__city,
.tt-card-page .sim__reviews { color: var(--tp-ink-muted); }
.tt-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(184px, 1fr));
    gap: var(--tp-2);
    margin: 0;
    padding: 0;
    list-style: none;
}
.tt-links__item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-height: 56px;
    height: 100%;
    padding: var(--tp-2) var(--tp-3);
    border: 1px solid var(--tp-border);
    border-radius: var(--tp-r-sm);
    background: var(--tp-surface);
    color: var(--tp-ink);
    text-decoration: none;
}
.tt-links__item:hover { border-color: var(--tp-border-strong); background: var(--tp-surface-tint); }
.tt-links__item:focus-visible { outline: 2px solid var(--tp-link); outline-offset: 2px; }
.tt-links__name { font-weight: 600; }
.tt-links__count { color: var(--tp-ink-muted); font-size: var(--tp-fs-xs); font-variant-numeric: tabular-nums; }

/* --- Когда ехать --- */
.tt-when__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--tp-2); margin: 0; padding: 0; list-style: none; }
.tt-when__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--tp-1);
    padding: var(--tp-2) var(--tp-1);
    border-radius: var(--tp-r-sm);
    color: var(--tp-ink);
    text-decoration: none;
}
/* Месяц с заездами - кнопка формы фильтров (months), а не ссылка на закрытый адрес. */
button.tt-when__cell { width: 100%; border: 0; background: none; font: inherit; cursor: pointer; }
button.tt-when__cell:hover { background: var(--tp-surface-tint); }
button.tt-when__cell:focus-visible { outline: 2px solid var(--tp-link); outline-offset: 2px; }
.tt-when__cell.is-empty { color: var(--tp-ink-muted); }
.tt-when__track { display: flex; align-items: flex-end; width: 100%; max-width: 40px; height: 80px; }
.tt-when__bar { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--tp-link); }
.tt-when__count { font-size: var(--tp-fs-xs); font-variant-numeric: tabular-nums; }
.tt-when__label { font-size: var(--tp-fs-sm); }

.tt-text { max-width: 760px; }
.tt-listing .tt-crosslinks { margin-top: var(--tp-6); }

/* --- Мобильная шторка (только со скриптом) --- */
.tt-backdrop { position: fixed; inset: 0; z-index: 1055; background: rgba(22, 35, 43, .5); }
.tt-backdrop[hidden] { display: none; }

@media (max-width: 991.98px) {
    .tt-js .tt-filters-open { display: inline-flex; }
    .tt-js .tt-filters {
        position: fixed;
        inset: 8vh 0 0 0;
        z-index: 1060;
        border-radius: var(--tp-r-lg) var(--tp-r-lg) 0 0;
        transform: translateY(100%);
        visibility: hidden;
        transition: transform .2s ease, visibility 0s linear .2s;
    }
    .tt-js .tt-filters.is-open { transform: none; visibility: visible; transition: transform .2s ease; }
    .tt-js .tt-filters__close { display: inline-flex; }
    .tt-js .tt-filters__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; }
    .tt-js .tt-filters__foot { padding-bottom: calc(var(--tp-3) + env(safe-area-inset-bottom)); }
    .tt-js .tt-filters__foot .tp-filters__submit { flex: 1 1 100%; order: -1; }
    .tt-filters .tp-toggle { min-height: 44px; }
    .tt-sort { margin-left: 0; }
    .tt-sort__menu { right: auto; left: 0; }
}

@media (min-width: 992px) {
    .tt-board { grid-template-columns: 280px minmax(0, 1fr); gap: var(--tp-5); align-items: start; }
    .tt-filters { position: sticky; top: var(--tp-3); max-height: calc(100vh - var(--tp-5)); }
    .tt-filters__body { overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
    .tt-filters__foot .tp-filters__submit { flex: 1 1 auto; }
    .tt-h1 { font-size: var(--tp-fs-3xl); }
}

@media (prefers-reduced-motion: reduce) {
    .tt-js .tt-filters, .tt-switch__track, .tt-switch__track::after { transition: none; }
}

/* Отзывы карточки: итог партнера одной строкой, ниже список последних выгруженных отзывов. */
.tt-reviews__total { margin: 0 0 var(--tp-3); font-weight: 600; }
.tt-reviews__title { margin: var(--tp-4) 0 var(--tp-3); font-size: var(--tp-fs-lg); font-weight: 600; }
