/*
 * Real estate websites: the property search, cards, the /properties page, a property's page and the home
 * page sections (sections/re). The three themes (looks/keystone.css, haven.css, skyline.css) set the variables
 * below and reshape what makes them different: the opening, the cards and the headings.
 */
:root {
    --re-accent: var(--primary-color, #db2b39);
    --re-on-accent: #ffffff;
    --re-ink: #161e2d;
    --re-text: #5c6370;
    --re-mute: #636976;
    --re-line: #e6e8ec;
    --re-bg: #ffffff;
    --re-soft: #f6f7f9;
    --re-dark: #161e2d;
    --re-on-dark: #ffffff;
    --re-radius: 12px;
    --re-radius-sm: 8px;
    --re-head-font: inherit;
    --re-head-weight: 600;
    --re-wrap: 1240px;
    --re-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 20px rgba(16, 24, 40, .06);
    --re-shadow-lift: 0 16px 40px rgba(16, 24, 40, .12);
}

.re-wrap { width: min(100% - 40px, var(--re-wrap)); margin-inline: auto; }
.re-page ul, .re-section ul, .re-hero ul { list-style: none; }
.re-page li, .re-section li, .re-hero li { list-style: none; }
.re-page li::before, .re-section li::before, .re-page li::marker, .re-section li::marker { content: none; }
.re-page, .re-section, .re-hero { color: var(--re-text); }
.re-page h1, .re-page h2, .re-page h3,
.re-section h2, .re-section h3,
.re-hero h1, .re-page .sx-h1, .re-hero .sx-h1 { color: var(--re-ink); font-family: var(--re-head-font); font-weight: var(--re-head-weight); letter-spacing: -.01em; }
.re-i { flex: 0 0 auto; vertical-align: -3px; }

/* ------------------------------------------------------------------ buttons, pills, badges */

.re-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 26px; border: 1.5px solid var(--re-ink); border-radius: var(--re-radius-sm);
    background: transparent; color: var(--re-ink); font-size: 15px; font-weight: 600; text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; cursor: pointer;
}
.re-btn:hover { background: var(--re-ink); color: #fff; }
.re-btn-solid { border-color: var(--re-accent); background: var(--re-accent); color: var(--re-on-accent); }
.re-btn-solid:hover { border-color: var(--re-ink); background: var(--re-ink); color: #fff; }
.re-btn-whatsapp { width: 100%; margin-top: 12px; border-color: #15803d; background: #15803d; color: #fff; }
.re-btn-whatsapp:hover { border-color: #116932; background: #116932; color: #fff; }
.re-center { margin: 40px 0 0; text-align: center; }

.re-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.re-pills button { min-height: 40px; padding: 0 18px; border: 1px solid var(--re-line); border-radius: 999px; background: var(--re-bg); color: var(--re-ink); font-size: 14px; font-weight: 500; cursor: pointer; transition: all .2s ease; }
.re-pills button:hover { border-color: var(--re-ink); }
.re-pills button.is-on { border-color: var(--re-accent); background: var(--re-accent); color: var(--re-on-accent); }

.re-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.re-badge { display: inline-block; padding: 4px 10px; border-radius: 4px; background: var(--re-ink); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; line-height: 1.3; text-transform: uppercase; }
.re-badge-rent { background: var(--re-accent); color: var(--re-on-accent); }
.re-badge-sale { background: var(--re-ink); }
.re-badge-featured { background: #1f9d55; }
.re-badge-offer { background: #b7791f; }
.re-badge-closed { background: #6b7280; }

/* ------------------------------------------------------------------ section headings */

.re-section { padding: clamp(64px, 8vw, 110px) 0; background: var(--re-bg); }
.re-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.re-head-row .re-head { margin-bottom: 0; }
.re-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.re-kicker { margin: 0 0 10px; color: var(--re-accent); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.re-head h2 { margin: 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; }
.re-lead { max-width: 620px; margin: 14px 0 0; color: var(--re-text); font-size: 16.5px; line-height: 1.7; }
.re-more { display: inline-flex; align-items: center; gap: 6px; color: var(--re-ink); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.re-more:hover { color: var(--re-accent); }

/* ------------------------------------------------------------------ property cards */

.re-grid { display: grid; grid-template-columns: repeat(var(--re-cols, 3), minmax(0, 1fr)); gap: 28px 24px; }
.re-grid-3 { --re-cols: 3; }
.re-grid-item[hidden] { display: none; }
.re-card { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--re-line); border-radius: var(--re-radius); background: var(--re-bg); transition: box-shadow .3s ease, transform .3s ease; }
.re-card:hover { box-shadow: var(--re-shadow-lift); transform: translateY(-3px); }
.re-card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--re-soft); }
.re-card-media img, .re-card-media .sx-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.re-card:hover .re-card-media img { transform: scale(1.05); }
.re-card-media .re-badges { position: absolute; top: 14px; left: 14px; }
.re-card-type { position: absolute; left: 14px; bottom: 14px; padding: 4px 10px; border-radius: 4px; background: rgba(255, 255, 255, .94); color: var(--re-ink); font-size: 12px; font-weight: 600; }
.re-card.is-closed .re-card-media img { filter: grayscale(.6); }
.re-card-body { flex: 1 1 auto; padding: 20px 20px 16px; }
.re-card-place { display: flex; align-items: center; gap: 5px; margin: 0 0 8px; color: var(--re-mute); font-size: 13.5px; }
.re-card-title { margin: 0 0 10px; font-size: 19px !important; line-height: 1.3; }
.re-card-title a { color: var(--re-ink); text-decoration: none; }
.re-card-title a:hover { color: var(--re-accent); }
.re-card-price { margin: 0 0 14px; color: var(--re-accent); font-size: 20px; font-weight: 700; }
.re-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--re-line); list-style: none; }
.re-facts li { display: inline-flex; align-items: center; gap: 6px; color: var(--re-text); font-size: 14px; }
.re-facts .re-i { color: var(--re-mute); }
.re-facts strong { font-weight: 600; color: var(--re-ink); }
.re-facts em { font-style: normal; font-weight: 400; color: var(--re-text); }
.re-fact-label { display: none; }
.re-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--re-line); }
.re-card-kind { display: inline-flex; align-items: center; gap: 6px; color: var(--re-text); font-size: 13.5px; }
.re-card-more { display: inline-flex; align-items: center; gap: 6px; color: var(--re-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.re-card-more:hover { color: var(--re-accent); }

/* ------------------------------------------------------------------ search */

.re-search { margin: 0; }
.re-search-tabs { display: inline-flex; gap: 4px; }
.re-tab { margin: 0; cursor: pointer; }
.re-tab input { position: absolute; opacity: 0; pointer-events: none; }
.re-tab span { display: block; padding: 11px 22px; border-radius: var(--re-radius-sm) var(--re-radius-sm) 0 0; background: rgba(255, 255, 255, .72); color: var(--re-ink); font-size: 14.5px; font-weight: 600; transition: background-color .2s ease; }
.re-tab input:checked + span { background: var(--re-bg); color: var(--re-accent); }
.re-tab input:focus-visible + span { outline: 2px solid var(--re-accent); outline-offset: 2px; }
.re-search-fields { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 0; align-items: stretch; padding: 10px; border-radius: 0 var(--re-radius) var(--re-radius) var(--re-radius); background: var(--re-bg); box-shadow: var(--re-shadow-lift); }
.re-field { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; margin: 0; padding: 8px 18px; border-right: 1px solid var(--re-line); }
.re-field span { color: var(--re-mute); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.re-field input, .re-field select { width: 100%; height: 30px; padding: 0; border: 0; background: transparent; color: var(--re-ink); font-size: 15px; font-weight: 500; outline: none; box-shadow: none; appearance: auto; }
.re-field input::placeholder { color: var(--re-mute); font-weight: 400; }
.re-search-fields > .re-field:last-of-type { border-right: 0; }
.re-search-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 30px; border: 0; border-radius: var(--re-radius-sm); background: var(--re-accent); color: var(--re-on-accent); font-size: 15px; font-weight: 600; cursor: pointer; transition: filter .2s ease; }
.re-search-go:hover { filter: brightness(.92); }

.re-search--band .re-search-fields,
.re-search--bar .re-search-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
.re-search--band .re-field,
.re-search--bar .re-field { padding: 8px 14px; border: 1px solid var(--re-line); border-radius: var(--re-radius-sm); background: var(--re-bg); }
.re-search--bar { margin: 0 0 36px; padding: 18px; border: 1px solid var(--re-line); border-radius: var(--re-radius); background: var(--re-soft); }
.re-search--bar .re-search-fields { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.re-search--bar .re-field-q { grid-column: span 3; }
.re-search--bar .re-search-go { min-height: 100%; }
.re-search--bar .re-field span, .re-search--band .re-field span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------------ listing page */

.re-listing-head { padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 3vw, 36px); background: var(--re-soft); margin-bottom: 32px; }
.re-listing-head h1, .re-listing-head .sx-h1 { margin: 0; font-size: clamp(30px, 3.6vw, 46px); }
.re-listing-head h1 span, .re-listing-head .sx-h1 span { color: var(--re-mute); font-weight: 400; }
.re-listing-head p { margin: 8px 0 0; color: var(--re-text); }
.re-listing-head a { color: var(--re-accent); font-weight: 600; }
.re-listing .re-grid { margin-bottom: 48px; }
.re-pages { display: flex; justify-content: center; gap: 8px; margin: 0 0 72px; }
.re-pages a, .re-pages span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--re-line); border-radius: var(--re-radius-sm); color: var(--re-ink); font-weight: 600; text-decoration: none; }
.re-pages a:hover { border-color: var(--re-ink); }
.re-pages .is-on { border-color: var(--re-accent); background: var(--re-accent); color: var(--re-on-accent); }
.re-pages .is-off { opacity: .35; }
.re-empty { max-width: 520px; margin: 40px auto 96px; text-align: center; }
.re-empty .re-i { color: var(--re-mute); }
.re-empty h2 { margin: 18px 0 8px; font-size: 26px; }
.re-empty p { margin: 0 0 24px; }

/* ------------------------------------------------------------------ property page */

.re-property { padding-bottom: 80px; }
.re-crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0; color: var(--re-mute); font-size: 14px; }
.re-crumbs a { color: var(--re-text); text-decoration: none; }
.re-crumbs a:hover { color: var(--re-accent); }
.re-gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; height: clamp(320px, 46vw, 560px); overflow: hidden; border-radius: var(--re-radius); }
.re-gallery-item { position: relative; display: block; overflow: hidden; background: var(--re-soft); }
.re-gallery-item:first-child { grid-row: 1 / span 2; }
.re-gallery-item img, .re-gallery-item .sx-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.re-gallery-item:hover img { transform: scale(1.03); }
.re-gallery-1 { grid-template-columns: 1fr; }
.re-gallery-2 { grid-template-columns: 2fr 1fr; }
.re-gallery-2 .re-gallery-item:last-of-type { grid-row: 1 / span 2; }
.re-gallery-3 { grid-template-columns: 2fr 1fr; }
.re-gallery-4 { grid-template-columns: 2fr 1fr 1fr; }
.re-gallery-4 .re-gallery-item:nth-of-type(4) { grid-column: 2 / span 2; }
.re-gallery-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff; font-weight: 600; }
.re-gallery-all { position: absolute; right: 16px; bottom: 16px; padding: 10px 16px; border: 0; border-radius: var(--re-radius-sm); background: #fff; color: var(--re-ink); font-size: 14px; font-weight: 600; box-shadow: var(--re-shadow); cursor: pointer; }

.re-property-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; padding: 34px 0 26px; border-bottom: 1px solid var(--re-line); }
.re-property-head h1, .re-property-head .sx-h1 { margin: 12px 0 10px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; }
.re-property-place { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: var(--re-text); font-size: 16px; }
.re-property-price { text-align: right; }
.re-property-price strong { display: block; color: var(--re-accent); font-size: clamp(28px, 3vw, 38px); font-weight: 700; line-height: 1.1; }
.re-property-price span { display: block; margin-top: 6px; color: var(--re-mute); font-size: 14px; }
.re-keyfacts { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.re-keyfacts li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; min-width: 150px; padding: 14px 18px; border: 1px solid var(--re-line); border-radius: var(--re-radius-sm); }
.re-keyfacts .re-i { grid-row: 1 / span 2; color: var(--re-accent); }
.re-keyfacts strong { color: var(--re-ink); font-size: 17px; }
.re-keyfacts span { color: var(--re-mute); font-size: 13px; }

