/* ─── Tour Info Card (aside) ─── */
.tour-card {
    background: var(--clr-white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--clr-gray-brand-4);
}

.tour-card__image {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    display: block;
}

.tour-card__body {
    padding: 18px 16px 20px;
}

.tour-card__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--clr-black-brand);
    line-height: 1.4;
    margin-bottom: 14px;
}

.tour-card__params {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tour-card__param {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--clr-gray-brand-4);
}

.tour-card__param:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tour-card__param-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--clr-gray-brand-2);
}

.tour-card__param-value {
    font-size: 0.875rem;
    color: var(--clr-black-brand);
    font-weight: 500;
    line-height: 1.4;
}

.tour-card__price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--clr-brand);
}

.tour-card__btn {
    width: 100%;
}

/* ─── Tour Tabs ─── */
.tour-tabs__nav {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tour-tabs__nav::-webkit-scrollbar {
    display: none;
}

.tour-tabs__btn {
    flex-shrink: 0;
    padding: 10px 20px;
    background: var(--clr-bg-brand-3);
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--clr-gray-brand);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.tour-tabs__btn:hover {
    background: var(--clr-gray-brand-4);
    color: var(--clr-black-brand);
}

.tour-tabs__btn_active {
    background: var(--clr-brand);
    color: var(--clr-white);
    font-weight: 600;
}

.tour-tabs__btn_active:hover {
    background: var(--clr-brand);
    color: var(--clr-white);
}

.tour-tabs__pane {
    display: none;
}

.tour-tabs__pane_active {
    display: block;
}

/* ─── Intro ─── */
.tour-intro {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--clr-black-brand);
    margin: 0 0 28px;
}

/* ─── Item (day / hotel) — единый стиль ─── */
.tour-item {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--clr-gray-brand-4);
}

.tour-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tour-item__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--clr-brand);
    margin-bottom: 6px;
}

.tour-item__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--clr-black-brand);
    line-height: 1.35;
    margin: 0 0 4px;
}

.tour-item__sub {
    font-size: 0.8125rem;
    color: var(--clr-gray-brand-2);
    margin: 0 0 10px;
}

.tour-item__text {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--clr-black-brand);
    margin: 10px 0 0;
}

/* ─── Image grids ─── */
.tour-imgs {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.tour-imgs_2 {
    grid-template-columns: 1fr 1fr;
}

.tour-imgs_3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.tour-imgs img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.tour-imgs a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.tour-imgs a img {
    border-radius: 0;
    transition: transform 0.25s ease;
}

.tour-imgs a:hover img {
    transform: scale(1.04);
}

/* ─── Included ─── */
.tour-included {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tour-included li {
    padding: 8px 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tour-included li::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    background-color: var(--clr-brand);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: cover;
}

/* ─── Wider aside for tour page ─── */
@media screen and (min-width: 1260px) {
    .main__body_columns .main__aside {
        width: 280px;
    }
}

/* ─── Tabs: горизонтальная прокрутка ─── */
.tour-tabs__nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tour-tabs__nav::-webkit-scrollbar {
    display: none;
}

.tour-tabs__btn {
    flex-shrink: 0;
}

/* ─── Tour Facts (маршрут / длительность / стоимость) ─── */
.tour-facts {
    display: flex;
    background: var(--clr-bg-brand-3);
    border-radius: 12px;
    margin-bottom: 28px;
    overflow: hidden;
}

.tour-facts__item {
    flex: 1;
    padding: 14px 18px;
    border-right: 1px solid var(--clr-gray-brand-4);
}

.tour-facts__item:last-child {
    border-right: none;
}

.tour-facts__label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--clr-gray-brand-2);
    margin: 0 0 4px;
}

.tour-facts__value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--clr-black-brand);
    line-height: 1.35;
    margin: 0;
}

.tour-facts__value_price {
    color: var(--clr-brand);
    font-weight: 700;
}

/* ─── Tour Facts Table (второй вариант) ─── */
.tour-facts-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 28px;
    font-size: 0.9375rem;
}

.tour-facts-table tr {
    border-bottom: 1px solid var(--clr-gray-brand-4);
}

.tour-facts-table tr:last-child {
    border-bottom: none;
}

.tour-facts-table td {
    padding: 10px 0;
    vertical-align: top;
    line-height: 1.4;
}

.tour-facts-table td:first-child {
    width: 140px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--clr-gray-brand-2);
    padding-right: 20px;
    white-space: nowrap;
}

.tour-facts-table td:last-child {
    color: var(--clr-black-brand);
}

.tour-facts-table .tour-facts__value_price {
    font-weight: 700;
}

/* ─── Mobile / narrow ─── */
@media screen and (max-width: 767px) {
    .tour-tabs__nav {
        gap: 6px;
        margin-bottom: 20px;
    }

    .tour-tabs__btn {
        padding: 9px 14px;
        font-size: 0.875rem;
    }

    .tour-imgs_2,
    .tour-imgs_3 {
        display: flex;
        grid-template-columns: unset;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
    }

    .tour-imgs_2::-webkit-scrollbar,
    .tour-imgs_3::-webkit-scrollbar {
        display: none;
    }

    .tour-imgs_2 > *,
    .tour-imgs_3 > * {
        flex-shrink: 0;
        width: calc(100% - 28px);
        scroll-snap-align: start;
    }

    .tour-item {
        margin-bottom: 22px;
        padding-bottom: 22px;
    }

    .tour-item__title {
        font-size: 1rem;
    }

    .tour-intro {
        font-size: 0.9375rem;
    }

    .main__body_columns .main__aside {
        margin-top: 24px;
    }

    .tour-card {
        max-width: 420px;
        margin: 0 auto;
    }

    .tour-card__image {
        display: none;
    }

    .tour-facts {
        flex-direction: column;
    }

    .tour-facts__item {
        border-right: none;
        border-bottom: 1px solid var(--clr-gray-brand-4);
        padding: 12px 16px;
    }

    .tour-facts__item:last-child {
        border-bottom: none;
    }
}
