/*
 * CT Real Estate — site stylesheet.
 *
 *  1. Fonts          5. Header & navigation     9. Cards & carousels
 *  2. Tokens         6. Footer                 10. Forms & dialog
 *  3. Base           7. Buttons                11. Listings
 *  4. Layout         8. Hero & sections        12. Utilities
 *
 * Page-only rules live in assets/css/pages/<page>.css (loaded by the layout
 * when present). Components are plain BEM-style classes; no framework.
 */

/* 1. Fonts ------------------------------------------------------------- */

@font-face { font-family: "Surveyor Display"; src: url("../fonts/surveyor-display.woff2") format("woff2"), url("../fonts/surveyor-display.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Praxis"; src: url("../fonts/praxis-light.woff2") format("woff2"), url("../fonts/praxis-light.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Gotham"; src: url("../fonts/gotham-medium.woff2") format("woff2"), url("../fonts/gotham-medium.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-ext.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* 2. Tokens ------------------------------------------------------------ */

:root {
	/* colour */
	--c-gold: #b99755;          /* brand gold: footer, labels, accents */
	--c-gold-soft: #c3996b;     /* eyebrows, form accents */
	--c-ink: #000;
	--c-text: #1a1a1a;
	--c-muted: #404040;
	--c-slate: #4f545e;
	--c-line: #e6e7e8;
	--c-sand: #f7f4f1;          /* alternate section background */
	--c-white: #fff;
	--c-error: #c62828;
	--c-overlay: rgba(0, 0, 0, .45);

	/* type */
	--f-display: "Surveyor Display", Georgia, serif;
	--f-body: "Praxis", "Helvetica Neue", Arial, sans-serif;
	--f-accent: "Jost", "Helvetica Neue", Arial, sans-serif;
	--f-serif: "Cormorant Garamond", Georgia, serif;
	--f-ui: "Gotham", "Helvetica Neue", Arial, sans-serif;
	--f-zh: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;

	--fs-hero: clamp(2.5rem, 1.3rem + 5.2vw, 5rem);      /* 40 → 80 */
	--lh-hero: 1.5;
	--fs-h2: clamp(2rem, 1.45rem + 2.4vw, 3.125rem);     /* 32 → 50 */
	--lh-h2: 1.4;
	--fs-h3: clamp(1.5rem, 1.25rem + 1vw, 1.75rem);      /* 24 → 28 */
	--fs-lead: 1.25rem;                                   /* 20 */
	--fs-body: 1.125rem;                                  /* 18 */
	--fs-ui: 1rem;                                        /* 16 */
	--fs-small: .875rem;                                  /* 14 */
	--ls-caps: .07em;                                     /* 1.12px @ 16px */

	/* space & layout */
	--container: 1140px;
	--container-wide: 1400px;
	--gutter: clamp(1rem, .5rem + 2vw, 2rem);
	--section-y: clamp(3rem, 2rem + 4vw, 5rem);
	--header-h: 135px;
	--radius: 0;
	--shadow: 0 0 8px rgba(0, 0, 0, .2);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* Phones: the exact sizes the original used (40px hero, 32px section titles). */
@media (max-width: 767px) { :root { --fs-hero: 2.5rem; --fs-h2: 2rem; --lh-h2: 1.5; } }

/* 3. Base -------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 2rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
body { margin: 0; font-family: var(--f-body); font-size: var(--fs-ui); line-height: 1.5; color: var(--c-muted); background: var(--c-white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:lang(zh) body, body:lang(zh) { font-family: var(--f-body), var(--f-zh); }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; color: var(--c-ink); }
p, ul, ol, figure, blockquote { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-gold); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-gold-soft); outline-offset: 3px; }
::selection { background: var(--c-gold); color: var(--c-white); }
.icon { display: inline-block; vertical-align: -.125em; flex: none; }

/* Long-form text (legal pages, blog posts, listing descriptions). */
.prose { font-size: var(--fs-body); line-height: 1.5; font-weight: 300; color: var(--c-text); }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--f-display); line-height: 1.3; margin-top: 1.6em; }
.prose h2 { font-size: 2rem; } .prose h3 { font-size: 1.6rem; } .prose h4 { font-size: 1.3rem; }
.prose a { color: var(--c-gold); text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid #c1c1c1; padding: 10px; font-family: var(--f-ui); font-size: .95rem; vertical-align: top; }
.prose img { margin-inline: auto; }
.prose .wp-caption-text, .prose figcaption { font-size: var(--fs-small); color: var(--c-slate); margin-top: .5em; text-align: center; }

/* 4. Layout ------------------------------------------------------------ */

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: calc(var(--container-wide) + 2 * var(--gutter)); }
.container--narrow { max-width: calc(860px + 2 * var(--gutter)); }
.section { padding-block: var(--section-y); }
.section--sand { background: var(--c-sand); }
.section--tight { padding-block: calc(var(--section-y) / 2); }
.stack > * + * { margin-top: var(--stack, 1.5rem); }
/* --cols (desktop), --cols-md (≤1024px), --cols-sm (≤767px). Resolved into --_cols so a component setting --cols can't override the breakpoints. */
.grid { --_cols: var(--cols, 3); display: grid; gap: var(--gap, 2rem); grid-template-columns: repeat(var(--_cols), minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid { --_cols: var(--cols-md, 2); } }
@media (max-width: 767px) { .grid { --_cols: var(--cols-sm, 1); } }

/* Full-bleed image + text halves (home "Your Property Partners", etc.). */
.split { display: grid; grid-template-columns: 43% 1fr; min-height: 630px; }
.split--reverse { grid-template-columns: 1fr 42.25%; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; overflow: hidden; background: var(--c-line); min-height: 320px; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__body { display: flex; flex-direction: column; gap: 20px; padding: 48px clamp(2rem, 4.5vw, 64px); }
.split--reverse .split__body { padding-inline: clamp(2rem, 9vw, 128px); }
@media (max-width: 1024px) {
	.split, .split--reverse { grid-template-columns: 1fr; min-height: 0; }
	.split--reverse .split__media { order: 0; }
	.split__media { aspect-ratio: 4 / 3; min-height: 0; width: 100%; }
	.split__body, .split--reverse .split__body { padding: 3rem 2rem; max-width: none; }
}

/* 5. Header & navigation ---------------------------------------------- */

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--c-ink); color: var(--c-white); padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; color: var(--c-white); }

.site-header { position: relative; z-index: 50; height: var(--header-h); color: var(--c-ink); background: var(--c-white); }
.site-header--overlay { position: absolute; inset: 0 0 auto; background: transparent; color: var(--c-white); }
.site-header__inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; padding: 0 50px 22px; }
.site-header__brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 25px; align-self: start; padding-top: 30px; font-size: var(--fs-ui); text-transform: uppercase; line-height: 1; }
.site-header__brand img { width: 100px; }
.site-header--overlay .site-header__brand img { filter: none; }
.nav__list { display: flex; gap: 0; margin: 0 0 18px; padding: 0; list-style: none; }
.nav__list a { display: block; padding: 0 1rem; font-size: var(--fs-ui); line-height: 1.5; text-transform: uppercase; }
.nav__list a[aria-current="page"] { color: var(--c-gold); }
.site-header__cta { justify-self: end; margin-bottom: 19px; }
.site-header__toggle, .site-header__mobile-brand { display: none; }

@media (max-width: 1023px) {
	.site-header { height: 74px; }
	.site-header__inner { display: flex; align-items: center; justify-content: center; padding: 20px; position: relative; }
	.site-header__brand, .site-header .nav, .site-header .site-header__cta { display: none; }
	.site-header__toggle { display: inline-flex; position: absolute; left: 20px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 4px; color: inherit; font-size: 2rem; }
	.site-header__mobile-brand { display: block; font-family: var(--f-ui); font-size: 1.25rem; line-height: 1.5; white-space: nowrap; text-transform: uppercase; color: var(--c-gold-soft); }
	.site-header--overlay .site-header__mobile-brand { color: var(--c-white); }
}

/* Off-canvas menu (mobile). */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; }
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .25); opacity: 0; transition: opacity .3s; border: 0; width: 100%; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel { position: absolute; inset: 0 auto 0 0; width: 250px; max-width: 85vw; background: var(--c-white); padding: 45px 20px 20px; overflow-y: auto; transform: translateX(-100%); transition: transform .3s var(--ease); font-family: var(--f-ui); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__brand { display: block; margin-left: 20px; text-transform: uppercase; }
.drawer__list { list-style: none; margin: 35px 0 0 20px; padding: 0; }
.drawer__list + .drawer__list { margin-top: 20px; }
.drawer__list a { display: block; padding: 2px 0; }
.drawer__appraisal { display: block; margin: 35px 0 0 20px; padding: 10px 0; width: fit-content; border-block: 1px solid var(--c-gold-soft); background: none; border-inline: 0; font-family: inherit; color: inherit; text-decoration: none; }
.drawer__logo { margin: 100px 0 0 20px; width: 100px; }
.drawer__close { position: absolute; top: 12px; right: 12px; background: none; border: 0; font-size: 1.5rem; color: var(--c-slate); }
body.has-drawer { overflow: hidden; }

/* 6. Footer ------------------------------------------------------------ */

.site-footer { background: var(--c-gold); color: var(--c-white); padding-block: 50px; font-family: var(--f-accent); }
.site-footer > .container { max-width: none; padding-inline: 15px; }
.site-footer a:hover { color: var(--c-white); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.site-footer__tagline { font-family: var(--f-accent); font-size: var(--fs-lead); line-height: 1.5; color: var(--c-white); text-transform: uppercase; white-space: pre-line; margin-bottom: 30px; }
.site-footer__logo { width: 171px; }
.site-footer__title { font-family: var(--f-serif); font-size: 1.75rem; line-height: 1.5; color: var(--c-white); margin-bottom: 20px; }
.site-footer__address { font-style: normal; }
.site-footer__list { list-style: none; margin: 0; padding: 0; }
.site-footer__list a { display: block; padding: 7px 0; line-height: 1; }
.site-footer__list a.is-address { line-height: 1.5; }
.site-footer__divider { border: 0; border-top: 1px solid var(--c-white); margin: 10px 0 20px; }
.site-footer__social { display: inline-block; margin-top: 24px; font-size: 2rem; }
.site-footer__badge { margin-top: 24px; width: 100%; max-width: 326px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 0 .35rem; margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--c-white); font-family: system-ui, sans-serif; }
.site-footer__bottom ul { display: flex; list-style: none; margin: 0; padding: 0; }
.site-footer__bottom li::before { content: "|"; margin: 0 .35rem; }
@media (max-width: 1023px) { .site-footer__grid { grid-template-columns: 1fr; gap: 25px; } }

/* 7. Buttons ----------------------------------------------------------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: 16px 32px; border: 1px solid currentColor; background: transparent; color: inherit; font-family: var(--f-body); font-size: var(--fs-ui); line-height: 1.5; text-transform: uppercase; text-align: center; border-radius: var(--radius); transition: background-color .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-white); }
.btn--wide { padding-inline: 64px; font-family: var(--f-ui); }
.btn--solid { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-white); }
.btn--solid:hover { background: var(--c-ink); border-color: var(--c-ink); }
.btn--dark { color: var(--c-ink); }
.btn--sm { padding: 10px 25px; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* 8. Hero & sections --------------------------------------------------- */

.hero { position: relative; display: grid; place-items: start center; align-content: start; min-height: calc(100svh + var(--header-h) - 70px); padding: calc(var(--header-h) + 130px) var(--gutter) 3rem; color: var(--c-white); text-align: center; background: var(--c-ink) center / cover no-repeat; isolation: isolate; }
.hero__bg, .page-hero__bg, .listing-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.2) 40%, rgba(0,0,0,.35)); }
.hero__eyebrow { font-family: var(--f-accent); font-size: 1.5rem; line-height: 1.5; color: inherit; text-transform: uppercase; }
.hero__title { font-family: var(--f-display); font-size: var(--fs-hero); line-height: var(--lh-hero); color: inherit; margin-top: 54px; }
.hero__lead { max-width: 1000px; margin: 1.5rem auto 0; font-family: var(--f-accent); font-size: var(--fs-lead); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 50px; margin-top: 73px; }
@media (max-width: 1023px) { .hero { padding-top: calc(74px + 50px); } }
@media (max-width: 767px) { .hero__title { margin-top: 27px; } .hero__actions { flex-direction: column; align-items: center; gap: 30px; margin-top: 47px; } }

