/* ================= PK SIGNATURE ESTATES — SHARED STYLESHEET ================= */
:root{
  --ink:#0b0b0d;
  --charcoal:#18171b;
  --charcoal-2:#221f22;
  --gold:#b3894a;
  --gold-light:#dcb87e;
  --gold-dim:#8a6a3c;
  --cream:#f6f1e6;
  --paper:#fffdf9;
  --text-dark:#201d1a;
  --text-muted:#6f6a60;
  --text-on-dark:#ece7db;
  --text-on-dark-muted:#a9a297;
  --line:#e6dfcd;
  --line-dark:#333037;
  --radius:2px;
  --shadow-soft: 0 30px 60px -25px rgba(11,11,13,0.35);
  --shadow-card: 0 18px 40px -20px rgba(11,11,13,0.28);
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important;}
}
body{font-family:'Jost', sans-serif; color:var(--text-dark); background:var(--paper); font-weight:400; -webkit-font-smoothing:antialiased; line-height:1.5;}
h1,h2,h3,h4{font-family:'Playfair Display', serif; font-weight:600; color:var(--text-dark); letter-spacing:.2px;}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
button{font-family:inherit; cursor:pointer;}
input, select, textarea{font-family:inherit;}
.container{max-width:1240px; margin:0 auto; padding:0 32px;}
.script{font-family:'Mrs Saint Delafield', cursive; color:var(--gold); font-weight:400;}
.eyebrow{display:flex; align-items:center; gap:12px; text-transform:uppercase; letter-spacing:3.5px; font-size:12px; color:var(--gold-dim); font-weight:600; margin-bottom:14px;}
.eyebrow::before{content:""; width:28px; height:1px; background:var(--gold);}
.eyebrow.center{justify-content:center;}
.section-head{margin-bottom:52px; max-width:640px;}
.section-head.center{margin-left:auto; margin-right:auto; text-align:center;}
.section-head h2{font-size:clamp(28px,3.4vw,42px); line-height:1.15;}
.section-head p{color:var(--text-muted); margin-top:14px; font-size:16px; max-width:560px;}
.section-head.center p{margin-left:auto; margin-right:auto;}

