/*
Theme Name: Property Hub
Theme URI: https://www.property-hub.ae
Author: Property Hub Real Estate
Author URI: https://www.property-hub.ae
Description: Bespoke luxury real estate theme for Property Hub Real Estate (UAE). Property listings with advanced search and map view, agents, off-plan projects, careers, WhatsApp-first lead generation, mortgage calculator and SEO-friendly listing URLs. Everything is editable from the WordPress dashboard.
Version: 1.0.0
Requires at least: 6.4
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: property-hub
Update URI: false
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--ph-black: #0D0D0D;
	--ph-charcoal: #1A1A1A;
	--ph-charcoal-2: #222222;
	--ph-gold-light: #F3D27A;
	--ph-gold: #C9962B;
	--ph-bronze: #8A5A12;
	--ph-gold-grad: linear-gradient(135deg, #F3D27A 0%, #C9962B 50%, #8A5A12 100%);
	--ph-gold-grad-h: linear-gradient(90deg, #8A5A12 0%, #C9962B 30%, #F3D27A 50%, #C9962B 70%, #8A5A12 100%);
	--ph-white: #FFFFFF;
	--ph-ink: #111111;
	--ph-cream: #F8F6F1;
	--ph-muted: #A9A49B;
	--ph-muted-dark: #5E5A54;
	--ph-line: rgba(201, 150, 43, .28);
	--ph-line-soft: rgba(255, 255, 255, .08);
	--ph-line-ink: rgba(17, 17, 17, .1);
	--ph-success: #3FA36B;
	--ph-danger: #D2544B;
	--ph-wa: #25D366;

	--ff-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ff-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--ff-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	--container: 1320px;
	--gutter: 16px;
	--header-h: 76px;
	--radius: 3px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--shadow: 0 18px 40px -18px rgba(0, 0, 0, .45);
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 88px; } }

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html.menu-open, html.lightbox-open { overflow: hidden; }
body {
	margin: 0;
	background: var(--ph-black);
	color: var(--ph-white);
	font-family: var(--ff-body);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
img, video, iframe, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--ph-gold-light); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--ph-gold); outline-offset: 3px; }
::selection { background: var(--ph-gold); color: var(--ph-black); }

.screen-reader-text, .sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--ph-gold); color: var(--ph-black); padding: 10px 16px; font-weight: 600; }
.skip-link:focus { top: 16px; color: var(--ph-black); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 880px; }

/* ==========================================================================
   3. Typography helpers
   ========================================================================== */
.text-gold {
	background: var(--ph-gold-grad);
	-webkit-background-clip: text; background-clip: text;
	color: transparent;
}
.eyebrow {
	display: inline-flex; align-items: center; gap: 12px;
	font-family: var(--ff-head); font-size: 12px; font-weight: 600;
	letter-spacing: .28em; text-transform: uppercase; color: var(--ph-gold);
	margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--ph-gold-grad); }
.section-title {
	font-family: var(--ff-serif); font-weight: 600;
	font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.08; letter-spacing: -.01em;
	margin-bottom: .35em;
}
.section-lead { color: var(--ph-muted); max-width: 640px; font-size: 1.05rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 44px; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }

.prose { font-size: 1.05rem; color: inherit; }
.prose > *:first-child { margin-top: 0; }
.prose h2, .prose h3 { font-family: var(--ff-serif); font-weight: 600; margin-top: 1.6em; }
.prose h2 { font-size: 2rem; }
.prose h3 { font-size: 1.55rem; }
.prose a { color: var(--ph-gold); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.5em 0; padding: .5em 0 .5em 24px; border-left: 2px solid var(--ph-gold); font-family: var(--ff-serif); font-size: 1.4rem; font-style: italic; }
.prose img { border-radius: var(--radius); }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: .85rem; color: var(--ph-muted); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--ph-line); text-align: left; }
.prose ul li::marker { color: var(--ph-gold); }

/* ==========================================================================
   4. Signature diagonal gold lines
   ========================================================================== */
.ph-lines { position: relative; isolation: isolate; }
.ph-lines::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 600' preserveAspectRatio='xMidYMid slice'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23F3D27A'/%3E%3Cstop offset='.5' stop-color='%23C9962B'/%3E%3Cstop offset='1' stop-color='%238A5A12'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)' stroke-width='1.3'%3E%3Cpath d='M0 120 L470 0'/%3E%3Cpath d='M0 240 L330 0' opacity='.7'/%3E%3Cpath d='M0 330 L210 0'/%3E%3Cpath d='M0 60 L250 0' opacity='.5'/%3E%3Cpath d='M1000 380 L560 600'/%3E%3Cpath d='M1000 270 L740 600' opacity='.7'/%3E%3Cpath d='M1000 190 L830 600'/%3E%3Cpath d='M1000 480 L700 600' opacity='.5'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat;
	opacity: .55;
}
.ph-lines--soft::before { opacity: .3; }

.ph-divider { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 var(--gutter); }
.ph-divider::before, .ph-divider::after { content: ""; flex: 1; max-width: 420px; height: 1px; background: linear-gradient(90deg, transparent, var(--ph-gold)); }
.ph-divider::after { transform: scaleX(-1); }
.ph-divider span { width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid var(--ph-gold); }

/* ==========================================================================
   5. Buttons
   ========================================================================== */
