/* =====================================================================
   Meeting Rooms page styles — mr-* only.
   Same running order as the Pool / Courtroom Bar / Fitness pages:
   hero, a content section, the gallery, the CTA banner, the collapsible.
   ===================================================================== */

/* ---------- Shared eyebrow + section headings ---------- */
.mr-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.85rem;
}
.mr-section-title {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.15;
    margin: 0 0 1.25rem;
}
.mr-section-sub {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto 2.5rem;
}
.mr-no-data { grid-column: 1 / -1; text-align: center; color: var(--text-light); list-style: none; }

/* === Breadcrumbs === */
.breadcrumbs { background: var(--extra-light); border-top: 1px solid rgba(0,0,0,0.06); border-bottom: 1px solid rgba(0,0,0,0.06); }
.breadcrumbs_inner { max-width: var(--max-width); margin: 0 auto; padding: 0.85rem 1rem; display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.breadcrumbs a { color: var(--text-dark); font-weight: 600; }
.breadcrumbs .current { color: var(--text-light); }

/* =====================================================================
   Hero
   ===================================================================== */
.mr-edge {
    position: relative;
    background: var(--white);
    padding: 0 0 clamp(4rem, 9vw, 7rem);
    /* hero-about-us-style.css gives the bare header selector min-height 100vh. */
    min-height: 0;
    isolation: isolate;
    --mr-card-overlap: 5rem;
    --mr-crumb-h: 3rem;
}

.mr-edge .breadcrumbs {
    position: relative;
    z-index: 1;
    min-height: var(--mr-crumb-h);
    display: flex;
    align-items: center;
}
.mr-edge .breadcrumbs_inner { width: 100%; padding-block: 0; }

/* The hero card sits over the middle of this strip and these page names are
   long, so the trail leaves the centred box and hugs the left edge instead. */
.mr-edge .breadcrumbs_inner {
    max-width: none;
    gap: 0.35rem;
    font-size: 0.9rem;
}

.mr-edge_media {
    position: relative;
    margin: 0;
    height: 88vh;
    min-height: 560px;
    overflow: hidden;
}

/* The global sheet sizes and darkens these for a 100vh header; scope it back. */
.mr-edge .header_bg_swiper,
.mr-edge .header_bg_swiper .swiper-slide { width: 100%; height: 100%; }
.mr-edge .header_bg_swiper { position: absolute; inset: 0; }
.mr-edge .header_bg_swiper img {
    width: 100% !important;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block !important;
    filter: none;
}

.mr-edge_card {
    position: relative;
    z-index: 2;
    max-width: min(660px, calc(100% - 2.5rem));
    margin: calc((var(--mr-card-overlap) + var(--mr-crumb-h)) * -1) auto 0;
    padding: clamp(2rem, 4vw, 3rem);
    background: var(--white);
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 24px 60px rgba(10, 34, 64, 0.14);
    text-align: center;
    animation: mr-hero-rise 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mr-edge_title {
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    color: var(--text-dark);
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 1.08;
    margin: 0 0 1.4rem;
}

.mr-edge_card p,
.mr-edge_copy { color: var(--text-light); line-height: 1.85; margin: 0 0 1.75rem; }
.mr-edge_copy p { margin: 0 0 1.1rem; }
.mr-edge_copy p:last-child { margin-bottom: 0; }

.mr-edge_scroll {
    position: absolute;
    left: 50%;
    bottom: calc(var(--mr-card-overlap) + 2.5rem);
    z-index: 3;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
    color: var(--white);
    font-size: 1.15rem;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
    animation: mr-bounce 2.4s ease-in-out infinite;
}
.mr-edge_scroll:hover { background: var(--primary-color); border-color: var(--primary-color); color: var(--white); }

.mr-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    padding: 0;
    margin: 0;
}
.mr-chips li {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1.2rem;
    background: var(--cream-light, #f9f7f4);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    color: var(--text-dark);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: background 0.3s ease, transform 0.25s ease, border-color 0.3s ease;
}
.mr-chips li:hover { background: var(--white); border-color: var(--primary-color); transform: translateY(-2px); }
.mr-chips i { color: var(--primary-color); font-size: 1.05rem; }

@keyframes mr-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(7px); }
}
@keyframes mr-hero-rise {
    from { opacity: 0; transform: translateY(34px); }
    to   { opacity: 1; transform: none; }
}

/* The Rooms Section */
.mr-spaces { background: var(--white); padding-bottom: 2rem; }
.mr-spaces_inner { max-width: var(--max-width); margin: 0 auto; }
.mr-spaces_head { text-align: center; }


.mr-sheet {
    max-width: 880px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 20px 46px rgba(10, 34, 64, 0.09);
    padding: clamp(1.25rem, 3vw, 2.25rem);
}

.mr-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.mr-table thead th {
    padding: 0 0.6rem 0.85rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    white-space: nowrap;
}
.mr-table thead th:first-child { padding-left: 0.2rem; }
.mr-table thead th:last-child { padding-right: 0.2rem; }
.mr-table thead th:not(:first-child),
.mr-table tbody td { text-align: right; }

