/* ==========================================================================
   Kim Mullan, kimcan.ca : 2026 refresh (demo)
   Order: tokens, base, layout, components, sections, utilities.
   Components are generic (.btn, .card, .split, .quote) so new pages can
   reuse them without page-specific CSS.
   ========================================================================== */

/* Fonts (self-hosted, latin subset; variable fonts so one file covers all weights)
   ========================================================================== */
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/lora-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("../assets/fonts/lora-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("../assets/fonts/source-sans-3-normal.woff2") format("woff2"); }

/* Tokens
   ========================================================================== */
:root {
	/* Kim's blues (from her current theme) */
	--c-blue: #0d7ed7;          /* brand azure: bars, borders, large text */
	--c-blue-dark: #0a68b4;     /* buttons and links on white, AA with white text */
	--c-blue-deep: #08497f;     /* hover, gradient start */
	--c-blue-sky: #75b8ec;      /* accents on dark backgrounds */
	--c-blue-pale: #cce2f1;
	--c-blue-mist: #eff6fc;     /* light section background */
	--c-on-blue: #ffffff;
	--c-on-blue-muted: #dcebf9;

	/* Neutrals: cool, so the blues stay clean */
	--c-ink: #14181d;
	--c-text: #39414a;
	--c-muted: #56606b;         /* meta text, 6:1 on white and on mist */
	--c-paper: #ffffff;
	--c-line: #dbe3ec;

	/* Dark header and footer tones */
	--c-night: #161512;
	--c-night-2: #22201b;
	--c-night-line: #3a372f;
	--c-on-night: #f3f1ec;
	--c-on-night-muted: #cfcbc2;

	--c-sold: #a32a1e;

	/* Type */
	--f-serif: "Lora", Georgia, "Times New Roman", serif;
	--f-sans: "Source Sans 3", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--fs-small: 0.9375rem;                                   /* 15px */
	--fs-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);   /* 17 to 19px */
	--fs-lead: clamp(1.1875rem, 1.05rem + 0.6vw, 1.4375rem); /* 19 to 23px */
	--fs-h4: clamp(1.1875rem, 1.1rem + 0.35vw, 1.3125rem);
	--fs-h3: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
	--fs-h2: clamp(2rem, 1.45rem + 2.2vw, 3.25rem);
	--fs-h1: clamp(2.5rem, 1.6rem + 3.4vw, 4.5rem);
	--fs-display: clamp(2.75rem, 2rem + 3vw, 4.5rem);

	/* Space: one scale for everything; sections get the big end */
	--s-1: 0.5rem;
	--s-2: 0.75rem;
	--s-3: 1rem;
	--s-4: 1.5rem;
	--s-5: 2rem;
	--s-6: 3rem;
	--s-7: 4rem;
	--s-section: clamp(5rem, 3.5rem + 6vw, 9rem);
	--s-gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);

	--w-page: 80rem;
	--w-text: 40rem;
	--radius: 4px;
	--ease: 180ms ease;
}

/* Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
	margin: 0;
	background: var(--c-paper);
	color: var(--c-text);
	font: 400 var(--fs-body)/1.65 var(--f-sans);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	margin: 0 0 var(--s-3);
	color: var(--c-ink);
	font-family: var(--f-serif);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.05; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0 0 var(--s-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

img { display: block; max-width: 100%; height: auto; }

a { color: var(--c-blue-dark); text-decoration-color: var(--c-blue); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-blue-deep); }

[id] { scroll-margin-top: 7rem; } /* clear the sticky header on anchor jumps */

:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 3px; }

:where(ul, ol)[role="list"] { margin: 0; padding: 0; list-style: none; } /* :where keeps this from overriding component spacing */

[hidden] { display: none !important; }

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute; left: var(--s-3); top: -100px; z-index: 100;
	padding: var(--s-2) var(--s-4);
	background: var(--c-paper); color: var(--c-ink);
	font-weight: 600;
}
.skip-link:focus { top: var(--s-3); }

/* Layout
   ========================================================================== */
.container {
	width: 100%;
	max-width: var(--w-page);
	margin-inline: auto;
	padding-inline: var(--s-gutter);
}

.section { padding-block: var(--s-section); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.section--tint { background: var(--c-blue-mist); }
.section--blue {
	background: linear-gradient(115deg, var(--c-blue-deep) 0%, var(--c-blue-dark) 100%);
	color: var(--c-on-blue-muted);
}
.section--night { background: var(--c-night); color: var(--c-on-night-muted); }
:is(.section--blue, .section--night) :is(h2, h3, h4) { color: var(--c-on-blue); }

/* Section heading row: title on the left, a "view all" link on the right.
   The short blue bar above the title is Kim's accent rule from the old site. */
.section-head {
	display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
	gap: var(--s-3) var(--s-5);
	margin-bottom: var(--s-6);
}
.section-head h2 { margin: 0; }
.section-head p { max-width: var(--w-text); margin: var(--s-3) 0 0; color: var(--c-muted); }
.rule-top::before {
	content: ""; display: block;
	width: 4rem; height: 4px; margin-bottom: var(--s-4);
	background: var(--c-blue);
}

.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--c-text); }
.measure { max-width: var(--w-text); }

/* Auto grid: cards wrap on their own, no breakpoints needed */
.grid {
	display: grid;
	gap: var(--s-6) var(--s-5);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}

