:root {
    --navy: #071f3d;
    --navy-2: #0b315c;
    --coral: #ff5a43;
    --coral-dark: #e7442f;
    --teal: #1d9a98;
    --cream: #f8f7f4;
    --surface: #fff;
    --text: #10233f;
    --muted: #66758a;
    --border: #dfe5eb;
    --shadow: 0 16px 42px rgba(7, 31, 61, .09);
    --radius: 22px;
    --container: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--cream); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.section { padding-block: 82px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.eyebrow { margin: 0 0 8px; color: var(--teal); font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border: 1px solid transparent; border-radius: 12px; font-weight: 750; transition: .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; border-color: var(--coral); background: var(--coral); box-shadow: 0 10px 24px rgba(255, 90, 67, .23); }
.button-primary:hover { background: var(--coral-dark); }
.button-outline { color: var(--navy); border-color: #b8c4d1; background: transparent; }
.button-light { color: #fff; border-color: rgba(255,255,255,.5); }
.button-block { width: 100%; }

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(7,31,61,.08); background: rgba(255,255,255,.96); backdrop-filter: blur(16px); }
.header-inner { display: flex; min-height: 78px; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: baseline; font-size: clamp(1.35rem, 2.2vw, 1.9rem); font-weight: 850; letter-spacing: -.055em; white-space: nowrap; }
.brand span { color: var(--navy); }
.brand strong { color: var(--coral); }
.site-navigation { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.site-navigation a { position: relative; padding: 28px 0 24px; font-size: .94rem; font-weight: 650; }
.site-navigation a::after { position: absolute; right: 0; bottom: 17px; left: 0; height: 2px; content: ""; background: var(--coral); transform: scaleX(0); transition: transform .2s; }
.site-navigation a:hover::after, .site-navigation a.active::after { transform: scaleX(1); }
.header-cta { white-space: nowrap; }
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; padding: 9px; border: 0; background: transparent; }
.menu-toggle span { display: block; height: 3px; margin: 5px 0; border-radius: 3px; background: var(--navy); }

.home-hero { position: relative; min-height: 700px; padding: 120px 0 0; color: #fff; background: linear-gradient(90deg, rgba(5,25,51,.97) 0%, rgba(5,25,51,.82) 40%, rgba(5,25,51,.18) 72%), var(--hero-image, linear-gradient(135deg, #0b315c, #3b6c80)); background-position: center; background-size: cover; }
.home-hero::after { position: absolute; right: 0; bottom: 0; left: 0; height: 140px; content: ""; background: linear-gradient(transparent, rgba(5,25,51,.45)); pointer-events: none; }
.hero-content { position: relative; z-index: 1; }
.hero-content .eyebrow { color: #70d5cf; }
.hero-content h1 { max-width: 760px; margin: 0; font-size: clamp(2.8rem, 5.3vw, 5.4rem); line-height: 1.02; letter-spacing: -.055em; }
.hero-content > p:last-child { max-width: 620px; margin: 26px 0 0; color: #e9f0f5; font-size: 1.2rem; }
.home-hero > .container:last-child { position: relative; z-index: 2; margin-top: 74px; }
.hero-search { padding: 24px 30px 22px; border: 1px solid rgba(255,255,255,.2); border-radius: 24px 24px 0 0; background: rgba(5,29,57,.96); box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.transaction-switch { display: flex; gap: 8px; margin-bottom: 22px; }
.transaction-switch button { min-width: 126px; padding: 11px 20px; color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; background: transparent; font-weight: 750; }
.transaction-switch button.active { border-color: var(--coral); background: var(--coral); }
.hero-search-fields { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; }
.hero-search label { padding: 10px 15px; color: var(--muted); border-radius: 11px; background: #fff; }
.hero-search label > span { display: block; font-size: .72rem; font-weight: 750; text-transform: uppercase; }
.hero-search input, .hero-search select { width: 100%; padding: 2px 0; color: var(--navy); border: 0; outline: 0; background: transparent; }
.hero-search .multi-select { margin-top: 0; }
.hero-search .multi-select-trigger { min-height: 24px; padding: 2px 0; border: 0; border-radius: 0; }
.hero-search .multi-select-trigger:focus, .hero-search .multi-select.is-open .multi-select-trigger { border-color: transparent; box-shadow: none; }
.hero-search .multi-select-panel { min-width: 280px; }
.hero-search .multi-select-search { width: 100%; min-width: 0; padding: 8px 9px; border: 1px solid var(--border); border-radius: 7px; }
.hero-search .button { min-width: 180px; }
.advanced-link { display: block; margin-top: 15px; color: #72d5d0; text-align: right; font-size: .9rem; }

.category-section { padding-block: 44px 26px; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.category-card { display: grid; grid-template-columns: auto 1fr auto; min-height: 110px; align-items: center; gap: 18px; padding: 22px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.category-card:hover { border-color: #b8c9d7; transform: translateY(-2px); }
.category-card strong { display: block; margin-bottom: 4px; font-size: 1.08rem; }
.category-card small { color: var(--muted); }
.category-icon { display: grid; width: 54px; height: 54px; place-items: center; color: #fff; border-radius: 50%; background: var(--navy); font-size: 1.45rem; }
.category-rent .category-icon { background: var(--teal); }
.category-build .category-icon { background: var(--coral); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading h2, .center-heading h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.035em; }
.section-heading > a { color: var(--teal); font-weight: 750; }
.center-heading { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.featured-section { padding-top: 50px; }
.property-grid { display: grid; gap: 24px; }
.home-property-grid, .buildings-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.property-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(7,31,61,.07); transition: transform .2s, box-shadow .2s; }
.property-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.property-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e9eef2; }
.property-card-media > a, .property-card-media img { width: 100%; height: 100%; }
.property-card-media img { object-fit: cover; transition: transform .4s; }
.property-card:hover .property-card-media img { transform: scale(1.025); }
.status-badge { position: absolute; top: 13px; left: 13px; z-index: 2; padding: 6px 10px; color: #fff; border-radius: 9px; background: var(--coral); font-size: .76rem; font-weight: 800; }
.status-rent { background: var(--teal); }
.favorite-button { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; width: 38px; height: 38px; place-items: center; color: var(--navy); border: 0; border-radius: 50%; background: #fff; box-shadow: 0 5px 18px rgba(0,0,0,.14); font-size: 1.4rem; }
.favorite-button.is-favorite { color: var(--coral); }
.property-card-body { padding: 18px; }
.property-location { margin: 0 0 8px; color: var(--muted); font-size: .87rem; }
.property-card h3 { min-height: 50px; margin: 0 0 10px; font-size: 1.05rem; line-height: 1.35; }
.property-summary { display: flex; gap: 18px; padding-bottom: 13px; color: var(--navy-2); border-bottom: 1px solid var(--border); font-size: .86rem; font-weight: 650; }
.property-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; margin: 14px 0; font-size: .75rem; }
.property-meta div { min-width: 0; }
.property-meta dt { color: var(--muted); }
.property-meta dd { margin: 0; overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.property-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); }
.property-card-footer strong { color: var(--coral); font-size: 1.25rem; }
.property-card-footer strong small { margin-left: 5px; color: var(--muted); font-size: .7rem; font-weight: 500; }
.property-card-footer > a { font-size: 1.35rem; }

.value-section, .approach-section { background: #eef3f4; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--border); }
.value-grid > div { padding: 36px; background: #fff; text-align: center; }
.value-grid span { display: grid; width: 62px; height: 62px; margin: 0 auto 16px; place-items: center; color: #fff; border-radius: 50%; background: var(--navy); font-size: 1.5rem; }
.value-grid > div:nth-child(2) span { background: var(--teal); }
.value-grid > div:nth-child(3) span { background: var(--coral); }
.value-grid h3 { margin: 0 0 8px; }
.value-grid p { margin: 0; color: var(--muted); }

.page-heading { padding-top: 56px; padding-bottom: 30px; }
.page-heading h1 { margin: 12px 0 4px; font-size: clamp(2.2rem, 4vw, 3.7rem); letter-spacing: -.05em; }
.page-heading > p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; color: var(--muted); font-size: .86rem; }
.breadcrumbs a:hover { color: var(--coral); }
.listing-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; padding-bottom: 80px; }
.filter-sidebar { align-self: start; }
.filters { position: sticky; top: 98px; padding: 23px; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(7,31,61,.05); }
.filters-heading { display: flex; align-items: center; justify-content: space-between; }
.filters h2 { margin: 0 0 18px; font-size: 1.2rem; }
.filters-close { display: none; border: 0; background: none; font-size: 1.8rem; }
.filters label, .filters fieldset { display: block; margin: 0 0 17px; padding: 0; border: 0; color: var(--navy); font-size: .84rem; font-weight: 750; }
.filters select, .filters input, .results-toolbar select { width: 100%; margin-top: 7px; padding: 11px 12px; color: var(--text); border: 1px solid var(--border); border-radius: 9px; background: #fff; outline: none; }
.filters select:focus, .filters input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(29,154,152,.12); }
.filters select[multiple]:not(.is-enhanced) { min-height: 122px; padding: 6px; cursor: default; }
.filters select[multiple]:not(.is-enhanced) option { padding: 7px 8px; border-radius: 5px; cursor: pointer; }
.js-multiselect.is-enhanced { display: none; }
.multi-select { position: relative; margin-top: 7px; color: var(--text); font-weight: 500; }
.multi-select-trigger { display: flex; width: 100%; min-height: 42px; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; color: var(--text); border: 1px solid var(--border); border-radius: 9px; background: #fff; text-align: left; }
.multi-select-trigger:hover { border-color: #aebcc8; }
.multi-select-trigger:focus, .multi-select.is-open .multi-select-trigger { border-color: var(--teal); outline: 0; box-shadow: 0 0 0 3px rgba(29,154,152,.12); }
.multi-select-trigger:disabled { color: var(--muted); cursor: not-allowed; background: #f5f7f8; }
.multi-select-summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi-select-trigger.has-selection .multi-select-summary { color: var(--navy); font-weight: 750; }
.multi-select-arrow { flex: 0 0 auto; font-size: 1.15rem; transition: transform .18s ease; }
.multi-select.is-open .multi-select-arrow { transform: rotate(180deg); }
.multi-select-panel { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: 11px; background: #fff; box-shadow: 0 16px 35px rgba(7,31,61,.16); }
.multi-select-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; padding: 9px; border-bottom: 1px solid var(--border); }
.filters .multi-select-search { min-width: 0; margin: 0; padding: 8px 9px; font-size: .8rem; }
.multi-select-clear { padding: 7px 8px; color: var(--teal); border: 0; background: transparent; font-size: .76rem; font-weight: 750; }
.multi-select-options { max-height: 245px; overflow-y: auto; padding: 5px; }
.multi-select-option { display: flex; width: 100%; align-items: center; gap: 9px; padding: 8px; color: var(--text); border: 0; border-radius: 7px; background: transparent; text-align: left; font-size: .82rem; }
.multi-select-option:hover { background: #f2f7f7; }
.multi-select-option[aria-selected="true"] { color: var(--navy); background: #eaf6f5; font-weight: 700; }
.multi-select-checkbox { display: grid; width: 18px; height: 18px; flex: 0 0 18px; place-items: center; color: #fff; border: 1px solid #b8c5cf; border-radius: 5px; background: #fff; font-size: .72rem; }
.multi-select-option[aria-selected="true"] .multi-select-checkbox { border-color: var(--teal); background: var(--teal); }
.range-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.clear-filters { display: block; margin-top: 12px; color: var(--teal); text-align: center; font-size: .86rem; }
.listing-results { min-width: 0; }
.results-toolbar { display: flex; min-height: 66px; align-items: center; gap: 14px; margin-bottom: 18px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.results-toolbar strong { margin-right: auto; }
.results-toolbar label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; }
.results-toolbar select { min-width: 150px; margin: 0; }
.filter-toggle { display: none; }
.listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pagination { display: flex; justify-content: center; gap: 7px; margin-top: 38px; }
.pagination a, .pagination span { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--border); border-radius: 9px; background: #fff; font-weight: 750; }
.pagination .active { color: #fff; border-color: var(--coral); background: var(--coral); }

.alert { margin: 18px 0; padding: 16px 18px; border-radius: 12px; }
.alert-error { color: #8a2d24; border: 1px solid #f0b7af; background: #fff0ed; }
.empty-state { padding: 70px 20px; border: 1px dashed #bdc8d1; border-radius: 18px; text-align: center; }
.empty-state p { color: var(--muted); }

.property-page { position: relative; padding-top: 34px; padding-bottom: 90px; }
.property-actions { display: flex; justify-content: flex-end; gap: 10px; margin: -28px 0 16px; }
.property-gallery { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; height: 520px; gap: 10px; overflow: hidden; border-radius: 22px; }
.property-gallery button { padding: 0; overflow: hidden; border: 0; background: #e8edf0; }
.property-gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery-count { position: absolute; bottom: 16px; left: 16px; padding: 8px 12px; border-radius: 8px; background: #fff; font-size: .8rem; font-weight: 750; }
.property-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; margin-top: 38px; }
.property-content { min-width: 0; }
.detail-badge { position: static; display: inline-flex; }
.property-content h1 { margin: 14px 0 8px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; letter-spacing: -.045em; }
.detail-price { display: flex; flex-direction: column; margin: 26px 0; color: var(--coral); font-size: 2.3rem; font-weight: 850; }
.detail-price small { margin-top: 2px; color: var(--muted); font-size: .84rem; font-weight: 600; }
.facts-grid, .amenities-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 18px; padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.facts-grid div, .amenities-grid div { padding: 10px 16px; border-right: 1px solid var(--border); }
.facts-grid div:nth-child(3n), .amenities-grid div:nth-child(3n) { border-right: 0; }
.facts-grid dt, .amenities-grid dt { color: var(--muted); font-size: .76rem; }
.facts-grid dd, .amenities-grid dd { margin: 4px 0 0; font-weight: 750; }
.description-block { padding: 20px 4px; }
.description-block h2 { font-size: 1.4rem; }
.description-text { color: #34465b; line-height: 1.85; }
.contact-column { align-self: start; }
.contact-card { margin-bottom: 18px; padding: 24px; border: 1px solid var(--border); border-radius: 17px; background: #fff; box-shadow: var(--shadow); }
.contact-card h2 { margin: 5px 0 14px; font-size: 1.3rem; }
.contact-card p { color: var(--muted); }
.contact-card .button + .button { margin-top: 10px; }
.phone-reveal { padding: 3px 0; color: var(--navy-2); border: 0; border-bottom: 1px dashed #9eacba; background: transparent; font-weight: 750; }
.phone-reveal:hover, .phone-reveal:focus-visible { color: var(--coral); border-bottom-color: var(--coral); outline: none; }
.phone-reveal.is-revealed { border-bottom-style: solid; }
.similar-section { margin-top: 60px; }
.similar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-dialog { width: min(92vw, 1200px); padding: 0; overflow: visible; border: 0; border-radius: 16px; background: #050f1e; }
.gallery-dialog::backdrop { background: rgba(0,0,0,.88); }
.gallery-dialog img { width: 100%; max-height: 82vh; object-fit: contain; }
.gallery-dialog button { position: absolute; z-index: 2; display: grid; width: 46px; height: 46px; place-items: center; color: #fff; border: 0; border-radius: 50%; background: rgba(5,25,51,.8); font-size: 1.4rem; }
.gallery-dialog [data-gallery-close] { top: -18px; right: -18px; }
.gallery-dialog [data-gallery-prev] { top: 50%; left: 14px; }
.gallery-dialog [data-gallery-next] { top: 50%; right: 14px; }

.buildings-hero { padding: 90px 0; color: #fff; background: linear-gradient(115deg, #071f3d 0%, #0c426c 65%, #1d9a98 140%); }
.buildings-hero h1 { margin: 0; font-size: clamp(2.8rem, 5vw, 5rem); letter-spacing: -.055em; }
.buildings-hero p:not(.eyebrow) { max-width: 650px; margin-bottom: 25px; color: #dceaf2; font-size: 1.12rem; }
.process-section { background: #eef3f4; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.process-grid > div { padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.process-grid b { display: grid; width: 42px; height: 42px; place-items: center; color: var(--navy); border-radius: 50%; background: #e2f2f1; }
.process-grid h3 { margin: 15px 0 6px; }
.process-grid p { margin: 0; color: var(--muted); }

.about-hero { background: #fff; }
.about-hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 70px; }
.about-hero h1 { margin: 0 0 22px; font-size: clamp(3rem, 5vw, 5.3rem); line-height: 1; letter-spacing: -.06em; }
.about-hero p:not(.eyebrow) { max-width: 620px; color: var(--muted); font-size: 1.08rem; }
.about-visual { position: relative; min-height: 500px; overflow: hidden; border-radius: 30px; background: linear-gradient(145deg, #dce9ed, #8ab9be); box-shadow: var(--shadow); }
.about-visual::before { position: absolute; right: 8%; bottom: 0; left: 8%; height: 72%; content: ""; border-radius: 20px 20px 0 0; background: linear-gradient(135deg, #fff 0 48%, #d7e2e5 49%); box-shadow: 0 0 0 16px rgba(7,31,61,.07); }
.about-visual span { position: absolute; bottom: 0; z-index: 1; width: 19%; height: 50%; border: 8px solid #fff; background: #92c3cc; }
.about-visual span:nth-child(1) { left: 16%; }.about-visual span:nth-child(2) { left: 40%; }.about-visual span:nth-child(3) { right: 16%; }
.about-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.about-cards a { padding: 30px; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(7,31,61,.05); }
.about-cards span { display: grid; width: 52px; height: 52px; place-items: center; color: var(--coral); border-radius: 50%; background: #fff0ed; font-size: 1.4rem; }
.about-cards h3 { margin: 18px 0 7px; }
.about-cards p { margin: 0; color: var(--muted); }
.about-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 70px; padding: 45px; color: #fff; border-radius: 24px; background: linear-gradient(120deg, #071f3d, #0b315c); }
.about-cta h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.about-cta > div:last-child { display: flex; gap: 10px; }
.not-found { min-height: 65vh; display: grid; place-items: center; text-align: center; }
.not-found span { display: block; color: #d8e2e9; font-size: clamp(7rem, 20vw, 15rem); font-weight: 900; line-height: .8; }
.not-found h1 { margin: 25px 0 10px; font-size: 2.6rem; }
.not-found p { color: var(--muted); }

.site-footer { color: #fff; background: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 70px; padding-block: 58px; }
.brand-footer span { color: #fff; }
.footer-grid h2 { margin: 0 0 15px; font-size: 1rem; }
.footer-grid p { max-width: 380px; color: #b9c8d7; font-size: .88rem; }
.footer-grid > div:not(:first-child) a { display: block; margin: 8px 0; color: #dfe8ef; font-size: .9rem; }
.footer-bottom { padding: 20px 0; color: #9db0c2; border-top: 1px solid rgba(255,255,255,.14); text-align: center; font-size: .82rem; }

@media (max-width: 1080px) {
    .site-navigation { gap: 18px; }
    .header-cta { display: none; }
    .home-property-grid, .buildings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .listing-shell { grid-template-columns: 250px minmax(0, 1fr); }
    .property-detail-layout { grid-template-columns: minmax(0, 1fr) 290px; }
}

@media (max-width: 820px) {
    .container { width: min(calc(100% - 30px), var(--container)); }
    .section { padding-block: 58px; }
    .header-inner { min-height: 68px; }
    .menu-toggle { display: block; }
    .site-navigation { position: absolute; top: 68px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 22px 22px; border-bottom: 1px solid var(--border); background: #fff; box-shadow: var(--shadow); }
    .site-navigation.is-open { display: flex; }
    .site-navigation a { padding: 14px 0; }
    .site-navigation a::after { bottom: 8px; }
    .home-hero { min-height: auto; padding-top: 74px; }
    .hero-content h1 { font-size: clamp(2.5rem, 10vw, 4rem); }
    .home-hero > .container:last-child { margin-top: 48px; }
    .hero-search { margin-inline: -2px; padding: 18px; border-radius: 22px 22px 0 0; }
    .hero-search-fields { grid-template-columns: 1fr; }
    .hero-search .button { width: 100%; }
    .category-grid { grid-template-columns: 1fr; }
    .home-property-grid, .buildings-grid, .similar-grid { grid-template-columns: 1fr; }
    .value-grid { grid-template-columns: 1fr; }
    .listing-shell { display: block; }
    .filter-sidebar { position: fixed; z-index: 300; inset: 0; display: none; padding: 18px; overflow-y: auto; background: rgba(5,25,51,.72); }
    .filter-sidebar.is-open { display: block; }
    .filters { position: static; max-width: 420px; margin: 0 auto; }
    .filters-close, .filter-toggle { display: inline-flex; }
    .results-toolbar { flex-wrap: wrap; }
    .results-toolbar strong { width: 100%; }
    .results-toolbar label { flex: 1; }
    .listing-grid { grid-template-columns: 1fr; }
    .property-gallery { grid-template-columns: 1fr; height: auto; }
    .gallery-main { aspect-ratio: 4 / 3; }
    .gallery-thumbs { grid-template-columns: 1fr 1fr; }
    .gallery-thumbs button { aspect-ratio: 16 / 10; }
    .property-detail-layout { grid-template-columns: 1fr; }
    .contact-column { order: 2; }
    .facts-grid, .amenities-grid { grid-template-columns: 1fr 1fr; padding: 14px; }
    .facts-grid div, .amenities-grid div, .facts-grid div:nth-child(3n), .amenities-grid div:nth-child(3n) { border-right: 0; border-bottom: 1px solid var(--border); }
    .property-actions { margin-top: 16px; }
    .about-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-visual { min-height: 340px; }
    .about-cards, .process-grid { grid-template-columns: 1fr; }
    .about-cta { flex-direction: column; align-items: stretch; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
    .container { width: min(calc(100% - 22px), var(--container)); }
    .home-hero { background-position: 60% center; }
    .hero-content > p:last-child { font-size: 1rem; }
    .transaction-switch button { min-width: 0; flex: 1; }
    .property-meta { grid-template-columns: 1fr 1fr; font-size: .72rem; }
    .property-card h3 { min-height: 0; }
    .page-heading { padding-top: 34px; }
    .page-heading h1 { font-size: 2.35rem; }
    .results-toolbar label { width: 100%; }
    .filter-toggle { flex: 1; }
    .property-content h1 { font-size: 2rem; }
    .detail-price { font-size: 1.9rem; }
    .facts-grid, .amenities-grid { grid-template-columns: 1fr 1fr; font-size: .86rem; }
    .gallery-thumbs { display: none; }
    .about-hero h1 { font-size: 3rem; }
    .about-visual { min-height: 280px; }
    .about-cta { padding: 30px 22px; }
    .about-cta > div:last-child { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > div:first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}


/* SEO landing pages */
.seo-page-heading { max-width: 980px; }
.seo-page-heading p { max-width: 850px; }
.seo-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: -8px; margin-bottom: 28px; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--border); }
.seo-stats > div { padding: 18px 20px; background: #fff; }
.seo-stats span { display: block; margin-bottom: 7px; color: var(--muted); font-size: .78rem; }
.seo-stats strong { color: var(--navy); font-size: 1.12rem; }
.seo-stats small { grid-column: 1 / -1; padding: 8px 14px; color: var(--muted); background: #f8faf9; }
.seo-listing-section { padding-bottom: 64px; }
.seo-property-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seo-related-section { border-top: 1px solid var(--border); background: #f7f9f8; }
.seo-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.seo-related-grid h2 { margin-top: 5px; }
.seo-link-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.seo-link-cloud a { padding: 9px 12px; color: var(--navy); border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: .86rem; font-weight: 700; }
.seo-link-cloud a:hover { color: #fff; border-color: var(--teal); background: var(--teal); }
.home-seo-links { border-top: 1px solid var(--border); background: #f7f9f8; }
.home-seo-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px; }
.home-seo-columns h2 { margin-bottom: 16px; }
.home-seo-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 18px; }
.home-seo-list a { color: var(--navy); font-weight: 700; }
.home-seo-list a:hover { color: var(--coral); }

@media (max-width: 980px) {
    .seo-property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .seo-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
    .seo-property-grid, .seo-related-grid, .home-seo-columns, .home-seo-list { grid-template-columns: 1fr; }
    .seo-stats { grid-template-columns: 1fr 1fr; }
}