/*
Theme Name: Real Estate Theme
Theme URI: https://example.com/
Author: Anup Kale
Author URI: https://example.com/
Description: A warm, editorial light/dark theme for real estate companies, with a manual light/dark toggle and rich property listings.
Version: 1.10.0
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 7.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: real-estate-theme
*/

/* -----------------------------------------------------------------------
   0. Self-hosted display serif (Fraunces, SIL OFL 1.1 — see assets/fonts/OFL.txt)
----------------------------------------------------------------------- */
@font-face {
	font-family: 'Fraunces';
	font-style: normal;
	font-weight: 500 700;
	font-display: swap;
	src: url('assets/fonts/fraunces-normal.woff2') format('woff2');
}
@font-face {
	font-family: 'Fraunces';
	font-style: italic;
	font-weight: 500;
	font-display: swap;
	src: url('assets/fonts/fraunces-italic.woff2') format('woff2');
}

/* -----------------------------------------------------------------------
   1. Design tokens
   Light = :root default. Dark = @media override (no explicit choice yet).
   html[data-theme] = explicit visitor choice from the header toggle, wins
   over both because an attribute selector on html outranks a bare :root.
----------------------------------------------------------------------- */
:root {
	--color-bg: #faf6ef;
	--color-surface: #f2e9db;
	--color-surface-alt: #ece0cb;
	--color-text: #2b241c;
	--color-text-muted: #746a5a;
	--color-primary: #a8442c;
	--color-primary-hover: #8a3722;
	--color-on-primary: #fdf8f2;
	--color-accent: #74702e;
	--color-accent-hover: #5c5924;
	--color-on-accent: #fdf8f2;
	--color-border: #e3d5bc;
	--color-success: #3f7d4a;
	--color-danger: #b3402f;
	--shadow-sm: 0 1px 2px rgba(43, 36, 28, 0.08), 0 1px 1px rgba(43, 36, 28, 0.05);
	--shadow-md: 0 12px 28px rgba(43, 36, 28, 0.14);

	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-serif: 'Fraunces', Georgia, 'Times New Roman', Times, serif;
	--container-width: 1200px;
	--radius-sm: 4px;
	--radius-md: 10px;
	--radius-lg: 20px;

	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--color-bg: #1c1712;
		--color-surface: #241d16;
		--color-surface-alt: #2c2419;
		--color-text: #f2e9dc;
		--color-text-muted: #b3a693;
		--color-primary: #e08a63;
		--color-primary-hover: #eaa47f;
		--color-on-primary: #1c1712;
		--color-accent: #c9b969;
		--color-accent-hover: #d8c988;
		--color-on-accent: #1c1712;
		--color-border: #3c3122;
		--color-success: #6bc17e;
		--color-danger: #e08277;
		--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 1px rgba(0, 0, 0, 0.3);
		--shadow-md: 0 12px 28px rgba(0, 0, 0, 0.5);
	}
}

html[data-theme="dark"] {
	--color-bg: #1c1712;
	--color-surface: #241d16;
	--color-surface-alt: #2c2419;
	--color-text: #f2e9dc;
	--color-text-muted: #b3a693;
	--color-primary: #e08a63;
	--color-primary-hover: #eaa47f;
	--color-on-primary: #1c1712;
	--color-accent: #c9b969;
	--color-accent-hover: #d8c988;
	--color-on-accent: #1c1712;
	--color-border: #3c3122;
	--color-success: #6bc17e;
	--color-danger: #e08277;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 1px rgba(0, 0, 0, 0.3);
	--shadow-md: 0 12px 28px rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] {
	--color-bg: #faf6ef;
	--color-surface: #f2e9db;
	--color-surface-alt: #ece0cb;
	--color-text: #2b241c;
	--color-text-muted: #746a5a;
	--color-primary: #a8442c;
	--color-primary-hover: #8a3722;
	--color-on-primary: #fdf8f2;
	--color-accent: #74702e;
	--color-accent-hover: #5c5924;
	--color-on-accent: #fdf8f2;
	--color-border: #e3d5bc;
	--color-success: #3f7d4a;
	--color-danger: #b3402f;
	--shadow-sm: 0 1px 2px rgba(43, 36, 28, 0.08), 0 1px 1px rgba(43, 36, 28, 0.05);
	--shadow-md: 0 12px 28px rgba(43, 36, 28, 0.14);
}