.re-property-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; margin-top: 40px; }
.re-block { padding: 0 0 36px; margin: 0 0 36px; border-bottom: 1px solid var(--re-line); }
.re-block:last-child { border-bottom: 0; }
.re-block h2 { margin: 0 0 18px; font-size: 22px; }
.re-prose { color: var(--re-text); font-size: 16px; line-height: 1.8; }
.re-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px; margin: 0; }
.re-overview div { display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.re-overview .re-i { grid-row: 1 / span 2; width: 42px; height: 42px; padding: 10px; border-radius: var(--re-radius-sm); background: var(--re-soft); color: var(--re-accent); }
.re-overview dt { color: var(--re-mute); font-size: 13px; font-weight: 500; }
.re-overview dd { margin: 0; color: var(--re-ink); font-weight: 600; }
.re-amenities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; margin: 0; padding: 0; list-style: none; }
.re-amenities li { display: flex; align-items: center; gap: 8px; color: var(--re-ink); }
.re-amenities .re-i { color: var(--re-accent); }
.re-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--re-radius); background: #000; }
.re-video iframe, .re-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.re-nearby { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.re-nearby li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--re-line); }
.re-nearby strong { color: var(--re-ink); }
.re-map { position: relative; height: 360px; margin-top: 16px; overflow: hidden; border-radius: var(--re-radius); background: var(--re-soft); }