/* Two columns: media and text. --reverse flips them on wide screens */
.split {
	display: grid;
	gap: var(--s-6);
	align-items: center;
}
@media (min-width: 60em) {
	.split { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
	.split--wide-media { grid-template-columns: 7fr 5fr; }
	.split--reverse > :first-child { order: 2; }
}
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Components
   ========================================================================== */

/* Buttons: blue by default; --ghost outlined; --light / --ghost-light for dark or blue backgrounds */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
	min-height: 48px;
	padding: 0.625rem 1.5rem;
	border: 1px solid var(--c-blue-dark);
	border-radius: var(--radius);
	background: var(--c-blue-dark);
	color: var(--c-on-blue);
	font: 600 1rem/1.2 var(--f-sans);
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.btn:hover { background: var(--c-blue-deep); border-color: var(--c-blue-deep); color: var(--c-on-blue); }
.btn--ghost { background: transparent; color: var(--c-blue-dark); }
.btn--ghost:hover { background: var(--c-blue-dark); border-color: var(--c-blue-dark); color: var(--c-on-blue); }
.btn--light { background: var(--c-paper); border-color: var(--c-paper); color: var(--c-blue-deep); }
.btn--light:hover { background: var(--c-blue-pale); border-color: var(--c-blue-pale); color: var(--c-blue-deep); }
.btn--ghost-light { background: transparent; border-color: rgba(255, 255, 255, 0.85); color: var(--c-on-blue); }
.btn--ghost-light:hover { background: var(--c-paper); border-color: var(--c-paper); color: var(--c-blue-deep); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }

/* Text link with an arrow, for "view all" style links */
.link-more {
	display: inline-flex; align-items: center; gap: var(--s-1);
	min-height: 44px;
	color: var(--c-blue-dark);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid var(--c-blue);
}
.link-more::after { content: "\2192"; transition: transform var(--ease); }
.link-more:hover::after { transform: translateX(3px); }

/* Card: used for listings and blog posts */
.grid > li { display: flex; }
.card { display: flex; flex-direction: column; flex: 1; position: relative; }
.card__media { position: relative; overflow: hidden; margin-bottom: var(--s-4); background: var(--c-blue-mist); }
.card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 600ms ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__title { margin-bottom: var(--s-2); font-size: var(--fs-h4); }
.card__title a { color: var(--c-ink); text-decoration: none; }
.card:hover .card__title a { color: var(--c-blue-dark); }
/* The title link covers the whole card so the card is one tap target */
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__meta { margin: 0 0 var(--s-2); color: var(--c-muted); font-size: var(--fs-small); }
.card__text { color: var(--c-text); }

/* Status label on a listing photo */
.tag {
	position: absolute; left: 0; top: var(--s-4);
	padding: 0.4375rem 0.875rem;
	background: var(--c-blue-dark);
	color: var(--c-on-blue);
	font: 700 0.8125rem/1 var(--f-sans);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.tag--sold { background: var(--c-sold); }

/* Listing specifics */
.listing__price {
	margin: 0 0 var(--s-1);
	color: var(--c-blue-dark);
	font: 500 var(--fs-h3)/1.2 var(--f-serif);
}
.listing__address { margin: 0 0 var(--s-4); color: var(--c-muted); font-size: var(--fs-small); letter-spacing: 0.02em; }
.facts {
	display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4);
	margin: auto 0 0; padding: var(--s-3) 0 0;
	border-top: 1px solid var(--c-line);
	font-size: var(--fs-small); color: var(--c-muted);
}
.facts div { display: flex; gap: 0.3em; }
.facts dt { order: 2; }
.facts dd { margin: 0; color: var(--c-ink); font-weight: 600; }

/* Pull quote */
.quote { margin: 0; }
.quote p {
	color: var(--c-ink);
	font: italic 400 var(--fs-h3)/1.4 var(--f-serif);
}
.quote--large p { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem); line-height: 1.25; }
.quote footer { margin-top: var(--s-4); color: var(--c-muted); font-size: var(--fs-small); }
.quote footer strong { display: block; color: var(--c-ink); font-size: 1rem; }
.section--blue .quote p, .section--blue .quote footer strong { color: var(--c-on-blue); }
.section--blue .quote footer { color: var(--c-on-blue-muted); }

/* Gold text from Kim's logo, with a slow light sweep every few seconds.
   Uses the lighter half of the logo gold so it reads on dark and on blue. */
.gold-text { color: #e0c57a; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.gold-text {
		background: linear-gradient(100deg, #d7bf78 0%, #e6cc81 38%, #fff8e4 50%, #e6cc81 62%, #d7bf78 100%);
		background-size: 300% 100%;
		background-position: 100% 0;
		-webkit-background-clip: text; background-clip: text;
		color: transparent; -webkit-text-fill-color: transparent;
		animation: gold-shimmer 7s ease-in-out infinite;
	}
}
@keyframes gold-shimmer {
	0%, 15% { background-position: 100% 0; }
	55%, 100% { background-position: 0 0; }
}

/* Sections
   ========================================================================== */

/* Top utility bar */
.topbar { background: var(--c-night); color: var(--c-on-night-muted); font-size: 1rem; border-top: 3px solid #d7bf78; border-image: linear-gradient(90deg, #c8ab65, #e6cc81 50%, #c8ab65) 1; } /* logo gold */
.topbar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-1) var(--s-5); min-height: 48px; padding-block: var(--s-1); }
.topbar__accolade { color: var(--c-on-night); }
.topbar__accolade strong { font-weight: 700; }
.topbar__right { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-4); }
.topbar a { color: var(--c-on-night); text-decoration: none; }
.topbar a:hover { color: var(--c-blue-sky); }
.topbar__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-4); }
.social { display: flex; align-items: center; gap: 0; }
.topbar__contact span { color: var(--c-on-night-muted); }
@media (max-width: 39.99em) {
	.topbar { font-size: var(--fs-small); }
	.topbar .social { display: none; }
	.topbar__years { display: none; } /* phones: just "14 Years", the full list is in the awards band */
}

.social a { display: inline-grid; place-items: center; min-width: 40px; min-height: 44px; }
.social svg { width: 20px; height: 20px; fill: currentColor; }

/* Header and primary nav */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-night-2); border-bottom: 1px solid #000; }
.site-header .container { display: flex; align-items: center; gap: var(--s-5); min-height: 88px; }
.site-header__logo img { width: 230px; }
.site-header__brokerage { flex: none; margin: 0; }

/* Sutton brokerage lockup: official wordmark plus the brokerage name as live text */
.broker {
	display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
	color: var(--c-on-night);
	font: 600 0.8125rem/1.3 var(--f-sans);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.broker__mark { width: 92px; height: 25px; margin-bottom: 4px; fill: #fff; }
.broker__sub { color: var(--c-blue-sky); }
.broker--full { margin-top: var(--s-5); font-size: 0.875rem; }
/* Header version: smaller (set after .broker so it wins) */
.broker.site-header__brokerage { gap: 1px; font-size: 0.6875rem; line-height: 1.25; letter-spacing: 0.04em; }
.site-header__brokerage .broker__mark { width: 60px; height: 17px; margin-bottom: 2px; }
.broker--full .broker__mark { width: 120px; height: 33px; }
.site-nav { margin-left: auto; }

.nav-toggle {
	display: none;
	margin-left: auto;
	min-width: 48px; min-height: 48px;
	padding: 0 var(--s-3);
	border: 1px solid var(--c-on-night-muted); border-radius: var(--radius);
	background: transparent; color: var(--c-on-night);
	font: 600 1rem var(--f-sans);
	cursor: pointer;
}

.site-nav ul { display: flex; gap: 0 var(--s-1); }
.site-nav a {
	display: flex; align-items: center;
	min-height: 48px;
	padding: 0 var(--s-2);
	color: var(--c-on-night);
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--c-blue-sky); border-bottom-color: var(--c-blue-sky); }

@media (max-width: 79.99em) {
	.site-header .container { flex-wrap: wrap; min-height: 76px; gap: 0 var(--s-3); }
	.site-header__logo img { width: 190px; }
	.site-header__brokerage { display: none; }
	.nav-toggle { display: inline-flex; align-items: center; }
	.site-nav { flex-basis: 100%; display: none; margin-left: 0; padding-bottom: var(--s-4); }
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; }
	.site-nav a { border-bottom: 1px solid var(--c-night-line); font-size: 1.0625rem; }
}
/* Without JavaScript the menu just shows */
.no-js .site-nav { display: block; }
.no-js .nav-toggle { display: none; }