/* -----------------------------------------------------------------------
   1b. Color scheme presets (Appearance -> Customize -> Color Scheme)
   The "Warm Editorial" tokens above are the default (data-scheme="warm",
   or no attribute at all). Each preset below follows the exact same
   light / OS-dark / explicit-dark / explicit-light structure, just scoped
   to html[data-scheme="<key>"] -- see ret_get_color_scheme() in
   inc/customizer.php and the data-scheme attribute printed in header.php.
----------------------------------------------------------------------- */

/* Monochrome */
html[data-scheme="mono"] {
	--color-bg: #ffffff;
	--color-surface: #f4f4f4;
	--color-surface-alt: #e9e9e9;
	--color-text: #111111;
	--color-text-muted: #5c5c5c;
	--color-primary: #111111;
	--color-primary-hover: #2b2b2b;
	--color-on-primary: #ffffff;
	--color-accent: #4a4a4a;
	--color-accent-hover: #333333;
	--color-on-accent: #ffffff;
	--color-border: #dcdcdc;
	--color-success: #2e7d46;
	--color-danger: #b3261e;
	--shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.1), 0 1px 1px rgba(17, 17, 17, 0.06);
	--shadow-md: 0 12px 28px rgba(17, 17, 17, 0.16);
}
@media (prefers-color-scheme: dark) {
	html[data-scheme="mono"] {
		--color-bg: #0d0d0d;
		--color-surface: #181818;
		--color-surface-alt: #222222;
		--color-text: #f2f2f2;
		--color-text-muted: #a3a3a3;
		--color-primary: #ffffff;
		--color-primary-hover: #e2e2e2;
		--color-on-primary: #0d0d0d;
		--color-accent: #cfcfcf;
		--color-accent-hover: #ffffff;
		--color-on-accent: #0d0d0d;
		--color-border: #2e2e2e;
		--color-success: #6bc17e;
		--color-danger: #e08277;
		--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5), 0 1px 1px rgba(0, 0, 0, 0.35);
		--shadow-md: 0 12px 28px rgba(0, 0, 0, 0.6);
	}
}
html[data-scheme="mono"][data-theme="dark"] {
	--color-bg: #0d0d0d;
	--color-surface: #181818;
	--color-surface-alt: #222222;
	--color-text: #f2f2f2;
	--color-text-muted: #a3a3a3;
	--color-primary: #ffffff;
	--color-primary-hover: #e2e2e2;
	--color-on-primary: #0d0d0d;
	--color-accent: #cfcfcf;
	--color-accent-hover: #ffffff;
	--color-on-accent: #0d0d0d;
	--color-border: #2e2e2e;
	--color-success: #6bc17e;
	--color-danger: #e08277;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5), 0 1px 1px rgba(0, 0, 0, 0.35);
	--shadow-md: 0 12px 28px rgba(0, 0, 0, 0.6);
}
html[data-scheme="mono"][data-theme="light"] {
	--color-bg: #ffffff;
	--color-surface: #f4f4f4;
	--color-surface-alt: #e9e9e9;
	--color-text: #111111;
	--color-text-muted: #5c5c5c;
	--color-primary: #111111;
	--color-primary-hover: #2b2b2b;
	--color-on-primary: #ffffff;
	--color-accent: #4a4a4a;
	--color-accent-hover: #333333;
	--color-on-accent: #ffffff;
	--color-border: #dcdcdc;
	--color-success: #2e7d46;
	--color-danger: #b3261e;
	--shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.1), 0 1px 1px rgba(17, 17, 17, 0.06);
	--shadow-md: 0 12px 28px rgba(17, 17, 17, 0.16);
}

