/* ============================================================
   HOTEL RIVEL — WATERFALL POOL & TERRACE (ESTATE ZONE) PAGE
   STYLESHEET
   Scope: .rivel-waterfall-terrace-template (body also carries
   .rivel-site for shared header/footer/modal styles defined in
   global.css). Reuses design tokens and section patterns already
   established across the site (full hero, eyebrow, the estate
   page's two-column "arrival" layout repurposed as an "About This
   Space" block, section-header-split, faq accordion, proposal CTA,
   and the Capacity & Floor Plans page's table styling), plus three
   new components specific to estate-zone pages: a photo gallery
   grid, an amenities grid, and "nearby zone" cross-link cards.
   ============================================================ */

.rivel-waterfall-terrace-template *,
.rivel-waterfall-terrace-template *::before,
.rivel-waterfall-terrace-template *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.rivel-waterfall-terrace-template a { text-decoration: none; color: inherit; }
.rivel-waterfall-terrace-template ul { list-style: none; }
.rivel-waterfall-terrace-template button { border: none; background: none; cursor: pointer; font-family: inherit; }
.rivel-waterfall-terrace-template img { display: block; max-width: 100%; }

.rivel-waterfall-terrace-template .editorial-italic {
    font-family: var(--font-editorial);
    font-style: italic;
    font-weight: 500;
}
.rivel-waterfall-terrace-template .eyebrow-light-bg {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    color: var(--clr-terracotta);
}
.rivel-waterfall-terrace-template .eyebrow-dark-bg {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    color: var(--clr-warm-ivory);
}
.rivel-waterfall-terrace-template .section-index {
    color: var(--clr-terracotta);
    font-weight: 800;
    margin-right: 0.35em;
}
.rivel-waterfall-terrace-template .eyebrow-dark-bg .section-index { color: var(--clr-soft-sage); }

/* ============================================================
   HERO — copied 1:1 from the homepage hero (structure + classes),
   only the content/copy differs between the two templates.
   ============================================================ */