.mr-table tbody tr { transition: background 0.3s ease; }
.mr-table tbody tr:hover { background: var(--cream-light, #f9f7f4); }

.mr-table tbody th,
.mr-table tbody td {
    padding: 1.05rem 0.6rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    vertical-align: baseline;
}
.mr-table tbody th:first-child,
.mr-table tbody td:first-child { padding-left: 0.2rem; }
.mr-table tbody td:last-child { padding-right: 0.2rem; }
.mr-table tbody tr:last-child th,
.mr-table tbody tr:last-child td { border-bottom: 0; }

/* The whole room leads, so its row is set a shade heavier. */
.mr-table tbody tr.is-lead th,
.mr-table tbody tr.is-lead td { border-bottom-color: rgba(196, 156, 116, 0.5); }
.mr-table tbody tr.is-lead .mr-table_name { font-size: 1.12rem; }

.mr-table_name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.mr-table_no {
    display: inline-block;
    min-width: 2.1em;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--primary-color);
}

.mr-table tbody td b {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-dark);
    letter-spacing: 0.01em;
}
.mr-table tbody td span {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-left: 0.15rem;
}

/* At phone width the table stays a table — it just sets tighter, with the
   row number moved above the name so the first column can wrap. */
@media (max-width: 560px) {
    .mr-sheet { padding: 1.15rem 1rem; }
    .mr-table thead th {
        font-size: 0.6rem;
        letter-spacing: 0.1em;
        padding: 0 0.35rem 0.7rem;
    }
    .mr-table tbody th,
    .mr-table tbody td { padding: 0.9rem 0.35rem; }
    .mr-table_name { font-size: 0.92rem; white-space: normal; }
    .mr-table tbody tr.is-lead .mr-table_name { font-size: 1rem; }
    .mr-table_no { display: block; min-width: 0; margin-bottom: 0.2rem; }
    .mr-table tbody td b { font-size: 1.05rem; }
    .mr-table tbody td span { font-size: 0.62rem; letter-spacing: 0.05em; margin-left: 0.1rem; }
}

/* =====================================================================
   Behind The Louvres — the gallery. The blind draws back across the glass
   to show a gallery, and closes again before the next one is shown.
   ===================================================================== */
.mr-blind {
    background: var(--extra-light, #f4f1ed);
    padding: clamp(3.5rem, 8vw, 5.5rem) 1.25rem clamp(4rem, 9vw, 6rem);
}
.mr-blind_inner { max-width: 1000px; margin: 0 auto; }
.mr-blind_head { text-align: center; }

.mr-blind_frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    perspective: 1100px;
    background: #10161d;
    border: 1px solid rgba(196, 156, 116, 0.35);
    box-shadow: 0 26px 62px rgba(10, 34, 64, 0.2);
}

.mr-blind_glass { position: absolute; inset: 0; }

.mr-pane {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.mr-pane.is-on { opacity: 1; }
.mr-pane img {
    width: 100% !important;
    height: 100%;
    object-fit: cover;
    display: block !important;
}

/* The louvres themselves. */
.mr-slats {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    pointer-events: none;
}
.mr-slat {
    flex: 1 1 0;
    transform-origin: 50% 50%;
    transform: rotateY(0deg);
    background: linear-gradient(100deg, #f1ece3 0%, #ded6c8 48%, #cdc3b2 100%);
    border-right: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: inset -7px 0 14px -9px rgba(0, 0, 0, 0.45);
    /* Closing is a single quick pull; opening is the staggered reveal. */
    transition: transform 0.38s ease-in;
}
.mr-slat:last-child { border-right: 0; }

.mr-slats.is-open .mr-slat {
    /* Nearly edge-on, so the slivers take as little of the room as possible. */
    transform: rotateY(87deg);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--i) * 48ms);
}

.mr-blind_no {
    position: absolute;
    right: 1.1rem;
    bottom: 0.9rem;
    z-index: 3;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--white);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75);
}

