/* Retain the navy-and-gold search hero with quiet, compact details. */
html:has(body[data-page="home"]) { scroll-padding-top: 84px; }

body[data-page="home"] {
    --home-ink: #183348;
    --home-muted: #62717b;
    --home-accent: #8c6c35;
    --home-paper: #fff;
    --home-ground: #f7f7f4;
    --home-line: #dde3e4;
    --home-soft: #f1f4f4;
    padding-top: 72px;
    background: var(--home-paper);
    color: var(--home-ink);
}

html[data-theme="dark"] body[data-page="home"] {
    --home-ink: #edf2f5;
    --home-muted: #a8b6c1;
    --home-accent: #d4b67c;
    --home-paper: #111d27;
    --home-ground: #0d1720;
    --home-line: #2e3e4b;
    --home-soft: #1b2b37;
    background: var(--home-paper);
}

.home-shell,
body[data-page="home"] .home-listings-container,
body[data-page="home"] .home-reference-navbar > .container {
    width: min(1248px, calc(100% - 64px));
    max-width: none;
    margin-inline: auto;
    padding-inline: 0;
}

/* Compact navigation */
body[data-page="home"] .home-reference-navbar,
body[data-page="home"] .home-reference-navbar.scrolled {
    min-height: 72px;
    padding: 13px 0;
    border-bottom: 1px solid #2a4057;
    background: #0c2541;
    box-shadow: none;
    backdrop-filter: none;
}

body[data-page="home"] .home-reference-navbar > .container { gap: 24px; }

body[data-page="home"] .home-reference-navbar .navbar-brand {
    gap: 11px;
    margin: 0 auto 0 0;
    padding: 0;
    color: #fff !important;
}