/* Page title band used by inner pages (About, Blog, Contact…). */
.page-hero { position: relative; display: grid; place-items: center; min-height: 400px; padding: 3rem var(--gutter); text-align: center; color: var(--c-white); background: var(--c-ink) center / cover no-repeat; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .35); }
.page-hero__title { font-family: var(--f-display); font-size: clamp(2.5rem, 1.5rem + 3.5vw, 4rem); line-height: 1.3; color: inherit; }
.page-hero__lead { max-width: 820px; margin: 1rem auto 0; font-size: var(--fs-body); line-height: 1.5; }

.eyebrow { display: block; font-family: var(--f-body); font-size: var(--fs-ui); font-weight: 600; line-height: 1; text-transform: uppercase; color: var(--c-gold-soft); }
.title { font-family: var(--f-display); font-size: var(--fs-h2); line-height: var(--lh-h2); color: var(--c-ink); }
.title--sm { font-size: var(--fs-h3); line-height: 1.3; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head .eyebrow + .title { margin-top: 20px; }
.lead { font-size: var(--fs-body); line-height: 1.5; font-weight: 300; color: var(--c-text); }
.lead > * + * { margin-top: 27px; }
.label { font-family: var(--f-body); font-size: var(--fs-lead); line-height: 1.3; font-weight: 600; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--c-gold); }

