/**
 * Bahria Enclave — Properties portal unification layer.
 *
 * Loaded AFTER zameen.css on public pages. Re-themes the portal to the
 * main community-site design system (portal.css v3): same tokens, fonts,
 * header, footer, cards, and dark mode (shared "be-theme" localStorage key).
 */

:root {
	/* Enclave Bazaar — Islamabad / Rawalpindi rebrand tokens (asset-pack spec).
	   Legacy --z-* mirror the --be-* brand so older selectors stay in sync. */
	--z-green: #0F6B4F;
	--z-green-dark: #064B3A;
	--z-green-light: #EAF6F0;
	--z-gold: #F3C550;
	--z-bg: #F8FBF9;
	--z-card: #FFFFFF;
	--z-ink: #162033;
	--z-muted: #667085;
	--z-line: #E7EAF0;

	--be-primary: #0F6B4F;
	--be-primary-strong: #064B3A;
	--be-primary-soft: #EAF6F0;
	--be-accent: #F3C550;
	--be-accent-strong: #E0AE2E;
	--be-accent-ink: #4A3708;
	--be-bg: #F8FBF9;
	--be-surface: #FFFFFF;
	--be-surface-2: #F3F8F5;
	--be-glass: rgba(255, 255, 255, 0.85);
	--be-text: #162033;
	--be-text-soft: #33415A;
	--be-text-muted: #667085;
	--be-border: #E7EAF0;
	--be-border-strong: #D6DCE6;
	--be-hero-1: #05382B;
	--be-hero-2: #064B3A;
	--be-hero-3: #0F6B4F;
	--be-hero-text: #FFFFFF;
	--be-hero-muted: rgba(255, 255, 255, 0.82);
	--be-radius-sm: 10px;
	--be-radius: 16px;
	--be-radius-lg: 24px;
	--be-radius-xl: 30px;
	--be-shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
	--be-shadow-card: 0 12px 30px rgba(16, 24, 40, 0.08);
	--be-shadow-hero-search: 0 16px 40px rgba(16, 24, 40, 0.15);
	--be-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
	--be-shadow-hover: 0 2px 4px rgba(16, 24, 40, 0.06), 0 16px 34px -10px rgba(16, 24, 40, 0.16);
	--be-ring: 0 0 0 3px rgba(15, 107, 79, 0.26);
	--be-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--be-font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
	--be-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--be-maxw: 1280px;
	color-scheme: light;
}

html[data-theme="dark"] {
	--z-green: #10B981;
	--z-green-dark: #34D399;
	--z-green-light: rgba(16, 185, 129, 0.12);
	--z-bg: #0A100E;
	--z-card: #121B17;
	--z-ink: #E9F0ED;
	--z-muted: #8DA098;
	--z-line: #223029;

	--be-primary: #22B182;
	--be-primary-strong: #3FCE9C;
	--be-primary-soft: rgba(34, 177, 130, 0.14);
	--be-accent: #F3C550;
	--be-accent-strong: #E0AE2E;
	--be-accent-ink: #4A3708;
	--be-bg: #0A100E;
	--be-surface: #121B17;
	--be-surface-2: #17211D;
	--be-glass: rgba(14, 22, 19, 0.82);
	--be-text: #E9F0ED;
	--be-text-soft: #C2CFC9;
	--be-text-muted: #8DA098;
	--be-border: #223029;
	--be-border-strong: #31443B;
	--be-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
	--be-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -8px rgba(0, 0, 0, 0.5);
	--be-shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.45), 0 18px 40px -12px rgba(0, 0, 0, 0.6);
	--be-ring: 0 0 0 3px rgba(16, 185, 129, 0.35);
	color-scheme: dark;
}

/* ── Base ── */
body.site-body {
	font-family: var(--be-font);
	background: var(--be-bg);
	color: var(--be-text);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3 { font-family: var(--be-font-display); letter-spacing: -0.02em; }

:focus-visible { outline: none; box-shadow: var(--be-ring); border-radius: 6px; }
::selection { background: var(--be-primary); color: #fff; }

.wrap { width: min(100% - 2.5rem, 1200px); margin-inline: auto; padding-left: 0; padding-right: 0; }

/* ── Header: match main-site glass header ── */
.top-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--be-glass);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	backdrop-filter: blur(14px) saturate(1.4);
	border-bottom: 1px solid var(--be-border);
	box-shadow: none;
	padding: 0;
}
.header-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: 66px;
	flex-wrap: wrap;
	padding: 0.4rem 0;
}
.logo-mark { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: inherit; }
.logo-img { width: 46px; height: 46px; display: block; flex: 0 0 auto; }
.logo-text-g { color: #3AAA35; }
.logo-z {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--be-hero-2), var(--be-hero-3));
	color: #fff;
	font-family: var(--be-font-display);
	font-weight: 800;
	font-size: 0.95rem;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.logo-text {
	font-family: var(--be-font-display);
	font-weight: 800;
	font-size: 1rem;
	color: var(--be-text);
	letter-spacing: -0.01em;
}
.logo-sub {
	display: inline-block;
	font-size: 0.72rem;
	color: var(--be-text-muted);
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-left: 0.45rem;
	background: none;
	padding: 0;
}

.header-nav { display: flex; align-items: center; gap: 0.2rem; margin-left: auto; flex-wrap: wrap; }
.nav-link {
	color: var(--be-text-soft);
	text-decoration: none;
	font-weight: 550;
	font-size: 0.85rem;
	padding: 0.5rem 0.75rem;
	border-radius: 999px;
	background: none;
	transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--be-primary); background: var(--be-primary-soft); }
