/* ToJestDom RC263 — full-width project UX */
body[data-project-slug]{--project-max:1580px;--project-gap:28px;background:#f5f4ef}
body[data-project-slug] .projectHero>.wrap,
body[data-project-slug] main>.section>.wrap,
body[data-project-slug] .projectSection>.wrap,
body[data-project-slug] .projectAnchorNav>.wrap{width:min(var(--project-max),calc(100% - 48px));max-width:none}
body[data-project-slug] .projectHero{padding:34px 0 22px}
body[data-project-slug] .crumbs{margin-bottom:14px}
body[data-project-slug] .detailGrid{grid-template-columns:minmax(0,1.65fr) minmax(340px,.65fr);gap:var(--project-gap);align-items:start}
body[data-project-slug] .detailMedia{border-radius:30px;box-shadow:0 14px 45px rgba(25,45,32,.08);background:#e9ece6;position:relative}
body[data-project-slug] .detailMedia img{aspect-ratio:16/9;object-fit:cover;min-height:520px;max-height:720px}
body[data-project-slug] .detailSide{position:sticky;top:98px;border-radius:28px;padding:30px;box-shadow:0 14px 45px rgba(25,45,32,.06)}
body[data-project-slug] .detailSide h1{font-size:clamp(38px,3.2vw,58px);line-height:1.02;margin:12px 0 16px}
body[data-project-slug] .detailPrice{font-size:40px}
body[data-project-slug] .gallery{display:flex;gap:10px;overflow-x:auto;padding:4px 2px 8px;scroll-snap-type:x proximity;grid-template-columns:none}
body[data-project-slug] .gallery button{flex:0 0 168px;aspect-ratio:16/10;scroll-snap-align:start}
body[data-project-slug] .gallery button img{aspect-ratio:16/10;border-radius:14px}
body[data-project-slug] .projectStrip{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:20px}
body[data-project-slug] .stripItem{padding:18px 20px;border-radius:18px;background:#fff;border:1px solid var(--line)}
body[data-project-slug] .stripItem b{font-size:20px}

.projectAnchorNav{position:sticky;top:76px;z-index:32;background:rgba(245,244,239,.94);backdrop-filter:blur(18px);border-top:1px solid #e2e5df;border-bottom:1px solid #e2e5df}
.projectAnchorNav .anchorRow{display:flex;gap:8px;overflow:auto;padding:10px 0;scrollbar-width:none}.projectAnchorNav .anchorRow::-webkit-scrollbar{display:none}
.projectAnchorNav a{flex:0 0 auto;padding:9px 14px;border-radius:999px;font-size:13px;font-weight:850;color:#48544b;border:1px solid transparent}
.projectAnchorNav a:hover,.projectAnchorNav a.active{background:#fff;border-color:#dce1dc;color:#173e2a}

.projectSection{padding:46px 0 18px;scroll-margin-top:138px}.projectSection:last-of-type{padding-bottom:76px}
.projectSectionHead{display:flex;align-items:end;justify-content:space-between;gap:28px;margin-bottom:22px}
.projectSectionHead h2{font-size:clamp(32px,4vw,52px);letter-spacing:-1.8px;margin:0;line-height:1.03}
.projectSectionHead p{max-width:700px;margin:8px 0 0;color:#687268;font-size:16px}
.sectionKicker{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#1f6b49;font-weight:900;margin-bottom:8px}

.planShell{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(310px,.7fr);gap:22px;align-items:stretch}
.planViewer{background:#fff;border:1px solid #e1e5df;border-radius:28px;padding:24px;min-height:650px;display:flex;flex-direction:column;box-shadow:0 12px 38px rgba(25,45,32,.05)}
.planViewer .planStage{flex:1;display:flex;align-items:center;justify-content:center;min-height:540px;background:#fafbf9;border-radius:20px;overflow:hidden;position:relative}
.planViewer .planStage img{width:100%;height:100%;max-height:720px;object-fit:contain;cursor:zoom-in}
.planTabs{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.planTabs button{border:1px solid #dfe4de;background:#fff;border-radius:999px;padding:9px 14px;font-weight:800;cursor:pointer}.planTabs button.active{background:#163323;color:#fff;border-color:#163323}
.roomPanel{background:#15271c;color:#fff;border-radius:28px;padding:26px;box-shadow:0 16px 44px rgba(20,39,28,.15)}
.roomPanel h3{font-size:26px;margin:0 0 6px}.roomPanel .roomSummary{color:#c8d6cc;font-size:14px;margin-bottom:18px}.roomList{display:grid;gap:0}.roomRow{display:grid;grid-template-columns:34px 1fr auto;gap:10px;padding:11px 0;border-bottom:1px solid rgba(255,255,255,.11);align-items:baseline}.roomNo{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.09);font-size:12px;font-weight:900}.roomArea{font-weight:850}.roomEmpty{color:#c8d6cc;line-height:1.6}

.wideMediaGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.wideMediaCard{background:#fff;border:1px solid #e1e5df;border-radius:24px;overflow:hidden;min-height:320px;display:flex;align-items:center;justify-content:center;position:relative}.wideMediaCard img{width:100%;height:100%;max-height:540px;object-fit:contain;cursor:zoom-in;background:#fff}.wideMediaCard .mediaCaption{position:absolute;left:14px;bottom:14px;background:rgba(18,36,25,.88);color:#fff;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:800}
.crossGrid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.crossGrid .wideMediaCard{min-height:420px}

.costHero{display:grid;grid-template-columns:.72fr 1.28fr;gap:18px}.costTotal{background:#173524;color:#fff;border-radius:28px;padding:30px}.costTotal small{display:block;color:#c7d7cd;font-weight:750;margin-bottom:10px}.costTotal strong{display:block;font-size:clamp(34px,4vw,54px);line-height:1}.costTotal p{color:#c7d7cd;margin:14px 0 0}.costBreakdown{background:#fff;border:1px solid #e1e5df;border-radius:28px;padding:24px}.costRow{display:flex;justify-content:space-between;gap:20px;padding:13px 0;border-bottom:1px solid #edf0eb}.costRow:last-child{border:0}.costRow strong{text-align:right}

.techGroups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.techCard{background:#fff;border:1px solid #e1e5df;border-radius:24px;padding:24px}.techCard h3{font-size:22px;margin:0 0 12px}.techRow{display:grid;grid-template-columns:1fr auto;gap:20px;padding:10px 0;border-bottom:1px solid #edf0eb}.techRow:last-child{border:0}.techRow span{color:#657066}.techRow b{text-align:right}
.descriptionCard{background:#fff;border:1px solid #e1e5df;border-radius:28px;padding:clamp(24px,4vw,44px);font-size:17px;line-height:1.76}.descriptionCard p{max-width:1100px;margin:0 0 18px}.descriptionCard p:last-child{margin-bottom:0}

body[data-project-slug] main>.section{padding:34px 0 12px}body[data-project-slug] main>.section .sectionHead{margin-bottom:18px}body[data-project-slug] main>.section .sectionHead h2{font-size:36px}
body[data-project-slug] .specs{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}body[data-project-slug] .specBox{border-radius:22px}
body[data-project-slug] .mediaLibrary{display:none!important}
.projectFallback{background:#fff8e8;border:1px solid #f1dfb7;border-radius:18px;padding:18px;color:#78591c}

@media(max-width:1100px){
 body[data-project-slug] .detailGrid,.planShell,.costHero{grid-template-columns:1fr}
 body[data-project-slug] .detailSide{position:static}
 body[data-project-slug] .detailMedia img{min-height:0}
 .roomPanel{order:2}.techGroups{grid-template-columns:1fr}
}
@media(max-width:760px){
 body[data-project-slug] .projectHero>.wrap,body[data-project-slug] main>.section>.wrap,body[data-project-slug] .projectSection>.wrap,body[data-project-slug] .projectAnchorNav>.wrap{width:min(100% - 24px,var(--project-max))}
 .projectAnchorNav{top:66px}.projectSection{scroll-margin-top:120px;padding-top:34px}
 body[data-project-slug] .detailMedia{border-radius:20px}body[data-project-slug] .detailMedia img{aspect-ratio:4/3}
 body[data-project-slug] .projectStrip{grid-template-columns:1fr 1fr}
 .projectSectionHead{display:block}.wideMediaGrid,.crossGrid{grid-template-columns:1fr}.planViewer{min-height:0;padding:12px;border-radius:20px}.planViewer .planStage{min-height:390px}.roomPanel{border-radius:20px;padding:20px}.wideMediaCard{min-height:260px}.crossGrid .wideMediaCard{min-height:300px}
 body[data-project-slug] .specs{grid-template-columns:1fr}.costTotal,.costBreakdown,.descriptionCard{border-radius:20px}
}
