/* ============================================================
   HOTEL RIVEL — ESTATE PAGE STYLESHEET
   Scope: .rivel-estate-template (body also carries .rivel-site
   for shared header/footer/modal styles defined in global.css)
   Reuses design tokens from global.css: colors, fonts, transitions.
   ============================================================ */

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

.rivel-estate-template .editorial-italic {
    font-family: var(--font-editorial);
    font-style: italic;
    font-weight: 500;
}
.rivel-estate-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-estate-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-estate-template .section-index {
    color: var(--clr-terracotta);
    font-weight: 800;
    margin-right: 0.35em;
}
.rivel-estate-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-estate-template .hero-section {
    position: relative;
    min-height: 80vh;
    min-height: 80dvh;
    margin-top: 0 !important;
    display: flex;
    align-items: flex-end;
    padding: 8rem 2rem 0;
    overflow: hidden;
    color: var(--clr-warm-ivory);
    isolation: isolate;
}
.rivel-estate-template .hero-bg-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -2;
}
.rivel-estate-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-estate-template .hero-container {
    width: 100%; max-width: 1280px; margin: 0 auto;
    display: flex; flex-direction: column; justify-content: space-between; gap: 4rem;
}
.rivel-estate-template .hero-content-left { display: flex; flex-direction: column; max-width: 750px; padding-top: 0; }
.rivel-estate-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-estate-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-estate-template .text-ivory { color: var(--clr-warm-ivory); }
.rivel-estate-template .text-terracotta { color: var(--clr-terracotta); }
.rivel-estate-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-estate-template .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.rivel-estate-template .hero-btn-primary,
.rivel-estate-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-estate-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-estate-template .hero-btn-primary:hover { background-color: #ffffff; }
.rivel-estate-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-estate-template .hero-btn-primary:hover .btn-icon-wrapper { transform: translateX(4px); }
.rivel-estate-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-estate-template .hero-btn-secondary:hover { background-color: rgba(245,242,233,0.1); border-color: var(--clr-warm-ivory); }
.rivel-estate-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-estate-template .hero-features-right { display: flex; flex-direction: row; align-items: center; gap: 1.5rem; }
.rivel-estate-template .hero-feature-item { display: flex; align-items: center; gap: 1rem; }
.rivel-estate-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-estate-template .feature-icon svg { width: 16px; height: 16px; }
.rivel-estate-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-estate-template .hero-features-right { flex-direction: row; gap: 2.5rem; } }
@media (min-width: 1024px) {
    .rivel-estate-template .hero-section { padding: 8rem 2rem 4rem; }
    .rivel-estate-template .hero-container { max-width: 1280px; flex-direction: row; align-items: flex-end; }
    .rivel-estate-template .hero-content-left { max-width: 700px; }
    .rivel-estate-template .hero-features-right { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding-bottom: 1rem; }
}
@media (min-width: 1440px) {
    .rivel-estate-template .hero-section { padding: 10rem 4rem 5rem; }
    .rivel-estate-template .hero-container { max-width: 1280px; }
}
@media (max-width: 767px) {
    .rivel-estate-template .hero-section { min-height: 100svh; padding: 7rem 1.5rem 3rem; align-items: flex-end; }
    .rivel-estate-template .hero-container { gap: 2.5rem; }
    .rivel-estate-template .hero-content-left { max-width: 100%; }
    .rivel-estate-template .hero-title { font-size: clamp(1.7rem, 8vw, 2.5rem); margin-top: 2rem; margin-bottom: 1rem; }
    .rivel-estate-template .hero-description { font-size: 0.9rem; max-width: 100%; margin-bottom: 1.75rem; }
    .rivel-estate-template .hero-actions { gap: 0.75rem; }
    .rivel-estate-template .hero-features-right { width: 100%; gap: 1rem; flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .rivel-estate-template .hero-section { padding-left: 1.25rem; padding-right: 1.25rem; }
    .rivel-estate-template .hero-title { font-size: 1.65rem; margin-top: 1.75rem; }
    .rivel-estate-template .hero-description { font-size: 0.875rem; }
    .rivel-estate-template .hero-btn-primary, .rivel-estate-template .hero-btn-secondary { font-size: 0.7rem; }
}

/* ============================================================
   STATS STRIP — reused for the Estate quick-facts row
   ============================================================ */
.rivel-estate-template .stats-strip-section { background-color: var(--clr-deep-green); color: var(--clr-warm-ivory); padding: 3rem 1.5rem; }
.rivel-estate-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-estate-template .stat-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; }
.rivel-estate-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-estate-template .stat-label { font-family: var(--font-primary); font-size: clamp(0.8125rem, 1.3vw, 0.9375rem); color: var(--clr-soft-cream); font-weight: 400; max-width: 220px; line-height: 1.4; }
@media (min-width: 768px) { .rivel-estate-template .stats-strip-container { grid-template-columns: repeat(4, 1fr); gap: 4rem 2rem; } }

/* ============================================================
   SHARED SECTION SCAFFOLDING
   ============================================================ */
.rivel-estate-template section { padding: 5rem 1.5rem; }
.rivel-estate-template .container { max-width: 1280px; margin: 0 auto; }
.rivel-estate-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-estate-template .section-heading { font-family: var(--font-editorial); 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-estate-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-estate-template section { padding: 7rem 2rem; }
    .rivel-estate-template .section-header-split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 3rem; }
}
.rivel-estate-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-estate-template .pill-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.rivel-estate-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-estate-template .pill-btn:hover .btn-circle { transform: translateX(3px); }
.rivel-estate-template .pill-btn-inverse { background-color: var(--clr-warm-ivory); color: var(--clr-primary-green); }
.rivel-estate-template .pill-btn-inverse .btn-circle { background-color: rgba(24,58,43,0.1); }

/* ==========================================================================
   INTERACTIVE ESTATE SECTION: single source of truth
   Desktop  >= 1024px    : card floats over the bottom edge of the map
   Tablet   768-1023px   : card sits below the map, slight overlap
   Mobile   <= 767px     : swipeable map, card below it
   ========================================================================== */

/* ---------- Shared base ---------- */
.rivel-estate-template .interactive-estate-section{
    --pin-size: 32px;
    background-color: var(--clr-warm-ivory);
    padding: 6rem 0;
    color: var(--clr-text-primary);
    overflow: hidden;
    position: relative;
}

