/*
Theme Name: Nivas Reality
Theme URI: https://nivasreality.com
Author: Nivas Reality
Description: A property theme for villas, plots, apartments and farm land. Home page filter with live Google Map, trust bar, property listings, enquiry form and WhatsApp contact.
Version: 1.0.2
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nivas
*/

/* ==========================================================================
   Tokens
   Paper is a cool lilac-tinted white. Ink is aubergine. Jacaranda (violet) is
   the interface accent; each property type has its own colour that carries
   through tabs, map pins, badges and placeholders.
   ========================================================================== */
:root {
	--paper: #f5f4f8;
	--white: #ffffff;
	--ink: #221a33;
	--ink-2: #3b3150;
	--muted: #6b6480;
	--line: #dad6e4;
	--bloom: #7c55cc;
	--bloom-deep: #5f3cab;
	--bloom-soft: #ebe5f8;
	--laterite: #b94a26;
	--laterite-soft: #f6e3da;
	--blue: #2e5c9e;
	--blue-soft: #dfe8f5;
	--leaf: #2c7f52;
	--leaf-soft: #dcefe4;

	--font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
	--font-prose: "Newsreader", Georgia, "Times New Roman", serif;

	--gutter: clamp(18px, 4vw, 40px);
	--radius: 8px;
	--radius-lg: 14px;
	--header-h: 76px;
}

.t-villa { --tc: var(--bloom); --tb: var(--bloom-soft); }
.t-plot { --tc: var(--laterite); --tb: var(--laterite-soft); }
.t-apartment { --tc: var(--blue); --tb: var(--blue-soft); }
.t-farm-land { --tc: var(--leaf); --tb: var(--leaf-soft); }

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink-2);
	font-family: var(--font-display);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 {
	font-family: var(--font-display);
	color: var(--ink);
	font-weight: 650;
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 0 0 0.5em;
	font-variation-settings: "wdth" 90;
	text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }

:focus-visible { outline: 3px solid var(--bloom); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--bloom-soft); color: var(--ink); }

.container { width: min(100% - (var(--gutter) * 2), 1240px); margin-inline: auto; }
.container--narrow { width: min(100% - (var(--gutter) * 2), 780px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); z-index: 200; }
.skip-link:focus { left: 8px; }
.nr-i { width: 1.1em; height: 1.1em; flex: none; }
.nr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { max-width: 720px; margin-bottom: clamp(24px, 3.5vw, 44px); }
.section-head p { color: var(--muted); font-family: var(--font-prose); font-size: 1.2rem; line-height: 1.55; margin: 0; }

