/* roomSelector.css - the Find Your Room wizard (/roomSelector only).
   Dark, full-screen and mobile-first: one question per screen, one answer per
   tap, one button that matters on the result. Every token is scoped on .rf;
   the entry-point components (nav pill, banners) live in room-finder.css. */

.rf {
    --rf-surface: #121412;
    --rf-tile: #1b1f19;
    --rf-tile-hover: #232a1f;
    --rf-line: rgba(255, 255, 255, .14);
    --rf-text: #f3f5f0;
    --rf-muted: #b8bdb4;
    --rf-green: #72c02c;
    --rf-green-hi: #8fd14f;
    --rf-ink: #0e1a05;
    --rf-sel: rgba(114, 192, 44, .16);
    --rf-warn: #f2c14e;
    --rf-warn-bg: rgba(242, 193, 78, .10);
    --rf-ease: cubic-bezier(.2, .8, .2, 1);
    display: block;
    color: var(--rf-text);
    font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.45;
}

/* Compact phone header: brand and toggler on one ~56px row */
@media (max-width: 767.98px) {
    body.rf-page .navbar {
        --bs-navbar-padding-y: 6px;
    }
    body.rf-page #navBarBImag {
        display: block;
        width: auto;
        height: 34px;
    }
}
/* "Skip to the questions": shown only while focused, over the header */
.rf-skip:focus,
.rf-skip:focus-within {
    position: absolute !important;
    top: 8px;
    left: 16px;
    z-index: 1090;
    padding: 12px 18px !important;
    border-radius: 12px;
    background: #72c02c;
    color: #0e1a05;
    font: 700 16px/1.2 'Open Sans', system-ui, sans-serif;
    text-decoration: none;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* The shared footer's copyright line keeps the wizard's 16px side margins */
body.rf-page .site-footer p {
    padding: 0 16px;
}

/* ===== Stage ===== */
.rf-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-x: clip;   /* the 16px step slide never widens the page (clip keeps sticky working) */
    background: var(--rf-surface);
    padding: 8px 16px 24px;
    min-height: calc(100vh - 56px);
    min-height: calc(100svh - 56px);
}
@media (min-width: 768px) {
    .rf-stage {
        width: calc(100% - 32px);
        max-width: 640px;
        min-height: 520px;   /* hugs the short steps on tablets (desktop: 600px below) */
        margin: 16px auto 0;
        padding: 24px 32px 28px;
        border: 1px solid rgba(255, 255, 255, .06);
        border-radius: 24px;
        background: rgba(18, 20, 18, .94);
        box-shadow: 0 24px 64px rgba(0, 0, 0, .6);
    }
    /* A short step never leaves the footer floating mid-screen: the footer
       sits at the bottom of the viewport, spare height becomes background
       between the card and the footer, and the card never touches it. */
    body.rf-page {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        min-height: 100svh;
    }
    body.rf-page > main.rf {
        flex: 1 0 auto;
    }
    .rf-stage {
        margin-bottom: 32px;
    }
}
@media (min-width: 992px) {
    .rf-stage {
        max-width: 1040px;
        min-height: 600px;
        margin-top: 24px;
        padding: 40px 48px 32px;
    }
}
.rf-body {
    flex: 1 0 auto;
}
@media (min-width: 992px) {
    .rf-stage[data-view="q"] .rf-body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 300px;
        column-gap: 56px;
        align-items: start;
    }
}

/* ===== Shared controls ===== */
.rf button {
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.rf button:focus-visible,
.rf a:focus-visible {
    outline: 3px solid #8fd14f;
    outline-offset: 2px;
    box-shadow: none;
}
.rf h1:focus,
.rf h2:focus {
    outline: none;
}

.rf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    padding: 8px 20px;
    border: 0;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.rf-btn:active {
    transform: scale(.98);
}
.rf-btn .bi {
    font-size: 18px;
    line-height: 1;
}
.rf-btn--primary,
.rf-btn--primary:hover,
.rf-btn--primary:focus {
    background: var(--rf-green);
    color: var(--rf-ink);
    text-decoration: none;
}
.rf-btn--ghost,
.rf-btn--ghost:hover,
.rf-btn--ghost:focus {
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--rf-line);
    color: #fff;
    text-decoration: none;
}
.rf-btn--block {
    display: flex;
    width: 100%;
}
.rf-textbtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    background: none;
    color: var(--rf-muted);
    font-size: 15px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
