/*
Theme Name: D17 Islamabad
Theme URI: https://d17islamabad.com
Author: D17 Islamabad Team
Description: Real estate, directory and news theme for D17 Islamabad. Properties, projects, shops, interactive D-17 sector map, map PDFs and a "List your property" form — all managed from the dashboard.
Version: 1.1.2
Requires at least: 6.0
Tested up to: 6.8
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: d17
*/

/* ---------- Tokens ---------- */
:root {
	--pine: #0E3B2E;
	--pine-2: #165A45;
	--pine-dark: #0B2E24;
	--amber: #F2B33D;
	--amber-soft: #F7CB72;
	--ink: #12211B;
	--muted: #4B5B55;
	--line: #E2E7E3;
	--mist: #F4F6F3;
	--mint: #E6F3EA;
	--white: #FFFFFF;
	--wa: #177A43;
	--wa-bright: #25D366;
	--danger: #A1301C;
	--radius: 16px;
	--radius-lg: 24px;
	--shadow: 0 14px 34px rgba(11, 46, 36, .10);
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--display: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--gap: clamp(16px, 3vw, 24px);
	--section: clamp(56px, 8vw, 96px);
	--header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	overflow-x: hidden;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	padding-bottom: env(safe-area-inset-bottom, 0px);
}
body img, body svg, body video, body iframe { max-width: 100%; }
body img { height: auto; display: block; }
body a { color: var(--pine-2); text-underline-offset: 2px; }
body a:hover { color: var(--pine); }
body h1, body h2, body h3, body h4 { font-family: var(--display); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; overflow-wrap: anywhere; }
body p { margin: 0 0 1em; }
body button, body input, body select, body textarea { font: inherit; color: inherit; }
body :focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
body .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body .skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--amber); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
body .skip-link:focus { top: 12px; }
body .container { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
@media (min-width: 640px) { body .container { padding-left: 24px; padding-right: 24px; } }
body .narrow { max-width: 860px; }
body .center { text-align: center; margin-top: 32px; }
body .muted { color: var(--muted); }
body .small { font-size: 14px; }
body .h3 { font-size: clamp(20px, 2.4vw, 24px); }
body .h4 { font-size: 18px; }
body .site-main { display: block; outline: none; }
body .section { padding-top: var(--section); }
body .section-last { padding-bottom: var(--section); }
body .section-tight { padding-top: 32px; padding-bottom: var(--section); }
body .hide-sm { display: none !important; }
@media (min-width: 720px) { body .hide-sm { display: inline-flex !important; } }

/* ---------- Buttons ---------- */
body .btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 20px; border-radius: 12px;
	font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center;
	text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
	-webkit-tap-highlight-color: transparent;
}
body .btn:active { transform: translateY(1px); }
body .btn-sm { min-height: 44px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
body .btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
body .btn-block { width: 100%; }
body .btn-primary { background: var(--pine); color: var(--white); }
body .btn-primary:hover { background: var(--pine-2); color: var(--white); }
body .btn-accent { background: var(--amber); color: var(--ink); }
body .btn-accent:hover { background: var(--amber-soft); color: var(--ink); }
body .btn-dark { background: var(--pine); color: var(--white); }
body .btn-dark:hover { background: var(--pine-dark); color: var(--white); }
body .btn-outline { background: var(--white); color: var(--pine); border-color: var(--pine); }
body .btn-outline:hover { background: var(--mist); color: var(--pine); }
body .btn-ghost { background: transparent; color: var(--pine); border-color: #CBD5CF; }
body .btn-ghost:hover { background: var(--mist); color: var(--pine); }
body .btn-wa { background: var(--wa); color: var(--white); }
body .btn-wa:hover { background: #12643A; color: var(--white); }
body .btn[disabled], body .btn.is-busy { opacity: .7; cursor: progress; }
body .btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
body .icon-btn { flex: 0 0 auto; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
body .link-arrow { font-weight: 700; color: var(--pine); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
body .link-arrow::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); }
body .link-arrow.light { color: var(--amber-soft); }

/* ---------- Top bar & header ---------- */
body .topbar { background: var(--pine); color: #E7EFEA; font-size: 14px; }
body .topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; min-height: 40px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
body .topbar-info, body .topbar-links { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; min-width: 0; }
body .topbar span, body .topbar a { display: inline-flex; align-items: center; gap: 6px; }
body .topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
body .topbar-info > span:first-child { min-width: 0; }
@media (max-width: 420px) { body .topbar-info { display: none; } body .topbar-inner { justify-content: center; } }

body .site-header { position: sticky; top: 0; z-index: 100; background: #FFFFFF; border-bottom: 1px solid var(--line); }
body.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { body.admin-bar .site-header { top: 32px; } }
@media (max-width: 600px) { body.admin-bar .site-header { top: 0; } }
body .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
body .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--pine); min-width: 0; }
body .brand-logo img { max-height: 56px; width: auto; }
body .brand-mark { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--pine); color: var(--amber); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 15px; }
body .brand-text { display: flex; flex-direction: column; min-width: 0; }
body .brand-name { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .brand-tag { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

body .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); color: var(--pine); cursor: pointer; flex: 0 0 auto; }
body .nav-toggle-close { display: none; }
body.nav-open .nav-toggle-open { display: none; }
body.nav-open .nav-toggle-close { display: inline-flex; }

body .site-nav { position: fixed; left: 0; right: 0; top: var(--nav-top, 112px); bottom: 0; z-index: 99; background: var(--white); padding: 16px max(16px, env(safe-area-inset-left)) calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; display: none; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); }
body.nav-open .site-nav { display: flex; }
body.nav-open { overflow: hidden; }
body .site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
body .site-nav .menu a { display: flex; align-items: center; min-height: 52px; padding: 0 8px; font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
body .site-nav .menu a:hover, body .site-nav .current-menu-item > a { color: var(--pine-2); }
body .site-nav .sub-menu { list-style: none; margin: 0; padding: 0 0 0 16px; }
body .site-nav .sub-menu a { font-size: 16px; font-weight: 500; min-height: 46px; }
body .nav-cta { margin-top: 8px; }

@media (min-width: 1100px) {
	body .nav-toggle { display: none; }
	body .site-nav { position: static; display: flex !important; flex-direction: row; align-items: center; gap: 20px; padding: 0; background: none; border: 0; overflow: visible; }
	body .site-nav .menu { flex-direction: row; gap: 4px 18px; flex-wrap: wrap; }
	body .site-nav .menu > li { position: relative; }
	body .site-nav .menu a { min-height: 44px; padding: 0; font-size: 15px; font-weight: 500; border: 0; }
	body .site-nav .current-menu-item > a { font-weight: 700; color: var(--pine); }
	body .site-nav .sub-menu { display: none; position: absolute; top: 100%; left: -16px; min-width: 220px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 8px 16px; box-shadow: var(--shadow); }
	body .site-nav li:hover > .sub-menu, body .site-nav li:focus-within > .sub-menu { display: block; }
	body .nav-cta { margin: 0; min-height: 44px; }
	body.nav-open { overflow: auto; }
}

/* ---------- Hero ---------- */
body .hero { position: relative; background: var(--pine); color: var(--white); overflow: hidden; isolation: isolate; }
body .hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 14px, transparent 14px 28px); }
body .hero-bg { position: absolute; inset: 0; z-index: -2; }
body .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
body .hero.has-image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,46,36,.92) 0%, rgba(11,46,36,.75) 55%, rgba(11,46,36,.45) 100%); }
body .hero-inner { padding-top: clamp(48px, 9vw, 104px); padding-bottom: clamp(80px, 11vw, 136px); }
body .hero-copy { max-width: 680px; }
body .hero-badge { display: inline-block; background: rgba(242,179,61,.16); color: var(--amber-soft); font-weight: 700; font-size: 13px; letter-spacing: .02em; padding: 8px 14px; border-radius: 999px; margin-bottom: 18px; }
body .hero h1 { font-size: clamp(34px, 6.4vw, 60px); font-weight: 800; line-height: 1.06; letter-spacing: -.02em; margin-bottom: 18px; }
body .hero-text { font-size: clamp(16px, 2.2vw, 19px); color: #D3E3DA; max-width: 580px; margin-bottom: 28px; }
body .hero-search { background: var(--white); color: var(--ink); border-radius: 18px; padding: 8px; display: grid; grid-template-columns: 1fr; gap: 6px; box-shadow: 0 20px 40px rgba(0,0,0,.18); max-width: 640px; }
body .hs-field { display: flex; flex-direction: column; padding: 8px 12px; font-size: 12px; font-weight: 700; color: var(--muted); min-width: 0; }
body .hs-field select { border: 0; background: transparent; font-size: 16px; font-weight: 600; color: var(--ink); padding: 4px 0; min-height: 34px; width: 100%; cursor: pointer; }
body .hs-field select:focus-visible { outline: none; }
body .hs-field:focus-within { background: var(--mist); border-radius: 12px; }
body .hero-search .btn { min-height: 52px; }
@media (min-width: 640px) {
	body .hero-search { grid-template-columns: 1fr 1fr auto; align-items: stretch; }
	body .hs-field + .hs-field { border-left: 1px solid var(--line); }
	body .hero-search .btn { padding: 0 26px; height: auto; }
}

/* ---------- Quick links ---------- */
body .quick { position: relative; z-index: 2; margin-top: -48px; }
body .quick-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { body .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { body .quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
body .quick-card { display: flex; flex-direction: column; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px; text-decoration: none; color: var(--ink); box-shadow: 0 6px 20px rgba(11,46,36,.06); transition: transform .2s ease, box-shadow .2s ease; }
body .quick-card .icon { color: var(--pine-2); }
body .quick-card strong { font-family: var(--display); font-size: 18px; }
body .quick-card span { color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (hover: hover) { body .quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); } }

/* ---------- Section heads ---------- */
body .section-head { margin-bottom: 24px; max-width: 680px; }
body .kicker { color: var(--pine-2); font-weight: 700; font-size: 14px; margin: 0 0 8px; }
body .kicker-light { color: var(--amber-soft); }
body .section-title { font-size: clamp(28px, 4.2vw, 40px); font-weight: 800; letter-spacing: -.02em; margin: 0; }
body .section-text { color: var(--muted); font-size: 17px; margin: 12px 0 0; }
body .section-bar { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
body .section-bar .section-head { margin-bottom: 0; }

/* ---------- Chips ---------- */
body .chips { display: flex; flex-wrap: wrap; gap: 8px; }
body .chips-scroll { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 24px; mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
body .chips-scroll::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { body .chips-scroll { flex-wrap: wrap; overflow: visible; mask-image: none; -webkit-mask-image: none; } }
body .chip { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid #CBD5CF; background: var(--white); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; }
body .chip:hover { border-color: var(--pine); color: var(--pine); }
body .chip.is-active, body .chip[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: var(--white); }

/* ---------- Cards ---------- */
body .card-grid { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
@media (min-width: 640px) { body .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { body .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } body .card-grid.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { body .layout-main .card-grid.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

body .thumb { position: relative; background-color: #DCE5DF; background-image: repeating-linear-gradient(135deg, rgba(14,59,46,.06) 0 12px, transparent 12px 24px); overflow: hidden; }
body .thumb img { width: 100%; height: 100%; object-fit: cover; }
body .ratio-3-2 { aspect-ratio: 3 / 2; }
body .ratio-16-9 { aspect-ratio: 16 / 9; }
body .rounded { border-radius: var(--radius); margin-bottom: 24px; }
body .thumb .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #6E8A7C; }
@supports not (aspect-ratio: 1) { body .ratio-3-2 { height: 0; padding-top: 66.66%; } body .ratio-16-9 { height: 0; padding-top: 56.25%; } body .thumb img { position: absolute; inset: 0; } }

body .p-card, body .n-card, body .s-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; min-width: 0; transition: transform .2s ease, box-shadow .2s ease; }
@media (hover: hover) { body .p-card:hover, body .n-card:hover, body .s-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); } }
body .p-card-media, body .n-card-media, body .s-card-media { position: relative; display: block; }
body .badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
body .badge { display: inline-flex; align-items: center; background: var(--pine); color: var(--white); font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 8px; }
body .badge-light { background: rgba(255,255,255,.94); color: var(--pine); }
body .badge-sold { background: var(--danger); color: var(--white); }
body .p-card-body, body .n-card-body, body .s-card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
@media (min-width: 640px) { body .p-card-body, body .n-card-body, body .s-card-body { padding: 20px; } }
body .p-card-date, body .n-card-meta { font-size: 13px; color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
body .p-card-title, body .n-card-title, body .s-card-title { font-size: 18px; font-weight: 700; margin: 0; line-height: 1.35; }
body .p-card-title a, body .n-card-title a, body .s-card-title a { color: var(--ink); text-decoration: none; }
body .p-card-title a:hover, body .n-card-title a:hover, body .s-card-title a:hover { color: var(--pine-2); }
body .p-card-loc { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 0; }
body .p-card-loc .icon { flex: 0 0 auto; margin-top: 3px; }
body .p-card-specs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; font-weight: 500; }
body .p-card-specs li { display: inline-flex; gap: 6px; align-items: center; }
body .p-card-specs .icon { color: var(--pine-2); }
body .p-card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid #EEF1EF; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
body .price { font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--pine); }
body .price-lg { font-size: clamp(22px, 3vw, 28px); }
body .n-card-excerpt, body .s-card-text { color: var(--muted); font-size: 15px; margin: 0; }
body .tag { display: inline-flex; align-self: flex-start; background: var(--mint); color: var(--pine); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin: 0; }
body .tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
body .s-card .btn-row { margin-top: auto; padding-top: 8px; }
body .empty-filter { margin-top: 16px; color: var(--muted); }
body .empty-box { background: var(--mist); border-radius: 20px; padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
body .empty-box p { margin: 0; }

/* ---------- Map ---------- */
body .map-band { background: var(--pine); color: var(--white); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: 1fr; }
@media (min-width: 960px) { body .map-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
body .map-copy { padding: clamp(28px, 5vw, 56px); }
body .map-copy .section-title { color: var(--white); margin-bottom: 14px; }
body .lead-light { color: #D3E3DA; font-size: 17px; }
body .pdf-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
body .pdf-link { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.35); color: var(--white); text-decoration: none; }
body .pdf-link:hover { background: rgba(255,255,255,.08); color: var(--white); }
body .pdf-link .icon { flex: 0 0 auto; color: var(--amber-soft); }
body .pdf-link span { display: flex; flex-direction: column; min-width: 0; }
body .pdf-link small { color: #C2D6CB; font-size: 13px; }
body .map-stage { background: #E8EFEA; color: var(--ink); padding: clamp(16px, 3vw, 28px); display: flex; flex-direction: column; align-items: center; gap: 16px; }
body .sector-svg { width: 100%; max-width: 420px; height: auto; touch-action: manipulation; }
body .sector { fill: var(--fill, #CFE3D6); stroke: var(--pine); stroke-width: 2; stroke-linejoin: round; cursor: pointer; transition: fill .15s ease, opacity .15s ease; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { body .sector:hover { opacity: .8; } }
body .sector:focus { outline: none; }
body .sector:focus-visible, body .sector.is-active { fill: var(--amber); }
body .sector-labels { pointer-events: none; font-family: var(--display); font-weight: 800; fill: var(--pine); text-anchor: middle; }
body .sector-buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
body .sector-buttons .chip { background: var(--white); border-color: #B9CCC1; color: var(--pine); font-size: 14px; padding: 0 14px; }

/* ---------- Modal ---------- */
body .modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; padding: 0; }
body .modal[hidden] { display: none; }
body .modal-backdrop { position: absolute; inset: 0; background: rgba(8, 28, 22, .6); }
body .modal-panel { position: relative; width: 100%; max-height: 88vh; max-height: 88dvh; background: var(--white); border-radius: 22px 22px 0 0; display: flex; flex-direction: column; box-shadow: 0 -10px 40px rgba(0,0,0,.25); animation: sheetUp .22s ease-out; }
body .modal-panel[hidden] { display: none; }
@media (min-width: 720px) {
	body .modal { align-items: center; padding: 24px; }
	body .modal-panel { max-width: 620px; max-height: 86vh; border-radius: 22px; animation: popIn .18s ease-out; }
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes popIn { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
body .modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 20px 12px; border-bottom: 1px solid var(--line); }
body .modal-head h3 { font-size: clamp(22px, 3vw, 26px); margin: 0; }
body .modal-head .kicker { margin-bottom: 4px; }
body .modal-body { padding: 16px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; flex: 1; }
body .modal-foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
body .modal-foot .btn { flex: 1 1 180px; }
body.modal-open { overflow: hidden; }

/* ---------- Directory tiles ---------- */
body .cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
body .cat-tile { display: flex; flex-direction: column; gap: 2px; background: var(--mist); border-radius: 16px; padding: 18px 20px; text-decoration: none; color: var(--ink); font-weight: 700; min-height: 72px; justify-content: center; transition: background-color .15s ease; }
body .cat-tile small { color: var(--muted); font-weight: 500; }
body .cat-tile:hover { background: var(--mint); color: var(--pine); }

/* ---------- News ---------- */
body .news-grid { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
@media (min-width: 900px) { body .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } body .news-lead { grid-row: span 4; } }
body .news-lead { background: var(--pine); color: var(--white); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
body .news-lead-media { display: block; }
body .news-lead-body { padding: clamp(20px, 3vw, 28px); }
body .news-lead h3 { font-size: clamp(22px, 3vw, 26px); }
body .news-lead h3 a { color: var(--white); text-decoration: none; }
body .news-lead p { color: #D3E3DA; }
body .news-lead .n-card-meta { color: var(--amber-soft); }
body .news-mini { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
body .news-mini h3 { font-size: 17px; margin: 4px 0 0; }
body .news-mini h3 a { color: var(--ink); text-decoration: none; }
body .news-mini h3 a:hover { color: var(--pine-2); }

/* ---------- Marketing / About / CTA ---------- */
body .split { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 960px) { body .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; } }
body .split .section-head { margin-bottom: 20px; }
body .tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
body .tile { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
body .tile strong { font-family: var(--display); font-size: 17px; }
body .tile span { color: var(--muted); font-size: 15px; }
body .about-band { background: var(--mist); border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 56px); display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 900px) { body .about-band { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; } }
body .about-band .section-head { margin-bottom: 0; }
body .check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
body .check-list li { display: flex; gap: 10px; align-items: flex-start; background: var(--white); border-radius: 14px; padding: 14px 16px; font-weight: 600; }
body .check-list .icon { flex: 0 0 auto; color: var(--pine-2); margin-top: 2px; }
body .check-list.compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
body .check-list.compact li { background: var(--mist); padding: 10px 14px; font-weight: 500; }
body .cta-band { background: var(--amber); border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 48px); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
body .cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); color: var(--ink); margin-bottom: 6px; }
body .cta-band p { margin: 0; color: #3A3014; }
body .cta-band .btn { flex: 0 0 auto; }
@media (max-width: 520px) { body .cta-band .btn { width: 100%; } }

/* ---------- Inner page hero ---------- */
body .page-hero { background: var(--pine); color: var(--white); padding: clamp(32px, 6vw, 64px) 0; }
body .page-hero h1 { font-size: clamp(28px, 5vw, 46px); font-weight: 800; letter-spacing: -.02em; margin: 0; }
body .page-hero p { color: #D3E3DA; font-size: clamp(15px, 2vw, 18px); max-width: 720px; margin: 12px 0 0; }
body .crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: #C2D6CB; margin-bottom: 12px; }
body .crumbs a { color: #E7EFEA; }
body .crumbs span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* ---------- Layouts with sidebar ---------- */
body .layout-sidebar, body .layout-detail { display: grid; grid-template-columns: 1fr; gap: 24px; padding-top: 24px; padding-bottom: var(--section); align-items: start; }
body .layout-main, body .layout-aside, body .filters { min-width: 0; }
@media (min-width: 1000px) {
	body .layout-sidebar { grid-template-columns: 300px minmax(0, 1fr); gap: 32px; padding-top: 40px; }
	body .form-layout { grid-template-columns: minmax(0, 1fr) 320px; }
	body .form-layout .filters { order: 2; position: sticky; top: calc(var(--header-h) + 24px); }
	body .layout-detail { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; padding-top: 40px; }
	body .sticky-aside { position: sticky; top: calc(var(--header-h) + 24px); }
}
body .filters { display: flex; flex-direction: column; gap: 16px; }
body .filters-box { border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
body .filters-box summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 20px; font-family: var(--display); font-weight: 800; font-size: 17px; }
body .filters-box summary::-webkit-details-marker { display: none; }
body .filters-box summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--pine); border-bottom: 2px solid var(--pine); transform: rotate(45deg); transition: transform .2s ease; margin-top: -4px; }
body .filters-box[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
body .filters-form { display: flex; flex-direction: column; gap: 14px; padding: 0 20px 20px; }
body .side-cta { background: var(--mist); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
body .side-cta p { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
body .side-cta.dark { background: var(--pine); color: #D3E3DA; }
body .side-cta.dark strong { color: var(--white); font-family: var(--display); font-size: 18px; }
body .big-phone { color: var(--amber-soft); font-weight: 800; font-size: 22px; text-decoration: none; }
body .result-count { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
body .legacy { margin-top: 48px; }

/* ---------- Single property ---------- */
body .gallery { margin-bottom: 20px; }
body .gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: #DCE5DF; aspect-ratio: 16 / 10; }
body .gallery-main img { width: 100%; height: 100%; object-fit: cover; }
body .gallery-empty { border-radius: var(--radius); margin-bottom: 20px; }
body .gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
body .gal-prev { left: 10px; }
body .gal-next { right: 10px; }
body .gal-count { position: absolute; right: 12px; bottom: 12px; background: rgba(11,46,36,.85); color: var(--white); font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
body .gallery-thumbs { list-style: none; margin: 10px 0 0; padding: 0 0 4px; display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
body .gallery-thumbs button { display: block; width: 84px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
body .gallery-thumbs button.is-active { border-color: var(--amber); }
body .gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
body .price-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
body .detail-box { border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 24px); margin-bottom: 20px; }
body .spec-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; margin: 0; }
body .spec-list div { background: var(--mist); border-radius: 12px; padding: 12px 14px; min-width: 0; }
body .spec-list dt { font-size: 13px; font-weight: 700; color: var(--muted); }
body .spec-list dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
body .contact-card { border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; background: var(--white); }
body .contact-title { font-family: var(--display); font-weight: 800; font-size: 18px; margin: 0 0 4px; }
body .embed { position: relative; aspect-ratio: 16 / 9; }
body .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }

/* ---------- Articles ---------- */
body .article { padding-top: 32px; }
body .entry { font-size: 17px; line-height: 1.7; overflow-wrap: break-word; }
body .entry > *:last-child { margin-bottom: 0; }
body .entry h2 { font-size: clamp(22px, 3vw, 28px); margin-top: 1.6em; }
body .entry h3 { font-size: clamp(19px, 2.4vw, 22px); margin-top: 1.4em; }
body .entry h4 { font-size: 17px; margin: 1.2em 0 .4em; color: var(--pine); }
body .entry ul, body .entry ol { padding-left: 1.3em; }
body .entry li { margin-bottom: .4em; }
body .entry img { border-radius: 12px; }
body .entry table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
body .entry th, body .entry td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; white-space: nowrap; }
body .entry iframe { width: 100%; border: 0; }
body .entry figure { margin: 1.5em 0; max-width: 100%; }
body .entry .wp-block-image img { height: auto; }
body .entry blockquote { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--amber); color: var(--muted); }
body .entry pre { overflow-x: auto; }
body .alignwide, body .alignfull { margin-left: 0; margin-right: 0; }
body .aligncenter { margin-left: auto; margin-right: auto; }
body .wp-caption, body .wp-caption-text { max-width: 100%; font-size: 14px; color: var(--muted); }
body .mini-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; margin-bottom: 24px; }
body .mini-gallery img { border-radius: 12px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
body .share-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
body .post-navigation { margin-top: 32px; }
body .post-navigation .nav-links { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { body .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } body .post-navigation .nav-next { text-align: right; } }
body .post-navigation a { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--ink); font-weight: 600; height: 100%; }
body .comments { margin-top: 40px; }
body .comment-list { padding-left: 0; list-style: none; }
body .comment-list .children { list-style: none; padding-left: 16px; }
body .comment-body { border-bottom: 1px solid var(--line); padding: 16px 0; }
body .comment-form input:not([type=checkbox]):not([type=submit]), body .comment-form textarea { width: 100%; }
body .comment-form input[type=submit] { min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0; background: var(--pine); color: var(--white); font-weight: 700; cursor: pointer; }

/* ---------- Forms ---------- */
body .field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: #2C3D36; min-width: 0; }
body .field b { color: var(--danger); }
body .field input, body .field select, body .field textarea, body .search-form input, body .comment-form input:not([type=checkbox]):not([type=submit]), body .comment-form textarea {
	width: 100%; min-height: 48px; border: 1.5px solid #CBD5CF; border-radius: 10px; padding: 0 14px;
	font-size: 16px; font-weight: 400; color: var(--ink); background: var(--white); -webkit-appearance: none; appearance: none;
}
body .field select { background-image: linear-gradient(45deg, transparent 50%, var(--pine) 50%), linear-gradient(135deg, var(--pine) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
body .field textarea, body .comment-form textarea { padding: 12px 14px; min-height: 130px; resize: vertical; }
body .field input:focus, body .field select:focus, body .field textarea:focus { outline: 3px solid rgba(242,179,61,.55); outline-offset: 0; border-color: var(--pine); }
body .field input.is-invalid, body .field select.is-invalid { border-color: var(--danger); }
body .check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 10px 0; font-size: 15px; font-weight: 500; cursor: pointer; }
body .check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--pine); }
body .check b { color: var(--danger); }
body .listing-form { display: flex; flex-direction: column; gap: 20px; }
body .card-box { border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 28px); margin: 0; background: var(--white); min-width: 0; }
body .card-box legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font-family: var(--display); font-weight: 800; font-size: 20px; }
body .card-box legend + * { clear: both; }
body .grid-fields { display: grid; grid-template-columns: 1fr; gap: 14px; clear: both; }
@media (min-width: 600px) { body .grid-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body .grid-fields.small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) { body .grid-fields.small { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
body .grid-fields.align-end { align-items: end; }
body .check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 0 16px; clear: both; }
body .dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed #B9CCC1; border-radius: 16px; padding: 28px 16px; background: #F8FAF8; text-align: center; color: var(--pine-2); cursor: pointer; margin-bottom: 12px; clear: both; }
body .dropzone:focus-within { outline: 3px solid var(--amber); }
body .dz-title { font-weight: 700; font-size: 16px; color: var(--pine); }
body .dz-help { font-size: 13px; color: var(--muted); }
body .dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
body .photo-msg { font-size: 14px; font-weight: 600; color: var(--pine-2); margin: 0 0 8px; }
body .photo-msg.is-error { color: var(--danger); }
body .photo-preview { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
body .photo-preview li { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--mist); }
body .photo-preview img { width: 100%; height: 100%; object-fit: cover; }
body .listing-form .card-box > .field + .field, body .listing-form .card-box > .field + .check { margin-top: 14px; }
body .submit-box { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
body .submit-box .btn { width: 100%; }
@media (min-width: 600px) { body .submit-box .btn { width: auto; } }
body .form-error { color: var(--danger); font-weight: 600; margin: 0; }
body .hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
body .notice { border-radius: 18px; padding: 20px 22px; margin-bottom: 20px; }
body .notice p:last-child { margin-bottom: 0; }
body .notice-ok { background: var(--mint); }
body .notice-ok h2 { font-size: 22px; }
body .notice-error { background: #FCE9E5; color: #6E1F11; font-weight: 600; }
body .steps h2 { margin-bottom: 12px; }
body .step-list { margin: 0; padding-left: 1.2em; display: grid; gap: 12px; font-size: 15px; }
body .intro-entry { margin-bottom: 20px; }
body .search-form { display: flex; gap: 8px; max-width: 560px; width: 100%; }
body .search-form input { flex: 1; min-width: 0; }
body .search-form .btn { flex: 0 0 auto; width: 52px; padding: 0; }
body .search-again { margin-bottom: 24px; width: 100%; }

/* ---------- Pagination ---------- */
body .pagination, body .navigation.pagination { margin-top: 32px; }
body .nav-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
body .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
body .page-numbers.current { background: var(--pine); border-color: var(--pine); color: var(--white); }
body .page-numbers.dots { border: 0; }

/* ---------- Footer ---------- */
body .site-footer { background: var(--pine-dark); color: #C9DBD1; margin-top: var(--section); }
body.home .site-footer { margin-top: 0; }
body .footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding-top: 56px; padding-bottom: 32px; }
@media (min-width: 640px) { body .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { body .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
body .footer-brand { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--white); margin-bottom: 10px; }
body .footer-title { font-weight: 700; color: var(--white); margin-bottom: 12px; }
body .site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
body .site-footer a { color: #E2ECE6; text-decoration: none; }
body .site-footer a:hover { color: var(--amber-soft); }
body .social { display: flex; flex-wrap: wrap; gap: 8px 16px; }
body .social a { color: var(--amber-soft); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
body .contact-list li { display: flex; gap: 10px; align-items: flex-start; }
body .contact-list .icon { flex: 0 0 auto; margin-top: 3px; color: var(--amber-soft); }
body .footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }
@media (min-width: 720px) { body .footer-bottom { padding-bottom: 28px; } }
body .below-content { padding-top: 32px; }

/* ---------- Floating WhatsApp ---------- */
body .wa-fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 900; display: flex; align-items: center; gap: 10px; text-decoration: none; }
body .wa-dot { position: relative; width: 58px; height: 58px; border-radius: 50%; background: var(--wa-bright); color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(11,46,36,.35); transition: transform .2s ease; }
body .wa-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa-bright); animation: waPulse 2.4s ease-out infinite; }
body .wa-tip { display: none; background: var(--white); color: var(--ink); font-weight: 600; font-size: 14px; padding: 10px 14px; border-radius: 999px; box-shadow: 0 6px 18px rgba(11,46,36,.18); }
@media (min-width: 720px) { body .wa-fab { right: 24px; bottom: 24px; } body .wa-tip { display: inline-block; } body .wa-dot { width: 60px; height: 60px; } }
@media (hover: hover) { body .wa-fab:hover .wa-dot { transform: scale(1.07); } }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
body.modal-open .wa-fab, body.nav-open .wa-fab { display: none; }

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	body .topbar, body .site-header, body .wa-fab, body .site-footer, body .filters, body .layout-aside, body .share-row, body .gal-nav { display: none !important; }
	body .page-hero { background: none; color: #000; }
	body .page-hero p, body .crumbs { color: #333; }
}

/* ---------- Guard against plugin Bootstrap styles ---------- */
body .modal-backdrop { z-index: 0; opacity: 1; width: auto; height: auto; }
body .modal-panel { z-index: 1; }
body .field, body .check, body .hs-field, body .dropzone { margin-bottom: 0; }
body .btn:focus, body .btn:active { box-shadow: none; }
body .btn-primary:hover, body .btn-primary:focus, body .btn-primary:active, body .btn-dark:focus, body .btn-dark:active { background: var(--pine-2) !important; border-color: transparent !important; color: var(--white) !important; }
body .btn-accent:focus, body .btn-accent:active { background: var(--amber-soft) !important; border-color: transparent !important; color: var(--ink) !important; }
body .btn-wa:focus, body .btn-wa:active { background: #12643A !important; border-color: transparent !important; color: var(--white) !important; }
body .btn-outline:focus, body .btn-outline:active { background: var(--mist) !important; border-color: var(--pine) !important; color: var(--pine) !important; }
body .badge { line-height: 1.2; vertical-align: baseline; }

/* ---------- 1.1.1 refinements ---------- */
@media (min-width: 1000px) { body .layout-detail .layout-aside { align-self: stretch; } }
body .entry p:empty, body .entry > p:first-child:empty { display: none; }
body .entry > :first-child { margin-top: 0; }
@media (max-width: 999px) { body .layout-sidebar:not(.form-layout) .side-cta { display: none; } }