.prose { font-family: var(--font-prose); font-size: 1.2rem; line-height: 1.7; color: var(--ink-2); max-width: 68ch; }
.prose--lead { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.55; color: var(--ink); }
.prose a { color: var(--bloom-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose h2, .prose h3 { margin-top: 1.4em; }

/* ==========================================================================
   Buttons and small controls
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
	padding: 0.85em 1.5em;
	border-radius: var(--radius);
	border: 1.5px solid transparent;
	font-weight: 600; font-size: 0.95rem; letter-spacing: 0.005em; line-height: 1.2;
	transition: background-color 0.18s, color 0.18s, border-color 0.18s;
	text-align: center;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--bloom-deep); }
.btn--bloom { background: var(--bloom); color: #fff; }
.btn--bloom:hover { background: #8d68dc; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn--sm { padding: 0.6em 1.1em; font-size: 0.88rem; }
.btn--block { width: 100%; }

.link, .link-btn { color: var(--bloom-deep); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; font-weight: 500; }
.link:hover, .link-btn:hover { color: var(--ink); }

.badge {
	position: absolute; z-index: 2;
	display: inline-flex; align-items: center; gap: 0.4em;
	padding: 0.3em 0.7em;
	font-size: 0.78rem; font-weight: 600; line-height: 1.2;
	border-radius: 999px;
}
.badge .nr-i { width: 1em; height: 1em; }

.notice { padding: 12px 14px; border-radius: var(--radius); margin: 0 0 16px; font-size: 0.95rem; border: 1px solid; }
.notice--ok { background: var(--leaf-soft); border-color: var(--leaf); color: #1c5a39; }
.notice--error { background: var(--laterite-soft); border-color: var(--laterite); color: #7d2f14; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.site-header.is-stuck { border-bottom-color: var(--line); }
.topbar { background: var(--ink); color: #d9d2ea; font-size: 0.84rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: #fff; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand__mark { width: 36px; height: 36px; }
.brand__name { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.03em; font-variation-settings: "wdth" 88; }
.brand__logo { max-height: 48px; width: auto; }
.brand--light { color: #fff; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav .menu { display: flex; align-items: center; gap: 4px; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu > li > a { display: block; padding: 10px 14px; font-weight: 550; font-size: 0.97rem; color: var(--ink); border-radius: var(--radius); }
.primary-nav .menu > li > a:hover,
.primary-nav .menu > li.current-menu-item > a,
.primary-nav .menu > li.current-menu-ancestor > a { color: var(--bloom-deep); }
.primary-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.primary-nav .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 220px;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px;
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { display: block; padding: 9px 12px; border-radius: 6px; font-weight: 500; color: var(--ink); }
.primary-nav .sub-menu a:hover { background: var(--bloom-soft); }

.nav-toggle { display: none; background: none; border: 1.5px solid var(--ink); border-radius: var(--radius); width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink); }
.nav-toggle .nr-i { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: block; }

/* ==========================================================================
   Page header (inner pages)
   ========================================================================== */
.page-hero { padding-block: clamp(36px, 5vw, 72px) clamp(28px, 4vw, 52px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); margin-bottom: 0.3em; max-width: 18ch; }
.page-hero__intro { font-family: var(--font-prose); font-size: 1.25rem; line-height: 1.55; color: var(--muted); max-width: 60ch; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; font-size: 0.88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a:hover { color: var(--bloom-deep); text-decoration: underline; }

/* ==========================================================================
   Home hero: a layout plan that draws itself once
   ========================================================================== */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(100px, 12vw, 150px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__copy h1 { font-size: clamp(2.4rem, 4.8vw, 4.1rem); max-width: 15ch; }
.hero__sub { font-family: var(--font-prose); font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.55; color: var(--ink-2); max-width: 46ch; margin-bottom: 1.6em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__plan { position: relative; }
.siteplan { width: 100%; height: auto; max-height: 600px; margin-inline: auto; overflow: visible; }

.sp-park { fill: var(--leaf-soft); }
.sp-tree { fill: #b9dcc7; stroke: var(--leaf); stroke-width: 1; }
.sp-plot { fill: var(--white); stroke: var(--ink); stroke-width: 1; }
.sp-plot.is-taken { fill: url(#nr-hatch); }
.sp-plot.is-hl { fill: var(--bloom-soft); stroke: var(--bloom); stroke-width: 2.2; }
.sp-boundary { fill: none; stroke: var(--ink); stroke-width: 2; }
.sp-center { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 7 6; opacity: 0.6; }
.sp-num { font: 600 12px var(--font-display); fill: var(--ink); opacity: 0.55; }
.sp-label { font: 500 11.5px var(--font-display); fill: var(--muted); letter-spacing: 0.02em; }
.sp-dim { fill: none; stroke: var(--bloom-deep); stroke-width: 1; }
.sp-dimtext { font: 600 12px var(--font-display); fill: var(--bloom-deep); }
.sp-pin { fill: var(--bloom); stroke: #fff; stroke-width: 2.5; }
.sp-callout rect { fill: var(--ink); }
.sp-ct1 { font: 650 14px var(--font-display); fill: #fff; }
.sp-ct2 { font: 500 11.5px var(--font-display); fill: #cfc3ee; }
.sp-note { font: 500 11px var(--font-display); fill: var(--muted); }
.sp-north path { fill: var(--ink); }
.sp-north text { font: 700 12px var(--font-display); fill: var(--ink); }

/* The one orchestrated moment: boundary and plots are drawn, then the callout lands. */
@keyframes sp-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes sp-fade { from { opacity: 0; } to { opacity: 1; } }
.sp-plot, .sp-boundary { stroke-dasharray: 1; animation: sp-draw 0.9s cubic-bezier(0.4, 0, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 55ms); }
.sp-num, .sp-park, .sp-tree, .sp-center, .sp-label { animation: sp-fade 0.6s ease both; animation-delay: 1.1s; }
.sp-dim, .sp-dimtext, .sp-pin, .sp-callout { animation: sp-fade 0.5s ease both; animation-delay: 1.7s; }

/* ==========================================================================
   Filter (hero and inline variants share markup)
   ========================================================================== */
.finder { margin-top: -84px; position: relative; z-index: 5; }
.nr-filter { background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--radius-lg); padding: 18px clamp(16px, 2.4vw, 26px) 22px; }
.nr-filter--inline { margin-bottom: 28px; }
.nr-filter__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.type-tab, .pill {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 0.5em 1em;
	border: 1.5px solid var(--line); border-radius: 999px; background: var(--white);
	font-weight: 550; font-size: 0.92rem; line-height: 1.2; color: var(--ink);
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.type-tab .nr-i { color: var(--tc, var(--ink)); }
.type-tab:hover, .pill:hover { border-color: var(--ink); }
.type-tab.is-active, .pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.type-tab.is-active .nr-i { color: #fff; }

.nr-filter__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr) auto; gap: 14px; align-items: end; }
.nr-filter__fields.no-beds { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.4fr) auto; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field[hidden] { display: none; }
.field > span { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.field select, .field input,
.nr-form input, .nr-form select, .nr-form textarea, .sort select {
	width: 100%;
	padding: 0.72em 0.9em;
	border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white);
	font-size: 0.97rem; line-height: 1.3;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.field select:hover, .field input:hover { border-color: var(--ink-2); }
.field select:focus, .field input:focus,
.nr-form input:focus, .nr-form select:focus, .nr-form textarea:focus, .sort select:focus { outline: none; border-color: var(--bloom); box-shadow: 0 0 0 3px var(--bloom-soft); }
.nr-filter__actions { display: flex; align-items: center; gap: 14px; }
.nr-filter__actions .btn { white-space: nowrap; }

/* ==========================================================================
   Trust bar: one-line statements on an ink strip
   ========================================================================== */
.trust { background: var(--ink); color: #e5def4; margin-top: clamp(36px, 5vw, 64px); }
.trust__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust__item { display: flex; align-items: center; gap: 14px; padding: 22px 22px 22px 0; }
.trust__item + .trust__item { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.trust__icon { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: 10px; color: #cdb9f5; }
.trust__icon .nr-i { width: 20px; height: 20px; }
.trust__text { margin: 0; font-size: 0.98rem; line-height: 1.35; }
.trust__text strong { color: #fff; font-size: 1.32em; font-weight: 700; letter-spacing: -0.02em; margin-right: 0.15em; font-variation-settings: "wdth" 90; }
.trust__rera { margin: 0; padding: 0 0 16px; font-size: 0.85rem; color: #b6abd0; }

/* ==========================================================================
   Explorer: list on the left, sticky map on the right
   ========================================================================== */
.explorer { padding-block: clamp(48px, 6vw, 88px); }
.explorer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 22px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.explorer__count { margin: 0; color: var(--muted); }
.explorer__count strong { color: var(--ink); font-size: 1.4rem; font-weight: 700; margin-right: 2px; }
.explorer__summary { margin-left: 10px; font-size: 0.9rem; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.explorer__tools { display: flex; align-items: center; gap: 12px; }
.sort select { width: auto; padding-right: 2.2em; }
.view-toggle { display: none; border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.view-toggle button { display: inline-flex; align-items: center; gap: 6px; background: var(--white); border: 0; padding: 0.6em 1em; font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.view-toggle button.is-active { background: var(--ink); color: #fff; }

.explorer__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 26px; align-items: start; }
.explorer__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.explorer__list [hidden] { display: none !important; }
.explorer__map { position: sticky; top: calc(var(--header-h) + 44px); height: calc(100vh - var(--header-h) - 80px); min-height: 460px; max-height: 760px; border: 1.5px solid var(--ink); border-radius: var(--radius-lg); overflow: hidden; background: var(--bloom-soft); }
.map-canvas { position: absolute; inset: 0; }
.map-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 28px; color: var(--ink-2);
	background:
		linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
		linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
		var(--paper); }
.map-fallback[hidden] { display: none; }
.map-fallback .nr-i { width: 34px; height: 34px; color: var(--bloom); }
.map-fallback p { max-width: 34ch; margin: 0; background: var(--paper); padding: 4px 8px; }
.explorer__empty { grid-column: 1 / -1; padding: 40px 24px; border: 1.5px dashed var(--line); border-radius: var(--radius-lg); text-align: center; }
.explorer__empty h3 { margin-bottom: 0.3em; }
.empty-state { padding: 48px 24px; border: 1.5px dashed var(--line); border-radius: var(--radius-lg); text-align: center; }
.empty-state p { color: var(--muted); }
.empty-state .btn + .btn { margin-left: 8px; }

/* Map pins (AdvancedMarkerElement content) */
.nr-pin {
	position: relative;
	display: inline-flex; align-items: center; gap: 7px;
	padding: 6px 11px 6px 9px;
	background: var(--white); color: var(--ink);
	border: 1.5px solid var(--ink); border-radius: 999px;
	font: 650 13px/1 var(--font-display);
	white-space: nowrap;
	transition: background-color 0.15s, color 0.15s, transform 0.15s;
	cursor: pointer;
}
.nr-pin::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tc, var(--bloom)); }
.nr-pin::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 9px; height: 9px; background: inherit; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateX(-50%) rotate(45deg); }
.nr-pin.is-hot, .nr-pin.is-active { background: var(--ink); color: #fff; transform: scale(1.1); }
.nr-iw { font-family: var(--font-display); color: var(--ink-2); max-width: 240px; }
.nr-iw img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; margin-bottom: 8px; }
.nr-iw__price { font-weight: 700; font-size: 1.05rem; color: var(--ink); margin: 0; }
.nr-iw__title { font-weight: 600; margin: 2px 0; color: var(--ink); }
.nr-iw__loc { margin: 0 0 8px; font-size: 0.88rem; color: var(--muted); }
.nr-iw a { display: inline-block; font-weight: 600; color: var(--bloom-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Property card: flat, hairline border, type colour on the badge
   ========================================================================== */
.property-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color 0.15s; }
.property-card:hover, .property-card.is-active { border-color: var(--ink); }
.property-card.is-active { box-shadow: 0 0 0 3px var(--bloom-soft); }
.property-card__media { display: block; aspect-ratio: 4 / 3; background: var(--tb, var(--bloom-soft)); overflow: hidden; }
.property-card__media img { width: 100%; height: 100%; object-fit: cover; }
.badge--type { top: 12px; left: 12px; background: var(--white); color: var(--tc, var(--ink)); border: 1.5px solid var(--tc, var(--ink)); }
.badge--featured { top: 12px; right: 56px; background: var(--ink); color: #fff; }
.property-card__locate { position: absolute; z-index: 3; top: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--white); border: 1.5px solid var(--ink); border-radius: 50%; color: var(--ink); transition: background-color 0.15s, color 0.15s; }
.property-card__locate:hover { background: var(--ink); color: #fff; }
.property-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.property-card__status { margin: 0 0 6px; font-size: 0.82rem; font-weight: 600; color: var(--tc, var(--bloom-deep)); }
.property-card__price { margin: 0 0 4px; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); font-variation-settings: "wdth" 92; }
.property-card__title { font-size: 1.1rem; margin: 0 0 6px; line-height: 1.25; }
.property-card__title a:hover { color: var(--bloom-deep); }
.property-card__loc { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; color: var(--muted); font-size: 0.92rem; }
.property-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--ink-2); }
.property-card__meta li { display: inline-flex; align-items: center; gap: 6px; }
.property-card__meta .nr-i { color: var(--muted); }

/* Placeholder for listings without photos: a faint survey grid plus the type icon */
.nr-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--tc, var(--bloom));
	background:
		linear-gradient(rgba(34, 26, 51, 0.07) 1px, transparent 1px) 0 0 / 28px 28px,
		linear-gradient(90deg, rgba(34, 26, 51, 0.07) 1px, transparent 1px) 0 0 / 28px 28px,
		var(--tb, var(--bloom-soft)); }
.nr-ph .nr-i { width: 56px; height: 56px; stroke-width: 1.3; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

/* ==========================================================================
   Home: property types as a ruled index, and the "what to expect" block
   ========================================================================== */
.types { padding-top: 0; }
.index { border-top: 1.5px solid var(--ink); }
.index__row { display: grid; grid-template-columns: 44px minmax(150px, 0.8fr) minmax(0, 2fr) auto; align-items: center; gap: 22px; padding: 26px 8px; border-bottom: 1px solid var(--line); transition: background-color 0.15s, padding 0.2s; }
.index__row:hover { background: var(--white); padding-inline: 18px; }
.index__icon { color: var(--tc); }
.index__icon .nr-i { width: 32px; height: 32px; stroke-width: 1.4; }
.index__name { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 650; letter-spacing: -0.02em; color: var(--ink); font-variation-settings: "wdth" 90; }
.index__desc { font-family: var(--font-prose); font-size: 1.12rem; color: var(--muted); line-height: 1.45; }
.index__count { font-weight: 600; color: var(--tc); white-space: nowrap; }

.why { background: var(--white); border-block: 1px solid var(--line); }
.why__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.why__intro p { font-family: var(--font-prose); font-size: 1.2rem; color: var(--muted); max-width: 38ch; }
.why__list li, .values__list li { padding: 22px 0; border-top: 1px solid var(--line); }
.why__list li:first-child, .values__list li:first-child { border-top: 1.5px solid var(--ink); padding-top: 22px; }
.why__list h3, .values__list h3 { margin-bottom: 0.25em; }
.why__list p, .values__list p { margin: 0; font-family: var(--font-prose); font-size: 1.12rem; color: var(--ink-2); max-width: 52ch; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta { background: var(--ink); color: #e5def4; padding-block: clamp(48px, 6vw, 84px); }
.cta__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 22ch; }
.cta p { font-family: var(--font-prose); font-size: 1.2rem; max-width: 46ch; margin: 0; color: #cfc6e4; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ==========================================================================
   Single property
   ========================================================================== */
.prop-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; }
.prop-head h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); max-width: 20ch; margin-bottom: 0.2em; }
.prop-head__loc { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.prop-head__price { margin: 0; text-align: right; }
.prop-head__price strong { display: block; font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1; font-variation-settings: "wdth" 90; }
.prop-head__price span { color: var(--muted); font-size: 0.95rem; }

.prop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.prop-block { margin-top: clamp(32px, 4vw, 52px); }
.prop-block h2 { font-size: 1.7rem; }

.gallery__main { display: block; width: 100%; padding: 0; border: 1.5px solid var(--ink); border-radius: var(--radius-lg); overflow: hidden; background: var(--bloom-soft); aspect-ratio: 16 / 10; cursor: zoom-in; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 10px; }
.gallery__thumbs button { display: block; width: 100%; padding: 0; border: 2px solid transparent; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; opacity: 0.7; transition: opacity 0.15s, border-color 0.15s; }
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button:hover { opacity: 1; }
.gallery__thumbs button.is-active { border-color: var(--bloom); opacity: 1; }
.gallery--empty { aspect-ratio: 16 / 10; border: 1.5px solid var(--ink); border-radius: var(--radius-lg); overflow: hidden; }
.gallery--empty .nr-i { width: 84px; height: 84px; }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin: 28px 0 0; border-top: 1.5px solid var(--ink); }
.facts__item { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.88rem; font-weight: 550; }
.facts dd { margin: 4px 0 0; font-size: 1.15rem; font-weight: 650; color: var(--ink); }

.ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; }
.ticks .nr-i { color: var(--leaf); margin-top: 0.2em; }
.map-embed { border: 1.5px solid var(--ink); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 12px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.prop-side { position: sticky; top: calc(var(--header-h) + 44px); }
.side-card { background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--radius-lg); padding: clamp(20px, 2.4vw, 28px); }
.side-card h2 { font-size: 1.6rem; margin-bottom: 0.3em; }
.side-card__price { font-size: 1.1rem; color: var(--muted); margin-bottom: 16px; }
.side-card__alt { display: flex; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.side-card__alt .btn { flex: 1; }

/* ==========================================================================
   Forms
   ========================================================================== */
.nr-form__row { margin-bottom: 14px; }
.nr-form label { display: block; margin-bottom: 6px; font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.nr-form textarea { resize: vertical; min-height: 84px; }
.nr-form__note { margin: 12px 0 0; font-size: 0.82rem; color: var(--muted); }

/* ==========================================================================
   About and contact
   ========================================================================== */
.about-story__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-story__aside { border-top: 1.5px solid var(--ink); padding-top: 18px; }
.about-story__aside h2 { font-size: 1.3rem; }
.plain-list li + li { border-top: 1px solid var(--line); }
.plain-list a { display: flex; align-items: center; gap: 12px; padding: 14px 0; font-weight: 600; color: var(--ink); }
.plain-list a:hover { color: var(--bloom-deep); }

.steps__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; border-top: 1.5px solid var(--ink); }
.steps__list li { counter-increment: step; padding: 24px 24px 8px 0; }
.steps__list li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps__list li::before { content: counter(step); display: block; margin-bottom: 14px; font-size: 3rem; font-weight: 300; line-height: 1; color: var(--bloom); font-variation-settings: "wdth" 80; }
.steps__list p { font-family: var(--font-prose); font-size: 1.08rem; color: var(--ink-2); }

.values { background: var(--white); border-block: 1px solid var(--line); }
.values__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }

.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(28px, 5vw, 80px); align-items: start; }
.contact-list { border-top: 1.5px solid var(--ink); margin-bottom: 24px; }
.contact-list li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list .nr-i { width: 24px; height: 24px; color: var(--bloom); margin-top: 2px; }
.contact-list h2 { font-size: 0.9rem; font-weight: 600; letter-spacing: 0; color: var(--muted); margin: 0 0 2px; font-variation-settings: normal; }
.contact-list a, .contact-list p { font-size: 1.15rem; font-weight: 550; color: var(--ink); margin: 0; }
.contact-list a:hover { color: var(--bloom-deep); }
.contact-map { height: min(52vh, 460px); border-top: 1.5px solid var(--ink); }
.contact-map iframe { width: 100%; height: 100%; border: 0; }

.post-row { padding: 28px 0; border-bottom: 1px solid var(--line); }
.post-row h2 { font-size: 1.7rem; margin-bottom: 0.15em; }
.post-row__meta { color: var(--muted); font-size: 0.9rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #cfc6e4; padding-top: clamp(48px, 6vw, 80px); }
.cta + .site-footer { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); padding-bottom: 48px; }
.footer__brand p { margin: 18px 0; max-width: 36ch; color: #b6abd0; }
.footer__col h2 { font-size: 1rem; letter-spacing: 0; color: #fff; margin-bottom: 14px; font-variation-settings: normal; }
.footer__links li { margin-bottom: 9px; }
.footer__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .nr-i { margin-top: 0.25em; color: #a590dc; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid rgba(255, 255, 255, 0.3); border-radius: 50%; color: #fff; transition: background-color 0.15s, border-color 0.15s; }
.social a:hover { background: var(--bloom); border-color: var(--bloom); }
.contact__details .social a { border-color: var(--ink); color: var(--ink); }
.contact__details .social a:hover { color: #fff; background: var(--ink); }
.footer__bar { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: 20px; font-size: 0.86rem; color: #a99ec6; }
.footer__bar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.footer__bar p { margin: 0; }
.footer__legal { max-width: 70ch; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; background: #1f8f4e; color: #fff; border-radius: 999px; font-weight: 600; box-shadow: 0 6px 18px rgba(34, 26, 51, 0.25); transition: background-color 0.15s; }
.wa-float:hover { background: #187a42; }
.wa-float .nr-i { width: 22px; height: 22px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; background: rgba(21, 15, 33, 0.92); }
.lightbox img { max-width: min(1200px, 100%); max-height: 86vh; width: auto; border-radius: var(--radius); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, 0.12); color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.4); border-radius: 50%; width: 46px; height: 46px; font-size: 1.4rem; line-height: 1; }
.lightbox button:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; }
.lightbox__next { right: 18px; top: 50%; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1120px) {
	.explorer__grid { grid-template-columns: 1fr; }
	.view-toggle { display: inline-flex; }
	.explorer__map { position: relative; top: 0; height: 68vh; min-height: 420px; display: none; }
	.explorer__grid[data-view="map"] .explorer__map { display: block; }
	.explorer__grid[data-view="map"] .explorer__list { display: none; }
	.explorer__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.prop-layout { grid-template-columns: 1fr; }
	.prop-side { position: static; }
	.nr-filter__fields, .nr-filter__fields.no-beds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.field--grow { grid-column: 1 / -1; }
	.nr-filter__actions { grid-column: 1 / -1; }
	.trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.trust__item:nth-child(3) { padding-left: 0; border-left: 0; }
	.trust__item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.14); }
}

@media (max-width: 900px) {
	.nav-toggle { display: inline-flex; }
	.primary-nav { position: fixed; inset: var(--header-h) 0 0 0; top: var(--nav-top, 76px); display: none; flex-direction: column; align-items: stretch; gap: 20px; padding: 20px var(--gutter) 40px; background: var(--paper); overflow-y: auto; }
	.nav-open .primary-nav { display: flex; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav .menu > li > a { padding: 14px 4px; font-size: 1.15rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.primary-nav .menu-item-has-children > a::after { display: none; }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; padding: 0 0 0 14px; background: none; }
	.primary-nav .sub-menu a { padding: 11px 4px; }
	.primary-nav__cta { align-self: flex-start; }
	.hero__grid { grid-template-columns: 1fr; }
	.hero__copy h1 { max-width: 18ch; }
	.hero__plan { max-width: 480px; }
	.hero { padding-bottom: 110px; }
	.why__grid, .about-story__grid, .values__grid, .contact__grid, .cta__inner { grid-template-columns: 1fr; }
	.cta__actions { justify-content: flex-start; }
	.steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.steps__list li:nth-child(3) { padding-left: 0; border-left: 0; }
	.steps__list li:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 8px; }
	.footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer__brand { grid-column: 1 / -1; }
	.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.index__row { grid-template-columns: 36px 1fr auto; gap: 8px 16px; }
	.index__desc { grid-column: 2 / -1; grid-row: 2; }
}

@media (max-width: 600px) {
	:root { --header-h: 66px; }
	.topbar span { display: none; }
	.explorer__list, .card-grid { grid-template-columns: 1fr; }
	.nr-filter__fields, .nr-filter__fields.no-beds { grid-template-columns: 1fr; }
	.nr-filter__tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -4px; padding: 0 4px 6px; scrollbar-width: none; }
	.nr-filter__tabs .type-tab { flex: none; }
	.trust__list { grid-template-columns: 1fr; }
	.trust__item, .trust__item + .trust__item { padding: 16px 0; border-left: 0; }
	.trust__item + .trust__item { border-top: 1px solid rgba(255, 255, 255, 0.14); }
	.ticks { grid-template-columns: 1fr; }
	.steps__list { grid-template-columns: 1fr; }
	.steps__list li, .steps__list li + li { padding-left: 0; border-left: 0; }
	.steps__list li + li { border-top: 1px solid var(--line); }
	.footer__grid { grid-template-columns: 1fr; }
	.prop-head__price { text-align: left; }
	.wa-float span { display: none; }
	.wa-float { padding: 14px; }
	.hero__actions .btn { flex: 1 1 100%; }
	.finder { margin-top: -70px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
