.rs-bp {
    display: flex; flex-direction: column; align-items: stretch;
    gap: 8px; flex: 1 1 auto; min-width: 0;
    position: relative;
    padding-left: clamp(14px, 1.6vw, 22px);
    border-left: 1px solid rgba(196, 160, 82, .45);
}
.rs-bp__row {
    display: flex; align-items: center;
    gap: clamp(18px, 2vw, 28px);
}
.rs-bp__field {
    background: transparent; border: 0;
    padding: 8px 16px;
    color: var(--rs-ink); cursor: pointer; text-align: left;
    display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
    border-radius: 8px;
    transition: background .2s ease;
}
.rs-bp__field:hover, .rs-bp__field.is-active { background: rgba(196, 160, 82, .12); }
.rs-bp__field__label {
    font-family: 'Jost', sans-serif;
    font-size: 0.625rem; letter-spacing: .42em;
    text-transform: uppercase; color: var(--rs-ink-mute);
    font-weight: 500; text-indent: .42em;
    white-space: nowrap;
}
.rs-bp__field__value {
    font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic;
    font-size: clamp(1.625rem, 2.4vw, 2.125rem);
    color: var(--rs-ink);
    line-height: 1; font-weight: 400;
    white-space: nowrap;
    letter-spacing: -.005em;
}
.rs-bp__field__value.is-placeholder { color: var(--rs-ink-mute); opacity: .55; font-style: italic; }
.rs-bp__divider {
    width: 1px; align-self: stretch;
    background: linear-gradient(to bottom, transparent, rgba(196, 160, 82, .5) 20%, rgba(196, 160, 82, .5) 80%, transparent);
    margin: 6px 0;
}

.rs-bp__cta {
    flex: 0 0 auto;
    background: var(--rs-brand);
    color: white !important; text-decoration: none;
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 14px 26px;
    border: 1px solid var(--rs-brand);
    border-radius: 999px;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease;
    display: inline-flex; align-items: center;
    text-indent: .3em;
    box-shadow: 0 8px 24px rgba(120, 67, 86, .28);
    white-space: nowrap;
}
.rs-bp__cta:hover {
    background: #5e3344; color: white !important;
    box-shadow: 0 12px 32px rgba(120, 67, 86, .38);
    transform: translateY(-1px);
}
.rs-bp__cta--ghost {
    background: transparent; color: var(--rs-brand) !important;
    border: 1px solid var(--rs-brand);
    box-shadow: none;
}
.rs-bp__cta--ghost:hover { background: var(--rs-brand); color: white !important; }
.rs-bp__cta__arrow {
    transform: translateY(-1px);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic; font-size: 1.125rem;
}

.rs-bp__summary {
    display: flex; flex-direction: column;
    align-items: flex-start; justify-content: center;
    gap: 3px;
    padding: 6px 16px;
}
.rs-bp__summary__nights {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic; font-weight: 400;
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
    color: var(--rs-ink);
    line-height: 1.05;
    letter-spacing: -.005em;
    white-space: nowrap;
}
.rs-bp__summary__from {
    font-family: 'Jost', sans-serif;
    font-size: 0.625rem; letter-spacing: .42em;
    text-transform: uppercase;
    color: var(--rs-ink-mute);
    font-weight: 500;
    text-indent: .42em;
    line-height: 1;
    white-space: nowrap;
}
.rs-bp__summary__total {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic; font-weight: 400;
    font-size: clamp(1.5rem, 2.2vw, 1.875rem);
    color: var(--rs-brand);
    line-height: 1;
    letter-spacing: -.005em;
    white-space: nowrap;
}
@media (max-width: 820px) {
    .rs-bp__summary { display: none; }
}

/* === CALENDAR POPOVER === */
.rs-bp__cal {
    position: absolute; right: 0; top: calc(100% + 14px);
    background: var(--rs-paper);
    border: 0;
    border-radius: 14px;
    box-shadow:
        0 1px 0 rgba(196, 160, 82, .35) inset,
        0 28px 72px rgba(28, 24, 18, .18),
        0 4px 14px rgba(28, 24, 18, .06);
    width: clamp(360px, 32vw, 440px);
    padding: 22px 22px 18px;
    z-index: 1000;
}
.rs-bp__cal::before {
    /* Top gold hairline accent — subtle property mark */
    content: '';
    position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
    width: 36px; height: 1px; background: var(--rs-gold);
    opacity: .6;
}

.rs-bp__cal--floating {
    position: fixed !important;
    top: 50%; left: 50%;
    z-index: 9999;
}