.btn {
	position: relative; overflow: hidden;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 14px 26px; min-height: 48px;
	border: 1px solid transparent; border-radius: var(--radius);
	font-family: var(--ff-head); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
	line-height: 1; white-space: nowrap; cursor: pointer;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--gold { background: var(--ph-gold-grad); background-size: 140% 140%; color: var(--ph-black); }
.btn--gold::after {
	content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
	background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .55), transparent);
	transform: skewX(-20deg); transition: left .6s var(--ease);
}
.btn--gold:hover { color: var(--ph-black); transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(201, 150, 43, .7); }
.btn--gold:hover::after { left: 130%; }
.btn--outline { border-color: var(--ph-gold); color: var(--ph-gold-light); background: transparent; }
.btn--outline:hover { background: var(--ph-gold); color: var(--ph-black); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost-light:hover { border-color: var(--ph-gold); color: var(--ph-gold-light); }
.btn--dark { background: var(--ph-black); color: #fff; }
.btn--dark:hover { background: var(--ph-charcoal); color: var(--ph-gold-light); }
.btn--wa { background: var(--ph-wa); color: #fff; }
.btn--wa:hover { background: #1ebe5b; color: #fff; transform: translateY(-2px); }
.btn--sm { padding: 10px 16px; min-height: 40px; font-size: 11.5px; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-head); font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ph-gold); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ==========================================================================
   6. Header
   ========================================================================== */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--header-h);
	display: flex; align-items: center;
	background: linear-gradient(180deg, rgba(13, 13, 13, .75), rgba(13, 13, 13, 0));
	transition: background-color .35s var(--ease), box-shadow .35s, height .35s;
}
.site-header.is-scrolled { background: rgba(13, 13, 13, .94); box-shadow: 0 1px 0 var(--ph-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img, .brand .custom-logo { height: 46px; width: auto; }
@media (min-width: 768px) { .brand img, .brand .custom-logo { height: 56px; } }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.header-phone { display: none; align-items: center; gap: 8px; font-family: var(--ff-head); font-size: 13px; font-weight: 600; letter-spacing: .05em; margin-right: 8px; }
.header-phone svg { width: 16px; height: 16px; color: var(--ph-gold); }
@media (min-width: 1100px) { .header-phone { display: inline-flex; } }
.site-header .btn--gold { display: none; }
@media (min-width: 600px) { .site-header .btn--gold { display: inline-flex; } }
.menu-toggle {
	display: inline-flex; align-items: center; gap: 10px;
	background: none; border: 1px solid var(--ph-line); border-radius: var(--radius);
	padding: 0 14px; height: 44px;
	font-family: var(--ff-head); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
	transition: border-color .25s, color .25s;
}
.menu-toggle svg { width: 24px; height: 24px; color: var(--ph-gold); }
.menu-toggle:hover { border-color: var(--ph-gold); color: var(--ph-gold-light); }
.menu-toggle__label { display: none; }
@media (min-width: 480px) { .menu-toggle__label { display: inline; } }

/* ==========================================================================
   7. Full-screen mega menu
   ========================================================================== */
.mega {
	position: fixed; inset: 0; z-index: 100;
	background: rgba(10, 10, 10, .985);
	display: flex; flex-direction: column;
	overflow-y: auto; overscroll-behavior: contain;
	opacity: 0; visibility: hidden;
	transition: opacity .45s var(--ease), visibility 0s linear .45s;
}
.mega.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
.mega__top { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.mega__close svg { width: 22px; height: 22px; }
.mega__nav { flex: 1; display: flex; align-items: center; padding-top: 24px; padding-bottom: 32px; }
.mega__columns { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: 1fr; gap: 8px 0; }
.mega__columns > li {
	padding: 18px 0; border-bottom: 1px solid var(--ph-line-soft);
	opacity: 0; transform: translateY(18px);
	transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.mega.is-open .mega__columns > li { opacity: 1; transform: none; }
.mega.is-open .mega__columns > li:nth-child(2) { transition-delay: .06s; }
.mega.is-open .mega__columns > li:nth-child(3) { transition-delay: .12s; }
.mega.is-open .mega__columns > li:nth-child(4) { transition-delay: .18s; }
.mega.is-open .mega__columns > li:nth-child(5) { transition-delay: .24s; }
.mega__columns > li > a {
	display: block; margin-bottom: 14px;
	font-family: var(--ff-head); font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--ph-gold);
}
.mega__columns .sub-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mega__columns .sub-menu a {
	position: relative; display: inline-block;
	font-family: var(--ff-serif); font-size: 1.6rem; font-weight: 500; line-height: 1.3;
}
.mega__columns .sub-menu a::after { content: ""; position: absolute; left: 0; bottom: 2px; width: 0; height: 1px; background: var(--ph-gold-grad); transition: width .35s var(--ease); }
.mega__columns .sub-menu a:hover::after, .mega__columns .current-menu-item > a::after { width: 100%; }
.mega__columns .current-menu-item > a { color: var(--ph-gold-light); }
@media (min-width: 640px) { .mega__columns { grid-template-columns: repeat(2, 1fr); gap: 0 32px; } }
@media (min-width: 1024px) {
	.mega__columns { grid-template-columns: repeat(5, 1fr); gap: 0; }
	.mega__columns > li { border-bottom: 0; border-left: 1px solid var(--ph-line); padding: 8px 28px 8px 32px; min-height: 300px; }
	.mega__columns > li:first-child { border-left: 0; padding-left: 0; }
	.mega__columns .sub-menu a { font-size: 1.75rem; }
}
.mega__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--ph-line-soft); font-size: 14px; color: var(--ph-muted); }
.mega__contact { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.mega__contact a, .mega__contact span { display: inline-flex; align-items: center; gap: 8px; }
.mega__contact svg { width: 16px; height: 16px; color: var(--ph-gold); }

/* ==========================================================================
   8. Socials
   ========================================================================== */
.socials { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.socials a { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--ph-line); border-radius: 50%; color: var(--ph-gold-light); transition: background-color .25s, color .25s, border-color .25s; }
.socials a:hover { background: var(--ph-gold); border-color: var(--ph-gold); color: var(--ph-black); }
.socials svg { width: 17px; height: 17px; }

/* ==========================================================================
   9. Hero (home)
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 56px; overflow: hidden; background: var(--ph-black); }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__slide, .hero__video { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; opacity: 0; transition: opacity 1.6s var(--ease), transform 8s linear; transform: scale(1.04); }
.hero__slide.is-active, .hero__video { opacity: 1; transform: scale(1.1); }
.hero__video { transform: none; }
.hero__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(13, 13, 13, .9) 0%, rgba(13, 13, 13, .55) 55%, rgba(13, 13, 13, .35) 100%), linear-gradient(0deg, rgba(13, 13, 13, .95) 0%, rgba(13, 13, 13, 0) 40%); }
.hero.ph-lines::before { z-index: 2; opacity: .7; }
.hero__content { position: relative; z-index: 3; width: 100%; }
.hero__title { font-family: var(--ff-serif); font-weight: 600; font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.02; letter-spacing: -.015em; max-width: 900px; margin-bottom: 20px; }
.hero__subtitle { max-width: 600px; font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255, 255, 255, .82); margin-bottom: 36px; }
.hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 20px; width: 1px; height: 48px; background: linear-gradient(var(--ph-gold), transparent); display: none; }
@media (min-width: 1024px) { .hero__scroll { display: block; } }

/* Quick search */
.quick-search { max-width: 1080px; background: rgba(13, 13, 13, .78); border: 1px solid var(--ph-line); border-radius: var(--radius); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.quick-search__modes { display: flex; border-bottom: 1px solid var(--ph-line); }
.quick-search__modes label { position: relative; cursor: pointer; }
.quick-search__modes input { position: absolute; opacity: 0; }
.quick-search__modes span { display: block; padding: 14px 28px; font-family: var(--ff-head); font-size: 12.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ph-muted); transition: color .25s; }
.quick-search__modes input:checked + span { color: var(--ph-gold-light); box-shadow: inset 0 -2px 0 var(--ph-gold); }
.quick-search__modes input:focus-visible + span { outline: 2px solid var(--ph-gold); outline-offset: -4px; }
.quick-search__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ph-line-soft); }
.qs-field { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; background: rgba(13, 13, 13, .92); }
.qs-field > span { font-family: var(--ff-head); font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ph-gold); }
.qs-field select { appearance: none; -webkit-appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9962B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right center / 16px no-repeat; border: 0; padding: 4px 22px 4px 0; font-size: 15px; color: #fff; width: 100%; }
.qs-field select option { background: var(--ph-charcoal); color: #fff; }
.qs-field--location, .quick-search__fields > .qs-field:nth-child(2) { grid-column: 1 / -1; }
.qs-submit { grid-column: 1 / -1; border-radius: 0; min-height: 58px; }
@media (min-width: 900px) {
	.quick-search__fields { grid-template-columns: 1.5fr 1.2fr 1fr 1fr auto; }
	.qs-field--location, .quick-search__fields > .qs-field:nth-child(2) { grid-column: auto; }
	.qs-submit { grid-column: auto; padding: 0 34px; border-radius: 0 0 var(--radius) 0; }
}

/* ==========================================================================
   10. Page hero (inner pages)
   ========================================================================== */
.page-hero { position: relative; padding: calc(var(--header-h) + 56px) 0 56px; background: var(--ph-charcoal); overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 13, 13, .92), rgba(13, 13, 13, .6)); }
.page-hero__title { font-family: var(--ff-serif); font-weight: 600; font-size: clamp(2.4rem, 5.5vw, 4.2rem); line-height: 1.05; margin-bottom: 14px; }
.page-hero__subtitle { max-width: 680px; color: rgba(255, 255, 255, .78); font-size: 1.08rem; margin: 0; }
@media (min-width: 1024px) { .page-hero { padding: calc(var(--header-h) + 90px) 0 80px; } }
.breadcrumbs { font-size: 13px; color: var(--ph-muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--ph-gold); }
.breadcrumbs .separator { margin: 0 6px; }

