:root {
    --sessions-green: #004d43;
    --sessions-green-dark: #003e37;
    --sessions-gold: #a58d65;
    --sessions-cream: #f6f3ef;
    --sessions-beige: #eee9e1;
    --sessions-white: #fff;
    --sessions-graphite: #22201d;
    --sessions-muted: #686159;
}

.bn1-sessions-v2 {
    overflow: clip;
    background: var(--sessions-white);
    color: var(--sessions-graphite);
}

.bn1-sessions-v2__preview-bar {
    position: sticky;
    z-index: 70;
    top: 0;
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 8px 18px;
    background: #9f3232;
    color: #fff;
    font: 500 11px/1.2 "Geologica", sans-serif;
    letter-spacing: .65px;
    text-transform: uppercase;
}

.bn1-sessions-v2__shell {
    width: min(1280px, calc(100% - 48px));
    margin-inline: auto;
}

.bn1-sessions-v2__hero {
    padding: 92px 0;
    background: var(--sessions-cream);
}

.bn1-sessions-v2__hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    gap: 64px;
    align-items: center;
}

.bn1-sessions-v2__hero-copy { min-width: 0; }

.bn1-sessions-v2__eyebrow {
    margin: 0 0 18px;
    color: var(--sessions-gold);
}

.bn1-sessions-v2__hero-title {
    position: relative;
    margin: 0;
    padding-left: 18px;
    color: var(--sessions-graphite);
    font-family: "Jeferson", "Geologica", sans-serif;
    font-size: clamp(48px, 5.4vw, 78px);
    font-weight: 400;
    line-height: .95;
    letter-spacing: .2px;
    text-transform: uppercase;
}

.bn1-sessions-v2__hero-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .08em;
    bottom: .08em;
    width: 1px;
    background: var(--sessions-gold);
}

.bn1-sessions-v2__hero-text {
    max-width: 650px;
    margin-top: 30px;
    color: var(--sessions-graphite);
    font-size: 16px;
    line-height: 1.65;
}

.bn1-sessions-v2__hero-text p { margin: 0; }
.bn1-sessions-v2__hero-text p + p { margin-top: 16px; }

.bn1-sessions-v2__jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

/* Keep jump targets clear of the viewport edge when opened from the hero. */
#tubs-product-block-public,
#tubs-product-block-private,
.bn1-sessions-v2__section {
    scroll-margin-top: 24px;
}

.bn1-sessions-v2__hero-media {
    min-height: 540px;
    overflow: hidden;
    border-radius: 24px;
    background: #ddd4c6;
}

.bn1-sessions-v2__hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 540px;
    object-fit: cover;
}

.bn1-sessions-v2__section {
    padding: 96px 0;
    scroll-margin-top: 48px;
}

.bn1-sessions-v2__section--public { background: #fff; }
.bn1-sessions-v2__section--private { background: var(--sessions-cream); }

.bn1-sessions-v2__heading {
    max-width: 940px;
    margin-bottom: 38px;
}

.bn1-sessions-v2__heading .heading__text-holder {
    max-width: 760px;
}

.bn1-sessions-v2__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 26px;
}

.bn1-sessions-v2__filter {
    appearance: none;
    min-height: 38px;
    padding: 9px 15px;
    border: 1px solid rgba(0, 77, 67, .28);
    border-radius: 999px;
    background: transparent;
    color: var(--sessions-green);
    font: 500 11px/1.2 "Geologica", sans-serif;
    letter-spacing: .3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.bn1-sessions-v2__filter:hover,
.bn1-sessions-v2__filter.is-active {
    border-color: var(--sessions-green);
    background: var(--sessions-green);
    color: #fff;
}

.bn1-sessions-v2__filter:focus-visible {
    outline: 3px solid rgba(0, 77, 67, .22);
    outline-offset: 2px;
}

.bn1-sessions-v2__filter--all { opacity: .72; }

.bn1-sessions-v2__library-wrap {
    width: 100%;
    min-width: 0;
}

/* The component itself comes from Banya Card Library v1.4.0. Do not recreate
   its card CSS here: Shadow DOM keeps the approved card design isolated. */
.bn1-sessions-v2__library-rail {
    display: block;
    width: 100%;
    min-width: 0;
}

/* Only host-level integration hooks. Card internals remain exactly the library design. */
.bn1-sessions-v2__library-rail::part(track) {
    padding-bottom: 12px;
}

.bn1-sessions-v2__library-rail::part(navigation) {
    display: none;
}

.bn1-sessions-v2__controls {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    width: 100%;
    min-height: 44px;
    margin-top: 10px;
}

.bn1-sessions-v2__controls[hidden] {
    display: none;
}

.bn1-sessions-v2__control {
    appearance: none;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0 0 4px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--sessions-green);
    font: 400 34px/1 "Geologica", sans-serif;
    cursor: pointer;
    transition: opacity .18s ease, background-color .18s ease, transform .18s ease;
}