/* Short feature columns: label + sentence. */
.features { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 20px; }
.features__item .label { margin-bottom: 18px; }
.features__item p { font-size: var(--fs-body); line-height: 1.5; font-weight: 300; color: var(--c-text); }
@media (max-width: 767px) { .features { grid-template-columns: 1fr; gap: 47px; } }

/* Logos ("As seen on"). */
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 58px; }
.logo-strip img { object-fit: contain; } /* sized by width/height attributes, so lazy loading can start */

/* 9. Cards & carousels ------------------------------------------------- */

/* Horizontal scroll-snap carousel with prev/next and dots (assets/js/main.js). */
.carousel { position: relative; }
/* --per-view (desktop), --per-view-md (≤1023px), --per-view-sm (≤767px) are set on .carousel; resolved here on the track so an inline value on .carousel can't override the breakpoints. */
.carousel__track { --pv: var(--per-view, 3); display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--pv) - 1) * var(--gap, 10px)) / var(--pv)); gap: var(--gap, 10px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0; margin: 0; list-style: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; min-width: 0; }
.carousel__controls { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.carousel__arrows { position: absolute; top: -3.25rem; right: 0; display: flex; gap: .5rem; }
.carousel__arrow { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid var(--c-line); background: var(--c-white); color: var(--c-ink); font-size: .9rem; }
.carousel__arrow:hover { border-color: var(--c-gold); color: var(--c-gold); }
.carousel__arrow[disabled] { opacity: .35; cursor: default; }
.carousel__dots { display: flex; gap: 10px; }
.carousel__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #222; }
.carousel__dot[aria-current="true"] { background: var(--c-gold); }
@media (max-width: 1023px) { .carousel__track { --pv: var(--per-view-md, var(--per-view, 3)); } }
@media (max-width: 767px) { .carousel__track { --pv: var(--per-view-sm, 1); } .carousel__arrows { position: static; justify-content: center; margin-bottom: 1rem; } }

/* Featured property card. */
.property-card { display: flex; flex-direction: column; gap: 10px; }
.property-card__image { display: block; aspect-ratio: 380 / 300; overflow: hidden; background: var(--c-line); }
.property-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.property-card:hover .property-card__image img { transform: scale(1.03); }
.property-card__price { margin-top: 10px; font-family: var(--f-accent); font-size: var(--fs-small); line-height: 1.8; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--c-gold); }
.property-card__title { font-family: var(--f-display); font-size: var(--fs-h3); line-height: 1.3; }
.property-card__title a:hover { color: var(--c-gold); }
.property-card__meta { display: flex; gap: 20px; font-family: var(--f-accent); font-size: var(--fs-small); line-height: 1.8; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--c-muted); }
.property-card__meta span { display: inline-flex; align-items: center; gap: 8px; }