.rs-bp__cal__head {
    display: flex; align-items: center; justify-content: space-between;
    margin: 14px 0 18px;
    gap: 10px;
}
.rs-bp__cal__nav {
    width: 34px; height: 34px; border: 1px solid transparent;
    background: transparent; color: var(--rs-brand);
    font-size: 1.5rem; line-height: 1; font-family: 'Cormorant Garamond', serif;
    cursor: pointer; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.rs-bp__cal__nav:hover {
    background: var(--rs-paper-warm);
    border-color: rgba(196, 160, 82, .35);
    transform: scale(1.04);
}
.rs-bp__cal__nav:disabled { opacity: .2; cursor: default; transform: none; background: transparent; border-color: transparent; }
.rs-bp__cal__month {
    font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 400;
    font-size: clamp(1.375rem, 1.9vw, 1.625rem); color: var(--rs-ink); margin: 0; letter-spacing: -.005em;
    text-align: center; flex: 1;
}

.rs-bp__cal__weekdays {
    display: grid; grid-template-columns: repeat(7, 1fr);
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rs-line-soft);
}
.rs-bp__cal__weekdays span {
    text-align: center; font-size: 0.5625rem; letter-spacing: .3em; text-transform: uppercase;
    color: var(--rs-ink-mute); padding: 4px 0;
    font-family: 'Jost', sans-serif; font-weight: 500;
    text-indent: .3em;
}

.rs-bp__cal__grid {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: transparent;
    position: relative;
}
.rs-bp__cal__day {
    aspect-ratio: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: transparent; border: 0; color: var(--rs-ink); cursor: pointer;
    border-radius: 50%;
    padding: 4px 2px;
    gap: 3px;
    font-family: 'Jost', sans-serif;
    position: relative;
    transition: background .2s ease, color .2s ease, transform .15s ease;
    min-height: 52px;
}
.rs-bp__cal__day--blank { background: transparent; cursor: default; }
.rs-bp__cal__day__num {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.01em;
}
.rs-bp__cal__day__rate {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.0625rem; line-height: 1;
    color: var(--rs-gold);
    font-weight: 500;
    letter-spacing: .01em;
}
.rs-bp__cal__day:hover:not(:disabled):not(.is-checkin):not(.is-checkout):not(.is-range) {
    background: var(--rs-paper-warm);
    color: var(--rs-brand);
    transform: scale(1.04);
}
.rs-bp__cal__day:hover .rs-bp__cal__day__rate { color: var(--rs-brand); }

.rs-bp__cal__day.is-past,
.rs-bp__cal__day.is-unavailable { opacity: .22; cursor: default; }
.rs-bp__cal__day.is-past .rs-bp__cal__day__rate,
.rs-bp__cal__day.is-unavailable .rs-bp__cal__day__rate { display: none; }

/* Blocked: the night itself is bookable but stay would span an unavailable night
   between checkIn and here. Faint diagonal stripe + cursor for context. */
.rs-bp__cal__day.is-blocked {
    cursor: not-allowed;
    color: var(--rs-ink-mute);
    opacity: .35;
    background-image: repeating-linear-gradient(
        135deg,
        transparent 0,
        transparent 4px,
        rgba(120, 67, 86, .12) 4px,
        rgba(120, 67, 86, .12) 5px
    );
}
.rs-bp__cal__day.is-blocked .rs-bp__cal__day__rate { color: var(--rs-ink-mute); opacity: .5; }

.rs-bp__cal__day.is-checkin, .rs-bp__cal__day.is-checkout {
    background: var(--rs-brand);
    color: white;
    box-shadow: 0 4px 12px rgba(120, 67, 86, .35);
    z-index: 2;
}
.rs-bp__cal__day.is-checkin .rs-bp__cal__day__rate,
.rs-bp__cal__day.is-checkout .rs-bp__cal__day__rate {
    color: rgba(255, 255, 255, .85);
}

