/* ═══════════════════════════════════════════════════════════════
   Proplisto Spotlight — project dossier pages
   Brand red for actions, "stamp blue" for facts that come from the
   RERA record, a cool survey-sheet grey for data blocks.
   ═══════════════════════════════════════════════════════════════ */
.sp-body {
  --sp-red: #C11730;
  --sp-red-dark: #9E1227;
  --sp-ink: #222222;
  --sp-muted: #5B6168;
  --sp-stamp: #1F4E79;
  --sp-stamp-tint: #EAF1F8;
  --sp-sheet: #F3F4F2;
  --sp-line: #DADDD8;
  --sp-ok: #17663A;
  background: #FFFFFF;
  color: var(--sp-ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}
html:has(> body.sp-body) { overflow-x: hidden; }
.sp-body *, .sp-body *::before, .sp-body *::after { box-sizing: border-box; }
.sp { max-width: 1180px; margin: 0 auto; padding: 18px 20px 64px; }
.sp a { color: var(--sp-red); text-underline-offset: 3px; }
.sp a:focus-visible, .sp button:focus-visible, .sp input:focus-visible, .sp select:focus-visible, .sp summary:focus-visible {
  outline: 3px solid var(--sp-stamp); outline-offset: 2px;
}

/* Breadcrumb */
.sp-crumbs { font-size: 13px; color: var(--sp-muted); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.sp-crumbs a { color: var(--sp-muted); text-decoration: none; }
.sp-crumbs a:hover { color: var(--sp-red); }

/* ── Hero ── */
.sp-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: start; padding-bottom: 28px; }
.sp-hero--sub { grid-template-columns: 1fr; padding-bottom: 18px; }
.sp-dev { margin: 0 0 6px; font-size: 15px; color: var(--sp-muted); font-weight: 500; }
.sp-h1 {
  font-family: 'Poppins', 'Inter', sans-serif; font-weight: 600;
  font-size: clamp(26px, 2.9vw, 38px); line-height: 1.18; letter-spacing: -0.015em;
  margin: 0 0 12px; color: var(--sp-ink); max-width: 22ch;
}
.sp-hero--sub .sp-h1 { font-size: clamp(24px, 2.5vw, 32px); max-width: 28ch; }
.sp-tagline { font-size: 17px; color: #3B4046; margin: 0 0 14px; max-width: 46ch; }
.sp-aka { font-size: 14px; color: var(--sp-muted); margin: 0 0 22px; max-width: 60ch; }
.sp-aka span { color: var(--sp-ink); font-weight: 600; }

.sp-keyfacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 22px; border-top: 2px solid var(--sp-ink); }
.sp-keyfacts > div { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--sp-line); }
.sp-keyfacts > div + div { padding-left: 14px; border-left: 1px solid var(--sp-line); }
.sp-keyfacts dt { font-size: 13px; color: var(--sp-muted); margin-bottom: 2px; }
.sp-keyfacts dd { margin: 0; font-weight: 600; font-size: 15px; line-height: 1.35; font-variant-numeric: tabular-nums; }
.sp-kf-rera dd { color: var(--sp-stamp); }

.sp-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.sp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 8px; border: 1.5px solid var(--sp-ink);
  font: 600 15px/1.2 'Inter', sans-serif; color: var(--sp-ink) !important; background: #fff;
  text-decoration: none; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.sp-btn:hover { background: var(--sp-sheet); }
