.tt-tours-slider-wrap {
    --tt-gap: 18px;
    --tt-radius: 18px;
    --tt-arrow-size: 54px;
    width: 100%;
    position: relative;
}


.tt-tours-term-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 34px;
}

.tt-tours-term-button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 14px 28px;
    background: #f1efec;
    color: #171717;
    font: inherit;
    font-size: 1rem;
    line-height: 1.1;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.tt-tours-term-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.tt-tours-term-button.is-active {
    background: #b61d23;
    color: #fff;
}

.tt-tours-term-button:focus-visible {
    outline: 3px solid #b61d23;
    outline-offset: 3px;
}

.tt-tour-card[hidden] {
    display: none !important;
}

.tt-tours-slider {
    position: relative;
    width: 100%;
}

.tt-tours-track {
    display: flex;
    gap: var(--tt-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 0;
}

.tt-tours-track::-webkit-scrollbar {
    display: none;
}

.tt-tour-card {
    flex: 0 0 clamp(250px, 22vw, 315px);
    aspect-ratio: 4 / 5;
    min-width: 0;
    scroll-snap-align: start;
}

.tt-tour-card-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--tt-radius);
    background: #1b1b1b;
    color: #fff;
    text-decoration: none;
    isolation: isolate;
}

.tt-tour-card-image,
.tt-tour-card-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
}

.tt-tour-card-placeholder {
    background: linear-gradient(135deg, #555, #202020);
}

.tt-tour-card-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0,0,0,.02) 30%, rgba(0,0,0,.22) 58%, rgba(0,0,0,.84) 100%);
}

.tt-tour-card-content {
    position: absolute;
    z-index: 2;
    inset: auto 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 45%;
    padding: 22px 20px 18px;
}

.tt-tour-card-title {
    display: block;
    max-width: 95%;
    margin-bottom: 18px;
    font-size: clamp(1.18rem, 1.45vw, 1.55rem);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.tt-tour-card-meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    font-size: .98rem;
    line-height: 1.2;
    font-weight: 600;
}

.tt-tour-duration:empty,
.tt-tour-price:empty {
    display: none;
}

.tt-tour-price {
    margin-left: auto;
    text-align: right;
    white-space: nowrap;
}

.tt-tour-card-link:hover .tt-tour-card-image,
.tt-tour-card-link:focus-visible .tt-tour-card-image {
    transform: scale(1.035);
}

.tt-tour-card-link:focus-visible,
.tt-tours-arrow:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.tt-tours-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: var(--tt-arrow-size);
    height: var(--tt-arrow-size);
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.96);
    color: #b61d23;
    box-shadow: 0 5px 18px rgba(0,0,0,.18);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.tt-tours-arrow:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 7px 22px rgba(0,0,0,.23);
}

.tt-tours-arrow-prev {
    left: calc(var(--tt-arrow-size) / -2);
}

.tt-tours-arrow-next {
    right: calc(var(--tt-arrow-size) / -2);
}

.tt-tours-arrow[disabled] {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 1200px) {
    .tt-tour-card {
        flex-basis: clamp(240px, 28vw, 300px);
    }

    .tt-tours-arrow-prev { left: 8px; }
    .tt-tours-arrow-next { right: 8px; }
}

@media (max-width: 767px) {
    .tt-tours-term-nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 10px;
        margin-bottom: 24px;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 2px 0 4px;
    }

    .tt-tours-term-nav::-webkit-scrollbar {
        display: none;
    }

    .tt-tours-term-button {
        flex: 0 0 auto;
        padding: 12px 20px;
        font-size: .95rem;
    }

    .tt-tours-slider-wrap {
        --tt-gap: 14px;
        --tt-radius: 16px;
        --tt-arrow-size: 50px;
    }

    .tt-tour-card {
        /* approx. 1.5 cards visible */
        flex-basis: calc((100vw - 42px) / 1.5);
        max-width: 300px;
        min-width: 225px;
        aspect-ratio: 4 / 5.35;
    }

    .tt-tour-card-content {
        padding: 20px 18px 17px;
    }

    .tt-tour-card-title {
        font-size: clamp(1.2rem, 6vw, 1.45rem);
        margin-bottom: 22px;
    }

    .tt-tour-card-meta {
        font-size: .95rem;
    }

    .tt-tours-arrow-prev {
        display: none;
    }

    .tt-tours-arrow-next {
        right: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tt-tours-track { scroll-behavior: auto; }
    .tt-tour-card-image,
    .tt-tours-arrow { transition: none; }
}
