:root {
  --paper: #f4f0e8;
  --paper-light: #fbf9f4;
  --paper-deep: #e8e1d6;
  --ink: #18201c;
  --ink-soft: #34423b;
  --muted: #69746f;
  --sage: #536d61;
  --sage-dark: #31483e;
  --sage-pale: #dce4de;
  --brass: #b8874d;
  --clay: #a35f45;
  --line: #d7d0c5;
  --white: #fff;
  --shadow: 0 28px 80px rgba(34, 42, 37, 0.12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: var(--paper); font-size: 15px; line-height: 1.6; }
button, select, input { font: inherit; }
button, select, input, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
button { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; transform: translateY(-150%); padding: 9px 14px; color: var(--white); background: var(--ink); text-decoration: none; }
.skip-link:focus { transform: none; }

.demo-notice { display: flex; align-items: center; justify-content: center; gap: 13px; min-height: 36px; padding: 7px 18px; color: #e9eee9; background: var(--ink); font-size: 11px; text-align: center; }
.demo-notice strong { color: #f3d7b5; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }

.site-header { position: sticky; z-index: 70; top: 0; background: rgba(251, 249, 244, 0.94); border-bottom: 1px solid rgba(75, 91, 83, 0.16); backdrop-filter: blur(18px); }
.header-shell, .section-shell, .hero-shell { width: min(1380px, calc(100% - 52px)); margin-inline: auto; }
.header-shell { display: flex; align-items: center; min-height: 82px; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand > span:last-child { display: grid; line-height: 1.05; }
.brand strong { font: 600 23px/1 var(--serif); letter-spacing: -0.03em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; }
.brand-mark { position: relative; display: block; width: 34px; height: 38px; }
.brand-mark i { position: absolute; display: block; border: 1.5px solid var(--sage); }
.brand-mark i:first-child { inset: 2px 11px 9px 1px; transform: skewY(-14deg); }
.brand-mark i:last-child { inset: 9px 1px 2px 12px; background: rgba(83, 109, 97, 0.08); transform: skewY(-14deg); }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a, .site-nav button { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 12px; color: var(--ink-soft); background: transparent; border: 0; font-size: 11px; font-weight: 750; text-decoration: none; cursor: pointer; }
.site-nav a:hover, .site-nav button:hover { color: var(--sage); }
.nav-shortlist-count { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; color: var(--white); background: var(--sage); border-radius: 50%; font-size: 8px; }
.header-action { display: inline-flex; align-items: center; gap: 13px; min-height: 44px; padding: 9px 15px; color: var(--white); background: var(--sage-dark); border: 1px solid var(--sage-dark); text-decoration: none; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.header-action:hover { background: var(--sage); }
.menu-button { display: none; width: 44px; height: 44px; margin-left: auto; padding: 11px; background: transparent; border: 1px solid var(--line); cursor: pointer; }
.menu-button span { display: block; width: 100%; height: 1px; margin: 5px 0; background: var(--ink); }

.hero { position: relative; overflow: hidden; padding: clamp(54px, 7vw, 104px) 0 76px; background: linear-gradient(118deg, var(--paper-light), var(--paper) 62%, #e7e2d8); }
.hero::before { content: ""; position: absolute; top: -180px; right: -120px; width: 510px; height: 510px; border: 1px solid rgba(83, 109, 97, 0.12); border-radius: 50%; box-shadow: 0 0 0 72px rgba(83, 109, 97, 0.025), 0 0 0 144px rgba(83, 109, 97, 0.018); }
.hero-shell { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.8fr); align-items: center; gap: clamp(45px, 7vw, 100px); }
.eyebrow { margin: 0; color: var(--sage); font-size: 9px; font-weight: 900; letter-spacing: 0.17em; text-transform: uppercase; }
.hero h1 { max-width: 800px; margin: 18px 0 24px; font: 500 clamp(54px, 6vw, 88px)/0.96 var(--serif); letter-spacing: -0.055em; }
.hero-lead { max-width: 660px; margin: 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 21px); }
.hero-search { display: grid; grid-template-columns: 1.15fr 1fr 0.8fr auto; align-items: end; gap: 0; max-width: 820px; margin-top: 36px; padding: 8px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 17px 52px rgba(45, 56, 49, 0.08); }
.hero-search label { display: grid; gap: 3px; min-width: 0; padding: 5px 13px; border-right: 1px solid var(--line); }
.hero-search label span, .filter-bar label span { color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: 0.09em; text-transform: uppercase; }
.hero-search select { width: 100%; min-height: 30px; padding: 2px 24px 2px 0; color: var(--ink); background: var(--white); border: 0; font-weight: 750; }
.search-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 10px 17px; color: var(--white); background: var(--sage-dark); border: 0; cursor: pointer; font-size: 10px; font-weight: 850; letter-spacing: 0.04em; text-transform: uppercase; }
.search-button:hover { background: var(--sage); }
.hero-stats { display: flex; gap: clamp(25px, 4vw, 55px); margin: 35px 0 0; }
.hero-stats div { display: flex; align-items: baseline; gap: 9px; }
.hero-stats dt { color: var(--muted); font-size: 9px; letter-spacing: 0.05em; text-transform: uppercase; }
.hero-stats dd { order: -1; margin: 0; font: 500 24px/1 var(--serif); }
.hero-visual { position: relative; min-height: 630px; }
.hero-visual::before { content: ""; position: absolute; inset: 7% -8% -5% 18%; border: 1px solid rgba(83, 109, 97, 0.25); }
.hero-visual > .property-image { position: absolute; inset: 0 0 8% 0; z-index: 1; box-shadow: var(--shadow); }
.hero-caption { position: absolute; z-index: 3; left: -42px; bottom: 0; display: grid; min-width: 260px; padding: 19px 22px; color: var(--ink); background: var(--paper-light); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(33, 44, 38, 0.16); }
.hero-caption span { color: var(--sage); font-size: 8px; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-caption strong { margin: 4px 0 2px; font: 500 23px/1.1 var(--serif); }
.hero-caption small { color: var(--muted); font-size: 10px; }
.hero-detail-button { position: absolute; z-index: 4; right: -21px; bottom: 28%; display: grid; place-items: center; width: 76px; height: 76px; color: var(--white); background: var(--clay); border: 7px solid var(--paper); border-radius: 50%; cursor: pointer; }
.hero-detail-button span { font-size: 8px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-detail-button b { font-size: 17px; line-height: 0.7; }

.property-image { background-image: url("../img/avenor-properties.png"); background-repeat: no-repeat; background-size: 300% 200%; background-color: #d8d3ca; }
.image-one { background-position: 0% 0%; }
.image-two { background-position: 50% 0%; }
.image-three { background-position: 100% 0%; }
.image-four { background-position: 0% 100%; }
.image-five { background-position: 50% 100%; }
.image-six { background-position: 100% 100%; }

.discovery-section { padding: 92px 0 110px; background: var(--paper-light); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.55fr); align-items: end; gap: 50px; margin-bottom: 38px; }
.section-heading h2 { max-width: 820px; margin: 8px 0 0; font: 500 clamp(40px, 5vw, 67px)/1.02 var(--serif); letter-spacing: -0.045em; }
.section-heading > p { margin: 0 0 7px; color: var(--muted); font-size: 14px; }
.filter-bar { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)) auto; align-items: end; gap: 10px; padding: 13px; background: var(--paper); border: 1px solid var(--line); }
.filter-bar label { display: grid; gap: 5px; min-width: 0; }
.filter-bar select { width: 100%; min-height: 45px; padding: 8px 32px 8px 11px; color: var(--ink); background: var(--white); border: 1px solid var(--line); }
.reset-button { min-height: 45px; padding: 8px 14px; color: var(--sage-dark); background: transparent; border: 1px solid var(--sage); cursor: pointer; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.reset-button:hover { color: var(--white); background: var(--sage-dark); }
.results-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 28px 0 17px; }
.results-toolbar p { margin: 0; color: var(--muted); font-size: 11px; }
.results-toolbar strong { color: var(--ink); font-size: 17px; }
.view-switcher { display: flex; border: 1px solid var(--line); }
.view-switcher button { min-height: 37px; padding: 7px 12px; color: var(--muted); background: var(--white); border: 0; border-right: 1px solid var(--line); cursor: pointer; font-size: 9px; font-weight: 800; }
.view-switcher button:last-child { border-right: 0; }
.view-switcher button.is-active { color: var(--white); background: var(--sage-dark); }
.discovery-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr); gap: 18px; align-items: start; }
.discovery-layout.is-grid-only { grid-template-columns: 1fr; }
.discovery-layout.is-grid-only .map-panel { display: none; }
.discovery-layout.is-grid-only .property-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.property-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.property-card { position: relative; min-width: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.property-card:hover, .property-card.is-highlighted { transform: translateY(-3px); border-color: #b5aa9a; box-shadow: 0 18px 48px rgba(45, 54, 49, 0.11); }
.property-card__image { position: relative; width: 100%; aspect-ratio: 1.34 / 1; cursor: pointer; }
.property-card__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 24, 19, 0.36), transparent 45%); }
.image-open-button { position: absolute; z-index: 1; inset: 0; width: 100%; padding: 0; background: transparent; border: 0; cursor: pointer; }
.property-card__region { position: absolute; z-index: 2; top: 13px; left: 13px; padding: 5px 8px; color: var(--ink); background: rgba(251, 249, 244, 0.9); font-size: 8px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; backdrop-filter: blur(8px); }
.save-button { position: absolute; z-index: 3; top: 11px; right: 11px; display: grid; place-items: center; width: 38px; height: 38px; color: var(--white); background: rgba(24, 32, 28, 0.68); border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 50%; cursor: pointer; font-size: 17px; }
.save-button:hover, .save-button.is-saved { color: var(--white); background: var(--clay); }
.property-card__body { padding: 17px 18px 19px; }
.property-card__heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.property-card h3 { margin: 0; font: 500 23px/1.08 var(--serif); letter-spacing: -0.02em; }
.property-card__heading strong { white-space: nowrap; color: var(--sage-dark); font-size: 13px; }
.property-card__location { margin: 5px 0 13px; color: var(--muted); font-size: 10px; }
.property-card__features { display: flex; flex-wrap: wrap; gap: 11px; margin-bottom: 14px; padding-bottom: 13px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 9px; }
.property-card__actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.property-card__type { color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.card-link, .text-link { padding: 0; color: var(--sage-dark); background: transparent; border: 0; cursor: pointer; font-size: 9px; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.card-link:hover, .text-link:hover { color: var(--clay); }
.map-panel { position: sticky; top: 104px; overflow: hidden; background: #e6e5dd; border: 1px solid var(--line); }
.map-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 15px 16px; color: var(--white); background: var(--sage-dark); }
.map-toolbar div { display: grid; }
.map-toolbar span, .map-toolbar small { color: #c6d1cb; font-size: 8px; text-transform: uppercase; letter-spacing: 0.1em; }
.map-toolbar strong { font: 500 17px/1.2 var(--serif); }
.property-map { position: relative; min-height: 690px; overflow: hidden; background: #e7e5dc; background-image: linear-gradient(rgba(62, 85, 74, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(62, 85, 74, 0.07) 1px, transparent 1px); background-size: 29px 29px; }
.map-water { position: absolute; top: -8%; right: -19%; width: 42%; height: 116%; background: #cbdcdf; border-left: 3px solid rgba(255,255,255,0.65); transform: rotate(-5deg); }
.map-road { position: absolute; height: 2px; background: rgba(113, 118, 105, 0.32); transform-origin: left; }
.map-road::after { content: ""; position: absolute; inset: -5px 0; border-top: 1px dashed rgba(255,255,255,0.85); }
.road-a { top: 18%; left: -8%; width: 97%; transform: rotate(37deg); }
.road-b { top: 12%; left: 35%; width: 85%; transform: rotate(89deg); }
.road-c { top: 69%; left: -3%; width: 103%; transform: rotate(-12deg); }
.map-label { position: absolute; color: rgba(50, 67, 58, 0.58); font: 500 15px/1 var(--serif); }
.label-brisbane { top: 18%; left: 22%; }
.label-coast { right: 14%; bottom: 20%; }
.label-hinterland { left: 10%; bottom: 29%; }
.map-marker { position: absolute; z-index: 3; top: var(--y); left: var(--x); display: grid; place-items: center; width: 44px; height: 44px; transform: translate(-50%, -50%); color: var(--white); background: var(--sage-dark); border: 4px solid rgba(251,249,244,0.9); border-radius: 50%; box-shadow: 0 8px 22px rgba(30, 45, 37, 0.24); cursor: pointer; font-size: 8px; font-weight: 900; transition: transform 160ms ease, opacity 160ms ease; }
.map-marker:hover, .map-marker.is-active { z-index: 5; background: var(--clay); transform: translate(-50%, -50%) scale(1.14); }
.map-marker.is-hidden { opacity: 0.12; pointer-events: none; }
.map-card { position: absolute; z-index: 8; right: 15px; bottom: 15px; display: grid; width: min(245px, calc(100% - 30px)); padding: 9px 9px 13px; background: rgba(251, 249, 244, 0.97); border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-card > button { position: absolute; z-index: 2; top: 14px; right: 14px; display: grid; place-items: center; width: 27px; height: 27px; color: var(--white); background: rgba(24,32,28,0.74); border: 0; border-radius: 50%; cursor: pointer; font-size: 17px; }
.map-card-image { height: 120px; margin-bottom: 10px; }
.map-card > span { color: var(--sage); font-size: 7px; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.map-card > strong { margin: 2px 0; font: 500 17px/1.2 var(--serif); }
.map-card > small { color: var(--muted); font-size: 9px; }
.map-disclaimer { margin: 0; padding: 9px 13px; color: var(--muted); background: var(--paper-light); font-size: 8px; }
.no-results { display: grid; justify-items: center; padding: 55px 20px; border: 1px dashed var(--line); text-align: center; }
.no-results > span { font-size: 40px; color: var(--brass); }
.no-results h3 { margin: 8px 0 4px; font: 500 28px/1.1 var(--serif); }
.no-results p { margin: 0 0 17px; color: var(--muted); }

.editorial-feature { padding: 110px 0; color: var(--white); background: var(--ink); }
.editorial-grid { display: grid; grid-template-columns: minmax(420px, 0.92fr) minmax(0, 0.72fr); align-items: center; gap: clamp(55px, 9vw, 140px); }
.editorial-image { position: relative; min-height: 650px; }
.editorial-image::after { content: ""; position: absolute; inset: 24px -24px -24px 24px; z-index: -1; border: 1px solid rgba(255,255,255,0.22); }
.editorial-image span { position: absolute; left: 0; bottom: 0; padding: 10px 15px; color: var(--ink); background: var(--paper-light); font-size: 8px; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.editorial-copy .eyebrow { color: #d0ad7f; }
.editorial-copy h2 { margin: 11px 0 25px; font: 500 clamp(43px, 5vw, 70px)/1.01 var(--serif); letter-spacing: -0.045em; }
.editorial-copy > p:not(.eyebrow) { color: #b5c0ba; font-size: 16px; }
.editorial-copy ul { margin: 30px 0; padding: 0; list-style: none; }
.editorial-copy li { display: grid; grid-template-columns: 35px 1fr; gap: 12px; padding: 13px 0; color: #d9dfdb; border-top: 1px solid rgba(255,255,255,0.14); font-size: 11px; }
.editorial-copy li span { color: #d0ad7f; font-size: 8px; font-weight: 850; }
.editorial-copy .text-link { color: #f0ceb0; }

.calculator-section { padding: 110px 0; background: #e8e3d9; }
.calculator-grid { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(500px, 0.9fr); align-items: start; gap: clamp(50px, 8vw, 120px); }
.calculator-intro { position: sticky; top: 120px; }
.calculator-intro h2 { margin: 10px 0 21px; font: 500 clamp(43px, 5vw, 68px)/1.02 var(--serif); letter-spacing: -0.045em; }
.calculator-intro > p:not(.eyebrow) { max-width: 590px; color: var(--muted); font-size: 15px; }
.calculator-note { display: grid; max-width: 390px; margin-top: 31px; padding: 14px 17px; border-left: 3px solid var(--brass); background: rgba(251,249,244,0.62); }
.calculator-note strong { font-size: 11px; }
.calculator-note span { color: var(--muted); font-size: 9px; }
.calculator-card { padding: clamp(24px, 4vw, 48px); background: var(--paper-light); border: 1px solid var(--line); box-shadow: 0 25px 70px rgba(44, 51, 46, 0.09); }
.calculator-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.calculator-fields label { display: grid; gap: 8px; }
.calculator-fields label > span:first-child { display: flex; justify-content: space-between; color: var(--ink-soft); font-size: 9px; font-weight: 850; letter-spacing: 0.07em; text-transform: uppercase; }
.calculator-fields output { color: var(--sage); }
.calculator-fields input[type="number"], .calculator-fields select { width: 100%; min-height: 49px; padding: 9px 12px; color: var(--ink); background: var(--white); border: 1px solid var(--line); }
.currency-field, .suffix-field { display: flex; align-items: center; min-height: 49px; background: var(--white); border: 1px solid var(--line); }
.currency-field b, .suffix-field b { padding: 0 12px; color: var(--muted); font-size: 10px; }
.currency-field input, .suffix-field input { min-width: 0; flex: 1; min-height: 47px !important; padding-left: 0 !important; border: 0 !important; }
.suffix-field b { white-space: nowrap; border-left: 1px solid var(--line); }
.calculator-fields input[type="range"] { width: 100%; accent-color: var(--sage-dark); }
.repayment-result { display: grid; margin: 34px 0 21px; padding: 27px; color: var(--white); background: var(--sage-dark); }
.repayment-result span { color: #c5d2cc; font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.repayment-result strong { margin: 4px 0; font: 500 clamp(44px, 6vw, 72px)/1 var(--serif); letter-spacing: -0.04em; }
.repayment-result small { color: #c5d2cc; font-size: 9px; }
.calculator-breakdown { margin: 0; }
.calculator-breakdown div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.calculator-breakdown dt { color: var(--muted); }
.calculator-breakdown dd { margin: 0; font-weight: 800; }
.fine-print { margin: 18px 0 0; color: var(--muted); font-size: 8px; }

.approach-section { padding: 100px 0 120px; background: var(--paper-light); }
.compact-heading { grid-template-columns: 1fr 0.6fr; }
.approach-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.approach-grid article { min-height: 250px; padding: 25px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.approach-grid article > span { color: var(--brass); font-size: 9px; font-weight: 850; }
.approach-grid h3 { margin: 57px 0 9px; font: 500 23px/1.1 var(--serif); }
.approach-grid p { margin: 0; color: var(--muted); font-size: 11px; }

.site-footer { padding: 40px 0; color: #cbd4cf; background: #121915; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 50px; }
.footer-brand { color: var(--white); }
.footer-brand .brand-mark i { border-color: #c6b18f; }
.footer-grid p { max-width: 620px; margin: 0; color: #8f9f96; font-size: 10px; }
.footer-grid > a { color: #f1d4ac; font-size: 10px; font-weight: 800; text-decoration: none; }

.primary-button, .outline-button { display: inline-flex; justify-content: center; align-items: center; min-height: 45px; padding: 9px 15px; cursor: pointer; font-size: 9px; font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }
.primary-button { color: var(--white); background: var(--sage-dark); border: 1px solid var(--sage-dark); }
.primary-button:hover { background: var(--sage); }
.outline-button { color: var(--sage-dark); background: transparent; border: 1px solid var(--sage); }
.outline-button:hover { color: var(--white); background: var(--sage-dark); }

.shortlist-tray { position: fixed; z-index: 100; left: 50%; bottom: 16px; display: flex; align-items: center; gap: 24px; min-width: 420px; padding: 10px 10px 10px 17px; color: var(--white); background: rgba(24,32,28,0.95); border: 1px solid rgba(255,255,255,0.18); box-shadow: 0 19px 60px rgba(0,0,0,0.35); transform: translateX(-50%); backdrop-filter: blur(14px); }
.shortlist-tray > div { display: grid; min-width: 150px; }
.shortlist-tray span { color: #aab8b0; font-size: 7px; letter-spacing: 0.1em; text-transform: uppercase; }
.shortlist-tray strong { font-size: 10px; }
.shortlist-tray button { min-height: 39px; padding: 8px 12px; color: var(--ink); background: #e5c89f; border: 0; cursor: pointer; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.back-to-site { position: fixed; z-index: 105; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 9px; min-height: 47px; padding: 8px 13px 8px 8px; color: var(--white); background: var(--clay); border: 1px solid rgba(255,255,255,0.3); box-shadow: 0 15px 45px rgba(36,25,20,0.26); text-decoration: none; }
.back-to-site > span { display: grid; place-items: center; width: 30px; height: 30px; color: var(--clay); background: var(--white); }
.back-to-site strong { font-size: 8px; letter-spacing: 0.06em; text-transform: uppercase; }
.toast-region { position: fixed; z-index: 120; right: 16px; bottom: 76px; display: grid; gap: 8px; width: min(330px, calc(100% - 32px)); pointer-events: none; }
.toast { padding: 12px 14px; color: var(--ink); background: var(--paper-light); border-left: 4px solid var(--sage); box-shadow: var(--shadow); animation: toast-in 220ms ease both; font-size: 10px; }
.toast strong { display: block; font-size: 11px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.property-dialog, .compare-dialog { width: min(1150px, calc(100% - 30px)); max-height: calc(100vh - 30px); padding: 0; color: var(--ink); background: var(--paper-light); border: 0; box-shadow: 0 35px 120px rgba(18, 25, 21, 0.46); }
.property-dialog::backdrop, .compare-dialog::backdrop { background: rgba(20,27,23,0.74); backdrop-filter: blur(7px); }
.dialog-layout { display: grid; grid-template-columns: minmax(400px, 1.05fr) minmax(400px, 0.95fr); min-height: min(730px, calc(100vh - 30px)); }
.dialog-gallery { position: relative; display: grid; grid-template-rows: 1fr auto; min-height: 600px; background: var(--ink); }
.dialog-main-image { min-height: 0; }
.dialog-gallery-nav { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; padding: 7px; background: var(--ink); }
.gallery-thumb { aspect-ratio: 1; padding: 0; background-image: url("../img/avenor-properties.png"); background-repeat: no-repeat; background-size: 300% 200%; border: 2px solid transparent; cursor: pointer; opacity: 0.58; }
.gallery-thumb.is-active { border-color: #e5c89f; opacity: 1; }
.dialog-close { display: grid; place-items: center; width: 39px; height: 39px; color: var(--ink); background: var(--paper-light); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; font-size: 21px; }
.dialog-close--image { position: absolute; z-index: 3; top: 14px; left: 14px; }
.dialog-content { align-self: center; padding: clamp(30px, 5vw, 65px); }
.dialog-content h2 { margin: 7px 0 3px; font: 500 clamp(40px, 5vw, 65px)/0.98 var(--serif); letter-spacing: -0.045em; }
.dialog-location { margin: 0; color: var(--muted); font-size: 11px; }
.dialog-price { display: block; margin: 22px 0 15px; color: var(--sage-dark); font: 500 27px/1 var(--serif); }
.dialog-features { display: flex; flex-wrap: wrap; gap: 7px; }
.dialog-features span { padding: 6px 8px; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); font-size: 9px; }
.dialog-description { margin: 22px 0; color: var(--muted); font-size: 12px; }
.dialog-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--line); }
.dialog-facts div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.dialog-facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.dialog-facts div:nth-child(even) { padding-left: 14px; }
.dialog-facts dt { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.dialog-facts dd { margin: 2px 0 0; font-size: 10px; font-weight: 800; }
.dialog-actions { display: flex; gap: 8px; margin-top: 25px; }
.dialog-actions > * { flex: 1; }
.dialog-disclaimer { margin: 14px 0 0; color: var(--muted); font-size: 8px; }
.compare-dialog { width: min(1080px, calc(100% - 30px)); }
.compare-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.compare-header h2 { margin: 3px 0 0; font: 500 39px/1 var(--serif); }
.compare-content { padding: 22px; overflow: auto; }
.compare-empty { padding: 60px 20px; text-align: center; }
.compare-empty h3 { margin: 0 0 7px; font: 500 30px/1.1 var(--serif); }
.compare-empty p { color: var(--muted); }
.compare-grid { display: grid; grid-template-columns: repeat(var(--compare-count, 1), minmax(230px, 1fr)); gap: 12px; min-width: calc(var(--compare-count, 1) * 230px); }
.compare-property { border: 1px solid var(--line); background: var(--white); }
.compare-property__image { aspect-ratio: 1.5 / 1; }
.compare-property__body { padding: 16px; }
.compare-property h3 { margin: 0 0 3px; font: 500 23px/1.1 var(--serif); }
.compare-property__body > p { margin: 0 0 15px; color: var(--muted); font-size: 9px; }
.compare-property dl { margin: 0; }
.compare-property dl div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 9px; }
.compare-property dt { color: var(--muted); }
.compare-property dd { margin: 0; font-weight: 800; }
.compare-remove { width: 100%; min-height: 37px; margin-top: 14px; color: var(--clay); background: transparent; border: 1px solid #c9a99b; cursor: pointer; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.mobile-overlay { position: fixed; z-index: 60; inset: 36px 0 0; background: rgba(20,27,23,0.55); }

@media (max-width: 1160px) {
  .hero-shell { grid-template-columns: 1fr 0.8fr; gap: 45px; }
  .hero-visual { min-height: 540px; }
  .hero-search { grid-template-columns: 1fr 1fr 1fr; }
  .hero-search label:nth-child(3) { border-right: 0; }
  .hero-search .search-button { grid-column: 1 / -1; }
  .discovery-layout { grid-template-columns: minmax(0, 1fr) 350px; }
  .property-grid { grid-template-columns: 1fr; }
  .discovery-layout.is-grid-only .property-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .header-shell, .section-shell, .hero-shell { width: min(100% - 30px, 1380px); }
  .menu-button { display: block; }
  .site-nav { position: absolute; z-index: 3; top: calc(100% + 1px); left: 15px; right: 15px; display: none; align-items: stretch; flex-direction: column; padding: 10px; background: var(--paper-light); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a, .site-nav button { justify-content: space-between; width: 100%; padding: 11px; border-bottom: 1px solid var(--line); text-align: left; }
  .site-nav > *:last-child { border-bottom: 0; }
  .header-action { display: none; }
  .hero-shell { grid-template-columns: 1fr; }
  .hero-copy { max-width: 800px; }
  .hero-visual { width: min(100%, 650px); margin: 15px auto 0; }
  .hero-caption { left: 14px; }
  .hero-detail-button { right: 14px; }
  .section-heading, .compact-heading { grid-template-columns: 1fr; gap: 15px; }
  .filter-bar { grid-template-columns: repeat(2, 1fr); }
  .filter-bar .reset-button { grid-column: 1 / -1; }
  .discovery-layout { grid-template-columns: 1fr; }
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-panel { position: relative; top: auto; }
  .property-map { min-height: 560px; }
  .editorial-grid, .calculator-grid { grid-template-columns: 1fr; }
  .editorial-image { min-height: 600px; }
  .calculator-intro { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid > a { justify-self: start; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-gallery { min-height: 500px; }
  .dialog-main-image { min-height: 420px; }
}

@media (max-width: 650px) {
  .demo-notice { align-items: flex-start; flex-direction: column; gap: 2px; min-height: 51px; padding-inline: 12px; text-align: left; }
  .header-shell { min-height: 68px; }
  .brand strong { font-size: 20px; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: clamp(48px, 15vw, 68px); }
  .hero-search { grid-template-columns: 1fr; }
  .hero-search label, .hero-search label:nth-child(3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-search .search-button { grid-column: auto; }
  .hero-stats { justify-content: space-between; gap: 12px; }
  .hero-stats div { display: grid; gap: 3px; }
  .hero-stats dd { order: 0; }
  .hero-visual { min-height: 445px; }
  .hero-caption { right: 55px; min-width: 0; }
  .hero-detail-button { width: 68px; height: 68px; border-width: 5px; }
  .discovery-section, .editorial-feature, .calculator-section, .approach-section { padding-block: 72px; }
  .section-heading h2 { font-size: 43px; }
  .filter-bar { grid-template-columns: 1fr; }
  .filter-bar .reset-button { grid-column: auto; }
  .results-toolbar { align-items: flex-start; flex-direction: column; }
  .view-switcher { width: 100%; }
  .view-switcher button { flex: 1; }
  .property-grid, .discovery-layout.is-grid-only .property-grid { grid-template-columns: 1fr; }
  .property-map { min-height: 470px; }
  .editorial-image { min-height: 470px; }
  .editorial-image::after { display: none; }
  .editorial-copy h2, .calculator-intro h2 { font-size: 45px; }
  .calculator-fields { grid-template-columns: 1fr; }
  .calculator-card { padding: 20px; }
  .repayment-result { padding: 21px; }
  .approach-grid { grid-template-columns: 1fr; }
  .approach-grid article { min-height: 200px; }
  .approach-grid h3 { margin-top: 38px; }
  .shortlist-tray { right: 74px; left: 10px; bottom: 10px; min-width: 0; padding-left: 12px; transform: none; }
  .shortlist-tray > div { min-width: 0; }
  .shortlist-tray button { margin-left: auto; font-size: 0; }
  .shortlist-tray button span { font-size: 16px; }
  .back-to-site { right: 10px; bottom: 10px; width: 54px; padding: 7px; }
  .back-to-site > span { width: 38px; height: 38px; }
  .back-to-site strong { display: none; }
  .toast-region { right: 10px; bottom: 73px; width: calc(100% - 20px); }
  .property-dialog, .compare-dialog { width: 100%; max-width: none; max-height: 100vh; margin: 0; }
  .dialog-gallery { min-height: 390px; }
  .dialog-main-image { min-height: 330px; }
  .dialog-content { padding: 27px 20px 35px; }
  .dialog-actions { flex-direction: column; }
  .compare-header { padding: 18px; }
  .compare-content { padding: 12px; }
}

@media (max-width: 400px) {
  .header-shell, .section-shell, .hero-shell { width: min(100% - 22px, 1380px); }
  .hero h1 { font-size: 47px; }
  .hero-lead { font-size: 15px; }
  .hero-visual { min-height: 390px; }
  .hero-caption { left: 8px; bottom: 0; right: 43px; padding: 14px; }
  .hero-caption strong { font-size: 19px; }
  .hero-detail-button { right: 3px; bottom: 23%; width: 62px; height: 62px; }
  .property-card__heading { display: grid; }
  .property-card__heading strong { white-space: normal; }
  .map-card { right: 8px; bottom: 8px; width: calc(100% - 16px); }
  .dialog-gallery { min-height: 350px; }
  .dialog-main-image { min-height: 292px; }
  .dialog-gallery-nav { grid-template-columns: repeat(6, minmax(42px,1fr)); overflow: auto; }
  .dialog-facts { grid-template-columns: 1fr; }
  .dialog-facts div:nth-child(odd) { border-right: 0; }
  .dialog-facts div:nth-child(even) { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