/* Coastal Blue */
html[data-scheme="coastal"] {
	--color-bg: #f6f8fa;
	--color-surface: #eaf0f4;
	--color-surface-alt: #dde7ee;
	--color-text: #14202b;
	--color-text-muted: #5c7080;
	--color-primary: #1d4e6b;
	--color-primary-hover: #163c53;
	--color-on-primary: #f6f8fa;
	--color-accent: #c99a44;
	--color-accent-hover: #b3852f;
	--color-on-accent: #14202b;
	--color-border: #d3dee6;
	--color-success: #2f8f5b;
	--color-danger: #c1443a;
	--shadow-sm: 0 1px 2px rgba(20, 32, 43, 0.1), 0 1px 1px rgba(20, 32, 43, 0.06);
	--shadow-md: 0 12px 28px rgba(20, 32, 43, 0.16);
}
@media (prefers-color-scheme: dark) {
	html[data-scheme="coastal"] {
		--color-bg: #0d1a24;
		--color-surface: #142330;
		--color-surface-alt: #1b2e3d;
		--color-text: #e7eef3;
		--color-text-muted: #93a8b8;
		--color-primary: #5fa8cf;
		--color-primary-hover: #7fbadd;
		--color-on-primary: #0d1a24;
		--color-accent: #e0b563;
		--color-accent-hover: #edc57e;
		--color-on-accent: #0d1a24;
		--color-border: #24384a;
		--color-success: #6bc17e;
		--color-danger: #e08277;
		--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 1px rgba(0, 0, 0, 0.3);
		--shadow-md: 0 12px 28px rgba(0, 0, 0, 0.5);
	}
}
html[data-scheme="coastal"][data-theme="dark"] {
	--color-bg: #0d1a24;
	--color-surface: #142330;
	--color-surface-alt: #1b2e3d;
	--color-text: #e7eef3;
	--color-text-muted: #93a8b8;
	--color-primary: #5fa8cf;
	--color-primary-hover: #7fbadd;
	--color-on-primary: #0d1a24;
	--color-accent: #e0b563;
	--color-accent-hover: #edc57e;
	--color-on-accent: #0d1a24;
	--color-border: #24384a;
	--color-success: #6bc17e;
	--color-danger: #e08277;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 1px rgba(0, 0, 0, 0.3);
	--shadow-md: 0 12px 28px rgba(0, 0, 0, 0.5);
}
html[data-scheme="coastal"][data-theme="light"] {
	--color-bg: #f6f8fa;
	--color-surface: #eaf0f4;
	--color-surface-alt: #dde7ee;
	--color-text: #14202b;
	--color-text-muted: #5c7080;
	--color-primary: #1d4e6b;
	--color-primary-hover: #163c53;
	--color-on-primary: #f6f8fa;
	--color-accent: #c99a44;
	--color-accent-hover: #b3852f;
	--color-on-accent: #14202b;
	--color-border: #d3dee6;
	--color-success: #2f8f5b;
	--color-danger: #c1443a;
	--shadow-sm: 0 1px 2px rgba(20, 32, 43, 0.1), 0 1px 1px rgba(20, 32, 43, 0.06);
	--shadow-md: 0 12px 28px rgba(20, 32, 43, 0.16);
}

