/*
 * Listing page design ("The Residence"), used by the listing pages that link
 * residence.css + residence.js. Pages still on the old layout use styles.css +
 * script.js, which this file does not touch.
 */

:root {
    --paper: #fdfcf8;
    --paper-alt: #f8f4ee;
    --ink: #1f1c17;
    --text: #4a443b;
    --muted: #7a7266;
    --gold: #8c6c39;
    --gold-light: #b0894f;
    --line: #e5dfd3;
    --dark: #201d18;
    --darker: #181612;
    --dark-text: #d3c6ac;
    --dark-muted: #8f8676;
    --cream: #ece1ca;

    --serif: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
    --sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

    --wide: 1000px;
    --narrow: 780px;
    --text-col: 700px;
    --gutter: clamp(16px, 4vw, 40px);
    --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.rs-wrap { width: 100%; max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.rs-wrap--narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.rs-wrap--text { max-width: calc(var(--text-col) + 2 * var(--gutter)); }

/* ---------- type ---------- */

.rs-eyebrow {
    display: block;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 14px;
}

.rs-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(30px, 3.6vw, 40px);
    line-height: 1.15;
    letter-spacing: 0.005em;
    margin: 0 0 clamp(24px, 3vw, 32px);
    color: var(--ink);
}

.rs-head { text-align: center; }

/* ---------- buttons ---------- */

.rs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 28px;
    font-family: var(--sans);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid currentColor;
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.rs-btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.rs-btn--solid { background: var(--gold); border-color: var(--gold); color: #fff; }
.rs-btn--solid:hover { background: #765a2f; border-color: #765a2f; }
.rs-btn--light { color: #fff; border-color: rgba(255, 255, 255, .75); background: rgba(20, 18, 15, .18); }
.rs-btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.rs-btn--block { width: 100%; }
.rs-btn svg { width: 16px; height: 16px; flex: none; }

.rs-btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- navigation ---------- */

.rs-nav {
    position: sticky;
    top: 0;
    z-index: 900;
    height: var(--nav-h);
    background: rgba(253, 252, 248, .97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(1.2) blur(8px);
}
.rs-nav__inner {
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    gap: 24px;
}
.rs-nav__logo { display: flex; align-items: center; flex: none; }
.rs-nav__logo img { height: 44px; width: auto; }
.rs-nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); margin-left: auto; }
.rs-nav__links a {
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, color .2s ease;
}
.rs-nav__links a:hover { color: var(--gold); border-color: var(--gold-light); }
.rs-nav__links .rs-nav__cta { margin-left: clamp(8px, 1.6vw, 24px); min-height: 42px; padding: 0 24px; color: #fff; border: 1px solid var(--gold); }
.rs-nav__links .rs-nav__cta:hover { color: #fff; border-color: #765a2f; }
.rs-nav__toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 12px 10px;
}
.rs-nav__toggle span { display: block; height: 1px; background: var(--ink); margin: 6px 0; transition: transform .2s ease, opacity .2s ease; }
.rs-nav.is-open .rs-nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rs-nav.is-open .rs-nav__toggle span:nth-child(2) { opacity: 0; }
.rs-nav.is-open .rs-nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
    :root { --nav-h: 64px; }
    .rs-nav__logo img { height: 38px; }
    .rs-nav__toggle { display: block; }
    .rs-nav__links {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 8px var(--gutter) 20px;
        display: none;
    }
    .rs-nav.is-open .rs-nav__links { display: flex; }
    .rs-nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .rs-nav__links .rs-nav__cta { margin: 16px 0 0; padding: 0 24px; border-bottom: 1px solid var(--gold); }
}

/* ---------- hero ---------- */

.rs-hero {
    position: relative;
    min-height: clamp(540px, 82vh, 860px);
    display: flex;
    align-items: flex-end;
    color: #fff;
    background: #2a261f;
    overflow: hidden;
}
.rs-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rs-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(18, 16, 13, .78) 0%, rgba(18, 16, 13, .42) 38%, rgba(18, 16, 13, 0) 68%),
        linear-gradient(to right, rgba(18, 16, 13, .55) 0%, rgba(18, 16, 13, .25) 40%, rgba(18, 16, 13, 0) 65%);
}
.rs-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--gutter) clamp(40px, 6vw, 64px);
}
.rs-hero__eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .88);
    margin: 0 0 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.property-badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 10px;
    letter-spacing: 0.24em;
    border: 1px solid rgba(255, 255, 255, .7);
    color: #fff;
}
.property-badge.is-default { display: none; }
.rs-hero__title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(42px, 6.2vw, 76px);
    line-height: 1.02;
    margin: 0;
    text-shadow: 0 1px 24px rgba(0, 0, 0, .25);
}
.rs-hero__place {
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .82);
    margin: 12px 0 0;
}
.rs-hero__price {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(30px, 3.4vw, 40px);
    line-height: 1;
    margin: clamp(26px, 3.4vw, 40px) 0 18px;
}
.rs-hero__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 clamp(24px, 3vw, 34px);
    padding: 0;
    list-style: none;
    font-size: 14px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, .9);
}
.rs-hero__stats li { padding: 0 18px; border-left: 1px solid rgba(255, 255, 255, .45); line-height: 1.2; }
.rs-hero__stats li:first-child { padding-left: 0; border-left: 0; }
.rs-hero .rs-btn-row { justify-content: flex-start; }