/* ==========================================================================
   11. Sections
   ========================================================================== */
.section { padding: 72px 0; position: relative; }
@media (min-width: 1024px) { .section { padding: 110px 0; } }
.section--charcoal { background: var(--ph-charcoal); }
.section--light { background: var(--ph-cream); color: var(--ph-ink); }
.section--light .section-lead { color: var(--ph-muted-dark); }
.section--light .eyebrow { color: var(--ph-bronze); }
.section--tight { padding: 48px 0; }

.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3, .grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* Reveal animations */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.grid > .reveal:nth-child(3n+2) { transition-delay: .08s; }
.grid > .reveal:nth-child(3n+3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   12. Property card
   ========================================================================== */
.pcard {
	display: flex; flex-direction: column;
	background: var(--ph-charcoal); border: 1px solid var(--ph-line-soft); border-radius: var(--radius);
	overflow: hidden; transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pcard:hover { border-color: var(--ph-line); transform: translateY(-4px); box-shadow: var(--shadow); }
.section--light .pcard { background: #fff; color: var(--ph-ink); border-color: var(--ph-line-ink); }
.pcard__media { position: relative; flex: none; aspect-ratio: 36 / 25; min-height: 0; overflow: hidden; background: #111; }
.pcard__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.pcard__track::-webkit-scrollbar { display: none; }
.pcard__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; overflow: hidden; }
.pcard__slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.pcard:hover .pcard__slide img { transform: scale(1.05); }
.pcard__placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: var(--ph-charcoal-2); color: var(--ph-gold); }
.pcard__placeholder svg { width: 48px; height: 48px; opacity: .5; }
.pcard__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.pcard__dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: background-color .25s, width .25s; }
.pcard__dots button.is-active { width: 20px; border-radius: 4px; background: var(--ph-gold-light); }
.pcard__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(13, 13, 13, .7); color: #fff; opacity: 0; transition: opacity .25s, background-color .25s; }
.pcard__arrow svg { width: 18px; height: 18px; }
.pcard__arrow--prev { left: 10px; } .pcard__arrow--next { right: 10px; }
.pcard:hover .pcard__arrow, .pcard__arrow:focus-visible { opacity: 1; }
.pcard__arrow:hover { background: var(--ph-gold); color: var(--ph-black); }
@media (hover: none) { .pcard__arrow { display: none; } }
.pcard__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.badge { display: inline-block; padding: 5px 10px; border-radius: 2px; background: rgba(13, 13, 13, .82); color: var(--ph-gold-light); font-family: var(--ff-head); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; line-height: 1.3; }
.badge--gold { background: var(--ph-gold-grad); color: var(--ph-black); }
.badge--status { background: var(--ph-danger); color: #fff; }
.badge--reserved { background: #6a5320; color: #fff; }
.pcard__body { padding: 20px 20px 16px; flex: 1; display: flex; flex-direction: column; }
.pcard__title { font-family: var(--ff-serif); font-size: 1.45rem; font-weight: 600; line-height: 1.2; margin-bottom: 8px; }
.pcard__title a:hover { color: var(--ph-gold-light); }
.section--light .pcard__title a:hover { color: var(--ph-bronze); }
.sep { color: var(--ph-gold); margin: 0 .2em; font-weight: 400; }
.pcard__loc { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ph-muted); margin-bottom: 12px; }
.pcard__loc svg { width: 15px; height: 15px; color: var(--ph-gold); flex: none; }
.pcard__price { font-family: var(--ff-head); font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; }
.pcard__price small { font-size: .7em; font-weight: 500; color: var(--ph-muted); }
.pcard__meta { font-size: 12.5px; color: var(--ph-muted); margin: -8px 0 12px; }
.specs { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: auto 0 0; padding: 14px 0 0; border-top: 1px solid var(--ph-line-soft); font-size: 13.5px; }
.section--light .specs { border-color: var(--ph-line-ink); }
.specs li { display: inline-flex; align-items: center; gap: 7px; }
.specs svg { width: 18px; height: 18px; color: var(--ph-gold); }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--ph-line-soft); background: rgba(0, 0, 0, .18); }
.section--light .pcard__foot { background: var(--ph-cream); border-color: var(--ph-line-ink); }
.pcard__agent { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; }
.pcard__agent > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pcard__agent small { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ph-muted); }
.pcard__agent strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; overflow: hidden; border: 1px solid var(--ph-gold); background: var(--ph-charcoal-2); display: grid; place-items: center; font-family: var(--ff-head); font-weight: 700; font-size: 13px; color: var(--ph-gold-light); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.btn-wa-sm { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 9px 11px; border-radius: var(--radius); background: var(--ph-wa); color: #fff; font-family: var(--ff-head); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transition: background-color .25s, transform .25s; }
.btn-wa-sm:hover { background: #1ebe5b; color: #fff; transform: translateY(-1px); }
.btn-wa-sm svg { width: 16px; height: 16px; }
.pcard.is-unavailable .pcard__media img { filter: grayscale(.6); }

/* ==========================================================================
   13. Listings: filters, toolbar, results, map
   ========================================================================== */
.filters { background: var(--ph-charcoal); border: 1px solid var(--ph-line-soft); border-radius: var(--radius); padding: 16px; margin-bottom: 24px; }
.filters__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.filters__actions { grid-column: 1 / -1; display: flex; gap: 10px; }
.filters__actions .btn { flex: 1; }
@media (min-width: 1024px) {
	.filters__row { grid-template-columns: 1.4fr 1.2fr 1fr 1fr .8fr auto; align-items: end; }
	.filters__actions { grid-column: auto; }
	.filters__actions .btn { flex: none; }
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field-label { font-family: var(--ff-head); font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ph-gold); }
.field--full { grid-column: 1 / -1; }
.input, .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field input[type="search"], .field input[type="url"], .field select, .field textarea {
	width: 100%; min-height: 48px; padding: 12px 14px;
	background: var(--ph-black); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius);
	color: #fff; font-size: 15px; transition: border-color .25s, box-shadow .25s;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px; background: var(--ph-black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9962B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; }
.field select option { background: var(--ph-charcoal); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ph-gold); box-shadow: 0 0 0 3px rgba(201, 150, 43, .18); }
.section--light .field input, .section--light .field select, .section--light .field textarea { background-color: #fff; border-color: rgba(17, 17, 17, .15); color: var(--ph-ink); }
.section--light .field > span { color: var(--ph-bronze); }

.filters__more { margin-top: 14px; border-top: 1px solid var(--ph-line-soft); padding-top: 14px; }
.filters__more[hidden] { display: none; }
.filters__more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 900px) { .filters__more-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .filters__more-grid { grid-template-columns: repeat(6, 1fr); } }
.amenity-list { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; }
.chip-check span { display: inline-block; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 40px; font-size: 13px; cursor: pointer; transition: all .2s; }
.chip-check input:checked + span { border-color: var(--ph-gold); background: rgba(201, 150, 43, .16); color: var(--ph-gold-light); }
.chip-check input:focus-visible + span { outline: 2px solid var(--ph-gold); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 28px; padding: 0; }
.chips a { display: inline-block; padding: 8px 16px; border: 1px solid var(--ph-line); border-radius: 40px; font-size: 13.5px; transition: all .25s; }
.chips a:hover, .chips a.is-active { background: var(--ph-gold); border-color: var(--ph-gold); color: var(--ph-black); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.toolbar__count { font-family: var(--ff-head); font-size: 14px; color: var(--ph-muted); }
.toolbar__count strong { color: #fff; }
.toolbar__right { display: flex; align-items: center; gap: 10px; }
.toolbar select { min-height: 42px; padding: 8px 34px 8px 12px; background: var(--ph-charcoal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9962B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 10px center / 14px no-repeat; appearance: none; -webkit-appearance: none; border: 1px solid var(--ph-line-soft); border-radius: var(--radius); font-size: 14px; }
.view-toggle { display: inline-flex; border: 1px solid var(--ph-line-soft); border-radius: var(--radius); overflow: hidden; }
.view-toggle button { display: grid; place-items: center; width: 42px; height: 42px; background: var(--ph-charcoal); border: 0; color: var(--ph-muted); }
.view-toggle button + button { border-left: 1px solid var(--ph-line-soft); }
.view-toggle button[aria-pressed="true"] { background: var(--ph-gold); color: var(--ph-black); }
.view-toggle svg { width: 18px; height: 18px; }

.results-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .results-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .results-grid { grid-template-columns: repeat(3, 1fr); } }
.results-map { display: none; }

/* list layout */
@media (min-width: 768px) {
	[data-layout="list"] .results-grid, [data-layout="map"] .results-grid { grid-template-columns: 1fr; }
	[data-layout="list"] .pcard, [data-layout="map"] .pcard { display: grid; grid-template-columns: 42% 1fr; grid-template-rows: 1fr auto; }
	[data-layout="list"] .pcard__media, [data-layout="map"] .pcard__media { grid-row: 1 / span 2; aspect-ratio: auto; min-height: 260px; }
}
/* map layout */
[data-layout="map"] .results-map { display: block; position: relative; height: 60vh; min-height: 380px; margin-bottom: 24px; border: 1px solid var(--ph-line); border-radius: var(--radius); background: var(--ph-charcoal); overflow: hidden; }
@media (min-width: 1100px) {
	[data-layout="map"] { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
	[data-layout="map"] .results-map { position: sticky; top: calc(var(--header-h) + 16px); height: calc(100vh - var(--header-h) - 32px); margin: 0; order: 2; }
	[data-layout="map"] .pcard { grid-template-columns: 44% 1fr; }
}
.map-note { display: grid; place-items: center; height: 100%; padding: 24px; margin: 0; text-align: center; color: var(--ph-muted); }
.map-info { color: var(--ph-ink); font-family: var(--ff-body); max-width: 220px; }
.map-info img { width: 100%; height: 110px; object-fit: cover; margin-bottom: 8px; }
.map-info strong { display: block; font-family: var(--ff-serif); font-size: 16px; line-height: 1.2; }
.map-info span { display: block; font-weight: 700; margin-top: 4px; }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 64px 24px; border: 1px dashed var(--ph-line); border-radius: var(--radius); }
.empty-state h3 { font-family: var(--ff-serif); font-size: 1.8rem; }
.empty-state p { color: var(--ph-muted); }

/* Pagination */
.pagination { margin-top: 48px; display: flex; justify-content: center; }
.pagination .nav-links, .pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--ph-line); border-radius: var(--radius); font-family: var(--ff-head); font-weight: 600; font-size: 14px; }
.pagination .page-numbers svg { width: 18px; height: 18px; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--ph-gold); border-color: var(--ph-gold); color: var(--ph-black); }
.pagination .dots { border: 0; }