/* Sage & Stone */
html[data-scheme="sage"] {
	--color-bg: #f6f5ef;
	--color-surface: #eceade;
	--color-surface-alt: #e1ded0;
	--color-text: #262920;
	--color-text-muted: #6b7160;
	--color-primary: #4f6b4f;
	--color-primary-hover: #3f5640;
	--color-on-primary: #f6f5ef;
	--color-accent: #a9673a;
	--color-accent-hover: #8e5530;
	--color-on-accent: #f6f5ef;
	--color-border: #ddd8c5;
	--color-success: #3f7d4a;
	--color-danger: #b3402f;
	--shadow-sm: 0 1px 2px rgba(38, 41, 32, 0.1), 0 1px 1px rgba(38, 41, 32, 0.06);
	--shadow-md: 0 12px 28px rgba(38, 41, 32, 0.16);
}
@media (prefers-color-scheme: dark) {
	html[data-scheme="sage"] {
		--color-bg: #171a14;
		--color-surface: #1f231b;
		--color-surface-alt: #272c21;
		--color-text: #eceee2;
		--color-text-muted: #a3ab93;
		--color-primary: #8fae82;
		--color-primary-hover: #a3c095;
		--color-on-primary: #171a14;
		--color-accent: #d99a68;
		--color-accent-hover: #e3ac80;
		--color-on-accent: #171a14;
		--color-border: #313627;
		--color-success: #6bc17e;
		--color-danger: #e08277;
		--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 1px rgba(0, 0, 0, 0.3);
		--shadow-md: 0 12px 28px rgba(0, 0, 0, 0.5);
	}
}
html[data-scheme="sage"][data-theme="dark"] {
	--color-bg: #171a14;
	--color-surface: #1f231b;
	--color-surface-alt: #272c21;
	--color-text: #eceee2;
	--color-text-muted: #a3ab93;
	--color-primary: #8fae82;
	--color-primary-hover: #a3c095;
	--color-on-primary: #171a14;
	--color-accent: #d99a68;
	--color-accent-hover: #e3ac80;
	--color-on-accent: #171a14;
	--color-border: #313627;
	--color-success: #6bc17e;
	--color-danger: #e08277;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 1px rgba(0, 0, 0, 0.3);
	--shadow-md: 0 12px 28px rgba(0, 0, 0, 0.5);
}
html[data-scheme="sage"][data-theme="light"] {
	--color-bg: #f6f5ef;
	--color-surface: #eceade;
	--color-surface-alt: #e1ded0;
	--color-text: #262920;
	--color-text-muted: #6b7160;
	--color-primary: #4f6b4f;
	--color-primary-hover: #3f5640;
	--color-on-primary: #f6f5ef;
	--color-accent: #a9673a;
	--color-accent-hover: #8e5530;
	--color-on-accent: #f6f5ef;
	--color-border: #ddd8c5;
	--color-success: #3f7d4a;
	--color-danger: #b3402f;
	--shadow-sm: 0 1px 2px rgba(38, 41, 32, 0.1), 0 1px 1px rgba(38, 41, 32, 0.06);
	--shadow-md: 0 12px 28px rgba(38, 41, 32, 0.16);
}

/* Modern Slate */
html[data-scheme="slate"] {
	--color-bg: #f5f6f8;
	--color-surface: #e9ebef;
	--color-surface-alt: #dde0e6;
	--color-text: #1e2530;
	--color-text-muted: #626c7a;
	--color-primary: #35455c;
	--color-primary-hover: #283446;
	--color-on-primary: #f5f6f8;
	--color-accent: #2f8f83;
	--color-accent-hover: #257369;
	--color-on-accent: #f5f6f8;
	--color-border: #d7dbe1;
	--color-success: #2f8f5b;
	--color-danger: #b3402f;
	--shadow-sm: 0 1px 2px rgba(30, 37, 48, 0.1), 0 1px 1px rgba(30, 37, 48, 0.06);
	--shadow-md: 0 12px 28px rgba(30, 37, 48, 0.16);
}
@media (prefers-color-scheme: dark) {
	html[data-scheme="slate"] {
		--color-bg: #12151b;
		--color-surface: #1a1e26;
		--color-surface-alt: #232833;
		--color-text: #eef0f3;
		--color-text-muted: #98a1ad;
		--color-primary: #7f97b8;
		--color-primary-hover: #97acc9;
		--color-on-primary: #12151b;
		--color-accent: #4fb3a5;
		--color-accent-hover: #66c2b5;
		--color-on-accent: #12151b;
		--color-border: #2b313d;
		--color-success: #6bc17e;
		--color-danger: #e08277;
		--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 1px rgba(0, 0, 0, 0.3);
		--shadow-md: 0 12px 28px rgba(0, 0, 0, 0.5);
	}
}
html[data-scheme="slate"][data-theme="dark"] {
	--color-bg: #12151b;
	--color-surface: #1a1e26;
	--color-surface-alt: #232833;
	--color-text: #eef0f3;
	--color-text-muted: #98a1ad;
	--color-primary: #7f97b8;
	--color-primary-hover: #97acc9;
	--color-on-primary: #12151b;
	--color-accent: #4fb3a5;
	--color-accent-hover: #66c2b5;
	--color-on-accent: #12151b;
	--color-border: #2b313d;
	--color-success: #6bc17e;
	--color-danger: #e08277;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 1px rgba(0, 0, 0, 0.3);
	--shadow-md: 0 12px 28px rgba(0, 0, 0, 0.5);
}
html[data-scheme="slate"][data-theme="light"] {
	--color-bg: #f5f6f8;
	--color-surface: #e9ebef;
	--color-surface-alt: #dde0e6;
	--color-text: #1e2530;
	--color-text-muted: #626c7a;
	--color-primary: #35455c;
	--color-primary-hover: #283446;
	--color-on-primary: #f5f6f8;
	--color-accent: #2f8f83;
	--color-accent-hover: #257369;
	--color-on-accent: #f5f6f8;
	--color-border: #d7dbe1;
	--color-success: #2f8f5b;
	--color-danger: #b3402f;
	--shadow-sm: 0 1px 2px rgba(30, 37, 48, 0.1), 0 1px 1px rgba(30, 37, 48, 0.06);
	--shadow-md: 0 12px 28px rgba(30, 37, 48, 0.16);
}