.sp-btn--primary { background: var(--sp-red); border-color: var(--sp-red); color: #fff !important; }
.sp-btn--primary:hover { background: var(--sp-red-dark); border-color: var(--sp-red-dark); }
.sp-btn--wa { border-color: #1E9E4F; color: #157A3C !important; }
.sp-btn--block { width: 100%; }
.sp-btn:disabled { opacity: .7; cursor: default; }
.sp-updated { font-size: 13px; color: var(--sp-muted); margin: 0; }

.sp-hero-media { margin: 0; position: relative; }
.sp-hero-media img { width: 100%; height: auto; aspect-ratio: 9 / 6.4; object-fit: cover; border-radius: 14px; display: block; background: var(--sp-sheet); }
.sp-hero-media figcaption { position: absolute; right: 12px; bottom: 12px; }
.sp-hero-media figcaption a { background: rgba(255,255,255,.94); color: var(--sp-ink); padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; }

/* ── Sub-page tabs ── */
.sp-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--sp-line); margin: 0 0 32px; position: sticky; top: var(--sp-top, 120px); background: #fff; z-index: 20; scrollbar-width: none; box-shadow: 0 -14px 0 0 #fff; }
.sp-tabs::-webkit-scrollbar { display: none; }
.sp-tabs a { padding: 13px 16px; white-space: nowrap; color: var(--sp-muted); text-decoration: none; font-weight: 500; font-size: 15px; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.sp-tabs a:hover { color: var(--sp-ink); }
.sp-tabs a.is-active { color: var(--sp-ink); border-bottom-color: var(--sp-red); font-weight: 600; }

/* ── Layout ── */
.sp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.sp-main { min-width: 0; }
.sp-sec { margin: 0 0 44px; }
.sp-sec h2 { font-family: 'Poppins', 'Inter', sans-serif; font-weight: 600; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 14px; }
.sp-sec h3 { font-size: 17px; margin: 18px 0 8px; }
.sp-sec p { margin: 0 0 14px; max-width: 72ch; }
.sp-more { margin-top: 10px; font-weight: 600; }
.sp-note { font-size: 14px; color: var(--sp-muted); max-width: 72ch; }
.sp-callout { background: var(--sp-stamp-tint); border-left: 4px solid var(--sp-stamp); padding: 16px 18px; border-radius: 0 10px 10px 0; margin: -22px 0 44px; }
.sp-callout p:last-child { margin-bottom: 0; }

/* Lists */
.sp-list { padding-left: 20px; margin: 0 0 14px; }
.sp-list li { margin-bottom: 7px; max-width: 70ch; }
.sp-list--check { list-style: none; padding-left: 0; }
.sp-list--check li { padding-left: 28px; position: relative; }
.sp-list--check li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 12px; height: 7px; border-left: 2.5px solid var(--sp-ok); border-bottom: 2.5px solid var(--sp-ok); transform: rotate(-45deg); }
.sp-amen { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 18px; }
.sp-amen li { padding: 7px 0; border-bottom: 1px solid var(--sp-line); font-size: 15px; }

/* Tables */
.sp-table-wrap { overflow-x: auto; margin: 0 0 14px; border: 1px solid var(--sp-line); border-radius: 10px; }
.sp-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.sp-table th, .sp-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--sp-line); }
.sp-table thead th { background: var(--sp-sheet); font-size: 13px; font-weight: 600; color: #3B4046; }
.sp-table tbody tr:last-child th, .sp-table tbody tr:last-child td { border-bottom: 0; }
.sp-table tbody th { font-weight: 600; }
.sp-table--num td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sp-table--facts { min-width: 0; }
.sp-table--facts tbody th { width: 38%; color: #3B4046; font-weight: 500; }
.sp-table--facts td { font-weight: 600; }

/* Possession: two dates */
.sp-dates { display: grid; grid-template-columns: 1fr 1fr; position: relative; margin: 6px 0 14px; }
.sp-dates::before { content: ""; position: absolute; left: 10px; right: 10px; top: 9px; height: 2px; background: var(--sp-line); }
.sp-date { position: relative; padding-top: 28px; }
.sp-date::before { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--sp-muted); }
.sp-date--rera::before { background: var(--sp-stamp); border-color: var(--sp-stamp); }
.sp-date span { display: block; font-size: 13px; color: var(--sp-muted); }
.sp-date strong { display: block; font: 600 21px/1.25 'Poppins', 'Inter', sans-serif; letter-spacing: -0.01em; }
.sp-date--rera strong { color: var(--sp-stamp); }

/* Floor plans / gallery */
.sp-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 12px; }
.sp-thumbs--big { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.sp-plan { margin: 0; position: relative; border: 1px solid var(--sp-line); border-radius: 10px; overflow: hidden; background: var(--sp-sheet); }
.sp-plan img { width: 100%; height: 200px; object-fit: contain; display: block; background: #fff; }
.sp-plan figcaption { font-size: 13px; padding: 8px 10px; color: var(--sp-muted); }
.sp-plan.is-locked img { filter: blur(7px); }
.sp-unlock { display: none; }
.sp-plan.is-locked .sp-unlock { display: flex; position: absolute; inset: 0; align-items: center; justify-content: center; font-weight: 600; color: var(--sp-ink) !important; text-decoration: none; background: rgba(255,255,255,.35); }
.sp-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.sp-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }

/* Pros / cons */
.sp-pc { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.sp-pc h3 { margin-top: 0; padding-bottom: 6px; border-bottom: 2px solid var(--sp-ok); }
.sp-pc > div + div h3 { border-bottom-color: #B45309; }

/* Updates timeline */
.sp-updates { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--sp-line); }
.sp-updates li { padding: 0 0 16px 18px; position: relative; }
.sp-updates li::before { content: ""; position: absolute; left: -6px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--sp-red); }
.sp-updates time { font-size: 13px; color: var(--sp-muted); font-weight: 600; }
.sp-updates p { margin: 2px 0 0; }

/* FAQ */
.sp-faq details { border-bottom: 1px solid var(--sp-line); }
.sp-faq summary { cursor: pointer; padding: 15px 30px 15px 0; font-weight: 600; list-style: none; position: relative; }
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; font-weight: 400; color: var(--sp-muted); }
.sp-faq details[open] summary::after { content: "–"; }
.sp-faq details > div { padding: 0 0 14px; }

