/* ============ ApnaGhar v2 — shared additions ============ */
.ag-modal { position:fixed; inset:0; background:rgba(15,35,64,.6); display:flex; align-items:center; justify-content:center; z-index:2000; padding:16px; opacity:0; pointer-events:none; transition:opacity .25s; }
.ag-modal.open { opacity:1; pointer-events:all; }
.ag-modal-box { background:#fff; border-radius:16px; padding:28px; width:100%; max-width:480px; max-height:92vh; overflow:auto; position:relative; transform:translateY(16px); transition:transform .25s; }
.ag-modal.open .ag-modal-box { transform:none; }
.ag-modal-box h3 { font-size:20px; font-weight:700; color:var(--navy); margin-bottom:4px; padding-right:30px; }
.ag-modal-sub { font-size:14px; color:var(--text-light); margin-bottom:18px; }
.ag-modal-x { position:absolute; top:14px; right:14px; width:34px; height:34px; border-radius:50%; background:var(--gray-100); color:var(--text); }
.ag-consent { display:flex; gap:8px; align-items:flex-start; font-size:12px; color:var(--text-light); margin-bottom:14px; }
.ag-consent input { margin-top:3px; }
.ag-wa { display:block; text-align:center; margin-top:14px; color:#128c7e; font-weight:600; font-size:14px; }
.status-success { color:var(--green); background:#eafaf1; padding:10px 12px; border-radius:8px; font-size:14px; }
.status-error { color:var(--red); background:#fdecea; padding:10px 12px; border-radius:8px; font-size:14px; }
.launch-badge { background:var(--gold) !important; color:var(--navy-dark) !important; }

/* Generic page blocks */
.page-hero { background:linear-gradient(135deg,var(--navy-dark) 0%,var(--navy) 100%); padding:120px 0 48px; color:#fff; }
.page-hero .breadcrumb { display:flex; gap:8px; align-items:center; font-size:13px; color:rgba(255,255,255,.6); margin-bottom:14px; }
.page-hero .breadcrumb a { color:var(--gold); }
.page-hero h1 { font-family:'Playfair Display',serif; font-size:clamp(28px,5vw,42px); margin-bottom:8px; }
.page-hero p { color:rgba(255,255,255,.75); }
.filter-bar { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:24px; }
.filter-bar select, .filter-bar input { padding:10px 14px; border:1px solid var(--gray-400); border-radius:8px; font-size:14px; background:#fff; }
.filter-bar input { flex:1; min-width:200px; }
.pill-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:20px; }
.pill-tabs button { padding:8px 16px; border-radius:30px; border:1px solid var(--gray-400); background:#fff; font-size:13px; font-weight:600; color:var(--text); }
.pill-tabs button.active { background:var(--navy); color:#fff; border-color:var(--navy); }

/* Project detail */
.pd-gallery { display:grid; grid-template-columns:2fr 1fr; gap:10px; border-radius:16px; overflow:hidden; margin-bottom:28px; }
.pd-gallery .pd-main { aspect-ratio:16/10; background:var(--gray-100); cursor:zoom-in; }
.pd-gallery .pd-side { display:grid; grid-template-rows:1fr 1fr; gap:10px; }
.pd-gallery img { width:100%; height:100%; object-fit:cover; }
.pd-gallery .pd-side div { position:relative; background:var(--gray-100); cursor:zoom-in; overflow:hidden; }
.pd-more { position:absolute; inset:0; background:rgba(0,0,0,.5); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:18px; }
.pd-layout { display:grid; grid-template-columns:1fr 360px; gap:32px; align-items:start; padding-bottom:80px; }
.pd-card { background:#fff; border:1px solid var(--gray-200); border-radius:var(--radius); padding:24px; margin-bottom:20px; }
.pd-card h2 { font-size:20px; color:var(--navy); margin-bottom:14px; }
.pd-facts { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:14px; }
.pd-fact { background:var(--off-white); border-radius:10px; padding:12px 14px; }
.pd-fact span { display:block; font-size:11px; text-transform:uppercase; color:var(--text-light); letter-spacing:.04em; }
.pd-fact b { color:var(--navy); font-size:15px; }
.pd-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:10px; }
.pd-list li { display:flex; gap:8px; align-items:flex-start; font-size:14px; }
.pd-list li i { color:var(--gold); margin-top:4px; }
.pd-video { aspect-ratio:16/9; border-radius:12px; overflow:hidden; background:#000; }
.pd-video iframe, .pd-video video { width:100%; height:100%; border:0; }
.pd-side-card { position:sticky; top:90px; }
.pd-price { font-size:26px; font-weight:800; color:var(--navy); }
.pd-offer { background:#fff8e1; border:1px dashed var(--gold); border-radius:10px; padding:10px 12px; font-size:13px; margin:12px 0; }
.pd-actions { display:flex; flex-direction:column; gap:10px; margin-top:14px; }
.btn-whatsapp { background:#25d366; color:#fff; }
.unit-table { width:100%; border-collapse:collapse; font-size:14px; }
.unit-table th, .unit-table td { padding:10px; border-bottom:1px solid var(--gray-200); text-align:left; }
.ag-lightbox { position:fixed; inset:0; background:rgba(0,0,0,.9); z-index:3000; display:none; align-items:center; justify-content:center; }
.ag-lightbox.open { display:flex; }
.ag-lightbox img { max-width:92vw; max-height:88vh; border-radius:8px; }
.ag-lightbox button { position:absolute; color:#fff; font-size:28px; padding:16px; }
.ag-lightbox .lb-x { top:10px; right:10px; } .ag-lightbox .lb-p { left:10px; } .ag-lightbox .lb-n { right:10px; }

/* About / services */
.info-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:20px; }
.info-card { background:#fff; border:1px solid var(--gray-200); border-radius:var(--radius); padding:24px; transition:var(--transition); }
.info-card:hover { box-shadow:var(--shadow-md); transform:translateY(-3px); }
.info-card i.big { font-size:30px; color:var(--gold); margin-bottom:12px; }
.info-card h3 { color:var(--navy); font-size:18px; margin-bottom:8px; }
.info-card p { color:var(--text-light); font-size:14px; }
.about-split { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.about-split img { border-radius:16px; box-shadow:var(--shadow-md); background:var(--off-white); padding:30px; }
.map-embed { width:100%; height:360px; border:0; border-radius:12px; }
@media (max-width: 900px) {
  .pd-layout, .about-split { grid-template-columns:1fr; }
  .pd-gallery { grid-template-columns:1fr; }
  .pd-gallery .pd-side { grid-template-rows:none; grid-template-columns:1fr 1fr; height:110px; }
  .pd-side-card { position:static; }
}

/* ============ Post-Your-Ad / Partner portal ============ */
.nav-actions .btn-post { background:var(--gold); color:var(--navy-dark); font-weight:700; border:none; }
.nav-actions .btn-post:hover { filter:brightness(1.05); }
.type-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:18px; }
.type-card { border:2px solid var(--gray-200); border-radius:12px; padding:16px 10px; text-align:center; cursor:pointer; transition:var(--transition); background:#fff; }
.type-card i { font-size:26px; color:var(--navy); display:block; margin-bottom:6px; }
.type-card b { display:block; color:var(--navy); }
.type-card small { color:var(--text-light); font-size:12px; }
.type-card.active { border-color:var(--gold); background:#fffaf0; box-shadow:0 0 0 3px rgba(201,168,76,.2); }
.steps-row { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.step-box { text-align:center; padding:18px; }
.step-box .n { width:42px; height:42px; border-radius:50%; background:var(--navy); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-weight:700; margin-bottom:10px; }
.portal-wrap { padding:110px 0 80px; min-height:80vh; background:var(--off-white); }
.portal-head { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:20px; }
.portal-head h1 { font-size:26px; color:var(--navy); }
.portal-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:18px; }
.portal-tabs button { padding:10px 16px; border-radius:10px; background:#fff; border:1px solid var(--gray-200); font-weight:600; color:var(--text); }
.portal-tabs button.active { background:var(--navy); color:#fff; border-color:var(--navy); }
.portal-card { background:#fff; border:1px solid var(--gray-200); border-radius:14px; padding:22px; margin-bottom:18px; }
.p-list { display:flex; flex-direction:column; gap:12px; }
.p-item { display:grid; grid-template-columns:96px 1fr auto; gap:14px; align-items:center; background:#fff; border:1px solid var(--gray-200); border-radius:12px; padding:12px; }
.p-item img { width:96px; height:72px; object-fit:cover; border-radius:8px; background:var(--gray-100); }
.p-item h4 { color:var(--navy); font-size:15px; margin-bottom:4px; }
.p-item .meta { font-size:12px; color:var(--text-light); }
.p-item .acts { display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
.ap-badge { display:inline-block; font-size:11px; font-weight:700; padding:3px 9px; border-radius:20px; margin-right:6px; }
.ap-Pending { background:#fff4e0; color:#b26a00; } .ap-Approved { background:#e6f7ee; color:#1e8449; } .ap-Rejected { background:#fdecea; color:#c0392b; }
.pf-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
.pf-grid .full { grid-column:1/-1; }
.pf-sec { grid-column:1/-1; font-weight:700; color:var(--navy); font-size:13px; text-transform:uppercase; border-bottom:1px solid var(--gray-200); padding-bottom:6px; margin:8px 0 14px; }
.leads-table { width:100%; border-collapse:collapse; font-size:14px; }
.leads-table th, .leads-table td { padding:10px; border-bottom:1px solid var(--gray-200); text-align:left; vertical-align:top; }
/* upload widget (shared with admin) */
.upl-wrap { display:flex; flex-direction:column; gap:6px; width:100%; }
.upl-row { display:flex; gap:6px; align-items:center; }
.upl-row input { flex:1; min-width:0; }
.upl-status { display:none; font-size:12px; color:var(--text-light); } .upl-status.show { display:block; }
.upl-status.ok { color:var(--green); } .upl-status.err { color:var(--red); }
.upl-preview img { width:120px; height:80px; object-fit:cover; border-radius:8px; border:1px solid var(--gray-200); cursor:zoom-in; }
.upl-preview .upl-video { width:100%; max-width:320px; aspect-ratio:16/9; border-radius:8px; overflow:hidden; background:#000; }
.upl-preview .upl-video iframe, .upl-preview .upl-video video { width:100%; height:100%; border:0; }
.upl-doc { font-size:13px; color:var(--navy); font-weight:600; }
.btn-icon { padding:8px 10px; }
.lightbox-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.85); z-index:3000; align-items:center; justify-content:center; }
.lightbox-overlay.show { display:flex; } .lightbox-overlay img { max-width:90vw; max-height:90vh; border-radius:8px; }
@media (max-width: 700px) {
  .type-cards { grid-template-columns:1fr; } .steps-row { grid-template-columns:1fr 1fr; }
  .pf-grid { grid-template-columns:1fr; } .p-item { grid-template-columns:72px 1fr; } .p-item img { width:72px; height:56px; } .p-item .acts { grid-column:1/-1; justify-content:flex-start; }
}

/* ===== v2.5 — listing validity (45 / 60 days), agent filters ===== */
.ap-Expired { background:#fdecea; color:#b42318; } .ap-Soon { background:#fff4d6; color:#8a5a00; } .ap-Left { background:#e6f6ec; color:#146c2e; }
.ad-filter { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:8px; margin-bottom:12px; }
.ad-filter input, .ad-filter select { padding:9px 10px; border:1px solid var(--gray-200); border-radius:8px; font-size:13px; background:#fff; font-family:inherit; width:100%; }
.ad-count { font-size:12px; color:var(--text-light); margin:0 0 10px; display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; }
.soc-hint { display:block; font-size:11px; color:var(--text-light); margin-top:4px; }
.profile-note { font-size:12px; color:var(--text-light); background:#eef4fb; border:1px solid #c9daf0; border-radius:8px; padding:10px 12px; margin-bottom:14px; }