/* Hover never shows under a still pointer on a freshly drawn screen (see .rf-nohover) */
.rf-stage:not(.rf-nohover) .rf-textbtn:hover {
    color: #fff;
}
@media (hover: hover) and (pointer: fine) {
    .rf-stage:not(.rf-nohover) .rf-btn--primary:hover {
        background: var(--rf-green-hi);
    }
    .rf-stage:not(.rf-nohover) .rf-btn--ghost:hover {
        background: rgba(255, 255, 255, .06);
        box-shadow: inset 0 0 0 1px rgba(114, 192, 44, .6);
    }
}
/* A phone number never breaks across lines (a Call button's label may wrap:
   its number sits in its own .rf-nowrap) */
.rf a[href^="tel:"]:not(.rf-btn) {
    white-space: nowrap;
}

/* ===== Top row: Back + progress (the answer summary and edit control) ===== */
.rf-top {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}
.rf-back {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-width: 44px;
    height: 44px;
    margin-left: -8px;
    padding: 0 10px 0 6px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--rf-text);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.rf-back .bi {
    font-size: 18px;
    line-height: 1;
}
@media (hover: hover) and (pointer: fine) {
    .rf-back:hover {
        background: rgba(255, 255, 255, .06);
    }
}
.rf-progress {
    flex: 1 1 auto;
    min-width: 0;
}
.rf-segs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.rf-segs > li {
    position: relative;
    min-width: 0;
    height: 44px;
    padding-top: 9px;
}
.rf-seg__bar {
    display: block;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .14);
    overflow: hidden;
}
.rf-seg__fill {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: var(--rf-green);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .25s var(--rf-ease);
}
.rf-seg {
    display: block;
    width: 100%;
    margin: 0;
    padding: 7px 0 0;
    border: 0;
    background: none;
    color: var(--rf-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rf-seg.is-current {
    color: #fff;
}
button.rf-seg {
    color: var(--rf-green-hi);
    cursor: pointer;
}
button.rf-seg.is-current {
    color: #fff;
}
/* The whole segment (bar included) is the tap target: 44px tall */
button.rf-seg::before {
    content: "";
    position: absolute;
    inset: 0;
}
button.rf-seg:focus-visible {
    outline: none;
}
button.rf-seg:focus-visible::before {
    outline: 3px solid #8fd14f;
    outline-offset: 0;
    border-radius: 6px;
}
@media (hover: hover) and (pointer: fine) {
    button.rf-seg:hover {
        text-decoration: underline;
        text-underline-offset: 3px;
    }
}
/* Below the 360px minimum: "Played here" still fits its segment */
@media (max-width: 359.98px) {
    .rf-segs {
        gap: 6px;
    }
    .rf-seg {
        font-size: 11px;
    }
}

/* ===== Question steps ===== */
.rf-eyebrow {
    margin: 16px 0 6px;
    color: var(--rf-green-hi);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.rf-stage:not([data-view="q"]) .rf-h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
@media (min-width: 992px) {
    .rf-eyebrow {
        margin-top: 24px;
    }
}
.rf-q {
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 6.4vw, 28px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    text-wrap: balance;
}
@media (min-width: 992px) {
    .rf-q {
        font-size: 32px;
    }
}
.rf-hint {
    margin: 8px 0 0;
    color: var(--rf-muted);
    font-size: 15px;
    line-height: 1.45;
}

/* Number tiles: 6 x 3, 1-16 then a double-width "17+" (the counts come from
   js/rooms-data.js; roomSelector.js rebuilds the tiles if the data changes) */
.rf-nums {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
    max-width: 520px;
}
.rf-num--more {
    grid-column: span 2;
}
.rf-num {
    min-height: 56px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: var(--rf-tile);
    box-shadow: inset 0 0 0 1px var(--rf-line);
    color: var(--rf-text);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease, color .15s ease, transform .1s ease;
}
.rf-num[aria-pressed="true"] {
    background: var(--rf-green);
    box-shadow: inset 0 0 0 2px var(--rf-green);
    color: var(--rf-ink);
}
@media (min-width: 992px) {
    .rf-nums {
        grid-template-columns: repeat(6, 72px);
    }
    .rf-num {
        height: 64px;
    }
}

/* Single-choice options: label and hint on separate lines, tick at right */
.rf-opts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    max-width: 520px;
}
.rf-opt {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 14px 16px;
    border: 0;
    border-radius: 16px;
    background: var(--rf-tile);
    box-shadow: inset 0 0 0 1px var(--rf-line);
    color: var(--rf-text);
    text-align: left;
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.rf-opt__icon {
    flex: 0 0 24px;
    color: var(--rf-green-hi);
    font-size: 22px;
    line-height: 1;
    text-align: center;
}
.rf-opt__text {
    flex: 1 1 auto;
    min-width: 0;
}
.rf-opt__label {
    display: block;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}
.rf-opt__hint {
    display: block;
    margin-top: 2px;
    color: var(--rf-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    text-wrap: pretty;   /* no one-word orphan on narrow phones */
}
.rf-tick {
    flex: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--rf-green);
    color: var(--rf-ink);
    font-size: 16px;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .16s ease, transform .16s var(--rf-ease);
}
.rf-opt[aria-pressed="true"] {
    background: var(--rf-sel);
    box-shadow: inset 0 0 0 2px var(--rf-green);
}
.rf-opt[aria-pressed="true"] .rf-tick {
    opacity: 1;
    transform: scale(1);
}

/* Played-room tiles: two columns, square check box (multi-select) */
.rf-played {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
    max-width: 520px;
}
.rf-pl {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 10px 12px;
    border: 0;
    border-radius: 14px;
    background: var(--rf-tile);
    box-shadow: inset 0 0 0 1px var(--rf-line);
    color: var(--rf-text);
    text-align: left;
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.rf-pl[hidden] {
    display: none;
}
.rf-box {
    flex: 0 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45);
    color: var(--rf-ink);
    font-size: 16px;
    line-height: 1;
    transition: background-color .15s ease, box-shadow .15s ease;
}
.rf-box .bi {
    opacity: 0;
    transform: scale(.6);
    transition: opacity .16s ease, transform .16s var(--rf-ease);
}
.rf-pl__name {
    min-width: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
}
.rf-pl[aria-pressed="true"] {
    background: var(--rf-sel);
    box-shadow: inset 0 0 0 2px var(--rf-green);
}
.rf-pl[aria-pressed="true"] .rf-box {
    background: var(--rf-green);
    box-shadow: none;
}
.rf-pl[aria-pressed="true"] .rf-box .bi {
    opacity: 1;
    transform: scale(1);
}

/* Pressed and hover (hover only with a real mouse, and never under a still one) */
.rf-num:active,
.rf-opt:active,
.rf-pl:active,
.rf-alt:active {
    transform: scale(.98);
}
@media (hover: hover) and (pointer: fine) {
    .rf-stage:not(.rf-nohover) .rf-num:not([aria-pressed="true"]):hover,
    .rf-stage:not(.rf-nohover) .rf-opt:not([aria-pressed="true"]):hover,
    .rf-stage:not(.rf-nohover) .rf-pl:not([aria-pressed="true"]):hover,
    .rf-stage:not(.rf-nohover) .rf-alt:hover {
        background: var(--rf-tile-hover);
        box-shadow: inset 0 0 0 1px rgba(114, 192, 44, .6);
    }
}

/* The one step button (played rooms): sticky on phones */
.rf-stepbar {
    margin-top: 16px;
    max-width: 520px;
}
/* 768-991px (the phone layout, centred): the controls run the full width,
   lining up with the progress row */
@media (min-width: 768px) and (max-width: 991.98px) {
    .rf-nums,
    .rf-opts,
    .rf-played,
    .rf-stepbar {
        max-width: none;
    }
}
@media (max-width: 767.98px) {
    /* Side shadows paint the gutters (negative margins on a sticky box widen the page) */
    .rf-stepbar {
        position: sticky;
        bottom: 0;
        z-index: 2;
        margin: 6px 0 0;
        padding: 10px 0 12px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        background: var(--rf-surface);
        box-shadow: -16px 0 0 var(--rf-surface), 16px 0 0 var(--rf-surface);
    }
    /* A tile brought into view (keyboard focus, 200% zoom) clears the sticky
       bar above; roomSelector.js nudges it further if a browser ignores this */
    .rf-pl {
        scroll-margin-bottom: 96px;
    }
}

/* "Rather browse?" (question steps only) */
.rf-browse {
    margin: 20px 0 0;
}
.rf-browse .rf-link {
    font-size: 15px;
}

/* ===== Desktop lineup: "Rooms that fit" (decorative, aria-hidden) ===== */
.rf-lineup {
    display: none;
}
@media (min-width: 992px) {
    .rf-stage[data-view="q"] .rf-lineup {
        display: block;
        margin-top: 24px;
        padding: 20px;
        border-radius: 18px;
        background: rgba(255, 255, 255, .03);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
    }
}
.rf-lineup__title {
    margin: 0;
    color: var(--rf-green-hi);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.rf-lineup__count {
    margin: 2px 0 14px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}
.rf-lineup__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.rf-lu {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: opacity .25s ease, filter .25s ease;
}
.rf-lu img {
    flex: 0 0 96px;
    width: 96px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--rf-tile);
}
.rf-lu__text {
    min-width: 0;
}
.rf-lu__name {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}
.rf-lu__status {
    display: block;
    margin-top: 2px;
    color: var(--rf-green-hi);
    font-size: 13px;
    font-weight: 600;
}
/* A room that drops out: its photo dims, its name and reason stay readable */
.rf-lu img {
    transition: opacity .25s ease, filter .25s ease;
}
.rf-lu.is-out img {
    opacity: .35;
    filter: grayscale(1);
}
.rf-lu.is-out .rf-lu__name,
.rf-lu.is-out .rf-lu__status {
    color: var(--rf-muted);
}

/* ===== Result ===== */
.rf-r-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 10px;
    color: var(--rf-green-hi);
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.rf-r-eyebrow .bi {
    display: inline-block;
    font-size: 15px;
    line-height: 1;
}
.rf-pop {
    animation: rf-pop .4s var(--rf-ease) 1;
}
@keyframes rf-pop {
    0% { transform: none; }
    45% { transform: translateY(-3px) rotate(-12deg); }
    100% { transform: none; }
}

/* One DOM order (eyebrow, name, fit, facts, actions, details | photo, runner-up,
   notes | nudge, footer) so tab order matches the phone; the wrappers dissolve
   on phones (where `order` puts the notes above the runner-up) and become the
   two columns on desktop. */
.rf-res {
    display: flex;
    flex-direction: column;
}
.rf-res__main,
.rf-res__media,
.rf-res__more {
    display: contents;
}
.rf-res .rf-r-eyebrow { order: 1; }
.rf-res .rf-r-name { order: 2; }
.rf-res .rf-hero { order: 3; }
.rf-res .rf-fit { order: 4; }
.rf-res .rf-chips { order: 5; }
.rf-res .rf-capnote { order: 6; }
.rf-res .rf-price { order: 7; }
.rf-res .rf-actions { order: 8; }
.rf-res .rf-details { order: 9; }
.rf-res .rf-notes { order: 10; }
.rf-res .rf-alt { order: 11; }
.rf-res .rf-nudge { order: 12; }
.rf-res .rf-foot { order: 13; }

/* Room name: over the photo on phones (the h2 itself is visually hidden there) */
.rf-r-name {
    margin: 0;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.01em;
}
@media (max-width: 991.98px) {
    .rf-res .rf-r-name {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

.rf-hero {
    position: relative;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 2 / 1;
    background: #1f241c;
}
.rf-hero img,
.rf-team__fig img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .3s ease;
}
.rf-hero.is-loaded img,
.rf-team__fig.is-loaded img {
    opacity: 1;
}
.rf-hero.is-broken img,
.rf-team__fig.is-broken img {
    visibility: hidden;
}
/* A deep, dark scrim: some photos print the room's own name (the Asylum's
   lettering) right where the caption sits, so it fades to a faint backdrop */
.rf-hero figcaption,
.rf-team__fig figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 72px 16px 14px;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .78) 45%, rgba(0, 0, 0, .92));
}
.rf-hero__name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.01em;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}
.rf-hero__tag {
    display: block;
    margin-top: 4px;
    color: #e6eadf;
    font-size: 14px;
    line-height: 1.35;
    text-wrap: balance;   /* two even lines, never a one-word orphan */
}
@media (min-width: 992px) {
    .rf-hero__name {
        display: none;
    }
    .rf-hero__tag {
        font-size: 15px;
    }
}
/* A landscape phone: the photo becomes a wide strip so Book can share the
   screen with it (js/roomSelector.js scrolls Book into view if it still can't) */
