/*
 * Subul v2 — project family (L3): project page (full template = Project/MProject boards, P-* template =
 * P-<slug>/M-P-midpark boards) and the unit page (Unit/M-Unit). Values copied from the boards' inline
 * styles; colours through the --sb-* tokens so dark mode and the Theme editor keep working.
 * Loaded after base.css. Every rule is scoped under `.sb-page-project`.
 */
.sb.sb-page-project { --pj-calc-k: #4E5F6C; background: var(--sb-bg); }
[data-theme=dark] .sb.sb-page-project { --pj-calc-k: var(--sb-muted); }

.sb-page-project .h2 { margin: 0 0 18px; font-size: 26px; line-height: 1.65; }
.sb-page-project h1 { margin: 0; font-weight: 600; letter-spacing: 0; text-wrap: balance; }
.sb-page-project p { text-wrap: pretty; }
.sb-page-project .sec { padding-top: 56px; }
.sb-page-project .btn { padding: 0 20px; }
.sb-page-project .chip { justify-content: center; gap: 0; min-height: 40px; padding: 0 15px; }
.sb-page-project .pj-m { display: none; }
.sb-page-project img.cover { display: block; width: 100%; height: 100%; object-fit: cover; }
.sb-page-project .img-link { display: block; width: 100%; height: 100%; }

/* ---------- Badges (status per tone, segment tags) ---------- */
.sb-page-project .pj-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.sb-page-project .pj-badge { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 4px; line-height: 1.65; background: var(--sb-blue-bg); color: var(--sb-blue); }
.sb-page-project .pj-badge--launch { background: var(--sb-gold); color: #2B2117; }
.sb-page-project .pj-badge--ready { background: var(--sb-green-bg); color: var(--sb-green-text); }
.sb-page-project .pj-badge--soon { background: var(--sb-gold-tint); color: var(--sb-link); }
.sb-page-project .pj-badge--seg { background: var(--sb-surface); border: 1px solid var(--sb-line); padding: 2px 10px; color: var(--sb-ink); }
.sb-page-project .pj-badge--seg-p { background: var(--sb-blue-bg); color: var(--sb-blue); }

/* ======================================================================
   Full template — Project.dc.html
   ====================================================================== */
.pj--full .sb-crumb { padding-top: 20px; font-size: 13px; }
.pj--full .agal { position: relative; padding-top: 14px; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 8px; }
.pj--full .agal > div { border-radius: 6px; overflow: hidden; }
.pj--full .agal-main { grid-row: 1 / 3; }
.pj--full .agal--n1 { grid-template-columns: 1fr; }
.pj--full .agal--n2, .pj--full .agal--n3 { grid-template-columns: 2fr 1fr; }
.pj--full .agal--n2 > div:nth-child(2) { grid-row: 1 / 3; }
.pj--full .agal--n4 > div:nth-child(4) { grid-column: span 2; }
.pj--full .pj-count { position: absolute; bottom: 12px; inset-inline-start: 36px; background: rgba(20, 17, 13, .7); color: #FBF8F3; font-size: 13px; line-height: 1.65; padding: 4px 10px; border-radius: 4px; pointer-events: none; }
.pj--full .pj-allphotos { position: absolute; bottom: 12px; inset-inline-end: 36px; min-height: 40px; background: #FFFFFF; color: #2B2117; }
.pj--full .pj-allphotos:hover { background: #F3EDE3; color: #2B2117; }
.pj--full .pj-mtools { display: none; }

.pj--full .pj-title { padding-top: 26px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-start; }
.pj--full .pj-title__main { display: flex; flex-direction: column; gap: 8px; flex: 1 1 560px; }
.pj--full h1 { font-size: 44px; line-height: 1.25; }
.pj--full .pj-loc { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pj--full .pj-loc .pj-loc__ic { color: var(--sb-link); }
.pj--full .pj-actions { display: flex; gap: 8px; }
.pj--full .pj-actions .pj-iconbtn { padding: 0 14px; }
.sb-page-project .pj-fav[aria-pressed=true] svg { fill: currentColor; }
.sb-page-project [data-sb-compare][aria-pressed=true] { background: var(--sb-blue-bg); border-color: var(--sb-blue); color: var(--sb-blue); }

.pj--full .pj-specs { padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.sb-page-project.pj--full .spec { display: flex; flex-wrap: nowrap; font-size: 16px; color: inherit; gap: 12px; align-items: center; padding: 16px 18px; background: var(--sb-surface); border: 1px solid var(--sb-line); border-radius: 6px; flex: 1 1 170px; }
.pj--full .pj-stat--delivery, .pj--full .pj-gdots { display: none; }
.pj--full .spec .ic { width: 42px; height: 42px; border-radius: 6px; background: var(--sb-blue-bg); color: var(--sb-blue); display: flex; align-items: center; justify-content: center; flex: none; }
.sb-page-project.pj--full .spec span { font-size: 13px; color: var(--sb-muted); display: block; }
.sb-page-project.pj--full .spec .ic { display: flex; }
.pj--full .spec b { font-size: 18px; font-weight: 600; }
.pj--full .pj-mspecs, .sb-page-project .pj-mtabs { display: none; }

.sb-page-project .pj-tabs { position: sticky; top: 77px; background: var(--sb-bg); border-bottom: 1px solid var(--sb-line); margin-top: 30px; z-index: 4; }
.sb-page-project .pj-tabs nav { display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; }
.sb-page-project .pj-tabs .tab { box-sizing: content-box; display: inline-flex; align-items: center; min-height: 54px; padding: 0 2px; color: var(--sb-muted); font-weight: 500; font-size: 16px; border-bottom: 2px solid transparent; white-space: nowrap; }
.sb-page-project .pj-tabs .tab:hover { color: var(--sb-ink); }
.sb-page-project .pj-tabs .tab.on { color: var(--sb-ink); font-weight: 600; border-bottom-color: var(--sb-gold); }

/* Anchor jumps land below the sticky header (77px) + section tabs (55px). */
.sb-page-project .sec[id] { scroll-margin-top: 140px; }
.sb-page-project .pj-body { display: flex; flex-wrap: wrap; gap: 44px; align-items: flex-start; padding-bottom: 96px; }
.sb-page-project .pj-main { flex: 999 1 600px; min-width: 0; }
.pj--full .pj-aside { flex: 1 1 300px; max-width: 370px; position: sticky; top: 72px; padding-top: 56px; display: flex; flex-direction: column; gap: 14px; }

.pj--full .pj-lead { margin: 0; font-size: 16px; }
.pj--full .pj-lead + .pj-lead { margin-top: 14px; }
.pj--full .pj-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 12px; }
.pj--full .pj-stat { padding: 20px; }
.pj--full .pj-stat .lat { font-size: 36px; color: var(--sb-link); line-height: 1.1; }
.pj--full .pj-stat .muted { font-size: 14px; }
.sb-page-project .pj-note { font-size: 13px; margin: 10px 0 0; }

.pj--full .pj-amens { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 10px; }
.pj--full .amen { display: flex; gap: 10px; align-items: center; padding: 14px 16px; background: var(--sb-surface); border: 1px solid var(--sb-line); border-radius: 6px; font-size: 14px; }
.pj--full .amen svg { color: var(--sb-hover); flex: none; }

/* Units table (ut6) + phone cards */
.sb-page-project .pj-units-note { font-size: 13px; margin: -6px 0 12px; }
.sb-page-project .pj-ut-wrap { overflow-x: auto; max-width: 100%; min-width: 0; width: 100%; position: relative; }
.sb-page-project .pj-ut-wrap table { border-collapse: collapse; width: 100%; font-size: 16px; }
.sb-page-project table.ut6 th, .sb-page-project table.ut6 td { border-bottom: 1px solid var(--sb-line); padding: 15px 14px; text-align: start; }
.sb-page-project table.ut6 thead th { background: var(--sb-blue-bg); font-weight: 600; font-size: 13px; color: var(--sb-muted); }
.sb-page-project table.ut6 tbody th { font-weight: 600; }
.sb-page-project table.ut6 b { font-weight: 600; }
.sb-page-project .pj-ask { font-size: 14px; display: inline-flex; align-items: center; gap: 6px; color: var(--sb-green); font-weight: 600; }
.sb-page-project .pj-ask:hover { color: var(--sb-green-hover); }
.sb-page-project .pj-ucards { display: none; }
.sb-page-project .pj-unitlinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.pj--full .pj-plan { padding: 22px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.pj--full .pj-plan > div { flex: 1 1 280px; }
.pj--full .pj-plan b { font-size: 18px; font-weight: 600; }
.pj--full .pj-plan .muted { font-size: 14px; }

/* Calculator */
.sb-page-project .pj-calc { display: flex; flex-wrap: wrap; border: 1px solid var(--sb-line); border-radius: 6px; overflow: hidden; }
.sb-page-project .pj-calc__in { flex: 1 1 360px; display: flex; flex-direction: column; gap: 20px; padding: 26px; background: var(--sb-surface); }
.sb-page-project .pj-calc__lbl { font-weight: 600; margin-bottom: 10px; }
.sb-page-project .pj-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sb-page-project .pj-calc__range { font-weight: 600; display: flex; justify-content: space-between; }
.sb-page-project .pj-calc input[type=range] { width: 100%; accent-color: var(--sb-hover); height: 28px; display: block; margin: 0; }
.sb-page-project .pj-calc__minmax { display: flex; justify-content: space-between; font-size: 13px; }
.sb-page-project .pj-calc__out { flex: 1 1 300px; background: var(--sb-blue-bg); color: var(--sb-ink); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.sb-page-project .pj-calc__k { font-size: 13px; color: var(--pj-calc-k); }
.sb-page-project .pj-calc__cell--line { border-top: 1px solid var(--sb-blue-line); padding-top: 14px; }
.sb-page-project .pj-calc__out .lat { color: var(--sb-ink); }
.sb-page-project .pj-calc__total { font-size: 32px; }
.sb-page-project .pj-calc__down { font-size: 28px; }
.sb-page-project .pj-calc__out .pj-calc__monthly { font-size: 44px; color: var(--sb-link); line-height: 1.1; }
.sb-page-project .pj-calc__out span:not(.lat):not(.pj-d):not(.pj-m) { font-size: 14px; }
.sb-page-project .pj-calc__lead { flex: 1 1 100%; padding: 20px 28px 28px; }
.sb-page-project .pj-calc__wa { background: var(--sb-btn); color: var(--sb-white); }
.sb-page-project .pj-calc__wa:hover { background: var(--sb-btn-hover); color: var(--sb-white); }
.sb-page-project .pj-calc__foot { font-size: 13px; color: var(--pj-calc-k); }

.pj--full .pj-map { height: 340px; border-radius: 6px; overflow: hidden; border: 1px solid var(--sb-line); }
.pj--full .pj-near { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pj--full .pj-near .chip { cursor: default; }
.sb-page-project .pj-locline { margin: 0 0 12px; font-size: 16px; display: flex; gap: 8px; align-items: center; }

.sb-page-project .pj-floors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.pj--p .pj-floors--p { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.sb-page-project .pj-floor { padding: 20px; border-top: 3px solid var(--sb-gold); }
.sb-page-project .pj-floor b { font-size: 18px; font-weight: 600; }
.sb-page-project .pj-floor p { margin: 6px 0 0; font-size: 14px; }

/* Video thumb (board .vthumb) */
.sb-page-project .vthumb { width: 100%; height: 340px; border-radius: 6px; overflow: hidden; position: relative; display: block; padding: 0; border: 0; cursor: pointer; background: var(--sb-hero); color: #FBF8F3; text-align: start; font: inherit; }
.sb-page-project .vthumb + .vthumb { margin-top: 12px; }
.sb-page-project .vthumb img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.sb-page-project .vthumb:hover img { transform: scale(1.04); }
.sb-page-project .vthumb:focus-visible { outline: 3px solid var(--sb-blue); outline-offset: 3px; }
.sb-page-project .vplay { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 64px; height: 64px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #2B2117; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); transition: transform .3s; }
.sb-page-project .vplay svg { margin-inline-start: 3px; }
.sb-page-project .vthumb:hover .vplay { transform: scale(1.08); }
.sb-page-project .vcap { position: absolute; inset: auto 0 0 0; padding: 12px 14px 14px; background: rgba(20, 17, 13, .78); display: flex; flex-direction: column; gap: 2px; }
.sb-page-project .vcap b { font-size: 16px; font-weight: 600; line-height: 1.4; }
.sb-page-project .vcap span { font-size: 13px; color: #E8DFCF; }

.sb-page-project details { border-bottom: 1px solid var(--sb-line); padding: 16px 0; }
.sb-page-project details p { margin: 16px 0 0; }

.pj--full .pj-sim { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.pj--full .pj-simcard { display: block; color: var(--sb-ink); }
.pj--full .pj-simcard__img { height: 140px; }
.pj--full .pj-simcard__body { padding: 14px; }
.pj--full .pj-simcard__body b { font-weight: 600; }
.pj--full .pj-simcard__body .muted { font-size: 13px; }

/* Aside: price card + mini form + developer */
.pj--full .pj-price { padding: 24px; display: flex; flex-direction: column; gap: 12px; border-top: 3px solid var(--sb-gold); }
.pj--full .pj-price__cap { font-size: 13px; }
.pj--full .pj-price__v { font-size: 40px; line-height: 1; }
.pj--full .pj-price__v--text { font-size: 28px; }
.pj--full .pj-price__plan { font-size: 14px; }
.pj--full .pj-dev { padding: 18px; display: flex; gap: 12px; align-items: center; color: var(--sb-ink); }
.pj--full .pj-dev__logo { width: 95px; height: 56px; border-radius: 6px; background: #FFFFFF; border: 1px solid var(--sb-line-soft); display: flex; align-items: center; justify-content: center; padding: 8px 12px; flex: none; }
.pj--full .pj-dev__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pj--full .pj-dev b { font-weight: 600; }
.pj--full .pj-dev__more { font-size: 14px; color: var(--sb-link); }
.pj--full .pj-mbar { display: none; }

/* ======================================================================
   P-* template — P-<slug>.dc.html
   ====================================================================== */
.pj--p .h2 { margin: 0 0 20px; font-size: 32px; }
.pj--p .sec { padding-top: 72px; }
.pj--p .pj-head { padding-top: 22px; }
.pj--p .sb-crumb { padding-top: 0; font-size: 13px; }
.pj--p .pj-pgal-wrap { margin-top: 18px; position: relative; }
.pj--p .pgal { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 440px; }
.pj--p .pgal > div { border-radius: 6px; overflow: hidden; }
.pj--p .pgal > div:first-child { grid-row: 1 / 3; }
.pj--p .pgal.one { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.pj--p .pgal > div:nth-child(2):last-of-type { grid-row: 1 / 3; }
.pj--p .pj-allphotos { position: absolute; bottom: 12px; inset-inline-end: 12px; min-height: 40px; background: #FFFFFF; color: #2B2117; }
.pj--p .pj-ptitle { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: flex-end; justify-content: space-between; padding: 26px 0 8px; }
.pj--p .pj-ptitle__main { display: flex; flex-direction: column; gap: 8px; flex: 1 1 520px; }
.pj--p h1 { font-size: 40px; line-height: 1.25; }
.pj--p .pj-ploc { font-size: 16px; display: flex; gap: 6px; align-items: center; }
.pj--p .pj-ploc a { font-weight: 600; }
.sb-page-project.pj--p .kf { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.pj--p .kf > div { background: var(--sb-panel); border: 1px solid var(--sb-line-soft); border-radius: 6px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.pj--p .kf span { font-size: 13px; color: var(--sb-muted); }
.pj--p .kf b { font-size: 17px; font-weight: 600; color: var(--sb-ink); }
.pj--p .pj-body { gap: 48px; }
.pj--p .pj-aside { flex: 1 1 300px; max-width: 370px; position: sticky; top: 96px; padding-top: 56px; display: flex; flex-direction: column; gap: 14px; }
.pj--p .pj-plead { font-size: 16px; margin: 0 0 14px; }
.pj--p .pj-ut-wrap table.utable { font-size: 15px; }
.pj--p table.utable th, .pj--p table.utable td { padding: 12px 14px; border-bottom: 1px solid var(--sb-line-soft); text-align: start; vertical-align: top; }
.pj--p table.utable th { background: var(--sb-blue-bg); color: var(--sb-blue); font-weight: 600; font-size: 14px; }
.pj--p .pj-units-upd { font-size: 13px; margin: 10px 0 0; }
.pj--p .pj-ppay { padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start; }
.pj--p .pj-ppay p { margin: 0; font-size: 16px; }
.pj--p .pj-ppay .tile svg { display: inline; vertical-align: baseline; }
.pj--p .pj-ppay .tile { width: auto; height: auto; display: block; border-radius: 0; background: none; color: var(--sb-ink); }
.pj--p .pj-floor { padding: 18px; }
.pj--p .pj-floor b { font-size: 17px; }
.pj--p .pj-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.pj--p .pj-why .card { padding: 18px; }
.pj--p .pj-why b { font-size: 18px; font-weight: 600; color: var(--sb-link); }
.pj--p .pj-why p { margin: 6px 0 0; font-size: 14px; }
.pj--p .pj-ftags { display: flex; flex-wrap: wrap; gap: 8px; }
.pj--p .ftag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--sb-panel); border: 1px solid var(--sb-line-soft); font-size: 14px; color: var(--sb-prose); }
.pj--p .ftag svg { color: var(--sb-blue); }
.pj--p .pj-ploc-box { display: flex; flex-direction: column; }
.pj--p .pj-near-p { margin-bottom: 0; }
.pj--p .pj-ploc-box .pj-map { height: 300px; border-radius: 6px; overflow: hidden; border: 1px solid var(--sb-line); margin-bottom: 14px; }
.pj--p .pj-maplink { align-self: flex-start; margin-top: 16px; }
.pj--p .pj-psim { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.pj--p .pj-psimcard { display: block; color: var(--sb-ink); }
.pj--p .pj-psimcard__img { height: 160px; position: relative; }
.pj--p .pj-psimcard__img .pj-badge { position: absolute; top: 10px; inset-inline-start: 10px; padding: 2px 8px; }
.pj--p .pj-psimcard__body { padding: 14px 16px; }
.pj--p .pj-psimcard__body b { font-weight: 600; font-size: 17px; }
.pj--p .pj-psimcard__body .muted { font-size: 13px; }
.pj--p .pj-pprice { padding: 22px; display: flex; flex-direction: column; gap: 12px; border-top: 3px solid var(--sb-gold); }
.pj--p .pj-pprice__cap { font-size: 13px; }
.pj--p .pj-pprice__v { font-size: 30px; line-height: 1.1; }
.pj--p .pj-pprice__plan { font-size: 14px; }
.pj--p .pj-pprice__note { font-size: 13px; }
.pj--p .pj-pdev { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; color: var(--sb-ink); }
.pj--p .pj-pdev .muted { font-size: 13px; }
.pj--p .pj-pdev b { font-size: 17px; font-weight: 600; }
.pj--p .pj-pdev__more { font-size: 14px; color: var(--sb-link); font-weight: 600; }

/* ======================================================================
   Unit page — Unit.dc.html
   ====================================================================== */
.pj--unit .pj-unit { padding-top: 40px; padding-bottom: 96px; }
.pj--unit .sb-crumb { padding-top: 0; font-size: 13px; }
.pj--unit .h2 { margin: 0 0 16px; }
.pj--unit .pj-unit__body { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 20px; }
.pj--unit .pj-unit__main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.pj--unit .pj-uphotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); grid-auto-rows: 200px; gap: 8px; }
.pj--unit .pj-uphotos > div { border-radius: 6px; overflow: hidden; }
.pj--unit .pj-uphotos__main { grid-column: span 2; grid-row: span 2; }
.pj--unit .pj-uhead__tag { font-size: 13px; font-weight: 600; color: var(--sb-link); }
.pj--unit h1 { margin: 4px 0 0; font-size: 36px; line-height: 1.65; }
.pj--unit .pj-dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 0; background: var(--sb-surface); border: 1px solid var(--sb-line); border-radius: 6px; overflow: hidden; }
.pj--unit .pj-dl div { padding: 16px 18px; border-bottom: 1px solid var(--sb-line); border-inline-end: 1px solid var(--sb-line); }
.pj--unit .pj-dl dt { font-size: 13px; color: var(--sb-muted); }
.pj--unit .pj-dl dd { margin: 0; font-weight: 600; font-size: 16px; }
.pj--unit .pj-upay { display: flex; flex-wrap: wrap; border: 1px solid var(--sb-line); border-radius: 6px; overflow: hidden; background: var(--sb-surface); }
.pj--unit .pj-upay > div { flex: 1 1 180px; padding: 20px; border-inline-end: 1px solid var(--sb-line); }
.pj--unit .pj-upay > div:last-child { border-inline-end: 0; }
.pj--unit .pj-upay .muted { font-size: 13px; }
.pj--unit .pj-upay .lat { font-size: 32px; }
.pj--unit .pj-upay .pj-upay__m { color: var(--sb-link); }
.pj--unit .pj-uothers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.pj--unit .pj-uothers .card { padding: 16px; display: block; color: var(--sb-ink); }
.pj--unit .pj-uothers__t { font-size: 13px; color: var(--sb-link); font-weight: 600; }
.pj--unit .pj-uothers b { display: block; font-weight: 600; }
.pj--unit .pj-uothers .muted { font-size: 14px; }
.pj--unit .pj-uaside { flex: 1 1 300px; max-width: 360px; position: sticky; top: 96px; }
.pj--unit .pj-uprice { padding: 24px; display: flex; flex-direction: column; gap: 12px; border-top: 3px solid var(--sb-gold); }
.pj--unit .pj-ustatus { align-self: flex-start; font-size: 13px; font-weight: 700; background: var(--sb-green-bg); color: var(--sb-green-text); padding: 2px 10px; border-radius: 4px; }
.pj--unit .pj-ustatus--reserved { background: var(--sb-gold-tint); color: var(--sb-link); }
.pj--unit .pj-ustatus--sold { background: var(--sb-sand); color: var(--sb-muted); }
.pj--unit .pj-uprice__cap { font-size: 13px; }
.pj--unit .pj-uprice__v { font-size: 40px; line-height: 1; }
.pj--unit .pj-uprice__v--text { font-size: 26px; }

/* ======================================================================
   Phones (≤760px): boards' m2 block; full template follows MProject.
   ====================================================================== */
@media (max-width: 760px) {
    .sb-page-project .sb-crumb { line-height: 1.4; }
    .sb-page-project .m2-2, .sb-page-project.pj--p .kf { grid-template-columns: 1fr 1fr; }
    .sb-page-project .m2-2 > *, .pj--p .kf > div { min-width: 0; }

    /* P-* / unit: price card above the content, full width (M-P-midpark). */
    .pj--p .pj-body { row-gap: 28px; }
    .pj--p .pj-aside, .pj--unit .pj-uaside { max-width: 100%; min-width: 0; flex-basis: 100%; position: static; padding-top: 0; }
    .pj--p .pj-aside { order: -1; margin-top: 24px; }
    /* Same photo grid on phones: big photo on top, up to two below it. */
    .pj--p .pgal { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 120px; gap: 8px; height: auto; }
    .pj--p .pgal > div:first-child { grid-column: 1 / 3; grid-row: auto; }
    .pj--p .pgal > div:nth-child(2):last-of-type { grid-column: 1 / 3; grid-row: auto; }
    .pj--p .pgal.one { grid-template-columns: 1fr; grid-template-rows: 260px; }
    .pj--p .pj-allphotos { min-height: 36px; bottom: 10px; inset-inline-end: 10px; font-size: 14px; padding: 0 12px; }
    .pj--p .pj-tabs { display: none; }
    .pj--p .pj-mtabs .chip { padding: 0 14px; white-space: nowrap; flex: none; }
    .sb-page-project .sec[id] { scroll-margin-top: 124px; }
    .pj--unit .pj-dl { grid-template-columns: 1fr 1fr; }
    .pj--unit .pj-dl div { padding: 12px 14px; }

    /* Full template = MProject.dc.html */
    .pj--full .pj-d { display: none; }
    .pj--full .pj-m { display: inline; }
    .pj--full .h2 { margin: 0 0 12px; font-size: 22px; }
    .pj--full .sec { padding: 32px 16px 0; }
    .pj--full .chip { padding: 0 14px; white-space: nowrap; }
    .pj--full > .sb-crumb { display: none; }
    .pj--full .pj-agal-wrap { position: relative; height: 300px; }
    .pj--full .agal { display: flex; height: 300px; padding: 0; gap: 0; max-width: none; position: static; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .pj--full .agal::-webkit-scrollbar { display: none; }
    .pj--full .agal > div { flex: 0 0 100%; height: 300px; border-radius: 0; scroll-snap-align: start; }
    .pj--full .pj-count { bottom: 10px; inset-inline-start: auto; inset-inline-end: 10px; padding: 2px 10px; position: absolute; }
    .pj--full .pj-allphotos { display: none; }
    .pj--full .agal > div:nth-child(n+4) { display: none; }
    .pj--full .pj-gdots { display: flex; position: absolute; bottom: 12px; left: 0; right: 0; margin: 0; pointer-events: none; }
    .pj--full .pj-mtools { display: flex; justify-content: space-between; position: absolute; top: 10px; inset-inline: 10px; z-index: 2; pointer-events: none; }
    .pj--full .pj-mtools > div { display: flex; gap: 8px; }
    .pj--full .pj-round { width: 44px; min-height: 44px; height: 44px; padding: 0; background: #FFFFFF; color: #2B2117; border-radius: 999px; pointer-events: auto; }
    .pj--full .pj-round.pj-fav { color: #8A6231; }

    .pj--full .pj-title { padding: 18px 16px 0; display: block; }
    .pj--full .pj-title__main { gap: 6px; }
    .pj--full .pj-badges { gap: 6px; }
    .pj--full .pj-badge { padding: 2px 8px; }
    .pj--full .pj-badge--seg { padding: 1px 8px; }
    .pj--full h1 { font-size: 26px; line-height: 1.3; }
    .pj--full .pj-loc { font-size: 13px; display: block; }
    .pj--full .pj-loc .pj-loc__ic { display: none; }
    .pj--full .pj-loc a { color: inherit; }
    .pj--full .pj-actions, .pj--full .pj-specs, .pj--full .pj-tabs { display: none; }
    .pj--full .pj-mspecs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 16px 16px 0; }
    .pj--full .sp { background: var(--sb-surface); border: 1px solid var(--sb-line); border-radius: 6px; padding: 12px; }
    .pj--full .sp span { display: block; font-size: 13px; color: var(--sb-muted); }
    .pj--full .sp b { font-weight: 600; }
    .sb-page-project .pj-mtabs { position: sticky; top: 63px; z-index: 5; background: var(--sb-bg); border-bottom: 1px solid var(--sb-line); margin-top: 20px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 16px; }

    .pj--full .pj-body { display: block; padding: 0; max-width: none; }
    .pj--full .pj-main { display: flex; flex-direction: column; }
    .pj--full .pj-aside { display: none; }
    .pj--full .pj-o-overview { order: 1; }
    .pj--full .pj-o-why { order: 2; padding-top: 14px; }
    .pj--full .pj-o-why .h2 { display: none; }
    .pj--full .pj-o-units { order: 3; }
    .pj--full .pj-o-calc { order: 4; }
    .pj--full .pj-o-plans { order: 5; }
    .pj--full .pj-o-location { order: 6; }
    .pj--full .pj-o-amenities { order: 7; }
    .pj--full .pj-o-master, .pj--full .pj-o-video { display: none; }
    .pj--full .pj-stat:not(:first-child):not(.pj-stat--delivery), .pj--full .pj-o-why .pj-note { display: none; }
    .pj--full .pj-stat--delivery { display: block; }
    .pj--full .pj-o-similar { order: 10; }
    .pj--full .pj-o-faq { order: 11; padding-bottom: 120px; }
    .pj--full .pj-o-faq .h2 { margin-bottom: 0; }
    .pj--full details { padding: 14px 0; }
    .pj--full details p { margin: 8px 0 0; }

    .pj--full .pj-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pj--full .pj-stat { padding: 14px; }
    .pj--full .pj-stat .lat { font-size: 28px; }
    .pj--full .pj-stat .muted { font-size: 13px; }

    .pj--full .pj-units-note, .pj--full .pj-ut-wrap { display: none; }
    .pj--full .pj-ucards { display: flex; flex-direction: column; gap: 8px; }
    .pj--full .pj-ucard { padding: 14px; display: flex; justify-content: space-between; gap: 10px; }
    .pj--full .pj-ucard b { font-weight: 600; }
    .pj--full .pj-ucard .muted { font-size: 13px; }
    .pj--full .pj-ucard__p { text-align: end; }

    .sb-page-project .pj-calc { padding: 16px; flex-direction: column; flex-wrap: nowrap; gap: 16px; }
    .sb-page-project .pj-calc__in { padding: 0; gap: 16px; flex: none; background: none; }
    .sb-page-project .pj-calc__lbl, .sb-page-project .pj-calc__range { font-size: 14px; }
    .sb-page-project .pj-calc__lbl { margin-bottom: 8px; }
    .sb-page-project .pj-chips--types { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .sb-page-project .pj-chips--fill { flex-wrap: nowrap; }
    .sb-page-project .pj-chips--fill .chip { flex: 1; padding: 0 6px; }
    .sb-page-project .pj-chips--years { gap: 6px; }
    .sb-page-project .pj-chips--years .chip { padding: 0 4px; }
    .sb-page-project .pj-calc input[type=range] { height: 30px; }
    .sb-page-project .pj-calc__minmax { display: none; }
    .sb-page-project .pj-calc__out { flex: none; border-radius: 6px; padding: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .sb-page-project .pj-calc__cell--line { border-top: 0; padding-top: 0; }
    .sb-page-project .pj-calc__cell--wide { grid-column: span 2; border-top: 1px solid var(--sb-blue-line); padding-top: 10px; }
    .sb-page-project .pj-calc__total, .sb-page-project .pj-calc__down { font-size: 22px; }
    .sb-page-project .pj-calc__cur { display: none; }
    .sb-page-project .pj-calc__out .pj-calc__monthly { font-size: 36px; }
    .sb-page-project .pj-calc__out span:not(.lat):not(.pj-d):not(.pj-m) { font-size: 13px; }
    .sb-page-project .pj-calc__wa { display: none; }
    .sb-page-project .pj-calc .pj-calc__mwa { display: inline-flex; margin-top: 12px; }
    .sb-page-project .pj-calc__lead { padding: 0; }
    .sb-page-project .pj-calc__in > div:first-child > .pj-calc__lbl { display: none; }
    .sb-page-project .pj-calc .chip .pj-m { display: inline; }
    .sb-page-project .pj-calc .chip .pj-d { display: none; }

    .pj--full .pj-plan { padding: 16px; display: block; }
    .pj--full .pj-plan b { font-size: 16px; }
    .pj--full .pj-map { height: 200px; border: 0; }
    .pj--full .pj-near { gap: 6px; margin-top: 10px; }
    .pj--full .pj-near .chip { min-height: 32px; font-size: 13px; }
    .pj--full .pj-amens { display: flex; flex-wrap: wrap; gap: 8px; }
    .pj--full .amen { min-height: 40px; max-width: 100%; padding: 0 14px; border-radius: 999px; border-color: var(--sb-line-2); gap: 6px; font-weight: 500; white-space: nowrap; }
    .pj--full .amen:lang(en) { white-space: normal; }
    .pj--full .amen svg { color: currentColor; width: 16px; height: 16px; }
    .pj--full .pj-sim { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .pj--full .pj-simcard:nth-child(n+3) { display: none; }
    .pj--full .pj-simcard__img { height: 110px; }
    .pj--full .pj-simcard__body { padding: 10px; }
    .pj--full .pj-simcard__body b { font-size: 14px; }
    .pj--full .vthumb { height: 220px; }

    .pj--full .pj-mbar { display: flex; position: sticky; bottom: 0; z-index: 10; background: var(--sb-bg); border-top: 1px solid var(--sb-line); padding: 10px 12px; gap: 8px; align-items: center; }
    .pj--full .pj-mbar__price { flex: 1; min-width: 0; }
    .pj--full .pj-mbar__price .muted { font-size: 13px; }
    .pj--full .pj-mbar__price b { font-size: 18px; font-weight: 600; }
    .pj--full .pj-mbar .btn { padding: 0 16px; }
    .pj--full .pj-mbar .pj-mbar__call { padding: 0 12px; }
}

/* The full template's own sticky CTA bar replaces the chrome quick bar on phones. */
@media (max-width: 760px) {
    html:has(.pj-mbar) .sb .sb-mbar { display: none; }
    html:has(.pj-mbar) body { padding-bottom: 0; }
}
.sb-page-project .pj-youtube-player { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.sb-page-project .pj-vthumb--more { display: none; }