.re-property-side { position: sticky; top: 24px; }
.re-contact-card { padding: 26px; border: 1px solid var(--re-line); border-radius: var(--re-radius); background: var(--re-bg); box-shadow: var(--re-shadow); }
.re-agent { display: flex; align-items: center; gap: 14px; }
.re-agent-photo { position: relative; flex: 0 0 auto; width: 62px; height: 62px; overflow: hidden; border-radius: 50%; background: var(--re-soft); }
.re-agent-photo img, .re-agent-photo .sx-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.re-agent strong { display: block; color: var(--re-ink); font-size: 17px; }
.re-agent em { display: block; color: var(--re-mute); font-size: 13.5px; font-style: normal; }
.re-agent-ways { margin: 18px 0 0; padding: 0; list-style: none; }
.re-agent-ways a { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--re-text); text-decoration: none; overflow-wrap: anywhere; }
.re-agent-ways a:hover { color: var(--re-accent); }
.re-enquiry { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--re-line); }
.re-enquiry h2 { margin: 0 0 16px; font-size: 19px; }
.re-enquiry label { display: block; margin: 0 0 12px; }
.re-enquiry label span { display: block; margin-bottom: 5px; color: var(--re-ink); font-size: 13.5px; font-weight: 600; }
.re-enquiry input, .re-enquiry textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--re-line); border-radius: var(--re-radius-sm); background: var(--re-bg); color: var(--re-ink); font-size: 15px; }
.re-enquiry input:focus, .re-enquiry textarea:focus { border-color: var(--re-accent); outline: 2px solid color-mix(in srgb, var(--re-accent) 25%, transparent); }
.re-enquiry .re-btn { width: 100%; }
.re-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.re-error { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--re-radius-sm); background: #fdecec; color: #a4161a; font-size: 14px; }
.re-sent { display: flex; gap: 10px; margin-top: 22px; padding: 16px; border-radius: var(--re-radius-sm); background: #e9f7ef; color: #1b5e3a; font-size: 14.5px; }
.re-sent strong { display: block; }
.re-similar { margin-top: 32px; padding-top: 48px; border-top: 1px solid var(--re-line); }
.re-similar h2 { margin: 0 0 28px; font-size: clamp(24px, 2.6vw, 32px); }

/* Photos full screen (realestate.js). */
.re-viewer { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 60px 70px; background: rgba(8, 10, 14, .94); }
.re-viewer[hidden] { display: none; }
.re-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.re-viewer button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.re-viewer button:hover { background: rgba(255, 255, 255, .24); }
.re-viewer-close { top: 16px; right: 16px; }
.re-viewer-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.re-viewer-next { right: 14px; top: 50%; transform: translateY(-50%); }
.re-viewer-count { position: absolute; bottom: 18px; left: 0; right: 0; margin: 0; color: rgba(255, 255, 255, .8); text-align: center; font-size: 14px; }
html.re-viewing { overflow: hidden; }

/* ------------------------------------------------------------------ mortgage */

.re-mortgage { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; }
.re-mortgage-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; }
.re-mortgage-fields label { margin: 0; }
.re-mortgage-fields label > span { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--re-ink); font-size: 13.5px; font-weight: 600; }
.re-mortgage-fields input[type=text], .re-mortgage-fields select { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--re-line); border-radius: var(--re-radius-sm); background: var(--re-bg); color: var(--re-ink); font-size: 15px; }
.re-mortgage-fields input[type=range] { width: 100%; height: 48px; accent-color: var(--re-accent); }
.re-mortgage-result { display: flex; flex-direction: column; justify-content: center; padding: 26px; border-radius: var(--re-radius); background: var(--re-dark); color: rgba(255, 255, 255, .75); }
.re-mortgage-result > span { font-size: 14px; }
.re-mortgage-result > strong { display: block; margin: 6px 0 18px; color: #fff; font-size: clamp(30px, 3vw, 40px); font-weight: 700; line-height: 1.1; }
.re-mortgage-result dl { display: grid; gap: 8px; margin: 0 0 14px; }
.re-mortgage-result dl div { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .12); }
.re-mortgage-result dd { margin: 0; color: #fff; font-weight: 600; }
.re-mortgage-result small { color: rgba(255, 255, 255, .55); }

/* ------------------------------------------------------------------ home page sections */

/* The opening. */
.re-hero { position: relative; }
.re-hero h1, .re-hero .sx-h1 { margin: 0 0 18px; font-size: clamp(38px, 5.6vw, 76px); line-height: 1.04; }
.re-hero .re-lead { margin: 0 0 32px; font-size: clamp(16px, 1.3vw, 19px); }
.re-hero-media { position: relative; overflow: hidden; background: var(--re-soft); }
.re-hero-media > img, .re-hero-media > .sx-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.re-hero-center { display: grid; align-items: center; min-height: clamp(560px, 82vh, 820px); padding: 120px 0 90px; }
.re-hero-center .re-hero-media { position: absolute; inset: 0; }
.re-hero-center .re-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 14, 22, .55), rgba(10, 14, 22, .7)); }
.re-hero-center .re-hero-copy { position: relative; z-index: 1; text-align: center; }
.re-hero-center h1, .re-hero-center .sx-h1 { color: #fff; }
.re-hero-center .re-kicker { color: #fff; opacity: .85; }
.re-hero-center .re-lead { max-width: 640px; margin-inline: auto; color: rgba(255, 255, 255, .88); }
.re-hero-center .re-search { max-width: 1000px; margin: 0 auto; text-align: left; }

.re-hero-split { padding: clamp(40px, 6vw, 80px) 0; background: var(--re-soft); }
.re-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.re-hero-split .re-hero-media { aspect-ratio: 4 / 4.6; border-radius: var(--re-radius); }
.re-hero-split .re-search-fields { grid-template-columns: 1fr 1fr; }
.re-hero-split .re-field-q { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--re-line); }
.re-hero-split .re-search-go { grid-column: 1 / -1; margin-top: 8px; }
.re-hero-split .re-field:nth-of-type(2) { border-right: 1px solid var(--re-line); }
.re-hero-split .re-field:nth-of-type(3) { border-right: 0; }
.re-hero-note { position: absolute; left: 22px; bottom: 22px; display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 20px; border-radius: var(--re-radius); background: var(--re-bg); box-shadow: var(--re-shadow-lift); }
.re-hero-note strong { color: var(--re-accent); font-size: 28px; line-height: 1; }
.re-hero-note span { color: var(--re-ink); font-size: 14px; font-weight: 500; }

.re-hero-photo .re-hero-media { height: clamp(380px, 58vh, 600px); }
.re-hero-photo .re-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 14, 22, .55), transparent 55%); }
.re-hero-caption { position: absolute; left: 0; right: 0; bottom: 36px; z-index: 1; }
.re-hero-photo h1, .re-hero-photo .re-lead, .re-hero-photo .sx-h1 { color: #fff; }
.re-hero-photo .re-lead { margin: 0; }
.re-hero-band { padding: 26px 0 32px; background: var(--re-dark); }
.re-hero-band-title { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 9px 18px; background: var(--re-accent); color: var(--re-on-accent); font-weight: 600; }

/* Numbers. */
.re-stats { padding: clamp(40px, 5vw, 64px) 0; }
.re-stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.re-stats-row li { display: flex; align-items: center; gap: 14px; }
.re-stats-row strong { color: var(--re-accent); font-family: var(--re-head-font); font-size: clamp(40px, 4.4vw, 58px); font-weight: 700; line-height: 1; }
.re-stats-row span { max-width: 140px; color: var(--re-ink); font-size: 14.5px; font-weight: 600; letter-spacing: .03em; line-height: 1.3; text-transform: uppercase; }

/* Types. */
.re-types-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.re-types-grid a { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; height: 100%; padding: 24px; border: 1px solid var(--re-line); border-radius: var(--re-radius); background: var(--re-bg); color: var(--re-ink); text-decoration: none; transition: all .25s ease; }
.re-types-grid a:hover { border-color: var(--re-accent); box-shadow: var(--re-shadow); transform: translateY(-2px); }
.re-types-icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 10px; border-radius: var(--re-radius-sm); background: color-mix(in srgb, var(--re-accent) 12%, transparent); color: var(--re-accent); }
.re-types-grid strong { font-size: 17px; }
.re-types-grid em { color: var(--re-mute); font-size: 13.5px; font-style: normal; }