.nav-link.is-active { color: var(--be-primary-strong); background: var(--be-primary-soft); font-weight: 650; }
.nav-admin {
	border: 1px solid var(--be-border-strong);
	background: var(--be-surface);
}
.nav-emergency {
	background: linear-gradient(135deg, #E5484D, #C62A2F);
	color: #fff !important;
	font-weight: 650;
	box-shadow: 0 6px 16px -6px rgba(220, 38, 38, 0.5);
}
.nav-emergency:hover { background: linear-gradient(135deg, #E5484D, #B02226); color: #fff; }
/* Header chat launcher — replaces the old Emergency button (Emergency now lives
   in the footer + as an in-chat quick action). Button element, so reset first. */
.nav-chat {
	font: inherit;
	cursor: pointer;
	border: none;
	background: linear-gradient(135deg, var(--be-primary, #0d6b4d), #094c37);
	color: #fff !important;
	font-weight: 650;
	box-shadow: 0 6px 16px -6px rgba(9, 76, 55, 0.55);
}
.nav-chat:hover { filter: brightness(1.08); color: #fff; }

/* ── Auth-aware user menu ── */
.be-user { position: relative; display: inline-flex; align-items: center; }
.be-user-btn {
	display: inline-flex; align-items: center; gap: 0.4rem;
	background: var(--be-surface); border: 1px solid var(--be-border-strong);
	border-radius: 999px; padding: 0.28rem 0.5rem 0.28rem 0.3rem; cursor: pointer;
	color: var(--be-text); font: inherit; font-size: 0.85rem; font-weight: 600;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.be-user-btn:hover { border-color: var(--be-primary); }
.be-user-avatar {
	display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none;
	border-radius: 50%; background: var(--be-primary); color: #fff;
	font-size: 0.8rem; font-weight: 800;
}
.be-user-name { max-width: 8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.be-user-drop {
	position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
	min-width: 200px; background: var(--be-surface);
	border: 1px solid var(--be-border); border-radius: 12px;
	box-shadow: var(--be-shadow-hover); padding: 0.4rem; display: grid; gap: 0.1rem;
}
/* `display:grid` above overrides the browser's [hidden]{display:none}; restore it
   so the JS toggle (drop.hidden) actually hides the menu until the button is clicked. */
.be-user-drop[hidden] { display: none; }
/* Same trap as above: `display:block` here outranks the browser's
   [hidden]{display:none}, so hidden entries (e.g. Pricing) need it restored. */
.be-user-drop a[hidden], .be-user-drop button[hidden] { display: none; }
.be-user-drop a, .be-user-drop button {
	display: block; width: 100%; text-align: left; background: none; border: 0;
	font: inherit; font-size: 0.88rem; color: var(--be-text); text-decoration: none;
	padding: 0.55rem 0.7rem; border-radius: 8px; cursor: pointer;
}
.be-user-drop a:hover, .be-user-drop button:hover { background: var(--be-primary-soft); color: var(--be-primary-strong); }
.be-user-drop #be-user-signout { color: #b02226; margin-top: 0.15rem; border-top: 1px solid var(--be-border); border-radius: 0 0 8px 8px; }
.be-user-drop #be-user-signout:hover { background: #fce8ec; color: #8b1538; }
[data-theme="dark"] .be-user-drop #be-user-signout:hover { background: rgba(220,38,38,0.15); color: #f5a3b4; }

.be-theme-toggle {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--be-border);
	background: var(--be-surface);
	color: var(--be-text-soft);
	cursor: pointer;
	transition: all 0.16s var(--be-ease);
}
.be-theme-toggle:hover { border-color: var(--be-primary); color: var(--be-primary); transform: translateY(-1px); }
.be-theme-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.be-theme-toggle .be-icon-sun { display: none; }
html[data-theme="dark"] .be-theme-toggle .be-icon-sun { display: block; }
html[data-theme="dark"] .be-theme-toggle .be-icon-moon { display: none; }

/* ── Hero: match main-site gradient hero ── */
.hero {
	position: relative;
	background:
		radial-gradient(900px 420px at 85% -10%, rgba(217, 119, 6, 0.22), transparent 60%),
		radial-gradient(700px 380px at -10% 110%, rgba(20, 184, 166, 0.16), transparent 55%),
		linear-gradient(150deg, var(--be-hero-1) 0%, var(--be-hero-2) 55%, var(--be-hero-3) 100%);
	color: var(--be-hero-text);
	padding: clamp(2.6rem, 6vw, 4.2rem) 0 clamp(2rem, 4.5vw, 3rem);
	overflow: hidden;
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 30%, transparent 78%);
	-webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 30%, transparent 78%);
	pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 {
	color: #fff;
	font-size: clamp(1.6rem, 3.8vw, 2.4rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	margin: 0 0 0.6rem;
	text-wrap: balance;
}
.hero p { color: var(--be-hero-muted); max-width: 62ch; }

.search-card {
	background: var(--be-surface);
	border: 1px solid var(--be-border);
	border-radius: var(--be-radius-lg);
	box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.45);
	padding: 1rem;
	display: grid !important;
	grid-template-columns: 1.1fr 1fr 1fr auto;
	gap: 0.8rem;
	align-items: end;
}
.search-card .field { margin: 0 !important; width: auto !important; float: none !important; }
.search-card .field input, .search-card .field select { width: 100%; }
@media (max-width: 860px) { .search-card { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .search-card { grid-template-columns: 1fr; } }

/* ── Collapsible property search (community + location + find; more on expand) ── */
.be-psearch {
	background: var(--be-surface);
	border: 1px solid var(--be-border);
	border-radius: var(--be-radius-lg);
	box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.45);
	padding: 1rem;
}
.be-psearch .field { margin: 0 !important; width: auto !important; float: none !important; }
.be-psearch .field input, .be-psearch .field select { width: 100%; }
.be-psearch-row { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(220px, 2fr) 120px; gap: 0.8rem; align-items: end; }
@media (max-width: 640px) { .be-psearch-row { grid-template-columns: 1fr; } }
.be-psearch-find { height: 44px; }
.be-psearch-toggle {
	margin-top: 0.7rem; background: none; border: 0; color: var(--be-primary);
	font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; padding: 0.2rem 0;
}
.be-psearch-toggle:hover { text-decoration: underline; }
.be-psearch .psearch-less { display: none; }
.be-psearch.is-open .psearch-more { display: none; }
.be-psearch.is-open .psearch-less { display: inline; }
.be-psearch-adv {
	margin-top: 0.6rem; padding-top: 0.9rem; border-top: 1px solid var(--be-border);
	display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.8rem;
}
.be-psearch-adv[hidden] { display: none; }
@media (max-width: 960px) { .be-psearch-adv { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .be-psearch-adv { grid-template-columns: 1fr; } }
.be-psearch-range { display: flex; align-items: center; gap: 0.4rem; }
.be-psearch-range input { min-width: 0; }
.be-psearch-range span { color: var(--be-text-muted); font-size: 0.85rem; flex: none; }
.field label { color: var(--be-text-muted); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.field input, .field select, .field textarea {
	font-family: var(--be-font);
	background: var(--be-surface-2);
	border: 1px solid var(--be-border-strong);
	border-radius: 10px;
	color: var(--be-text);
	padding: 0.65rem 0.9rem;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--be-primary); box-shadow: var(--be-ring); }

.btn-primary {
	font-family: var(--be-font);
	font-weight: 600;
	background: linear-gradient(135deg, var(--be-primary), var(--be-primary-strong));
	border: none;
	border-radius: 999px;
	color: #fff;
	padding: 0.7rem 1.4rem;
	cursor: pointer;
	box-shadow: 0 6px 16px -6px rgba(4, 120, 87, 0.55);
	transition: transform 0.18s var(--be-ease), box-shadow 0.18s var(--be-ease);
}
html[data-theme="dark"] .btn-primary { color: #06281E; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -6px rgba(4, 120, 87, 0.65); background: linear-gradient(135deg, var(--be-primary), var(--be-primary-strong)); }

.chips-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.chip {
	padding: 0.42rem 0.95rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.1);
	color: var(--be-hero-text);
	font-size: 0.85rem;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.16s var(--be-ease);
}
.chip:hover { background: rgba(255, 255, 255, 0.22); }
.chip.is-on { background: #fff; color: var(--be-hero-2); border-color: #fff; font-weight: 650; }

/* ── Listings grid ── */
.main { padding: clamp(1.6rem, 3.4vw, 2.6rem) 0 clamp(2.2rem, 4.5vw, 3.4rem); }

.section-head h2 {
	position: relative;
	padding-left: 0.9rem;
	font-size: clamp(1.3rem, 2.4vw, 1.65rem);
	color: var(--be-text);
}
.section-head h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.18em;
	bottom: 0.18em;
	width: 4px;
	border-radius: 4px;
	background: linear-gradient(180deg, var(--be-accent), var(--be-primary));
}
.muted { color: var(--be-text-muted); }

.prop-card {
	background: var(--be-surface);
	border: 1px solid var(--be-border);
	border-radius: var(--be-radius);
	box-shadow: var(--be-shadow-xs);
	overflow: hidden;
	transition: transform 0.22s var(--be-ease), box-shadow 0.22s var(--be-ease), border-color 0.22s;
}
.prop-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--be-shadow-hover);
	border-color: var(--be-primary);
}
/* Card = wrapper div; the main link fills it, the actions bar sits below
   (nested anchors are invalid, hence the split). */
.prop-card-main {
	display: flex;
	flex-direction: column;
	flex: 1;
	text-decoration: none;
	color: inherit;
}
/* ── Seller contact bar (Zameen-class, portal design language) ──
   [✉ inquiry] [WhatsApp — outlined] [Call — solid emerald]           */
.prop-card-actions {
	display: flex;
	gap: 0.45rem;
	padding: 0.65rem 0.8rem 0.8rem;
	border-top: 1px solid var(--be-border);
	background: var(--be-surface);
}
.prop-act {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	height: 38px;
	padding: 0 0.85rem;
	border-radius: 9px;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-decoration: none;
	border: 1.5px solid transparent;
	line-height: 1;
	white-space: nowrap;
	transition: transform 0.15s var(--be-ease, ease), box-shadow 0.15s, background 0.15s, filter 0.15s;
}
.prop-act:hover { transform: translateY(-1px); }
.prop-act:active { transform: translateY(0); }
.prop-act:focus-visible { outline: 2px solid var(--be-primary); outline-offset: 2px; }
.prop-act svg { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }

.prop-act-mail {
	width: 38px;
	padding: 0;
	flex: none;
	color: var(--be-text-muted, #5f6f68);
	border-color: var(--be-border);
	background: var(--be-surface);
}
.prop-act-mail:hover { color: var(--be-primary); border-color: var(--be-primary); }

.prop-act-wa {
	flex: 1;
	color: #1da851;
	border-color: rgba(37, 211, 102, 0.65);
	background: var(--be-surface);
}
.prop-act-wa:hover { background: rgba(37, 211, 102, 0.1); }

.prop-act-call {
	flex: 1.15;
	color: #fff;
	background: linear-gradient(135deg, #059669, #047857);
	box-shadow: 0 2px 8px rgba(4, 120, 87, 0.35);
}
.prop-act-call:hover { filter: brightness(1.06); box-shadow: 0 4px 12px rgba(4, 120, 87, 0.4); }

html[data-theme="dark"] .prop-act-wa { color: #34d399; background: transparent; }
html[data-theme="dark"] .prop-act-wa:hover { background: rgba(37, 211, 102, 0.14); }
html[data-theme="dark"] .prop-act-mail { background: transparent; }

/* Detail-page contact block reuses the same pills, larger. */
.detail-contact { display: flex; gap: 0.5rem; margin-top: 1rem; }
.detail-contact .prop-act { height: 46px; font-size: 0.95rem; border-radius: 12px; }
.detail-contact-number {
	margin: 0.55rem 0 0;
	font-size: 0.82rem;
	color: var(--be-text-muted, #5f6f68);
	text-align: center;
}
.detail-contact-number b { letter-spacing: 0.04em; }

.prop-card-img { background: linear-gradient(135deg, var(--be-surface-2), var(--be-bg)); }
.prop-card-img img { transition: transform 0.5s var(--be-ease); }
.prop-card:hover .prop-card-img img { transform: scale(1.05); }
.prop-badge {
	background: rgba(6, 78, 59, 0.88);
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.7rem;
	border-radius: 999px;
	padding: 0.26rem 0.66rem;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
.prop-price {
	background: rgba(255, 255, 255, 0.94);
	color: #064E3B;
	font-family: var(--be-font-display);
	font-weight: 800;
	border-radius: 10px;
	padding: 0.3rem 0.75rem;
}
.prop-title { color: var(--be-text); font-weight: 650; }
.prop-meta { color: var(--be-text-muted); }
/* Society name — always shown; we cover multiple societies so it's essential. */
.prop-society {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	color: var(--be-primary);
	background: rgba(4, 120, 87, 0.1);
	border-radius: 999px;
	padding: 0.2rem 0.6rem;
	margin-bottom: 0.4rem;
	text-transform: uppercase;
}
.detail-society {
	font-size: 0.95rem;
	color: var(--be-text-muted);
	margin: 0.1rem 0 0.9rem;
}
.detail-society strong { color: var(--be-primary); }

.empty-state {
	background: var(--be-surface);
	border: 1px dashed var(--be-border-strong);
	border-radius: var(--be-radius-lg);
	color: var(--be-text-muted);
	padding: 3rem 1.5rem;
	text-align: center;
}
.empty-state h3 { color: var(--be-text); }

/* ── Detail page ── */
.detail-gallery {
	background: var(--be-surface);
	border: 1px solid var(--be-border);
	border-radius: var(--be-radius-lg);
	box-shadow: var(--be-shadow-xs);
	overflow: hidden;
}
.detail-gallery .hero-img { background: var(--be-surface-2); }
.thumbs img { border-radius: 10px; border: 2px solid transparent; cursor: pointer; }
.thumbs img.is-feature-thumb { border-color: var(--be-primary); }
.detail-side {
	background: var(--be-surface);
	border: 1px solid var(--be-border);
	border-radius: var(--be-radius-lg);
	box-shadow: var(--be-shadow);
	padding: 1.5rem;
}
.detail-purpose {
	display: inline-block;
	background: var(--be-primary-soft);
	color: var(--be-primary-strong);
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: 999px;
	padding: 0.28rem 0.7rem;
}
.detail-price {
	font-family: var(--be-font-display);
	font-weight: 800;
	color: var(--be-primary-strong);
	font-size: 1.6rem;
	margin: 0.6rem 0 0.2rem;
}
.detail-title { color: var(--be-text); }
.spec-grid { gap: 0.6rem; }
.spec {
	background: var(--be-surface-2);
	border: 1px solid var(--be-border);
	border-radius: 10px;
	color: var(--be-text-soft);
	padding: 0.6rem 0.8rem;
}
.spec b { color: var(--be-text-muted); }
.detail-desc {
	background: var(--be-surface);
	border: 1px solid var(--be-border);
	border-radius: var(--be-radius-lg);
	box-shadow: var(--be-shadow-xs);
	padding: 1.5rem;
	margin-top: 1.2rem;
}
.detail-desc h3 { color: var(--be-text); }
.detail-desc p { color: var(--be-text-soft); }
.btn-call {
	display: block;
	text-align: center;
	background: linear-gradient(135deg, var(--be-primary), var(--be-primary-strong));
	color: #fff;
	border-radius: 999px;
	padding: 0.8rem 1.4rem;
	font-weight: 700;
	text-decoration: none;
	margin-top: 1rem;
	box-shadow: 0 6px 16px -6px rgba(4, 120, 87, 0.55);
	transition: transform 0.18s var(--be-ease), box-shadow 0.18s var(--be-ease);
}
html[data-theme="dark"] .btn-call { color: #06281E; }
.btn-call:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -6px rgba(4, 120, 87, 0.65); background: linear-gradient(135deg, var(--be-primary), var(--be-primary-strong)); }

/* ── Footer: match main-site dark footer ── */
.site-footer {
	background: linear-gradient(170deg, var(--be-hero-1), #032018 80%);
	border-top: none;
	color: rgba(242, 247, 245, 0.82);
	padding: clamp(2rem, 4.5vw, 3rem) 0 1.4rem;
	margin-top: 2rem;
	position: relative;
	overflow: hidden;
}
.site-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(700px 300px at 90% 0%, rgba(217, 119, 6, 0.1), transparent 60%);
	pointer-events: none;
}
.footer-inner { position: relative; }
.footer-brand {
	font-family: var(--be-font-display);
	font-weight: 800;
	font-size: 1.15rem;
	color: #fff;
}
.footer-muted { color: rgba(242, 247, 245, 0.6); }
.footer-link { color: rgba(242, 247, 245, 0.82); text-decoration: none; font-weight: 550; }
.footer-link:hover { color: #F5C462; }
.footer-nav-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem 1.4rem;
	margin-top: 0.8rem;
	font-size: 0.88rem;
}

/* ── Featured placement ── */
.prop-card.is-featured { border-color: rgba(217, 119, 6, 0.5); box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.25), var(--be-shadow-xs); }
.prop-badge-featured {
	background: linear-gradient(135deg, #D97706, #B45309) !important;
	top: 0.7rem;
	left: auto !important;
	right: 0.7rem;
	position: absolute;
	box-shadow: 0 4px 12px -4px rgba(180, 83, 9, 0.6);
}

/* ────────────────────────────────────────────────────────────────────────
   Elegance pass — the listing grid is the product's storefront, so it gets
   first-class polish: taller media, refined type scale, tactile meta chips,
   and a premium ring on featured cards. Three-per-row (capped in zameen.css)
   gives each card room to breathe.
   ──────────────────────────────────────────────────────────────────────── */
.prop-card { border-radius: 16px; }
.prop-card-img { height: 214px; }               /* taller, magazine-like cover */
@media (max-width: 560px) { .prop-card-img { height: 200px; } }
.prop-body { padding: 1rem 1.05rem 1.15rem; gap: 0.1rem; }
.prop-title {
	font-family: var(--be-font-display);
	font-size: 1.02rem;
	line-height: 1.32;
	letter-spacing: -0.01em;
	margin-bottom: 0.5rem;
}
.prop-card:hover .prop-title { color: var(--be-primary-strong); }
/* Meta facts as soft chips instead of loose text — reads as structured data. */
.prop-meta { gap: 0.4rem 0.45rem; margin-top: 0.6rem; }
.prop-meta span {
	background: var(--be-surface-2, rgba(4, 120, 87, 0.06));
	border: 1px solid var(--be-border);
	border-radius: 8px;
	padding: 0.24rem 0.5rem;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--be-text);
}
/* Featured cards earn a warm gradient ring so premium inventory stands out. */
.prop-card.is-featured {
	border-color: transparent;
	box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.55), 0 10px 28px -12px rgba(180, 83, 9, 0.45);
}
.prop-card.is-featured:hover {
	box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.8), var(--be-shadow-hover);
}
.prop-price { box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.4); letter-spacing: -0.01em; }
html[data-theme="dark"] .prop-price { background: rgba(18, 27, 23, 0.92); color: #6EE7B7; }
html[data-theme="dark"] .prop-meta span { background: rgba(255, 255, 255, 0.04); }

/* Posting consent — a required, prominent acknowledgement before submit. */
.ua-post-consent {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	background: var(--be-surface-2, rgba(4, 120, 87, 0.06));
	border: 1px solid var(--be-border);
	border-radius: 12px;
	padding: 0.8rem 0.9rem;
	margin: 0.4rem 0 0.9rem;
	font-size: 0.82rem;
	line-height: 1.5;
	color: var(--be-text-muted);
}
.ua-post-consent input[type="checkbox"] { margin-top: 0.2rem; flex: none; width: 1.05rem; height: 1.05rem; accent-color: var(--be-primary); }
.ua-post-consent a { color: var(--be-primary); font-weight: 600; }

/* ── Legal documents (Terms of Use, Privacy Policy) ── */
.legal-doc {
	max-width: 76ch;
	margin: 1.6rem auto 2.4rem;
	color: var(--be-text);
	line-height: 1.7;
	font-size: 0.97rem;
}
.legal-head { margin-bottom: 1.4rem; }
.legal-kicker {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--be-primary);
	background: var(--be-primary-soft);
	border-radius: 999px;
	padding: 0.2rem 0.7rem;
	margin-bottom: 0.7rem;
}
.legal-head h1 {
	font-family: var(--be-font-display);
	font-size: clamp(1.7rem, 4vw, 2.3rem);
	line-height: 1.15;
	margin: 0 0 0.4rem;
	letter-spacing: -0.02em;
}
.legal-updated { color: var(--be-text-muted); font-size: 0.85rem; margin: 0; }
.legal-callout {
	background: var(--be-primary-soft);
	border: 1px solid var(--be-border);
	border-left: 4px solid var(--be-primary);
	border-radius: 12px;
	padding: 1rem 1.15rem;
	margin: 1.4rem 0 1.8rem;
	font-size: 0.94rem;
	line-height: 1.65;
}
.legal-doc h2 {
	font-family: var(--be-font-display);
	font-size: 1.22rem;
	margin: 2rem 0 0.6rem;
	padding-top: 1.4rem;
	border-top: 1px solid var(--be-border);
	letter-spacing: -0.01em;
}
.legal-doc h3 { font-size: 1.02rem; margin: 1.2rem 0 0.4rem; color: var(--be-text); }
.legal-doc p { margin: 0.6rem 0; }
.legal-doc ul { margin: 0.6rem 0; padding-left: 1.3rem; }
.legal-doc li { margin: 0.4rem 0; }
.legal-doc a { color: var(--be-primary); font-weight: 600; }
.legal-doc a:hover { text-decoration: underline; }
.legal-foot-links {
	margin-top: 2rem;
	padding-top: 1.2rem;
	border-top: 1px solid var(--be-border);
	font-size: 0.9rem;
	color: var(--be-text-muted);
}
.footer-legal {
	max-width: 80ch;
	margin: 0.8rem auto 0;
	font-size: 0.78rem;
	line-height: 1.55;
	color: var(--be-text-muted);
	opacity: 0.85;
	text-align: center;
}
.footer-legal a { color: inherit; text-decoration: underline; }

/* ── Onboarding (role selection + profile) ── */
.ua-ob-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 760px; margin: 0 auto; }
@media (max-width: 640px) { .ua-ob-cards { grid-template-columns: 1fr; } }
.ua-ob-card {
	background: var(--be-surface);
	border: 1px solid var(--be-border);
	border-radius: var(--be-radius);
	padding: 1.4rem 1.3rem;
	box-shadow: var(--be-shadow-xs);
	display: flex;
	flex-direction: column;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.ua-ob-card:hover { border-color: var(--be-primary); box-shadow: var(--be-shadow-hover); transform: translateY(-2px); }
.ua-ob-ico { font-size: 2.2rem; line-height: 1; margin-bottom: 0.5rem; }
.ua-ob-card h3 { margin: 0 0 0.3rem; font-size: 1.12rem; }
.ua-ob-perks { list-style: none; padding: 0; margin: 0.7rem 0 1.1rem; flex: 1; }
.ua-ob-perks li { position: relative; padding-left: 1.3rem; margin: 0.35rem 0; font-size: 0.88rem; color: var(--be-text-soft); }
.ua-ob-perks li::before { content: "✓"; position: absolute; left: 0; color: var(--be-primary); font-weight: 800; }
.ua-ob-formwrap { max-width: 620px; margin: 0 auto; }
.ua-ob-back { display: inline-block; margin-bottom: 0.6rem; }
.ua-ob-check { display: flex; align-items: flex-start; gap: 0.5rem; margin: 0.8rem 0; font-size: 0.9rem; color: var(--be-text-soft); }
.ua-ob-check input { margin-top: 0.15rem; flex: none; }

/* ── Role badge + package summary strip ── */
.ua-role-badge {
	display: inline-block; margin-top: 0.35rem;
	font-size: 0.7rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase;
	color: var(--be-primary); background: rgba(4, 120, 87, 0.1);
	border-radius: 999px; padding: 0.2rem 0.6rem;
}
.ua-plan {
	display: flex; flex-wrap: wrap; align-items: center; gap: 1.3rem;
	background: var(--be-surface); border: 1px solid var(--be-border);
	border-radius: var(--be-radius); padding: 0.9rem 1.2rem; margin: 0.4rem 0 1rem;
}
.ua-plan-item { display: flex; flex-direction: column; gap: 0.15rem; }
.ua-plan-k { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--be-text-muted); }
.ua-plan-v { font-size: 0.98rem; font-weight: 700; }
.ua-plan-cta { margin-left: auto; font-weight: 700; color: var(--be-primary); text-decoration: none; white-space: nowrap; }
.ua-plan-cta:hover { text-decoration: underline; }
.ua-limit-note {
	background: #fff8e6; color: #8a5a00; border: 1px solid #f0d98a;
	border-radius: 10px; padding: 0.7rem 0.9rem; font-size: 0.86rem; margin: 0.6rem 0 0;
}
[data-theme="dark"] .ua-limit-note { background: rgba(217, 119, 6, 0.14); color: #f5c462; border-color: rgba(217, 119, 6, 0.4); }

/* ── User account (ua) ── */
.ua-head { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; margin: 1.4rem 0 0.6rem; }
.ua-title { margin: 0 0 0.2rem; font-size: clamp(1.4rem, 2.8vw, 1.9rem); }
.ua-quota { display: flex; align-items: center; gap: 0.8rem; }
.ua-quota-ring {
	display: grid;
	place-items: center;
	min-width: 78px;
	height: 78px;
	border-radius: 50%;
	border: 3px solid var(--be-primary);
	background: var(--be-primary-soft);
	font-family: var(--be-font-display);
	font-weight: 800;
	font-size: 1.25rem;
	color: var(--be-primary-strong);
}
.ua-quota-label { font-size: 0.82rem; color: var(--be-text-muted); line-height: 1.4; }
.ua-quota-label em { font-style: normal; font-size: 0.74rem; opacity: 0.8; }
.ua-actions { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin: 0.8rem 0; }
.ua-actions .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.ua-signout {
	margin-left: auto;
	background: none;
	border: 1px solid var(--be-border-strong);
	border-radius: 999px;
	color: var(--be-text-muted);
	font-family: var(--be-font);
	font-size: 0.82rem;
	padding: 0.45rem 1rem;
	cursor: pointer;
}
.ua-signout:hover { border-color: #C62A2F; color: #C62A2F; }
.ua-verified-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	margin-left: 0.4rem;
	font-size: 0.68rem;
	font-weight: 700;
	color: var(--be-primary-strong);
	background: var(--be-primary-soft);
	border-radius: 999px;
	padding: 0.12rem 0.5rem;
	text-transform: none;
	letter-spacing: 0;
}
.ua-verify-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	background: var(--be-primary);
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 0.5rem 0.9rem;
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
	transition: filter 0.15s, transform 0.15s;
}
.ua-verify-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.ua-verify-btn[hidden] { display: none; }
.ua-input-verified {
	background: var(--be-primary-soft) !important;
	border-color: var(--be-primary) !important;
	color: var(--be-primary-strong) !important;
	font-weight: 700;
	cursor: default;
}
.ua-link-btn {
	background: none;
	border: 1px solid var(--be-border-strong);
	border-radius: 999px;
	color: var(--be-text-muted);
	font-family: var(--be-font);
	font-weight: 600;
	font-size: 0.78rem;
	padding: 0.4rem 0.9rem;
	cursor: pointer;
	transition: all 0.15s;
}
.ua-link-btn:hover { border-color: var(--be-primary); color: var(--be-primary); }
.ua-link-btn.is-danger:hover { border-color: #C62A2F; color: #C62A2F; }
.ua-feat-btn {
	background: linear-gradient(135deg, #D97706, #B45309);
	border: none;
	border-radius: 999px;
	color: #fff;
	font-family: var(--be-font);
	font-weight: 650;
	font-size: 0.8rem;
	padding: 0.4rem 0.9rem;
	cursor: pointer;
	box-shadow: 0 6px 14px -6px rgba(180, 83, 9, 0.6);
	transition: transform 0.16s var(--be-ease);
}
.ua-feat-btn:hover { transform: translateY(-1px); }

/* Modals */
.ua-modal {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: min(8vh, 70px) 1rem 1rem;
	background: rgba(5, 20, 14, 0.55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	overflow-y: auto;
}
.ua-modal[hidden] { display: none; }
.ua-modal-panel {
	position: relative;
	width: min(560px, 100%);
	background: var(--be-surface);
	border: 1px solid var(--be-border);
	border-radius: var(--be-radius-lg);
	box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.4);
	padding: 1.8rem;
	margin-bottom: 2rem;
}
.ua-modal-panel h2 { margin: 0 0 0.2rem; font-size: 1.3rem; }
.ua-modal-sub { margin: 0 0 1.1rem; font-size: 0.88rem; }
.ua-modal-x {
	position: absolute;
	top: 0.8rem;
	right: 0.9rem;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid var(--be-border);
	background: var(--be-surface-2);
	color: var(--be-text-muted);
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
}
.ua-field { margin: 0.8rem 0; }
.ua-field label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--be-text-muted); margin-bottom: 0.3rem; }
.ua-field input, .ua-field select, .ua-field textarea {
	width: 100%;
	font-family: var(--be-font);
	background: var(--be-surface-2);
	border: 1px solid var(--be-border-strong);
	border-radius: 10px;
	color: var(--be-text);
	padding: 0.6rem 0.85rem;
	font-size: 0.92rem;
}
.ua-field textarea { resize: vertical; }
.ua-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.ua-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
@media (max-width: 560px) { .ua-2col, .ua-3col { grid-template-columns: 1fr; } }
.ua-seg { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.ua-seg button {
	flex: 1;
	min-width: 100px;
	padding: 0.55rem 0.8rem;
	border-radius: 999px;
	border: 1px solid var(--be-border-strong);
	background: var(--be-surface-2);
	color: var(--be-text-soft);
	font-family: var(--be-font);
	font-weight: 600;
	font-size: 0.85rem;
	cursor: pointer;
}
.ua-seg button.is-on { background: var(--be-primary); border-color: var(--be-primary); color: #fff; }
.ua-photo-previews { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.6rem; }
.ua-photo-previews img {
	width: 84px;
	height: 84px;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid var(--be-border);
}
.ua-photo-previews img.is-cover { outline: 2px solid var(--be-primary); outline-offset: 1px; }
.ua-error { color: #C62A2F; background: #FEF2F2; border: 1px solid #FECACA; border-radius: 10px; font-size: 0.85rem; padding: 0.6rem 0.9rem; margin: 0.8rem 0; }
.ua-ok { color: #0d4a2c; background: #e8f5ee; border: 1px solid #b8dcc8; border-radius: 10px; font-size: 0.88rem; padding: 0.7rem 0.9rem; margin: 0.8rem 0; }
.ua-feat-steps { display: grid; gap: 1rem; margin: 1rem 0; }
.ua-feat-step { display: flex; gap: 0.8rem; align-items: flex-start; }
.ua-feat-num {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--be-primary-soft);
	color: var(--be-primary-strong);
	font-weight: 800;
	font-size: 0.8rem;
	flex-shrink: 0;
	margin-top: 0.1rem;
}
.ua-feat-number { color: var(--be-primary-strong); font-family: var(--be-font-display); }

/* ── Pricing ── */
.be-price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 0.4rem 0 1rem; }
.be-price-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--be-surface);
	border: 1px solid var(--be-border);
	border-radius: var(--be-radius-lg);
	box-shadow: var(--be-shadow-xs);
	padding: 1.4rem 1.5rem;
	transition: transform 0.18s var(--be-ease), box-shadow 0.18s var(--be-ease);
}
.be-price-card:hover { transform: translateY(-3px); box-shadow: var(--be-shadow-hover); }
.be-price-card.is-popular { border-color: var(--be-primary); box-shadow: 0 0 0 1px var(--be-primary), var(--be-shadow); }
.be-price-card.is-recommended { border-color: var(--be-accent, #D97706); box-shadow: 0 0 0 2px var(--be-accent, #D97706), var(--be-shadow-hover); }
.be-price-flag--rec { background: linear-gradient(135deg, #047857, #065F46); }
.be-price-limit { font-size: 0.85rem; color: var(--be-text-soft); margin: -0.3rem 0 0.7rem; }
.be-price-limit strong { color: var(--be-text); font-size: 1.05rem; }
.be-price-note { font-size: 0.74rem; color: var(--be-text-muted); margin: 0 0 0.8rem; }
.be-price-card li.is-locked { color: var(--be-text-muted); opacity: 0.7; }
.be-price-card li.is-locked::before { content: "🔒"; font-size: 0.7em; top: 0.15em; }
.be-price-flag {
	position: absolute;
	top: -0.7rem;
	left: 1.2rem;
	background: linear-gradient(135deg, #D97706, #B45309);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border-radius: 999px;
	padding: 0.24rem 0.7rem;
}
.be-price-card h3 { margin: 0 0 0.3rem; font-size: 1.05rem; color: var(--be-text); }
.be-price-amount { font-family: var(--be-font-display); font-weight: 800; font-size: 1.6rem; color: var(--be-primary-strong); margin-bottom: 0.7rem; }
.be-price-amount span { font-size: 0.8rem; font-weight: 550; color: var(--be-text-muted); margin-left: 0.3rem; }
.be-price-card ul { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: 0.35rem; flex: 1; }
.be-price-card li { position: relative; padding-left: 1.3rem; font-size: 0.86rem; color: var(--be-text-soft); }
.be-price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--be-primary); font-weight: 800; }
.be-price-cta { text-align: center; text-decoration: none !important; }

/* ── Payment page ── */
.be-pay-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.2rem; align-items: start; }
@media (max-width: 860px) { .be-pay-layout { grid-template-columns: 1fr; } }
.be-pay-card {
	background: var(--be-surface);
	border: 1px solid var(--be-border);
	border-radius: var(--be-radius-lg);
	box-shadow: var(--be-shadow-xs);
	padding: 1.4rem 1.5rem;
}
.be-pay-summary { display: flex; flex-direction: column; gap: 0.15rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--be-border-strong); margin-bottom: 1rem; }
.be-pay-summary strong { font-size: 1.1rem; color: var(--be-text); }
.be-pay-amount { font-family: var(--be-font-display); font-weight: 800; font-size: 1.7rem; color: var(--be-primary-strong); }
.be-pay-steps { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.55rem; color: var(--be-text-soft); font-size: 0.92rem; }
.be-pay-number { color: var(--be-primary-strong); font-family: var(--be-font-display); font-size: 1.05em; }

/* ── Error boxes ── */
.error-box {
	background: var(--be-surface);
	border: 1px solid var(--be-border);
	border-radius: var(--be-radius-lg);
	color: var(--be-text);
}

/* ── Motion prefs ── */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

@media (max-width: 640px) {
	.header-nav { gap: 0.1rem; }
	.nav-link { font-size: 0.8rem; padding: 0.45rem 0.55rem; }
	.logo-sub { display: none; }

	/* 16px form controls prevent iOS focus-zoom */
	input[type="text"], input[type="search"], input[type="email"], input[type="tel"],
	input[type="number"], input[type="password"], select, textarea { font-size: 16px !important; }
}

/* ────────────────────────────────────────────────────────────
   Wanted board — residents looking to rent/buy (auth-gated contact)
   ──────────────────────────────────────────────────────────── */
.wa-hero .wa-kicker { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em;
	color: var(--be-accent); background: rgba(217, 118, 6, 0.14); padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.wa-hero-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.wa-hero-link { color: var(--be-hero-muted); text-decoration: none; font-weight: 600; }
.wa-hero-link:hover { color: var(--be-hero-text); }
.wa-main { padding-top: 26px; }

.wa-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.wa-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
	border: 1px solid var(--be-border); background: var(--be-surface); color: var(--be-text-soft);
	font-weight: 650; font-size: 0.9rem; text-decoration: none; transition: all 0.18s var(--be-ease); }
.wa-tab:hover { border-color: var(--be-primary); color: var(--be-primary); }
.wa-tab.is-on { background: var(--be-primary); border-color: var(--be-primary); color: #fff; }
.wa-tab span { font-size: 0.78rem; background: rgba(0,0,0,0.08); padding: 1px 8px; border-radius: 999px; }
.wa-tab.is-on span { background: rgba(255,255,255,0.22); }

.wa-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.wa-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px;
	background: var(--be-surface); border: 1px solid var(--be-border); border-radius: var(--be-radius-lg);
	box-shadow: var(--be-shadow); transition: transform 0.18s var(--be-ease), box-shadow 0.18s var(--be-ease); }
.wa-card:hover { transform: translateY(-3px); box-shadow: var(--be-shadow-hover); }
.wa-card-top { display: flex; justify-content: space-between; align-items: center; }
.wa-ribbon { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase;
	color: #fff; background: var(--be-primary); padding: 4px 10px; border-radius: 8px; }
.wa-ribbon.is-rent { background: var(--be-accent); }
.wa-when { font-size: 0.78rem; color: var(--be-text-muted); }
.wa-card-title { font-family: var(--be-font-display); font-size: 1.12rem; font-weight: 750;
	color: var(--be-text); line-height: 1.3; margin: 2px 0 0; }
.wa-budget { font-size: 1.02rem; font-weight: 800; color: var(--be-primary-strong); }
:root[data-theme="dark"] .wa-budget { color: var(--be-primary); }
.wa-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 2px 0; padding: 0;
	font-size: 0.86rem; color: var(--be-text-soft); }
.wa-card-desc { font-size: 0.88rem; color: var(--be-text-muted); line-height: 1.5; margin: 0;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wa-card-foot { margin-top: auto; padding-top: 8px; }
.wa-contact { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wa-reveal { padding: 9px 16px; font-size: 0.9rem; }
.wa-contact-note { font-size: 0.76rem; color: var(--be-text-muted); }
.wa-revealed { display: flex; gap: 10px; flex-wrap: wrap; }

.wa-empty { text-align: center; padding: 60px 20px; }
.wa-empty-ic { font-size: 2.6rem; }

/* Reveal modal */
.wa-modal { position: fixed; inset: 0; z-index: 120; background: rgba(8, 24, 18, 0.55);
	display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.wa-modal[hidden] { display: none; }
.wa-modal-card { position: relative; width: 100%; max-width: 420px; background: var(--be-surface);
	border: 1px solid var(--be-border); border-radius: var(--be-radius-lg); padding: 26px 24px;
	box-shadow: var(--be-shadow-hover); text-align: center; }
.wa-modal-x { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 1.1rem;
	color: var(--be-text-muted); cursor: pointer; }
.wa-modal-ic { font-size: 2rem; }
.wa-modal-card h3 { margin: 6px 0 4px; font-family: var(--be-font-display); }
.wa-modal-card .muted { color: var(--be-text-muted); font-size: 0.88rem; }
.wa-field { display: flex; flex-direction: column; gap: 6px; text-align: left; margin: 14px 0; }
.wa-field span { font-size: 0.82rem; font-weight: 650; color: var(--be-text-soft); }
.wa-field input { padding: 11px 13px; border: 1px solid var(--be-border-strong); border-radius: 10px;
	font: inherit; background: var(--be-surface); color: var(--be-text); }
.wa-modal-card .btn-primary { width: 100%; }
#wa-recaptcha { margin: 4px 0 12px; display: flex; justify-content: center; }
.wa-err { color: #c0392b; font-size: 0.85rem; margin: 10px 0 0; }
.wa-link { color: var(--be-primary); font-weight: 600; font-size: 0.85rem; }
@media (max-width: 520px) { .wa-grid { grid-template-columns: 1fr; } }

/* ──────────────────────────────────────────────────────────
   Listing card refresh — Zameen/Bayut/Zillow pattern:
   price is the hero (compact) in the body, a beds·baths·area
   spec strip, a subtle location line, colour-coded purpose.
   ────────────────────────────────────────────────────────── */
.prop-card { display: flex; flex-direction: column; border-radius: 16px; }
.prop-card-img { position: relative; }
.prop-card-noimg { display: grid; place-items: center; height: 100%; font-size: 2.6rem;
  background: linear-gradient(135deg, var(--be-surface-2), var(--be-bg)); color: var(--be-border-strong); }
/* Purpose badge → top-left; Featured stays top-right */
.prop-card .prop-badge:not(.prop-badge-featured) { position: absolute; top: 0.7rem; left: 0.7rem; right: auto; }
.prop-badge-rent { background: rgba(37, 99, 168, 0.92) !important; }
.prop-badge-purchase { background: rgba(217, 119, 6, 0.94) !important; }

.prop-body { padding: 0.85rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.28rem; }
.prop-price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.prop-body .prop-price { position: static; background: none; box-shadow: none; padding: 0; border-radius: 0;
  font-family: var(--be-font-display); font-weight: 800; font-size: 1.32rem; line-height: 1.1;
  color: var(--be-primary-strong); letter-spacing: -0.02em; }
html[data-theme="dark"] .prop-body .prop-price { color: #6EE7B7; }
.prop-price-per { font-size: 0.8rem; font-weight: 600; color: var(--be-text-muted); }
.prop-title { margin: 0.1rem 0 0; font-size: 0.96rem; font-weight: 700; color: var(--be-text); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.prop-loc { font-size: 0.82rem; color: var(--be-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop-specs { display: flex; margin-top: 0.55rem; border: 1px solid var(--be-border); border-radius: 10px;
  background: var(--be-surface-2); overflow: hidden; }
.prop-spec { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 8px 6px; border-right: 1px solid var(--be-border); min-width: 0; }
.prop-spec:last-child { border-right: 0; }
.prop-spec-ic { font-size: 0.92rem; line-height: 1; }
.prop-spec span:not(.prop-spec-ic) { font-size: 0.78rem; color: var(--be-text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop-spec b { font-size: 0.86rem; font-weight: 800; color: var(--be-text); }
.prop-spec-type { flex: 1.5; }
/* even card heights: main stretches, actions pinned to the base */
.prop-card-actions { margin-top: auto; }

/* ── Favourite (♥) button + buyer dashboard ── */
.prop-card { position: relative; }
.prop-fav { position: absolute; top: 10px; right: 10px; z-index: 4; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,0.92); color: #9aa6a0; font-size: 1.15rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(8,30,22,0.18); transition: transform .15s var(--be-ease), color .15s; }
.prop-fav:hover { transform: scale(1.1); color: #e0245e; }
.prop-fav.is-on { color: #e0245e; }
:root[data-theme="dark"] .prop-fav { background: rgba(18,27,23,0.92); }
.detail-toprow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.detail-fav { position: static; width: auto; height: 34px; border-radius: 999px; padding: 0 14px; gap: 6px;
  display: inline-flex; align-items: center; font-size: 0.85rem; font-weight: 700; border: 1px solid var(--be-border);
  background: var(--be-surface); color: var(--be-text-soft); box-shadow: none; }
.detail-fav.is-on { color: #e0245e; border-color: #f3b6c6; }

.ua-ob-card-buyer { border: 2px solid var(--be-primary); box-shadow: var(--be-shadow); }
.ua-b-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 18px 0 26px; }
.ua-b-tile { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: var(--be-radius);
  border: 1px solid var(--be-border); background: var(--be-surface); text-decoration: none; color: var(--be-text);
  cursor: pointer; text-align: left; font: inherit; transition: transform .15s var(--be-ease), border-color .15s; }
.ua-b-tile:hover { transform: translateY(-3px); border-color: var(--be-primary); }
.ua-b-tile span { font-size: 1.6rem; }
.ua-b-tile b { font-size: 0.95rem; }
.ua-b-tile small { font-size: 0.78rem; color: var(--be-text-muted); }
.ua-b-sec { margin: 26px 0; }
.ua-b-sec h2 { font-size: 1.1rem; margin: 0 0 12px; }
.ua-b-req { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--be-border); border-radius: 12px; background: var(--be-surface); margin-bottom: 10px; }
.ua-pill { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: 2px 8px; border-radius: 6px; background: var(--be-surface-2); color: var(--be-text-muted); }
.ua-pill-live { background: var(--be-primary); color: #fff; }
.ua-pill-pending { background: #f0ad4e; color: #3a2600; }
.ua-pill-rejected { background: #d9534f; color: #fff; }
.ua-b-fav .prop-card-noimg { display: grid; place-items: center; height: 100%; font-size: 2rem; background: linear-gradient(135deg, var(--be-surface-2), var(--be-bg)); }

.ua-b-sell-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 26px; padding: 16px 18px; border: 1px dashed var(--be-border-strong); border-radius: 14px; background: var(--be-primary-soft); }
.ua-b-sell-cta > div { flex: 1; min-width: 220px; }
.ua-b-sell-cta b { font-family: var(--be-font-display); }
.ua-b-sell-cta span:first-child { font-size: 1.2rem; }

.ua-ob-back { display: inline-block; margin-bottom: 10px; color: var(--be-primary); font-weight: 600; text-decoration: none; font-size: .92rem; }
.ua-ob-back:hover { text-decoration: underline; }

/* ============ Skeleton loading (content placeholders) ============ */
/* Facebook-style skeleton screens + per-image shimmer. Shared by Properties +
   Bazaar (both load this stylesheet). Space is already reserved, so nothing here
   shifts layout. Driven by img-loader.js; degrades to plain content with JS off. */
:root { --be-skel-base: #e2e5ea; --be-skel-sheen: rgba(255, 255, 255, 0.7); }
:root[data-theme="dark"] { --be-skel-base: #27302c; --be-skel-sheen: rgba(255, 255, 255, 0.07); }
@keyframes be-img-shimmer { 100% { transform: translateX(100%); } }
@keyframes be-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Per-image shimmer while a real photo loads (cards, hero, thumbs). */
.is-loading { position: relative; overflow: hidden; background: var(--be-skel-base); }
.is-loading::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--be-skel-sheen), transparent);
  transform: translateX(-100%); animation: be-img-shimmer 1.25s ease-in-out infinite;
}
img.img-fade { opacity: 0; transition: opacity 0.45s var(--be-ease, ease); }
img.img-fade.is-ready { opacity: 1; }
.is-imgerror::after { animation: none; content: none; }

/* Full skeleton cards shown until the page finishes loading. */
html.be-loading [data-skel] > :not(.be-skel) { display: none !important; }
html:not(.be-loading) .be-skel { display: none !important; }
[data-skel] { min-height: 140px; }
.be-skel { pointer-events: none; }
.be-sk { position: relative; overflow: hidden; background: var(--be-skel-base); border-radius: 8px; }
.be-sk::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--be-skel-sheen), transparent);
  transform: translateX(-100%); animation: be-img-shimmer 1.25s ease-in-out infinite;
}
/* Card skeleton (property / goods) — mirrors the real card frame. */
.be-skel-card { background: var(--be-card, var(--z-card, #fff)); border: 1px solid var(--be-border, var(--z-border, #e6e6e6)); border-radius: 16px; overflow: hidden; }
.be-skel-card .be-sk-img { height: 210px; border-radius: 0; }
.be-skel-card .be-sk-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.be-sk-bar { height: 13px; }
.be-sk-row { display: flex; gap: 8px; margin-top: 4px; }
.be-sk-pill { height: 30px; flex: 1; border-radius: 8px; }
/* Row skeleton (services directory) — mirrors .bz-dir-card. */
.be-skel-row { display: flex; align-items: center; gap: 14px; background: var(--z-card, #fff); border: 1px solid var(--z-border, #e6e6e6); border-radius: 12px; padding: 14px 16px; }
.be-skel-row .be-sk-av { width: 58px; height: 58px; border-radius: 50%; flex: 0 0 auto; }
.be-skel-row .be-sk-body { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.be-skel-row .be-sk-btn { width: 74px; height: 38px; border-radius: 9px; flex: 0 0 auto; }
/* Reveal: real items rise/fade in once loading ends. */
[data-skel].be-reveal > :not(.be-skel) { animation: be-fade-in 0.4s var(--be-ease, ease) both; }

@media (prefers-reduced-motion: reduce) {
  .is-loading::after, .be-sk::after { animation: none; }
  img.img-fade { transition: none; }
  [data-skel].be-reveal > :not(.be-skel) { animation: none; }
}

/* ============ Mobile app promotion band ============ */
.app-promo { margin: 34px 0 8px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(135deg, #0b4a2f 0%, #0d6b4d 55%, #10855f 100%); color: #fff; }
.app-promo__inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  padding: 26px 30px; max-width: 1180px; margin: 0 auto; }
.app-promo__copy { flex: 1 1 340px; min-width: 0; }
.app-promo__eyebrow { margin: 0 0 6px; font-size: .7rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: #9ee7c4; }
.app-promo__title { margin: 0 0 8px; font-size: 1.6rem; line-height: 1.15; letter-spacing: -.4px;
  text-wrap: balance; color: #fff; }
.app-promo__sub { margin: 0 0 14px; font-size: .95rem; line-height: 1.5; color: #d8f0e5; max-width: 54ch; }
.app-promo__points { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.app-promo__points li { display: inline-flex; align-items: center; gap: 7px; font-weight: 700;
  font-size: .88rem; color: #eafaf3; }
.app-promo__actions { display: flex; gap: 12px; flex-wrap: wrap; flex: 0 0 auto; }
.app-store-btn { display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
  background: #0a0a0a; color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: 12px;
  padding: 10px 18px; transition: transform .15s var(--be-ease, ease), box-shadow .15s; }
.app-store-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.app-store-btn:focus-visible { outline: 3px solid #9ee7c4; outline-offset: 2px; }
.app-store-btn svg { width: 26px; height: 26px; flex: 0 0 auto; }
.app-store-btn span { display: flex; flex-direction: column; line-height: 1.1; }
.app-store-btn small { font-size: .62rem; letter-spacing: .04em; opacity: .82; }
.app-store-btn strong { font-size: 1rem; font-weight: 700; }
@media (max-width: 720px) {
  .app-promo__inner { padding: 22px 20px; gap: 18px; }
  .app-promo__title { font-size: 1.3rem; }
  .app-promo__actions { width: 100%; }
  .app-store-btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .app-store-btn:hover { transform: none; } }

/* ============ Payment account block (revealed after sign-in) ============ */
.be-pay-accounts { margin: .5rem 0 0; padding: .7rem .9rem; border: 1px dashed var(--be-border);
  border-radius: 10px; background: var(--be-surface-2); }
.be-pay-accounts__msg { margin: 0; font-size: .85rem; }
.be-pay-accounts__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.be-pay-accounts__list li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.be-pay-accounts__list span { flex: 1 1 190px; font-size: .8rem; color: var(--be-text-soft); }
.be-pay-accounts__list strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .95rem; letter-spacing: .02em; }
.be-copy { border: 1px solid var(--be-border); background: var(--be-surface); border-radius: 7px;
  font-size: .72rem; font-weight: 600; padding: .2rem .55rem; cursor: pointer; color: var(--be-text-soft); }
.be-copy:hover { border-color: var(--be-primary); color: var(--be-primary); }