/* ==========================================================================
   14. Locations showcase
   ========================================================================== */
.loc-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .loc-grid { grid-template-columns: repeat(3, 1fr); } }
.loc-tile { position: relative; display: flex; align-items: flex-end; min-height: 380px; padding: 28px; border-radius: var(--radius); overflow: hidden; isolation: isolate; color: #fff; background: var(--ph-charcoal-2); }
@media (min-width: 1024px) { .loc-tile { min-height: 520px; } }
.loc-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.loc-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(13, 13, 13, .92) 0%, rgba(13, 13, 13, .1) 60%); transition: background-color .4s; }
.loc-tile::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(243, 210, 122, 0); z-index: 0; transition: border-color .5s var(--ease); pointer-events: none; }
.loc-tile:hover { color: #fff; }
.loc-tile:hover img { transform: scale(1.07); }
.loc-tile:hover::before { border-color: rgba(243, 210, 122, .6); }
.loc-tile__count { font-family: var(--ff-head); font-size: 11.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--ph-gold-light); }
.loc-tile__name { font-family: var(--ff-serif); font-size: 2.4rem; font-weight: 600; margin: 6px 0 10px; }

/* ==========================================================================
   15. Why us / features / steps
   ========================================================================== */
.features { display: grid; gap: 1px; background: var(--ph-line); border: 1px solid var(--ph-line); grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { background: var(--ph-black); padding: 36px 30px; transition: background-color .35s; }
.section--charcoal .feature { background: var(--ph-charcoal); }
.feature:hover { background: #151515; }
.feature__num { font-family: var(--ff-serif); font-size: 3rem; line-height: 1; font-weight: 600; margin-bottom: 20px; }
.feature h3 { font-family: var(--ff-head); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.feature p { color: var(--ph-muted); margin: 0; font-size: 15px; }

.steps { counter-reset: step; display: grid; gap: 24px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; padding-top: 56px; }
.steps li::before { content: "0" counter(step); position: absolute; top: 0; left: 0; font-family: var(--ff-serif); font-size: 2.5rem; font-weight: 600; line-height: 1; background: var(--ph-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { font-family: var(--ff-head); font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.steps p { color: var(--ph-muted); font-size: 15px; margin: 0; }
.section--light .steps p { color: var(--ph-muted-dark); }

/* ==========================================================================
   16. Agents
   ========================================================================== */
.acard { position: relative; background: var(--ph-charcoal); border: 1px solid var(--ph-line-soft); border-radius: var(--radius); overflow: hidden; transition: border-color .3s, transform .3s var(--ease); }
.acard:hover { border-color: var(--ph-line); transform: translateY(-4px); }
.acard__photo { display: block; aspect-ratio: 4 / 5; background: var(--ph-charcoal-2); overflow: hidden; }
.acard__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(.25); transition: transform .9s var(--ease), filter .5s; }
.acard:hover .acard__photo img { transform: scale(1.04); filter: none; }
.acard__photo .avatar-lg { display: grid; place-items: center; height: 100%; font-family: var(--ff-serif); font-size: 4rem; color: var(--ph-gold); }
.acard__body { padding: 20px; }
.acard__name { font-family: var(--ff-serif); font-size: 1.6rem; font-weight: 600; margin-bottom: 2px; }
.acard__role { font-family: var(--ff-head); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ph-gold); margin-bottom: 14px; }
.acard__meta { list-style: none; margin: 0 0 18px; padding: 0; font-size: 13.5px; color: var(--ph-muted); display: grid; gap: 6px; }
.acard__meta li { display: flex; align-items: center; gap: 8px; }
.acard__meta svg { width: 15px; height: 15px; color: var(--ph-gold); flex: none; }
.acard__actions { display: flex; gap: 8px; }
.acard__actions .btn { flex: 1; padding-inline: 10px; }

.agent-hero { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .agent-hero { grid-template-columns: 360px 1fr; gap: 56px; } }
.agent-hero__photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--ph-line); background: var(--ph-charcoal-2); }
.agent-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.agent-hero .acard__meta { font-size: 15px; }

/* ==========================================================================
   17. Single property
   ========================================================================== */
.property-top { padding: calc(var(--header-h) + 28px) 0 32px; background: var(--ph-black); }
.property-head { display: grid; gap: 16px 32px; margin-bottom: 24px; }
@media (min-width: 900px) { .property-head { grid-template-columns: 1fr auto; align-items: end; } }
.property-title { font-family: var(--ff-serif); font-weight: 600; font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.08; margin-bottom: 10px; }
.property-loc { display: flex; align-items: center; gap: 8px; color: var(--ph-muted); margin: 0; }
.property-loc svg { width: 17px; height: 17px; color: var(--ph-gold); }
.property-price { font-family: var(--ff-head); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.1; }
.property-price small { font-size: .5em; font-weight: 500; color: var(--ph-muted); }
.property-ref { font-size: 13px; color: var(--ph-muted); margin-top: 4px; }
@media (min-width: 900px) { .property-head__price { text-align: right; } }

.pgallery { display: grid; gap: 8px; grid-template-columns: 1fr; border-radius: var(--radius); overflow: hidden; }
.pgallery a { position: relative; display: block; overflow: hidden; background: var(--ph-charcoal); }
.pgallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; }
.pgallery a:hover img { transform: scale(1.04); }
.pgallery__main { aspect-ratio: 16 / 10; }
.pgallery__thumb { display: none !important; }
.pgallery__hidden { display: none !important; }
.pgallery__all { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(13, 13, 13, .85); border: 1px solid var(--ph-line); border-radius: var(--radius); font-family: var(--ff-head); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.pgallery__all svg { width: 16px; height: 16px; color: var(--ph-gold); }
@media (min-width: 768px) {
	.pgallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 260px 260px; }
	.pgallery__main { grid-row: 1 / span 2; aspect-ratio: auto; }
	.pgallery__thumb { display: block !important; }
	.pgallery--single { grid-template-columns: 1fr; grid-template-rows: 520px; }
	.pgallery--few { grid-template-columns: 2fr 1fr; }
}
@media (min-width: 1200px) { .pgallery { grid-template-rows: 300px 300px; } }

.property-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 24px; border: 1px solid var(--ph-line); border-radius: var(--radius); }
.property-stats > div { flex: 1 1 140px; display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-right: 1px solid var(--ph-line-soft); }
.property-stats > div:last-child { border-right: 0; }
.property-stats svg { width: 26px; height: 26px; color: var(--ph-gold); flex: none; }
.property-stats strong { display: block; font-family: var(--ff-head); font-size: 1.05rem; line-height: 1.2; }
.property-stats span { font-size: 12px; color: var(--ph-muted); text-transform: uppercase; letter-spacing: .12em; }