/* Locations. */
.re-cities-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.re-cities-grid a { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--re-radius); color: #fff; text-decoration: none; }
.re-cities-grid img, .re-cities-grid .sx-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.re-cities-grid a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 12, 20, .72), transparent 55%); }
.re-cities-grid a:hover img { transform: scale(1.06); }
.re-cities-grid span { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; }
.re-cities-grid strong { display: block; font-size: 24px; font-weight: 600; }
.re-cities-grid em { font-size: 14px; font-style: normal; opacity: .85; }

/* About. */
.re-about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.re-about-media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: end; }
.re-about-media > span { position: relative; display: block; overflow: hidden; border-radius: var(--re-radius); background: var(--re-soft); }
.re-about-one { aspect-ratio: 3 / 4; }
.re-about-two { aspect-ratio: 3 / 4.6; transform: translateY(-36px); }
.re-about-media img, .re-about-media .sx-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.re-years { position: absolute; left: 50%; top: 0; z-index: 1; display: grid; place-items: center; align-content: center; width: 128px; height: 128px; margin: 0; border: 6px solid var(--re-bg); border-radius: 50%; background: var(--re-dark); color: #fff; text-align: center; transform: translate(-50%, -18%); }
.re-years strong { font-size: 34px; line-height: 1; color: var(--re-accent); }
.re-years span { max-width: 80px; margin-top: 4px; font-size: 12px; line-height: 1.25; }
.re-about-copy .re-prose { margin: 0 0 28px; }

/* Services and reasons. */
.re-cards { display: grid; grid-template-columns: repeat(var(--re-cols, 3), minmax(0, 1fr)); gap: 24px; }
.re-cols-1 { --re-cols: 1; } .re-cols-2 { --re-cols: 2; } .re-cols-3 { --re-cols: 3; } .re-cols-4 { --re-cols: 4; }
.re-tile { position: relative; padding: 32px; border: 1px solid var(--re-line); border-radius: var(--re-radius); background: var(--re-bg); }
.re-tile h3 { margin: 18px 0 10px; font-size: 21px !important; }
.re-tile p { margin: 0; line-height: 1.7; }
.re-tile-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: color-mix(in srgb, var(--re-accent) 12%, transparent); color: var(--re-accent); }
.re-reason-no { position: absolute; top: 26px; right: 28px; color: var(--re-line); font-size: 40px; font-weight: 700; line-height: 1; }