.mr-blind_bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.6rem;
}
.mr-blind_step {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 50%;
    background: var(--white);
    color: var(--text-dark);
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.mr-blind_step:hover { background: var(--primary-color); border-color: var(--primary-color); color: var(--white); }

.mr-blind_dots { display: flex; align-items: center; gap: 0.55rem; }
.mr-blind_dot {
    width: 9px;
    height: 9px;
    padding: 0;
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.28);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.mr-blind_dot.is-on { background: var(--primary-color); border-color: var(--primary-color); transform: scale(1.25); }

/* One photograph has nothing to step through. */
.mr-blind.is-static .mr-blind_bar { display: none; }

/* =====================================================================
   CTA banner
   ===================================================================== */
.mr-cta {
    position: relative;
    min-height: 440px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--white);
    padding: 6rem 1.25rem;
    isolation: isolate;
}
.mr-cta_media { position: absolute; inset: 0; z-index: 0; }
.mr-cta_media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block !important;
}
.mr-cta_overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 34, 64, 0.85) 0%, rgba(10, 34, 64, 0.7) 100%);
}
.mr-cta_content { position: relative; z-index: 2; text-align: center; max-width: 900px; width: 100%; }
.mr-cta_eyebrow {
    display: inline-block;
    font-size: 0.86rem;
    letter-spacing: 0.44em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.mr-cta_title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    color: var(--white);
    font-weight: 400;
    margin: 1rem auto;
    letter-spacing: 0.02em;
    line-height: 1.15;
    max-width: 620px;
}
.mr-cta_text {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 620px;
    margin: 0 auto 2rem;
}
.mr-cta_actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.mr-cta_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 2.6rem;
    border: 2px solid var(--white);
    background: transparent;
    color: var(--white);
    font-family: 'roasterregular', sans-serif;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.92rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease,
                transform 0.2s ease, box-shadow 0.35s ease;
}
.mr-cta_btn:hover {
    background: var(--primary-color);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(196, 156, 116, 0.35);
}
.mr-cta_btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.mr-cta_btn--ghost:hover { background: var(--primary-color); border-color: var(--primary-color); color: var(--text-dark); }
.mr-cta_icon { transition: transform 0.3s ease; }
.mr-cta_btn:hover .mr-cta_icon--arrow { transform: translateX(5px); }
.mr-expand_toggle_btn[aria-expanded="true"] .mr-cta_icon { transform: rotate(180deg); }

/* =====================================================================
   Collapsible — essentials and booking policies
   ===================================================================== */
.mr-expansion {
    display: none;
    border-top: 1px solid rgba(10, 34, 64, 0.07);
    animation: mr-expand-in 0.5s ease;
}
.mr-expansion.open { display: block; }

@keyframes mr-expand-in {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mr-essentials { background: var(--white); padding: clamp(3.5rem, 8vw, 5.5rem) 1.25rem; }
.mr-essentials_inner { max-width: var(--max-width); margin: 0 auto; text-align: center; }

.mr-ess_row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    text-align: left;
    padding: clamp(1.75rem, 4vw, 2.75rem) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}
.mr-ess_row:first-of-type { border-top: 0; }
.mr-ess_row--reverse .mr-ess_media { order: 2; }

.mr-ess_media { margin: 0; overflow: hidden; }
.mr-ess_media img {
    width: 100% !important;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    display: block !important;
    transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.mr-ess_row:hover .mr-ess_media img { transform: scale(1.04); }

.mr-ess_title {
    font-size: clamp(1.3rem, 2.4vw, 1.75rem);
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.9rem;
}
.mr-ess_desc { color: var(--text-light); line-height: 1.8; margin: 0; }

/* Booking policies — the old modal table, now a list. */
.mr-policies { background: var(--white); padding: clamp(3.5rem, 8vw, 5.5rem) 1.25rem clamp(4.5rem, 10vw, 6.5rem); }
.mr-policies_inner { max-width: 820px; margin: 0 auto; text-align: center; }

.mr-policy_list { list-style: none; padding: 0; margin: 0.5rem 0 0; text-align: left; }
.mr-policy {
    padding: 1.4rem 0 1.4rem 1.4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 2px solid transparent;
    transition: border-left-color 0.3s ease, padding-left 0.3s ease;
}
.mr-policy:hover { border-left-color: var(--primary-color); padding-left: 1.7rem; }
.mr-policy_name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.01em;
    margin: 0 0 0.45rem;
}
.mr-policy_detail { color: var(--text-light); line-height: 1.75; margin: 0; }
.mr-policy_note {
    margin: 0.5rem 0 0;
    font-size: 0.86rem;
    font-style: italic;
    color: var(--primary-color);
}

/* =====================================================================
   Scroll-reveal — JS toggles .is-visible
   ===================================================================== */
.mr-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.mr-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .mr-edge_card,
    .mr-edge_scroll { animation: none !important; }
    .mr-edge_scroll { transform: translateX(-50%); }
    .mr-reveal { opacity: 1; transform: none; transition: none; }
    .mr-slats .mr-slat,
    .mr-slats.is-open .mr-slat { transition: transform 0.15s linear; transition-delay: 0s; }
}

/* =====================================================================
   Narrower screens
   ===================================================================== */
@media (max-width: 860px) {
    .mr-ess_row { grid-template-columns: 1fr; gap: 1.25rem; }
    .mr-ess_row--reverse .mr-ess_media { order: 0; }
}

@media (max-width: 640px) {
    .mr-edge_media { height: 78vh; min-height: 460px; }
    .mr-edge { --mr-card-overlap: 2.5rem; }
    .mr-spaces,
    .mr-blind,
    .mr-essentials,
    .mr-policies,
    .mr-cta { padding-left: 1rem; padding-right: 1rem; }
    .mr-cta { padding-top: 4.5rem; padding-bottom: 4.5rem; min-height: 380px; }
    .mr-cta_eyebrow { font-size: 0.78rem; letter-spacing: 0.36em; }
    .mr-blind_step { width: 38px; height: 38px; }
}