.rivel-estate-template .estate-header-wrapper{
    position: relative;
    z-index: 5;
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.rivel-estate-template .estate-map-heading{
    margin: 0;
    font-family: var(--font-editorial, "Georgia", serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--clr-primary-green);
    letter-spacing: -0.01em;
}

.rivel-estate-template .estate-map-desc{
    margin: 0;
    font-family: var(--font-primary);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.6;
    color: var(--clr-text-secondary);
    max-width: 650px;
}

.rivel-estate-template .estate-map-container{
    position: relative;
    width: 100%;
    margin: 0 auto;
    background-color: var(--clr-warm-ivory);
}

.rivel-estate-template .map-scroll-wrapper{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.rivel-estate-template .map-scroll-inner{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.rivel-estate-template .estate-map-bg{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* ---------- Pins ---------- */
.rivel-estate-template .estate-pin,
.rivel-estate-template .estate-pin.active{
    position: absolute;
    z-index: 25;
    box-sizing: border-box !important;
    width: var(--pin-size) !important;
    height: var(--pin-size) !important;
    min-width: var(--pin-size) !important;
    min-height: var(--pin-size) !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background-color: var(--clr-warm-ivory);
    border: 2px solid var(--clr-primary-green);
    transform: translate(-50%, -50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.rivel-estate-template .pin-number{
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--clr-primary-green);
}

.rivel-estate-template .pin-ripple{
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 1px solid var(--clr-warm-ivory);
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.rivel-estate-template .estate-pin:hover{
    transform: translate(-50%, -50%) scale(1.1);
}

.rivel-estate-template .estate-pin.active{
    background-color: var(--clr-terracotta);
    border-color: var(--clr-terracotta);
    transform: translate(-50%, -50%) scale(1.15);
}

.rivel-estate-template .estate-pin.active .pin-number{
    color: var(--clr-warm-ivory);
}

.rivel-estate-template .estate-pin.active .pin-ripple{
    animation: ripplePulse 2s infinite;
}

@keyframes ripplePulse{
    0%   { transform: scale(1);   opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* ---------- Info card: look only (position is set per breakpoint) ---------- */
.rivel-estate-template .estate-floating-card{
    z-index: 20;
    box-sizing: border-box;
    background-color: rgba(245, 242, 233, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;   /* was 2rem: slimmer card */
    box-shadow: 0 16px 40px rgba(16, 42, 32, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.rivel-estate-template .card-content-inner{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: opacity 0.3s ease;
}

.rivel-estate-template .card-content-inner.fade-out{ opacity: 0; }

.rivel-estate-template .card-badge-row{
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;    /* was 1rem */
}

.rivel-estate-template .card-zone-badge{
    font-family: var(--font-primary);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--clr-terracotta);
    text-transform: uppercase;
    background-color: rgba(212, 110, 89, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
}

.rivel-estate-template .card-status-badge{
    font-family: var(--font-primary);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
}

.rivel-estate-template .status-available{
    color: var(--clr-primary-green);
    background-color: rgba(16, 42, 32, 0.1);
}

.rivel-estate-template .status-planned{
    color: var(--clr-terracotta);
    border: 1px dashed var(--clr-terracotta);
    background-color: transparent;
}

.rivel-estate-template .estate-floating-card .card-title{
    margin: 0 0 0.25rem 0;
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--clr-primary-green);
    letter-spacing: 0.02em;
}

.rivel-estate-template .card-subtitle{
    margin: 0 0 0.75rem 0;     /* was 1rem */
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--clr-terracotta);
}

.rivel-estate-template .card-desc{
    margin: 0 0 1.25rem 0;     /* was 1.5rem */
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--clr-text-secondary);
}

/* When a zone has no buttons, the description is the last element,
   so remove the extra bottom gap that was reserved for the button */
.rivel-estate-template .card-desc:last-child{
    margin-bottom: 0;
}

/* ---------- Buttons ---------- */
.rivel-estate-template .card-btn,
.rivel-estate-template .estate-floating-card .card-btn{
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--clr-warm-ivory) !important;
    background-color: var(--clr-primary-green) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;       /* keep label + arrow on one line */
    transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.rivel-estate-template .card-btn:hover,
.rivel-estate-template .estate-floating-card .card-btn:hover{
    background-color: var(--clr-deep-green) !important;
    transform: translateY(-2px);
}

/* Wrapper holding one or two buttons: centered, side by side.
   Wraps only as a last resort on very narrow screens. */
.rivel-estate-template .card-btn-row{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
}

/* Slightly more compact buttons when two sit in a row */
.rivel-estate-template .card-btn-row .card-btn{
    padding: 0.7rem 1.25rem;
    font-size: 0.8125rem;
}

/* Outlined second button (Zone 01 "Penthouse").
   Inset box-shadow draws the outline so its size matches the primary button. */
.rivel-estate-template .card-btn.card-btn--secondary,
.rivel-estate-template .estate-floating-card .card-btn.card-btn--secondary{
    background-color: transparent !important;
    color: var(--clr-primary-green) !important;
    box-shadow: inset 0 0 0 1.5px var(--clr-primary-green);
}

.rivel-estate-template .card-btn.card-btn--secondary:hover,
.rivel-estate-template .estate-floating-card .card-btn.card-btn--secondary:hover{
    background-color: var(--clr-primary-green) !important;
    color: var(--clr-warm-ivory) !important;
}


/* ==========================================================================
   DESKTOP (1024px and up): card floats over the bottom of the map,
   anchored BELOW pins 09 / 10 (they sit at ~70-72% of the map height)
   ========================================================================== */
@media (min-width: 1024px){

    .rivel-estate-template .interactive-estate-section{
        padding: 8rem 0 14rem 0;   /* extra bottom room because the card now sits lower */
    }

    .rivel-estate-template .estate-map-container{
        aspect-ratio: 16 / 9;
    }

    .rivel-estate-template .estate-map-container::before,
    .rivel-estate-template .estate-map-container::after{
        content: "";
        position: absolute;
        left: 0;
        width: 100%;
        z-index: 2;
        pointer-events: none;
    }
    .rivel-estate-template .estate-map-container::before{
        top: 0;
        height: 30%;
        background: linear-gradient(to bottom, var(--clr-warm-ivory) 0%, rgba(245, 242, 233, 0) 100%);
    }
    .rivel-estate-template .estate-map-container::after{
        bottom: 0;
        height: 40%;
        background: linear-gradient(to top, var(--clr-warm-ivory) 0%, rgba(245, 242, 233, 0) 100%);
    }

    .rivel-estate-template .estate-floating-card{
        position: absolute;
        top: 78%;                  /* was bottom: -9rem. Now always clears pins 09 / 10 */
        right: auto;
        bottom: auto;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        width: 90%;
        max-width: 480px;          /* room for two inline buttons */
    }
}

@media (min-width: 1280px){
    .rivel-estate-template .interactive-estate-section{
        padding: 8rem 0 11rem 0;
    }
}


/* ==========================================================================
   TABLET (768px - 1023px): card below the map, slight overlap
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1023px){

    .rivel-estate-template .interactive-estate-section{
        --pin-size: 36px;
        padding: 5rem 0 4rem;
    }

    .rivel-estate-template .estate-map-container{
        height: auto;
    }

    .rivel-estate-template .map-scroll-wrapper{
        position: relative;
        height: auto;
        aspect-ratio: 16 / 10;
        overflow: hidden;
        border-radius: 16px;
    }

    .rivel-estate-template .map-scroll-wrapper::before,
    .rivel-estate-template .map-scroll-wrapper::after{
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        z-index: 2;
        pointer-events: none;
    }
    .rivel-estate-template .map-scroll-wrapper::before{
        top: 0;
        height: 25%;
        background: linear-gradient(to bottom, var(--clr-warm-ivory) 0%, rgba(245, 242, 233, 0) 100%);
    }
    .rivel-estate-template .map-scroll-wrapper::after{
        bottom: 0;
        height: 30%;
        background: linear-gradient(to top, var(--clr-warm-ivory) 0%, rgba(245, 242, 233, 0) 100%);
    }

    .rivel-estate-template .estate-floating-card{
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        transform: none;
        width: calc(100% - 3rem);
        max-width: 480px;
        margin: -3rem auto 0;
    }
}


/* ==========================================================================
   MOBILE (767px and below): swipeable map, card below it
   The map is 4:5, so its height is 125vw. The fades sit on the container
   (which doesn't scroll) and are sized in vw, so they stay put while the
   map is swiped and never cover the pins or the card.
   ========================================================================== */
@media (max-width: 767px){

    .rivel-estate-template .interactive-estate-section{
        --pin-size: 40px;
        padding: 4rem 0;
    }

    .rivel-estate-template .estate-map-container{
        height: auto;
    }

    .rivel-estate-template .map-scroll-wrapper{
        position: relative;
        height: auto;
        aspect-ratio: 4 / 5;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-radius: 16px;
    }
    .rivel-estate-template .map-scroll-wrapper::-webkit-scrollbar{
        display: none;
    }

    .rivel-estate-template .map-scroll-inner{
        position: relative;
        width: 1000px;
        height: 100%;
    }

    .rivel-estate-template .estate-map-container::before,
    .rivel-estate-template .estate-map-container::after{
        content: "";
        position: absolute;
        left: 0;
        width: 100%;
        z-index: 2;
        pointer-events: none;
    }
    .rivel-estate-template .estate-map-container::before{
        top: 0;
        height: 37.5vw; /* 30% of the 125vw map */
        background: linear-gradient(to bottom, var(--clr-warm-ivory) 0%, rgba(245, 242, 233, 0) 100%);
    }
    .rivel-estate-template .estate-map-container::after{
        top: 75vw;      /* map bottom (125vw) minus 40% (50vw) */
        height: 50vw;
        background: linear-gradient(to top, var(--clr-warm-ivory) 0%, rgba(245, 242, 233, 0) 100%);
    }

    .rivel-estate-template .estate-floating-card{
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        transform: none;
        width: calc(100% - 3rem);
        max-width: none;
        margin: -2rem auto 0;
        padding: 1.5rem 1.25rem;
    }

    /* Tighter buttons so both fit on one row on small phones */
    .rivel-estate-template .card-btn-row .card-btn{
        padding: 0.65rem 1rem;
        font-size: 0.8125rem;
    }
}

/* ============================================================
   02 — THE SPACES (tabbed showcase)
   ============================================================ */
.rivel-estate-template .spaces-section { background-color: var(--clr-soft-cream); }
.rivel-estate-template .spaces-tabs { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.rivel-estate-template .spaces-tab {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: var(--font-primary); font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
    color: var(--clr-text-secondary); background-color: #ffffff; border: 1px solid rgba(32,36,31,0.1);
    padding: 0.75rem 1.25rem; border-radius: 50px; transition: all var(--transition-fast);
}
.rivel-estate-template .spaces-tab.active,
.rivel-estate-template .spaces-tab:hover { background-color: var(--clr-primary-green); color: var(--clr-warm-ivory); border-color: var(--clr-primary-green); }
.rivel-estate-template .spaces-stage { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.rivel-estate-template .spaces-img-wrap { border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; }
.rivel-estate-template .spaces-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.rivel-estate-template .spaces-copy-title { font-family: var(--font-editorial); font-size: 1.75rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--clr-text-primary); }
.rivel-estate-template .spaces-copy-desc { font-size: 1rem; line-height: 1.7; color: var(--clr-text-secondary); margin-bottom: 1.75rem; }
.rivel-estate-template .spaces-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; padding-top: 1.5rem; border-top: 1px solid rgba(32,36,31,0.1); }
.rivel-estate-template .spaces-stat-label { display: block; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--clr-text-muted); margin-bottom: 0.35rem; }
.rivel-estate-template .spaces-stat-val { font-family: var(--font-primary); font-size: 0.9375rem; font-weight: 600; color: var(--clr-text-primary); }
.rivel-estate-template .tab-panel[hidden] { display: none; }
@media (min-width: 1024px) { .rivel-estate-template .spaces-stage { grid-template-columns: 1.2fr 1fr; align-items: center; } }

/* ============================================================
   03 — NATURE & SURROUNDINGS (featured + subgrid)
   ============================================================ */
.rivel-estate-template .nature-section { background-color: var(--clr-warm-ivory); }
.rivel-estate-template .nature-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.rivel-estate-template .nature-card { position: relative; border-radius: 16px; overflow: hidden; min-height: 240px; display: flex; align-items: flex-end; }
.rivel-estate-template .nature-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.rivel-estate-template .nature-card:hover img { transform: scale(1.06); }
.rivel-estate-template .nature-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,42,32,0.75) 0%, rgba(16,42,32,0.05) 65%); }
.rivel-estate-template .nature-card-content { position: relative; z-index: 2; padding: 1.25rem; color: var(--clr-warm-ivory); }
.rivel-estate-template .nature-card-title { font-family: var(--font-editorial); color:var(--clr-warm-ivory); font-size: 1.0625rem; font-weight: 600; }
.rivel-estate-template .nature-card-text { font-size: 0.8125rem; color: rgba(245,242,233,0.85); }
@media (min-width: 600px) {
    .rivel-estate-template .nature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .rivel-estate-template .nature-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
    .rivel-estate-template .nature-card { min-height: 280px; }
}

    
/* ==========================================================================
   GROUP LODGING SECTION (photo-first layout, premium card)
   Card sits below the photo with only a small overlap.
   ========================================================================== */

.rivel-estate-template .group-lodging {
    background-color: var(--clr-deep-green);
    color: var(--clr-warm-ivory);
    padding-block: clamp(5rem, 8vw, 8rem);
    overflow: hidden;
    position: relative;
}

/* ---------- Header ---------- */
.rivel-estate-template .gl-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto clamp(3rem, 6vw, 5rem);
    padding: 0 1.5rem;
}

.rivel-estate-template .gl-heading {
    font-family: var(--font-editorial);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    margin-block: 0.5rem 1.25rem;
    color: var(--clr-warm-ivory);
}

.rivel-estate-template .group-lodging .eyebrow-light-bg {
    justify-content: center;
}

.rivel-estate-template .gl-desc {
    font-size: clamp(0.9375rem, 1.1vw, 1.125rem);
    color: rgba(245, 242, 233, 0.75);
    line-height: 1.6;
}

/* ---------- Carousel layout ---------- */
.rivel-estate-template .gl-carousel-wrapper {
    width: 100%;
    position: relative;
    padding-bottom: 1rem;
    max-width: 100vw;
    overflow: hidden;
}

.rivel-estate-template .gl-track {
    display: flex;
    align-items: center;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    user-select: none;
    width: max-content;
}

/* ---------- Slide ---------- */
.rivel-estate-template .gl-slide {
    width: clamp(300px, 80vw, 850px);
    flex-shrink: 0;
    padding: 0 1.5vw;
    position: relative;
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0.4;
    transform: scale(0.85);
    cursor: pointer;
}

.rivel-estate-template .gl-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
    cursor: default;
}

.rivel-estate-template .gl-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--clr-primary-green);
}