/* -----------------------------------------------------------------------
   2. Reset & base
----------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	transition: background-color 0.2s ease, color 0.2s ease;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-hover); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-serif);
	line-height: 1.15;
	margin: 0 0 0.5em;
	font-weight: 600;
	letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

ul, ol { padding-left: 1.25em; }

button, input, select, textarea { font-family: inherit; font-size: 1rem; color: inherit; }

hr { border: none; border-top: 1px solid var(--color-border); margin: 2rem 0; }

::selection { background: var(--color-accent); color: var(--color-on-accent); }

.overline {
	display: inline-block;
	font-family: var(--font-serif);
	font-style: italic;
	font-size: 0.95rem;
	color: var(--color-primary);
	margin-bottom: 0.6em;
	letter-spacing: 0.02em;
}

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
	border: 0; padding: 0; margin: -1px;
}
.screen-reader-text:focus {
	position: fixed;
	top: 1rem; left: 1rem;
	width: auto; height: auto;
	clip: auto;
	background: var(--color-bg);
	color: var(--color-text);
	padding: 0.75rem 1rem;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-md);
	z-index: 10000;
}

/* -----------------------------------------------------------------------
   3. Layout
----------------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--container-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.breadcrumbs {
	display: block;
	font-size: 0.9rem;
	margin-bottom: 1.75rem;
}
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-primary); }

.section { padding-top: 4rem; padding-bottom: 4rem; }
.section--alt { background: var(--color-surface); }
.section--dark { background: var(--color-text); color: var(--color-bg); }
.section--dark .overline { color: var(--color-bg); opacity: 0.75; }
.section--dark .section-heading p { color: var(--color-bg); opacity: 0.7; }
.section--dark .listing-card,
.section--dark .ret-carousel__slide { background: rgba(250, 246, 239, 0.06); }
.section--dark .listing-card__title a { color: var(--color-bg); }
.section--dark .text-muted { color: var(--color-bg); opacity: 0.7; }
.section-heading { text-align: center; max-width: 640px; margin: 0 auto 2.75rem; }
.section-heading p { color: var(--color-text-muted); }
.section-heading h2 { position: relative; padding-bottom: 0.6em; }
.section-heading h2::after {
	content: "";
	position: absolute;
	bottom: 0; left: 50%;
	transform: translateX(-50%);
	width: 56px; height: 3px;
	background: var(--color-primary);
	border-radius: 2px;
}

/* -----------------------------------------------------------------------
   4. Buttons & form controls
----------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.75em 1.5em;
	border-radius: var(--radius-sm);
	border: 1px solid transparent;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	text-decoration: none;
}
.btn-primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn-primary:hover { background: var(--color-primary-hover); color: var(--color-on-primary); text-decoration: none; }
.btn-accent { background: var(--color-accent); color: var(--color-on-accent); }
.btn-accent:hover { background: var(--color-accent-hover); color: var(--color-on-accent); text-decoration: none; }
.btn-outline { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-outline:hover { background: var(--color-surface); text-decoration: none; }
.btn-block { width: 100%; }

.form-field { margin-bottom: 1.25rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: 0.4em; font-size: 0.9rem; }
.form-field .hint { display: block; color: var(--color-text-muted); font-size: 0.85rem; margin-top: 0.3em; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="url"],
select,
textarea {
	width: 100%;
	padding: 0.65em 0.85em;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-bg);
	color: var(--color-text);
}
input:focus, select:focus, textarea:focus {
	outline: 2px solid var(--color-primary);
	outline-offset: 1px;
}
textarea { min-height: 140px; resize: vertical; }

.notice {
	padding: 0.9em 1.1em;
	border-radius: var(--radius-sm);
	margin-bottom: 1.5rem;
	border: 1px solid transparent;
}
.notice--success { background: color-mix(in srgb, var(--color-success) 15%, var(--color-bg)); border-color: var(--color-success); }
.notice--error { background: color-mix(in srgb, var(--color-danger) 15%, var(--color-bg)); border-color: var(--color-danger); }

/* honeypot field, hidden from real users */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* -----------------------------------------------------------------------
   5. Site header & navigation