/* Hero: full width photo with the headline over a navy shade.
   Phones: shade from the bottom. Desktop: shade from the left, text left. */
.hero {
	position: relative;
	display: flex; align-items: flex-end;
	min-height: clamp(36rem, 82vh, 50rem);
	background: var(--c-blue-deep);
	color: var(--c-on-blue);
	isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img {
	width: 100%; height: 100%; object-fit: cover; object-position: 62% 70%;
	transform-origin: 65% 55%;
	animation: hero-drift 24s ease-in-out infinite alternate; /* slow pan and zoom */
	will-change: transform;
}
@keyframes hero-drift {
	from { transform: scale(1) translate3d(0, 0, 0); }
	to   { transform: scale(1.14) translate3d(-2.5%, -1.5%, 0); }
}
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(0deg, rgba(5, 26, 48, 0.94) 0%, rgba(5, 26, 48, 0.72) 50%, rgba(5, 26, 48, 0.15) 100%);
}
.hero .container { padding-block: var(--s-7) var(--s-6); }
/* Signature byline under the buttons; the headshot links to the About section */
.hero__byline {
	display: flex; align-items: center; gap: var(--s-3);
	margin-top: var(--s-5); padding-top: var(--s-4);
	border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.hero__byline-photo { flex: none; border-radius: 50%; }
.hero__byline img {
	width: 64px; height: 64px; border-radius: 50%; border: 2px solid #fff; object-fit: cover;
	transition: border-color var(--ease), transform var(--ease);
}
.hero__byline-photo:hover img { border-color: var(--c-blue-sky); transform: scale(1.06); }
.hero__byline p { margin: 0; color: var(--c-on-blue-muted); font-size: var(--fs-small); line-height: 1.4; }
.hero__byline strong { display: block; color: #fff; font-size: 1.0625rem; }
.hero__text { max-width: 40rem; }
.hero h1 { margin-bottom: var(--s-4); color: var(--c-on-blue); }
.hero h1 span { display: block; color: var(--c-blue-sky); }
.hero .lead { color: var(--c-on-blue-muted); }
@media (min-width: 60em) {
	.hero { align-items: center; }
	.hero::before {
		background: linear-gradient(90deg, rgba(5, 26, 48, 0.84) 0%, rgba(5, 26, 48, 0.66) 35%, rgba(5, 26, 48, 0.12) 65%, rgba(5, 26, 48, 0) 100%);
	}
	.hero__media img { object-position: 70% 60%; }
	.hero .container { padding-block: var(--s-section); }
}

/* Accolades band: the top producer headline, then a row of big numbers */
.accolades__lead > * { max-width: 52rem; }
.accolades__lead { margin-bottom: var(--s-6); padding-bottom: var(--s-6); border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.accolades__lead h2 { margin-bottom: var(--s-3); }
.section--blue .lead { color: var(--c-on-blue-muted); }

/* Credentials: a row of big numbers with hairline dividers */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.stats > div {
	display: flex; flex-direction: column-reverse; justify-content: start; /* number above its label */
	padding: var(--s-5) var(--s-5) var(--s-5) 0;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.stats > div:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 60em) {
	.stats > div { padding: 0 var(--s-5); border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.25); }
	.stats > div:first-child { padding-left: 0; border-left: 0; }
}
.stats dt { color: var(--c-on-blue-muted); font-size: var(--fs-small); }
.stats dd { display: flex; align-items: center; gap: var(--s-4); min-height: 1.4em; /* same height in every column so the numbers line up */ margin: 0 0 var(--s-2); color: var(--c-on-blue); font: 500 var(--fs-display)/1 var(--f-serif); }
.stats dd img { width: auto; height: 1.4em; }
.stats dd .fa-thin { font-size: 0.85em; } /* team icon (Font Awesome Thin) */

/* Spotlight listing on dark */
.spotlight__head { max-width: 48rem; margin: 0 auto var(--s-6); text-align: center; }
.spotlight__head .rule-top::before { margin-inline: auto; }
.spotlight__head h2 { margin-bottom: var(--s-2); }
.spotlight__head p { color: var(--c-on-night-muted); font-size: var(--fs-lead); }
.spotlight__video { max-width: 68rem; margin: 0 auto; }
.spotlight__video video { display: block; width: 100%; height: auto; aspect-ratio: 1224 / 768; background: #000; }
.spotlight__video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.yt-facade { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; }
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.yt-facade__play {
	position: absolute; inset: 0; display: grid; place-items: center;
	width: 100%; padding: 0; border: 0; background: rgba(0, 0, 0, 0.15); cursor: pointer;
	transition: background var(--ease);
}
.yt-facade__play svg { width: 72px; height: auto; fill: #212121; opacity: 0.85; transition: fill var(--ease), opacity var(--ease); }
.yt-facade__play:hover { background: rgba(0, 0, 0, 0.05); }
.yt-facade__play:hover svg, .yt-facade__play:focus-visible svg { fill: #f00; opacity: 1; }
.spotlight__video [hidden] { display: none; }

/* Review only: YouTube / AI video switch above the estate video */
.video-compare { display: flex; justify-content: center; gap: var(--s-1); margin: 0 auto var(--s-4); }
.video-compare button {
	min-height: 44px; padding: 0 var(--s-4);
	border: 1px solid var(--c-night-line); border-radius: var(--radius);
	background: transparent; color: var(--c-on-night-muted);
	font: 600 0.9375rem var(--f-sans);
	cursor: pointer;
}
.video-compare button:hover { color: var(--c-on-night); border-color: var(--c-on-night-muted); }
.video-compare button[aria-pressed="true"] { background: var(--c-blue-dark); border-color: var(--c-blue-dark); color: #fff; }
.spotlight__info { display: grid; gap: var(--s-5) var(--s-7); max-width: 68rem; margin: var(--s-6) auto 0; }
@media (min-width: 60em) { .spotlight__info { grid-template-columns: 3fr 2fr; align-items: start; } }
.spotlight__price { margin: 0; color: var(--c-blue-sky); font: 500 var(--fs-h2)/1.1 var(--f-serif); }
.spotlight__actions .btn-row { margin: var(--s-4) 0 var(--s-3); }
.spotlight .link-more { color: var(--c-on-night); border-color: var(--c-blue-sky); }
.spotlight .facts { border-color: var(--c-night-line); color: var(--c-on-night-muted); }
.spotlight .facts dd { color: var(--c-on-night); }
.spotlight .btn:not(.btn--ghost-light) { background: var(--c-blue-dark); border-color: var(--c-blue-dark); } /* AA contrast with white text */
.spotlight .btn:not(.btn--ghost-light):hover { background: var(--c-blue-sky); border-color: var(--c-blue-sky); color: var(--c-ink); }

/* About Kim: portrait with an offset blue frame */
.about { position: relative; z-index: 0; }
.about__portrait { position: relative; width: 100%; max-width: 26rem; justify-self: center; } /* AI upscaled from the 240px original; swap in the photographer's file if we get it */
.about__portrait img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.about__portrait::before {
	--frame: clamp(0.75rem, 0.25rem + 2vw, 2rem);
	content: ""; position: absolute; inset: var(--frame) calc(var(--frame) * -1) calc(var(--frame) * -1) var(--frame);
	background: var(--c-blue-pale); z-index: -1;
}
/* Review only: before / after toggle on the portrait */
.photo-compare {
	position: absolute; left: var(--s-3); bottom: var(--s-3);
	min-height: 44px; padding: 0 var(--s-3);
	border: 0; border-radius: var(--radius);
	background: rgba(20, 24, 29, 0.85); color: #fff;
	font: 600 0.9375rem var(--f-sans);
	cursor: pointer;
}
.photo-compare:hover { background: var(--c-blue-dark); }
.photo-compare[aria-pressed="true"] { background: var(--c-blue-dark); }

.signature { width: 140px; margin: var(--s-5) 0 0; }

/* Buy / sell panels */
.paths { display: grid; gap: var(--s-6) var(--s-5); }
@media (min-width: 48em) { .paths { grid-template-columns: 1fr 1fr; } }
.path { background: var(--c-paper); border-top: 4px solid var(--c-blue); }
.path img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.path__body { padding: var(--s-5); }
.path ul { margin: 0 0 var(--s-4); padding-left: 1.2em; }
.path li { margin-bottom: var(--s-1); }
.path li::marker { color: var(--c-blue); }

/* Testimonials */
.testimonials { display: grid; gap: var(--s-7); }
@media (min-width: 60em) {
	.testimonials { grid-template-columns: 3fr 2fr; gap: var(--s-7) var(--s-section); align-items: start; }
	.testimonials__more { display: grid; gap: var(--s-6); padding-top: var(--s-3); }
}
.testimonials__more .quote { padding-top: var(--s-5); border-top: 1px solid rgba(255, 255, 255, 0.3); }
.testimonials__more .quote:first-child { padding-top: 0; border-top: 0; }
.quote-mark { display: block; height: 0.6em; color: var(--c-blue-sky); font: 400 6rem/1 var(--f-serif); }
.section--blue .link-more { color: var(--c-on-blue); border-color: var(--c-blue-sky); }

/* Instagram: one quiet row of her latest posts, no counts or profile header */
.instagram__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-1); }
@media (min-width: 60em) { .instagram__grid { grid-template-columns: repeat(6, 1fr); gap: var(--s-2); } }
.instagram__grid a { display: block; overflow: hidden; background: var(--c-line); }
.instagram__grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 500ms ease, opacity var(--ease); }
.instagram__grid a:hover img { transform: scale(1.04); opacity: 0.9; }
.btn__icon { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* Contact band */
.cta { text-align: center; }
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta p { max-width: var(--w-text); margin-inline: auto; }
.cta .btn-row { justify-content: center; }
.cta .rule-top::before { margin-inline: auto; }

/* Footer */
.site-footer { background: var(--c-night); color: var(--c-on-night-muted); font-size: 1rem; border-top: 4px solid var(--c-blue); }
.site-footer a { color: var(--c-on-night); text-decoration: none; }
.site-footer a:hover { color: var(--c-blue-sky); text-decoration: underline; }
.site-footer__main {
	display: grid; gap: var(--s-6);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	padding-block: var(--s-7);
}
.site-footer h2 {
	margin-bottom: var(--s-4);
	color: var(--c-blue-sky);
	font: 600 1rem/1.3 var(--f-sans);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.site-footer address { font-style: normal; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 40px; }
.site-footer__logo { width: 260px; margin-bottom: var(--s-4); }
.site-footer__legal {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-5);
	padding-block: var(--s-5);
	border-top: 1px solid var(--c-night-line);
	font-size: var(--fs-small);
}
.site-footer__legal p a { text-decoration: underline; text-underline-offset: 0.2em; } /* not colour alone */
.site-footer__legal ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-4); }
.footer-link {
	min-height: 40px; padding: 0; border: 0; background: none;
	color: var(--c-on-night); font: inherit; cursor: pointer;
}
.footer-link:hover { color: var(--c-blue-sky); text-decoration: underline; }
.site-footer .social { margin-top: var(--s-4); margin-left: -10px; }

/* Cookie consent (js/cookie-consent.js)
   ========================================================================== */
.cc-banner {
	position: fixed; z-index: 90;
	left: var(--s-3); right: var(--s-3); bottom: var(--s-3);
	max-width: 26rem;
	padding: var(--s-5);
	background: var(--c-paper);
	color: var(--c-text);
	font-size: 1rem;
	border-top: 4px solid var(--c-blue);
	border-radius: 6px;
	box-shadow: 0 20px 60px rgba(10, 20, 35, 0.3), 0 2px 8px rgba(10, 20, 35, 0.12);
	animation: cc-in 300ms ease-out;
}
@media (min-width: 40em) { .cc-banner { left: var(--s-5); bottom: var(--s-5); } }
@keyframes cc-in { from { opacity: 0; transform: translateY(12px); } }
.cc-banner p { margin-bottom: var(--s-3); }
.cc-banner__title { color: var(--c-ink); font: 500 var(--fs-h4)/1.2 var(--f-serif); }
.cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); margin-top: var(--s-4); }
.cc-actions .btn { padding-inline: var(--s-3); }
.cc-link {
	display: block; min-height: 44px; margin: var(--s-1) auto 0; padding: 0 var(--s-2);
	border: 0; background: none;
	color: var(--c-blue-dark); font: 600 1rem var(--f-sans);
	text-decoration: underline; text-underline-offset: 0.2em;
	cursor: pointer;
}