.rivel-estate-template .gl-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* ==========================================================================
   INFO CARD — premium
   Warm paper gradient, fine gold hairline frame, diamond ornament,
   divider-style facts row, and a filled pill CTA.
   ========================================================================== */
.rivel-estate-template .gl-slide-box {
    position: relative;
    margin: -2.5rem auto 0;        /* overlap: lower = more photo visible, 0 = no overlap */
    width: 86%;
    max-width: 460px;

    background: linear-gradient(180deg, #FDFBF6 0%, #F8F4EA 100%);
    color: var(--clr-text-primary);
    padding: 2rem 2rem 1.6rem;
    text-align: center;
    border-top: 2px solid #C9B379;

    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 40px 70px -28px rgba(10, 22, 16, 0.45),
        0 14px 28px -14px rgba(10, 22, 16, 0.25);

    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity 0.5s ease 0.15s, transform 0.7s cubic-bezier(0.25, 1, 0.5, 1) 0.15s;
}

.rivel-estate-template .gl-slide.active .gl-slide-box {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Fine inner hairline frame */
.rivel-estate-template .gl-slide-box::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(201, 179, 121, 0.3);
    pointer-events: none;
}

/* Diamond ornament sitting on the top edge */
.rivel-estate-template .gl-slide-box-top {
    position: absolute;
    top: -2px;
    left: 50%;
    width: 9px;
    height: 9px;
    background: #C9B379;
    box-shadow: 0 0 0 4px #FDFBF6;
    transform: translate(-50%, -50%) rotate(45deg);
    border-radius: 0;
}

/* Room name with a short gold rule underneath */
.rivel-estate-template .gl-room-name {
    position: relative;
    font-family: var(--font-editorial);
    font-size: clamp(1.6rem, 2.1vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.005em;
    line-height: 1.1;
    color: var(--clr-primary-green, #1D3529);
    padding-bottom: 0.9rem;
}

.rivel-estate-template .gl-room-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 36px;
    height: 1px;
    background: #C9B379;
    transform: translateX(-50%);
}

/* ---------- Facts row: open layout with hairline dividers ---------- */
.rivel-estate-template .gl-room-meta {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 1.1rem;
}

.rivel-estate-template .gl-meta-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
    padding: 0.25rem 0.75rem;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.rivel-estate-template .gl-meta-item + .gl-meta-item {
    border-left: 1px solid rgba(29, 53, 41, 0.14);
}

.rivel-estate-template .gl-meta-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #B39A5A;
}

.rivel-estate-template .gl-meta-icon svg {
    width: 16px;
    height: 16px;
}

.rivel-estate-template .gl-meta-text {
    font-size: clamp(0.6875rem, 0.85vw, 0.75rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(29, 53, 41, 0.72);
    white-space: nowrap;
}

/* ---------- CTA: filled pill with arrow ---------- */
.rivel-estate-template .gl-room-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.3rem;
    padding: 0.7rem 1.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--clr-warm-ivory) !important;
    background-color: var(--clr-primary-green, #1D3529);
    border: 0;
    border-radius: 50px;
    box-shadow: 0 10px 20px -10px rgba(10, 22, 16, 0.6);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, gap 0.3s ease;
}

.rivel-estate-template .gl-room-cta svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.rivel-estate-template .gl-room-cta:hover {
    background-color: var(--clr-deep-green);
    transform: translateY(-2px);
    gap: 0.8rem;
    box-shadow: 0 14px 24px -10px rgba(10, 22, 16, 0.65);
}

.rivel-estate-template .gl-room-cta:hover svg {
    transform: translateX(2px);
}

.rivel-estate-template .gl-room-cta:focus-visible {
    outline: 2px solid #C9B379;
    outline-offset: 3px;
}

/* ---------- Controls ---------- */
.rivel-estate-template .gl-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 5vw, 4rem);
    margin-top: 2rem;
}