.rivel-waterfall-terrace-template .hero-section {
    position: relative;
    min-height: 80vh;
    min-height: 80dvh;
    margin-top: 0 !important;
    display: flex;
    align-items: flex-end;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
    color: var(--clr-warm-ivory);
    isolation: isolate;
}
.rivel-waterfall-terrace-template .hero-bg-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -2;
}
.rivel-waterfall-terrace-template .hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(210deg, rgba(16,42,32,0.10) 0%, rgba(16,42,32,0.75) 60%, rgba(10,26,20,0.95) 100%);
    z-index: -1;
}
.rivel-waterfall-terrace-template .hero-container {
    width: 100%; max-width: 1280px; margin: 0 auto;
    display: flex; flex-direction: column; justify-content: space-between; gap: 4rem;
}
.rivel-waterfall-terrace-template .hero-content-left { display: flex; flex-direction: column; max-width: 750px; padding-top: 0; }
.rivel-waterfall-terrace-template .hero-eyebrow {
    font-family: var(--font-primary); font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.15em;
    margin-top: 1rem; margin-bottom: 1rem; color: var(--clr-warm-ivory);
}
.rivel-waterfall-terrace-template .hero-title {
    font-family: var(--font-primary); font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 700; text-transform: uppercase; line-height: 0.98;
    letter-spacing: -0.035em; margin-bottom: 1.25rem;
}
.rivel-waterfall-terrace-template .text-ivory { color: var(--clr-warm-ivory); }
.rivel-waterfall-terrace-template .text-terracotta { color: var(--clr-terracotta); }
.rivel-waterfall-terrace-template .hero-description {
    font-family: var(--font-primary); font-size: clamp(0.9rem, 1.2vw, 1rem);
    line-height: 1.6; color: rgba(245,242,233,0.85); max-width: 500px;
    margin-top: 0; margin-bottom: 2.25rem;
}
.rivel-waterfall-terrace-template .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.rivel-waterfall-terrace-template .hero-btn-primary,
.rivel-waterfall-terrace-template .hero-btn-secondary {
    font-family: var(--font-primary); font-size: 0.8125rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em; border-radius: 50px;
    display: inline-flex; align-items: center; gap: 1rem; text-decoration: none;
}
.rivel-waterfall-terrace-template .hero-btn-primary {
    background-color: var(--clr-warm-ivory); color: var(--clr-primary-green);
    padding: 0.375rem 0.375rem 0.375rem 1.5rem;
}
.rivel-waterfall-terrace-template .hero-btn-primary:hover { background-color: #ffffff; }
.rivel-waterfall-terrace-template .btn-icon-wrapper {
    background-color: rgba(24,58,43,0.1); border: 1px solid rgba(24,58,43,0.15);
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: transform var(--transition-fast);
}
.rivel-waterfall-terrace-template .hero-btn-primary:hover .btn-icon-wrapper { transform: translateX(4px); }
.rivel-waterfall-terrace-template .hero-btn-secondary {
    background-color: transparent; color: var(--clr-warm-ivory);
    border: 1px solid rgba(245,242,233,0.4); padding: 0.375rem 1.5rem 0.375rem 0.375rem;
}
.rivel-waterfall-terrace-template .hero-btn-secondary:hover { background-color: rgba(245,242,233,0.1); border-color: var(--clr-warm-ivory); }
.rivel-waterfall-terrace-template .btn-icon-wrapper-outline {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(245,242,233,0.5);
    display: flex; align-items: center; justify-content: center;
}
.rivel-waterfall-terrace-template .hero-features-right { display: flex; flex-direction: row; align-items: center; gap: 1.5rem; }
.rivel-waterfall-terrace-template .hero-feature-item { display: flex; align-items: center; gap: 1rem; }
.rivel-waterfall-terrace-template .feature-icon {
    width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(245,242,233,0.3);
    display: flex; align-items: center; justify-content: center; color: var(--clr-warm-ivory); flex-shrink: 0;
}
.rivel-waterfall-terrace-template .feature-icon svg { width: 16px; height: 16px; }
.rivel-waterfall-terrace-template .feature-text {
    font-family: var(--font-primary); font-size: 0.6875rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.4; color: var(--clr-warm-ivory);
}
@media (min-width: 768px) { .rivel-waterfall-terrace-template .hero-features-right { flex-direction: row; gap: 2.5rem; } }
@media (min-width: 1024px) {
    .rivel-waterfall-terrace-template .hero-section { padding: 8rem 2rem 4rem; }
    .rivel-waterfall-terrace-template .hero-container { max-width: 1280px; flex-direction: row; align-items: flex-end; }
    .rivel-waterfall-terrace-template .hero-content-left { max-width: 700px; }
    .rivel-waterfall-terrace-template .hero-features-right { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding-bottom: 1rem; }
}
@media (min-width: 1440px) {
    .rivel-waterfall-terrace-template .hero-section { padding: 10rem 4rem 5rem; }
    .rivel-waterfall-terrace-template .hero-container { max-width: 1280px; }
}
@media (max-width: 767px) {
    .rivel-waterfall-terrace-template .hero-section { min-height: 100svh; padding: 7rem 1.5rem 3rem; align-items: flex-end; }
    .rivel-waterfall-terrace-template .hero-container { gap: 2.5rem; }
    .rivel-waterfall-terrace-template .hero-content-left { max-width: 100%; }
    .rivel-waterfall-terrace-template .hero-title { font-size: clamp(1.7rem, 8vw, 2.5rem); margin-top: 2rem; margin-bottom: 1rem; }
    .rivel-waterfall-terrace-template .hero-description { font-size: 0.9rem; max-width: 100%; margin-bottom: 1.75rem; }
    .rivel-waterfall-terrace-template .hero-actions { gap: 0.75rem; }
    .rivel-waterfall-terrace-template .hero-features-right { width: 100%; gap: 1rem; flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .rivel-waterfall-terrace-template .hero-section { padding-left: 1.25rem; padding-right: 1.25rem; }
    .rivel-waterfall-terrace-template .hero-title { font-size: 1.65rem; margin-top: 1.75rem; }
    .rivel-waterfall-terrace-template .hero-description { font-size: 0.875rem; }
    .rivel-waterfall-terrace-template .hero-btn-primary, .rivel-waterfall-terrace-template .hero-btn-secondary { font-size: 0.7rem; }
}

/* ============================================================
   STATS STRIP — reused for the Estate quick-facts row
   ============================================================ */
.rivel-waterfall-terrace-template .stats-strip-section { background-color: var(--clr-deep-green); color: var(--clr-warm-ivory); padding: 3rem 1.5rem; }
.rivel-waterfall-terrace-template .stats-strip-container { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem 2rem; text-align: center; }
.rivel-waterfall-terrace-template .stat-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; }
.rivel-waterfall-terrace-template .stat-value { font-family: var(--font-primary); font-size: clamp(1.5rem, 2.2vw, 2.25rem); font-weight: 400; color: var(--clr-warm-ivory); line-height: 1; letter-spacing: -0.02em; }
.rivel-waterfall-terrace-template .stat-label { font-family: var(--font-primary); font-size: clamp(0.8125rem, 1.3vw, 0.9375rem); color: var(--clr-text-primary); font-weight: 400; max-width: 220px; line-height: 1.4; }
@media (min-width: 768px) { .rivel-waterfall-terrace-template .stats-strip-container { grid-template-columns: repeat(4, 1fr); gap: 4rem 2rem; } }

/* ============================================================
   SHARED SECTION SCAFFOLDING
   ============================================================ */
.rivel-waterfall-terrace-template section { padding: 5rem 1.5rem; }
.rivel-waterfall-terrace-template .container { max-width: 1280px; margin: 0 auto; }
.rivel-waterfall-terrace-template .section-header-split {
    display: flex; flex-direction: column; gap: 1.5rem;
    margin-bottom: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(32,36,31,0.1);
}
.rivel-waterfall-terrace-template .section-heading { font-family: var(--font-primary); font-size: clamp(1.75rem, 3.2vw, 2.75rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; color: var(--clr-text-primary); }
.rivel-waterfall-terrace-template .section-desc { font-family: var(--font-primary); font-size: 1rem; line-height: 1.7; color: var(--clr-text-secondary); max-width: 480px; }
@media (min-width: 1024px) {
    .rivel-waterfall-terrace-template section { padding: 7rem 2rem; }
    .rivel-waterfall-terrace-template .section-header-split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 3rem; }
}
.rivel-waterfall-terrace-template .pill-btn {
    display: inline-flex; align-items: center; gap: 0.75rem;
    font-family: var(--font-primary); font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em; border-radius: 50px;
    padding: 0.375rem 0.375rem 0.375rem 1.5rem; text-decoration: none;
    background-color: var(--clr-primary-green); color: var(--clr-warm-ivory);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.rivel-waterfall-terrace-template .pill-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.rivel-waterfall-terrace-template .pill-btn .btn-circle {
    width: 32px; height: 32px; border-radius: 50%; background-color: rgba(245,242,233,0.15);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: transform var(--transition-fast);
}
.rivel-waterfall-terrace-template .pill-btn:hover .btn-circle { transform: translateX(3px); }
.rivel-waterfall-terrace-template .pill-btn-inverse { background-color: var(--clr-warm-ivory); color: var(--clr-primary-green); }
.rivel-waterfall-terrace-template .pill-btn-inverse .btn-circle { background-color: rgba(24,58,43,0.1); }


/* ============================================================
   10 — PLAN YOUR VISIT (arrival + FAQ + proposal CTA)
   ============================================================ */
/* ============================================================
   ABOUT THIS SPACE
   Match the same 1280px content width as other page sections
   ============================================================ */

.rivel-waterfall-terrace-template .arrival-section {
    background-color: var(--clr-warm-ivory);

    display: flex;
    flex-direction: column;
    gap: 2.5rem;

    /* Mobile spacing */
    padding: 5rem 1.5rem;

    width: 100%;
}

/* ============================================================
   LEFT / RIGHT CONTENT
   ============================================================ */

.rivel-waterfall-terrace-template .arrival-left,
.rivel-waterfall-terrace-template .arrival-right {
    width: 100%;
    min-width: 0;
}

.rivel-waterfall-terrace-template .arrival-headline {
    font-family: var(--font-primary);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 500;
    margin-bottom: 1rem;
}


.rivel-waterfall-terrace-template .arrival-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--clr-text-secondary);
    max-width: 460px;
    margin-bottom: 1.75rem;
}

