
/* ===================================================================

   TRAVEL CODE — страница поиска туров (redesign)

   Namespace .tc-*  |  изолирован от старого tl-*

   =================================================================== */



:root {

    --tc-primary: #FF6B00;

    --tc-navy: #081C33;

    --tc-bg: #F4F6FA;

    --tc-surface: #FFFFFF;

    --tc-radius: 20px;

    --tc-radius-lg: 28px;

}



/* ---- Каркас: sidebar 320 + content 1fr ---- */

.tc-search {

    max-width: 1400px;

    margin: 0 auto;

    padding: 40px 32px 80px;

}

.tc-search__layout {

    display: grid;

    grid-template-columns: 320px 1fr;

    gap: 32px;

    align-items: start;

}



/* ---- Sidebar (стекло, sticky) ---- */

.tc-sidebar {

    position: sticky;

    top: 100px;

    max-height: calc(100vh - 120px);

    display: flex;

    flex-direction: column;

    background: rgba(255,255,255,0.72);

    backdrop-filter: blur(24px);

    -webkit-backdrop-filter: blur(24px);

    border: 1px solid rgba(255,255,255,0.5);

    border-radius: var(--tc-radius-lg);

    box-shadow: 0 18px 50px rgba(8,28,51,0.10);

    overflow: hidden;

}

.tc-sidebar__scroll {

    overflow-y: auto;

    padding: 24px 22px 8px;

    flex: 1;

}

.tc-sidebar__footer {

    position: sticky;

    bottom: 0;

    padding: 16px 22px 20px;

    background: rgba(255,255,255,0.85);

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

    border-top: 1px solid rgba(8,28,51,0.08);

}



/* ---- Контент справа ---- */

.tc-results__head {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 24px;

    gap: 16px;

    flex-wrap: wrap;

}

.tc-results__count {

    font-size: 1.4rem;

    font-weight: 800;

    color: var(--tc-navy);

}



/* ---- Сетка карточек (3 в ряд, без blur) ---- */

.tc-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 24px;

}



/* ---- Mobile-кнопка фильтров (скрыта на десктопе) ---- */

.tc-mobile-filter-btn { display: none; }



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

@media (max-width: 1100px) {

    .tc-grid { grid-template-columns: repeat(2, 1fr); }

}

@media (max-width: 860px) {

    /* sidebar прячется, включается mobile-режим */

    .tc-search__layout { grid-template-columns: 1fr; }

    .tc-sidebar { display: none; }

    .tc-mobile-filter-btn { display: inline-flex; }

    .tc-grid { grid-template-columns: repeat(2, 1fr); }

}

@media (max-width: 560px) {

    .tc-search { padding: 24px 16px 60px; }

    .tc-grid { grid-template-columns: 1fr; }

}




/* ===== Фильтры внутри sidebar ===== */

.tc-filters { display: flex; flex-direction: column; height: 100%; }

.tc-filter { margin-bottom: 22px; }

.tc-filter__label {

    display: block;

    font-size: 0.9rem;

    font-weight: 700;

    color: var(--tc-navy);

    margin-bottom: 10px;

}

.tc-control {

    width: 100%;

    padding: 12px 14px;

    border: 1px solid rgba(8,28,51,0.14);

    border-radius: 12px;

    background: #fff;

    font-size: 0.92rem;

    color: var(--tc-navy);

    font-family: "Inter", sans-serif;

    transition: border-color 0.2s ease, box-shadow 0.2s ease;

    -webkit-appearance: none;

    appearance: none;

}

.tc-control:focus {

    outline: none;

    border-color: var(--tc-primary);

    box-shadow: 0 0 0 4px rgba(255,107,0,0.12);

}

select.tc-control {

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23081C33' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");

    background-repeat: no-repeat;

    background-position: right 14px center;

    padding-right: 38px;

}

.tc-budget { display: flex; align-items: center; gap: 8px; }

.tc-budget .tc-control { padding: 12px 10px; }

.tc-budget__dash { color: rgba(8,28,51,0.4); }



/* Чипы длительности */

.tc-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.tc-chip { position: relative; cursor: pointer; }

.tc-chip input { position: absolute; opacity: 0; pointer-events: none; }

.tc-chip span {

    display: inline-block;

    padding: 8px 14px;

    border: 1px solid rgba(8,28,51,0.14);

    border-radius: 999px;

    font-size: 0.85rem;

    color: var(--tc-navy);

    transition: all 0.18s ease;

}

.tc-chip input:checked + span {

    background: var(--tc-primary);

    border-color: var(--tc-primary);

    color: #fff;

    font-weight: 600;

}