@media (max-height: 500px) and (orientation: landscape) {
    .rf-res .rf-hero {
        aspect-ratio: auto;
        height: 36vh;
        min-height: 128px;
    }
}

/* "Updated" badge after an edit */
.rf-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--rf-green);
    color: var(--rf-ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .02em;
    text-shadow: none;
    vertical-align: middle;
    transition: opacity .3s ease;
}
.rf-badge.is-gone {
    opacity: 0;
}
.rf-r-eyebrow .rf-badge {
    margin-left: 4px;
    letter-spacing: .02em;
    text-transform: none;
}

.rf-fit {
    margin: 14px 0 0;
    color: #fff;
    font-size: 17px;
    line-height: 1.45;
    text-wrap: balance;   /* a long sentence wraps in even lines, never "/ the ropes." */
}
/* One sentence per box: a line that can't hold both breaks between them */
.rf-fit__s,
.rf-capnote__s,
.rf-notes__s {
    display: inline-block;
}
.rf-capnote {
    display: flex;
    gap: 8px;
    margin: 8px 0 0;
    color: var(--rf-green-hi);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}
.rf-capnote .bi {
    flex: 0 0 auto;
    margin-top: 1px;
}
.rf-capnote a {
    color: inherit;
}
/* The phone number never breaks at its hyphens */
.rf-nowrap {
    white-space: nowrap;
}
.rf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}
.rf-chips li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: var(--rf-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}
.rf-chips .bi {
    color: var(--rf-green-hi);
    font-size: 14px;
}
/* Price line, right above Book: the figures in white, the tax wording muted */
.rf-price {
    display: flex;
    gap: 8px;
    margin: 12px 0 0;
    color: var(--rf-muted);
    font-size: 15px;
    line-height: 1.4;
}
.rf-price .bi {
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--rf-green-hi);
}
.rf-price strong {
    color: var(--rf-text);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.rf-price__tax {
    white-space: nowrap;
}
.rf-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
@media (min-width: 768px) {
    /* Book stays one line and takes the spare room; when a long name pushes
       "Send to my group" to its own row, that button fills the row too.
       (Phones keep one row: a long name wraps inside Book beside the square Share.) */
    .rf-actions {
        flex-wrap: wrap;
    }
    .rf-actions .rf-book {
        flex: 999 1 auto;
        white-space: nowrap;
    }
    .rf-actions .rf-share {
        flex: 1 0 auto;
    }
}
.rf-actions .rf-book {
    flex: 1 1 auto;
    min-width: 0;
}
.rf-actions--stack {
    flex-direction: column;
}
/* Book / Call: the icon rides inside the label, so a wrapped name stays centred */
.rf-book__label .bi {
    margin-right: 8px;
}
/* Small phones: a long room name wraps in two even lines beside the Share square */
@media (max-width: 399.98px) {
    .rf-actions .rf-book {
        padding: 8px 14px;
    }
    .rf-actions .rf-book__label {
        text-wrap: balance;
    }
}
/* <picture> wrappers never take part in layout (and <source> is not a box) */
.rf-hero picture,
.rf-team__fig picture,
.rf-alt__thumb picture,
.rf-lu picture {
    display: contents;
}
.rf picture source {
    display: none;
}
.rf-share {
    flex: 0 0 56px;
    width: 56px;
    padding: 0;
}
.rf-share__txt {
    display: none;
}
@media (min-width: 768px) {
    .rf-share {
        flex: 0 0 auto;
        width: auto;
        padding: 8px 16px;
        font-size: 15px;
        font-weight: 600;
    }
    .rf-share__txt {
        display: inline;
    }
}
/* Desktop: every result has the same action shape, whatever the room's name
   length: Book across the full column, and "Send to my group" under it as a
   quieter, auto-width button (the split results' share matches it) */
@media (min-width: 992px) {
    .rf-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .rf-actions .rf-book {
        flex: 0 0 auto;
        align-self: stretch;
    }
    .rf-actions .rf-share {
        padding: 8px 20px;
    }
}
.rf-details {
    align-self: flex-start;
    margin-top: 6px;
}
.rf-res .rf-details,
.rf-res .rf-nudge .rf-link,
.rf-end .rf-link,
.rf-foot .rf-link {
    font-size: 15px;
}

/* Good to know */
.rf-notes {
    margin: 14px 0 0;
    padding: 10px 14px;
    border-left: 3px solid var(--rf-warn);
    border-radius: 4px 12px 12px 4px;
    background: var(--rf-warn-bg);
}
.rf-notes__title {
    margin: 0 0 2px;
    color: var(--rf-warn);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.rf-notes ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.rf-notes li {
    display: flex;
    gap: 10px;
    padding: 3px 0;
    color: var(--rf-text);
    font-size: 14px;
    line-height: 1.4;
}
.rf-notes li > span {
    text-wrap: pretty;   /* no one-word orphan: "(photosensitivity / warning)" */
}
/* A note ending in a short punchline kept whole ("That's the fun!"): plain
   wrapping, as "pretty" would treat that whole sentence as one orphan word
   and pull the word before it down too */
.rf-notes li > .rf-notes__punch {
    text-wrap: wrap;
}
.rf-notes .bi {
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--rf-muted);
}
.rf-notes .rf-warnicon {
    color: var(--rf-warn);
}

/* Runner-up card: one target, swaps in place */
.rf-alt {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 72px;
    margin-top: 16px;
    padding: 12px;
    border: 0;
    border-radius: 16px;
    background: var(--rf-tile);
    box-shadow: inset 0 0 0 1px var(--rf-line);
    color: var(--rf-text);
    text-align: left;
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.rf-alt__thumb {
    flex: 0 0 96px;
    width: 96px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: #1f241c;
}
.rf-alt__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rf-alt__text {
    flex: 1 1 auto;
    min-width: 0;
}
.rf-alt__label {
    display: block;
    color: var(--rf-green-hi);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}
.rf-alt__name {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}
/* Two rooms: each name stays whole, so the line breaks at the "+" */
.rf-alt__nm {
    display: inline-block;
}
/* "Want to stay together?": the room's name in bold, what it offers in the regular weight */
.rf-alt__says {
    font-weight: 400;
}
.rf-alt__meta {
    display: block;
    color: var(--rf-muted);
    font-size: 13px;
    line-height: 1.3;
}
.rf-alt__go {
    flex: 0 0 auto;
    color: var(--rf-green-hi);
    font-size: 20px;
    line-height: 1;
}

.rf-nudge {
    margin: 10px 0 0;
    text-wrap: balance;   /* two even lines, never "events →" alone */
}
/* The small print under a nudge (a booking minimum) */
.rf-nudge__note {
    display: block;
    margin-top: 2px;
    color: var(--rf-muted);
    font-size: 14px;
    line-height: 1.4;
    text-wrap: pretty;   /* the small print fills its lines; only the link balances */
}
.rf-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 18px;
    margin-top: 18px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

/* Desktop result: photo + runner-up on the left, the decision on the right */
@media (min-width: 992px) {
    .rf-res {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        grid-template-areas: "media main" "media more";
        column-gap: 40px;
        margin-top: 24px;
    }
    .rf-res__main {
        display: block;
        grid-area: main;
    }
    .rf-res__media {
        display: block;
        grid-area: media;
    }
    .rf-res__more {
        display: block;
        grid-area: more;
    }
    /* Good to know sits under the photo (and runner-up), balancing the columns */
    .rf-res__media .rf-notes,
    .rf-res__media .rf-nudge {
        margin-top: 16px;
    }
    .rf-res .rf-r-eyebrow {
        margin-top: 0;
    }
    .rf-r-name {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px 14px;
        font-size: 44px;
    }
    .rf-fit {
        font-size: 18px;
    }
    .rf-details {
        display: inline-flex;
    }
}

/* Split up and race */
.rf-split__title,
.rf-end__title {
    margin: 0;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.01em;
    text-wrap: balance;
}
@media (min-width: 992px) {
    .rf-split__title {
        font-size: 40px;
    }
}
.rf-split .rf-r-eyebrow {
    margin-top: 16px;
}
.rf-split__line {
    margin: 10px 0 0;
    color: #fff;
    font-size: 17px;
    line-height: 1.45;
    max-width: 680px;
}
.rf-teams {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}
@media (min-width: 768px) {
    .rf-teams {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}
.rf-team {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-radius: 18px;
    background: var(--rf-tile);
    box-shadow: inset 0 0 0 1px var(--rf-line);
}
.rf-team__fig {
    position: relative;
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3 / 1;
    background: #1f241c;
}
.rf-team .rf-chips {
    gap: 6px;
}
.rf-team .rf-chips li {
    padding: 4px 10px;
    font-size: 13px;
}
@media (min-width: 768px) {
    .rf-team__fig {
        aspect-ratio: 2 / 1;
    }
}
.rf-team__fig figcaption {
    padding: 40px 14px 10px;
}
.rf-team__name {
    display: block;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}
.rf-team .rf-chips {
    margin-top: 10px;
}
.rf-team .rf-price {
    margin-top: 8px;
    font-size: 14px;
}
.rf-team .rf-book {
    margin-top: 10px;
}
.rf-split__help {
    margin: 14px 0 0;
    color: var(--rf-muted);
    font-size: 15px;
    line-height: 1.45;
}
.rf-split__help a,
.rf-end__body a,
.rf-capnote a {
    color: var(--rf-green-hi);
    font-weight: 600;
}
/* A link inside a sentence: a slimmer, closer ring that never covers the next
   word (as .rf-link--inline in room-finder.css) */
.rf-split__help a:focus-visible,
.rf-end__body a:focus-visible,
.rf-capnote a:focus-visible {
    outline-width: 2px;
    outline-offset: 1px;
    border-radius: 3px;
}
.rf-split__more {
    max-width: 560px;
}
/* Desktop: the extras run in the same two columns as the team cards above
   (help, share and "stay together" | Good to know and nudge), footer across */
@media (min-width: 992px) {
    .rf-split__more {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 20px;
        align-items: start;
        max-width: none;
    }
    .rf-split__more > .rf-foot {
        grid-column: 1 / -1;
    }
    .rf-split__col .rf-nudge {
        margin-top: 14px;
    }
}
.rf-split__share {
    margin-top: 14px;
}
/* Desktop: "Send to my group" reads as the secondary action it is, left-aligned
   under the help line rather than a full-width bar competing with Book */
@media (min-width: 992px) {
    .rf-btn.rf-split__share {
        display: inline-flex;
        width: auto;
        padding: 8px 20px;
        font-size: 15px;
        font-weight: 600;
    }
}

/* End screens: legend, too young, too large */
.rf-end {
    max-width: 520px;
    margin: 24px auto 0;
    text-align: center;
}
.rf-end__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(143, 209, 79, .14);
    color: var(--rf-green-hi);
    font-size: 30px;
    line-height: 1;
}
.rf-end .rf-r-eyebrow {
    justify-content: center;
    margin-top: 16px;
}
.rf-end__body {
    margin: 12px 0 0;
    color: var(--rf-text);
    font-size: 17px;
    line-height: 1.5;
}
.rf-end__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
}
.rf-end__actions .rf-textbtn {
    align-self: center;
}
/* A long label (the rematch call names its room) wraps in two even lines */
.rf-end__actions .rf-book__label {
    text-wrap: balance;
}
.rf-end__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 18px;
    margin-top: 14px;
}
/* An event nudge on an end screen: its own line, above Start over */
.rf-end__links .rf-nudge {
    flex: 1 1 100%;
    margin: 0;
    text-wrap: balance;   /* centred: two even lines, not one word alone */
}
.rf-end .rf-capnote {
    justify-content: center;
    text-align: left;
}

