/* ============================================================
   Project detail page — Trident Parktown
   Extends pip/styles.css tokens & components.
   ============================================================ */

/* ---------- breadcrumb ---------- */
.breadcrumb { background: var(--surface); border-bottom: 1px solid var(--line); }
.breadcrumb .wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; font-size: 13px; }
.breadcrumb a { color: var(--ink-3); transition: color .15s; }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb .sep { color: var(--line); }
.breadcrumb a, .breadcrumb .cur { white-space: nowrap; }
.breadcrumb .cur { color: var(--ink); font-weight: 600; }

/* ============================================================
   PROJECT HERO  (gallery + headline)
   ============================================================ */
.proj-hero { padding: clamp(20px, 4vw, 34px) 0 0; }
.proj-headline { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.proj-headline .topline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.builder-pill {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--c-primary);
  background: var(--c-primary-tint); padding: 5px 11px 5px 6px; border-radius: 100px; white-space: nowrap;
}
.proj-headline .topline .verified, .proj-headline .topline .status-pill { white-space: nowrap; }
.builder-pill .bm { width: 22px; height: 22px; border-radius: 5px; background: var(--c-primary); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 12px; }
.proj-headline h1 { font-size: clamp(28px, 5vw, 46px); letter-spacing: -.02em; }
.proj-headline .loc { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 15px; }
.proj-headline .loc svg { color: var(--c-accent-600); }
.status-pill { font-size: 11.5px; font-weight: 700; letter-spacing: .02em; padding: 4px 10px; border-radius: 100px; }
.status-pill.selling { background: var(--c-accent-tint); color: var(--c-accent-600); }