/* Agents. */
.re-agent-card { overflow: hidden; border: 1px solid var(--re-line); border-radius: var(--re-radius); background: var(--re-bg); }
.re-agent-card-photo { position: relative; display: block; aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--re-soft); }
.re-agent-card-photo img, .re-agent-card-photo .sx-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.re-agent-card-body { padding: 20px 22px 22px; }
.re-agent-card h3 { margin: 0; font-size: 19px !important; }
.re-agent-card p { margin: 2px 0 12px; color: var(--re-mute); font-size: 14px; }
.re-agent-card ul { margin: 0; padding: 12px 0 0; border-top: 1px solid var(--re-line); list-style: none; }
.re-agent-card li a { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--re-text); font-size: 14px; text-decoration: none; overflow-wrap: anywhere; }
.re-agent-card li a:hover { color: var(--re-accent); }

/* What clients say. */
.re-quotes { background: var(--re-soft); }
.re-quotes-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 40px; align-items: start; }
.re-quotes-grid .re-head { display: block; }
.re-quotes-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.re-quote { margin: 0; padding: 28px; border-radius: var(--re-radius); background: var(--re-bg); box-shadow: var(--re-shadow); }
.re-quote blockquote { margin: 0 0 22px; padding: 0; border: 0; color: var(--re-ink); font-size: 16px; line-height: 1.7; }
.re-quote blockquote::before { content: "\201C"; display: block; height: 30px; color: var(--re-accent); font-size: 56px; font-family: Georgia, serif; line-height: 1; }
.re-quote figcaption { display: flex; align-items: center; gap: 12px; }
.re-quote img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.re-quote strong { display: block; color: var(--re-ink); }
.re-quote em { display: block; color: var(--re-mute); font-size: 13.5px; font-style: normal; }