/* Toast ("Link copied") */
.rf-toast {
    position: fixed;
    left: 50%;
    bottom: max(20px, env(safe-area-inset-bottom));
    z-index: 1080;
    width: max-content;   /* left:50% would otherwise shrink-wrap it to half the screen */
    max-width: calc(100% - 32px);
    padding: 12px 18px;
    border-radius: 999px;
    background: #f3f5f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
    color: var(--rf-ink);
    font-size: 15px;
    font-weight: 600;
    overflow-wrap: anywhere;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity .2s ease, transform .2s var(--rf-ease);
}
.rf-toast.is-on {
    opacity: 1;
    transform: translate(-50%, 0);
}
.rf-toast .bi {
    margin-right: 6px;
    color: #2f5410;
}
/* The last-resort "Copy this link" card: a rounded card, not a pill, with the
   link selected in a read-only field and a Done button; it stays until Done,
   Escape or focus leaving it (js/roomSelector.js showLinkCard) */
.rf-toast--long {
    width: min(480px, calc(100% - 32px));
    padding: 14px 16px 16px;
    border-radius: 16px;
    text-align: left;
}
.rf-toast--long.is-on {
    pointer-events: auto;
}
.rf-toast__label {
    display: block;
    margin: 0 0 6px;
}
.rf-toast__url {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(14, 26, 5, .35);
    border-radius: 10px;
    background: #fff;
    color: var(--rf-ink);
    font: 400 16px/1.35 'Open Sans', system-ui, sans-serif;   /* 16px: no zoom on focus (iOS) */
    resize: none;
    overflow-wrap: anywhere;
}
.rf-toast__done {
    display: block;
    min-height: 44px;
    margin: 10px 0 0 auto;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: var(--rf-ink);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
/* On the light card the lime ring would vanish: a dark one */
.rf .rf-toast :focus-visible,
.rf-toast__url:focus {
    outline: 3px solid #2f5410;
    outline-offset: 2px;
}

/* ===== Motion ===== */
.rf-enter {
    animation: rf-in .22s var(--rf-ease) both;
}
.rf-enter-back {
    animation: rf-in-back .22s var(--rf-ease) both;
}
@keyframes rf-in {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: none; }
}
@keyframes rf-in-back {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: none; }
}
.rf-reveal .rf-fit,
.rf-reveal .rf-capnote,
.rf-reveal .rf-chips li,
.rf-reveal .rf-price,
.rf-reveal .rf-split__line {
    animation: rf-up .3s var(--rf-ease) both;
}
.rf-reveal .rf-fit,
.rf-reveal .rf-split__line { animation-delay: .1s; }
.rf-reveal .rf-chips li:nth-child(1) { animation-delay: .16s; }
.rf-reveal .rf-chips li:nth-child(2) { animation-delay: .22s; }
.rf-reveal .rf-capnote { animation-delay: .25s; }
.rf-reveal .rf-price { animation-delay: .28s; }
@keyframes rf-up {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
.rf-fade {
    transition: opacity .1s ease;
}
.rf-fade.is-out {
    opacity: 0;
}

/* Windows High Contrast (forced colors): the inset box-shadows that draw the
   tile and button edges are dropped there, so draw real borders, and show
   the selected state and the progress fill in the system Highlight colour */
@media (forced-colors: active) {
    .rf-num,
    .rf-opt,
    .rf-pl,
    .rf-btn,
    .rf-alt,
    .rf-team {
        border: 1px solid ButtonText;
    }
    .rf-num[aria-pressed="true"],
    .rf-opt[aria-pressed="true"],
    .rf-pl[aria-pressed="true"] {
        outline: 3px solid Highlight;
        outline-offset: -3px;
    }
    .rf-box {
        border: 2px solid ButtonText;
    }
    .rf-pl[aria-pressed="true"] .rf-box {
        forced-color-adjust: none;
        border-color: Highlight;
        background: Highlight;
        color: HighlightText;
    }
    .rf-tick {
        forced-color-adjust: none;
        background: Highlight;
        color: HighlightText;
    }
    .rf-seg__bar {
        border: 1px solid CanvasText;
    }
    .rf-seg__fill {
        forced-color-adjust: none;
        background: Highlight;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rf *,
    .rf *::before,
    .rf *::after {
        animation: none !important;
        transition: none !important;
    }
}