.btn{display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:15px 30px; font-size:13px; letter-spacing:1.6px; text-transform:uppercase; font-weight:600; border:1px solid transparent; border-radius:var(--radius); transition:all .35s ease; white-space:nowrap;}
.btn-gold{background:var(--gold); color:var(--ink); border-color:var(--gold);}
.btn-gold:hover{background:transparent; color:var(--gold); border-color:var(--gold);}
.btn-ghost-dark{border-color:rgba(255,255,255,0.35); color:var(--text-on-dark);}
.btn-ghost-dark:hover{border-color:var(--gold); color:var(--gold);}
.btn-ghost-light{border-color:rgba(20,18,15,0.25); color:var(--text-dark);}
.btn-ghost-light:hover{border-color:var(--gold-dim); color:var(--gold-dim);}
.btn-block{width:100%;}
.btn-sm{padding:11px 20px; font-size:11.5px;}
.btn-danger{border-color:#a94438; color:#a94438;}
.btn-danger:hover{background:#a94438; color:#fff;}
.btn:disabled{opacity:.45; cursor:not-allowed;}

/* ===== TOPBAR / HEADER (shared across all pages) ===== */
.topbar{background:var(--ink); color:var(--text-on-dark-muted); font-size:12.5px;}
.topbar .container{display:flex; justify-content:space-between; align-items:center; height:38px;}
.topbar-left, .topbar-right{display:flex; align-items:center; gap:22px;}
.topbar a:hover{color:var(--gold-light);}
.topbar-right span{opacity:.5;}
.topbar .dot{width:3px;height:3px;border-radius:50%;background:currentColor;opacity:.4;}

header.main{position:sticky; top:0; z-index:200; background:var(--paper); border-bottom:1px solid var(--line); transition:box-shadow .3s ease;}
header.main.scrolled{box-shadow:0 8px 30px -18px rgba(0,0,0,0.25);}
.nav-wrap{display:flex; align-items:center; justify-content:space-between; height:92px; gap:28px;}
.brand{display:flex; align-items:center; gap:12px;}
.brand img{height:54px; width:auto;}
.brand-tag{display:none; font-size:10.5px; letter-spacing:2.5px; text-transform:uppercase; color:var(--text-muted); border-left:1px solid var(--line); padding-left:12px; line-height:1.4;}
@media(min-width:900px){.brand-tag{display:block;}}
nav.primary{display:none; align-items:center; gap:28px;}
nav.primary a{font-size:13.5px; letter-spacing:.4px; font-weight:500; color:var(--text-dark); position:relative; padding:6px 0;}
nav.primary a::after{content:""; position:absolute; left:0; bottom:0; width:0; height:1px; background:var(--gold); transition:width .3s ease;}
nav.primary a:hover::after, nav.primary a.active::after{width:100%;}
nav.primary a.active{color:var(--gold-dim);}
@media(min-width:1080px){nav.primary{display:flex;}}
.nav-actions{display:flex; align-items:center; gap:16px;}
.icon-btn{display:flex; align-items:center; gap:7px; font-size:12.5px; color:var(--text-dark); position:relative; background:none; border:none;}
.icon-btn svg{width:19px; height:19px; stroke:var(--text-dark);}
.icon-btn .count{position:absolute; top:-8px; right:-10px; background:var(--gold); color:var(--ink); font-size:10px; font-weight:700; width:16px; height:16px; border-radius:50%; display:flex; align-items:center; justify-content:center;}
.hamburger{display:flex; flex-direction:column; gap:4px; width:22px; background:none; border:none;}
.hamburger span{height:1.5px; background:var(--text-dark); display:block;}
@media(min-width:1080px){.hamburger{display:none;}}
.nav-actions .btn{display:none;}
@media(min-width:640px){.nav-actions .btn{display:inline-flex;}}
.mobile-drawer{position:fixed; inset:0; z-index:300; background:var(--ink); color:var(--text-on-dark); transform:translateX(100%); transition:transform .4s ease; display:flex; flex-direction:column; padding:28px 30px; overflow-y:auto;}
.mobile-drawer.open{transform:translateX(0);}
.mobile-drawer .close-drawer{align-self:flex-end; font-size:26px; color:var(--gold); background:none; border:none;}
.mobile-drawer a{display:block; padding:16px 0; border-bottom:1px solid var(--line-dark); font-size:18px; font-family:'Playfair Display',serif;}

/* ===== CATEGORY HERO BANNER (buy/rent/plots/commercial/pg/projects pages) ===== */
.cat-hero{position:relative; padding:70px 0 46px; background:linear-gradient(180deg, rgba(8,8,9,0.6), rgba(8,8,9,0.86)), var(--hero-img) center/cover no-repeat; color:#fff;}
.breadcrumb{font-size:12px; color:var(--text-on-dark-muted); margin-bottom:18px; letter-spacing:.4px;}
.breadcrumb a:hover{color:var(--gold-light);}
.cat-hero h1{color:#fff; font-size:clamp(30px,4vw,46px);}
.cat-hero p{color:rgba(236,231,219,0.82); margin-top:14px; max-width:600px; font-size:15.5px;}
.cat-quickfilters{display:flex; gap:12px; margin-top:30px; flex-wrap:wrap;}
.cat-quickfilters select, .cat-quickfilters input{
  background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.25); color:#fff; padding:12px 16px; font-size:13.5px; min-width:170px; border-radius:var(--radius);
}
.cat-quickfilters select option{color:#111;}
.cat-quickfilters input::placeholder{color:rgba(255,255,255,0.55);}

/* ===== LISTING LAYOUT: SIDEBAR + GRID ===== */
.listing-shell{display:grid; grid-template-columns:270px 1fr; gap:44px; padding:56px 0 90px; align-items:flex-start;}
@media(max-width:900px){.listing-shell{grid-template-columns:1fr;}}
.filter-panel{position:sticky; top:112px; border:1px solid var(--line); background:var(--paper);}
@media(max-width:900px){.filter-panel{position:static;}}
.filter-block{padding:22px 22px; border-bottom:1px solid var(--line);}
.filter-block:last-child{border-bottom:none;}
.filter-block h4{font-size:12px; letter-spacing:1.4px; text-transform:uppercase; margin-bottom:16px; font-family:'Jost',sans-serif; color:var(--text-muted); font-weight:600;}
.filter-block select, .filter-block input[type="text"], .filter-block input[type="number"]{
  width:100%; border:1px solid var(--line); padding:10px 12px; font-size:13.5px; background:var(--paper); margin-bottom:10px;
}
.filter-range{display:flex; gap:8px; align-items:center;}
.chip-group{display:flex; gap:8px; flex-wrap:wrap;}
.chip-group button{border:1px solid var(--line); background:none; padding:7px 14px; font-size:12.5px; color:var(--text-muted); border-radius:20px;}
.chip-group button.active{background:var(--ink); color:#fff; border-color:var(--ink);}
.check-row{display:flex; align-items:center; gap:8px; font-size:13px; padding:5px 0; color:var(--text-dark);}

.listing-toolbar{display:flex; justify-content:space-between; align-items:center; margin-bottom:26px; flex-wrap:wrap; gap:14px;}
.listing-count{font-size:14px; color:var(--text-muted);}
.listing-count b{color:var(--text-dark);}
.sort-row{display:flex; align-items:center; gap:10px; font-size:13px;}
.sort-row select{border:1px solid var(--line); padding:8px 12px; background:var(--paper);}

.property-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:26px;}
@media(max-width:640px){.property-grid{grid-template-columns:1fr;}}
.p-card{background:var(--paper); border:1px solid var(--line); transition:box-shadow .35s ease, transform .35s ease; display:block;}
.p-card:hover{box-shadow:var(--shadow-card); transform:translateY(-6px);}
.p-card .thumb{position:relative; aspect-ratio:4/3; overflow:hidden;}
.p-card .thumb img{width:100%; height:100%; object-fit:cover; transition:transform .6s ease;}
.p-card:hover .thumb img{transform:scale(1.06);}
.p-badge{position:absolute; top:14px; left:14px; background:var(--ink); color:var(--gold-light); font-size:10.5px; letter-spacing:1px; text-transform:uppercase; padding:6px 12px; font-weight:600;}
.p-heart{position:absolute; top:12px; right:12px; width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,0.92); display:flex; align-items:center; justify-content:center; border:none; z-index:2;}
.p-heart svg{width:17px; height:17px; stroke:var(--ink); fill:none; transition:fill .25s ease, stroke .25s ease;}
.p-heart.active svg{fill:var(--gold); stroke:var(--gold);}
.p-price-tag{position:absolute; bottom:0; left:0; background:rgba(11,11,13,0.86); color:#fff; padding:9px 16px; font-family:'Playfair Display',serif; font-size:18px;}
.p-body{padding:22px 22px 24px;}
.p-loc{font-size:11.5px; letter-spacing:1px; text-transform:uppercase; color:var(--gold-dim); margin-bottom:8px; font-weight:600;}
.p-body h3{font-size:18px; margin-bottom:10px; line-height:1.3;}
.p-specs{display:flex; gap:14px; color:var(--text-muted); font-size:12.5px; margin-bottom:16px; flex-wrap:wrap;}
.p-specs span{display:flex; align-items:center; gap:6px;}
.p-specs svg{width:15px; height:15px; stroke:var(--gold-dim);}
.p-foot{display:flex; justify-content:space-between; align-items:center; border-top:1px solid var(--line); padding-top:16px;}
.p-agent{display:flex; align-items:center; gap:9px; font-size:12px; color:var(--text-muted);}
.p-agent .dot-av{width:26px; height:26px; border-radius:50%; background:var(--cream); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:700; color:var(--gold-dim);}
.p-foot span.link{font-size:12px; font-weight:600; letter-spacing:.6px; text-transform:uppercase; color:var(--text-dark); border-bottom:1px solid var(--gold);}
.empty-state{padding:80px 20px; text-align:center; border:1px dashed var(--line); color:var(--text-muted);}
.empty-state h3{margin-bottom:10px;}
.pagination{display:flex; justify-content:center; gap:8px; margin-top:44px;}
.pagination button{width:38px; height:38px; border:1px solid var(--line); background:var(--paper); font-size:13px;}
.pagination button.active{background:var(--ink); color:#fff; border-color:var(--ink);}

/* ===== PROPERTY DETAIL PAGE ===== */
.detail-hero{padding:36px 0 0;}
.detail-gallery{aspect-ratio:16/7; overflow:hidden; border-radius:2px;}
.detail-gallery img{width:100%; height:100%; object-fit:cover;}
.detail-shell{display:grid; grid-template-columns:1fr 340px; gap:50px; padding:44px 0 90px; align-items:flex-start;}
@media(max-width:900px){.detail-shell{grid-template-columns:1fr;}}
.detail-title-row{display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:8px;}
.detail-title-row h1{font-size:clamp(24px,3vw,32px);}
.detail-price{font-family:'Playfair Display',serif; font-size:26px; color:var(--gold-dim); white-space:nowrap;}
.detail-specs{display:flex; gap:28px; margin:22px 0 30px; flex-wrap:wrap; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:20px 0;}
.detail-specs div{text-align:left;}
.detail-specs b{display:block; font-family:'Playfair Display',serif; font-size:19px;}
.detail-specs span{font-size:11px; letter-spacing:1px; text-transform:uppercase; color:var(--text-muted);}
.detail-block{margin-bottom:38px;}
.detail-block h3{font-size:19px; margin-bottom:14px;}
.detail-block p{color:var(--text-muted); font-size:15px; line-height:1.75;}
.amenity-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:10px 20px;}
.amenity-grid div{display:flex; align-items:center; gap:10px; font-size:13.5px; color:var(--text-dark);}
.amenity-grid svg{width:16px; height:16px; stroke:var(--gold);}
.contact-card{border:1px solid var(--line); padding:28px; position:sticky; top:112px;}
.contact-card .p-agent{margin-bottom:18px;}
.contact-card .dot-av{width:40px; height:40px; font-size:13px;}
.contact-card input, .contact-card textarea{width:100%; border:1px solid var(--line); padding:11px 13px; font-size:13.5px; margin-bottom:12px;}
.contact-card textarea{min-height:90px; resize:vertical;}

/* ===== ADMIN ===== */
.admin-shell{padding:44px 0 100px;}
.admin-topbar{display:flex; justify-content:space-between; align-items:center; margin-bottom:36px; flex-wrap:wrap; gap:16px;}
.admin-actions{display:flex; gap:10px; flex-wrap:wrap;}
.admin-tabs{display:flex; gap:6px; margin-bottom:26px; flex-wrap:wrap; border-bottom:1px solid var(--line);}
.admin-tabs button{background:none; border:none; padding:12px 18px; font-size:13px; letter-spacing:.5px; color:var(--text-muted); border-bottom:2px solid transparent;}
.admin-tabs button.active{color:var(--text-dark); border-color:var(--gold); font-weight:600;}
.admin-table{width:100%; border-collapse:collapse; font-size:13.5px;}
.admin-table th{text-align:left; font-size:11px; letter-spacing:1px; text-transform:uppercase; color:var(--text-muted); padding:12px 14px; border-bottom:1px solid var(--line);}
.admin-table td{padding:14px; border-bottom:1px solid var(--line); vertical-align:middle;}
.admin-table img{width:64px; height:44px; object-fit:cover;}
.admin-table .row-actions{display:flex; gap:8px;}
.admin-table .row-actions button{border:1px solid var(--line); background:none; padding:6px 12px; font-size:11.5px;}
.admin-table .row-actions button:hover{border-color:var(--gold-dim); color:var(--gold-dim);}
.status-pill{font-size:10.5px; padding:4px 10px; border-radius:20px; background:var(--cream); color:var(--gold-dim); letter-spacing:.4px;}

.admin-form-modal{position:fixed; inset:0; background:rgba(11,11,13,0.7); z-index:400; display:none; align-items:flex-start; justify-content:center; padding:50px 20px; overflow-y:auto;}
.admin-form-modal.open{display:flex;}
.admin-form-card{background:var(--paper); width:100%; max-width:720px; padding:36px; position:relative;}
.admin-form-card h3{margin-bottom:24px;}
.admin-form-card .close-modal{position:absolute; top:20px; right:24px; font-size:24px; background:none; border:none; color:var(--text-muted);}
.form-grid{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
@media(max-width:560px){.form-grid{grid-template-columns:1fr;}}
.form-grid .full{grid-column:1/-1;}
.form-field label{display:block; font-size:11px; letter-spacing:1px; text-transform:uppercase; color:var(--text-muted); margin-bottom:7px;}
.form-field input, .form-field select, .form-field textarea{width:100%; border:1px solid var(--line); padding:11px 13px; font-size:13.5px;}
.form-field textarea{min-height:80px; resize:vertical;}
.form-actions{display:flex; justify-content:flex-end; gap:12px; margin-top:26px; border-top:1px solid var(--line); padding-top:22px;}
.image-preview{width:100%; aspect-ratio:16/9; border:1px dashed var(--line); background:var(--cream); display:flex; align-items:center; justify-content:center; overflow:hidden; margin-bottom:10px; color:var(--text-muted); font-size:12px;}
.image-preview img{width:100%; height:100%; object-fit:cover;}
.admin-note{background:var(--cream); border:1px solid var(--line); padding:18px 22px; font-size:13.5px; color:var(--text-muted); margin-bottom:30px; line-height:1.7;}
.admin-note b{color:var(--text-dark);}
.admin-empty{padding:60px 20px; text-align:center; color:var(--text-muted); border:1px dashed var(--line);}
.toast{position:fixed; bottom:28px; right:28px; background:var(--ink); color:#fff; padding:14px 22px; font-size:13.5px; z-index:500; transform:translateY(20px); opacity:0; transition:all .3s ease; pointer-events:none;}
.toast.show{transform:translateY(0); opacity:1;}

/* ===== FOOTER (shared) ===== */
footer{background:var(--ink); color:var(--text-on-dark-muted); padding-top:80px;}
.footer-top{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr 1.2fr; gap:40px; padding-bottom:60px; border-bottom:1px solid var(--line-dark);}
@media(max-width:980px){.footer-top{grid-template-columns:1fr 1fr;}}
@media(max-width:560px){.footer-top{grid-template-columns:1fr;}}
.footer-brand img{height:50px; margin-bottom:18px; background:#fff; padding:8px 12px;}
.footer-brand p{font-size:13.5px; line-height:1.7; max-width:280px;}
.footer-social{display:flex; gap:12px; margin-top:22px;}
.footer-social a{width:36px; height:36px; border:1px solid var(--line-dark); border-radius:50%; display:flex; align-items:center; justify-content:center;}
.footer-social a:hover{border-color:var(--gold); color:var(--gold);}
.footer-social svg{width:15px; height:15px; stroke:currentColor;}
.footer-col h4{color:#fff; font-size:13px; letter-spacing:1.3px; text-transform:uppercase; margin-bottom:22px; font-family:'Jost',sans-serif; font-weight:600;}
.footer-col a{display:block; font-size:13.5px; padding:7px 0;}
.footer-col a:hover{color:var(--gold-light);}
.newsletter-row{display:flex; margin-top:16px; border-bottom:1px solid var(--line-dark); padding-bottom:10px;}
.newsletter-row input{flex:1; background:none; border:none; color:#fff; font-size:13.5px;}
.newsletter-row input::placeholder{color:var(--text-on-dark-muted);}
.newsletter-row button{background:none; border:none; color:var(--gold);}
.footer-bottom{display:flex; justify-content:space-between; align-items:center; padding:26px 0; font-size:12px; flex-wrap:wrap; gap:14px;}
.footer-bottom .legal-links{display:flex; gap:20px;}
.footer-bottom .legal-links a:hover{color:var(--gold-light);}

/* ===== GENERIC SECTION HELPERS (used on homepage) ===== */
section{padding:100px 0;}
section.tight{padding:80px 0;}
.section-alt{background:var(--cream);}
.section-dark{background:var(--ink); color:var(--text-on-dark);}
.section-dark h2, .section-dark h3, .section-dark h4{color:#fff;}
.section-dark .section-head p{color:var(--text-on-dark-muted);}
.row-head{display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:44px; gap:20px; flex-wrap:wrap;}
.center-cta{text-align:center; margin-top:50px;}

.reveal{opacity:0; transform:translateY(24px); transition:opacity .8s ease, transform .8s ease;}
.reveal.in{opacity:1; transform:translateY(0);}
::selection{background:var(--gold); color:#fff;}
:focus-visible{outline:2px solid var(--gold); outline-offset:2px;}