body[data-page="home"] .home-reference-navbar .brand-logo {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.home-brand-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.home-brand-copy strong { color: #fff; font-size: 17px; font-weight: 650; line-height: 1.25; letter-spacing: -.35px; white-space: nowrap; }
.home-brand-copy small { color: #b6c3d1; font-size: 7px; font-weight: 450; letter-spacing: 1.7px; text-transform: uppercase; white-space: nowrap; }

body[data-page="home"] .home-reference-navbar .customer-navbar-collapse,
body[data-page="home"] .home-reference-navbar.scrolled .customer-navbar-collapse { flex-grow: 0; background: transparent; box-shadow: none; }
body[data-page="home"] .home-reference-navbar .navbar-nav { gap: 25px; }

body[data-page="home"] .home-reference-navbar .nav-link,
body[data-page="home"] .home-reference-navbar.scrolled .nav-link {
    position: relative;
    margin: 0;
    padding: 10px 0 !important;
    border-radius: 0;
    background: transparent;
    color: #d9e3ed !important;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
body[data-page="home"] .home-reference-navbar .nav-link:hover,
body[data-page="home"] .home-reference-navbar .nav-link.active { color: #fff !important; background: transparent; }
body[data-page="home"] .home-reference-navbar .nav-link.active::after { position: absolute; right: 0; bottom: 3px; left: 0; height: 2px; background: #ffd166; content: ''; }

body[data-page="home"] .home-reference-navbar .theme-toggle,
body[data-page="home"] .home-reference-navbar.scrolled .theme-toggle {
    display: grid;
    min-width: 36px;
    width: 36px;
    height: 36px;
    margin: 0 0 0 4px;
    padding: 0;
    place-items: center;
    border: 1px solid #4f647a;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 14px;
    box-shadow: none;
}
body[data-page="home"] .home-reference-navbar .theme-toggle:hover { background: #1d3954; }
body[data-page="home"] .home-reference-navbar .theme-label { display: none; }

/* The photograph stays behind the introduction and the search panel. */
.home-search-hero { position: relative; isolation: isolate; padding: 36px 0 30px; background: var(--home-paper); }
.home-search-backdrop { position: absolute; z-index: -1; inset: 0; overflow: hidden; background: #16354d; }
.home-search-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 38%; }
.home-search-backdrop::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, var(--home-paper) 100%), linear-gradient(90deg, rgba(5, 27, 47, .9), rgba(5, 27, 47, .62) 46%, rgba(5, 27, 47, .06) 100%); content: ''; }
.home-search-intro { margin-bottom: 22px; }
.home-search-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; color: #e2eaf2; font-size: 9px; font-weight: 450; line-height: 18px; letter-spacing: 2px; text-transform: uppercase; }
.home-search-eyebrow > span { width: 28px; height: 2px; flex-shrink: 0; background: #ffd166; }
.home-search-intro h1 { margin: 0 0 10px; color: #fff; font-size: clamp(32px, 3.2vw, 44px); font-weight: 650; line-height: 1.18; letter-spacing: -1px; }
.home-search-intro h1 > span { color: #ffd166; }
.home-search-description { max-width: 740px; margin: 0; color: #e0e8f0; font-size: 13px; line-height: 1.7; }
.home-listings-link { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; margin-top: 18px; padding: 0 15px; border: 1px solid rgba(255, 209, 102, .75); border-radius: 5px; background: #ffd166; color: #102b46; font-size: 12px; font-weight: 600; text-decoration: none; transition: background-color .16s, border-color .16s; }
.home-listings-link:hover { border-color: #ffe09a; background: #ffe09a; color: #102b46; }
.home-kicker { margin: 0 0 14px; color: var(--home-accent); font-size: 10px; font-weight: 600; line-height: 1.5; letter-spacing: 1.5px; text-transform: uppercase; }
.home-text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 36px; color: var(--home-ink); font-size: 12px; font-weight: 550; line-height: 1.5; text-decoration: none; }
.home-text-link i { font-size: 10px; }
.home-text-link:hover { color: var(--home-accent); }

/* Keep the reference's two wide fields, followed by two rows of three. */
.home-search-panel { padding: 22px 24px; border: 1px solid var(--home-line); border-radius: 12px; background: var(--home-paper); box-shadow: 0 8px 24px rgba(15, 36, 58, .04); }
.home-search-panel-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.home-search-heading-icon { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border: 1px solid #dae7f8; border-radius: 9px; background: #edf4ff; color: #0b55ad; font-size: 17px; }
.home-search-heading-copy { min-width: 0; }
.home-search-panel-heading h2 { margin: 0 0 3px; color: var(--home-ink); font-size: 18px; font-weight: 650; line-height: 1.4; letter-spacing: -.3px; }
.home-search-panel-heading p { margin: 0; color: var(--home-muted); font-size: 11px; line-height: 1.6; }
.home-search-availability { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 7px; min-height: 32px; margin-left: auto; padding: 6px 12px; border: 1px solid #dae7f8; border-radius: 24px; background: #edf4ff; color: #0b55ad; font-size: 10px; font-weight: 550; line-height: 1.5; text-decoration: none; }
.home-search-availability:hover { border-color: #9abbe5; background: #e1edff; color: #08488d; }
.home-search-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 18px; }
.home-search-field { min-width: 0; grid-column: span 2; }
.home-search-field-wide { grid-column: span 3; }
.home-search-field > label { display: block; margin-bottom: 5px; color: var(--home-ink); font-size: 11px; font-weight: 500; line-height: 17px; }
.home-field-control { position: relative; }

body[data-page="home"] .home-field-control :is(.form-control, .form-select) {
    width: 100%;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 10px 29px 10px 34px;
    border: 1px solid var(--home-line);
    border-radius: 6px;
    background-color: var(--home-paper);
    color: var(--home-ink);
    font-family: inherit;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: none;
}
body[data-page="home"] .home-field-control .form-select { background-image: none; }
body[data-page="home"] .home-field-control .form-control::placeholder { color: var(--home-muted); opacity: 1; }
body[data-page="home"] .home-field-control .form-select:disabled { background-color: var(--home-ground); color: var(--home-muted); opacity: 1; cursor: not-allowed; }
body[data-page="home"] .home-field-control :is(.form-control, .form-select):focus { border-color: var(--home-ink); outline: 2px solid var(--home-line); outline-offset: 1px; box-shadow: none; }
.home-field-icon, .home-field-chevron { position: absolute; z-index: 1; top: 50%; color: var(--home-muted); pointer-events: none; transform: translateY(-50%); }
.home-field-icon { left: 12px; width: 13px; text-align: center; font-size: 12px; }
.home-field-chevron { right: 12px; font-size: 9px; }
.home-search-actions { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 3px; }
.home-search-actions .home-search-submit { grid-column: span 2; }
.home-search-submit, .home-search-reset { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 16px; border: 1px solid #0b55ad; border-radius: 6px; font-family: inherit; font-size: 12px; font-weight: 550; line-height: 1.5; text-decoration: none; transition: background-color .16s, border-color .16s; }
.home-search-submit { background: #0b55ad; color: #fff; box-shadow: none; }
.home-search-submit:hover { border-color: #08478f; background: #08478f; color: #fff; }
.home-search-reset { border-color: var(--home-line); background: var(--home-paper); color: var(--home-muted); }
.home-search-reset:hover { border-color: var(--home-muted); background: var(--home-soft); color: var(--home-ink); }
html[data-theme="dark"] .home-search-submit { border-color: #d2e0e9; background: #d2e0e9; color: #172e40; }
html[data-theme="dark"] .home-search-submit:hover { background: #edf2f5; }
html[data-theme="dark"] :is(.home-search-heading-icon, .home-search-availability) { border-color: #334f6b; background: #1b334b; color: #b2d4fb; }

/* Listings: restrained cards with all the useful information in view. */
body[data-page="home"] :is(#properties, #why-us, #contact) { scroll-margin-top: 0; }
body[data-page="home"] .results-section { padding: 40px 0 48px; background: var(--home-paper); }
body[data-page="home"] .results-header { align-items: flex-end; gap: 16px; margin-bottom: 22px; }
body[data-page="home"] .results-header .home-kicker { margin-bottom: 6px; font-size: 9px; }
body[data-page="home"] .results-header h2 { margin: 0; color: var(--home-ink); font-size: 30px; font-weight: 600; line-height: 1.3; letter-spacing: -.7px; }
body[data-page="home"] .results-count, .home-section-note { margin: 0 0 2px; color: var(--home-muted); font-size: 13px; line-height: 1.6; }

.home-property-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin: 0; }
.home-property-grid > [class*="col-"] { min-width: 0; width: auto; margin: 0; padding: 0; }
.home-property-grid .property-card { width: 100%; border: 1px solid var(--home-line); border-radius: 12px; background: var(--home-paper); box-shadow: 0 8px 24px rgba(15, 36, 58, .06); transition: border-color .16s, box-shadow .16s, transform .16s; }
.home-property-grid .property-card:hover { border-color: #9cabb4; box-shadow: 0 14px 32px rgba(15, 36, 58, .1); transform: translateY(-2px); }
.home-property-grid .property-image-wrapper { flex-shrink: 0; background: var(--home-soft); }
.home-property-grid .property-card img { display: block; height: clamp(320px, 30vw, 420px); transition: none; }
.home-property-grid .property-card .card-body { padding: 30px; }
.home-property-grid .property-title { min-height: 0; margin: 0 0 12px; color: var(--home-ink); font-size: clamp(23px, 1.95vw, 28px); font-weight: 650; line-height: 1.38; }
.home-property-grid .property-price { margin-bottom: 10px; color: var(--home-ink); font-size: clamp(28px, 2.2vw, 32px); font-weight: 650; line-height: 1.4; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.home-property-grid .property-location { min-height: 0; margin-bottom: 16px; color: var(--home-muted); font-size: 16px; line-height: 1.6; }
.home-property-grid .property-summary { display: -webkit-box; min-height: 120px; margin: 0 0 18px; padding: 16px 18px; overflow: hidden; border-left: 3px solid var(--home-accent); border-radius: 0 6px 6px 0; background: var(--home-ground); color: var(--home-muted); font-size: 16px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.home-property-grid .property-card .property-price.price-on-request { font-size: 22px; line-height: 1.6; }
.home-property-grid .property-location .text-danger { color: var(--home-muted) !important; }
.home-property-grid :is(.property-label, .featured-label) { top: 16px; padding: 8px 12px; border: 0; border-radius: 4px; font-size: 11px; font-weight: 650; letter-spacing: .4px; box-shadow: none; }
.home-property-grid .property-label { left: 14px; background: #f7fbf8; color: #246344; }
.home-property-grid .featured-label { right: 14px; background: #f5e6c7; color: #765823; }
.home-property-grid .property-feature-tags { gap: 8px; margin: 0 0 16px; }
.home-property-grid .property-feature-tag { min-height: 32px; padding: 6px 11px; font-size: 14px; }
.home-property-grid .lot-size-options { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--home-line); border-radius: 6px; background: var(--home-ground); }
.home-property-grid .lot-size-label { margin-bottom: 7px; color: var(--home-muted); font-size: 12px; font-weight: 600; line-height: 1.4; }
.home-property-grid .lot-size-label i { color: var(--home-muted); }
.home-property-grid .lot-size-list { gap: 6px; }
.home-property-grid .lot-size-chip { min-height: 32px; padding: 6px 10px; border-radius: 4px; background: var(--home-paper); color: var(--home-ink); font-size: 13px; font-weight: 550; line-height: 1.4; }
.home-property-grid .property-info { gap: 8px; padding-top: 12px; border-color: var(--home-line); }
.home-property-grid .info-item { padding: 8px 11px; border-radius: 4px; background: var(--home-soft); color: var(--home-muted); font-size: 14px; font-weight: 500; line-height: 1.5; }
.home-property-grid .info-item i { color: var(--home-muted); }
.home-property-grid .card-actions { gap: 9px; margin-top: 14px; }
.home-property-grid .view-btn { display: flex !important; align-items: center; justify-content: center; min-height: 54px; padding: 13px 16px; border-radius: 5px; background: #183b53; color: #fff; font-size: 16px; font-weight: 550; line-height: 1.4; }
.home-property-grid .view-btn:hover { background: #265671; transform: none; }
.home-property-grid .inquire-btn { width: 54px; min-height: 54px; border-color: var(--home-line); border-radius: 5px; background: var(--home-paper); color: #227447; font-size: 19px; }
.home-property-grid .inquire-btn:hover { background: #eaf5ee; transform: none; }
.home-property-grid :is(.property-title, .property-location, .info-item) { overflow-wrap: anywhere; }
.home-property-grid .home-property-empty { grid-column: 1 / -1; }
.home-property-grid .no-results { border-color: var(--home-line); border-radius: 10px; background: var(--home-ground); box-shadow: none; }
.home-property-grid .no-results h3 { color: var(--home-ink); font-size: 20px; font-weight: 600; }
.home-property-grid .no-results p { color: var(--home-muted); }
.home-property-grid .no-results .home-search-submit { margin-top: 6px; }

/* A lone featured listing uses the full section width instead of leaving an empty column. */
.home-featured-section .home-property-grid > :only-child { grid-column: 1 / -1; }
.home-featured-section .home-property-grid > :only-child .property-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: stretch; }
.home-featured-section .home-property-grid > :only-child .property-card img { height: 100%; min-height: 420px; }
.home-featured-section .home-property-grid > :only-child .property-card .card-body { padding: 34px; }
.home-featured-section .home-property-grid > :only-child .property-title { font-size: clamp(25px, 2.1vw, 30px); }
.home-featured-section .home-property-grid > :only-child .property-price { font-size: 32px; }
.home-featured-section .home-property-grid > :only-child .property-summary { min-height: 0; font-size: 17px; }

body[data-page="home"] :is(.property-card, .property-image-wrapper, .view-btn)::after { display: none; }
.home-pagination { margin-top: 24px; }
.home-featured-section { padding: 40px 0 48px; border-block: 1px solid var(--home-line); background: var(--home-ground); }

/* Explain the service without decorative feature cards. */
.home-approach-section { padding: 64px 0; background: var(--home-paper); }
.home-approach-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: start; }
.home-approach-intro h2 { margin: 0 0 16px; color: var(--home-ink); font-size: 29px; font-weight: 550; line-height: 1.3; letter-spacing: -.8px; }
.home-approach-intro > p:not(.home-kicker) { max-width: 360px; margin-bottom: 18px; color: var(--home-muted); font-size: 12px; line-height: 1.8; }
.home-approach-list { margin: 0; padding: 0; list-style: none; }
.home-approach-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 20px; padding: 23px 0; border-top: 1px solid var(--home-line); }
.home-approach-list li:last-child { padding-bottom: 0; }
.home-approach-number { padding-top: 2px; color: var(--home-accent); font-size: 11px; font-weight: 500; }
.home-approach-list h3 { margin: 0 0 6px; color: var(--home-ink); font-size: 15px; font-weight: 550; line-height: 1.5; }
.home-approach-list p { max-width: 430px; margin: 0; color: var(--home-muted); font-size: 12px; line-height: 1.8; }

/* A simple invitation to contact the team. */
.home-contact-section { padding: 44px 0; background: #183748; color: #fff; }
.home-contact-content { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.home-contact-section .home-kicker { margin-bottom: 10px; color: #dfc28c; font-size: 9px; }
.home-contact-section h2 { margin: 0 0 12px; color: #fff; font-size: 28px; font-weight: 550; line-height: 1.3; letter-spacing: -.6px; }
.home-contact-section p:not(.home-kicker) { margin: 0; color: #c3ced4; font-size: 12px; line-height: 1.8; }
.home-contact-actions { display: flex; flex-direction: column; gap: 9px; min-width: 192px; }
.home-contact-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 10px 17px; border: 1px solid #8fa2ad; border-radius: 5px; font-size: 11px; font-weight: 550; line-height: 1.5; }
.home-contact-primary { background: #fff; color: #183748; }
.home-contact-primary:hover { background: #e9eef1; color: #183748; }
.home-contact-secondary { color: #fff; }
.home-contact-secondary:hover { background: #25495c; color: #fff; }

/* Contact assistance stays within reach without covering the page. */
.home-help { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 10000; }
.home-help-toggle { display: grid; width: 52px; height: 52px; padding: 0; place-items: center; border: 1px solid #315674; border-radius: 50%; background: #123b5a; color: #fff; font-size: 20px; box-shadow: 0 4px 16px rgba(12, 37, 65, .16); }
.home-help-toggle:hover { background: #1d4e70; }
.home-help-panel { position: absolute; right: 0; bottom: 66px; width: 320px; max-width: calc(100vw - 40px); max-height: calc(100dvh - 112px - env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px; border: 1px solid var(--home-line); border-radius: 12px; background: var(--home-paper); color: var(--home-ink); box-shadow: 0 8px 30px rgba(12, 37, 65, .12); }
.home-help-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.home-help-heading h2 { margin: 0; color: var(--home-ink); font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: -.2px; }
.home-help-close { display: grid; flex: 0 0 44px; width: 44px; height: 44px; margin-right: -8px; padding: 0; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--home-muted); font-size: 15px; }
.home-help-close:hover { background: var(--home-soft); color: var(--home-ink); }
.home-help-description { margin: 0 0 12px; color: var(--home-muted); font-size: 11px; line-height: 1.8; }
.home-help-links { display: grid; }
.home-help-links a { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 9px 0; border-top: 1px solid var(--home-line); color: var(--home-ink); text-decoration: none; }
.home-help-links a:hover { color: var(--home-accent); }
.home-help-links a > i:first-child { width: 18px; color: var(--home-muted); font-size: 16px; text-align: center; }
.home-help-links span { flex: 1; min-width: 0; }
.home-help-links strong { display: block; font-size: 12px; font-weight: 550; line-height: 1.5; }
.home-help-links small { display: block; color: var(--home-muted); font-size: 10px; font-weight: 400; line-height: 1.7; overflow-wrap: anywhere; }
.home-help-links .home-help-external { color: var(--home-muted); font-size: 9px; }
.home-help-hours { margin: 9px 0 0; padding-top: 12px; border-top: 1px solid var(--home-line); color: var(--home-muted); font-size: 10px; line-height: 1.8; }
.home-help-hours strong { color: var(--home-ink); font-weight: 500; }

@media (max-width: 1100px) {
    .home-approach-grid { gap: 50px; }
}

@media (max-width: 991px) {
    html:has(body[data-page="home"]) { scroll-padding-top: 80px; }
    body[data-page="home"] { padding-top: 68px; }
    body[data-page="home"] .home-reference-navbar, body[data-page="home"] .home-reference-navbar.scrolled { min-height: 68px; padding: 11px 0; }
    body[data-page="home"] .home-reference-navbar > .container { flex-wrap: wrap; gap: 10px; }
    body[data-page="home"] .home-reference-navbar .navbar-toggler { display: block !important; width: 38px; height: 38px; padding: 6px; border: 1px solid var(--home-line); border-radius: 5px; background: var(--home-paper) !important; color: var(--home-ink); }
    html[data-theme="dark"] body[data-page="home"] .navbar-toggler-icon { filter: invert(1); }
    body[data-page="home"] .home-reference-navbar .customer-navbar-collapse:not(.show) { display: none !important; }
    body[data-page="home"] .home-reference-navbar .customer-navbar-collapse.show { display: block !important; flex-basis: 100%; width: 100%; padding: 12px 0 4px; border: 0; background: #0c2541; box-shadow: none; }
    body[data-page="home"] .home-reference-navbar .navbar-nav { flex-direction: column; align-items: stretch !important; gap: 0; }
    body[data-page="home"] .home-reference-navbar .nav-link { padding: 12px 2px !important; }
    body[data-page="home"] .home-reference-navbar .nav-link.active::after { right: auto; width: 32px; }
    body[data-page="home"] .home-reference-navbar .theme-toggle { margin: 8px 0 0; }
    .home-search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-search-field { grid-column: auto; }
    .home-search-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-search-actions .home-search-submit { grid-column: auto; }
    .home-property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .home-property-grid .property-card img { height: clamp(300px, 34vw, 360px); }
    .home-property-grid .property-card .card-body { padding: 24px; }
    .home-property-grid .property-title { font-size: 24px; }
    .home-property-grid .property-price { font-size: 28px; }
    .home-approach-grid { grid-template-columns: 1fr 1.2fr; gap: 35px; }
    .home-approach-intro h2 { font-size: 25px; }
}

@media (max-width: 767px) {
    html:has(body[data-page="home"]) { scroll-padding-top: 76px; }
    body[data-page="home"] { padding-top: 64px; }
    .home-shell, body[data-page="home"] .home-listings-container, body[data-page="home"] .home-reference-navbar > .container { width: calc(100% - 32px); }
    body[data-page="home"] .home-reference-navbar, body[data-page="home"] .home-reference-navbar.scrolled { min-height: 64px; padding: 11px 0; }
    body[data-page="home"] .home-reference-navbar .navbar-brand { gap: 9px; }
    body[data-page="home"] .home-reference-navbar .brand-logo { flex-basis: 40px; width: 40px; height: 40px; }
    .home-brand-copy strong { font-size: clamp(14px, 3.8vw, 17px); }
    .home-brand-copy small { font-size: 6px; letter-spacing: 1.4px; }
    .home-search-hero { padding: 28px 0 22px; }
    .home-search-eyebrow { gap: 9px; font-size: 8px; letter-spacing: 1.5px; }
    .home-search-eyebrow > span { width: 22px; }
    .home-search-intro h1 { font-size: clamp(28px, 6vw, 36px); letter-spacing: -.7px; }
    .home-search-description { max-width: 430px; font-size: 12px; }
    .home-listings-link { margin-top: 15px; }
    .home-kicker { margin-bottom: 12px; font-size: 9px; }
    .home-search-panel { padding: 18px 16px; }
    .home-search-panel-heading { gap: 10px; }
    .home-search-panel-heading h2 { font-size: 17px; }
    body[data-page="home"] .home-field-control :is(.form-control, .form-select) { font-size: 16px; }
    body[data-page="home"] .results-section { padding: 30px 0 36px; }
    body[data-page="home"] .results-header { flex-direction: column; align-items: flex-start; gap: 9px; margin-bottom: 18px; }
    body[data-page="home"] .results-header h2 { font-size: 27px; }
    .home-property-grid { grid-template-columns: 1fr; gap: 22px; }
    .home-property-grid .property-card img { height: clamp(260px, 68vw, 380px); }
    .home-property-grid .property-card .card-body { padding: 24px; }
    .home-property-grid .property-title { font-size: 24px; }
    .home-property-grid .property-price { font-size: 28px; }
    .home-property-grid .property-location, .home-property-grid .property-summary { font-size: 16px; }
    .home-property-grid .property-summary { min-height: 0; }
    .home-property-grid :is(.view-btn, .inquire-btn) { min-height: 54px; }
    .home-property-grid .inquire-btn { width: 54px; }
    .home-featured-section .home-property-grid > :only-child .property-card { display: flex; }
    .home-featured-section .home-property-grid > :only-child .property-card img { height: clamp(260px, 68vw, 380px); min-height: 0; }
    .home-featured-section .home-property-grid > :only-child .property-card .card-body { padding: 24px; }
    .home-featured-section .home-property-grid > :only-child .property-title { font-size: 24px; }
    .home-featured-section .home-property-grid > :only-child .property-price { font-size: 28px; }
    .home-featured-section { padding: 32px 0 36px; }
    .home-approach-section { padding: 40px 0; }
    .home-approach-grid { grid-template-columns: 1fr; gap: 26px; }
    .home-approach-intro h2 { font-size: 27px; }
    .home-approach-intro > p:not(.home-kicker) { max-width: 440px; margin-bottom: 10px; }
    .home-approach-list li { gap: 16px; padding-block: 20px; }
    .home-contact-section { padding: 36px 0; }
    .home-contact-content { flex-direction: column; align-items: flex-start; gap: 24px; }
    .home-contact-section h2 { font-size: 26px; }
    .home-contact-actions { flex-direction: row; flex-wrap: wrap; }
    .home-desktop-break { display: none; }
}

@media (max-width: 575px) {
    .home-search-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .home-search-panel-heading { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; margin-bottom: 16px; }
    .home-search-heading-icon { width: 34px; height: 34px; font-size: 16px; }
    .home-search-availability { grid-column: 1 / -1; justify-self: start; margin-left: 0; }
    .home-search-actions { grid-template-columns: minmax(0, 1fr); gap: 9px; margin-top: 4px; }
    .home-search-actions a, .home-search-actions button { width: 100%; }
    .home-search-panel-heading p { font-size: 10px; }
    .home-contact-actions { width: 100%; flex-direction: column; }
}

@media (max-height: 650px) {
    .home-property-grid :is(.property-title, .property-location) { min-height: 0; }
    body[data-page="home"] .results-section { padding-top: 20px; }
    body[data-page="home"] .results-header { gap: 5px; margin-bottom: 14px; }
    body[data-page="home"] .results-header .home-kicker { display: none; }
}

/* White theme: define each listing clearly and give its title and price a calm hierarchy. */
html[data-theme="light"] body[data-page="home"] .home-property-grid .property-card {
    border: 1px solid #cbd7e0;
    border-top: 3px solid #c5a15f;
    box-shadow: 0 7px 20px rgba(19, 51, 75, .08);
}

html[data-theme="light"] body[data-page="home"] .home-property-grid .property-card:hover {
    border-color: #aebfcb;
    border-top-color: #a8813c;
    box-shadow: 0 12px 26px rgba(19, 51, 75, .12);
}

html[data-theme="light"] body[data-page="home"] .home-property-grid .property-title {
    color: #173b57;
}

html[data-theme="light"] body[data-page="home"] .home-property-grid .property-price {
    color: #8a651d;
}

/* Keep the original three-column listing rhythm, with a modestly larger card. */
.home-filter-section { position: relative; z-index: 2; padding: 0 0 28px; background: var(--home-paper); }
.home-filter-section .home-search-panel { margin-top: -2px; }
.home-property-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-property-grid .property-card img { height: clamp(260px, 22vw, 300px); }
.home-property-grid .property-card .card-body { padding: 20px; }
.home-property-grid .property-title { margin-bottom: 9px; font-size: clamp(19px, 1.45vw, 22px); line-height: 1.35; }
.home-property-grid .property-price { margin-bottom: 8px; font-size: clamp(23px, 1.7vw, 26px); line-height: 1.35; }
.home-property-grid .property-location { margin-bottom: 12px; font-size: 14px; line-height: 1.5; }
.home-property-grid .property-summary { display: none !important; }
.home-property-grid .property-card .property-price.price-on-request { font-size: 19px; }
.home-property-grid :is(.property-label, .featured-label) { padding: 7px 10px; font-size: 10px; }
.home-property-grid .property-feature-tags { gap: 6px; margin-bottom: 12px; }
.home-property-grid .property-feature-tag { min-height: 28px; padding: 5px 9px; font-size: 12px; }
.home-property-grid .lot-size-options { margin-bottom: 10px; padding: 8px 10px; }
.home-property-grid .lot-size-label { margin-bottom: 5px; font-size: 10px; }
.home-property-grid .lot-size-chip { min-height: 27px; padding: 5px 8px; font-size: 11px; }
.home-property-grid .property-info { gap: 6px; padding-top: 10px; }
.home-property-grid .info-item { padding: 6px 9px; font-size: 12px; }
.home-property-grid .card-actions { gap: 8px; margin-top: 11px; }
.home-property-grid .view-btn { min-height: 48px; padding: 11px 13px; font-size: 14px; }
.home-property-grid .inquire-btn { width: 48px; min-height: 48px; font-size: 17px; }
.home-featured-section .home-property-grid > :only-child { grid-column: auto; }
.home-featured-section .home-property-grid > :only-child .property-card { display: flex; }
.home-featured-section .home-property-grid > :only-child .property-card img { height: clamp(260px, 22vw, 300px); min-height: 0; }
.home-featured-section .home-property-grid > :only-child .property-card .card-body { padding: 20px; }
.home-featured-section .home-property-grid > :only-child .property-title { font-size: clamp(19px, 1.45vw, 22px); }
.home-featured-section .home-property-grid > :only-child .property-price { font-size: clamp(23px, 1.7vw, 26px); }

@media (max-width: 991px) {
    .home-property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
    .home-property-grid .property-card img { height: clamp(250px, 30vw, 290px); }
}

@media (max-width: 767px) {
    .home-filter-section { padding-bottom: 20px; }
    .home-filter-section .home-search-panel { margin-top: 0; }
    .home-property-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .home-property-grid .property-card img { height: clamp(240px, 66vw, 320px); }
    .home-property-grid .property-card .card-body { padding: 18px; }
    .home-property-grid .property-title { font-size: 20px; }
    .home-property-grid .property-price { font-size: 24px; }
    .home-property-grid .property-location { font-size: 14px; }
    .home-featured-section .home-property-grid > :only-child .property-card .card-body { padding: 18px; }
    .home-featured-section .home-property-grid > :only-child .property-title { font-size: 20px; }
    .home-featured-section .home-property-grid > :only-child .property-price { font-size: 24px; }
}