@media (max-width: 560px) {
    .rs-hero__stats li { padding: 0 12px; }
    .rs-hero .rs-btn { flex: 1 1 100%; }
}

/* ---------- open house ---------- */

.rs-openhouse {
    background: var(--gold);
    color: #fff;
    text-align: center;
    padding: 14px var(--gutter);
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}
.rs-openhouse strong { font-weight: 600; margin-right: 10px; }
.rs-openhouse span { letter-spacing: 0.12em; }

/* Elements hidden by the page script stay hidden, whatever their display style. */
[hidden] { display: none !important; }

/* ---------- sections ---------- */

.rs-section {
    padding: clamp(64px, 9vw, 112px) 0;
    border-top: 1px solid var(--line);
}
#residence { border-top: 0; }
.rs-section--alt { background: var(--paper-alt); }

/* ---------- the residence ---------- */

.rs-prose {
    font-family: var(--serif);
    font-size: clamp(19px, 1.6vw, 21px);
    line-height: 1.75;
    color: var(--ink);
    letter-spacing: 0.01em;
}
.rs-prose p { margin: 0 0 1.1em; }
.rs-prose p:last-child { margin-bottom: 0; }
.rs-prose p:first-child::first-letter {
    float: left;
    font-family: var(--serif);
    font-weight: 500;
    font-size: 3.5em;
    line-height: .82;
    margin: .06em .1em 0 0;
    color: var(--gold);
}

/* ---------- gallery ---------- */

.rs-gallery__stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #ece6da;
    overflow: hidden;
}
.rs-gallery__main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    border: 0;
    padding: 0;
    background: none;
    display: block;
}
.rs-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.rs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    background: rgba(253, 252, 248, .88);
    color: var(--ink);
    cursor: pointer;
    transition: background-color .2s ease;
}
.rs-arrow:hover { background: #fff; }
.rs-arrow svg { width: 20px; height: 20px; }
.rs-arrow--prev { left: 16px; }
.rs-arrow--next { right: 16px; }
.rs-gallery__count {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 6px 12px;
    background: rgba(31, 28, 23, .72);
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.18em;
}
.rs-thumbs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 4 * 12px) / 5);
    gap: 12px;
    margin-top: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding-bottom: 4px;
}
.rs-thumb {
    aspect-ratio: 16 / 9;
    border: 0;
    padding: 0;
    background: #ece6da;
    cursor: pointer;
    scroll-snap-align: start;
    position: relative;
    opacity: .72;
    transition: opacity .2s ease;
}
.rs-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rs-thumb:hover, .rs-thumb.is-active { opacity: 1; }
.rs-thumb.is-active::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px var(--gold); }
.rs-gallery__actions { margin-top: clamp(24px, 3vw, 32px); }