.rivel-estate-template .gl-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(245, 242, 233, 0.3);
    color: var(--clr-warm-ivory);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.rivel-estate-template .gl-nav-btn:hover {
    background-color: rgba(245, 242, 233, 0.1);
    border-color: var(--clr-warm-ivory);
}

/* ---------- Ring dots ---------- */
.rivel-estate-template .gl-dots {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.rivel-estate-template .gl-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(245, 242, 233, 0.3);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.rivel-estate-template .gl-dot.active {
    background-color: transparent;
    border: 1px solid var(--clr-warm-ivory);
    width: 14px;
    height: 14px;
}

.rivel-estate-template .gl-dot.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--clr-warm-ivory);
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
    .rivel-estate-template .gl-slide {
        width: clamp(300px, 78vw, 720px);
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .rivel-estate-template .gl-header {
        padding: 1.5rem;
    }

    .rivel-estate-template .gl-slide {
        width: 86vw;
        padding: 0 1.5vw;
    }

    .rivel-estate-template .gl-img-wrap {
        aspect-ratio: 1 / 1;         /* try 5 / 6 for a taller, more portrait photo */
    }

    .rivel-estate-template .gl-slide-box {
        width: 92%;
        margin-top: -1.5rem;         /* light overlap on phones */
        padding: 1.5rem 1rem 1.2rem;
    }

    .rivel-estate-template .gl-room-name {
        font-size: 1.5rem;
        padding-bottom: 0.75rem;
    }

    .rivel-estate-template .gl-room-meta {
        margin-top: 0.9rem;
        flex-wrap: nowrap;
    }

    .rivel-estate-template .gl-meta-item {
        padding: 0.2rem 0.4rem;
        gap: 0.3rem;
    }

    .rivel-estate-template .gl-meta-icon {
        display: none;               /* text only on phones to save width */
    }

    .rivel-estate-template .gl-meta-text {
        font-size: 0.65rem;
        letter-spacing: 0.06em;
    }

    .rivel-estate-template .gl-room-cta {
        margin-top: 1rem;
        padding: 0.65rem 1.25rem;
        font-size: 0.7rem;
    }
}