----------------------------------------------------------------------- */
.site-header {
	background: var(--color-bg);
	border-bottom: 1px solid var(--color-border);
	position: sticky;
	top: 0;
	z-index: 100;
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-top: 1rem;
	padding-bottom: 1rem;
}
.site-branding { display: flex; align-items: center; gap: 0.75rem; }
.site-branding img { max-height: 44px; width: auto; }

/* Optional dark-mode logo (Customize -> Site Identity -> "Dark Mode
   Logo"). Both are always in the markup; CSS shows/hides them the same
   way the sun/moon toggle icon does, so there's no flicker or JS needed. */
.site-logo--dark { display: none; }
@media (prefers-color-scheme: dark) {
	.site-logo--light { display: none; }
	.site-logo--dark { display: inline-flex; }
}
html[data-theme="dark"] .site-logo--light { display: none; }
html[data-theme="dark"] .site-logo--dark { display: inline-flex; }
html[data-theme="light"] .site-logo--light { display: inline-flex; }
html[data-theme="light"] .site-logo--dark { display: none; }
.site-title {
	font-family: var(--font-serif);
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0;
	color: var(--color-text);
}
.site-title a { color: inherit; }
.site-title a:hover { text-decoration: none; color: var(--color-primary); }
.site-description { font-size: 0.8rem; color: var(--color-text-muted); margin: 0; font-style: italic; }

.header-actions { display: flex; align-items: center; gap: 1.25rem; }

.theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px; height: 38px;
	border-radius: 50%;
	border: 1px solid var(--color-border);
	background: var(--color-surface);
	color: var(--color-text);
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--color-primary); color: var(--color-primary); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.menu-toggle {
	display: none;
	background: transparent;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	padding: 0.5em 0.7em;
	cursor: pointer;
}
.menu-toggle .bar {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--color-text);
	margin: 4px 0;
}

.primary-navigation ul {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
}
.primary-navigation a {
	color: var(--color-text);
	font-weight: 500;
}
.primary-navigation a:hover { color: var(--color-primary); text-decoration: none; }
.primary-navigation .current-menu-item > a { color: var(--color-primary); }
.primary-navigation ul ul {
	position: absolute;
	flex-direction: column;
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-md);
	padding: 0.5rem;
	gap: 0;
	min-width: 200px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease;
}
.primary-navigation li { position: relative; }
.primary-navigation li:hover > ul,
.primary-navigation li:focus-within > ul {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.primary-navigation ul ul a { display: block; padding: 0.5em 0.75em; }

@media (max-width: 860px) {
	.menu-toggle { display: inline-flex; align-items: center; }
	.primary-navigation {
		display: none;
		width: 100%;
		order: 3;
	}
	.primary-navigation.is-open { display: block; }
	.primary-navigation ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 1rem 0; }
	.primary-navigation ul ul { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; border: none; padding-left: 1rem; }
	.primary-navigation li.is-open > ul { display: block; }
	.site-header__inner { flex-wrap: wrap; }
}