.rivel-waterfall-terrace-template .arrival-divider {
    border: none;
    border-top: 1px solid rgba(32,36,31,0.12);
    margin: 1.75rem 0;
}

.rivel-waterfall-terrace-template .arrival-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.rivel-waterfall-terrace-template .stat-block {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.rivel-waterfall-terrace-template .stat-time {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--clr-primary-green);
}

.rivel-waterfall-terrace-template .arrival-fine-print {
    font-size: 0.8125rem;
    color: var(--clr-text-muted);
    line-height: 1.6;
}

/* ============================================================
   IMAGE
   ============================================================ */

.rivel-waterfall-terrace-template .map-image-wrap {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
}

.rivel-waterfall-terrace-template .map-image {
    width: 100%;
    display: block;
    height: auto;
}


/* ============================================================
   DESKTOP
   ============================================================ */

@media (min-width: 1024px) {

    .rivel-waterfall-terrace-template .arrival-section {
        /*
         * Keep the background full width,
         * but constrain the actual content to 1280px.
         *
         * At 1440px viewport:
         * (1440 - 1280) / 2 = 80px on each side.
         */
        padding-top: 7rem;
        padding-bottom: 7rem;

        padding-left: max(2rem, calc((100vw - 1280px) / 2));
        padding-right: max(2rem, calc((100vw - 1280px) / 2));

        flex-direction: row;
        align-items: center;

        gap: 4rem;
    }

    .rivel-waterfall-terrace-template .arrival-left,
    .rivel-waterfall-terrace-template .arrival-right {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
    }

}