/* Footer кнопки */

.tc-sidebar__footer { display: flex; gap: 10px; align-items: center; }

.tc-btn-primary {

    flex: 1;

    padding: 13px 16px;

    background: linear-gradient(135deg, #ff7a14, #FF6B00);

    color: #fff;

    border: none;

    border-radius: 12px;

    font-size: 0.92rem;

    font-weight: 700;

    cursor: pointer;

    text-align: center;

    text-decoration: none;

    box-shadow: 0 8px 22px rgba(255,107,0,0.32);

    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;

}

.tc-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255,107,0,0.42); filter: brightness(1.05); }

.tc-btn-reset {

    padding: 13px 16px;

    color: var(--tc-navy);

    font-size: 0.88rem;

    font-weight: 600;

    text-decoration: none;

    border-radius: 12px;

    transition: background 0.2s ease;

}

.tc-btn-reset:hover { background: rgba(8,28,51,0.06); }



/* ===== Сортировка ===== */

.tc-results__sort { display: flex; align-items: center; gap: 10px; }

.tc-results__sort label { font-size: 0.85rem; color: rgba(8,28,51,0.6); }

.tc-control--sort { width: auto; min-width: 180px; }



/* ===== Карточка (без blur, hover-подъём) ===== */

.tc-card {

    position: relative;

    background: #fff;

    border-radius: var(--tc-radius);

    overflow: hidden;

    box-shadow: 0 6px 20px rgba(8,28,51,0.08);

    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease;

}

.tc-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(8,28,51,0.16); }

.tc-card__img-wrap { display: block; overflow: hidden; }

.tc-card__img {

    height: 220px;

    background-size: cover;

    background-position: center;

    transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);

}

.tc-card:hover .tc-card__img { transform: scale(1.06); }

.tc-card__days {

    position: absolute; top: 14px; left: 14px; z-index: 2;

    background: rgba(8,28,51,0.7); backdrop-filter: blur(6px);

    color: #fff; padding: 5px 10px; border-radius: 999px;

    font-size: 0.78rem; display: inline-flex; align-items: center; gap: 4px;

}

.tc-card__wish {

    position: absolute; top: 12px; right: 12px; z-index: 2;

    width: 36px; height: 36px; border-radius: 50%;

    background: rgba(255,255,255,0.9); border: none; cursor: pointer;

    display: flex; align-items: center; justify-content: center;

    color: var(--tc-navy); transition: all 0.2s ease;

}

.tc-card__wish.active { background: var(--tc-primary); color: #fff; }

.tc-card__wish .lucide { width: 16px; height: 16px; }

.tc-card__body { padding: 18px; }

.tc-card__dest { font-size: 0.8rem; color: var(--tc-primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

.tc-card__name {

    display: block; font-size: 1.1rem; font-weight: 800;

    color: var(--tc-navy); margin: 6px 0 12px; text-decoration: none; line-height: 1.3;

}

.tc-card__name:hover { color: var(--tc-primary); }

.tc-card__meta { display: flex; gap: 16px; font-size: 0.83rem; color: rgba(8,28,51,0.6); margin-bottom: 14px; }

.tc-card__meta span { display: inline-flex; align-items: center; gap: 5px; }

.tc-card__footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid rgba(8,28,51,0.08); }

.tc-card__price-from { font-size: 0.78rem; color: rgba(8,28,51,0.5); }

.tc-card__price-val { font-size: 1.2rem; font-weight: 900; color: var(--tc-navy); }

.tc-card__cta { font-size: 0.88rem; font-weight: 700; color: var(--tc-primary); text-decoration: none; }



/* ===== Empty / Pagination ===== */

.tc-empty { grid-column: 1/-1; text-align: center; padding: 60px 20px; color: rgba(8,28,51,0.6); }

.tc-empty__icon { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--tc-primary); }

.tc-empty h3 { color: var(--tc-navy); margin-bottom: 8px; }

.tc-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }

.tc-page-btn {

    min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;

    border-radius: 12px; background: #fff; color: var(--tc-navy); text-decoration: none;

    box-shadow: 0 4px 12px rgba(8,28,51,0.08); transition: all 0.2s ease; padding: 0 8px;

}

.tc-page-btn:hover { background: rgba(255,107,0,0.08); }

