/* ==========================================================
   NivaasMart — ANDROID APP project detail page (app-project.css)
   Every rule is scoped to body.capacitor-app (only the Android app sets
   it). On the website the .nmpd block stays display:none.
   ========================================================== */
body.capacitor-app .nmpd { display: block !important; }
body.capacitor-app.nm-app-pd { background: #EEF0F6 !important; padding: 0 0 calc(84px + env(safe-area-inset-bottom, 0px)) !important; }
/* the website's page, header, floating buttons and bars are replaced by the app view */
body.capacitor-app.nm-app-pd .pd2-page,
body.capacitor-app.nm-app-pd .pd-stickybar,
body.capacitor-app.nm-app-pd .site-header,
body.capacitor-app.nm-app-pd .app-back-btn,
body.capacitor-app.nm-app-pd .app-bottom-nav,
body.capacitor-app.nm-app-pd #pdFloatChat,
body.capacitor-app.nm-app-pd .site-footer,
body.capacitor-app.nm-app-pd .pd-breadcrumb,
body.capacitor-app.nm-app-pd .breadcrumb { display: none !important; }
body.capacitor-app.nm-app-pd main.main-content { padding: 0 !important; margin: 0 !important; max-width: 100% !important; }

.nmpd { --b: #2563EB; --b2: #1E4FD0; --bs: #EAF1FF; --ink: #111427; --tx: #2E3247; --mu: #6B7185; --ln: #E4E7F0; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--tx); }
.nmpd a { text-decoration: none; }
.nmpd button { font: inherit; cursor: pointer; }

/* ---- compact header (appears after the photo) ---- */
.nmpd-mini {
    position: fixed; top: 0; left: 0; right: 0; z-index: 900; display: flex; align-items: center; gap: 4px;
    padding: calc(var(--nm-sat, 0px) + 8px) 10px 10px 4px; background: #fff; box-shadow: 0 2px 12px rgba(17,20,39,.08);
    transform: translateY(-110%); transition: transform .22s ease;
}
.nmpd-mini.on { transform: none; }
.nmpd-mini-t { flex: 1; min-width: 0; padding-left: 2px; }
.nmpd-mini-t b { display: block; font-size: 17px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nmpd-mini-t span { display: block; font-size: 13px; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nmpd-ic { width: 42px; height: 42px; border: 0; background: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); flex: 0 0 auto; }
.nmpd-ic.nmpd-call, .nmpd-fab.nmpd-call { background: var(--b); color: #fff !important; }
.nmpd-heart.saved { color: #E11D48 !important; }
.nmpd-heart.saved svg { fill: currentColor; }

/* ---- photo gallery ---- */
.nmpd-hero { position: relative; height: 62vh; min-height: 340px; max-height: 520px; background: #0F172A; overflow: hidden; }
.nmpd-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.nmpd-track::-webkit-scrollbar { display: none; }
.nmpd-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; }
.nmpd-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nmpd-noimg { height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #2A6BF2, #1E4FD0); }
.nmpd-hero::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 130px; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0)); }
.nmpd-hero-top { position: absolute; top: calc(var(--nm-sat, 0px) + 10px); left: 12px; right: 12px; z-index: 2; display: flex; align-items: center; gap: 10px; }
.nmpd-hero-top .sp { flex: 1; }
.nmpd-fab { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 3px 12px rgba(0,0,0,.18); }
.nmpd-count { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 16px; background: rgba(17,20,39,.8); color: #fff; font-size: 13.5px; }
.nmpd-dots { display: inline-flex; gap: 4px; align-items: center; }
.nmpd-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.55); }
.nmpd-dots i.on { width: 8px; height: 8px; background: #fff; }
.nmpd-cap { position: absolute; right: 14px; bottom: 14px; z-index: 2; max-width: 50%; padding: 8px 12px; border-radius: 12px; background: rgba(40,48,40,.72); color: #fff; font-size: 13.5px; line-height: 1.35; }
.nmpd-video { position: absolute; left: 14px; bottom: 56px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 17px; border: 0; background: rgba(255,255,255,.95); color: var(--ink); font-weight: 700; font-size: 13px; }

/* ---- sections ---- */
.nmpd-sec { background: #fff; padding: 20px 16px 22px; margin-bottom: 8px; }
.nmpd-head { padding-top: 18px; }
.nmpd-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.nmpd-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 1px solid var(--ln); border-radius: 17px; font-size: 13.5px; color: var(--tx); }
.nmpd-chip .ok { color: #16A34A; display: inline-flex; }
.nmpd-title-row { display: flex; gap: 12px; align-items: flex-start; }
.nmpd-title { flex: 1; min-width: 0; }
.nmpd-title h1 { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 800; color: var(--ink); letter-spacing: -.2px; }
.nmpd-title p { margin: 6px 0 0; font-size: 14.5px; color: var(--mu); }
.nmpd-map { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--b); font-size: 13px; font-weight: 600; }
.nmpd-map span { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--ln); display: flex; align-items: center; justify-content: center; background: #F6F8FD; }
.nmpd-price { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.nmpd-price b { font-size: 24px; font-weight: 800; color: var(--ink); }
.nmpd-price span { font-size: 13.5px; color: var(--mu); }
.nmpd-bhk { margin: 4px 0 0; font-size: 14.5px; color: var(--tx); }
.nmpd-dev { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--ln); }
.nmpd-dev-logo { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; flex: 0 0 48px; background: var(--bs); color: var(--b); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.nmpd-dev-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.nmpd-dev-t { flex: 1; min-width: 0; }
.nmpd-dev-t b { display: block; font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nmpd-dev-t a { display: inline-flex; align-items: center; gap: 2px; margin-top: 2px; font-size: 13.5px; font-weight: 600; color: var(--tx); text-decoration: underline !important; }

.nmpd-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.nmpd-h h2, .nmpd-h2 { margin: 0 0 14px; font-size: 19px; font-weight: 800; color: var(--ink); }
.nmpd-h h2 { margin: 0; }
.nmpd-h small { font-size: 11.5px; color: var(--mu); }
.nmpd-h3 { margin: 18px 0 10px; font-size: 16px; font-weight: 700; color: var(--ink); }
.nmpd-muted { margin: 0 0 12px; font-size: 14px; color: var(--mu); line-height: 1.5; }
.nmpd-note { margin: 8px 0 0; font-size: 12px; color: var(--mu); }
.nmpd-link { display: inline-flex; align-items: center; gap: 2px; margin-top: 8px; border: 0; background: none; padding: 0; color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: underline; }

/* buttons */
.nmpd-btn-solid { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 14px; border: 0; background: var(--b); color: #fff !important; font-weight: 700; font-size: 15.5px; margin-top: 16px; width: 100%; }
.nmpd-btn-solid.sm { width: auto; height: 44px; margin: 0; padding: 0 16px; font-size: 14.5px; border-radius: 12px; flex: 0 0 auto; }
.nmpd-btn-line { display: flex; align-items: center; justify-content: center; height: 46px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--b); background: #fff; color: var(--b) !important; font-weight: 700; font-size: 15px; flex: 1; }
.nmpd-btn-wa { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 14px; background: #E8F8EE; color: #128C4A !important; border: 1px solid #BFE9CF; font-weight: 700; }
.nmpd-wa-sq { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid #1F2937; display: inline-flex; align-items: center; justify-content: center; color: #25D366 !important; background: #fff; }

/* floor plans */
.nmpd-filter { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 0 16px; }
.nmpd-filter::-webkit-scrollbar { display: none; }
.nmpd-filter button { flex: 0 0 auto; min-width: 74px; padding: 9px 16px; border-radius: 26px; border: 1px solid var(--ln); background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 600; display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.nmpd-filter button small { font-size: 11.5px; font-weight: 500; color: var(--mu); }
.nmpd-filter button.on { background: #1F2230; border-color: #1F2230; color: #fff; }
.nmpd-filter button.on small { color: #C9CCD8; }
.nmpd-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; }
.nmpd-rail::-webkit-scrollbar { display: none; }
.nmpd-fp { flex: 0 0 72%; scroll-snap-align: start; border: 1px solid var(--ln); border-radius: 16px; padding: 12px 14px 14px; display: flex; flex-direction: column; }
.nmpd-fp-img { height: 150px; border-radius: 10px; background: #F6F8FD; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; overflow: hidden; color: #A8B0C6; }
.nmpd-fp-img img { width: 100%; height: 100%; object-fit: contain; }
.nmpd-fp small { font-size: 12.5px; color: var(--mu); }
.nmpd-fp small.st { font-size: 13.5px; }
.nmpd-fp b { font-size: 16px; color: var(--ink); margin: 4px 0 6px; }
.nmpd-fp .ar { font-size: 14.5px; color: var(--tx); }
.nmpd-fp strong { font-size: 17px; color: var(--ink); margin: 8px 0 12px; }
.nmpd-pcard-btns { display: flex; gap: 10px; margin-top: auto; }

/* EMI */
.nmpd-emi { background: #F2F4F9; border-radius: 16px; padding: 16px; }
.nmpd-emi p { margin: 0; font-size: 15px; color: var(--tx); }
.nmpd-emi b { color: var(--ink); }
.nmpd-emi b.big { font-size: 19px; }
.nmpd-emi .m { margin-top: 8px; font-size: 14px; color: var(--mu); }
.nmpd-emi .m span { margin: 0 4px; }
.nmpd-emi-more summary { list-style: none; margin-top: 12px; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--ink); text-decoration: underline; }
.nmpd-emi-more summary::-webkit-details-marker { display: none; }
.nmpd-emi-grid { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin-top: 12px; font-size: 14px; }
.nmpd-emi-grid span { color: var(--mu); }

/* overview */
.nmpd-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nmpd-fact { border: 1px solid var(--ln); border-radius: 14px; padding: 12px; }
.nmpd-fact span { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--mu); }
.nmpd-fact b { display: block; margin-top: 8px; font-size: 16px; color: var(--ink); }
.nmpd-hl { list-style: none; margin: 0; padding: 0; }
.nmpd-hl li { position: relative; padding: 0 0 12px 30px; font-size: 14.5px; line-height: 1.5; color: var(--tx); }
.nmpd-hl li::before { content: '✦'; position: absolute; left: 4px; top: 0; color: #A0A6BC; font-size: 15px; }
.nmpd-hl li.more { display: none; }
.nmpd-hl.all li.more { display: list-item; }
.nmpd-rera-id { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; color: var(--mu); letter-spacing: .02em; }
.nmpd-rera-id button { border: 0; background: none; color: var(--tx); padding: 4px; }
.nmpd-rera-id button.ok { color: #16A34A; }

/* project cards (similar / locality / better priced) */
.nmpd-pcard { flex: 0 0 76%; scroll-snap-align: start; border: 1px solid var(--ln); border-radius: 18px; padding: 10px; display: flex; flex-direction: column; }
.nmpd-pcard-img { position: relative; display: block; height: 160px; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #2A6BF2, #1E4FD0); }
.nmpd-pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nmpd-rera-pill { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 14px; background: rgba(17,20,39,.82); color: #fff; font-size: 12.5px; font-weight: 700; }
.nmpd-rera-pill svg { color: #34D399; }
.nmpd-pcard-body { display: flex; flex-direction: column; padding: 10px 4px 12px; color: var(--tx); }
.nmpd-pcard-body small { font-size: 13px; color: var(--mu); }
.nmpd-pcard-body b { font-size: 16.5px; color: var(--ink); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nmpd-pcard-body .loc { font-size: 13.5px; color: var(--mu); margin-top: 2px; }
.nmpd-pcard-body strong { font-size: 16px; color: var(--ink); margin-top: 10px; }
.nmpd-pcard-body .sub { font-size: 13.5px; color: var(--mu); margin-top: 4px; }
.nmpd-pcard .nmpd-pcard-btns { padding: 0 4px 4px; }

/* compare */
.nmpd-cmp { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.nmpd-cmp::-webkit-scrollbar { display: none; }
.nmpd-cmp-col { flex: 0 0 44%; min-width: 160px; padding: 10px; border: 1px solid var(--ln); border-left-width: 0; display: flex; flex-direction: column; }
.nmpd-cmp-col:first-child { border-left-width: 1px; border-radius: 14px 0 0 14px; }
.nmpd-cmp-col:last-child { border-radius: 0 14px 14px 0; }
.nmpd-cmp-col.me { background: #F7F9FF; }
.nmpd-cmp-img { display: block; height: 100px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #2A6BF2, #1E4FD0); margin-bottom: 8px; }
.nmpd-cmp-img img { width: 100%; height: 100%; object-fit: cover; }
.nmpd-cmp-col small { font-size: 12.5px; color: var(--mu); }
.nmpd-cmp-col b { font-size: 14.5px; color: var(--ink); margin: 6px 0 4px; min-height: 38px; }
.nmpd-cmp-col .loc { font-size: 13px; color: var(--mu); min-height: 34px; }
.nmpd-cmp-col label { margin-top: 10px; font-size: 12px; color: var(--mu); }
.nmpd-cmp-col select { margin-top: 4px; height: 36px; border-radius: 10px; border: 0; background: #EEF1F7; padding: 0 8px; font: 600 13px 'Inter', sans-serif; color: var(--ink); width: 100%; }
.nmpd-cmp-price { font-size: 18px; color: var(--ink); margin: 12px 0; min-height: 22px; }
.nmpd-cmp-col .nmpd-btn-line { flex: 0 0 auto; height: 42px; margin-top: auto; }

/* summary */
.nmpd-sum { display: flex; gap: 14px; align-items: center; padding-bottom: 8px; }
.nmpd-sum-img { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex: 0 0 64px; background: var(--bs); }
.nmpd-sum-img img { width: 100%; height: 100%; object-fit: cover; }
.nmpd-sum b { display: block; font-size: 16.5px; color: var(--ink); }
.nmpd-sum span { display: block; margin-top: 6px; font-size: 14.5px; color: var(--mu); }
.nmpd-sum i { font-style: normal; margin: 0 4px; }

/* accordions */
.nmpd-acc-wrap { margin-bottom: 8px; }
.nmpd-acc { background: #fff; margin-bottom: 8px; }
.nmpd-acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px; }
.nmpd-acc summary::-webkit-details-marker { display: none; }
.nmpd-acc summary b { display: block; font-size: 17px; font-weight: 800; color: var(--ink); }
.nmpd-acc summary small { display: block; margin-top: 4px; font-size: 13.5px; color: var(--mu); }
.nmpd-acc summary svg { flex: 0 0 auto; transition: transform .2s; color: var(--ink); }
.nmpd-acc[open] summary svg { transform: rotate(180deg); }
.nmpd-acc-body { padding: 0 16px 18px; }
.nmpd-acc-body .nmpd-btn-solid { margin-top: 0; }
.nmpd-acc-body .pd2-card { border: 0 !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; }
.nmpd-acc-body .pd2-card > h2:first-child, .nmpd-acc-body .pd2-card > .pd2-card-head:first-child h2 { display: none; }
.nmpd-acc-body iframe { width: 100% !important; border-radius: 12px; }
.nmpd-prog { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 13.5px; }
.nmpd-prog span { flex: 0 0 80px; color: var(--mu); }
.nmpd-prog i { flex: 1; height: 8px; border-radius: 4px; background: #EEF1F7; overflow: hidden; }
.nmpd-prog i b { display: block; height: 100%; background: var(--b); }
.nmpd-prog em { font-style: normal; font-weight: 700; color: var(--ink); width: 40px; text-align: right; }
.nmpd-specs { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin-top: 12px; font-size: 14px; }
.nmpd-specs span { color: var(--mu); }
.nmpd-specs b { color: var(--ink); font-weight: 600; }

/* bottom bar */
.nmpd-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; display: flex; gap: 10px; align-items: center;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px)); background: #fff; box-shadow: 0 -6px 18px rgba(17,20,39,.08);
}
.nmpd-bar .nmpd-btn-line { flex: 0 0 38%; height: 52px; font-size: 15.5px; border-radius: 14px; }
.nmpd-bar .nmpd-btn-solid { margin: 0; flex: 1; height: 52px; }
.nmpd-bar .nmpd-wa-sq { height: 52px; flex-basis: 52px; width: 52px; border-radius: 14px; border-color: #BFE9CF; background: #E8F8EE; }

/* phone sheet + floor plan zoom */
.nmpd-sheet { position: fixed; inset: 0; z-index: 2000; background: rgba(12,15,35,.45); display: none; align-items: flex-end; }
.nmpd-sheet.open { display: flex; }
.nmpd-sheet-p { width: 100%; background: #fff; border-radius: 22px 22px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom, 0px)); text-align: center; animation: nmpdUp .22s ease; }
@keyframes nmpdUp { from { transform: translateY(100%); } to { transform: none; } }
.nmpd-grip { width: 40px; height: 4px; border-radius: 2px; background: #D5D8E3; margin: 0 auto 14px; }
.nmpd-sheet-p > b { font-size: 16px; color: var(--ink); }
.nmpd-phone-no { margin: 8px 0 4px; font-size: 26px; font-weight: 800; letter-spacing: .04em; color: var(--ink); }
.nmpd-sheet-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.nmpd-sheet-btns .nmpd-btn-solid { margin: 0; }
.nmpd-zoom { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.nmpd-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; }
.nmpd-zoom button { position: absolute; top: calc(var(--nm-sat, 0px) + 10px); right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 28px; line-height: 1; }
/* keep the first card 16px in from the edge when the row snaps */
.nmpd-rail, .nmpd-cmp, .nmpd-filter { scroll-padding: 0 16px; }
.nmpd-bar .nmpd-btn-line { flex: 0 0 33%; font-size: 14.5px; padding: 0 8px; white-space: nowrap; }
.nmpd-bar .nmpd-btn-solid { white-space: nowrap; font-size: 15px; padding: 0 10px; }

/* ---- Photos are never cropped: the whole photo shows ("contain"),
       and a soft blurred copy of it fills the space around it ---- */
.nmpd-slide { position: relative; overflow: hidden; background: #0F172A; }
.nmpd-slide img.bg { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(22px) brightness(.72) saturate(1.1); transform: scale(1.05); }
.nmpd-slide img.fg { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
.nmpd-slide > img:only-child { object-fit: contain; }
.nmpd-hero { height: auto; aspect-ratio: 4 / 3.4; max-height: 62vh; min-height: 300px; }
/* description */
.nmpd-desc { font-size: 14.5px; line-height: 1.6; color: var(--tx); max-height: 7.2em; overflow: hidden; position: relative; }
.nmpd-desc.all { max-height: none; }