.property-layout { display: grid; gap: 40px; }
@media (min-width: 1024px) { .property-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; } }
.pblock { padding: 36px 0; border-bottom: 1px solid var(--ph-line-ink); }
.pblock:first-child { padding-top: 0; }
.pblock:last-child { border-bottom: 0; }
.pblock__title { font-family: var(--ff-serif); font-size: 1.9rem; font-weight: 600; margin-bottom: 20px; }
.details-table { display: grid; grid-template-columns: 1fr; margin: 0; }
@media (min-width: 640px) { .details-table { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.details-table > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ph-line-ink); font-size: 15px; }
.details-table dt { color: var(--ph-muted-dark); }
.details-table dd { margin: 0; font-weight: 600; text-align: right; }
.amenities { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .amenities { grid-template-columns: repeat(3, 1fr); } }
.amenities li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.amenities svg { width: 18px; height: 18px; color: var(--ph-bronze); flex: none; }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.embed iframe, .embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-embed { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #ddd; }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.2); }
.floorplans { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.floorplans a { display: block; border: 1px solid var(--ph-line-ink); border-radius: var(--radius); overflow: hidden; background: #fff; }
.floorplans img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.permit { display: flex; align-items: center; gap: 20px; padding: 20px; background: #fff; border: 1px solid var(--ph-line-ink); border-radius: var(--radius); }
.permit img { width: 110px; height: 110px; object-fit: contain; flex: none; }
.permit strong { display: block; font-family: var(--ff-head); font-size: 1.1rem; }
.permit span { font-size: 13px; color: var(--ph-muted-dark); }
.offplan-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--ph-line-ink); border: 1px solid var(--ph-line-ink); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.offplan-box > div { background: #fff; padding: 18px; }
.offplan-box span { display: block; font-family: var(--ff-head); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ph-bronze); margin-bottom: 4px; }
.offplan-box strong { font-size: 1.05rem; }

.sidebar-sticky { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
.agent-box { background: var(--ph-black); color: #fff; border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; }
.agent-box__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.agent-box .avatar { width: 72px; height: 72px; font-size: 22px; border-width: 2px; }
.agent-box__name { font-family: var(--ff-serif); font-size: 1.5rem; font-weight: 600; line-height: 1.15; display: block; }
.agent-box__role { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ph-gold); }
.agent-box__brn { font-size: 12.5px; color: var(--ph-muted); }
.agent-box .btn { width: 100%; margin-top: 10px; }
.side-card { background: #fff; border: 1px solid var(--ph-line-ink); border-radius: var(--radius); padding: 24px; color: var(--ph-ink); }
.side-card h3 { font-family: var(--ff-serif); font-size: 1.4rem; margin-bottom: 8px; }
.side-card p { color: var(--ph-muted-dark); font-size: 14.5px; }
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: flex; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(13, 13, 13, .96); border-top: 1px solid var(--ph-line); }
.mobile-cta .btn { flex: 1; padding-inline: 8px; }
@media (min-width: 1024px) { .mobile-cta { display: none; } }
.single-property .wa-float { display: none; }
@media (min-width: 1024px) { .single-property .wa-float { display: grid; } }
@media (max-width: 1023px) { .single-property .site-footer { padding-bottom: 76px; } }

/* ==========================================================================
   18. Articles
   ========================================================================== */
.post-card { display: flex; flex-direction: column; background: var(--ph-charcoal); border: 1px solid var(--ph-line-soft); border-radius: var(--radius); overflow: hidden; transition: border-color .3s, transform .3s var(--ease); }
.post-card:hover { border-color: var(--ph-line); transform: translateY(-4px); }
.section--light .post-card { background: #fff; border-color: var(--ph-line-ink); color: var(--ph-ink); }
.post-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ph-charcoal-2); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-family: var(--ff-head); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ph-gold); margin-bottom: 10px; }
.section--light .post-card__meta { color: var(--ph-bronze); }
.post-card__title { font-family: var(--ff-serif); font-size: 1.5rem; font-weight: 600; line-height: 1.2; }
.post-card__excerpt { font-size: 15px; color: var(--ph-muted); }
.section--light .post-card__excerpt { color: var(--ph-muted-dark); }
.post-card .link-arrow { margin-top: auto; }
.article-header { padding: calc(var(--header-h) + 56px) 0 40px; text-align: center; }
.article-header .post-card__meta { margin-bottom: 16px; }
.article-title { font-family: var(--ff-serif); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.08; max-width: 960px; margin: 0 auto 16px; }
.article-cover { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.article-cover img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--radius); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--ph-line-ink); }
.share > span { font-family: var(--ff-head); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-right: 6px; }
.share a { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--ph-line-ink); border-radius: 50%; }
.share a:hover { background: var(--ph-gold); border-color: var(--ph-gold); color: var(--ph-black); }
.share svg { width: 17px; height: 17px; }