.cc-dialog {
	width: min(100% - 2rem, 34rem);
	max-height: calc(100% - 2rem);
	padding: 0;
	border: 0; border-radius: 8px;
	background: var(--c-paper); color: var(--c-text);
	box-shadow: 0 30px 80px rgba(10, 20, 35, 0.35);
}
.cc-dialog::backdrop { background: rgba(10, 20, 35, 0.55); }
.cc-dialog form { position: relative; padding: var(--s-6) var(--s-5) var(--s-5); }
.cc-dialog h2 { font-size: var(--fs-h3); padding-right: var(--s-6); }
.cc-dialog > form > p { color: var(--c-muted); font-size: 1rem; }
.cc-row {
	display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
	padding: var(--s-3) 0;
	border-top: 1px solid var(--c-line);
}
.cc-row__title { color: var(--c-ink); font-weight: 600; }
.cc-row__desc { margin: 0; color: var(--c-muted); font-size: var(--fs-small); }
.cc-close {
	position: absolute; top: var(--s-2); right: var(--s-2);
	width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: none; color: var(--c-muted); font-size: 1.75rem; line-height: 1;
	cursor: pointer;
}
.cc-close:hover { background: var(--c-blue-mist); color: var(--c-ink); }

/* On/off switch built from a native checkbox */
.cc-switch {
	appearance: none; -webkit-appearance: none;
	flex: none; position: relative;
	width: 52px; height: 30px; margin: 0;
	border-radius: 30px;
	background: #9aa5b1;
	cursor: pointer;
	transition: background var(--ease);
}
.cc-switch::after {
	content: ""; position: absolute; top: 3px; left: 3px;
	width: 24px; height: 24px; border-radius: 50%;
	background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	transition: transform var(--ease);
}
.cc-switch:checked { background: var(--c-blue-dark); }
.cc-switch:checked::after { transform: translateX(22px); }
.cc-switch:disabled { opacity: 0.55; cursor: not-allowed; }