.tc-page-btn.active { background: var(--tc-primary); color: #fff; }



/* ===== Mobile filter button ===== */

.tc-mobile-filter-btn {

    align-items: center; gap: 8px;

    padding: 12px 20px; margin-bottom: 20px;

    background: var(--tc-navy); color: #fff; border: none;

    border-radius: 14px; font-size: 0.95rem; font-weight: 700; cursor: pointer;

    box-shadow: 0 8px 22px rgba(8,28,51,0.2);

}




/* ===== Mobile Bottom Sheet ===== */

.tc-sheet-overlay {

    position: fixed; inset: 0; z-index: 4000;

    background: rgba(8,28,51,0.5);

    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);

    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;

}

.tc-sheet-overlay.is-open { opacity: 1; visibility: visible; }

.tc-sheet {

    position: fixed; left: 0; right: 0; bottom: 0; z-index: 4001;

    height: 88dvh; max-height: 88dvh;

    background: rgba(255,255,255,0.96);

    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);

    border-radius: 24px 24px 0 0;

    display: flex; flex-direction: column;

    transform: translateY(100%);

    transition: transform 0.42s cubic-bezier(0.32,0.72,0,1);

    box-shadow: 0 -10px 50px rgba(8,28,51,0.25);

}

.tc-sheet.is-open { transform: translateY(0); }

.tc-sheet__handle {

    width: 44px; height: 5px; border-radius: 999px;

    background: rgba(8,28,51,0.18); margin: 12px auto 4px;

}

.tc-sheet__head {

    display: flex; align-items: center; justify-content: space-between;

    padding: 8px 22px 14px; font-size: 1.15rem; font-weight: 800; color: var(--tc-navy);

    border-bottom: 1px solid rgba(8,28,51,0.08);

}

.tc-sheet__close {

    background: none; border: none; font-size: 30px; line-height: 1;

    color: rgba(8,28,51,0.5); cursor: pointer; padding: 0 4px;

}

.tc-sheet__body {

    flex: 1; overflow-y: auto; padding: 20px 22px;

    display: flex; flex-direction: column;

}

/* в sheet форма растягивается, футер прилипает снизу внутри потока (клавиатура не перекроет) */

.tc-sheet__body .tc-sidebar__scroll { padding: 0; overflow: visible; flex: 1; }

.tc-sheet__body .tc-sidebar__footer {

    position: sticky; bottom: 0; margin: 0 -22px -20px; padding: 16px 22px;

    background: rgba(255,255,255,0.95);

    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);

    border-top: 1px solid rgba(8,28,51,0.08);

}

@media (min-width: 861px) {

    .tc-sheet, .tc-sheet-overlay { display: none; }

}




/* ===================================================================

   PREMIUM INTRO (Фаза 9) — светлый верх вместо hero

   =================================================================== */

.tc-intro {

    position: relative;

    padding: 120px 24px 48px;

    background:

        radial-gradient(1200px 400px at 50% -10%, rgba(255,107,0,0.06), transparent 70%),

        linear-gradient(180deg, #fbfcfe 0%, #f4f6fa 100%);

    text-align: center;

    overflow: hidden;

}

.tc-intro__inner { max-width: 760px; margin: 0 auto; }

.tc-intro__brand {

    font-size: 0.8rem;

    font-weight: 800;

    letter-spacing: 0.32em;

    color: var(--tc-primary);

    margin-bottom: 22px;

    text-transform: uppercase;

}

.tc-intro__title {

    font-size: clamp(2rem, 5vw, 3.2rem);

    font-weight: 900;

    line-height: 1.08;

    letter-spacing: -0.02em;

    color: var(--tc-navy);

    margin: 0 0 18px;

}

.tc-intro__sub {

    font-size: 1.02rem;

    line-height: 1.6;

    color: rgba(8,28,51,0.6);

    max-width: 580px;

    margin: 0 auto 34px;

}



/* Поиск */

.tc-intro__search {

    display: flex;

    align-items: center;

    gap: 10px;

    max-width: 600px;

    margin: 0 auto 24px;

    padding: 8px 8px 8px 20px;

    background: rgba(255,255,255,0.85);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(8,28,51,0.1);

    border-radius: 999px;

    box-shadow: 0 12px 40px rgba(8,28,51,0.1);

    transition: box-shadow 0.25s ease, border-color 0.25s ease;

}

.tc-intro__search:focus-within {

    border-color: rgba(255,107,0,0.4);

    box-shadow: 0 16px 48px rgba(255,107,0,0.16);

}

.tc-intro__search .lucide { width: 20px; height: 20px; color: rgba(8,28,51,0.4); flex-shrink: 0; }

.tc-intro__search-input {

    flex: 1;

    border: none;

    background: transparent;

    font-size: 1rem;

    color: var(--tc-navy);

    outline: none;

    font-family: "Inter", sans-serif;

}

.tc-intro__search-btn {

    padding: 12px 28px;

    background: linear-gradient(135deg, #ff7a14, #FF6B00);

    color: #fff;

    border: none;

    border-radius: 999px;

    font-size: 0.95rem;

    font-weight: 700;

    cursor: pointer;

    flex-shrink: 0;

    box-shadow: 0 6px 18px rgba(255,107,0,0.32);

    transition: transform 0.2s ease, box-shadow 0.2s ease;

}

.tc-intro__search-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255,107,0,0.42); }