/* ==========================================================================
   19. Forms & contact
   ========================================================================== */
.form-card { background: var(--ph-charcoal); border: 1px solid var(--ph-line); border-radius: var(--radius); padding: 24px; }
@media (min-width: 768px) { .form-card { padding: 40px; } }
.section--light .form-card { background: #fff; border-color: var(--ph-line-ink); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--half { grid-column: span 1; } .field--full, .form-grid > .field:not(.field--half) { grid-column: 1 / -1; } }
.field input[type="file"] { padding: 12px; border: 1px dashed var(--ph-line); border-radius: var(--radius); background: transparent; width: 100%; font-size: 14px; }
.field small { color: var(--ph-muted); font-size: 12.5px; }
.req { color: var(--ph-gold); }
.ph-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-consent { font-size: 13px; color: var(--ph-muted); grid-column: 1 / -1; margin: 0; }
.form-consent a { color: var(--ph-gold); text-decoration: underline; }
.notice-box { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px; border: 1px solid; font-size: 15px; }
.notice-box p { margin: 0 0 10px; }
.notice-box p:last-child { margin: 0; }
.notice-box--success { border-color: var(--ph-success); background: rgba(63, 163, 107, .12); }
.notice-box--error { border-color: var(--ph-danger); background: rgba(210, 84, 75, .12); }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-item { display: flex; gap: 16px; padding: 20px; background: var(--ph-charcoal); border: 1px solid var(--ph-line-soft); border-radius: var(--radius); }
.contact-item svg { width: 22px; height: 22px; color: var(--ph-gold); flex: none; margin-top: 2px; }
.contact-item strong { display: block; font-family: var(--ff-head); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ph-gold); margin-bottom: 2px; }
.contact-item a:hover { color: var(--ph-gold-light); }
.office-map { height: 440px; border-top: 1px solid var(--ph-line); }
.office-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