/* Google rating (footer): stars with the score underneath */
.reviews { display: inline-block; margin-bottom: var(--s-4); }
.site-footer .reviews:hover { text-decoration: none; }
.reviews__stars { display: block; color: #e0c57a; font-size: 1.1875rem; line-height: 1.2; letter-spacing: 0.06em; } /* logo gold */
.reviews__line { display: block; color: var(--c-on-night-muted); font-size: var(--fs-small); }
.reviews__line strong { margin-right: 0.25em; color: var(--c-on-night); font-size: 1.0625rem; }
.site-footer .reviews:hover .reviews__line { text-decoration: underline; }

/* Content pages (Buying, Selling)
   ========================================================================== */
.hero--page { min-height: clamp(26rem, 55vh, 34rem); }
.hero--page .container { padding-block: var(--s-6); }
@media (min-width: 60em) { .hero--page .container { padding-block: var(--s-7); } }
.hero--page .hero__media img { animation: none; } /* sub pages: static photo, the slow zoom is only on the homepage */
.breadcrumb.breadcrumb--light ol { color: #fff; }
.breadcrumb.breadcrumb--light a { color: var(--c-blue-sky); text-decoration-color: var(--c-blue-sky); }
.breadcrumb.breadcrumb--light a:hover { color: #fff; }
.breadcrumb.breadcrumb--light li + li::before { color: var(--c-on-blue-muted); }

/* Guide: long article with a sticky "On this page" menu */
.guide { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 60em) { .guide { grid-template-columns: 14rem minmax(0, 1fr); gap: var(--s-section); } }
.toc { padding: var(--s-4); border-left: 3px solid var(--c-blue); background: var(--c-blue-mist); border-radius: 0 6px 6px 0; }
@media (min-width: 60em) { .toc { position: sticky; top: 8rem; } }
.toc__title { margin-bottom: var(--s-2); color: var(--c-ink); font-weight: 700; font-size: var(--fs-small); letter-spacing: 0.08em; text-transform: uppercase; }
.toc ol { display: grid; gap: 0; }
.toc a { display: flex; align-items: center; min-height: 44px; color: var(--c-text); text-decoration: none; }
.toc a:hover { color: var(--c-blue-dark); text-decoration: underline; }
.guide__body { max-width: 50rem; }
.guide__section + .guide__section { margin-top: var(--s-section); }
.guide__section h3 { margin-top: var(--s-5); font-size: var(--fs-h4); }

.callout { margin: var(--s-5) 0; padding: var(--s-4) var(--s-5); border-left: 3px solid var(--c-blue); background: var(--c-blue-mist); border-radius: 0 6px 6px 0; }
.callout--strong { color: var(--c-ink); }
.callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* Tip cards with a thin icon */
.tip-cards { display: grid; gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
@media (min-width: 40em) { .tip-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 60em) { .tip-cards--3 { grid-template-columns: repeat(3, 1fr); } }
.tip-card { padding: var(--s-5); background: var(--c-paper); border: 1px solid var(--c-line); border-radius: 6px; }
.section--tint .tip-card { border-color: transparent; box-shadow: 0 6px 24px rgba(10, 20, 35, 0.06); }
.tip-card h3 { margin: 0 0 var(--s-2); font-size: var(--fs-h4); }
.tip-card p { margin: 0; }
.tip-card__icon { display: block; margin-bottom: var(--s-3); color: var(--c-blue-dark); font-size: 2.25rem; }

/* Numbered steps */
.steps { display: grid; gap: var(--s-4); margin: var(--s-5) 0; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 40em) { .steps { grid-template-columns: 1fr 1fr; } }
.steps li { position: relative; padding: var(--s-4) 0 0 var(--s-6); border-top: 1px solid var(--c-line); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: var(--s-4); color: var(--c-blue); font: 500 var(--fs-h4)/1.3 var(--f-serif); }
.steps h3 { margin: 0 0 var(--s-1); font-size: var(--fs-h4); }
.steps p { margin: 0; color: var(--c-muted); }

/* Two-column checklist */
.checklist { display: grid; gap: 0 var(--s-5); margin: 0 0 var(--s-5); }
@media (min-width: 40em) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { position: relative; padding: var(--s-2) 0 var(--s-2) var(--s-5); border-bottom: 1px solid var(--c-line); }
.checklist li::before { /* small check mark */
	content: ""; position: absolute; left: 0.2rem; top: 0.95em;
	width: 0.5rem; height: 0.85rem; border: solid var(--c-blue); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Recommended professionals */
.pros { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); margin: 0 0 var(--s-4); }
.pro { padding: var(--s-4); border: 1px solid var(--c-line); border-radius: 6px; font-size: var(--fs-small); }
.pro p { margin: 0; }
.pro__name { color: var(--c-ink); font: 500 var(--fs-h4)/1.3 var(--f-serif); margin-bottom: var(--s-1) !important; }
.pro__name a { color: var(--c-ink); text-decoration-color: var(--c-blue); }
.pro__org { color: var(--c-muted); margin-bottom: var(--s-2) !important; }
.pro a[href^="tel"], .pro a[href^="mailto"] { display: inline-flex; align-items: center; min-height: 32px; overflow-wrap: anywhere; }

/* Staging benefits */
.benefits { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--c-line); }
.benefits li { display: grid; grid-template-columns: 2.75rem 1fr; gap: var(--s-3); align-items: start; }
.benefits i { justify-self: center; color: var(--c-blue-dark); font-size: 2rem; line-height: 1; }
.benefits p { margin: 0; color: var(--c-ink); font-weight: 600; }

/* Pricing: quote beside the explanation */
.pricing { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 60em) { .pricing { grid-template-columns: 5fr 6fr; gap: var(--s-section); } }
.pricing .quote { margin-top: var(--s-5); }

/* Listing page
   ========================================================================== */
.listing-top { padding-block: var(--s-4) var(--s-6); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0 var(--s-1); margin-bottom: var(--s-4); font-size: var(--fs-small); color: var(--c-muted); }
.breadcrumb li + li::before { content: "\203A"; margin-right: var(--s-1); color: var(--c-muted); }
.breadcrumb a { color: var(--c-blue-dark); }

.listing-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-5); }
@media (min-width: 60em) { .listing-head { grid-template-columns: 1fr auto; align-items: end; gap: var(--s-6); } }
.listing-head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); margin-bottom: var(--s-2); }
.listing-head__status { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); color: var(--c-muted); font-size: var(--fs-small); }
.listing-head__address { margin: 0; color: var(--c-muted); font-size: var(--fs-lead); }
.listing-head__price { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
@media (min-width: 60em) { .listing-head__price { flex-direction: column; align-items: flex-end; gap: var(--s-3); } }
.listing-head__amount { margin: 0; color: var(--c-blue-dark); font: 500 clamp(2rem, 1.5rem + 1.8vw, 3rem)/1 var(--f-serif); }
.tag--inline { position: static; }

/* Gallery: one large photo plus four, opens the photo viewer */
.gallery { position: relative; display: grid; gap: var(--s-1); border-radius: 6px; overflow: hidden; }
.gallery > button:not(.gallery__all) { display: block; padding: 0; border: 0; background: var(--c-blue-mist); cursor: zoom-in; overflow: hidden; }
.gallery > button:not(.gallery__all) img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease, opacity var(--ease); }
.gallery > button:not(.gallery__all):hover img { transform: scale(1.03); opacity: 0.92; }
.gallery__main img { aspect-ratio: 5 / 3; }
.gallery__thumb { display: none !important; }
@media (min-width: 48em) {
	/* Wide main photo at its own 5:3 shape so the house isn't cropped; two photos stacked beside it */
	.gallery { grid-template-columns: 3fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
	.gallery__main { grid-row: span 2; }
	.gallery__main img { aspect-ratio: 5 / 3; }
	.gallery__thumb { display: block !important; }
}
.gallery__all.btn { position: absolute; right: var(--s-3); bottom: var(--s-3); gap: var(--s-2); border: 0; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25); cursor: pointer; }