.rivel-estate-template .stay-facts { background-color: var(--clr-warm-ivory); }
.rivel-estate-template .stay-facts-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.rivel-estate-template .stay-fact-card { background-color: #ffffff; border-radius: 16px; padding: 2rem; box-shadow: 0 8px 24px rgba(16,42,32,0.06); }
.rivel-estate-template .stay-fact-title { font-family: var(--font-editorial); font-size: 1.0625rem; font-weight: 700; color: var(--clr-primary-green); margin-bottom: 0.6rem; }
.rivel-estate-template .stay-fact-text { font-size: 0.9375rem; line-height: 1.65; color: var(--clr-text-secondary); }
@media (min-width: 1024px) { .rivel-estate-template .stay-facts-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   05 — EAT & GATHER (hospitality card + planning strip)
   ============================================================ */
.rivel-estate-template .hosp-section { background-color: var(--clr-deep-green); color: var(--clr-warm-ivory); }
.rivel-estate-template .hosp-intro { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.rivel-estate-template .hosp-intro .eyebrow-dark-bg { justify-content: center; }
.rivel-estate-template .hosp-card { position: relative; border-radius: 18px; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; }
.rivel-estate-template .hosp-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rivel-estate-template .hosp-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,26,20,0.92) 0%, rgba(10,26,20,0.15) 60%); }
.rivel-estate-template .hosp-card-content { position: relative; z-index: 2; padding: 2.5rem; width: 100%; }
.rivel-estate-template .card-label { font-family: var(--font-primary); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; color: var(--clr-terracotta); display: block; margin-bottom: 0.75rem; }
.rivel-estate-template .hosp-card-title { font-family: var(--font-editorial); color: var(--clr-warm-ivory); font-size: 1.75rem; font-weight: 600; margin-bottom: 1.25rem; max-width: 480px; }
.rivel-estate-template .card-info-reveal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1.5rem; max-width: 560px; }
.rivel-estate-template .card-cta { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--clr-warm-ivory); border-bottom: 1px solid rgba(245,242,233,0.4); padding-bottom: 0.25rem; }

