/* Measurements, typography and colors follow the 1920px / 414px XD artboards. */
.home-route {
    --max-page-width: var(--nav-header-max-width);
    --home-gutter: var(--nav-header-side-padding);
    --home-content-max-width: calc(var(--nav-header-max-width) - var(--home-gutter) * 2);
    --home-track-gap: 12px;
    color: #000;
    background: #fff;
    -webkit-text-size-adjust: 100%;
}
.home-page, .home-page *, .home-review-dialog, .home-review-dialog * { box-sizing: border-box; }
.home-page { margin-top: calc(var(--nav-bar-height) + 1px); padding-bottom: 235px; overflow: clip; }
.home-page h1, .home-page h2, .home-page h3, .home-page p { margin: 0; }
.home-container { width: calc(100% - var(--home-gutter) * 2); max-width: var(--home-content-max-width); margin-inline: auto; }
.home-hero { position: relative; max-width: 1920px; height: min(56vw, 1075px); margin-inline: auto; isolation: isolate; }
.home-hero-art { position: absolute; top: 11.18%; left: 36.736%; width: 61.875%; height: auto; z-index: -1; }
.home-hero-title { position: absolute; top: 5.12%; left: 0; width: 100%; text-align: center; text-transform: uppercase; font-size: min(7.5vw, 144px); font-weight: 400; line-height: .972222; }
/* XD uses a centered white text stroke: 2px at the 144px desktop type size. */
.home-hero-title span { display: block; -webkit-text-stroke: .013888889em #fff; }
.home-hero-title span:first-child { font-family: var(--nav-link-font-family); color: #c1c1c1; }
.home-hero-introduction { position: absolute; top: 69.3%; left: max(var(--home-gutter), calc((100% - var(--home-content-max-width)) / 2)); max-width: 400px; color: #7e7e7e; font: 400 min(2.34375vw, 45px)/1.333333 var(--nav-link-font-family); }
.home-market-grid { display: grid; grid-template-columns: minmax(0, 1.365fr) minmax(0, 1fr); column-gap: 48px; row-gap: 0; }
.home-market-panel { min-width: 0; }
.home-market-intro { display: block; min-height: 196px; padding-bottom: 40px; }
.home-section-title { font: 400 40px/1.1 var(--nav-link-font-family); letter-spacing: 1.6px; }
.home-market-intro .home-section-title { display: flex; align-items: flex-start; gap: 32px; width: fit-content; max-width: 100%; }
/* Original XD vectors: 38.037px / 21.192px paths plus round stroke bounds. */
/* Center the arrow within the first line, even when the title wraps. */
.home-heading-arrow { --home-heading-arrow-mask: url('/img/home-market-arrow-desktop.svg'); --home-heading-arrow-height: calc(24.96875px * .8); display: block; width: calc(41.037109375px * .8); height: var(--home-heading-arrow-height); margin-top: calc((1lh - var(--home-heading-arrow-height)) / 2); flex-shrink: 0; background-color: #c1c1c1; -webkit-mask: var(--home-heading-arrow-mask) center / contain no-repeat; mask: var(--home-heading-arrow-mask) center / contain no-repeat; transform: translateX(0); transition: background-color 300ms ease-out, transform 180ms ease; }
.home-heading-arrow img { display: block; width: 100%; height: auto; visibility: hidden; }
.home-market-intro p { margin-top: 12px; color: #424242; font-size: 18px; line-height: 35px; letter-spacing: .72px; }
.home-market-stats .home-market-intro p { max-width: 540px; }
.home-scroll-track { min-width: 0; }
.home-news-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: var(--home-track-gap); }
.home-news-card { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; padding: 22px; overflow: hidden; border-radius: 18px; background: #f3f3f3; }
.home-news-card time { color: #ff7f00; font-size: 16px; line-height: 23px; letter-spacing: .64px; }
.home-news-card h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; margin: 0; color: #7e7e7e; font-size: 18px; font-weight: 400; line-height: 25px; letter-spacing: .72px; }
.home-news-card > img { display: block; flex: 1 0 auto; width: 100%; aspect-ratio: 203 / 132; height: auto; margin-top: 0; object-fit: cover; }
.home-news-image-unavailable { display: grid; place-items: center; flex: 1 0 auto; width: 100%; min-height: 132px; margin-top: 0; background: #e8e8e8; color: #424242; font-size: 16px; }
.home-newsletter { container-type: inline-size; display: flex; flex-direction: column; min-height: 0; padding: 27px 42px 0; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #fde5c9 0%, #e5926e 40%, #965436 90%); }
/* Fit the heading to its box, retaining XD's full 46px size when space allows. */
.home-newsletter h3 { text-align: center; font: italic 400 46px/1.05 var(--nav-link-font-family); font-size: clamp(20px, 9.5cqi, 46px); letter-spacing: .02em; }
.home-newsletter p { margin-top: 18px; margin-bottom: 0; text-align: center; font-size: 18px; line-height: 32px; letter-spacing: .72px; }
.home-newsletter p a { text-decoration: underline; text-underline-offset: 3px; }
.home-newsletter-actions { display: flex; align-items: center; flex: 1; padding-block: 16px; }
.home-signup { display: grid; place-items: center; width: 100%; min-height: 64px; margin-top: 0; border-radius: 16px; background: #fff; color: #965436; font-size: 24px; line-height: 1.3; letter-spacing: 2px; text-transform: uppercase; transition: background-color 180ms ease-out, color 180ms ease-out; }
/* Offset the font's cap-height imbalance while retaining grid centering. */
.home-signup > span { display: block; -webkit-text-stroke: .5px currentColor; transform: translateY(2px); }
.home-latest { margin-top: 80px; }
.home-property-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 50px; }
.home-property-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 24px; background: #f3f3f3; }
.home-property-image-wrap { position: relative; overflow: hidden; aspect-ratio: 335 / 251; }
.home-property-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-property-image-unavailable { display: grid; place-items: center; height: 100%; padding: 20px; background: #e8e8e8; color: #424242; text-align: center; }
.home-property-status { position: absolute; left: 18px; bottom: 20px; padding: 4px 10px; background: #ec0000; color: #fff; font: italic 700 25px/1.1 var(--nav-link-font-family); text-transform: uppercase; }
.home-property-status--leased { background: rgba(255, 127, 0, .8); }
.home-property-copy { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 110px; padding: 20px 22px 22px; }
.home-property-copy h3 { font-size: 20px; line-height: 28px; font-weight: 400; overflow-wrap: anywhere; }
/* Grid cards stretch to the tallest address; keep each price row at the bottom. */
.home-property-price-row { --home-price-font-size: 28px; --home-price-line-height: calc(var(--home-price-font-size) * 1.15); --home-arrow-width: 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-width: 0; margin-top: auto; padding-top: 4px; }
.home-property-copy p { flex: 1; min-width: 0; margin: 0; color: #7e7e7e; font: 400 var(--home-price-font-size)/var(--home-price-line-height) var(--nav-link-font-family); overflow-wrap: anywhere; }
/* Center the original 32 × 38px arrow image against the final price line. */
.home-property-arrow { display: block; flex: 0 0 auto; width: var(--home-arrow-width); height: auto; margin-bottom: calc((var(--home-price-line-height) - var(--home-arrow-width) * 1.1875) / 2); transition: transform 180ms ease-out; }
.home-view-all { width: fit-content; max-width: 100%; padding-bottom: 6px; border-bottom: 1px solid #7e7e7e; color: #7e7e7e; font-size: 22px; line-height: 28px; letter-spacing: .88px; text-align: center; }
.home-view-all-listings, .home-view-all-transactions { display: block; margin: 40px auto 0; }
.home-reviews { margin-top: 128px; }
.home-feature-title { text-align: center; font: 400 57.6px/64px var(--nav-link-font-family); letter-spacing: 2.016px; }
.home-google-rating { display: block; width: fit-content; margin: 14px auto 0; color: #7e7e7e; font-size: 25px; line-height: 35px; letter-spacing: 1.25px; }
.home-google-rating span { color: #ff7f00; }
.home-review-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; max-width: 1232px; margin: 70px auto 0; }
.home-review-card { min-width: 0; }
.home-review-open { position: relative; display: flex; flex-direction: column; height: 100%; padding: 45px 50px 55px; overflow: hidden; border: 2px solid #e8e8e8; border-radius: 15px; background: #fff; }
.home-news-card::after, .home-property-card::after, .home-review-open::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; background: rgb(0 0 0 / 8%); opacity: 0; pointer-events: none; transition: opacity 300ms ease-out; }
.home-review-quote, .home-dialog-quote { display: block; flex-shrink: 0; height: 45px; color: #ffd110; font: 700 55px/1 var(--nav-link-font-family); }
/* Equal line counts align the endings; home.js fits literal "..." into the final line. */
.home-review-excerpt { --home-review-lines: 8; --home-review-line-height: 28px; display: block; flex: 0 0 auto; height: calc(var(--home-review-lines) * var(--home-review-line-height)); overflow: hidden; margin: 8px 0 0; color: #424242; font-size: 16px; line-height: var(--home-review-line-height); letter-spacing: .64px; }
.home-review-person { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.home-review-person > img { display: block; flex: 0 0 60px; width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.home-review-person > span { min-width: 0; }
.home-review-person strong { display: block; font-size: 20px; line-height: 28px; letter-spacing: .8px; overflow-wrap: anywhere; }
.home-review-stars { display: block; margin-top: 4px; color: #ffc400; font-size: 22px; line-height: 26px; letter-spacing: 1px; }
.home-recent-transactions { margin-top: 130px; }
.home-recent-transactions .home-property-track { margin-top: 66px; }
.home-empty { color: #7e7e7e; font-size: 16px; line-height: 28px; }
.home-empty a { text-decoration: underline; text-underline-offset: 3px; }
.home-property-track > .home-empty { grid-column: 1 / -1; }
.home-page a, .home-review-dialog a, .home-review-close, .home-review-step { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.home-page a:focus-visible, .home-scroll-track:focus-visible, .home-review-dialog a:focus-visible, .home-review-close:focus-visible, .home-review-step:focus-visible { outline: 2px solid #965436; outline-offset: 5px; }
.home-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* XD: 724px panel, 60px circular controls, and a 34px gap on either side. */
.home-review-dialog { position: fixed; inset: 0; width: min(912px, calc(100% - 60px)); height: fit-content; max-width: none; max-height: calc(100dvh - 60px); margin: auto; padding: 0; border: 0; background: transparent; color: #424242; overflow: visible; }
.home-review-dialog[open] { display: grid; grid-template-columns: 60px minmax(0, 1fr) 60px; column-gap: 34px; align-items: center; }
.home-review-panel { position: relative; grid-column: 2; grid-row: 1; min-width: 0; min-height: min(502px, calc(100dvh - 60px)); max-height: inherit; padding: 72px 46px 48px; border: 2px solid #e8e8e8; border-radius: 15px; background: #fff; overflow-y: auto; overscroll-behavior: contain; }
.home-review-step { position: relative; display: grid; place-items: center; grid-row: 1; width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.home-review-previous { grid-column: 1; }
.home-review-next { grid-column: 3; }
.home-review-step img { display: block; width: 100%; height: 100%; }
.home-review-next img { transform: rotate(180deg); }
.home-review-step::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgb(0 0 0 / 8%); opacity: 0; pointer-events: none; transition: opacity 300ms ease-out; }
.home-review-step:disabled { opacity: .4; cursor: default; }
.home-review-dialog::backdrop { background: rgb(0 0 0 / 30%); }
.home-review-dialog[open], .home-review-dialog[open]::backdrop { animation: home-review-appear 300ms ease-out both; }
@keyframes home-review-appear { from { opacity: 0; } to { opacity: 1; } }
.home-review-close { display: grid; place-items: center; position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; padding: 15px; border: 0; background: transparent; cursor: pointer; }
.home-review-close img { display: block; width: 14px; height: 14px; }
.home-review-dialog-content blockquote { margin: 8px 0 0; font-size: 16px; line-height: 28px; letter-spacing: .64px; white-space: pre-line; }
.home-review-dialog-content p { margin: 24px 0 0; font-size: 16px; line-height: 28px; letter-spacing: .64px; }
.home-review-dialog-content .home-review-byline { margin-top: 48px; color: #000; font-size: 20px; font-weight: 700; text-align: right; }
.home-review-source { display: block; width: fit-content; margin: 24px 0 0 auto; color: #7e7e7e; font-size: 14px; line-height: 24px; text-decoration: underline; text-underline-offset: 4px; }
html.home-review-active { overflow: hidden; }
html.home-review-active body { position: fixed; top: var(--home-review-scroll-offset); inset-inline: 0; width: 100%; }

@media (hover: hover) and (pointer: fine) {
    /* Only the title, arrow and subtitle group owns the arrow hover effect. */
    .home-market-heading:hover .home-heading-arrow { background-color: #ffa65a; transform: translateX(4px); }
    .home-news-card:hover::after, .home-property-card:hover::after, .home-review-open:hover::after { opacity: 1; }
    .home-signup:hover { background: #f8ebdc; color: #6e3c27; }
    .home-property-card:hover .home-property-arrow { transform: translateX(5px); }
    .home-view-all:hover, .home-review-source:hover { color: #000; border-color: #000; }
    .home-review-close:hover { opacity: .65; }
    .home-review-step:not(:disabled):hover::after { opacity: 1; }
}
.home-market-intro:focus-visible .home-heading-arrow { background-color: #ffa65a; }
.home-page a:active, .home-review-close:active, .home-review-step:not(:disabled):active { opacity: .75; }

/* Share heading and card rows so both panels have matching tops and bottoms. */
@media (min-width: 1001px) {
    .home-market-grid { grid-template-rows: auto auto; }
    .home-market-panel { display: grid; grid-template-rows: subgrid; grid-row: span 2; }
}

@media (min-width: 1001px) and (max-width: 1500px) {
    .home-market-grid { column-gap: 32px; }
    .home-market-intro .home-section-title { gap: 20px; }
    .home-market-intro p { font-size: 16px; line-height: 30px; }
    .home-news-card { padding-inline: 16px; }
    .home-news-card time { font-size: 14px; }
    .home-news-card h3 { font-size: 16px; }
    .home-newsletter { padding-inline: 28px; }
    .home-newsletter p { font-size: 16px; line-height: 28px; }
    .home-property-copy { padding: 16px; }
    .home-property-copy h3 { font-size: 16px; line-height: 24px; }
    .home-property-price-row { --home-price-font-size: 24px; --home-arrow-width: 25px; }
    .home-review-open { padding: 35px 28px 42px; }
    .home-review-track { gap: 24px; }
    .home-review-person strong { font-size: 16px; line-height: 24px; }
}

@media (max-width: 1000px) {
    .home-page { padding-bottom: 70px; }
    .home-market-grid { grid-template-columns: minmax(0, 1fr); gap: 50px; }
    .home-market-intro { min-height: 0; padding-bottom: 0; }
    .home-section-title { font-size: 28px; line-height: 35px; letter-spacing: 1.12px; }
    .home-market-intro .home-section-title { gap: 16px; }
    .home-heading-arrow { --home-heading-arrow-mask: url('/img/home-market-arrow-mobile.svg'); --home-heading-arrow-height: calc(14.2392578125px * .8); width: calc(23.191986084px * .8); }
    .home-market-intro p { max-width: 600px; margin-top: 8px; font-size: 14px; line-height: 24px; letter-spacing: .56px; }
    .home-desktop-break { display: none; }
    .home-scroll-track { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(284px, calc(100vw - 70px)); gap: var(--home-track-gap); width: calc(100% + var(--home-gutter) * 2); margin-left: calc(-1 * var(--home-gutter)); padding: 6px var(--home-gutter) 8px; overflow-x: auto; overflow-y: hidden; touch-action: manipulation; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--home-gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .home-scroll-track::-webkit-scrollbar { display: none; }
    .home-scroll-track > * { scroll-snap-align: start; }
    .home-scroll-track.is-dragging { cursor: grabbing; user-select: none; scroll-snap-type: none; }
    .home-scroll-track img { -webkit-user-drag: none; }
    .home-news-track { grid-auto-columns: min(247px, calc(100vw - 70px)); margin-top: 32px; }
    .home-news-card { border-radius: 15px; }
    .home-news-card time { font-size: 16px; }
    .home-news-card h3 { font-size: 18px; line-height: 25px; }
    .home-market-stats .home-market-intro p { max-width: 600px; }
    .home-newsletter { margin-top: 50px; padding: 22px 26px 0; border-radius: 15px; }
    .home-newsletter p { margin-top: 12px; margin-bottom: 0; font-size: 16px; line-height: 25px; letter-spacing: .64px; }
    .home-signup { min-height: 40px; border-radius: 12px; font-size: 20px; letter-spacing: 1.6px; }
    .home-latest { margin-top: 60px; }
    .home-property-track { margin-top: 26px; }
    .home-property-card { border-radius: 18px; }
    .home-property-copy { min-height: 92px; padding: 15px 18px 17px; }
    .home-property-copy h3 { font-size: 18px; line-height: 25px; }
    .home-property-price-row { --home-price-font-size: 26px; --home-price-line-height: 30px; --home-arrow-width: 25px; }
    .home-property-status { left: 18px; bottom: 18px; }
    .home-reviews { margin-top: 60px; }
    .home-feature-title { font-size: 35px; line-height: 45px; letter-spacing: 1.225px; }
    .home-google-rating { margin-top: 6px; font-size: 16px; line-height: 24px; letter-spacing: .8px; }
    /* Fill the row evenly when three cards fit; scroll only below that width. */
    .home-review-track { grid-template-columns: repeat(3, minmax(min(254px, calc(100vw - 70px)), 1fr)); grid-auto-columns: min(254px, calc(100vw - 70px)); max-width: none; margin-top: 35px; }
    .home-review-open { padding: 28px; border-radius: 12px; }
    .home-review-quote { height: 25px; font-size: 36px; }
    .home-review-excerpt { --home-review-lines: 6; --home-review-line-height: 22px; font-size: 14px; letter-spacing: .56px; }
    .home-review-person { gap: 14px; }
    .home-review-person > img { flex-basis: 44px; width: 44px; height: 44px; }
    .home-review-person strong { font-size: 14px; line-height: 19px; letter-spacing: .56px; }
    .home-review-stars { margin-top: 3px; font-size: 17px; line-height: 20px; letter-spacing: 0; }
    .home-recent-transactions { margin-top: 60px; }
    .home-recent-transactions .home-property-track { margin-top: 55px; }
    .home-view-all-listings, .home-view-all-transactions { margin-top: 26px; padding-bottom: 5px; font-size: 16px; line-height: 24px; letter-spacing: .64px; }
}

@media (max-width: 800px) {
    .home-hero { height: clamp(430px, 104vw, 620px); }
    .home-hero-title { top: 24px; padding-inline: 20px; font-size: clamp(28px, 9.1787vw, 60px); line-height: 1.05263; }
    /* XD's mobile stroke is 0.5px at its 38px type size. */
    .home-hero-title span { -webkit-text-stroke-width: .013157895em; }
    .home-hero-art { top: 47px; left: 16.64%; width: min(117.75%, 700px); }
    .home-hero-introduction { top: auto; bottom: 39px; left: var(--home-gutter); width: 139px; font-size: 20px; line-height: 25px; }
    /* Keep the white dialog centered, with both controls inside it on phones. */
    .home-review-dialog { width: min(724px, calc(100% - 40px)); max-height: calc(100dvh - 48px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); border: 2px solid #e8e8e8; border-radius: 15px; background: #fff; overflow: hidden; }
    .home-review-dialog[open] { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0; }
    .home-review-panel { grid-column: 1 / -1; min-height: 0; max-height: calc(100dvh - 124px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); padding: 68px 24px 24px; border: 0; border-radius: 0; background: transparent; }
    .home-review-step { grid-row: 2; width: 48px; height: 48px; margin-bottom: 24px; }
    .home-review-previous { grid-column: 1; justify-self: start; margin-left: 24px; }
    .home-review-next { grid-column: 2; justify-self: end; margin-right: 24px; }
    .home-review-dialog-content .home-review-byline { font-size: 20px; }
}
@media (max-width: 370px) {
    .home-market-intro .home-section-title { gap: 12px; }
    .home-market-stats .home-section-title { font-size: 26px; letter-spacing: .7px; }
    .home-newsletter { padding-inline: 20px; }
    .home-feature-title { font-size: 30px; line-height: 40px; letter-spacing: .8px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-page *, .home-page *::after, .home-review-dialog, .home-review-dialog::backdrop, .home-review-dialog * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .home-market-heading:hover .home-heading-arrow { transform: none; }
}