.bn1-sessions-v2__control--prev { justify-self: start; }
.bn1-sessions-v2__control--next { justify-self: end; }

.bn1-sessions-v2__control:hover:not(:disabled) {
    background: rgba(0, 77, 67, .06);
    transform: scale(1.04);
}

.bn1-sessions-v2__control:disabled {
    opacity: .25;
    cursor: default;
}

.bn1-sessions-v2__control:focus-visible {
    outline: 2px solid rgba(0, 77, 67, .34);
    outline-offset: 2px;
}

.bn1-sessions-v2__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 18px;
}

.bn1-sessions-v2__pagination[hidden] {
    visibility: hidden;
}

.bn1-sessions-v2__page-line {
    appearance: none;
    width: 24px;
    height: 3px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 77, 67, .22);
    cursor: pointer;
    transition: width .18s ease, background-color .18s ease, opacity .18s ease;
}

.bn1-sessions-v2__page-line:hover {
    background: rgba(0, 77, 67, .42);
}

.bn1-sessions-v2__page-line.is-active {
    width: 38px;
    background: var(--sessions-green);
}

.bn1-sessions-v2__page-line:focus-visible {
    outline: 2px solid rgba(0, 77, 67, .34);
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    .bn1-sessions-v2__hero { padding: 76px 0; }
    .bn1-sessions-v2__hero-grid { grid-template-columns: 1fr 1fr; gap: 38px; }
    .bn1-sessions-v2__hero-media,
    .bn1-sessions-v2__hero-media img { min-height: 440px; }
    .bn1-sessions-v2__section { padding: 84px 0; }
}

@media (max-width: 767px) {
    .bn1-sessions-v2__preview-bar {
        gap: 8px;
        min-height: 34px;
        padding: 8px 10px;
        font-size: 9px;
        white-space: nowrap;
    }

    .bn1-sessions-v2__shell {
        width: calc(100% - 36px);
    }

    .bn1-sessions-v2__hero { padding: 56px 0 64px; }
    .bn1-sessions-v2__hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .bn1-sessions-v2__hero-title { font-size: clamp(40px, 12vw, 56px); }
    .bn1-sessions-v2__hero-text { font-size: 15px; }

    .bn1-sessions-v2__hero-media {
        min-height: 0;
        aspect-ratio: 4 / 3;
        border-radius: 18px;
    }

    .bn1-sessions-v2__hero-media img {
        min-height: 0;
        height: 100%;
    }

    .bn1-sessions-v2__jump-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .bn1-sessions-v2__jump-nav .button {
        width: 100%;
        justify-content: center;
        padding-left: 10px;
        padding-right: 10px;
    }

    .bn1-sessions-v2__section { padding: 64px 0; }
    .bn1-sessions-v2__heading { margin-bottom: 28px; }
    .bn1-sessions-v2__heading .heading__bottom { margin-top: 16px; }

    .bn1-sessions-v2__filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-inline: -18px;
        padding: 0 18px 7px;
        scrollbar-width: none;
    }

    .bn1-sessions-v2__filters::-webkit-scrollbar { display: none; }
    .bn1-sessions-v2__filter { flex: 0 0 auto; }
}

@media (max-width: 767px) {
    .bn1-sessions-v2__controls {
        grid-template-columns: 38px minmax(0, 1fr) 38px;
        min-height: 40px;
        margin-top: 8px;
    }

    .bn1-sessions-v2__control {
        width: 36px;
        height: 36px;
        font-size: 30px;
    }

    .bn1-sessions-v2__pagination {
        gap: 5px;
    }

    .bn1-sessions-v2__page-line {
        width: 18px;
    }

    .bn1-sessions-v2__page-line.is-active {
        width: 30px;
    }
}

/* TUBS product blocks on Banya Sessions V2 ---------------------------------
 * Keep the discovery filters intentionally simple: one active facet at a time,
 * no result-count footer, and the same horizontal card-rail/nav language used
 * by the Private booking flow.
 */