/* ---------- 3D tour ---------- */

.rs-tour {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--dark);
    overflow: hidden;
}
@media (max-width: 720px) { .rs-tour { aspect-ratio: 4 / 3; } }
.rs-tour__cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform .6s ease;
}
.rs-tour::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 13, .28), rgba(18, 16, 13, .46));
    pointer-events: none;
}
.rs-tour:hover .rs-tour__cover { transform: scale(1.02); }
.rs-tour__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    min-height: 56px;
    padding: 0 34px;
    background: rgba(20, 18, 15, .3);
    white-space: nowrap;
}
.rs-tour__play svg { width: 20px; height: 20px; }
.rs-tour iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; visibility: hidden; }

/* Playing: in the page (desktop) or full screen (phones, .is-expanded). */
.rs-tour.is-live iframe, .rs-tour.is-expanded iframe { visibility: visible; }
.rs-tour.is-live::after, .rs-tour.is-expanded::after,
.rs-tour.is-live .rs-tour__cover, .rs-tour.is-expanded .rs-tour__cover,
.rs-tour.is-live .rs-tour__play, .rs-tour.is-expanded .rs-tour__play { display: none; }

/* Phones: the tour fills the screen. With real fullscreen the browser sizes it;
   without (e.g. iPhone Safari) this fixed layer covers the whole viewport. */
.rs-tour.is-expanded {
    position: fixed;
    inset: 0;
    z-index: 2000;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    aspect-ratio: auto;
    background: #000;
}
/* Small red X. Zillow's player keeps its controls in the top 112px on the
   right (tab bar, then the Zillow logo or the photo-stream toggle), so the X
   sits just below them, where only the tour picture is. Measured on Zillow's
   phone layout at 360 and 390px, on the Photos, Floor Plan and 3D tabs. */
.rs-tour__close {
    position: absolute;
    top: 120px;
    right: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #d32f2f;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
    cursor: pointer;
}
.rs-tour__close:active { background: #b71c1c; }
.rs-tour__close svg { width: 18px; height: 18px; }
.rs-tour__caption {
    margin: 18px 0 0;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.rs-tour__caption a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-light); }

@media (max-width: 640px) {
    .rs-thumbs { grid-auto-columns: calc((100% - 2 * 8px) / 3.3); gap: 8px; }
    .rs-arrow { width: 40px; height: 40px; }
    .rs-arrow--prev { left: 8px; }
    .rs-arrow--next { right: 8px; }
}

/* ---------- lightbox ---------- */

.rs-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(18, 16, 13, .97);
    display: none;
    flex-direction: column;
    color: #fff;
}
.rs-lightbox.is-open { display: flex; }
.rs-lightbox__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px var(--gutter);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--dark-text);
}
.rs-lightbox__close {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.rs-lightbox__close svg { width: 18px; height: 18px; }
.rs-lightbox__stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 72px 24px; }
.rs-lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rs-lightbox .rs-arrow { background: rgba(255, 255, 255, .12); color: #fff; }
.rs-lightbox .rs-arrow:hover { background: rgba(255, 255, 255, .25); }
@media (max-width: 640px) { .rs-lightbox__stage { padding: 0 0 24px; } }

/* ---------- features ---------- */

.rs-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}
.rs-feature {
    padding: clamp(24px, 3vw, 34px) clamp(20px, 2.4vw, 32px) clamp(26px, 3vw, 36px);
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
}
.rs-feature:nth-child(3n) { border-right: 0; }
.rs-feature h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: 0.01em;
    margin: 0 0 14px;
}
.rs-feature ul { list-style: none; margin: 0; padding: 0; }
.rs-feature li {
    position: relative;
    padding-left: 22px;
    margin: 0 0 9px;
    font-size: 14px;
    line-height: 1.55;
    letter-spacing: 0.03em;
    color: var(--text);
}
.rs-feature li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .78em;
    width: 14px;
    height: 1px;
    background: var(--gold-light);
}
@media (max-width: 860px) {
    .rs-features { grid-template-columns: repeat(2, 1fr); }
    .rs-feature:nth-child(3n) { border-right: 1px solid var(--line); }
    .rs-feature:nth-child(2n) { border-right: 0; }
}
@media (max-width: 560px) {
    .rs-features { grid-template-columns: 1fr; }
    .rs-feature, .rs-feature:nth-child(3n) { border-right: 0; padding-left: 0; padding-right: 0; }
}