/* Careers */
.jobs { display: grid; gap: 12px; }
.job { background: var(--ph-charcoal); border: 1px solid var(--ph-line-soft); border-radius: var(--radius); }
.job summary { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px; cursor: pointer; }
.job summary::-webkit-details-marker { display: none; }
.job summary h3 { font-family: var(--ff-serif); font-size: 1.6rem; margin: 0; }
.job__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.job[open] { border-color: var(--ph-line); }
.job__body { padding: 0 24px 24px; }

/* Mortgage calculator */
.calc { display: grid; gap: 1px; background: var(--ph-line); border: 1px solid var(--ph-line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .calc { grid-template-columns: 1.2fr 1fr; } }
.calc__inputs, .calc__results { padding: 28px; background: var(--ph-charcoal); }
@media (min-width: 768px) { .calc__inputs, .calc__results { padding: 40px; } }
.calc__results { background: var(--ph-black); display: flex; flex-direction: column; }
.calc__row { margin-bottom: 26px; }
.calc__row-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.calc__row-head label { font-family: var(--ff-head); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ph-gold); }
.calc__row-head input { width: 150px; min-height: 40px; padding: 6px 10px; text-align: right; background: var(--ph-black); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); font-weight: 600; }
.calc input[type="range"] { width: 100%; accent-color: var(--ph-gold); }
.calc__monthly { font-family: var(--ff-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.1; margin: 6px 0 24px; }
.calc__list { list-style: none; margin: 0 0 24px; padding: 0; }
.calc__list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--ph-line-soft); font-size: 15px; }
.calc__list li span { color: var(--ph-muted); }
.calc__note { font-size: 12.5px; color: var(--ph-muted); margin-top: auto; }