/* ============================================================
   LARGE DESKTOP
   ============================================================ */

@media (min-width: 1440px) {

    .rivel-waterfall-terrace-template .arrival-section {
        padding-left: max(4rem, calc((100vw - 1280px) / 2));
        padding-right: max(4rem, calc((100vw - 1280px) / 2));
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 767px) {

    .rivel-waterfall-terrace-template .arrival-section {
        padding: 5rem 1.5rem;
    }

    .rivel-waterfall-terrace-template .arrival-desc {
        max-width: 100%;
    }

    .rivel-waterfall-terrace-template .arrival-stats {
        gap: 1.5rem;
    }

}


.rivel-waterfall-terrace-template .faq-section { background-color: var(--clr-soft-cream); }
.rivel-waterfall-terrace-template .faq-list { display: flex; flex-direction: column; gap: 0.75rem; max-width: 100%; }
.rivel-waterfall-terrace-template .faq-item { background-color: #ffffff; border-radius: 14px; overflow: hidden; border: 1px solid rgba(32,36,31,0.08); }
.rivel-waterfall-terrace-template .faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; text-align: left; font-family: var(--font-primary); font-size: 1rem; font-weight: 600; color: var(--clr-text-primary); }
.rivel-waterfall-terrace-template .faq-plus { font-size: 1.25rem; color: var(--clr-terracotta); transition: transform var(--transition-fast); flex-shrink: 0; }
.rivel-waterfall-terrace-template .faq-item.active .faq-plus { transform: rotate(45deg); }
.rivel-waterfall-terrace-template .faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.rivel-waterfall-terrace-template .faq-item.active .faq-answer { max-height: 260px; }
.rivel-waterfall-terrace-template .faq-answer-inner { padding: 0 1.5rem 1.25rem; font-size: 0.9375rem; line-height: 1.65; color: var(--clr-text-secondary); }


/* ---- Group Proposal Section (matches sitewide proposal component) ---- */
.rivel-waterfall-terrace-template .rivel-proposal-section { background-color: var(--clr-soft-cream); padding: 0 1.5rem 4rem 1.5rem; }
.rivel-waterfall-terrace-template .rivel-proposal-container { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 2.5rem; }
.rivel-waterfall-terrace-template .proposal-title { font-family: var(--font-primary); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 500; line-height: 1.15; }
.rivel-waterfall-terrace-template .proposal-italic { display: block; font-family: var(--font-editorial); font-style: italic; color: var(--clr-terracotta); }
.rivel-waterfall-terrace-template .proposal-subtext { font-size: 1rem; line-height: 1.7; color: var(--clr-text-secondary); max-width: 420px; margin-top: 1.25rem; }
.rivel-waterfall-terrace-template .proposal-form-box { background-color: #ffffff; border-radius: 18px; padding: 2rem; box-shadow: 0 16px 40px rgba(16,42,32,0.08); }
.rivel-waterfall-terrace-template .form-box-header { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(32,36,31,0.1); }
.rivel-waterfall-terrace-template .form-eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; color: var(--clr-terracotta); text-transform: uppercase; }
.rivel-waterfall-terrace-template .form-title { font-family: var(--font-primary); font-size: 1.375rem; font-weight: 600; }
.rivel-waterfall-terrace-template .form-header-meta { display: flex; gap: 1rem; font-size: 0.75rem; color: var(--clr-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
@media (min-width: 1024px) {
    .rivel-waterfall-terrace-template .rivel-proposal-container { flex-direction: row; gap: 4rem; }
    .rivel-waterfall-terrace-template .rivel-proposal-left, .rivel-waterfall-terrace-template .rivel-proposal-right { flex: 1; }
    .rivel-waterfall-terrace-template .form-box-header { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

/* ============================================================
   HERO BREADCRUMB — sits above the eyebrow on the full immersive
   hero (used on estate-zone pages, unlike the compact utility
   hero used on Plan Your Group pages)
   ============================================================ */
.rivel-waterfall-terrace-template .hero-breadcrumb {
    display: flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-primary); font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: rgba(245,242,233,0.65); margin-bottom: 1rem;
}
.rivel-waterfall-terrace-template .hero-breadcrumb a { color: rgba(245,242,233,0.85); transition: color var(--transition-fast); }
.rivel-waterfall-terrace-template .hero-breadcrumb a:hover { color: var(--clr-warm-ivory); }
.rivel-waterfall-terrace-template .hero-breadcrumb span:last-child { color: var(--clr-warm-ivory); }

/* ============================================================
   02 — GALLERY
   ============================================================ */
.rivel-waterfall-terrace-template .zone-gallery-section { background-color: var(--clr-soft-cream); }
.rivel-waterfall-terrace-template .zone-gallery-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.rivel-waterfall-terrace-template .zone-gallery-item { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
.rivel-waterfall-terrace-template .zone-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.rivel-waterfall-terrace-template .zone-gallery-item:hover img { transform: scale(1.06); }
@media (min-width: 640px) {
    .rivel-waterfall-terrace-template .zone-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .rivel-waterfall-terrace-template .zone-gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1.25rem; }
    .rivel-waterfall-terrace-template .zone-gallery-item-large { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
    .rivel-waterfall-terrace-template .zone-gallery-item:not(.zone-gallery-item-large) { aspect-ratio: auto; }
}

/* ============================================================
   03 — AMENITIES
   ============================================================ */
.rivel-waterfall-terrace-template .zone-amenities-section { background-color: var(--clr-warm-ivory); }
.rivel-waterfall-terrace-template .zone-amenities-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.rivel-waterfall-terrace-template .zone-amenity-card { display: flex; flex-direction: column; align-items: flex-start; }
.rivel-waterfall-terrace-template .zone-amenity-icon {
    width: 48px; height: 48px; border-radius: 12px; background-color: rgba(16,42,32,0.06);
    color: var(--clr-primary-green); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
}
.rivel-waterfall-terrace-template .zone-amenity-title { font-family: var(--font-primary); font-size: 1.0625rem; font-weight: 600; color: var(--clr-text-primary); margin-bottom: 0.5rem; }
.rivel-waterfall-terrace-template .zone-amenity-text { font-size: 0.9375rem; line-height: 1.6; color: var(--clr-text-secondary); }
@media (min-width: 640px) {
    .rivel-waterfall-terrace-template .zone-amenities-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .rivel-waterfall-terrace-template .zone-amenities-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

/* ============================================================
   04 — CAPACITY & LAYOUTS (single-space table, same visual
   language as the Capacity & Floor Plans page's matrix table)
   ============================================================ */
.rivel-waterfall-terrace-template .zone-capacity-section { background-color: var(--clr-soft-cream); }
.rivel-waterfall-terrace-template .capacity-table-wrap {
    width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
    border-radius: 16px; border: 1px solid rgba(32,36,31,0.1);
    box-shadow: 0 8px 24px rgba(16,42,32,0.05);
}
.rivel-waterfall-terrace-template .capacity-table {
    width: 100%; min-width: 480px; border-collapse: collapse;
    font-family: var(--font-primary); background-color: #ffffff;
}
.rivel-waterfall-terrace-template .capacity-table thead th {
    text-align: left; padding: 1rem 1.25rem; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em; color: var(--clr-warm-ivory);
    background-color: var(--clr-primary-green); white-space: nowrap;
}
.rivel-waterfall-terrace-template .capacity-table thead th:first-child { border-top-left-radius: 16px; }
.rivel-waterfall-terrace-template .capacity-table thead th:last-child { border-top-right-radius: 16px; }
.rivel-waterfall-terrace-template .capacity-table tbody th,
.rivel-waterfall-terrace-template .capacity-table tbody td {
    padding: 1rem 1.25rem; font-size: 0.9375rem; border-top: 1px solid rgba(32,36,31,0.08);
}
.rivel-waterfall-terrace-template .capacity-table tbody th { text-align: left; font-weight: 600; color: var(--clr-text-primary); white-space: nowrap; }
.rivel-waterfall-terrace-template .capacity-table tbody td { color: var(--clr-text-secondary); }
.rivel-waterfall-terrace-template .capacity-table tbody tr:nth-child(even) { background-color: var(--clr-soft-cream); }

/* ============================================================
   05 — NEARBY ON THE ESTATE
   ============================================================ */
.rivel-waterfall-terrace-template .zone-nearby-section { background-color: var(--clr-warm-ivory); }
.rivel-waterfall-terrace-template .zone-nearby-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.rivel-waterfall-terrace-template .zone-nearby-card {
    display: block; border-radius: 16px; overflow: hidden; background-color: #ffffff;
    border: 1px solid rgba(32,36,31,0.08); box-shadow: 0 8px 24px rgba(16,42,32,0.05);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.rivel-waterfall-terrace-template .zone-nearby-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(16,42,32,0.1); }
.rivel-waterfall-terrace-template .zone-nearby-thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.rivel-waterfall-terrace-template .zone-nearby-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.rivel-waterfall-terrace-template .zone-nearby-card:hover .zone-nearby-thumb img { transform: scale(1.06); }
.rivel-waterfall-terrace-template .zone-nearby-body { padding: 1.25rem 1.5rem; }
.rivel-waterfall-terrace-template .zone-nearby-title { font-family: var(--font-primary); font-size: 1.0625rem; font-weight: 600; color: var(--clr-text-primary); margin-bottom: 0.3rem; }
.rivel-waterfall-terrace-template .zone-nearby-text { font-family: var(--font-editorial); font-style: italic; font-size: 0.9375rem; color: var(--clr-terracotta); }
@media (min-width: 768px) {
    .rivel-waterfall-terrace-template .zone-nearby-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   GALLERY LIGHTBOX (created dynamically by waterfall-terrace.js)
   ============================================================ */
.rivel-waterfall-terrace-template .zone-lightbox-overlay {
    position: fixed; inset: 0; background-color: rgba(16,42,32,0.92);
    display: flex; align-items: center; justify-content: center;
    padding: 2rem; z-index: 1000; opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
}
.rivel-waterfall-terrace-template .zone-lightbox-overlay.active { opacity: 1; pointer-events: auto; }
.rivel-waterfall-terrace-template .zone-lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.rivel-waterfall-terrace-template .zone-lightbox-close {
    position: absolute; top: 1.5rem; right: 1.5rem; width: 44px; height: 44px;
    border-radius: 50%; background-color: rgba(245,242,233,0.1); color: var(--clr-warm-ivory);
    font-size: 1.75rem; line-height: 1; display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(245,242,233,0.3); transition: background-color var(--transition-fast);
}
.rivel-waterfall-terrace-template .zone-lightbox-close:hover { background-color: rgba(245,242,233,0.2); }

/* ============================================================
   ABOUT THIS SPACE — MATCH SITEWIDE CONTENT WIDTH
   ============================================================ */

.rivel-plan-your-group-faq-template .about-space-container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}