/* Key facts under the gallery */
.fact-bar {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
	gap: var(--s-3) var(--s-5); margin: var(--s-5) 0 0; padding: var(--s-4) 0;
	border-block: 1px solid var(--c-line);
}
.fact-bar div { display: flex; flex-direction: column-reverse; }
.fact-bar dt { color: var(--c-muted); font-size: var(--fs-small); }
.fact-bar dd { margin: 0; color: var(--c-ink); font: 500 var(--fs-h4)/1.3 var(--f-serif); }

/* Description plus a sticky agent card */
.listing-body { padding-top: var(--s-6); }
.listing-body__inner { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 60em) { .listing-body__inner { grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--s-section); } }
.prose { max-width: 44rem; }
.prose h2 { margin-top: var(--s-6); font-size: var(--fs-h3); }
.prose ul:not([role]) { padding-left: 1.2em; }
.prose li { margin-bottom: var(--s-1); }
.prose li::marker { color: var(--c-blue); }
.highlights { display: grid; gap: var(--s-2) var(--s-5); margin: 0; }
@media (min-width: 40em) { .highlights { grid-template-columns: 1fr 1fr; } }
.highlights li { position: relative; margin: 0; padding: var(--s-3) 0 var(--s-3) var(--s-5); border-top: 1px solid var(--c-line); }
.highlights li::before { content: ""; position: absolute; left: 0; top: 1.35em; width: 0.9rem; height: 2px; background: var(--c-blue); }