.bn1-sessions-v2 .tubs-product-facets__footer {
    display: none !important;
}

.bn1-sessions-v2 .tubs-product-rail {
    display: flex !important;
    grid-template-columns: none !important;
    width: 100%;
    min-width: 0;
    gap: 20px;
    overflow-x: auto !important;
    overflow-y: hidden;
    padding: 0 0 10px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--Banya-Brown-300, #bdaf95) var(--Banya-Brown-100, #e4dccf);
    transition: opacity .14s ease, transform .14s ease;
}

/* Same compact horizontal scrollbar language as the Private booking flow. */
html .bn1-sessions-v2 .tubs-product-rail::-webkit-scrollbar {
    display: block !important;
    width: auto;
    height: 7px !important;
}

html .bn1-sessions-v2 .tubs-product-rail::-webkit-scrollbar-track {
    border-radius: 999px;
    background: var(--Banya-Brown-100, #e4dccf);
}

html .bn1-sessions-v2 .tubs-product-rail::-webkit-scrollbar-thumb {
    border: 0;
    border-radius: 999px;
    background: var(--Banya-Brown-300, #bdaf95);
}

html .bn1-sessions-v2 .tubs-product-rail::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.bn1-sessions-v2 .tubs-product-rail.is-filter-transitioning {
    opacity: .36;
    transform: translateY(3px);
}

.bn1-sessions-v2 .tubs-product-rail.is-filter-revealing .tubs-product-rail__item:not([hidden]) {
    animation: bn1-tubs-filter-reveal .24s cubic-bezier(.2,.7,.2,1) both;
}

@keyframes bn1-tubs-filter-reveal {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.bn1-sessions-v2 .tubs-product-rail__item {
    display: block;
    min-width: 0;
    flex: 0 0 calc((100% - 40px) / 3);
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

.bn1-sessions-v2 .tubs-product-rail__item[hidden] {
    display: none !important;
}

.bn1-sessions-v2 .tubs-product-rail__item > banya-library-card {
    width: 100% !important;
    max-width: none !important;
}

/* Match the compact recommendation navigation used by the Private flow. */
.bn1-sessions-v2 .tubs-product-rail__nav {
    display: flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 10px;
}

.bn1-sessions-v2 .tubs-product-rail__nav[hidden] {
    display: none !important;
}

.bn1-sessions-v2 .tubs-product-rail__nav button {
    appearance: none;
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    padding: 0 0 2px;
    border: 1px solid var(--Banya-Brown-300, #bdaf95);
    border-radius: 50%;
    background: var(--Banya-Brown-100, #e4dccf);
    color: var(--Banya-Green-source, #003e37);
    font-family: "Geologica", sans-serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, opacity .18s ease;
}

.bn1-sessions-v2 .tubs-product-rail__nav button:hover:not(:disabled) {
    border-color: #a9997b;
    background: #d1c5b1;
}

.bn1-sessions-v2 .tubs-product-rail__nav button:disabled {
    opacity: .38;
    cursor: default;
}

.bn1-sessions-v2 .tubs-product-rail__nav button:focus-visible {
    outline: 2px solid rgba(0, 62, 55, .32);
    outline-offset: 2px;
}

.bn1-sessions-v2 .tubs-product-rail__position {
    min-width: 54px;
    color: var(--Banya-Graphite-700, #5e5e5e);
    font-family: "Geologica", sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

/* Single-select state. Keep FacetWP's checked class for existing visual CSS. */
.bn1-sessions-v2 .tubs-product-facets__option[aria-checked="true"] {
    cursor: pointer;
}

@media (max-width: 900px) {
    .bn1-sessions-v2 .tubs-product-rail__item {
        flex-basis: calc((100% - 20px) / 2);
    }
}

@media (max-width: 600px) {
    .bn1-sessions-v2 .tubs-product-rail {
        gap: 14px;
        margin-inline: -18px;
        width: calc(100% + 36px);
        padding-inline: 18px;
        scroll-padding-inline: 18px;
    }

    .bn1-sessions-v2 .tubs-product-rail__item {
        flex-basis: min(82vw, 405px);
    }

    .bn1-sessions-v2 .tubs-product-rail__nav {
        margin-top: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bn1-sessions-v2 .tubs-product-rail {
        scroll-behavior: auto;
        transition: none;
    }

    .bn1-sessions-v2 .tubs-product-rail.is-filter-revealing .tubs-product-rail__item:not([hidden]) {
        animation: none;
    }
}