.rivel-estate-template .hosp-planning-strip { margin-top: 3.5rem; border-top: 1px solid rgba(245,242,233,0.12); padding-top: 3rem; }
.rivel-estate-template .planning-title { font-family: var(--font-editorial); color: var(--clr-warm-ivory); font-size: 1.375rem; font-weight: 500; max-width: 640px; margin-bottom: 2rem; }
.rivel-estate-template .planning-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; margin-bottom: 2.5rem; }
.rivel-estate-template .plan-col h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; color: var(--clr-terracotta); margin-bottom: 0.5rem; }
.rivel-estate-template .plan-col p { font-size: 0.875rem; color: rgba(245,242,233,0.75); line-height: 1.5; }
@media (min-width: 1024px) { .rivel-estate-template .planning-grid { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   06 — WELLNESS & RECOVERY (accordion, reused spa pattern)
   ============================================================ */
.rivel-estate-template .spa-section { background-color: var(--clr-soft-sage); }
.rivel-estate-template .spa-intro { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.rivel-estate-template .spa-intro .eyebrow-light-bg { justify-content: center; }
.rivel-estate-template .spa-accordion-wrapper { display: flex; flex-direction: column; gap: 0.6rem; border-radius: 18px; overflow: hidden; }
.rivel-estate-template .spa-acc-panel { background-color: var(--clr-primary-green); color: var(--clr-warm-ivory); border-radius: 12px; cursor: pointer; transition: background-color var(--transition-fast); }
.rivel-estate-template .spa-acc-panel.active { background-color: var(--clr-deep-green); }
.rivel-estate-template .acc-header { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem 1.5rem; }
.rivel-estate-template .acc-num { width: 32px; height: 32px; border-radius: 50%; background-color: rgba(245,242,233,0.15); display: flex; align-items: center; justify-content: center; font-family: var(--font-primary); font-weight: 700; font-size: 0.9375rem; flex-shrink: 0; }
.rivel-estate-template .spa-acc-panel.active .acc-num { background-color: var(--clr-terracotta); }
.rivel-estate-template .acc-header h3 { font-family: var(--font-primary); color: var(--clr-warm-ivory); font-size: 1.0625rem; font-weight: 600; flex-grow: 1; }
.rivel-estate-template .acc-subtitle-inline { font-family: var(--font-primary); font-style: italic; font-size: 0.9375rem; color: var(--clr-soft-sage); }
.rivel-estate-template .acc-chevron { transition: transform var(--transition-fast); flex-shrink: 0; }
.rivel-estate-template .spa-acc-panel.active .acc-chevron { transform: rotate(180deg); }
.rivel-estate-template .acc-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.rivel-estate-template .spa-acc-panel.active .acc-body { max-height: 200px; }
.rivel-estate-template .acc-body-inner { padding: 0 1.5rem 1.5rem 4.75rem; }
.rivel-estate-template .acc-body-inner p { font-size: 0.9375rem; line-height: 1.6; color: rgba(245,242,233,0.85); margin-bottom: 0.75rem; max-width: 560px; }
.rivel-estate-template .acc-meta { display: flex; gap: 1.5rem; font-size: 0.75rem; color: rgba(245,242,233,0.6); }
.rivel-estate-template .acc-meta strong { color: var(--clr-warm-ivory); }
.rivel-estate-template .spa-bottom-ops { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; margin-top: 2.5rem; }
@media (min-width: 768px) { .rivel-estate-template .spa-bottom-ops { flex-direction: row; align-items: center; justify-content: space-between; } }
.rivel-estate-template .ops-line { font-size: 0.875rem; color: var(--clr-text-secondary); }

/* ============================================================
   07 — DESIGNED FOR GROUPS (pathways tabs — homepage design)
   ============================================================ */
.rivel-estate-template .pathways-section{ background-color: var(--clr-deep-green); padding: 6rem 1.5rem; color: var(--clr-warm-ivory); }
.rivel-estate-template .pathways-container{ max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 4rem; }
.rivel-estate-template .pathways-header-split{ display: flex; flex-direction: column; gap: 1.5rem; }
.rivel-estate-template .pathways-heading{
    margin: 0; font-family: var(--font-editorial); font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 500; line-height: 1.1; color: var(--clr-warm-ivory); letter-spacing: -0.02em;
}
.rivel-estate-template .pathways-intro{
    margin: 0; font-family: var(--font-primary); font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.6; color: rgba(245, 242, 233, 0.85); max-width: 600px;
}
.rivel-estate-template .pathways-layout{ display: grid; grid-template-columns: 1fr; gap: 3rem; }
.rivel-estate-template .pathways-tabs{ display: flex; flex-direction: row; overflow-x: auto; gap: 1rem; padding-bottom: 1rem; scrollbar-width: none; }
.rivel-estate-template .pathways-tabs::-webkit-scrollbar{ display: none; }
.rivel-estate-template .tab-btn{
    display: flex; align-items: center; gap: 1.25rem; padding: 0.75rem 1.5rem 0.75rem 0.75rem;
    background-color: rgba(245, 242, 233, 0.05); border: 1px solid rgba(245, 242, 233, 0.15);
    border-radius: 12px; cursor: pointer; text-align: left; transition: all var(--transition-fast);
    flex-shrink: 0; min-width: 260px;
}
.rivel-estate-template .tab-btn:hover:not(.active){ background-color: rgba(245, 242, 233, 0.1); border-color: rgba(245, 242, 233, 0.3); }
.rivel-estate-template .tab-icon-box{
    width: 48px; height: 48px; background-color: rgba(245, 242, 233, 0.1); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; color: var(--clr-warm-ivory);
    transition: all var(--transition-fast); flex-shrink: 0;
}
.rivel-estate-template .tab-text{ font-family: var(--font-primary); font-size: 1rem; font-weight: 500; color: var(--clr-warm-ivory); transition: color var(--transition-fast); }
.rivel-estate-template .tab-btn.active{ background-color: var(--clr-warm-ivory); border-color: var(--clr-warm-ivory); }
.rivel-estate-template .tab-btn.active .tab-icon-box{ background-color: var(--clr-primary-green); color: var(--clr-warm-ivory); }
.rivel-estate-template .tab-btn.active .tab-text{ color: var(--clr-primary-green); }
.rivel-estate-template .pathways-content-area{ position: relative; min-height: 500px; }
.rivel-estate-template .pathways-content-area .tab-panel[hidden] { display: none; }
.rivel-estate-template .tab-panel{ display: none; flex-direction: column; align-items: flex-start; animation: fadeInPanel 0.4s ease-in-out forwards; }
.rivel-estate-template .tab-panel.active{ display: flex; }
@keyframes fadeInPanel{ from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.rivel-estate-template .panel-img{
    width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; margin-bottom: 2.5rem; background-color: var(--clr-soft-sage);
}
.rivel-estate-template .panel-title{
    margin: 0; font-family: var(--font-editorial); font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 500; color: var(--clr-warm-ivory); margin-bottom: 1rem; line-height: 1.2;
}
.rivel-estate-template .panel-desc{
    margin: 0; font-family: var(--font-primary); font-size: 1rem; line-height: 1.6;
    color: rgba(245, 242, 233, 0.85); margin-bottom: 2rem; max-width: 800px;
}
.rivel-estate-template .panel-btn{
    background-color: var(--clr-warm-ivory); color: var(--clr-primary-green); border: none; border-radius: 50px;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem; font-family: var(--font-primary); font-size: 0.875rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: 1rem; transition: background-color var(--transition-fast); text-decoration: none;
}
.rivel-estate-template .panel-btn:hover{ background-color: #ffffff; }
.rivel-estate-template .btn-circle-icon{
    width: 36px; height: 36px; background-color: var(--clr-primary-green); color: var(--clr-warm-ivory);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform var(--transition-fast);
}
.rivel-estate-template .panel-btn:hover .btn-circle-icon{ transform: rotate(45deg); }
@media (min-width: 768px){
    .rivel-estate-template .pathways-section{ padding: 8rem 2rem; }
    .rivel-estate-template .pathways-header-split{ flex-direction: row; justify-content: space-between; align-items: flex-end; }
    .rivel-estate-template .pathways-header-right{ flex-shrink: 0; padding-bottom: 0.5rem; }
}
@media (min-width: 1024px){
    .rivel-estate-template .pathways-layout{ grid-template-columns: 320px 1fr; gap: 4rem; align-items: start; }
    .rivel-estate-template .pathways-tabs{ flex-direction: column; overflow-x: visible; padding-bottom: 0; }
    .rivel-estate-template .tab-btn{ min-width: auto; width: 100%; }
}

/* ============================================================
   08 — ESTATE FACTS & PRACTICAL INFORMATION
   ============================================================ */
.rivel-estate-template .facts-section { background-color: var(--clr-warm-ivory); }
.rivel-estate-template .facts-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.rivel-estate-template .fact-card { background-color: #ffffff; border-radius: 16px; padding: 1.75rem; border: 1px solid rgba(32,36,31,0.08); }
.rivel-estate-template .fact-icon { width: 40px; height: 40px; border-radius: 10px; background-color: var(--clr-soft-cream); color: var(--clr-primary-green); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.rivel-estate-template .fact-title { font-family: var(--font-editorial); font-size: 1.0625rem; font-weight: 700; color: var(--clr-text-primary); margin-bottom: 0.5rem; }
.rivel-estate-template .fact-text { font-size: 0.9375rem; line-height: 1.6; color: var(--clr-text-secondary); }
@media (min-width: 640px) { .rivel-estate-template .facts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .rivel-estate-template .facts-grid { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   09 — EXPERIENCE THE ESTATE (sample day journey)
   ============================================================ */
.rivel-estate-template .journey-section { background-color: var(--clr-primary-green); color: var(--clr-warm-ivory); }
.rivel-estate-template .journey-intro { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.rivel-estate-template .journey-intro .eyebrow-dark-bg { justify-content: center; }
.rivel-estate-template .journey-track { display: flex; flex-direction: column; gap: 0; }
.rivel-estate-template .journey-step { display: flex; gap: 1.5rem; position: relative; padding-bottom: 2.5rem; }
.rivel-estate-template .journey-step:last-child { padding-bottom: 0; }
.rivel-estate-template .journey-marker { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.rivel-estate-template .journey-dot { width: 44px; height: 44px; border-radius: 50%; background-color: var(--clr-terracotta); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rivel-estate-template .journey-line { flex-grow: 1; width: 1px; background-color: rgba(245,242,233,0.2); margin-top: 0.5rem; }
.rivel-estate-template .journey-step:last-child .journey-line { display: none; }
.rivel-estate-template .journey-content { padding-top: 0.5rem; }
.rivel-estate-template .journey-label { font-family: var(--font-primary); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--clr-soft-sage); margin-bottom: 0.35rem; }
.rivel-estate-template .journey-title { font-family: var(--font-editorial); color: var(--clr-warm-ivory); font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.rivel-estate-template .journey-text { font-size: 0.9375rem; line-height: 1.6; color: rgba(245,242,233,0.8); max-width: 480px; }
@media (min-width: 1024px) {
    .rivel-estate-template .journey-track { flex-direction: row; gap: 0; }
    .rivel-estate-template .journey-step { flex-direction: column; padding-bottom: 0; padding-right: 2rem; flex: 1; }
    .rivel-estate-template .journey-marker { flex-direction: row; width: 100%; }
    .rivel-estate-template .journey-line { height: 1px; width: auto; margin-top: 0; margin-left: 0.5rem; }
    .rivel-estate-template .journey-content { padding-top: 1.25rem; }
}

   /* ============================================================
   ARRIVAL SECTION
   Map + arrival animation
   ============================================================ */

/*
 * Desktop layout:
 * - Left content stays aligned with the site's 1280px container.
 * - Right map breaks out toward the right edge of the viewport.
 */

/* ============================================================
   ARRIVAL SECTION
   Map + arrival animation
   ============================================================ */

/*
 * Desktop layout:
 * - Left content stays aligned with the site's 1280px container.
 * - Right map breaks out toward the right edge of the viewport.
 */

.rivel-estate-template .arrival-section {
    display: grid;
    grid-template-columns:
        minmax(0, 640px)
        minmax(0, 1fr);

    width: 100%;
    max-width: none;

    align-items: center;

    /*
     * This creates the same left starting position as a
     * centered 1280px content container.
     */
    padding-left: max(0px, calc((100vw - 1280px) / 2));

    box-sizing: border-box;
}


/* ------------------------------------------------------------
   LEFT CONTENT
   ------------------------------------------------------------ */

.rivel-estate-template .arrival-left {
    width: 100%;
    max-width: 640px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding-right: 4rem;

    box-sizing: border-box;
}


/* ------------------------------------------------------------
   RIGHT MAP
   ------------------------------------------------------------ */

.rivel-estate-template .arrival-right {
    width: 100%;
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    /*
     * Allow the map to extend beyond the normal 1280px
     * content boundary and reach the browser edge.
     */
    overflow: hidden;
}


/* ------------------------------------------------------------
   ARRIVAL TYPOGRAPHY
   ------------------------------------------------------------ */

.rivel-estate-template .arrival-headline {
    font-family: var(--font-editorial, Georgia, serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin: 0 0 1.5rem;
    color: var(--clr-primary-green);
}

.rivel-estate-template .headline-italic {
    font-style: italic;
}

.rivel-estate-template .arrival-desc {
    font-family: var(--font-primary, sans-serif);
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400;
    max-width: 90%;
    margin: 0 0 3rem;
}

.rivel-estate-template .arrival-divider {
    border: 0;
    border-top: 1px solid rgba(32, 36, 31, 0.12);
    width: 100%;
    margin: 0 0 2rem;
}

.rivel-estate-template .arrival-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    color:var(--clr-primary-green);
}

.rivel-estate-template .stat-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rivel-estate-template .stat-time {
    font-family: var(--font-primary);
    font-size: clamp(.8rem, 1vw, 1rem);
    line-height: 1;
    color:var(--clr-primary-green);
}

.rivel-estate-template .stat-label {
    font-family: var(--font-primary, sans-serif);
    font-size: 0.75rem;
    color: #7c8d81;
}
.rivel-estate-template .arrival-fine-print {
    font-family: var(--font-primary, sans-serif);
    font-size: 0.75rem;
    line-height: 1.5;
    margin-top: 1rem;
}


/* ------------------------------------------------------------
   MAP
   ------------------------------------------------------------ */

.rivel-estate-template .map-container {
    width: 100%;
    max-width: none;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.rivel-estate-template .map-image-wrap {
    position: relative;

    width: 100%;
    max-width: none;

    line-height: 0;

    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.10));
}

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

.rivel-estate-template .map-overlay {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
}


/* ------------------------------------------------------------
   ROUTES
   ------------------------------------------------------------ */

.rivel-estate-template .flight-path-line {
    fill: none;
    stroke: #7c8d81;
    stroke-width: 2;
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
}

.rivel-estate-template .driving-route-line {
    fill: none;
    stroke: var(--clr-terracotta);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
}

.rivel-estate-template .hotel-connect-line {
    fill: none;
    stroke: #7c8d81;
    stroke-width: 1.5;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
}


/* ------------------------------------------------------------
   MAP MARKERS
   ------------------------------------------------------------ */

.rivel-estate-template .map-ring {
    fill: none;
    stroke: var(--clr-terracotta);
    stroke-width: 3;
    opacity: 0;
}

.rivel-estate-template .map-node {
    fill: var(--clr-terracotta);
    opacity: 0;
}

.rivel-estate-template .hotel-title {
    font-family: var(--font-primary, sans-serif);
    font-size: 26px;
    font-weight: 700;
    fill: var(--clr-terracotta);
    letter-spacing: 0.08em;
    opacity: 0;
}

.rivel-estate-template .hotel-subtitle {
    font-family: var(--font-primary, sans-serif);
    font-size: 13px;
    font-weight: 600;
    fill: #7c8d81;
    letter-spacing: 0.15em;
    opacity: 0;
}


/* ------------------------------------------------------------
   VEHICLES
   ------------------------------------------------------------ */

.rivel-estate-template .vehicle {
    opacity: 0;
    offset-rotate: auto;
    offset-anchor: center;
    transform-origin: center;
    transform-box: fill-box;
}

.rivel-estate-template .airplane {
    offset-path: path("M 1400 20 Q 1080 140 593 406");
    transform: scale(1.6);
}

.rivel-estate-template .car {
    offset-path: path("M 593 406 Q 660 445 727 479 Q 795 492 872 473");
    transform: scale(1.3);
}


/* ------------------------------------------------------------
   ANIMATION
   ------------------------------------------------------------ */

.rivel-estate-template .is-animating .airplane {
    animation: rivelFlightMove 2.2s ease-in-out forwards;
}

.rivel-estate-template .is-animating .flight-path-line {
    animation: rivelFlightTrail 2.2s ease-in-out forwards;
}

.rivel-estate-template .is-animating .ring-sjo {
    animation: rivelRingPulse 0.9s 2s forwards;
}

.rivel-estate-template .is-animating .car {
    animation: rivelDriveMove 2s 2.3s linear forwards;
}

.rivel-estate-template .is-animating .driving-route-line {
    animation: rivelDrawPath 2s 2.3s linear forwards;
}

.rivel-estate-template .is-animating .ring-cartago {
    animation: rivelRingPulse 0.9s 3.3s forwards;
}

.rivel-estate-template .is-animating .ring-turrialba {
    animation: rivelRingPulse 0.9s 4.3s forwards;
}

.rivel-estate-template .is-animating .node-hotel {
    animation: rivelPopIn 0.4s 4.4s forwards;
}

.rivel-estate-template .is-animating .hotel-connect-line {
    animation: rivelDrawPath 1s 4.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rivel-estate-template .is-animating .hotel-title {
    animation: rivelFadeUp 0.8s 5s forwards;
}

.rivel-estate-template .is-animating .hotel-subtitle {
    animation: rivelFadeUp 0.8s 5.2s forwards;
}


/* ------------------------------------------------------------
   FLIGHT ANIMATION
   ------------------------------------------------------------ */

@keyframes rivelFlightMove {

    0% {
        offset-distance: 0%;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    90% {
        offset-distance: 100%;
        opacity: 1;
    }

    100% {
        offset-distance: 100%;
        opacity: 0;
    }
}


/* ------------------------------------------------------------
   FLIGHT TRAIL ANIMATION
   ------------------------------------------------------------ */

@keyframes rivelFlightTrail {

    0% {
        stroke-dashoffset: 1500;
        opacity: 1;
    }

    90% {
        stroke-dashoffset: 0;
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}


/* ------------------------------------------------------------
   DRIVING ANIMATION
   ------------------------------------------------------------ */

@keyframes rivelDriveMove {

    0% {
        offset-distance: 0%;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        offset-distance: 100%;
        opacity: 0;
    }
}


/* ------------------------------------------------------------
   ROUTE DRAW
   ------------------------------------------------------------ */

@keyframes rivelDrawPath {

    to {
        stroke-dashoffset: 0;
    }
}


/* ------------------------------------------------------------
   RING PULSE
   ------------------------------------------------------------ */

@keyframes rivelRingPulse {

    0% {
        opacity: 0;
        transform: scale(0.3);
        transform-origin: center;
        transform-box: fill-box;
    }

    40% {
        opacity: 1;
        transform: scale(1.6);
    }

    100% {
        opacity: 0;
        transform: scale(2.4);
    }
}


/* ------------------------------------------------------------
   HOTEL MARKER POP
   ------------------------------------------------------------ */

@keyframes rivelPopIn {

    0% {
        opacity: 0;
        transform: scale(0.5);
        transform-origin: center;
        transform-box: fill-box;
    }

    70% {
        opacity: 1;
        transform: scale(1.3);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        transform-origin: center;
        transform-box: fill-box;
    }
}


/* ------------------------------------------------------------
   HOTEL TEXT FADE
   ------------------------------------------------------------ */

@keyframes rivelFadeUp {

    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ------------------------------------------------------------
   REDUCED MOTION
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {

    .rivel-estate-template .vehicle,
    .rivel-estate-template .map-ring,
    .rivel-estate-template .map-node,
    .rivel-estate-template .hotel-title,
    .rivel-estate-template .hotel-subtitle {
        animation: none !important;
        transition: none !important;
    }

}


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

@media (max-width: 900px) {

    .rivel-estate-template .arrival-section {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: none;
        padding: 2.5rem 1.5rem;
        box-sizing: border-box;
    }

    .rivel-estate-template .arrival-left,
    .rivel-estate-template .arrival-right {
        width: 100%;
        max-width: none;
        flex: 1 1 100%;
    }

    .rivel-estate-template .arrival-left {
        padding: 0 0 2rem 0 !important;
    }

    .rivel-estate-template .arrival-right {
        justify-content: center;
        overflow: hidden;
    }

    .rivel-estate-template .arrival-headline {
        font-size: clamp(2.3rem, 10vw, 3.5rem);
    }

    .rivel-estate-template .arrival-desc {
        max-width: 100%;
        font-size: 1rem;
    }

    .rivel-estate-template .map-container {
        width: 100%;
        max-width: none;
        padding: 0;

        box-sizing: border-box;

        justify-content: center;
    }

    .rivel-estate-template .map-image-wrap {
        width: 100%;
        max-width: none;
    }

    /* Stats: readable text */
    .rivel-estate-template .arrival-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem 1rem !important;
    }

    .rivel-estate-template .arrival-stats .stat-time {
        font-size: 0.95rem !important;
        font-weight: 600;
        line-height: 1.2;
    }

    .rivel-estate-template .arrival-stats .stat-label {
        font-size: 0.75rem !important;
        line-height: 1.35;
    }

    .rivel-estate-template .arrival-fine-print {
        font-size: 0.8rem;
    }

    /* Map labels: sized in SVG units so they land at ~11px on screen */
    .rivel-estate-template .hotel-title {
        font-size: 44px;
        stroke: rgba(255, 255, 255, 0.9);
        stroke-width: 8px;
        stroke-linejoin: round;
        paint-order: stroke;
    }

    .rivel-estate-template .hotel-subtitle {
        font-size: 22px;
        stroke: rgba(255, 255, 255, 0.9);
        stroke-width: 6px;
        stroke-linejoin: round;
        paint-order: stroke;
    }

    /* Lines, dots, rings and vehicles: thicker so they stay visible when scaled down */
    .rivel-estate-template .flight-path-line   { stroke-width: 5; }
    .rivel-estate-template .driving-route-line { stroke-width: 9; }
    .rivel-estate-template .hotel-connect-line { stroke-width: 4; }
    .rivel-estate-template .map-ring           { stroke-width: 7; }

    .rivel-estate-template .map-node {
        stroke: var(--clr-terracotta);
        stroke-width: 8px;
    }

    .rivel-estate-template .airplane { transform: scale(2.8); }
    .rivel-estate-template .car      { transform: scale(2.4); }
}

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