/* Testimonials. */
.testimonials .container { max-width: calc(1312px + 2 * var(--gutter)); }
.testimonials .section-head { margin-bottom: 60px; }
.testimonials__grid { --cols: 3; --cols-md: 2; --cols-sm: 1; --gap: 20px; margin: 0; padding: 0; list-style: none; }
.testimonial { display: flex; flex-direction: column; align-items: center; gap: 20px; height: 100%; padding: 50px 39px; border: 1px solid var(--c-line); background: var(--c-white); text-align: center; }
.stars { display: inline-flex; gap: 4px; color: var(--c-gold); font-size: 1.1rem; }
@media (max-width: 767px) { .testimonial { padding: 24px 49px; } }
.testimonial__quote { font-size: var(--fs-body); line-height: 1.5; color: var(--c-ink); }
.testimonial__name { margin-top: auto; font-family: var(--f-accent); font-size: var(--fs-lead); line-height: 1.5; font-weight: 600; color: var(--c-ink); font-style: normal; }

/* Team member. */
.person { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.person__photo { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; background: var(--c-line); }
.person__role { font-family: var(--f-body); font-size: var(--fs-ui); font-weight: 600; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--c-gold); }
.person__name { font-family: var(--f-display); font-size: var(--fs-h3); line-height: 1.3; margin-top: .5rem; }
.person__contact { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1rem 0 0; padding: 0; list-style: none; font-family: var(--f-accent); }
.person__contact a { display: inline-flex; align-items: center; gap: .5rem; }
.person__bio { margin-top: 1.25rem; }
.person__bio a, .lead a { color: var(--c-gold-soft); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 767px) { .person { grid-template-columns: 1fr; } }