/* Descriptions from the admin: lead paragraph, h3 sections, "Highlights" list (from the writing assistant) */
.listing-description > p:first-child { color: var(--c-ink); font-size: var(--fs-lead); line-height: 1.55; }
.listing-description h3 { margin: var(--s-6) 0 var(--s-2); font-size: var(--fs-h4); }
.listing-description:has(> h3) ul { padding-left: 0; list-style: none; }
.listing-description:has(> h3) li { position: relative; padding-left: var(--s-5); }
.listing-description:has(> h3) li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 0.9rem; height: 2px; background: var(--c-blue); }
.listing-description img { max-width: 100%; height: auto; }
.listing-head__open { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2); margin: var(--s-3) 0 0; color: var(--c-ink); font-size: 1rem; }
.listing-head__open i { color: var(--c-blue); }
.listing__open { margin: 0 0 var(--s-2); color: var(--c-blue-dark); font-size: var(--fs-small); font-weight: 600; }
.gallery--single { grid-template-columns: 1fr !important; grid-template-rows: auto !important; }
.gallery--single .gallery__main { grid-row: auto !important; }
.listing-video { max-width: 56rem; margin: 0 0 var(--s-6); }
.listing-video .yt-facade img { width: 100%; height: 100%; object-fit: cover; }
.listing-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.nearby__type { color: var(--c-on-night); opacity: 0.85; font-size: var(--fs-small); }
.seller-note { max-width: 50rem; margin: 0 auto; text-align: center; }
.seller-note__title { margin-bottom: var(--s-3); color: var(--c-muted); font: 600 var(--fs-small)/1.4 var(--f-sans); letter-spacing: 0.08em; text-transform: uppercase; }
.seller-note .quote-mark { margin-inline: auto; }
.seller-note p { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem); }
.draft-note { margin: 0; padding: var(--s-3) var(--s-4); background: #fff4d6; color: #5a4300; font-size: 1rem; text-align: center; }
.listings-group + .listings-group { margin-top: var(--s-7); }
.listings-group h2 { margin-bottom: var(--s-5); }
.empty-note { padding: var(--s-6); border: 1px solid var(--c-line); border-radius: 6px; text-align: center; }

.agent-card {
	display: grid; justify-items: center; gap: var(--s-2);
	padding: var(--s-5); text-align: center;
	background: var(--c-paper); border: 1px solid var(--c-line); border-top: 4px solid var(--c-blue);
	border-radius: 6px; box-shadow: 0 12px 40px rgba(10, 20, 35, 0.08);
}
@media (min-width: 60em) { .agent-card { position: sticky; top: 8rem; } }
.agent-card img { width: 96px; height: 96px; border-radius: 50%; margin-bottom: var(--s-1); }
.agent-card p { margin: 0; }
.agent-card__name { color: var(--c-ink); font: 500 var(--fs-h4)/1.2 var(--f-serif); }
.agent-card__brokerage { color: var(--c-muted); font-size: var(--fs-small); margin-bottom: var(--s-2) !important; }
.agent-card .btn { width: 100%; }
.agent-card__note { margin-top: var(--s-2) !important; color: var(--c-muted); font-size: var(--fs-small); }

/* Explore cards: tour, 3D, floor plans, feature sheet (Font Awesome icons, no photos needed) */
.explore { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.explore__card {
	display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-1);
	width: 100%; height: 100%; padding: var(--s-5);
	border: 0; border-top: 3px solid var(--c-blue); border-radius: 6px;
	background: var(--c-paper); color: var(--c-ink); text-align: left; text-decoration: none;
	font: inherit; cursor: pointer;
	box-shadow: 0 6px 24px rgba(10, 20, 35, 0.08);
	transition: transform var(--ease), box-shadow var(--ease);
}
.explore__card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(10, 20, 35, 0.14); color: var(--c-ink); }
.explore__icon { margin-bottom: var(--s-3); color: var(--c-blue-dark); font-size: 2rem; line-height: 1; }
.explore__label { font: 500 var(--fs-h4)/1.2 var(--f-serif); }
.explore__label::after { content: " \2192"; color: var(--c-blue); }
.explore__text { color: var(--c-muted); font-size: var(--fs-small); }

/* Neighbourhood band */
.neighbourhood__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.nearby { display: grid; gap: var(--s-1); margin: 0 0 var(--s-4); }
.nearby li { padding-left: var(--s-4); position: relative; color: var(--c-on-night); }
.nearby li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 0.6rem; height: 2px; background: var(--c-blue-sky); }
.neighbourhood__schools strong { color: var(--c-on-night); }
.neighbourhood .link-more { color: var(--c-on-night); border-color: var(--c-blue-sky); }

/* Photo viewer */
.lightbox {
	width: 100%; max-width: 100%; height: 100%; max-height: 100%;
	margin: 0; padding: 0; border: 0;
	background: rgba(8, 10, 14, 0.97); color: #fff;
}
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox::backdrop { background: rgba(8, 10, 14, 0.9); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: var(--s-2) var(--s-3) 0 var(--s-4); }
.lightbox__count { margin: 0; color: var(--c-on-night-muted); font-size: var(--fs-small); }
.lightbox__close { width: 48px; height: 48px; border: 0; border-radius: 50%; background: none; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox__close:hover { background: rgba(255, 255, 255, 0.12); }
.lightbox__stage { display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; margin: 0; padding: var(--s-2) var(--s-3); min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lightbox__stage figcaption { padding-top: var(--s-2); color: var(--c-on-night-muted); font-size: var(--fs-small); text-align: center; }
.lightbox__nav {
	position: absolute; top: 50%; translate: 0 -50%;
	width: 52px; height: 52px; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 2rem; line-height: 1;
	cursor: pointer;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox__nav--prev { left: var(--s-3); }
.lightbox__nav--next { right: var(--s-3); }
.lightbox__strip { display: flex; gap: var(--s-1); overflow-x: auto; padding: var(--s-2) var(--s-3) var(--s-3); scrollbar-width: thin; }
.lightbox__strip button { flex: none; padding: 0; border: 2px solid transparent; border-radius: 4px; background: none; cursor: pointer; opacity: 0.55; transition: opacity var(--ease); }
.lightbox__strip button:hover { opacity: 0.9; }
.lightbox__strip button[aria-current="true"] { border-color: #fff; opacity: 1; }
.lightbox__strip img { display: block; width: 84px; height: 56px; object-fit: cover; border-radius: 2px; }
@media (max-width: 39.99em) { .lightbox__nav { top: auto; bottom: 6.5rem; translate: none; } }

/* Utilities
   ========================================================================== */
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: var(--s-3); }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--c-muted); }

/* Forms, MLS search and MLS listing
   ========================================================================== */
.field { display: grid; gap: var(--s-1); margin: 0 0 var(--s-4); min-width: 0; }
.field label, .field legend { color: var(--c-ink); font-size: 1rem; font-weight: 600; }
.field__optional { color: var(--c-muted); font-weight: 400; }
.field input:not([type="checkbox"]), .field select, .field textarea {
	width: 100%; min-height: 48px; padding: 0.6rem 0.8rem;
	border: 1px solid #8a9bb0; border-radius: var(--radius); background: #fff;
	color: var(--c-ink); font: inherit; font-size: 1rem;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 1px; border-color: var(--c-blue-dark); }
fieldset.field { padding: 0; border: 0; }
.check { display: flex; align-items: center; gap: var(--s-2); min-height: 44px; font-weight: 400 !important; cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; accent-color: var(--c-blue-dark); }
.form__row { display: grid; gap: 0 var(--s-4); }
@media (min-width: 40em) { .form__row { grid-template-columns: 1fr 1fr; } }
.form-note { margin: 0 0 var(--s-4); padding: var(--s-3) var(--s-4); border-left: 4px solid var(--c-blue); background: var(--c-blue-mist); color: var(--c-ink); font-size: 1rem; }
.form-note--ok { border-color: #1f7a4d; background: #e7f4ec; }
.form-note--error { border-color: #b3261e; background: #fbe9e7; }
@media (min-width: 60em) { .split--form { grid-template-columns: 2fr 3fr; align-items: start; } }

.mls-search { background: var(--c-blue-mist); }
.search-form { display: grid; gap: 0 var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); align-items: end; }
.search-form__q { grid-column: 1 / -1; }
@media (min-width: 60em) { .search-form__q { grid-column: span 2; } }
.search-form__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.search-form__actions .btn { gap: var(--s-2); }
.listing__mls { display: block; color: var(--c-muted); font-size: var(--fs-small); }
.tag--kim { background: var(--c-blue-dark); }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-3); margin-top: var(--s-7); }
.pager ol { display: flex; flex-wrap: wrap; gap: var(--s-1); margin: 0; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 var(--s-2); border-radius: var(--radius); font-size: 1rem; }
.pager a { color: var(--c-blue-dark); }
.pager a:hover { background: var(--c-blue-mist); }
.pager [aria-current] { background: var(--c-blue-dark); color: #fff; font-weight: 600; }
.pager__gap { display: grid; place-items: center; min-width: 2rem; color: var(--c-muted); }

.specs { display: grid; gap: 0 var(--s-5); margin: 0 0 var(--s-5); }
@media (min-width: 40em) { .specs { grid-template-columns: 1fr 1fr; } }
.specs div { display: grid; gap: 0.125rem; padding: var(--s-3) 0; border-top: 1px solid var(--c-line); }
.specs dt { color: var(--c-muted); font-size: var(--fs-small); }
.specs dd { margin: 0; color: var(--c-ink); }
.rooms { width: 100%; margin-bottom: var(--s-5); border-collapse: collapse; font-size: 1rem; }
.rooms th, .rooms td { padding: var(--s-2) var(--s-3) var(--s-2) 0; border-top: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.rooms thead th { color: var(--c-muted); font-size: var(--fs-small); font-weight: 600; border-top: 0; }
.rooms tbody th { color: var(--c-ink); font-weight: 600; }
.map-embed { display: block; width: 100%; height: clamp(18rem, 45vw, 28rem); margin-top: var(--s-4); border: 0; border-radius: 6px; background: var(--c-blue-mist); }
.mls-notice p { max-width: 60rem; color: var(--c-muted); font-size: var(--fs-small); }
.mls-notice--inline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); margin-top: var(--s-6); }
.mls-notice--inline p { flex: 1 1 20rem; margin: 0; }
.realtor-ca { display: inline-block; }
.realtor-ca img { height: 40px; width: auto; }

