/* ── Room hero ───────────────────────────────────────────────
   Figma (room page): desktop 1366:64952; mobile 1366:65852,
   bottom booking bar 1366:66040.
   ─────────────────────────────────────────────────────────── */

.room-hero {
    padding: 0 var(--pad-x) 20px;
}

.room-hero__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
    max-width: var(--site-max-w);
    margin: 0 auto;
}


/* ── Gallery ───────────────────────────────────────────────── */
.room-hero__gallery {
    display: flex;
    flex: 0 1 656px;
    flex-direction: column;
    gap: 8.5px;
    min-width: 0;
}

.room-hero__viewport {
    position: relative;
}

/* One picture at a time, swiped or stepped with the arrows */
.room-hero__track {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    aspect-ratio: 4 / 3;
}

.room-hero__track::-webkit-scrollbar {
    display: none;
}

.room-hero__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.room-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-hero__arrows {
    position: absolute;
    top: 50%;
    left: 31px;
    right: 31px;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.room-hero__arrows .button {
    pointer-events: auto;
}

.room-hero__counter {
    position: absolute;
    right: 15px;
    bottom: 15px;
    padding: 3px 9px;
    border-radius: 4px;
    background: rgba(20, 13, 12, 0.7);
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 1.2px;
    color: var(--color-canvas);
}

.room-hero__thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8.9px;
}

.room-hero__thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.room-hero__thumb-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: opacity var(--transition);
}

.room-hero__thumb:hover .room-hero__thumb-image {
    opacity: 0.85;
}

.room-hero__thumb:focus-visible {
    outline: 2px solid var(--color-beamwood);
    outline-offset: 2px;
}


/* ── The words and the booking card ────────────────────────── */
.room-hero__info {
    display: flex;
    flex: 0 1 608px;
    flex-direction: column;
    gap: 32px;
    min-width: 0;
}

.room-hero__words {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.room-hero__title {
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -0.4px;
}

.room-hero__details {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
}

.room-hero__detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-style: italic;
    line-height: 1.2;
    color: var(--color-ink-soft);
}

.room-hero__detail::before {
    content: "\2726";
    font-size: 22px;
    color: var(--color-burgundy);
}

.room-hero__description {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0.08px;
    color: var(--color-ink-soft);
}

.room-hero__more {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.room-hero__more[hidden] {
    display: none;
}

.room-hero__more:hover {
    color: var(--color-copper-text);
}

.room-hero__close,
.room-hero__bar {
    display: none;
}


/* Tablet and mobile — 1024px and below: stacked; the booking card is a
   sheet opened from the bar fixed to the bottom of the screen. */
@media (max-width: 1024px) {
    .room-hero {
        padding-bottom: 0;
    }

    .room-hero__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .room-hero__gallery,
    .room-hero__info {
        flex: none;
    }

    .room-hero__title {
        font-size: 32px;
        line-height: 1.06;
        letter-spacing: -0.32px;
    }

    .room-hero__booking {
        position: fixed;
        inset: auto 0 0;
        z-index: 60;
        max-height: 100dvh;
        overflow-y: auto;
        padding-top: 48px;
        background: var(--color-canvas);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        transform: translateY(100%);
        visibility: hidden;
        transition: transform 250ms ease, visibility 0s 250ms;
    }

    .room-hero__booking.is-open {
        transform: none;
        visibility: visible;
        transition: transform 250ms ease;
    }

    .room-hero__booking .availability--card {
        border-radius: 0;
        box-shadow: none;
    }

    .room-hero__close {
        position: absolute;
        top: 8px;
        right: calc(var(--pad-x) - 8px);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 0;
        background: none;
        color: var(--color-copper);
        cursor: pointer;
    }

    .room-hero__close:focus-visible {
        outline: 2px solid var(--color-beamwood);
    }

    .room-hero__bar {
        position: fixed;
        inset: auto 0 0;
        z-index: 50;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        padding: 20px var(--pad-x);
        background: #FFF;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }

    /* Room at the bottom of the page for the bar, so it never covers
       the footer links */
    body.single-room {
        padding-bottom: 117px;
    }

    .room-hero__bar-price {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .room-hero__bar-rate {
        padding-left: 2px;
        font-family: var(--font-heading);
        font-size: 22px;
        font-style: italic;
        line-height: 1.2;
    }

    .room-hero__bar-total {
        margin-top: -4px;
        padding-left: 2px;
        font-size: 14px;
        line-height: 1.15;
        letter-spacing: 0.28px;
        color: var(--color-umber-muted);
    }

    .room-hero__bar-pill {
        padding: 4px 10px;
        border-radius: 99px;
        background: var(--color-candle-wax);
        font-size: 12px;
        line-height: 1.15;
        letter-spacing: 0.24px;
        color: var(--color-umber-muted);
    }

    .room-hero__bar-book {
        display: flex;
        flex: 0 0 190px;
        flex-direction: column;
        gap: 4px;
    }

    .room-hero__bar-book .button--primary {
        height: 47px;
    }

    .room-hero__bar-note {
        font-size: 16px;
        line-height: 1.65;
        letter-spacing: 0.08px;
        text-align: center;
        color: var(--color-umber-muted);
    }
}

/* Mobile — 767px and below: the pictures edge to edge, no thumbnails, the
   description cut short with Read More. */
@media (max-width: 767px) {
    .room-hero__gallery {
        margin: 0 calc(var(--pad-x) * -1);
    }

    .room-hero__thumbs {
        display: none;
    }

    .room-hero__arrows {
        left: 20px;
        right: 20px;
    }

    .room-hero__description {
        max-height: calc(16px * 1.65 * 6);
        overflow: hidden;
        font-size: 14px;
        -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
        mask-image: linear-gradient(to bottom, #000 60%, transparent);
    }

    .room-hero__description.is-open {
        max-height: none;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .room-hero__bar-book {
        flex-basis: 160px;
    }

    .room-hero__bar-rate {
        font-size: 20px;
        white-space: nowrap;
    }

    .room-hero__bar-note {
        font-size: 13px;
    }
}