/* Range fill — pale paper-warm pill, sits behind the row */
.rs-bp__cal__day.is-range {
    background: rgba(196, 160, 82, .14);
    color: var(--rs-brand);
    border-radius: 0;
}
.rs-bp__cal__day.is-range .rs-bp__cal__day__rate {
    color: var(--rs-brand);
    opacity: .75;
}
.rs-bp__cal__day.is-checkin { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.rs-bp__cal__day.is-checkout { border-top-left-radius: 0; border-bottom-left-radius: 0; }

.rs-bp__cal__hint {
    margin-top: 16px; text-align: center;
    font-size: 0.625rem; letter-spacing: .32em;
    text-transform: uppercase; color: var(--rs-ink-mute);
    padding: 12px 0 2px;
    border-top: 1px solid var(--rs-line-soft);
    font-family: 'Jost', sans-serif;
    text-indent: .32em;
}

/* === MOBILE BOTTOM-SHEET DATE PICKER ===
   On phones/tablets the popover is the wrong pattern. Swap to a full-bleed
   bottom sheet with bigger touch targets, a drag handle, and a darkened backdrop. */
@media (max-width: 820px) {
    .rs-bp__cal--floating {
        position: fixed !important;
        top: auto !important;
        left: 0 !important;
        right: 0;
        bottom: 0;
        width: 100% !important;
        max-width: 100%;
        max-height: 88vh;
        border-radius: 24px 24px 0 0;
        padding: 30px 18px 20px;
        overflow-y: auto;
        animation: rs-bp__sheet .42s cubic-bezier(.32, .72, 0, 1);
        /* Backdrop done with a giant solid shadow — no extra DOM needed */
        box-shadow:
            0 -12px 40px rgba(0, 0, 0, .18),
            0 0 0 100vmax rgba(20, 14, 10, .55);
        clip-path: none;
        z-index: 9999;
    }
    @keyframes rs-bp__sheet {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
    /* Drag handle pill — visual cue this is a sheet */
    .rs-bp__cal--floating::before {
        content: '';
        position: absolute;
        top: 10px; left: 50%; transform: translateX(-50%);
        width: 42px; height: 4px; border-radius: 2px;
        background: rgba(120, 67, 86, .22);
    }
    .rs-bp__cal__head { margin: 6px 0 18px; padding: 0 4px; }
    .rs-bp__cal__nav { width: 44px; height: 44px; font-size: 1.75rem; }
    .rs-bp__cal__month { font-size: 1.5rem; }
    .rs-bp__cal__weekdays { margin-bottom: 6px; padding-bottom: 8px; }
    .rs-bp__cal__weekdays span { font-size: 0.625rem; }
    .rs-bp__cal__grid { gap: 2px; }
    /* Bigger day cells — Apple HIG 44px min, we give 56 */
    .rs-bp__cal__day {
        min-height: 58px;
        padding: 6px 2px;
        aspect-ratio: auto;
    }
    .rs-bp__cal__day__num { font-size: 1.0625rem; font-weight: 500; }
    .rs-bp__cal__day__rate { font-size: 0.9375rem; }
    .rs-bp__cal__hint {
        margin-top: 18px; padding: 14px 0 6px;
        font-size: 0.6875rem; letter-spacing: .3em;
    }
}

/* ====================================================================
   MOBILE BOOKING FLOW — purpose-built picker for phones/tablets ≤820px
   ==================================================================== */

/* === LAUNCHER — fixed bottom of viewport, always visible on mobile ===
   Two states: empty (no dates) and has-dates (price + Book Direct CTA).
   Hidden on desktop. */
/* Desktop sticky bar — uses native CSS `position: sticky` for jank-free scroll.
   The wrap is pulled UP by its own height with a negative margin-top so it visually
   sits flush against the bottom of the hero, then sticks under the menu when scroll
   reaches it. No per-frame JS = no scroll lag = no bouncing. */

.rs-bp__launcher-wrap {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 150;
    padding: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    pointer-events: none;
}
.rs-bp__launcher-wrap.is-visible {
    transform: translateY(0);
}
.rs-bp__launcher-wrap > * { pointer-events: auto; }
.rs-bp__launcher-wrap > * { pointer-events: auto; }

.rs-bp__launcher {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 0;
    border-radius: 0;
    background: var(--rs-paper-warm);
    box-shadow: 0 -8px 24px rgba(28, 24, 18, .14);
    overflow: hidden;
    font-family: 'Jost', sans-serif;
    text-align: left;
    text-decoration: none;
    color: var(--rs-ink);
    -webkit-tap-highlight-color: transparent;
}

/* Empty state — pixel-match #stickyBookCta: light blue, 48px tall, two spans */
.rs-bp__launcher--empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 48px;
    padding: 12px 20px;
    box-sizing: border-box;
    background: #87B7CF;
    color: #fff;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: left;
    box-shadow: none;
}
.rs-bp__launcher--empty span { display: inline-flex; align-items: center; }

/* Has-dates state — split: summary + Book Direct CTA */
.rs-bp__launcher--has-dates .rs-bp__launcher__details {
    flex: 1 1 58%;
    display: flex; flex-direction: column;
    justify-content: center;
    padding: 12px 16px 12px 21px;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    min-height: 64px;
    color: var(--rs-ink);
}
.rs-bp__launcher__row {
    display: flex; align-items: baseline; gap: 8px;
}
.rs-bp__launcher__price {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic; font-weight: 400;
    font-size: 1.625rem; line-height: 1;
    color: var(--rs-brand);
    margin-left: 10px;
}
.rs-bp__launcher__sub {
    font-size: 0.625rem; letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--rs-ink-mute);
    text-indent: .3em;
}
.rs-bp__launcher__edit {
    font-size: 0.59375rem; letter-spacing: .34em;
    text-transform: uppercase;
    color: var(--rs-gold);
    margin-top: 6px;
    text-indent: .34em;
    font-weight: 500;
}
.rs-bp__launcher__book {
    flex: 0 0 42%;
    display: flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--rs-brand);
    color: white !important;
    text-decoration: none;
    font-size: 0.6875rem; letter-spacing: .28em;
    text-transform: uppercase;
    font-weight: 600;
    border: 0;
    text-indent: .28em;
}
.rs-bp__launcher__book:active { background: #5e3344; }

/* === MOBILE SHEET CHROME — header, tabs, footer.
       All hidden on desktop where the calendar is a popover, not a sheet. */
.rs-bp__sheet-head,
.rs-bp__sheet-tabs,
.rs-bp__sheet-foot { display: none; }

@media (max-width: 820px) {
    .rs-bp__launcher-wrap { display: block; }

    /* Sheet head — X close + title row, below the drag handle */
    .rs-bp__sheet-head {
        display: flex; align-items: center; justify-content: space-between;
        margin: 4px 0 12px;
        padding-bottom: 14px;
        border-bottom: 1px solid var(--rs-line-soft);
    }
    .rs-bp__sheet-close {
        width: 38px; height: 38px;
        display: flex; align-items: center; justify-content: center;
        background: var(--rs-paper-warm);
        border: 1px solid transparent;
        border-radius: 50%;
        color: var(--rs-ink);
        cursor: pointer;
        transition: background .18s ease;
    }
    .rs-bp__sheet-close:active { background: rgba(120, 67, 86, .15); }
    .rs-bp__sheet-title {
        font-family: 'Cormorant Garamond', Georgia, serif;
        font-style: italic; font-weight: 400;
        font-size: 1.25rem; color: var(--rs-ink);
        letter-spacing: -.005em;
    }
    .rs-bp__sheet-spacer { width: 38px; }

    /* Sheet tabs — Check-In / Check-Out as segmented control */
    .rs-bp__sheet-tabs {
        display: grid; grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 16px;
    }
    .rs-bp__sheet-tab {
        display: flex; flex-direction: column; align-items: flex-start;
        gap: 6px;
        padding: 12px 14px;
        background: var(--rs-paper-warm);
        border: 1.5px solid transparent;
        border-radius: 12px;
        cursor: pointer;
        text-align: left;
        transition: border-color .2s ease, background .2s ease;
    }
    .rs-bp__sheet-tab.is-active {
        border-color: var(--rs-brand);
        background: rgba(120, 67, 86, .04);
    }
    .rs-bp__sheet-tab__label {
        font-family: 'Jost', sans-serif;
        font-size: 0.625rem; letter-spacing: .32em;
        text-transform: uppercase;
        color: var(--rs-ink-mute);
        text-indent: .32em;
    }
    .rs-bp__sheet-tab__value {
        font-family: 'Cormorant Garamond', Georgia, serif;
        font-style: italic; font-weight: 400;
        font-size: 1.375rem; line-height: 1;
        color: var(--rs-ink);
    }
    .rs-bp__sheet-tab__value.is-placeholder { color: var(--rs-ink-mute); opacity: .55; }

    /* Sheet foot — sticky bottom action area inside the scrolling sheet */
    .rs-bp__sheet-foot {
        display: flex; align-items: center; justify-content: space-between;
        gap: 12px;
        position: sticky;
        bottom: 0;
        margin: 16px -18px 0;
        padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
        background: var(--rs-paper);
        border-top: 1px solid var(--rs-line-soft);
    }
    .rs-bp__sheet-foot__summary {
        display: flex; flex-direction: column; align-items: flex-start;
        gap: 2px;
    }
    .rs-bp__sheet-foot__total {
        font-family: 'Cormorant Garamond', Georgia, serif;
        font-style: italic; font-weight: 400;
        font-size: 1.5rem; line-height: 1;
        color: var(--rs-brand);
    }
    .rs-bp__sheet-foot__nights {
        font-size: 0.59375rem; letter-spacing: .3em;
        text-transform: uppercase;
        color: var(--rs-ink-mute);
        text-indent: .3em;
    }
    .rs-bp__sheet-foot__cta {
        flex: 0 0 auto;
        padding: 14px 22px;
        background: var(--rs-brand);
        color: white !important;
        text-decoration: none;
        font-family: 'Jost', sans-serif;
        font-size: 0.6875rem; letter-spacing: .28em;
        text-transform: uppercase;
        font-weight: 600;
        border-radius: 10px;
        text-indent: .28em;
    }
    .rs-bp__sheet-foot__hint {
        flex: 1;
        text-align: center;
        font-family: 'Jost', sans-serif;
        font-size: 0.6875rem; letter-spacing: .3em;
        text-transform: uppercase;
        color: var(--rs-ink-mute);
        text-indent: .3em;
    }
    /* Inline hint replaces the calendar's standalone hint when the sheet foot is showing */
    .rs-bp__cal__hint { display: none; }
}