/* In-page targets clear the sticky header */
#contact, #results { scroll-margin-top: 7rem; }

/* New home communities (Westhaven)
   ========================================================================== */
.community__head { display: grid; gap: var(--s-4) var(--s-6); margin-bottom: var(--s-6); }
@media (min-width: 60em) { .community__head { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: end; } }
.community__head p { max-width: 44rem; margin-bottom: 0; }
.community__links { display: grid; gap: var(--s-2); margin: 0; font-size: 1rem; }
.community__links a:not(.link-more) { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; color: var(--c-blue-dark); }
.community__links i { width: 1.25em; color: var(--c-blue); }
.community__meta { color: var(--c-muted); }
.community__more { margin: var(--s-6) 0 0; text-align: center; }
.hero__eyebrow { margin: 0 0 var(--s-2); color: var(--c-blue-sky); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.community-picks { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); margin: 0; }
.community-pick {
	display: flex; flex-direction: column; height: 100%; position: relative; overflow: hidden;
	border-top: 3px solid var(--c-blue); border-radius: 6px; background: var(--c-paper);
	box-shadow: 0 1px 2px rgba(20, 24, 29, 0.06), 0 8px 24px rgba(20, 24, 29, 0.06);
	color: var(--c-ink); text-decoration: none; transition: box-shadow var(--ease), transform var(--ease);
}
.community-pick:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20, 24, 29, 0.08), 0 14px 32px rgba(20, 24, 29, 0.1); }
.community-pick__media { display: block; aspect-ratio: 16 / 9; background: var(--c-blue-mist); overflow: hidden; }
.community-pick__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.community-pick:hover .community-pick__media img { transform: scale(1.03); }
.community-pick__body { display: grid; gap: var(--s-1); padding: var(--s-4) var(--s-7) var(--s-4) var(--s-4); }
.community-pick__name { font: 500 var(--fs-h4)/1.25 var(--f-serif); }
.community-pick:hover .community-pick__name { color: var(--c-blue-dark); }
.community-pick__count { color: var(--c-muted); font-size: var(--fs-small); }
.community-pick__arrow { position: absolute; right: var(--s-4); bottom: var(--s-4); color: var(--c-blue); font-size: 1.25rem; }
.community, #communities-title { scroll-margin-top: 5rem; }
/* Builder logo on a photo hero: shown white */
.hero__logo { display: block; width: clamp(10rem, 8rem + 8vw, 15rem); height: auto; margin: 0 0 var(--s-4); filter: brightness(0) invert(1); }

/* Contact and newsletter
   ========================================================================== */
.contact .split, .newsletter .split { align-items: start; }
.contact__ways { display: grid; gap: var(--s-4); margin: var(--s-6) 0; }
.contact__ways li { display: grid; grid-template-columns: 1.75rem 1fr; gap: var(--s-3); align-items: start; font-size: 1rem; line-height: 1.5; }
.contact__ways i { margin-top: 0.2em; color: var(--c-blue); font-size: 1.25rem; }
.contact__ways a { color: var(--c-blue-dark); font-weight: 600; }
.contact__label { display: block; color: var(--c-muted); font-size: var(--fs-small); }
.agent-card--inline { position: static !important; display: flex; align-items: center; gap: var(--s-4); text-align: left; }
.agent-card--inline img { flex: none; margin: 0; }
.contact__form, .newsletter__box { padding: var(--s-5); border-top: 3px solid var(--c-blue); border-radius: 6px; background: var(--c-blue-mist); }
@media (min-width: 40em) { .contact__form, .newsletter__box { padding: var(--s-6); } }
.contact__form-title { margin: 0 0 var(--s-4); font-size: var(--fs-h3); }
.contact__captcha { margin: var(--s-3) 0 var(--s-4); min-height: 78px; }
.contact__consent { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--c-line); color: var(--c-muted); font-size: var(--fs-small); }
.contact__consent p { margin: 0 0 var(--s-2); }
.contact__consent h1, .contact__consent h2, .contact__consent h3 { display: none; }
.newsletter__perks { margin: var(--s-5) 0; }
.newsletter__fine { color: var(--c-muted); font-size: var(--fs-small); }
.newsletter__perks { grid-template-columns: 1fr !important; }
