/* ==========================================================================
   Developments CDS – main stylesheet
   Brand Guide 1.0: ~70% neutral, 20% navy, 10% bright colour. Montserrat.
   Spacious, white, minimal, image-led; subtle rounding, restrained shadows.
   ========================================================================== */

/* Fonts (self-hosted, GDPR-friendly) */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/montserrat-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-serif-display-latin-400-normal.woff2") format("woff2"); }

:root {
	--navy: #06283D;
	--navy-2: #0B3A57;
	--orange: #FF8A00;
	--green: #4CAF50;
	--blue: #007BD4;
	--yellow: #FFC107;
	--red: #E53935;
	--wa: #1FA855; --sky: #29B6F6;

	--ink: #06283D;
	--text: #22394B;
	--muted: #5F6E7A;
	--line: #E5E1DA;
	--line-2: #EFECE6;
	--bg: #FFFFFF;
	--warm: #FAF8F4;
	--warm-2: #F3EFE8;

	--spectrum: linear-gradient(90deg, var(--blue) 0 20%, var(--green) 20% 40%, var(--yellow) 40% 60%, var(--orange) 60% 80%, var(--red) 80% 100%);
	--flow: linear-gradient(90deg, var(--blue), var(--green), var(--yellow), var(--orange), var(--red));

	--font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--serif: "DM Serif Display", Georgia, serif;

	--r-sm: 6px;
	--r: 10px;
	--r-lg: 14px;
	--shadow-sm: 0 1px 2px rgba(6, 40, 61, .06), 0 2px 8px rgba(6, 40, 61, .05);
	--shadow: 0 6px 24px rgba(6, 40, 61, .10);
	--shadow-lg: 0 18px 50px rgba(6, 40, 61, .18);

	--container: 1280px;
	--gutter: 20px;
	--header-h: 68px;
	--mobile-bar-h: 64px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 78px; } }

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 56px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; padding-bottom: var(--mobile-bar-h); }
@media (min-width: 1024px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 1000; background: #fff; padding: 10px 14px; border-radius: var(--r-sm); box-shadow: var(--shadow); }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.muted { color: var(--muted); }
.fineprint { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 12px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow-layout { max-width: 820px; }
[hidden] { display: none !important; }

.bg-navy { background: var(--navy); } .bg-orange { background: var(--orange); } .bg-green { background: var(--green); }
.bg-blue { background: var(--blue); } .bg-yellow { background: var(--yellow); } .bg-red { background: var(--red); } .bg-grey { background: #9aa5ae; }

.spectrum { height: 4px; width: 120px; background: var(--spectrum); border-radius: 2px; margin: 0 0 18px; }

.demo-bar { background: var(--yellow); color: var(--navy); font-size: 13px; font-weight: 600; text-align: center; padding: 6px 12px; }
.demo-bar a { margin-left: 6px; }

/* --------------------------------------------------------------------------
   Buttons, tags, chips
   -------------------------------------------------------------------------- */
.btn { --b: var(--navy); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: var(--r-sm); border: 1.5px solid var(--b); background: var(--b); color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); white-space: nowrap; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn--outline { background: #fff; color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--light { background: rgba(255,255,255,.94); color: var(--navy); border-color: transparent; }
.btn--light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--whatsapp { --b: var(--wa); }
.btn--whatsapp:hover { background: #178c46; border-color: #178c46; }
.btn--ai { position: relative; background: var(--navy); border: 0; }
.btn--ai::before { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--flow); border-radius: 0 0 var(--r-sm) var(--r-sm); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 12.5px; }
.btn--xs { min-height: 32px; padding: 0 12px; font-size: 11.5px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--navy); letter-spacing: .02em; }
.link-arrow .icon { width: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--navy); color: #fff; }
.tag--yellow { background: var(--yellow); color: var(--navy); }
.tag--orange { background: var(--orange); color: #fff; }
.tag--blue { background: var(--blue); color: #fff; }
.tag--green { background: var(--green); color: #fff; }
.tag--red { background: var(--red); color: #fff; }
.tag--grey { background: #9aa5ae; }
.tag--light { background: rgba(255,255,255,.95); color: var(--navy); }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); margin-right: 8px; flex: none; }
.dot--yellow { background: var(--yellow); } .dot--orange { background: var(--orange); } .dot--blue { background: var(--blue); } .dot--green { background: var(--green); } .dot--red { background: var(--red); } .dot--grey { background: #9aa5ae; }

.chips { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .chips { flex-wrap: wrap; overflow: visible; } }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: 13.5px; color: var(--navy); text-decoration: none; white-space: nowrap; transition: border-color .2s, box-shadow .2s, background .2s; }
.chip .icon { width: 18px; height: 18px; }
.chip:hover, .chip.is-active { border-color: var(--navy); box-shadow: var(--shadow-sm); color: var(--navy); }
.chip.is-active { background: var(--navy); color: #fff; }
.chip--orange .icon { color: var(--orange); } .chip--green .icon { color: var(--green); } .chip--blue .icon { color: var(--blue); } .chip--yellow .icon { color: #e0a800; } .chip--navy .icon { color: var(--navy); }
.chips--sm .chip { height: 36px; font-size: 13px; padding: 0 14px; }

.pill { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 13px; color: var(--navy); cursor: pointer; white-space: nowrap; }
.pill.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; }

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow--light { color: rgba(255,255,255,.85); }
.eyebrow--red { color: var(--red); }

.data-label { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; vertical-align: middle; }
.data-label--estimate { background: #FFF3D6; color: #8a5a00; }
.data-label--projected { background: #FFE6E5; color: #a00500; }
.data-label--observed, .data-label--live { background: #E5F5EA; color: #23793a; }

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-2); }
.site-header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { flex: none; display: block; }
.brand img { width: 168px; height: auto; }
@media (min-width: 768px) { .brand img { width: 200px; } }
@media (min-width: 1280px) { .brand img { width: 220px; } }

.primary-nav { display: none; }
.nav-menu { list-style: none; margin: 0; padding: 0; }
.nav-menu a { text-decoration: none; font-weight: 600; font-size: 14px; color: var(--navy); white-space: nowrap; }
.nav-menu .current-menu-item > a, .nav-menu a:hover { color: var(--blue); }

@media (min-width: 1100px) {
	.primary-nav { display: block; flex: 1; }
	.nav-menu { display: flex; gap: 4px; justify-content: center; }
	.nav-menu > li { position: relative; }
	.nav-menu > li > a { display: block; padding: 10px 10px; font-size: 13.5px; letter-spacing: .01em; }
	.nav-menu > .current-menu-item > a { box-shadow: inset 0 -2px 0 var(--orange); }
	.nav-menu .sub-menu { position: absolute; left: 0; top: 100%; min-width: 220px; list-style: none; margin: 0; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease); }
	.nav-menu li:hover > .sub-menu, .nav-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.nav-menu .sub-menu a { display: block; padding: 8px 10px; border-radius: var(--r-sm); font-weight: 500; }
	.nav-menu .sub-menu a:hover { background: var(--warm); }
	.primary-nav__mobile-extra { display: none; }
}
@media (min-width: 1280px) { .nav-menu > li > a { padding: 10px 13px; font-size: 14px; } }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-action { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px; color: var(--navy); text-decoration: none; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.header-action__label { display: none; }
@media (min-width: 1520px) { .header-action__label { display: inline; } }
.saved-count { position: absolute; top: 0; left: 20px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--orange); color: #fff; font-size: 10.5px; display: grid; place-items: center; }
.header-wa { display: none; }
@media (min-width: 768px) { .header-wa { display: inline-flex; } }
.nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--navy); cursor: pointer; }
@media (min-width: 1100px) { .nav-toggle { display: none; } }

/* Mobile nav drawer */
@media (max-width: 1099px) {
	.primary-nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; display: block; background: #fff; padding: 12px var(--gutter) 120px; overflow-y: auto; opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
	body.nav-open .primary-nav { opacity: 1; transform: none; visibility: visible; transition: opacity .25s var(--ease), transform .25s var(--ease); }
	body.nav-open { overflow: hidden; }
	.nav-menu > li { border-bottom: 1px solid var(--line-2); }
	.nav-menu > li > a { display: block; padding: 16px 0; font-size: 18px; }
	.nav-menu .sub-menu { list-style: none; padding: 0 0 12px 12px; margin: 0; }
	.nav-menu .sub-menu a { display: block; padding: 6px 0; font-weight: 500; font-size: 15px; }
	.primary-nav__mobile-extra { display: grid; gap: 14px; margin-top: 24px; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 56px 0; }
.section--tight { padding: 28px 0; }
@media (min-width: 1024px) { .section { padding: 88px 0; } .section--tight { padding: 36px 0; } }
.section--warm { background: var(--warm); }
.section--navy { background: var(--navy); color: rgba(255,255,255,.86); }
.section--navy .section-title, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .eyebrow { color: rgba(255,255,255,.7); }
.section--navy .link-arrow { color: #fff; }
.section--navy .fineprint { color: rgba(255,255,255,.6); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-title { font-size: clamp(26px, 3.6vw, 40px); font-weight: 600; letter-spacing: -.015em; margin: 0; }
.section-title--sm { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 18px; }
.section-head .link-arrow { flex: none; }
@media (max-width: 599px) { .section-head { flex-direction: column; align-items: flex-start; } }

/* --------------------------------------------------------------------------
   Hero (homepage)
   -------------------------------------------------------------------------- */
.hero { position: relative; color: #fff; background: var(--navy); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,40,61,.55) 0%, rgba(6,40,61,.25) 45%, rgba(6,40,61,.70) 100%); }
.hero__inner { padding-top: 56px; padding-bottom: 32px; }
@media (min-width: 1024px) { .hero__inner { padding-top: 120px; padding-bottom: 56px; } }
.hero__title { color: #fff; font-size: clamp(32px, 6vw, 68px); font-weight: 700; line-height: 1.04; letter-spacing: -.02em; text-transform: uppercase; max-width: 15ch; margin-bottom: 18px; text-shadow: 0 2px 30px rgba(0,0,0,.18); }
.hero__sub { font-size: clamp(16px, 1.6vw, 20px); max-width: 46ch; color: rgba(255,255,255,.92); margin-bottom: 22px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: rgba(255,255,255,.9); margin: 0; }
.hero__stats strong { font-size: 18px; color: #fff; }
.hero__search { padding-bottom: 28px; }
@media (min-width: 1024px) { .hero__search { padding-bottom: 0; transform: translateY(50%); margin-bottom: -10px; position: relative; z-index: 2; } .hero + .section { padding-top: 140px; } }

.search-panel { background: #fff; color: var(--text); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 16px; }
@media (min-width: 768px) { .search-panel { padding: 20px; } }
.search-panel__foot { display: grid; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
@media (min-width: 900px) { .search-panel__foot { grid-template-columns: 1fr auto; align-items: center; } }

/* Structured search form */
.search { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.search__field { display: flex; flex-direction: column; gap: 4px; grid-column: span 2; }
.search__field--sm { grid-column: span 1; }
.search__field label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.search select, .filters select, .mapx__filters select, .field input, .field select, .field textarea {
	width: 100%; height: 48px; padding: 0 38px 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2306283D' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; font-size: 15px; font-weight: 500; color: var(--navy); cursor: pointer; transition: border-color .2s;
}
.field input, .field textarea { background-image: none; padding-right: 14px; cursor: text; }
.field textarea { height: auto; padding-top: 12px; resize: vertical; }
.search select:hover, .search select:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: none; }
.search__submit { grid-column: span 2; min-height: 52px; }
.search__submit span { display: inline; }
@media (min-width: 768px) {
	.search { grid-template-columns: repeat(6, 1fr); }
	.search__field { grid-column: span 2; }
	.search__field--sm { grid-column: span 1; }
	.search__submit { grid-column: span 2; }
}
@media (min-width: 1100px) {
	.search--hero { grid-template-columns: 1.4fr 1fr 1fr .8fr .8fr auto; align-items: end; }
	.search--hero .search__field, .search--hero .search__field--sm, .search--hero .search__submit { grid-column: auto; }
	.search--hero .search__submit { padding: 0 28px; height: 48px; min-height: 48px; }
}
.search--stack { grid-template-columns: 1fr 1fr; margin: 24px 0; }
.search--stack .search__field, .search--stack .search__submit { grid-column: span 2; }
.search--stack .search__field--sm { grid-column: span 1; }

/* AI search */
.ai-search { position: relative; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 4px 4px 12px; background: var(--warm); }
.ai-search__spark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: conic-gradient(from 200deg, var(--blue), var(--green), var(--yellow), var(--orange), var(--red), var(--blue)); color: #fff; flex: none; }
.ai-search__spark .icon { width: 16px; height: 16px; }
.ai-search input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; font-size: 14.5px; color: var(--navy); outline: none; }
.ai-search input::placeholder { color: #8796a2; }
.ai-search .btn { min-height: 42px; padding: 0 16px; font-size: 12px; }
@media (max-width: 599px) { .ai-search { flex-wrap: wrap; padding: 8px; } .ai-search input { flex-basis: calc(100% - 40px); } .ai-search .btn { width: 100%; } }
.search-panel__map { min-height: 52px; }
.ai-banner { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 12px 16px; border-radius: var(--r-sm); background: var(--warm); font-size: 14px; }
.ai-banner .icon { color: var(--orange); }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r); overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--warm-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.card__body { padding: 14px 4px 6px; }
.card__title { font-size: 19px; font-weight: 600; margin: 0 0 4px; }
.card__link { color: inherit; text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card__loc { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13.5px; margin: 0 0 8px; }
.card__loc .icon { width: 15px; height: 15px; color: var(--orange); }
.card__price { font-weight: 700; color: var(--navy); font-size: 17px; margin: 0 0 2px; }
.card__from { font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.card__meta { font-size: 13.5px; color: var(--text); margin: 0; }
.card__cta { margin-top: 12px; position: relative; z-index: 1; }

.save-btn { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 38px; min-width: 38px; padding: 0 10px; justify-content: center; border-radius: 19px; border: 0; background: rgba(255,255,255,.94); color: var(--navy); cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .2s; font-weight: 600; font-size: 13px; }
.save-btn:hover { transform: scale(1.06); }
.save-btn .icon { width: 19px; height: 19px; }
.save-btn[aria-pressed="true"] .icon { fill: var(--red); color: var(--red); }
.card__media .save-btn { position: absolute; top: 10px; right: 10px; padding: 0; width: 38px; }
.save-btn__label { display: inline; }

.card--hero .card__title { font-size: 26px; }
.card--compact { flex-direction: row; gap: 12px; padding: 10px; border: 1px solid var(--line-2); }
.card--compact .card__media { width: 132px; flex: none; aspect-ratio: 1; border-radius: var(--r-sm); }
.card--compact .card__tags { top: 6px; left: 6px; }
.card--compact .card__tags .tag { height: 20px; font-size: 9.5px; padding: 0 6px; }
.card--compact .card__tags .tag--light { display: none; }
.card--compact .card__media .save-btn { width: 30px; height: 30px; min-width: 30px; top: 6px; right: 6px; }
.card--compact .card__body { padding: 2px 0; }
.card--compact .card__title { font-size: 16px; }
.card--compact .card__price { font-size: 15px; }
.card--compact .card__meta { font-size: 12.5px; }
.card.is-highlight { box-shadow: 0 0 0 2px var(--orange), var(--shadow); }

.card-grid { display: grid; gap: 28px 22px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .card-grid--2 { grid-template-columns: repeat(2, 1fr); } }

.featured-grid { display: grid; gap: 28px 22px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .featured-grid { grid-template-columns: repeat(2, 1fr); } .featured-grid .card--hero { grid-column: span 2; } .featured-grid .card--hero .card__media { aspect-ratio: 16/8; } }
@media (min-width: 1100px) {
	.featured-grid { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; }
	.featured-grid .card--hero { grid-column: 1; grid-row: span 2; }
	.featured-grid .card--hero .card__media { aspect-ratio: auto; flex: 1; min-height: 420px; }
}

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 1024px) { .rail { grid-auto-columns: calc((100% - 66px) / 4); } }

.img-ph { width: 100%; height: 100%; background: var(--warm-2); }
.img-ph--brand { background: linear-gradient(135deg, #e8f3fb, #fdf1e3); position: relative; }
.img-ph--brand::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--spectrum); }

/* Location cards */
.loc-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .loc-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.loc-card { position: relative; display: block; aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; text-decoration: none; color: #fff; background: var(--navy); }
.loc-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.loc-card:hover img { transform: scale(1.05); }
.loc-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6,40,61,.78)); }
.loc-card__body { position: absolute; left: 16px; bottom: 14px; right: 16px; display: flex; flex-direction: column; }
.loc-card__name { font-size: clamp(18px, 2.2vw, 26px); font-weight: 600; letter-spacing: -.01em; }
.loc-card__count { font-size: 13px; opacity: .9; }
.loc-card:hover { color: #fff; }

/* Post cards */
.post-grid { display: grid; gap: 28px 22px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(4, 1fr); } .post-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.post-card__link { display: block; text-decoration: none; color: inherit; }
.post-card__media { aspect-ratio: 16/10; border-radius: var(--r); overflow: hidden; margin-bottom: 14px; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card__link:hover img { transform: scale(1.04); }
.post-card__title { font-size: 19px; margin: 0 0 6px; }
.post-card__excerpt { font-size: 14px; color: var(--muted); margin: 0; }
.post-card .eyebrow { margin-bottom: 6px; }

/* --------------------------------------------------------------------------
   Homepage specifics
   -------------------------------------------------------------------------- */
.map-feature { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .map-feature { grid-template-columns: 5fr 7fr; gap: 56px; } }
.legend { list-style: none; padding: 0; margin: 18px 0 24px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; font-weight: 500; }
.legend li { display: flex; align-items: center; }
.legend--float { position: absolute; left: 12px; bottom: 12px; z-index: 500; background: rgba(255,255,255,.95); padding: 8px 12px; border-radius: var(--r-sm); box-shadow: var(--shadow-sm); margin: 0; font-size: 12px; gap: 4px 12px; max-width: calc(100% - 24px); }

.invest-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .invest-grid { grid-template-columns: repeat(3, 1fr); } }
.invest-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); text-decoration: none; color: #fff; background: rgba(255,255,255,.04); transition: background .2s, border-color .2s; }
.invest-card:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); color: #fff; }
.invest-card__loc { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.invest-card__name { font-size: 22px; font-weight: 600; }
.invest-card__figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.invest-card__figs span { display: flex; flex-direction: column; }
.invest-card__figs strong { font-size: 17px; }
.invest-card__figs small { font-size: 11.5px; color: rgba(255,255,255,.65); }

.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 36px; }
@media (min-width: 900px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; padding: 20px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.stat__num { font-size: clamp(26px, 3.4vw, 42px); font-weight: 700; color: var(--navy); line-height: 1.05; letter-spacing: -.02em; }
.stat__label { font-size: 13px; color: var(--muted); }
.stat-row--compact { margin-bottom: 8px; }
.stat-row--compact .stat__num { font-size: clamp(22px, 2.6vw, 30px); }

.buyer-guides { display: grid; gap: 32px; }
@media (min-width: 900px) { .buyer-guides { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.guide-list { list-style: none; margin: 0; padding: 0; counter-reset: g; border-top: 1px solid var(--line); }
.guide-list li { counter-increment: g; border-bottom: 1px solid var(--line); }
.guide-list a { display: flex; align-items: center; gap: 18px; padding: 18px 4px; text-decoration: none; font-weight: 600; font-size: 17px; color: var(--navy); }
.guide-list a::before { content: counter(g, decimal-leading-zero); font-size: 13px; color: var(--orange); font-weight: 700; width: 24px; }
.guide-list a span { flex: 1; }
.guide-list a:hover { color: var(--blue); }

.cta-band { background: var(--warm); }
.cta-band__inner { display: grid; gap: 32px; }
@media (min-width: 1024px) { .cta-band__inner { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.cta-band__form { background: #fff; border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); }
@media (min-width: 768px) { .cta-band__form { padding: 32px; } }

/* --------------------------------------------------------------------------
   Page heads, breadcrumbs
   -------------------------------------------------------------------------- */
.page-head { padding: 24px 0 20px; }
@media (min-width: 1024px) { .page-head { padding: 36px 0 28px; } }
.page-head--navy { background: var(--navy); color: rgba(255,255,255,.88); padding-bottom: 48px; }
.page-head--navy .page-title { color: #fff; }
.page-head--navy .breadcrumbs a, .page-head--navy .breadcrumbs li { color: rgba(255,255,255,.7); }
.page-head__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.page-title { font-size: clamp(28px, 4.4vw, 52px); font-weight: 600; letter-spacing: -.02em; margin: 0 0 8px; }
.page-head__count { color: var(--muted); font-size: 15px; margin: 0; }
.page-intro { font-size: clamp(16px, 1.4vw, 18px); max-width: 70ch; color: var(--text); margin: 14px 0 18px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 4px; color: #b9c1c8; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy); }
.notice-inline { display: inline-block; background: #FFF3D6; color: #6b4600; padding: 6px 12px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; }

/* --------------------------------------------------------------------------
   Filters & results
   -------------------------------------------------------------------------- */
.filter-bar { position: sticky; top: var(--header-h); z-index: 50; background: #fff; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 10px 0; }
.filter-bar .container { display: flex; gap: 10px; align-items: center; }
.filters { display: flex; gap: 8px; align-items: flex-end; flex: 1; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filters::-webkit-scrollbar { display: none; }
.filters__f { display: flex; flex-direction: column; gap: 2px; min-width: 110px; flex: 1 1 0; max-width: 170px; }
.filters__f--sm { min-width: 90px; }
.filters__f label { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.filters select { height: 40px; font-size: 13.5px; padding-left: 12px; }
.filters__more { position: static; }
.filters__more > summary { list-style: none; height: 40px; }
.filters__more > summary::-webkit-details-marker { display: none; }
.filters__panel { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 6px); z-index: 60; display: grid; gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 22px; max-height: 70vh; overflow: auto; }
@media (min-width: 900px) { .filters__panel { grid-template-columns: repeat(3, 1fr); left: auto; right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); width: min(820px, calc(100vw - 2 * var(--gutter))); } }
.filters__panel fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; align-content: start; }
.filters__panel legend { font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; color: var(--navy); }
.filters__panel label:not(.check) { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 6px; }
@media (min-width: 900px) { .filters__apply { grid-column: 1 / -1; } }
.filters__reset { font-size: 13px; color: var(--muted); white-space: nowrap; background: none; border: 0; cursor: pointer; text-decoration: underline; }
.filters__f--sort { margin-left: auto; }
@media (max-width: 899px) { .filters__f--sort, .filters__f:not(.filters__f--sm):nth-of-type(n+3) { display: none; } }
@media (max-width: 599px) { .filters__f { min-width: 115px; } }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; line-height: 1.4; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--navy); flex: none; }
.check > span { display: inline; }
.check > span > .dot { vertical-align: middle; margin-top: -2px; }

.view-toggle { display: flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; flex: none; }
.view-toggle__btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; background: #fff; border: 0; font-size: 12.5px; font-weight: 600; color: var(--navy); text-decoration: none; cursor: pointer; text-transform: uppercase; letter-spacing: .04em; }
.view-toggle__btn + .view-toggle__btn { border-left: 1px solid var(--line); }
.view-toggle__btn.is-active { background: var(--navy); color: #fff; }
.view-toggle__btn .icon { width: 17px; height: 17px; }
@media (max-width: 767px) { .view-toggle__btn span { display: none; } .filter-bar .view-toggle__btn[data-view="split"] { display: none; } }

.results { padding: 28px 0 64px; }
.results__inner { display: grid; gap: 24px; }
.results__map { display: none; }
.results--map .results__list { display: none; }
.results--map .results__map { display: block; }
.results--map .map--results { height: calc(100vh - var(--header-h) - 70px - var(--mobile-bar-h)); min-height: 420px; }
@media (min-width: 1024px) {
	.results--split .results__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: none; padding-right: 0; }
	.results--split .results__map { display: block; position: sticky; top: calc(var(--header-h) + 62px); height: calc(100vh - var(--header-h) - 62px); }
	.results--split .map--results { height: 100%; border-radius: 0; }
	.results--split .card-grid { grid-template-columns: repeat(2, 1fr); }
	.results--map .map--results { height: calc(100vh - var(--header-h) - 62px); }
}
.pagination { display: flex; gap: 6px; justify-content: center; margin: 40px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.pagination .is-current, .pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.empty { text-align: center; padding: 48px 16px; background: var(--warm); border-radius: var(--r); }
.empty p:last-child { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.location-info { display: grid; gap: 40px; }
.location-info .section-title { margin-bottom: 20px; }
@media (min-width: 1024px) { .location-info { grid-template-columns: 7fr 5fr; gap: 64px; } }
.guide-teaser { display: flex; flex-direction: column; gap: 6px; margin-top: 24px; padding: 22px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--navy); transition: box-shadow .2s; }
.guide-teaser:hover { box-shadow: var(--shadow); color: var(--navy); }
.guide-teaser strong { font-size: 19px; }
.guide-teaser .eyebrow { margin: 0; color: var(--orange); }
.guide-teaser--wide { background: var(--warm); border: 0; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 600; color: var(--navy); list-style: none; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; font-weight: 400; color: var(--orange); }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { padding-bottom: 16px; margin: 0; }

/* --------------------------------------------------------------------------
   Maps
   -------------------------------------------------------------------------- */
.map { position: relative; width: 100%; height: 360px; border-radius: var(--r); overflow: hidden; background: #eef1f2; z-index: 0; }
@media (min-width: 768px) { .map { height: 460px; } }
.map--home { height: 380px; }
@media (min-width: 1024px) { .map--home { height: 520px; } }
.map--wide { height: 420px; }
.map--dev { height: 340px; margin-bottom: 16px; }
.map__placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--muted); font-size: 13px; background: linear-gradient(135deg, #eef3f6, #f6f3ee); }
.map__placeholder .icon { width: 32px; height: 32px; color: #a8b4bd; }
.map.is-ready .map__placeholder { display: none; }
.map .leaflet-container { font-family: var(--font); }

.pin { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--navy); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(6,40,61,.35); transition: transform .15s; }
.pin::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.pin--yellow { background: var(--yellow); } .pin--orange { background: var(--orange); } .pin--blue { background: var(--blue); } .pin--green { background: var(--green); } .pin--grey { background: #9aa5ae; }
.pin.is-active, .leaflet-marker-icon:hover .pin { transform: rotate(-45deg) scale(1.22); z-index: 1000; }
.pin-poi { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); color: var(--navy); font-size: 11px; font-weight: 700; box-shadow: var(--shadow-sm); }
.cluster { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(6,40,61,.35); }
.leaflet-popup-content-wrapper { border-radius: var(--r); padding: 0; overflow: hidden; box-shadow: var(--shadow-lg); }
.leaflet-popup-content { margin: 0; width: 260px !important; font-family: var(--font); }
.map-pop img { width: 100%; height: 130px; object-fit: cover; }
.leaflet-container .map-pop p { margin: 0 0 4px; }
.map-pop__body { padding: 12px 14px 14px; }
.map-pop__name { font-size: 16px; font-weight: 700; color: var(--navy); margin: 6px 0 2px; }
.map-pop__loc { font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }
.map-pop__price { font-weight: 700; color: var(--navy); margin: 0; }
.map-pop__meta { font-size: 12.5px; margin: 0 0 10px; }
.map-pop .btn { width: 100%; color: #fff; }
.map-pop .tag { height: 20px; font-size: 9.5px; }

/* Full map page */
.mapx { display: flex; flex-direction: column; height: calc(100vh - var(--header-h) - var(--mobile-bar-h)); height: calc(100dvh - var(--header-h) - var(--mobile-bar-h)); }
@media (min-width: 1024px) { .mapx { height: calc(100vh - var(--header-h)); } }
.route-map .site-footer { display: none; }
.mapx__top { display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter); border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.mapx__title { display: flex; align-items: baseline; gap: 10px; }
.mapx__h1 { font-size: 20px; margin: 0; }
.mapx__count { margin: 0; font-size: 13.5px; color: var(--muted); }
.mapx__tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; order: 3; width: 100%; }
@media (min-width: 1024px) { .mapx__tabs { order: 0; width: auto; justify-content: center; } }
.mapx__top .view-toggle { margin-left: auto; }
.mapx__body { position: relative; flex: 1; display: grid; min-height: 0; grid-template-columns: 1fr; }
.mapx__filters { display: none; overflow-y: auto; padding: 18px; border-right: 1px solid var(--line-2); background: #fff; }
.mapx__filters label:not(.check) { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 14px 0 4px; }
.mapx__filters select { height: 42px; font-size: 14px; }
.mapx__filters fieldset { border: 0; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.mapx__filters legend { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.mapx__filters-head { display: flex; justify-content: space-between; align-items: center; }
.mapx__apply { margin-top: 20px; }
.mapx__map { position: relative; min-height: 0; }
.mapx__map .map { height: 100%; border-radius: 0; }
.mapx__list { display: none; overflow-y: auto; padding: 14px; gap: 12px; align-content: start; grid-auto-rows: max-content; background: var(--warm); }
.mapx__empty { color: var(--muted); padding: 20px; }
.mapx.filters-open .mapx__filters { display: block; position: absolute; inset: 0; z-index: 600; }
.mapx[data-view="list"] .mapx__map { display: none; }
.mapx[data-view="list"] .mapx__list { display: grid; }
@media (min-width: 600px) { .mapx[data-view="list"] .mapx__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
	.mapx__filter-toggle, .mapx__apply { display: none; }
	.mapx__body { grid-template-columns: 260px 1fr; }
	.mapx__filters { display: block; }
	.mapx.filters-open .mapx__filters { position: static; }
	.mapx[data-view="split"] .mapx__body { grid-template-columns: 260px 1fr 400px; }
	.mapx[data-view="split"] .mapx__list { display: grid; border-left: 1px solid var(--line-2); }
	.mapx[data-view="list"] .mapx__list { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
}
@media (min-width: 1400px) { .mapx[data-view="split"] .mapx__body { grid-template-columns: 280px 1fr 460px; } }

/* --------------------------------------------------------------------------
   Development page
   -------------------------------------------------------------------------- */
.dev-hero { padding-top: 18px; }
.gallery-mosaic { position: relative; display: grid; gap: 8px; grid-template-columns: 1fr; border-radius: var(--r-lg); overflow: hidden; }
.gallery-mosaic__item { display: block; padding: 0; border: 0; background: var(--warm-2); cursor: zoom-in; overflow: hidden; aspect-ratio: 16/10; }
.gallery-mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-mosaic__item:hover img { transform: scale(1.03); }
.gallery-mosaic__item:nth-child(n+2) { display: none; }
.gallery-mosaic__all { position: absolute; right: 12px; bottom: 12px; }
@media (min-width: 768px) {
	.gallery-mosaic { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; }
	.gallery-mosaic__item { aspect-ratio: auto; }
	.gallery-mosaic__item:first-child { grid-row: span 2; }
	.gallery-mosaic__item:nth-child(n+2) { display: block; }
	.gallery-mosaic[data-count="1"] { grid-template-columns: 1fr; grid-template-rows: 460px; }
}
@media (min-width: 1280px) { .gallery-mosaic { grid-template-rows: 270px 270px; } }

.dev-hero__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 24px; }
.dev-hero__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.dev-hero__tags .tag--light { background: var(--warm-2); }
.dev-title { font-size: clamp(32px, 5vw, 60px); font-weight: 700; letter-spacing: -.025em; margin: 0 0 6px; }
.dev-loc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); margin: 0; }
.dev-loc .icon { color: var(--orange); width: 18px; }
.dev-loc a { color: var(--navy); font-weight: 600; text-decoration: none; }
.dev-hero__actions { display: flex; gap: 8px; flex: none; }
.dev-hero__actions .save-btn { box-shadow: none; border: 1px solid var(--line); }
@media (max-width: 599px) { .dev-hero__actions .save-btn__label { display: none; } .dev-hero__head { flex-direction: column-reverse; } .dev-hero__actions { align-self: flex-end; margin-bottom: -48px; } }

.keybar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 24px 0 18px; }
@media (min-width: 768px) { .keybar { grid-template-columns: repeat(5, 1fr); } }
.keybar > div { background: #fff; padding: 14px 16px; }
.keybar dt { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.keybar dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; color: var(--navy); }
.keybar > div:first-child dd { color: var(--navy); font-size: 20px; }
@media (max-width: 767px) { .keybar > div:first-child { grid-column: span 2; } }
.keybar--light { margin-top: 28px; }
.dev-hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 599px) { .dev-hero__ctas .btn { flex: 1 1 100%; } }

.subnav { position: sticky; top: var(--header-h); z-index: 40; background: #fff; border-bottom: 1px solid var(--line-2); margin-top: 32px; }
.subnav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a { padding: 14px 12px; white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 13.5px; color: var(--muted); border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.is-active { color: var(--navy); border-bottom-color: var(--orange); }

.dev-layout, .unit-layout, .analysis-layout { display: grid; gap: 32px; padding-top: 32px; padding-bottom: 56px; }
@media (min-width: 1024px) {
	.dev-layout, .unit-layout, .analysis-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; }
	.dev-aside { position: sticky; top: calc(var(--header-h) + 72px); align-self: start; }
}
.unit-layout, .analysis-layout { padding-top: 8px; }
@media (min-width: 1024px) { .unit-layout .dev-aside, .analysis-layout .dev-aside { top: calc(var(--header-h) + 24px); } }
.dev-section { padding: 36px 0; border-bottom: 1px solid var(--line-2); }
.dev-section:first-child { padding-top: 0; }
.dev-section:last-child { border-bottom: 0; }
.dev-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dev-h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 18px; }
.dev-h3 { font-size: 18px; margin: 28px 0 14px; }
.prose { font-size: 16.5px; line-height: 1.75; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 1.8em 0 .6em; }
.prose h3 { font-size: 20px; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--r); }
.prose blockquote { margin: 1.5em 0; padding: 0 0 0 20px; border-left: 3px solid var(--orange); font-size: 1.1em; color: var(--navy); }
.prose--editorial h2 { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
.prose .starter-note { background: #FFF3D6; color: #6b4600; padding: 8px 12px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line-2); }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts > div { padding: 14px 10px 14px 0; border-bottom: 1px solid var(--line-2); }
.facts dt { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts dt .icon { width: 18px; color: var(--blue); }
.facts dd { margin: 4px 0 0; font-weight: 600; color: var(--navy); }
.facts--unit { margin-bottom: 36px; }
@media (min-width: 768px) { .facts--unit { grid-template-columns: repeat(3, 1fr); } }

.unit-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.unit-filters__avail { margin-left: auto; font-size: 13.5px; }
.table-wrap { overflow-x: auto; }
.units-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.units-table th { text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.units-table td { padding: 12px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.units-table tr:hover td { background: var(--warm); }
.unit-ref { font-weight: 700; text-decoration: none; }
.unit-price { font-weight: 700; color: var(--navy); }
.unit-actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.unit-actions .save-btn { box-shadow: none; border: 1px solid var(--line); width: 32px; height: 32px; min-width: 32px; padding: 0; }
.unit-actions .save-btn .icon { width: 16px; height: 16px; }
.is-unavailable td { color: #9aa5ae; }
.pill-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; }
.pill-status--available { background: #E5F5EA; color: #23793a; }
.pill-status--reserved { background: #FFF3D6; color: #8a5a00; }
.pill-status--sold { background: #FDE7E6; color: #a00500; }
@media (max-width: 767px) {
	.units-table thead { display: none; }
	.units-table, .units-table tbody, .units-table tr, .units-table td { display: block; }
	.units-table tr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; }
	.units-table tr[hidden] { display: none; }
	.units-table td { border: 0; padding: 0; white-space: normal; font-size: 14px; }
	.units-table td::before { content: attr(data-label); display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
	.units-table td:first-child { grid-column: span 2; }
	.units-table td.unit-actions { grid-column: span 3; justify-content: stretch; }
	.units-table td.unit-actions .btn { flex: 1; }
}

.distances { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
@media (min-width: 600px) { .distances { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.distances li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.distances li span { flex: 1; }
.distances .icon { color: var(--blue); width: 18px; }

.amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .amenities { grid-template-columns: repeat(3, 1fr); } }
.amenities li { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r); font-weight: 500; font-size: 14.5px; }
.amenities .icon { width: 26px; height: 26px; color: var(--blue); }
.amenities li:nth-child(5n+2) .icon { color: var(--green); }
.amenities li:nth-child(5n+3) .icon { color: var(--orange); }

.gated { display: grid; grid-template-columns: auto 1fr; gap: 14px 18px; align-items: center; padding: 22px; border-radius: var(--r); background: var(--warm); }
.gated > .icon { width: 36px; height: 36px; color: var(--orange); }
.gated p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.gated .btn { grid-column: span 2; justify-self: start; }
@media (min-width: 768px) { .gated { grid-template-columns: auto 1fr auto; } .gated .btn { grid-column: auto; } }
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.plan { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.plan span { display: block; padding: 10px 12px; font-weight: 600; }

.spec-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 768px) { .spec-list { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.spec-list li { display: flex; gap: 10px; font-size: 15px; }
.spec-list .icon { color: var(--green); width: 20px; }

.payplan-bar { display: flex; height: 38px; border-radius: var(--r-sm); overflow: hidden; margin-bottom: 18px; }
.payplan-bar__seg { display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; min-width: 42px; }
.payplan-bar__seg.bg-yellow { color: var(--navy); }
.payplan { list-style: none; padding: 0; margin: 0; counter-reset: p; }
.payplan li { counter-increment: p; display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.payplan li span::before { content: counter(p) ". "; color: var(--muted); font-weight: 600; }
.payplan strong { color: var(--navy); }

.developer-card { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; }
.developer-card h3 { margin: 0 0 2px; font-size: 20px; }
.developer-card__logo { width: 72px; height: 72px; border-radius: var(--r); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; background: var(--warm); font-size: 28px; font-weight: 700; color: var(--navy); }
.developer-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.developer-card__logo--lg { width: 104px; height: 104px; font-size: 40px; }
.developer-head { display: flex; gap: 24px; align-items: center; }
@media (max-width: 599px) { .developer-head { flex-direction: column; align-items: flex-start; } }
.dev-directory { display: grid; gap: 16px; }
@media (min-width: 768px) { .dev-directory { grid-template-columns: repeat(2, 1fr); } }
.developer-tile { display: flex; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--text); transition: box-shadow .2s; }
.developer-tile:hover { box-shadow: var(--shadow); color: var(--text); }
.developer-tile__body { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.developer-tile strong { font-size: 18px; color: var(--navy); }

.invest-teaser { display: grid; gap: 20px; padding: 28px; border-radius: var(--r-lg); background: var(--navy); color: rgba(255,255,255,.86); }
.invest-teaser .dev-h2 { color: #fff; }
.invest-teaser__figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.invest-teaser__figs dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.invest-teaser__figs dd { margin: 4px 0 0; font-size: 22px; font-weight: 700; color: #fff; }
.invest-teaser .btn { justify-self: start; background: #fff; color: var(--navy); border-color: #fff; }

.enquiry-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); background: #fff; position: relative; overflow: hidden; }
.enquiry-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--spectrum); }
.enquiry-card__label { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0; }
.enquiry-card__price { font-size: 30px; font-weight: 700; color: var(--navy); margin: 2px 0 2px; letter-spacing: -.02em; }
.enquiry-card__meta { font-size: 13.5px; color: var(--muted); margin: 0 0 18px; }
.enquiry-card__btns { display: grid; gap: 10px; }
.enquiry-card__note { font-size: 12px; text-align: center; color: var(--muted); margin: 14px 0 0; }
@media (max-width: 1023px) { .dev-aside { display: none; } }

/* Unit page */
.page-head--unit { padding-bottom: 0; }
.unit-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.unit-head .save-btn { border: 1px solid var(--line); box-shadow: none; }
.unit-price-lg { display: flex; align-items: center; gap: 12px; font-size: 28px; font-weight: 700; color: var(--navy); }
.unit-visual { margin: 18px 0 32px; }
.unit-plan { position: relative; border-radius: var(--r-lg); overflow: hidden; margin: 0; background: var(--warm); }
.unit-plan img { width: 100%; max-height: 540px; object-fit: cover; }
.unit-plan figcaption { padding: 10px 14px; font-size: 13px; color: var(--muted); }
.unit-plan--gated img { filter: saturate(.7) brightness(.75); aspect-ratio: 16/9; }
.unit-plan__overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: #fff; text-align: center; padding: 16px; }
.unit-plan__overlay .icon { width: 40px; height: 40px; }
.unit-plan__overlay p { font-weight: 600; font-size: 18px; margin: 0; }
.unit-mini-list { list-style: none; padding: 0; margin: 0 0 20px; }
.unit-mini-list li { border-bottom: 1px solid var(--line-2); }
.unit-mini-list a { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; padding: 12px 0; text-decoration: none; color: var(--text); align-items: center; }
.unit-mini-list a:hover strong { color: var(--blue); }

/* Investment analysis */
.assumptions { padding: 22px 24px; border-radius: var(--r); background: #FFFBEF; border: 1px solid #F3E2B2; margin-bottom: 28px; }
.assumptions h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.assumptions h2 .icon { color: #c48a00; }
.assumptions ul { margin: 0; padding-left: 1.2em; font-size: 14.5px; }
.assumptions li { margin-bottom: 6px; }
.stat-row--analysis .stat__num { font-size: clamp(22px, 2.8vw, 32px); }
.simple-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.simple-table th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); }
.simple-table td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line-2); }
.simple-table--kv th { text-transform: none; letter-spacing: 0; font-size: 14.5px; font-weight: 500; color: var(--text); border-bottom-color: var(--line-2); }
.simple-table--kv td { text-align: right; font-weight: 600; color: var(--navy); }
.simple-table .total th, .simple-table .total td { font-weight: 700; color: var(--navy); border-top: 2px solid var(--navy); }
.simple-table .pos { color: #23793a; font-weight: 600; } .simple-table .neg { color: var(--red); font-weight: 600; }
@media (max-width: 767px) {
	.simple-table--invest thead { display: none; }
	.simple-table--invest tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
	.simple-table--invest td { border: 0; padding: 0; }
	.simple-table--invest td::before { content: attr(data-label); display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
	.simple-table--invest td:first-child { grid-column: span 2; font-size: 17px; }
}
.bars { display: grid; gap: 10px; }
.bars__row { display: grid; grid-template-columns: minmax(110px, 1.2fr) 3fr auto; gap: 12px; align-items: center; font-size: 14px; }
.bars__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars__label a { text-decoration: none; }
.bars__track { height: 12px; background: var(--line-2); border-radius: 6px; overflow: hidden; }
.bars__fill { display: block; height: 100%; border-radius: 6px; }
.bars__val { font-weight: 700; color: var(--navy); white-space: nowrap; font-size: 13.5px; }
.bars__val small { font-weight: 500; color: var(--muted); }
.bars__row--hl .bars__label { font-weight: 700; color: var(--navy); }
.pipeline { list-style: none; padding: 0; margin: 0 0 16px; }
.pipeline li { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.pipeline strong { margin-left: auto; color: var(--navy); }
.risk-list { padding-left: 1.2em; }
.risk-list li { margin-bottom: 8px; }
.risk-list li::marker { color: var(--red); }

/* Market intelligence */
.mi-grid { display: grid; gap: 22px; }
@media (min-width: 1024px) { .mi-grid { grid-template-columns: 1fr 1fr; } .mi-panel--wide { grid-column: span 2; } }
.mi-panel { background: #fff; border-radius: var(--r); padding: 24px; border: 1px solid var(--line-2); }
.stack-bar { display: flex; height: 22px; border-radius: 11px; overflow: hidden; margin-bottom: 14px; }

/* Locations index */
.loc-index { display: grid; gap: 32px 22px; }
@media (min-width: 700px) { .loc-index { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .loc-index { grid-template-columns: repeat(3, 1fr); } }
.loc-index__areas { list-style: none; padding: 0; margin: 14px 0 0; columns: 2; column-gap: 16px; font-size: 14px; }
.loc-index__areas li { break-inside: avoid; padding: 3px 0; }
.loc-index__areas a { text-decoration: none; }
.loc-index__areas .count { font-size: 11px; font-weight: 700; color: #fff; background: var(--orange); padding: 1px 6px; border-radius: 8px; }

/* Guides */
.guide-hero { position: relative; padding: 24px 0 32px; background: var(--warm); }
.guide-hero--image { color: #fff; background: var(--navy); padding: 48px 0 40px; isolation: isolate; min-height: 380px; display: flex; align-items: flex-end; }
@media (min-width: 1024px) { .guide-hero--image { min-height: 520px; padding-bottom: 56px; } }
.guide-hero__media { position: absolute; inset: 0; z-index: -1; }
.guide-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.guide-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,40,61,.25), rgba(6,40,61,.8)); }
.guide-hero--image .guide-title, .guide-hero--image .guide-lead { color: #fff; }
.guide-hero--image .breadcrumbs a, .guide-hero--image .breadcrumbs li { color: rgba(255,255,255,.75); }
.guide-title { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 6vw, 76px); letter-spacing: -.01em; line-height: 1.02; margin: 0 0 14px; }
.guide-lead { font-size: clamp(17px, 1.6vw, 21px); max-width: 60ch; margin-bottom: 10px; }
.guide-meta { font-size: 13px; opacity: .8; margin: 0; }
.guide-layout { display: grid; gap: 32px; padding-top: 40px; padding-bottom: 64px; }
@media (min-width: 1024px) { .guide-layout { grid-template-columns: 240px minmax(0, 760px); gap: 64px; } .toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.toc { font-size: 14px; }
.toc__title { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); }
.toc a:hover, .toc a.is-active { color: var(--navy); border-left-color: var(--orange); }
@media (max-width: 1023px) { .toc { background: var(--warm); padding: 16px; border-radius: var(--r); } }
.guide-live { margin-top: 48px; }
.guide-live h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); }
.guide-cta { margin-top: 56px; padding: 28px; border-radius: var(--r-lg); background: var(--warm); }
.guide-cta h2 { font-size: 24px; }
.guide-cta__btns { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }

/* Contact */
.contact-layout { display: grid; gap: 32px; padding-bottom: 64px; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 5fr 7fr; gap: 64px; } }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-line { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; text-decoration: none; font-size: 17px; }
.contact-form-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); }

/* Saved */
.saved-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.js-saved-devs { margin-bottom: 40px; }
.saved-searches { list-style: none; padding: 0; }
.saved-searches li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.compare-check { position: absolute; z-index: 3; bottom: 10px; left: 10px; background: rgba(255,255,255,.95); padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.compare-wrap { overflow-x: auto; margin: 0 0 40px; }
.compare-table { border-collapse: collapse; min-width: 600px; width: 100%; font-size: 14px; }
.compare-table th, .compare-table td { padding: 12px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.compare-table thead th { font-size: 16px; color: var(--navy); }
.compare-table tbody th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }

/* 404 */
.notfound { min-height: 60vh; }

/* --------------------------------------------------------------------------
   Forms & modal
   -------------------------------------------------------------------------- */
.lead-form { display: grid; gap: 14px; }
.form-grid { display: grid; gap: 12px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: span 2; } }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select { height: 48px; }
.field.has-error input, .field.has-error select { border-color: var(--red); }
.field__error { color: var(--red); font-size: 12.5px; margin-top: 4px; }
.lead-form__more { border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0 14px; }
.lead-form__more > summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 14px; color: var(--navy); }
.lead-form__more[open] { padding-bottom: 14px; }
.lead-form__consent { display: grid; gap: 8px; }
.lead-form__consent .check { font-size: 13px; color: var(--muted); }
.lead-form__error { color: var(--red); font-size: 14px; background: #FDE7E6; padding: 10px 12px; border-radius: var(--r-sm); }
.lead-form__success { text-align: center; padding: 24px 8px; }
.lead-form__tick { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: #E5F5EA; color: #23793a; }
.lead-form__tick .icon { width: 28px; height: 28px; }
.lead-form__success-msg { font-weight: 600; color: var(--navy); font-size: 17px; }
.lead-form__docs { display: grid; gap: 8px; }
.lead-form.is-done > *:not(.lead-form__success) { display: none !important; }
.lead-form.is-done .lead-form__success { display: block !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[data-show-for] { display: none; }
.lead-form[data-type="viewing"] [data-show-for~="viewing"],
.lead-form[data-type="enquiry"] [data-show-for~="enquiry"],
.lead-form[data-type="unit_enquiry"] [data-show-for~="unit_enquiry"],
.lead-form[data-type="contact"] [data-show-for~="contact"],
.lead-form[data-type="match"] [data-show-for~="match"] { display: block; }
.req-when { display: none; }
.lead-form[data-type="viewing"] .req-when, .lead-form[data-type="price_list"] .req-when { display: inline; }

.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: end center; }
@media (min-width: 768px) { .modal { place-items: center; } }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6,40,61,.55); backdrop-filter: blur(3px); animation: fade .2s; }
.modal__panel { position: relative; width: 100%; max-width: 620px; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 28px 22px calc(22px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); animation: up .3s var(--ease); }
@media (min-width: 768px) { .modal__panel { border-radius: var(--r-lg); padding: 36px; } }
.modal__panel::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--spectrum); }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--warm); display: grid; place-items: center; cursor: pointer; color: var(--navy); }
.modal__title { font-size: 26px; margin: 0 40px 6px 0; }
.modal__intro { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.modal .eyebrow { color: var(--orange); }
body.modal-open { overflow: hidden; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }

.lightbox { position: fixed; inset: 0; z-index: 1100; background: rgba(4, 20, 32, .96); display: grid; place-items: center; }
.lightbox__img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: var(--r-sm); }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 30px; cursor: pointer; }
.lightbox__nav--prev { left: 16px; } .lightbox__nav--next { right: 16px; }
.lightbox__count { position: absolute; bottom: 16px; color: rgba(255,255,255,.8); font-size: 13px; }

/* --------------------------------------------------------------------------
   Footer & mobile bar
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); padding: 64px 0 28px; font-size: 14.5px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__top { display: grid; gap: 40px; }
@media (min-width: 1024px) { .site-footer__top { grid-template-columns: 4fr 8fr; gap: 64px; } }
.site-footer__brand img { width: 230px; margin-bottom: 18px; }
.site-footer__claim { color: #fff; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; max-width: 28ch; }
.site-footer__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer__contact a { display: inline-flex; align-items: center; gap: 10px; }
.site-footer__contact .icon { width: 18px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (min-width: 768px) { .site-footer__cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .site-footer__cols { grid-template-columns: repeat(5, 1fr); gap: 24px; } }
.site-footer h3 { color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer__cols li { padding: 4px 0; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: rgba(255,255,255,.55); }
.site-footer__bottom p { margin: 0; max-width: 70ch; }
.legal-menu { display: flex; gap: 16px; }

.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 20px rgba(6,40,61,.08); }
@media (min-width: 1024px) { .mobile-bar { display: none; } }
.mobile-bar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--mobile-bar-h); background: #fff; border: 0; color: var(--navy); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.mobile-bar__item .icon { width: 22px; height: 22px; }
.mobile-bar__item--wa { color: var(--wa); }
.mobile-bar__item--primary { background: var(--navy); color: #fff; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--mobile-bar-h) + 16px); transform: translateX(-50%); z-index: 1200; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); animation: up .25s var(--ease); }
@media (min-width: 1024px) { .toast { bottom: 24px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .mobile-bar, .site-footer, .dev-aside, .subnav, .filter-bar { display: none !important; } }

/* Mobile overflow guards */
.dev-main, .analysis-main, .unit-main, .results__list { min-width: 0; }
@media (max-width: 599px) {
	.page-head__row { flex-wrap: wrap; align-items: flex-start; }
	.analysis-main .simple-table:not(.simple-table--kv) { display: block; overflow-x: auto; white-space: nowrap; }
	.bars__row { grid-template-columns: minmax(90px, 1fr) 2fr auto; gap: 8px; }
}
@media (max-width: 767px) {
	.units-table td:nth-child(2), .units-table td:nth-child(5), .units-table td:nth-child(6) { display: none; }
	.units-table td:first-child { grid-column: span 3; }
	.units-table td.unit-actions { grid-column: span 2; }
}
@media (max-width: 699px) {
	.featured-grid { grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
	.featured-grid > * { scroll-snap-align: start; }
	.featured-grid .card--hero .card__title { font-size: 19px; }
}
@media (max-width: 1023px) { .mapx .view-toggle__btn[data-view="split"] { display: none; } }

/* ==========================================================================
   Google Ads landing pages (/lp/{lang}/)
   ========================================================================== */
.lp-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-2); }
.lp-header__inner { display: flex; align-items: center; gap: 12px; height: 64px; }
.lp-header .brand img { width: 150px; }
@media (min-width: 768px) { .lp-header__inner { height: 74px; } .lp-header .brand img { width: 190px; } }
.lp-langs { display: flex; gap: 2px; margin-left: auto; }
.lp-langs a { display: grid; place-items: center; min-width: 34px; height: 32px; padding: 0 6px; border-radius: var(--r-sm); font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted); text-decoration: none; }
.lp-langs a:hover { color: var(--navy); background: var(--warm); }
.lp-langs a.is-active { background: var(--navy); color: #fff; }
.lp-header__wa { display: none; }
@media (min-width: 768px) { .lp-header__wa { display: inline-flex; } }

.lp-hero { position: relative; color: #fff; background: var(--navy); isolation: isolate; }
.lp-hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.lp-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.lp-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6,40,61,.82) 0%, rgba(6,40,61,.55) 50%, rgba(6,40,61,.35) 100%); }
.lp-hero__inner { display: grid; gap: 28px; padding-top: 32px; padding-bottom: 36px; }
@media (min-width: 1024px) { .lp-hero__inner { grid-template-columns: minmax(0, 1fr) 460px; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 64px; } }
.lp-hero__title { color: #fff; font-size: clamp(30px, 4.6vw, 54px); font-weight: 700; line-height: 1.06; letter-spacing: -.02em; text-transform: uppercase; margin-bottom: 16px; }
.lp-hero__sub { font-size: clamp(16px, 1.5vw, 19px); color: rgba(255,255,255,.92); max-width: 52ch; margin-bottom: 18px; }
.lp-bullets { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.lp-bullets li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 500; }
.lp-bullets .icon { width: 20px; height: 20px; color: var(--yellow); margin-top: 1px; }
@media (max-width: 599px) { .lp-bullets, .lp-hero .hero__stats { display: none; } }
.lp-form-card { position: relative; background: #fff; color: var(--text); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 24px 20px; overflow: hidden; }
@media (min-width: 768px) { .lp-form-card { padding: 30px; } }
.lp-form-card .spectrum { position: absolute; top: 0; left: 0; right: 0; width: auto; border-radius: 0; margin: 0; }
.lp-form-card__title { font-size: 22px; line-height: 1.2; margin: 6px 0 6px; }
.lp-form-card__sub { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.lp-form .form-grid { gap: 10px; }
.lp-form .field input, .lp-form .field select { height: 46px; }
.lp-form .lead-form__submit { min-height: 52px; }

.lp-center { text-align: center; margin-top: 32px; }
h2.lp-center { margin-bottom: 36px; }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
@media (min-width: 900px) { .lp-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.lp-step { background: #fff; border-radius: var(--r); padding: 26px; border: 1px solid var(--line-2); }
.lp-step h3 { font-size: 20px; margin: 14px 0 6px; }
.lp-step p { margin: 0; font-size: 15px; }
.lp-step__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--warm); color: var(--orange); }
.lp-step--1 .lp-step__icon { color: var(--blue); }
.lp-step--2 .lp-step__icon { color: var(--green); }
.lp-step__icon .icon { width: 24px; height: 24px; }
.lp-two { display: grid; gap: 40px; }
@media (min-width: 1024px) { .lp-two { grid-template-columns: 1fr 1fr; gap: 64px; } }
.lp-footer { background: var(--navy); color: rgba(255,255,255,.65); font-size: 13px; padding: 28px 0; }
.lp-footer a { color: rgba(255,255,255,.85); }
.lp-footer__inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.lp-footer p { margin: 0; }
.lp .mobile-bar { grid-template-columns: 1fr 1fr 1.4fr; }
.lp-hero__title, .hero__title, .page-title, .dev-title { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 599px) { .lp-hero__title { font-size: clamp(24px, 7.4vw, 30px); } }
.mobile-bar__item span { text-align: center; line-height: 1.2; padding: 0 4px; }
.lp-hero__inner > *, .cta-band__inner > *, .lp-two > *, .map-feature > *, .location-info > *, .buyer-guides > * { min-width: 0; }

/* ==========================================================================
   v1.1 – Developments CDS rebrand + sitemap v2 (Sotogrande, Lifestyle, Compare…)
   ========================================================================== */
.site-footer__sub { font-size: 13.5px; color: rgba(255,255,255,.7); max-width: 34ch; }
.site-footer__brand img { width: 240px; }

/* Dropdown with many items → two columns */
@media (min-width: 1100px) {
	.nav-menu .sub-menu--cols { columns: 2; column-gap: 8px; min-width: 460px; }
	.nav-menu .sub-menu--cols li { break-inside: avoid; }
	.nav-menu > li:nth-last-child(-n+3) > .sub-menu { left: auto; right: 0; }
	.nav-menu > li > a { padding-left: 8px; padding-right: 8px; }
}
@media (min-width: 1100px) and (max-width: 1279px) { .nav-menu > li > a { font-size: 12.5px; padding-left: 6px; padding-right: 6px; } .brand img { width: 150px; } }
@media (max-width: 1099px) { .nav-menu .sub-menu { display: none; } .nav-menu li.is-open > .sub-menu { display: block; } .nav-menu .menu-item-has-children > a { display: flex !important; justify-content: space-between; } .nav-menu .menu-item-has-children > a::after { content: "+"; color: var(--orange); font-weight: 400; } .nav-menu li.is-open > a::after { content: "–"; } }

/* Destination cards with Guide / Map / Developments links */
.loc-card-wrap { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.loc-card__links { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; font-weight: 600; }
.loc-card__links a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--muted); }
.loc-card__links a:hover { color: var(--navy); }
.loc-card__links .icon { width: 15px; height: 15px; color: var(--blue); }
@media (min-width: 1200px) { .loc-grid { grid-template-columns: repeat(5, 1fr); gap: 18px; } .loc-grid .loc-card__name { font-size: 20px; } }

/* Hub tiles (Invest, Resources, Account) */
.hub-grid, .account-tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .hub-grid { grid-template-columns: repeat(4, 1fr); } .account-tiles { grid-template-columns: repeat(2, 1fr); max-width: 760px; } }
.account-tiles { margin-top: 36px; }
.hub-tile { display: flex; align-items: center; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; text-decoration: none; color: var(--navy); font-weight: 600; font-size: 15px; text-align: left; cursor: pointer; transition: box-shadow .2s, border-color .2s; }
.hub-tile:hover { box-shadow: var(--shadow); border-color: var(--navy); color: var(--navy); }
.hub-tile .icon { width: 26px; height: 26px; color: var(--blue); }
.hub-tile:nth-child(4n+2) .icon { color: var(--green); } .hub-tile:nth-child(4n+3) .icon { color: var(--orange); } .hub-tile:nth-child(4n+4) .icon { color: var(--red); }

/* Lifestyle */
.lifestyle-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .lifestyle-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lifestyle-grid { grid-template-columns: repeat(3, 1fr); } }
.lifestyle-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--text); transition: box-shadow .2s; }
.lifestyle-card:hover { box-shadow: var(--shadow); color: var(--text); }
.lifestyle-card strong { font-size: 19px; color: var(--navy); }
.lifestyle-card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--warm); color: var(--blue); margin-bottom: 6px; }
.lifestyle-card:nth-child(3n+2) .lifestyle-card__icon { color: var(--green); } .lifestyle-card:nth-child(3n) .lifestyle-card__icon { color: var(--orange); }
.lifestyle-card__text { font-size: 14px; color: var(--muted); flex: 1; }
.lifestyle-card__count { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }

/* Construction status */
.stages { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: st; }
.stages li { position: relative; font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; padding-top: 22px; }
.stages li span { position: absolute; top: 4px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--line); z-index: 1; }
.stages li::before { content: ""; position: absolute; top: 10px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.stages li:first-child::before { display: none; }
.stages li.is-done span, .stages li.is-done::before, .stages li.is-current::before { background: var(--green); }
.stages li.is-current span { background: var(--blue); box-shadow: 0 0 0 4px rgba(0,123,212,.18); }
.stages li.is-current { color: var(--navy); }
.progress { height: 10px; border-radius: 5px; background: var(--line-2); overflow: hidden; margin: 6px 0 14px; }
.progress span { display: block; height: 100%; background: var(--spectrum); }

/* Video */
.video-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; background: var(--navy); cursor: pointer; }
.video-embed img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed__play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--navy); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-lg); }
.video-embed__play .icon { width: 40px; height: 40px; }

/* Gated docs with several buttons */
.gated { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.gated > div { flex: 1 1 260px; }
.gated .btn { grid-column: auto; }

/* ROI calculator */
.roi { display: grid; gap: 32px; padding-top: 32px; padding-bottom: 64px; }
.roi > * { min-width: 0; }
@media (min-width: 1024px) { .roi { grid-template-columns: 380px 1fr; gap: 56px; align-items: start; } .roi__out { position: sticky; top: calc(var(--header-h) + 24px); } }
.roi__inputs { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.roi__inputs .field label { font-size: 12px; }

/* Compare */
.compare-table thead img { width: 100%; max-width: 220px; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-sm); margin-bottom: 8px; }
.compare-table thead a { text-decoration: none; }
.compare-table td, .compare-table th { min-width: 160px; }
.page-head--navy .page-intro { color: rgba(255,255,255,.86); }