/* 10. Forms & dialog --------------------------------------------------- */

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; font-family: var(--f-accent); }
.form__field { grid-column: span 2; display: flex; flex-direction: column; gap: 6px; }
.form__field--half { grid-column: span 1; }
@media (max-width: 767px) { .form__field--half { grid-column: span 2; } }
.form__label, .form__legend { font-size: var(--fs-ui); color: inherit; padding: 0; }
.form__req { color: var(--c-error); margin-left: 2px; }
.form__input { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--c-ink); border-radius: 0; background: var(--c-white); color: var(--c-ink); font-size: .95rem; line-height: 1.5; }
.form__input::placeholder { color: #777; }
textarea.form__input { min-height: 140px; resize: vertical; }
select.form__input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.form__input:focus { outline: 2px solid var(--c-gold-soft); outline-offset: 0; border-color: var(--c-gold-soft); }
.form__field.has-error .form__input { border-color: var(--c-error); }
.form__error { font-size: .85rem; color: var(--c-error); }
.form__error:empty { display: none; }
.form__group { border: 0; margin: 0; padding: 0; grid-column: span 2; display: flex; flex-direction: column; gap: 10px; }
.form__options { display: flex; flex-direction: column; gap: 8px; }
.form__options--inline { flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }
.form__check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.form__check input { width: 16px; height: 16px; margin: 0; accent-color: var(--c-gold-soft); flex: none; }
.form__actions { grid-column: span 2; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form__captcha { grid-column: 1 / -1; max-width: 400px; }
.form__status { grid-column: span 2; font-size: var(--fs-ui); }
.form__status:empty { display: none; }
.form__status.is-success { color: var(--c-gold); }
.form__status.is-error { color: var(--c-error); }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { grid-column: span 2; font-size: var(--fs-small); color: var(--c-slate); }
.form--dark { color: var(--c-white); }
.form--dark .form__input { background: transparent; border-color: var(--c-white); color: var(--c-white); }
.form--dark .form__input::placeholder { color: rgba(255, 255, 255, .7); }
.form--dark select.form__input option { color: var(--c-ink); }

/* Multi-step forms (landing pages). */
.form__progress { grid-column: span 2; height: 22px; background: var(--c-line); font-size: .75rem; line-height: 22px; color: var(--c-white); }
.form__progress span { display: block; height: 100%; width: var(--progress, 25%); background: var(--c-gold); padding-left: 8px; transition: width .3s; }
.form__step { grid-column: span 2; display: grid; grid-template-columns: inherit; gap: inherit; }
.form__step[hidden] { display: none; }


/* 11. Listings --------------------------------------------------------- */

.listings-title { font-family: var(--f-display); font-size: 2rem; line-height: 1.5; text-align: center; color: var(--c-ink); }
.listings { max-width: none; padding-inline: 15px; padding-bottom: 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 30px; margin: 25px 0 30px; font-family: var(--f-ui); }
.filters select { min-height: 39px; padding: 6px 19px 7px 12px; border: 1px solid #cacaca; background: var(--c-white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='24' viewBox='0 0 32 24'><polyline points='0,0 16,21 32,0' stroke='%23c3996b' stroke-width='3' fill='none'/></svg>") right 12px center / 9px 6px no-repeat; appearance: none; font-size: 1rem; line-height: 1.5; text-transform: uppercase; color: var(--c-ink); }
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 767px) { .filters { flex-direction: column; gap: 20px; } .filters select { width: 100%; } }
@media (max-width: 1023px) { .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .listing-grid { grid-template-columns: 1fr; } }
.listing-card__media { position: relative; display: block; aspect-ratio: 5 / 3; overflow: hidden; background: var(--c-line); }
.listing-card__media img { width: 100%; height: 100%; object-fit: cover; }
.listing-card { position: relative; font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; } /* the original archive used the browser's sans-serif */
.listing-card__address { font: inherit; color: var(--c-muted); }
.listing-card__address a::after { content: ""; position: absolute; inset: 0; } /* whole card is the link */
.listing-card:hover .listing-card__address a { color: var(--c-gold); }
.listing-card__label { position: absolute; top: 0; right: 0; padding: 5px 20px; background: var(--c-slate); color: var(--c-white); font-family: var(--f-ui); font-size: .8rem; line-height: 1.5; text-transform: uppercase; }
.listing-card__inspect { position: absolute; left: 8px; bottom: 8px; padding: 0 .25rem; background: #3a3a3a; color: var(--c-white); font-size: .9rem; }
.listing-card__address { display: block; margin-top: 10px; }
.listing-card__stats, .stats { display: flex; gap: 14px; margin-top: 4px; font-family: var(--f-ui); color: var(--c-slate); }
.stats span { display: inline-flex; align-items: center; gap: 6px; }
.stats .icon { color: var(--c-gold-soft); font-size: 1.05em; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 11px 0; font-family: var(--f-ui); }
.pagination a, .pagination span { min-width: 2rem; padding: 4px 8px; text-align: center; }
.pagination [aria-current="page"] { background: var(--c-gold); color: var(--c-white); }
.empty-state { padding: 50px 10px; font-size: 1.25rem; }

/* 12. Utilities -------------------------------------------------------- */

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }

/* Floating language switcher. */
.lang-switch { position: fixed; right: 10vw; bottom: 0; z-index: 90; font-family: Arial, Helvetica, sans-serif; font-size: 14px; }
.lang-switch__button, .lang-switch__menu a { display: flex; align-items: center; gap: 8px; min-width: 160px; padding: 10px 26px; border: 0; background: var(--c-white); color: #143852; white-space: nowrap; }
.lang-switch__button { border-radius: 8px 8px 0 0; box-shadow: var(--shadow); }
.lang-switch__menu { position: absolute; bottom: 100%; left: 0; min-width: 100%; width: max-content; margin: 0; padding: 0; list-style: none; border-radius: 8px 8px 0 0; overflow: hidden; box-shadow: var(--shadow); }
.lang-switch__menu[hidden] { display: none; }
.lang-switch a:hover, .lang-switch__button:hover { background: #f0f0f0; color: #143852; }
@media (max-width: 640px) { .lang-switch { right: 5vw; } }

/* Legal pages & 404. */
.legal__section { margin-top: 2rem; }
.error-404__text { margin: 1.5rem 0 2rem; }
.error-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero__title, .page-hero__title, .title { text-wrap: balance; }