/* Чипы направлений */

.tc-intro__chips {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 10px;

    margin-bottom: 32px;

}

.tc-intro__chip {

    padding: 9px 18px;

    background: rgba(255,255,255,0.7);

    border: 1px solid rgba(8,28,51,0.12);

    border-radius: 999px;

    font-size: 0.9rem;

    font-weight: 600;

    color: var(--tc-navy);

    cursor: pointer;

    transition: all 0.18s ease;

}

.tc-intro__chip:hover {

    border-color: var(--tc-primary);

    color: var(--tc-primary);

    transform: translateY(-1px);

}

.tc-intro__chip.is-active {

    background: var(--tc-primary);

    border-color: var(--tc-primary);

    color: #fff;

}



/* Ряд статистики */

.tc-intro__stats {

    display: inline-flex;

    align-items: center;

    gap: 14px;

    flex-wrap: wrap;

    justify-content: center;

    padding: 12px 24px;

    background: rgba(255,255,255,0.6);

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255,255,255,0.6);

    border-radius: 16px;

}

.tc-intro__stat { display: flex; align-items: baseline; gap: 6px; }

.tc-intro__stat strong { font-size: 1.05rem; font-weight: 800; color: var(--tc-navy); }

.tc-intro__stat span { font-size: 0.85rem; color: rgba(8,28,51,0.55); }

.tc-intro__stat-sep { color: rgba(8,28,51,0.25); }



@media (max-width: 600px) {

    .tc-intro { padding: 48px 16px 36px; }

    .tc-intro__search { flex-wrap: wrap; border-radius: 20px; padding: 12px; }

    .tc-intro__search-input { width: 100%; padding: 6px 0; }

    .tc-intro__search-btn { width: 100%; }

    .tc-intro__stats { gap: 8px; padding: 10px 16px; }

}




/* Фикс шрифта intro — фирменный Inter (как .h-title) */

.tc-intro__title,

.tc-intro__brand,

.tc-intro__sub {

    font-family: "Inter", sans-serif !important;

}

.tc-intro__title { font-weight: 900 !important; }




/* ===== Бейдж заполненности на карточке ===== */

.tc-card__badge {

    position: absolute;

    top: 168px;

    left: 14px;

    z-index: 3;

    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 6px 12px;

    border-radius: 999px;

    font-size: 0.78rem;

    font-weight: 700;

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);

    box-shadow: 0 4px 14px rgba(8,28,51,0.18);

}

.tc-card__badge .lucide { width: 14px; height: 14px; }

.tc-card__badge--hot {

    background: linear-gradient(135deg, rgba(255,107,0,0.95), rgba(255,59,48,0.95));

    color: #fff;

}

.tc-card__badge--full {

    background: rgba(8,28,51,0.82);

    color: rgba(255,255,255,0.9);

}




.tc-card__badge--date {

    background: rgba(255,255,255,0.92);

    color: var(--tc-navy);

}




/* ===== Intro с фоновым фото ===== */

.tc-intro--photo {

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

}

.tc-intro__overlay {

    position: absolute;

    inset: 0;

    z-index: 1;

    background: linear-gradient(180deg, rgba(6,16,31,0.42) 0%, rgba(6,16,31,0.3) 50%, rgba(6,16,31,0.48) 100%);

}

.tc-intro--photo .tc-intro__inner {

    position: relative;

    z-index: 2;

}

/* светлый текст поверх фото */

.tc-intro--photo .tc-intro__brand { color: #fff; opacity: 0.95; }

.tc-intro--photo .tc-intro__title { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,0.35); }

.tc-intro--photo .tc-intro__sub { color: rgba(255,255,255,0.88); }

/* чипы стеклянные на тёмном фоне */

.tc-intro--photo .tc-intro__chip {

    background: rgba(255,255,255,0.16);

    border-color: rgba(255,255,255,0.3);

    color: #fff;

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);

}

.tc-intro--photo .tc-intro__chip:hover {

    background: rgba(255,255,255,0.28);

    border-color: #fff;

    color: #fff;

}

.tc-intro--photo .tc-intro__chip.is-active {

    background: var(--tc-primary);

    border-color: var(--tc-primary);

    color: #fff;

}