/* ---------- facts ---------- */

.rs-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(28px, 4vw, 48px);
    margin: 0;
}
.rs-fact {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 18px 6px 16px;
    border-bottom: 1px solid var(--line);
}
.rs-fact dt { font-size: 14px; letter-spacing: 0.05em; color: var(--text); }
.rs-fact dd { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--ink); text-align: right; }
.rs-fact dd.is-short { white-space: nowrap; }
@media (max-width: 640px) { .rs-facts { grid-template-columns: 1fr; } }

/* ---------- location ---------- */

.rs-map {
    position: relative;
    aspect-ratio: 2.15 / 1;
    background: #ece6da;
    border: 1px solid var(--line);
}
@media (max-width: 720px) { .rs-map { aspect-ratio: 4 / 3; } }
.rs-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.rs-map .leaflet-tile-pane { filter: grayscale(.55) sepia(.12) brightness(1.04) contrast(.92); }
.rs-map .leaflet-control-attribution { font-family: var(--sans); font-size: 10px; }
.rs-pin { width: 34px; height: 46px; }
.rs-map__caption {
    margin: 18px 0 0;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text);
}
.rs-map__caption a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-light); margin-left: 14px; }

.rs-nearby {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 clamp(28px, 4vw, 48px);
    margin-top: clamp(40px, 5vw, 56px);
}
.rs-nearby h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 22px;
    margin: 0 0 6px;
}
.rs-nearby dl { margin: 0; }
.rs-nearby div.rs-fact dd { font-size: 19px; }
.rs-nearby__note { font-size: 12px; color: var(--muted); letter-spacing: 0.03em; margin: 12px 0 0; }
@media (max-width: 720px) { .rs-nearby { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- presented by ---------- */

.rs-presented {
    background: var(--dark);
    color: var(--dark-text);
    padding: clamp(64px, 9vw, 104px) 0;
}
.rs-presented .rs-eyebrow { color: #c0a172; }
.rs-presented .rs-title { color: #fff; }
.rs-agent {
    display: grid;
    grid-template-columns: minmax(220px, 340px) 1fr;
    gap: clamp(28px, 4vw, 48px);
    align-items: start;
}
.rs-agent__photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.rs-agent__company {
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #b9ae9a;
    margin: 4px 0 18px;
}
.rs-agent__bio { font-size: 15.5px; line-height: 1.8; letter-spacing: 0.03em; color: #d9d0bf; margin: 0 0 26px; font-weight: 300; }
.rs-agent__links { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; }
.rs-agent__links a, .rs-agent__links span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid #6e5a37;
    font-size: 13.5px;
    letter-spacing: 0.06em;
    color: #e6ddcc;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease;
}
.rs-agent__links a:hover { border-color: #c0a172; color: #fff; }
.rs-agent__disclosure { max-width: 520px; }
.rs-agent__disclosure p { font-size: 13px; letter-spacing: 0.04em; color: var(--dark-muted); margin: 0 0 12px; }
@media (max-width: 720px) {
    .rs-agent { grid-template-columns: 1fr; }
    .rs-agent__photo { max-width: 320px; }
}

/* ---------- footer ---------- */

.rs-footer {
    background: var(--darker);
    color: var(--dark-text);
    border-top: 1px solid #3a342a;
    padding: clamp(40px, 5vw, 56px) 0 clamp(36px, 5vw, 48px);
    text-align: center;
}
.rs-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; margin: 0 0 32px; }
.rs-footer__links a {
    font-family: var(--serif);
    font-size: 20px;
    color: var(--cream);
    text-decoration: none;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--cream);
    transition: color .2s ease, border-color .2s ease;
}
.rs-footer__links a:hover { color: #fff; border-color: #c0a172; }
.rs-footer__brand {
    font-family: var(--serif);
    font-size: clamp(17px, 2vw, 22px);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dark-text);
    margin: 0 0 22px;
}
.rs-footer__legal { max-width: 820px; margin: 0 auto; font-size: 12px; line-height: 1.8; letter-spacing: 0.04em; color: #6f685c; }
.rs-footer__legal p { margin: 0 0 4px; }
.rs-footer__legal a { color: #8f8676; }
.rs-footer__nav { margin-top: 16px !important; }
.rs-footer__nav a { text-decoration: none; margin: 0 10px; }
.rs-footer__nav a:hover { color: var(--dark-text); }

/* ---------- disclosure modal ---------- */

.modal-overlay, .quick-actions-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(18, 16, 13, .72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.modal-overlay.active, .quick-actions-overlay.active { display: flex; }
.modal-container, .quick-actions-container {
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: var(--paper);
    border-top: 3px solid var(--gold);
    position: relative;
}
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 28px 28px 0; }
.modal-title { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.1; margin: 6px 0 0; }
.modal-close, .quick-actions-close {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: var(--ink);
    flex: none;
    font-size: 22px;
    line-height: 1;
}
.modal-close svg { width: 18px; height: 18px; }
.modal-body { padding: 12px 28px 28px; }
.modal-description { font-size: 14px; color: var(--text); margin: 0 0 20px; }
.form-group { margin: 0 0 16px; }
.form-label { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text); margin: 0 0 6px; }
.form-input, .form-textarea {
    width: 100%;
    font: inherit;
    font-size: 16px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #d8d0c1;
    border-radius: 0;
    padding: 12px 14px;
    transition: border-color .2s ease;
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(140, 108, 57, .15); }
.form-textarea { resize: vertical; min-height: 84px; }
.form-helper { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.form-message { margin-top: 14px; font-size: 14px; display: none; }
.form-message.success { display: block; color: #3d6b3a; }
.form-message.error { display: block; color: #9b2c2c; }

.quick-actions-container { padding: 28px; }
.quick-actions-close { position: absolute; top: 16px; right: 16px; }
.quick-actions-title { font-family: var(--serif); font-weight: 500; font-size: 28px; margin: 0 0 20px; }
.quick-actions-buttons { display: grid; gap: 10px; }
.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    text-align: left;
    cursor: pointer;
}
.quick-action-btn svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.quick-action-label { font-size: 11.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.quick-action-detail { font-size: 14px; color: var(--text); }

/* ---------- floating mobile CTA ---------- */

.floating-mobile-cta {
    display: none;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 950;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    background: var(--gold);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(31, 28, 23, .28);
    cursor: pointer;
}
.floating-mobile-cta svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
    /* Hidden while the hero's own Get Full Disclosure button is on screen;
       residence.js adds .is-visible once it scrolls away. */
    .floating-mobile-cta {
        display: flex;
        opacity: 0;
        visibility: hidden;
        transform: translateY(calc(100% + 16px));
        transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
    }
    .floating-mobile-cta.is-visible {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity .25s ease, transform .25s ease, visibility 0s;
    }
    .rs-footer { padding-bottom: 96px; }
}

/* ---------- print ---------- */

@media print {
    .rs-nav, .floating-mobile-cta, .rs-arrow, .rs-thumbs, .rs-gallery__actions, .rs-hero .rs-btn-row, #tour { display: none !important; }
    .rs-hero { min-height: 0; color: var(--ink); }
    .rs-hero::after, .rs-hero__img { display: none; }
}