/* -----------------------------------------------------------------------
   6. Hero / homepage
----------------------------------------------------------------------- */
.hero { padding: 5rem 0; border-bottom: 1px solid var(--color-border); overflow: hidden; }
.hero .container {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 3rem;
	align-items: center;
}
.hero__content p { font-size: 1.2rem; color: var(--color-text-muted); }
.hero__actions { display: flex; gap: 1rem; margin-top: 1.75rem; flex-wrap: wrap; }
.hero__media { border-radius: var(--radius-lg); overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
	.hero .container { grid-template-columns: 1fr; }
	.hero__media { order: -1; max-width: 360px; margin: 0 auto; }
}

/* -----------------------------------------------------------------------
   7. Listing cards & grid
----------------------------------------------------------------------- */
.listing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Asymmetric "lead card" treatment for the homepage featured section */
.listing-grid--featured { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (min-width: 720px) {
	.listing-grid--featured li:first-child {
		grid-column: span 2;
		grid-row: span 2;
	}
	.listing-grid--featured li:first-child .listing-card { height: 100%; }
	.listing-grid--featured li:first-child .listing-card__media { aspect-ratio: 16 / 11; }
	.listing-grid--featured li:first-child .listing-card__title { font-size: 1.5rem; }
	.listing-grid--featured li:first-child .listing-card__price { font-size: 1.7rem; }
}

.listing-card {
	background: var(--color-bg);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: box-shadow 0.15s ease, transform 0.15s ease;
	display: flex;
	flex-direction: column;
}
.listing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.listing-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--color-surface); overflow: hidden; }
.listing-card__media img { width: 100%; height: 100%; object-fit: cover; }
.listing-card__badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	background: var(--color-primary);
	color: var(--color-on-primary);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.3em 0.7em;
	border-radius: 999px;
}
.listing-card__badge--category {
	left: auto;
	right: 0.75rem;
	background: var(--color-accent);
	color: var(--color-on-accent);
}
.listing-card__body { padding: 1.2rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.listing-card__price { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; color: var(--color-primary); }
.listing-card__title { font-size: 1.1rem; margin: 0; }
.listing-card__title a { color: var(--color-text); }
.listing-card__title a:hover { color: var(--color-primary); text-decoration: none; }
.listing-card__address { color: var(--color-text-muted); font-size: 0.9rem; }
.listing-card__meta {
	display: flex;
	gap: 1rem;
	font-size: 0.85rem;
	color: var(--color-text-muted);
	border-top: 1px solid var(--color-border);
	padding-top: 0.75rem;
	margin-top: auto;
}

/* -----------------------------------------------------------------------
   8. Listing filter form
----------------------------------------------------------------------- */
.listing-filters {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 1.5rem;
	margin-bottom: 2.5rem;
}
.listing-filters__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1rem;
	align-items: end;
}
.listing-filters .form-field { margin-bottom: 0; }
.listing-results-count { color: var(--color-text-muted); margin-bottom: 1.5rem; }

/* -----------------------------------------------------------------------
   9. Single listing
----------------------------------------------------------------------- */
.listing-gallery { margin-bottom: 2rem; }
.listing-gallery .ret-carousel { margin-bottom: 0.75rem; }
.listing-gallery__main {
	border-radius: var(--radius-lg);
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--color-surface);
	margin-bottom: 0.75rem;
}
.listing-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.listing-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
	gap: 0.6rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.listing-gallery__thumb {
	display: block;
	width: 100%;
	padding: 0;
	border: 2px solid transparent;
	border-radius: var(--radius-sm);
	overflow: hidden;
	aspect-ratio: 4/3;
	cursor: pointer;
	background: none;
}
.listing-gallery__thumb:hover { border-color: var(--color-primary); }
.listing-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.listing-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.listing-header__price { font-family: var(--font-serif); font-size: 2.1rem; font-weight: 700; color: var(--color-primary); }
.listing-header__address { color: var(--color-text-muted); }

.listing-compliance {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	background: var(--color-surface);
	border-left: 4px solid var(--color-primary);
	border-radius: 6px;
	padding: 0.85rem 1.1rem;
	margin-bottom: 1.5rem;
}
.listing-compliance__text { font-size: 0.95rem; }
.listing-compliance__label { font-weight: 700; }
.listing-compliance__number { font-weight: 700; color: var(--color-primary); margin-left: 0.35em; }
a.listing-compliance__number { text-decoration: underline; }
a.listing-compliance__number:hover { color: var(--color-primary-hover); }
.listing-compliance__qr img { display: block; width: 72px; height: 72px; object-fit: contain; background: var(--color-bg); border-radius: 4px; }