/* ==========================================================================
   20. CTA band
   ========================================================================== */
.cta-band { position: relative; padding: 80px 0; background: var(--ph-charcoal); overflow: hidden; }
.cta-band__inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1fr auto; } }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   21. Footer
   ========================================================================== */
.site-footer { background: var(--ph-black); border-top: 1px solid var(--ph-line); padding-top: 72px; font-size: 15px; color: var(--ph-muted); }
.site-footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr; padding-bottom: 56px; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 56px; } }
.site-footer .brand img, .site-footer .brand .custom-logo { height: 64px; margin-bottom: 20px; }
.footer-title { font-family: var(--ff-head); font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--ph-gold); margin-bottom: 20px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a:hover { color: var(--ph-gold-light); }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact svg { width: 17px; height: 17px; color: var(--ph-gold); flex: none; margin-top: 4px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid var(--ph-line-soft); font-size: 13px; }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 85; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--ph-wa); color: #fff; box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .6); transition: transform .3s var(--ease); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ph-wa); animation: wa-pulse 2.4s infinite; }
.wa-float:hover { color: #fff; transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* ==========================================================================
   22. Lightbox
   ========================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(8, 8, 8, .96); }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: min(92vw, 1600px); max-height: 82vh; object-fit: contain; box-shadow: var(--shadow); }
.lightbox button { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; background: rgba(255, 255, 255, .06); border: 1px solid var(--ph-line); border-radius: 50%; color: #fff; }
.lightbox button:hover { background: var(--ph-gold); color: var(--ph-black); }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-family: var(--ff-head); font-size: 13px; letter-spacing: .2em; color: var(--ph-muted); }
@media (max-width: 640px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; transform: none; } }

/* ==========================================================================
   23. 404
   ========================================================================== */
.error-404 { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) var(--gutter) 60px; }
.error-404__code { font-family: var(--ff-serif); font-size: clamp(7rem, 22vw, 14rem); font-weight: 600; line-height: .9; }
.error-404 .btn + .btn { margin-left: 8px; }

/* ==========================================================================
   24. WordPress core
   ========================================================================== */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text { font-size: .85rem; color: var(--ph-muted); }
.sticky, .bypostauthor, .gallery-caption { }
.section--light a.btn--gold, .section--light .btn--gold { color: var(--ph-black); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-4 { margin-top: 32px; } .text-center { text-align: center; }
.text-muted { color: var(--ph-muted); }
.section--light .text-muted { color: var(--ph-muted-dark); }

@media print {
	.site-header, .mega, .wa-float, .mobile-cta, .site-footer, .filters { display: none !important; }
	body { background: #fff; color: #000; }
}