/* Mortgage, news, gallery, call to action. */
.re-mortgage-section { background: var(--re-soft); }
.re-mortgage-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 40px; align-items: center; }
.re-mortgage-grid .re-head { display: block; margin: 0; }
.re-post { display: block; color: var(--re-ink); text-decoration: none; }
.re-post-media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 18px; border-radius: var(--re-radius); background: var(--re-soft); }
.re-post-media img, .re-post-media .sx-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.re-post:hover img { transform: scale(1.04); }
.re-post-meta { display: block; margin-bottom: 8px; color: var(--re-mute); font-size: 13px; }
.re-post strong { display: block; margin-bottom: 8px; font-size: 20px; line-height: 1.35; }
.re-post:hover strong { color: var(--re-accent); }
.re-post-text { color: var(--re-text); font-size: 15px; line-height: 1.6; }
.re-gallery-strip { padding-bottom: 0; }
.re-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.re-strip a { position: relative; display: block; aspect-ratio: 1 / .8; overflow: hidden; }
.re-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .3s ease; }
.re-strip a:hover img { transform: scale(1.06); filter: brightness(.85); }
.re-cta-band { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: center; overflow: hidden; padding: clamp(36px, 5vw, 64px); border-radius: var(--re-radius); background: var(--re-dark); color: rgba(255, 255, 255, .8); }
.re-cta-media { position: absolute; inset: 0; opacity: .25; }
.re-cta-media img { width: 100%; height: 100%; object-fit: cover; }
.re-cta-copy, .re-cta-actions { position: relative; }
.re-cta-band h2 { margin: 0 0 10px; color: #fff !important; font-size: clamp(26px, 3vw, 40px); }
.re-cta-band p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 16.5px; }
.re-cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.re-cta-phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 18px; font-weight: 600; text-decoration: none; }
.re-cta .re-btn-solid:hover { border-color: #fff; background: #fff; color: var(--re-ink); }

/* Features: one property large beside the next three. */
.re-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; }
.re-feature-main .re-card-media { aspect-ratio: 4 / 3.2; }
.re-feature-list { display: grid; gap: 16px; }
.re-feature-list .re-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.re-feature-list .re-card-media { grid-row: 1 / span 2; aspect-ratio: auto; height: 100%; }
.re-feature-list .re-card-body { padding: 16px 18px 10px; }
.re-feature-list .re-card-title { font-size: 17px !important; }
.re-feature-list .re-card-price { margin-bottom: 0; font-size: 17px; }
.re-feature-list .re-facts { display: none; }
.re-feature-list .re-card-foot { padding: 10px 18px; }
.re-feature-list .re-card-type { display: none; }