.listing-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 1rem;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 1.25rem;
	margin-bottom: 2rem;
}
.listing-stats__item { text-align: center; }
.listing-stats__value { display: block; font-size: 1.3rem; font-weight: 700; font-family: var(--font-serif); }
.listing-stats__label { font-size: 0.8rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.03em; }

.listing-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; align-items: start; }
.listing-sidebar {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 1.5rem;
	position: sticky;
	top: 6rem;
}
@media (max-width: 900px) {
	.listing-layout { grid-template-columns: 1fr; }
	.listing-sidebar { position: static; }
}

/* Structured spec groups (interior / exterior / financial / listing meta) */
.spec-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; margin: 2rem 0; }
.spec-group h3 { font-size: 1.05rem; margin-bottom: 0.75em; }
.spec-group dl { margin: 0; }
.spec-group .spec-row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.5em 0;
	border-bottom: 1px solid var(--color-border);
	font-size: 0.95rem;
}
.spec-group .spec-row:last-child { border-bottom: none; }
.spec-group dt { color: var(--color-text-muted); }
.spec-group dd { margin: 0; font-weight: 600; text-align: right; }

/* -----------------------------------------------------------------------
   10. Blog / archive / single post
----------------------------------------------------------------------- */
.content-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; }
@media (max-width: 900px) { .content-layout { grid-template-columns: 1fr; } }

.post-card { border-bottom: 1px solid var(--color-border); padding-bottom: 2rem; margin-bottom: 2rem; }
.post-card__thumb { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 1rem; aspect-ratio: 16/9; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-meta { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.entry-content { max-width: 75ch; }
.entry-content img { border-radius: var(--radius-md); }
.entry-content blockquote {
	border-left: 3px solid var(--color-accent);
	margin: 1.5em 0;
	padding: 0.25em 1.25em;
	color: var(--color-text-muted);
	font-family: var(--font-serif);
	font-style: italic;
	font-size: 1.15em;
}

.widget { margin-bottom: 2.5rem; }
.widget-title { font-size: 1.1rem; margin-bottom: 1rem; }

/* -----------------------------------------------------------------------
   11. Footer
----------------------------------------------------------------------- */
.site-footer {
	background: var(--color-text);
	color: var(--color-bg);
	margin-top: 4rem;
}
.site-footer a { color: var(--color-bg); opacity: 0.85; }
.site-footer a:hover { opacity: 1; }
.footer-widgets {
	display: grid;
	grid-template-columns: repeat(var(--footer-columns, 3), 1fr);
	gap: 2rem;
	padding-top: 3rem;
	padding-bottom: 3rem;
}
@media (max-width: 700px) {
	.footer-widgets { grid-template-columns: 1fr; }
}
.footer-column .widget:last-child { margin-bottom: 0; }
/* Defends column widths if a block widget picks a wide/full alignment */
.footer-widgets .alignfull, .footer-widgets .alignwide { max-width: 100%; margin-left: 0; margin-right: 0; }
.footer-widgets .widget-title { color: var(--color-bg); font-family: var(--font-serif); }
.site-footer__bottom {
	border-top: 1px solid rgba(250, 246, 239, 0.15);
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
	font-size: 0.85rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}
.site-footer__copyright {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	opacity: 0.85;
}
.site-footer__social {
	display: flex;
	align-items: center;
	gap: 0.9rem;
}
.site-footer__social a {
	display: inline-flex;
	color: var(--color-bg);
	opacity: 0.75;
	transition: opacity 0.15s ease;
}
.site-footer__social a:hover,
.site-footer__social a:focus-visible {
	opacity: 1;
}
.site-footer__social svg {
	width: 1.15rem;
	height: 1.15rem;
}

/* -----------------------------------------------------------------------
   12. Utilities
----------------------------------------------------------------------- */
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