/* gallery */
.gallery { display: grid; grid-template-columns: 1fr; grid-template-rows: auto; gap: 8px; border-radius: var(--radius); overflow: hidden; }
.gallery .g-main { aspect-ratio: 16/10; }
.gallery .g-rest { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery .g-rest .ph-img { aspect-ratio: 16/10; }
.gallery .ph-img { border-radius: 10px; }
.g-more { position: relative; }
.g-more .ph-label { display: none; }
.g-more .more-overlay {
  position: absolute; inset: 0; background: rgba(11,58,56,.62); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 15px; border-radius: 10px; backdrop-filter: blur(1px);
}
@media (min-width: 760px) {
  .gallery { grid-template-columns: 1.7fr 1fr; align-items: stretch; }
  .gallery .g-main { aspect-ratio: auto; height: 440px; min-height: 0; }
  .gallery .g-rest { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; height: 440px; }
  .gallery .g-rest .ph-img { aspect-ratio: auto; height: 100%; min-height: 0; }
  .gallery .g-more, .gallery .g-more .ph-img { height: 100%; }
}

/* ---------- stat bar ---------- */
.stat-bar {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 18px;
}
.stat-bar .stat { background: var(--surface); padding: 16px 18px; }
.stat-bar .stat .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.stat-bar .stat .v { font-family: var(--font-head); font-weight: 600; font-size: 19px; margin-top: 4px; }
.stat-bar .stat .v small { font-family: var(--font-body); font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
@media (min-width: 680px) { .stat-bar { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 980px) { .stat-bar { grid-template-columns: repeat(5, 1fr); } }

/* ============================================================
   STICKY SUBNAV
   ============================================================ */
.subnav { position: sticky; top: 66px; z-index: 40; background: rgba(247,245,240,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 0; padding-bottom: 0; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a {
  font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 15px 14px; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.subnav a:hover { color: var(--ink); }
.subnav a.active { color: var(--c-primary); border-bottom-color: var(--c-accent); }

/* ============================================================
   TWO-COLUMN BODY
   ============================================================ */
.proj-body { padding: clamp(28px, 5vw, 48px) 0 0; }
.proj-layout { display: grid; grid-template-columns: 1fr; gap: 28px; }
.proj-main { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 60px); min-width: 0; }
.proj-aside { display: none; }
@media (min-width: 960px) {
  .proj-layout { grid-template-columns: minmax(0,1fr) 350px; gap: 44px; align-items: start; }
  .proj-aside { display: block; position: sticky; top: 124px; }
}

.block-head { margin-bottom: 18px; }
.block-head h2 { font-size: clamp(22px, 3.5vw, 30px); }
.block-head .eyebrow { margin-bottom: 8px; }
.prose p { color: var(--ink-2); font-size: 16px; line-height: 1.7; margin-bottom: 14px; max-width: 64ch; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- enquiry card (aside) ---------- */
.enquiry-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow: hidden; }
.enquiry-card .ec-price { padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.enquiry-card .ec-price .from { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.enquiry-card .ec-price .amt { font-family: var(--font-head); font-weight: 600; font-size: 30px; color: var(--c-primary); line-height: 1.1; }
.enquiry-card .ec-price .unit { font-size: 13.5px; color: var(--ink-3); }
.enquiry-card .ec-form { padding: 18px 20px; display: flex; flex-direction: column; gap: 11px; }
.enquiry-card .ec-form input, .enquiry-card .ec-form select {
  font-family: inherit; font-size: 14.5px; color: var(--ink); padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg); width: 100%;
}
.enquiry-card .ec-note { font-size: 11.5px; color: var(--ink-3); text-align: center; }
.enquiry-card .ec-trust { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 20px; background: var(--verify-tint); color: var(--verify); font-size: 12.5px; font-weight: 600; }
.enquiry-card .ec-trust svg { width: 15px; height: 15px; }

/* ---------- highlights ---------- */
.highlight-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.highlight-item { display: flex; gap: 13px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.highlight-item .hi-ico { width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--c-primary-tint); color: var(--c-primary); display: grid; place-items: center; }
.highlight-item .hi-ico svg { width: 19px; height: 19px; }
.highlight-item h3 { font-size: 16px; font-family: var(--font-body); font-weight: 700; }
.highlight-item p { font-size: 13.5px; color: var(--ink-2); margin-top: 3px; }
@media (min-width: 560px) { .highlight-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- inventory / price table ---------- */
.inv-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 14px; }
.inv-table thead th { text-align: left; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; padding: 13px 16px; background: var(--surface-2); }
.inv-table tbody td { padding: 14px 16px; border-top: 1px solid var(--line-2); color: var(--ink-2); }
.inv-table tbody tr:hover { background: var(--surface-2); }
.inv-table .pt-size { font-family: var(--font-head); font-weight: 600; font-size: 15.5px; color: var(--ink); }
.inv-table .pt-price { font-weight: 700; color: var(--c-primary); white-space: nowrap; }
.inv-avail { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 100px; display: inline-block; white-space: nowrap; }
.inv-avail.ok { background: var(--verify-tint); color: var(--verify); }
.inv-avail.few { background: var(--c-accent-tint); color: var(--c-accent-600); }
.inv-avail.sold { background: var(--surface-2); color: var(--ink-3); }
.inv-table .t-cta { color: var(--c-accent-600); font-weight: 600; white-space: nowrap; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.table-note { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; }

/* plots-in-project cards reuse .plot-grid / .plot-card from styles.css */

/* ---------- location & connectivity ---------- */
.loc-split { display: grid; grid-template-columns: 1fr; gap: 18px; }
.loc-map { border-radius: var(--radius); overflow: hidden; min-height: 240px; }
.loc-map .ph-img { min-height: 240px; }
.conn-list { display: flex; flex-direction: column; gap: 2px; }
.conn-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line-2); }
.conn-row:last-child { border-bottom: none; }
.conn-row .cl-name { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink); }
.conn-row .cl-name svg { color: var(--ink-3); width: 17px; height: 17px; }
.conn-row .cl-dist { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--c-primary); white-space: nowrap; }
@media (min-width: 760px) { .loc-split { grid-template-columns: 1.3fr 1fr; gap: 28px; } }

/* ---------- amenities ---------- */
.amenity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.amenity { display: flex; align-items: center; gap: 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px; font-size: 14px; font-weight: 500; color: var(--ink); }
.amenity .am-ico { width: 32px; height: 32px; flex: none; border-radius: 8px; background: var(--c-primary-tint); color: var(--c-primary); display: grid; place-items: center; }
.amenity .am-ico svg { width: 17px; height: 17px; }
@media (min-width: 560px) { .amenity-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .amenity-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .15s; }
.faq details[open] { border-color: var(--c-primary-300); }
.faq summary { list-style: none; cursor: pointer; padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-weight: 600; font-size: 15.5px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q-ico { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--c-primary); transition: transform .2s, background .2s; }
.faq details[open] summary .q-ico { transform: rotate(45deg); background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.faq .a { padding: 0 18px 18px; color: var(--ink-2); font-size: 14.5px; line-height: 1.65; max-width: 70ch; }

/* ---------- about builder ---------- */
.about-builder { background: var(--c-primary); color: #fff; border-radius: var(--radius); padding: clamp(22px, 4vw, 34px); display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; }
.about-builder .ab-logo { width: 100%; max-width: 220px; height: 72px; background: #fff; border-radius: 12px; display: flex; align-items: center; gap: 12px; padding: 0 18px; }
.about-builder .ab-logo .bm { width: 42px; height: 42px; border-radius: 9px; background: var(--c-primary); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 21px; flex: none; }
.about-builder .ab-logo .bn { font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--c-primary); line-height: 1.1; }
.about-builder .ab-logo .bn small { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-top: 3px; }
.about-builder h3 { color: #fff; font-size: 22px; }
.about-builder p { color: rgba(255,255,255,.78); font-size: 14.5px; margin-top: 8px; line-height: 1.65; max-width: 60ch; }
.about-builder .ab-stats { display: flex; gap: 26px; margin-top: 16px; flex-wrap: wrap; }
.about-builder .ab-stats .s .n { font-family: var(--font-head); font-weight: 600; font-size: 22px; }
.about-builder .ab-stats .s .l { font-size: 12px; color: rgba(255,255,255,.6); }
@media (min-width: 720px) { .about-builder { grid-template-columns: 220px 1fr; gap: 30px; } }

/* ---------- related searches (discoverability) ---------- */
.related-searches { padding: clamp(36px, 5vw, 56px) 0; background: var(--surface-2); }
.related-searches .rs-cols { display: grid; grid-template-columns: 1fr; gap: 26px; margin-top: 22px; }
.rs-group h4 { font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.rs-links { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-links a { font-size: 13.5px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 7px 13px; border-radius: 100px; transition: border-color .15s, color .15s; }
.rs-links a:hover { border-color: var(--c-primary-300); color: var(--c-primary); }
@media (min-width: 720px) { .related-searches .rs-cols { grid-template-columns: repeat(3, 1fr); } }

/* ---------- mobile sticky CTA bar ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--surface);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11,58,56,.1);
  display: flex; align-items: center; gap: 12px; padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
}
.mobile-cta .mc-price { line-height: 1.15; }
.mobile-cta .mc-price .from { font-size: 10px; color: var(--ink-3); font-family: var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.mobile-cta .mc-price .amt { font-family: var(--font-head); font-weight: 600; font-size: 19px; color: var(--c-primary); }
.mobile-cta .btn { margin-left: auto; }
@media (min-width: 960px) { .mobile-cta { display: none; } }
body { padding-bottom: 76px; }
@media (min-width: 960px) { body { padding-bottom: 0; } }

/* real artistic-impression images filling placeholder frames */
.ph-img.has-photo { background-image: none; background-color: var(--surface); }
.ph-img.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