/* The "side" opening: a wide dark photo, the words on the left and the search in a panel on the right. */
.re-hero-frame { position: relative; overflow: hidden; }
.re-hero-sidegrid .re-hero-copy { color: #fff; }
.re-hero-frame .re-hero-media { position: absolute; inset: 0; }
.re-hero-frame .re-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 12, 20, .78) 0%, rgba(8, 12, 20, .45) 55%, rgba(8, 12, 20, .25)); }
.re-hero-sidegrid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: clamp(28px, 5vw, 80px); align-items: center; min-height: clamp(560px, 78vh, 760px); padding: clamp(56px, 7vw, 100px) 0; }
.re-hero-sidegrid h1, .re-hero-sidegrid .sx-h1 { color: #fff; }
.re-hero-sidegrid .re-kicker { color: #fff; opacity: .9; }
.re-hero-sidegrid .re-lead { max-width: 560px; color: rgba(255, 255, 255, .86); }
.re-hero-sidegrid .re-hero-note { position: static; display: inline-flex; margin-top: 8px; }
.re-hero-panel { padding: 26px; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--re-radius); background: rgba(255, 255, 255, .14); backdrop-filter: blur(14px); }
.re-hero-panel .re-search-tabs { margin-bottom: 0; }
.re-hero-panel .re-search-fields { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
.re-hero-panel .re-field { padding: 10px 14px; border: 0 !important; border-radius: var(--re-radius-sm); background: var(--re-bg); }
.re-hero-panel .re-search-go { width: 100%; }

/* "tall" properties: tall pictures, three to a row, the words over the picture. */
.re-properties-tall .re-grid { --re-cols: 3; }
.re-properties-tall .re-card { position: relative; min-height: 460px; border: 0; background: #0b0f17; color: #fff; }
.re-properties-tall .re-card-media { position: absolute; inset: 0; aspect-ratio: auto; }
.re-properties-tall .re-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 12, 20, .9) 0%, rgba(8, 12, 20, .35) 50%, rgba(8, 12, 20, .05)); }
.re-properties-tall .re-card-type { display: none; }
.re-properties-tall .re-card-body { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; pointer-events: none; }
.re-properties-tall .re-card-body a { pointer-events: auto; }
.re-properties-tall .re-card-place, .re-properties-tall .re-facts li, .re-properties-tall .re-facts .re-i, .re-properties-tall .re-facts em { color: rgba(255, 255, 255, .82); }
.re-properties-tall .re-card-title a, .re-properties-tall .re-facts strong { color: #fff; }
.re-properties-tall .re-card-price { color: #fff; }
.re-properties-tall .re-facts { border-top-color: rgba(255, 255, 255, .2); }
.re-properties-tall .re-card-foot { display: none; }

/* The header "name on the left, menu on the right" as one line on a computer: the menu took the whole width and
   fell under the name. */
@media (min-width: 992px) {
    body[data-pf-site="realestate"][data-pf-header="left"] .bottom_header:not(.bottom_header_sticky) nav.navbar { flex-wrap: nowrap; align-items: center; }
    body[data-pf-site="realestate"][data-pf-header="left"] .bottom_header:not(.bottom_header_sticky) nav.navbar > .navbar-collapse {
        flex: 1 1 auto !important; width: auto !important; justify-content: flex-end;
    }
}

/* ------------------------------------------------------------------ tablets and phones */

@media (max-width: 1199.98px) {
    .re-search--bar .re-search-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .re-search--bar .re-field-q { grid-column: span 3; }
    .re-cards.re-cols-4 { --re-cols: 2; }
}

@media (max-width: 991.98px) {
    .re-grid { --re-cols: 2; }
    .re-hero-grid, .re-about-grid, .re-quotes-grid, .re-mortgage-grid, .re-feature, .re-property-grid, .re-mortgage, .re-hero-sidegrid { grid-template-columns: minmax(0, 1fr); }
    .re-hero-sidegrid { min-height: 0; }
    .re-properties-tall .re-grid { --re-cols: 2; }
    .re-properties-tall .re-card { min-height: 380px; }
    .re-property-side { position: static; }
    .re-hero-split .re-hero-media { aspect-ratio: 4 / 3; }
    .re-search-fields { grid-template-columns: 1fr 1fr; }
    .re-field-q { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--re-line); }
    .re-search-go { grid-column: 1 / -1; margin-top: 8px; }
    .re-search--band .re-search-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .re-cities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .re-cards.re-cols-3 { --re-cols: 2; }
    .re-overview, .re-amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .re-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .re-wrap { width: calc(100% - 32px); }
    .re-grid, .re-cards.re-cols-2, .re-cards.re-cols-3, .re-cards.re-cols-4 { --re-cols: 1; }
    .re-search-tabs { display: flex; }
    .re-tab { flex: 1 1 0; }
    .re-tab span { padding: 11px 8px; text-align: center; }
    .re-search-fields { grid-template-columns: minmax(0, 1fr); border-radius: 0 0 var(--re-radius) var(--re-radius); }
    .re-field { border-right: 0 !important; border-bottom: 1px solid var(--re-line); }
    .re-search--band .re-search-fields, .re-search--bar .re-search-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .re-search--band .re-field-q, .re-search--bar .re-field-q { grid-column: 1 / -1; }
    .re-search--bar .re-search-go, .re-search--band .re-search-go { grid-column: 1 / -1; }
    .re-hero-center { min-height: 0; padding: 90px 0 60px; }
    .re-cities-grid { grid-template-columns: minmax(0, 1fr); }
    .re-gallery { grid-template-columns: 1fr !important; grid-template-rows: 1fr; height: 300px; }
    .re-gallery-item:not(:first-child) { display: none; }
    .re-property-head { flex-direction: column; align-items: flex-start; }
    .re-property-price { text-align: left; }
    .re-keyfacts li { min-width: calc(50% - 6px); }
    .re-nearby, .re-mortgage-fields { grid-template-columns: minmax(0, 1fr); }
    .re-overview, .re-amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
    .re-feature-list .re-card { grid-template-columns: 120px minmax(0, 1fr); }
    .re-cta-band { grid-template-columns: minmax(0, 1fr); }
    .re-about-two { transform: none; }
    .re-years { width: 104px; height: 104px; }
    .re-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .re-viewer { padding: 60px 8px; }
}

/* The listing and property pages carry their own title and breadcrumb: the theme's band steps aside. */
body:has(.re-page) .breadcrumb_section { display: none !important; }
.re-search { display: block; }
/* The drawn name (no logo uploaded yet) turns white on the dark footer. */
.footer_dark .footer_logo img[src*="store-wordmark"] { filter: brightness(0) invert(1); }