/* Related + sources */
.sp-related { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.sp-related a { display: block; padding: 11px 14px; border: 1px solid var(--sp-line); border-radius: 8px; color: var(--sp-ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.sp-related a:hover { border-color: var(--sp-ink); }
.sp-sec--sources h2 { font-size: 18px; }
.sp-sources { font-size: 14px; padding-left: 18px; columns: 2; column-gap: 28px; }
.sp-sources li { break-inside: avoid; margin-bottom: 4px; }
.sp-address { background: var(--sp-sheet); padding: 12px 14px; border-radius: 8px; }

/* Map */
.sp-map { border: 1px solid var(--sp-line); border-radius: 10px; min-height: 120px; display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; background: var(--sp-sheet); overflow: hidden; }
.sp-map iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ── Enquiry rail ── */
.sp-rail { position: sticky; top: calc(var(--sp-top, 120px) + 64px); }
.sp [id] { scroll-margin-top: calc(var(--sp-top, 120px) + 64px); }
.sp-form-card { border: 1px solid var(--sp-line); border-top: 4px solid var(--sp-red); border-radius: 12px; padding: 22px; background: #fff; box-shadow: 0 10px 30px -18px rgba(34,34,34,.35); }
.sp-form-title { font: 600 18px/1.35 'Poppins', 'Inter', sans-serif; margin: 0 0 6px; }
.sp-form-sub { font-size: 14px; color: var(--sp-muted); margin: 0 0 16px; }
.sp-field { display: block; margin-bottom: 12px; }
.sp-field span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.sp-field em { font-weight: 400; color: var(--sp-muted); font-style: normal; }
.sp-field input, .sp-field select { width: 100%; padding: 11px 12px; border: 1.5px solid var(--sp-line); border-radius: 8px; font: 15px 'Inter', sans-serif; background: #fff; color: var(--sp-ink); }
.sp-field input:focus, .sp-field select:focus { border-color: var(--sp-stamp); outline: none; }
.sp-form-msg { font-size: 14px; margin: 10px 0 0; min-height: 1em; }
.sp-form-msg.is-error { color: var(--sp-red); }
.sp-form-msg.is-ok { color: var(--sp-ok); font-weight: 600; }
.sp-form-call { font-size: 14px; color: var(--sp-muted); margin: 12px 0 0; text-align: center; }
.sp-brochures { margin-top: 12px; font-size: 14px; }
.sp-brochures a { display: block; font-weight: 600; margin-top: 4px; }
.sp-sticky { display: none; }

/* ── CTA popup ── */
.sp-modal { position: fixed; inset: 0; z-index: 100000; background: rgba(20,20,20,.62); display: flex; align-items: center; justify-content: center; padding: 18px; }
.sp-modal[hidden] { display: none; }
.sp-modal-box { position: relative; width: 100%; max-width: 420px; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.45); animation: spPop .22s ease-out; }
@keyframes spPop { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.sp-modal-head { background: var(--sp-red); color: #fff; padding: 24px 52px 20px 24px; border-radius: 14px 14px 0 0; }
.sp-modal-head h2 { font: 600 20px/1.3 'Poppins', 'Inter', sans-serif; margin: 0 0 4px; color: #fff; }
.sp-modal-head p { margin: 0; font-size: 14px; opacity: .92; }
.sp-modal-form { padding: 20px 24px 22px; }
.sp-modal-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.2); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.sp-modal-close:hover { background: rgba(255,255,255,.35); }
.sp-modal-done .sp-modal-close, .sp-modal-box:has([data-view=done]:not([hidden])) .sp-modal-close { color: var(--sp-ink); background: var(--sp-sheet); }
.sp-modal-fine { font-size: 12px; color: var(--sp-muted); margin: 10px 0 0; text-align: center; }
.sp-modal-done { padding: 34px 26px 26px; text-align: center; }
.sp-modal-done h2 { font: 600 22px/1.3 'Poppins', 'Inter', sans-serif; margin: 12px 0 6px; }
.sp-modal-done p { color: var(--sp-muted); margin: 0 0 18px; }
.sp-modal-done .sp-btn { margin: 0 4px 10px; }
.sp-modal-tick { width: 56px; height: 56px; border-radius: 50%; background: #E7F4EC; margin: 0 auto; position: relative; }
.sp-modal-tick::after { content: ""; position: absolute; left: 19px; top: 16px; width: 18px; height: 10px; border-left: 3px solid var(--sp-ok); border-bottom: 3px solid var(--sp-ok); transform: rotate(-45deg); }
html.sp-modal-open { overflow: hidden; }
.sp-plan.is-locked { cursor: pointer; }

/* ── Hub page (/featured-projects) ── */
.sp-hub-intro { max-width: 70ch; color: #3B4046; font-size: 18px; margin: 0 0 30px; }
.sp-hub-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--sp-ink); }
.sp-hub-item { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--sp-line); }
.sp-hub-item > a { text-decoration: none; }
.sp-hub-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--sp-sheet); display: block; }
.sp-hub-item h2 { font: 600 22px/1.25 'Poppins', 'Inter', sans-serif; margin: 0 0 4px; letter-spacing: -0.015em; }
.sp-hub-item h2 a { color: var(--sp-ink); text-decoration: none; }
.sp-hub-item h2 a:hover { color: var(--sp-red); }
.sp-hub-item .sp-keyfacts { margin: 14px 0 10px; }
.sp-hub-links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; font-weight: 600; }
.sp-hub-noimg { text-decoration: none; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--sp-sheet); display: flex; align-items: center; justify-content: center; font: 600 20px 'Poppins', sans-serif; color: var(--sp-muted); text-align: center; padding: 12px; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .sp-hero { grid-template-columns: 1fr; gap: 22px; }
  .sp-hero-media { order: -1; }
  .sp-layout { grid-template-columns: 1fr; gap: 10px; }
  .sp-rail { position: static; }
  .sp-hub-item { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 640px) {
  .sp { padding: 12px 16px 90px; }
  .sp-keyfacts { grid-template-columns: 1fr 1fr; }
  .sp-keyfacts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .sp-pc { grid-template-columns: 1fr; gap: 6px; }
  .sp-sources { columns: 1; }
  .sp-dates strong, .sp-date strong { font-size: 19px; }
  .sp-sec h2 { font-size: 22px; }
  .sp-cta-row .sp-btn { flex: 1 1 auto; }
  .sp-sticky { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 50px; padding: 8px 12px; background: #fff; border-top: 1px solid var(--sp-line); z-index: 60; }
  .sp-sticky .sp-btn--primary { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .sp-body * { transition: none !important; scroll-behavior: auto !important; } }
