/* GROUNDWORK — Floor plans on Property Data (Floor-Plan Viewer, design approved by Groundwork 01, 15 Nov 2026). Design Standard v1 tokens only:
   white cards with the grey line, navy text and selected states, gold for the eyebrow only, grey price panel, blue actions. Loaded lazily. */
.gwfp,.gwfp-v{ --fp-ink:var(--gw-ink,#16213E); --fp-body:var(--gw-body,#3B4256); --fp-muted:var(--gw-muted,#5F6672); --fp-line:var(--gw-line,#E3E3E8); --fp-grey:var(--gw-grey,#F5F5F7); --fp-blue:var(--gw-blue,#0B63CE); --fp-blue-h:var(--gw-blue-h,#0A56B3); --fp-r:var(--gw-r,14px); --fp-rs:var(--gw-r-sm,10px); }
.gwfp .gwfp-top{ max-width:760px; margin-bottom:18px; }
.gwfp .gwfp-top .lg-kicker{ color:var(--gw-gold,#85661F); }
.gwfp-chips{ display:flex; gap:10px; flex-wrap:wrap; margin:0 0 18px; }
.gwfp-chips button{ min-height:44px; padding:0 18px; border:1px solid var(--fp-line); border-radius:999px; background:#fff; color:var(--fp-ink); font:inherit; font-size:15px; font-weight:600; cursor:pointer; white-space:nowrap; }
.gwfp-chips button[aria-pressed="true"]{ background:var(--fp-ink); border-color:var(--fp-ink); color:#fff; }
.gwfp-chips button:focus-visible,.gwfp-card:focus-visible,.gwfp-open:focus-visible,.gwfp-go:focus-visible,.gwfp-v button:focus-visible{ outline:3px solid var(--fp-blue); outline-offset:2px; }
.gwfp-gh{ display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; margin:0 0 16px; }
.gwfp-gh h3{ margin:0; font-size:20px; font-weight:800; letter-spacing:-.01em; color:var(--fp-ink); }
.gwfp-gh span{ font-size:15px; color:var(--fp-body); }
.gwfp-body{ display:grid; grid-template-columns:minmax(0,1fr) 440px; gap:24px; align-items:start; }
.gwfp-cards{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.gwfp-card{ position:relative; text-align:left; border:1px solid var(--fp-line); border-radius:var(--fp-r); background:#fff; padding:15px; display:flex; flex-direction:column; gap:10px; font:inherit; color:var(--fp-ink); cursor:pointer; min-width:0; }
.gwfp-card[aria-pressed="true"]{ border:2px solid var(--fp-ink); padding:14px; }
.gwfp-th{ display:block; height:150px; border-radius:var(--fp-rs); overflow:hidden; border:1px solid var(--fp-line); background:#fff; }
.gwfp-th img,.gwfp-big img{ display:block; width:100%; height:100%; object-fit:contain; }
.gwfp-ct{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.gwfp-code{ font-size:18px; overflow-wrap:anywhere; }
.gwfp-lab{ font-size:14.5px; color:var(--fp-body); }
.gwfp-ln{ display:flex; justify-content:space-between; align-items:baseline; gap:8px; margin-top:8px; flex-wrap:wrap; }
.gwfp-n{ font-size:13.5px; color:var(--fp-muted); }
.gwfp-p{ font-size:19px; }
.gwfp-chev{ display:none; }
.gwfp-panel{ border:1px solid var(--fp-line); border-radius:var(--fp-r); padding:20px; display:flex; flex-direction:column; gap:16px; position:sticky; top:calc(var(--gw-navh,58px) + 64px); }
.gwfp-big{ position:relative; height:230px; border-radius:var(--fp-rs); overflow:hidden; border:1px solid var(--fp-line); background:#fff; }
.gwfp-open{ position:absolute; right:10px; bottom:10px; min-height:40px; padding:0 14px; border-radius:var(--fp-rs); background:#fff; border:1.5px solid var(--fp-blue); color:var(--fp-blue); font:inherit; font-size:14px; font-weight:600; display:inline-flex; align-items:center; gap:8px; cursor:pointer; }
.gwfp-open:hover{ color:var(--fp-blue-h); border-color:var(--fp-blue-h); }
.gwfp-hd{ display:flex; flex-direction:column; gap:4px; }
.gwfp-tt{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.gwfp-tt b{ font-size:24px; letter-spacing:-.01em; color:var(--fp-ink); }
.gwfp-pill{ font-size:12.5px; font-weight:600; color:var(--fp-body); border:1px solid var(--fp-line); border-radius:999px; padding:3px 10px; }
.gwfp-facts{ font-size:15px; color:var(--fp-body); }
.gwfp-pp{ background:var(--fp-grey); border-radius:var(--fp-r); padding:18px 20px; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; align-items:end; }
.gwfp-pp1{ grid-template-columns:1fr; }
.gwfp-pp div{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.gwfp-pp small{ font-size:13.5px; color:var(--fp-muted); }
.gwfp-pp b{ font-size:30px; letter-spacing:-.02em; color:var(--fp-ink); }
.gwfp-pp b.gwfp-pn{ font-size:18px; letter-spacing:0; }
.gwfp-psf{ font-size:14.5px; font-weight:600; color:var(--fp-ink); }
.gwfp-same,.gwfp-why{ margin:0; font-size:13.5px; line-height:1.45; color:var(--fp-body); }
/* the library integration (15 Nov 2026): display notes; the unverified plans, collapsed, apart from the cards they follow */
.gwfp-cap,.gwfp-capc{ display:block; font-size:13px; line-height:1.4; color:var(--fp-body); font-style:italic; }
.gwfp-capc{ margin-top:4px; font-size:12.5px; }
.gwfp-unv{ grid-column:1 / -1; border-top:1px solid var(--fp-line); padding-top:12px; margin-top:4px; }
.gwfp-unv > summary{ cursor:pointer; font-weight:700; font-size:15px; color:var(--fp-ink); padding:6px 0; }
.gwfp-unv > summary:focus-visible{ outline:2px solid var(--fp-blue); outline-offset:2px; border-radius:4px; }
.gwfp-unv > .gwfp-why{ margin:4px 0 12px; }
.gwfp-unv > .gwfp-cards{ margin-top:4px; }
.gwfp-go{ min-height:48px; border:0; border-radius:var(--fp-rs); background:var(--fp-blue); color:#fff; font:inherit; font-size:15.5px; font-weight:600; display:flex; align-items:center; justify-content:center; gap:8px; cursor:pointer; padding:0 16px; text-align:center; }
.gwfp-go:hover{ background:var(--fp-blue-h); }
.gwfp-fine{ margin:0; font-size:13px; line-height:1.45; color:var(--fp-muted); }
.gwfp-foot{ display:none; }
.gwfp-imgfail{ display:flex; align-items:center; justify-content:center; height:100%; padding:12px; font-size:13px; color:var(--fp-muted); text-align:center; }

/* tablet: two columns of cards, no panel (a card opens the viewer) */
@media (max-width:1180px){
  .gwfp-body{ grid-template-columns:1fr; }
  .gwfp-panel{ display:none; }
  .gwfp-cards{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .gwfp-card,.gwfp-card[aria-pressed="true"]{ display:grid; grid-template-columns:118px minmax(0,1fr) 20px; gap:12px; align-items:center; padding:12px; border:1px solid var(--fp-line); }
  .gwfp-th{ height:92px; border-radius:8px; }
  .gwfp-code{ font-size:17px; }
  .gwfp-lab{ font-size:13.5px; }
  .gwfp-ln{ margin-top:2px; flex-direction:column; align-items:flex-start; gap:0; }
  .gwfp-p{ font-size:18px; }
  .gwfp-chev{ display:block; }
  .gwfp-foot{ display:block; margin-top:14px; }
}
/* phone: one row per layout; chips scroll sideways */
@media (max-width:719px){
  .gwfp-cards{ grid-template-columns:1fr; }
  .gwfp-chips{ flex-wrap:nowrap; overflow-x:auto; margin-right:calc(-1 * var(--gw-gutter,16px)); padding-right:var(--gw-gutter,16px); scrollbar-width:none; }
  .gwfp-chips button{ flex-shrink:0; padding:0 16px; font-size:14.5px; }
  .gwfp-gh{ flex-direction:column; gap:2px; }
  .gwfp-gh h3{ font-size:18px; }
  .gwfp-gh span{ font-size:14px; }
}
@media (max-width:340px){
  .gwfp-card,.gwfp-card[aria-pressed="true"]{ grid-template-columns:84px minmax(0,1fr) 16px; gap:10px; }
  .gwfp-th{ height:72px; }
}

/* the full-screen viewer */
.gwfp-v{ position:fixed; inset:0; z-index:1000; background:#fff; color:var(--gw-ink,#16213E); display:flex; flex-direction:column; font-family:var(--gw-font,system-ui,sans-serif); }
.gwfp-vh{ flex-shrink:0; border-bottom:1px solid var(--gw-line,#E3E3E8); display:flex; flex-direction:column; gap:10px; padding:10px 24px 12px; box-sizing:border-box; }
.gwfp-vt{ display:flex; align-items:center; gap:14px; min-width:0; }
.gwfp-vn{ display:flex; flex-direction:column; min-width:0; flex:1; }
.gwfp-vn b{ font-size:17px; overflow-wrap:anywhere; }
.gwfp-vn span{ font-size:13px; color:var(--gw-muted,#5F6672); }
.gwfp-varrows{ display:flex; gap:8px; flex-shrink:0; }
/* bedrooms: one segmented row; sizes: chips; types: small, only where several layouts share a size */
.gwfp-vtabs{ display:flex; gap:4px; overflow-x:auto; scrollbar-width:none; border:1px solid var(--gw-line,#E3E3E8); border-radius:12px; padding:3px; align-self:flex-start; max-width:100%; box-sizing:border-box; }
.gwfp-vtabs button{ flex-shrink:0; min-height:40px; padding:0 16px; border:0; border-radius:9px; background:transparent; color:var(--gw-ink,#16213E); font:inherit; font-size:14.5px; font-weight:600; cursor:pointer; white-space:nowrap; }
.gwfp-vtabs button[aria-pressed="true"]{ background:var(--gw-ink,#16213E); color:#fff; }
.gwfp-vchips{ display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; min-width:0; }
.gwfp-vchips button{ flex-shrink:0; min-height:40px; padding:0 14px; border:1px solid var(--gw-line,#E3E3E8); border-radius:999px; background:#fff; color:var(--gw-ink,#16213E); font:inherit; font-size:14px; font-weight:600; cursor:pointer; display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.gwfp-vchips button small{ font-size:11.5px; font-weight:600; color:var(--gw-muted,#5F6672); background:var(--gw-grey,#F5F5F7); border-radius:999px; padding:1px 7px; }
.gwfp-vchips button[aria-pressed="true"]{ background:var(--gw-ink,#16213E); border-color:var(--gw-ink,#16213E); color:#fff; }
.gwfp-vchips button[aria-pressed="true"] small{ background:rgba(255,255,255,.18); color:#fff; }
.gwfp-vtypes{ display:flex; gap:6px; overflow-x:auto; scrollbar-width:none; align-items:center; }
.gwfp-vtypes button{ flex-shrink:0; min-height:32px; padding:0 10px; border:1px solid var(--gw-line,#E3E3E8); border-radius:8px; background:#fff; color:var(--gw-body,#3B4256); font:inherit; font-size:13px; cursor:pointer; white-space:nowrap; }
.gwfp-vtypes button[aria-pressed="true"]{ border-color:var(--gw-ink,#16213E); color:var(--gw-ink,#16213E); font-weight:600; box-shadow:inset 0 0 0 1px var(--gw-ink,#16213E); }
.gwfp-shared{ display:block; margin-top:8px; font-size:13.5px; line-height:1.45; color:var(--gw-body,#3B4256); background:var(--gw-grey,#F5F5F7); border-radius:8px; padding:8px 10px; }
.gwfp-tt b{ font-size:24px; }
.gwfp-ib{ flex-shrink:0; width:44px; height:44px; border:1px solid var(--gw-line,#E3E3E8); border-radius:10px; background:#fff; color:var(--gw-ink,#16213E); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
.gwfp-ib[disabled]{ opacity:.4; cursor:default; }
.gwfp-vb{ flex-grow:1; min-height:0; display:grid; grid-template-columns:minmax(0,1fr) 420px; }
.gwfp-stage{ position:relative; background:var(--gw-grey,#F5F5F7); overflow:hidden; touch-action:none; outline:0; cursor:grab; }
.gwfp-pan{ position:absolute; inset:24px; display:flex; align-items:center; justify-content:center; transform-origin:50% 50%; will-change:transform; }
.gwfp-pan img{ max-width:100%; max-height:100%; width:auto; height:auto; background:#fff; border:1px solid var(--gw-line,#E3E3E8); border-radius:var(--gw-r,14px); box-sizing:border-box; user-select:none; -webkit-user-drag:none; pointer-events:none; }
.gwfp-zoom{ position:absolute; right:24px; bottom:24px; display:flex; flex-direction:column; border:1px solid var(--gw-line,#E3E3E8); border-radius:10px; background:#fff; overflow:hidden; }
.gwfp-zoom button{ width:48px; height:48px; border:0; border-bottom:1px solid var(--gw-line,#E3E3E8); background:#fff; color:var(--gw-ink,#16213E); display:flex; align-items:center; justify-content:center; cursor:pointer; }
.gwfp-zoom button:last-child{ border-bottom:0; }
.gwfp-hint{ position:absolute; left:24px; bottom:24px; font-size:13px; color:var(--gw-muted,#5F6672); background:rgba(255,255,255,.9); padding:4px 8px; border-radius:8px; }
.gwfp-va{ border-left:1px solid var(--gw-line,#E3E3E8); padding:28px 28px 24px; box-sizing:border-box; display:flex; flex-direction:column; gap:20px; overflow-y:auto; overscroll-behavior:contain; }
.gwfp-va .gwfp-tt b{ font-size:28px; }
.gwfp-va .gwfp-facts{ font-size:15.5px; }
.gwfp-va .gwfp-pp b{ font-size:32px; }
.gwfp-va .gwfp-pp b.gwfp-pn{ font-size:18px; }
.gwfp-sales{ display:flex; flex-direction:column; gap:8px; }
.gwfp-sh{ display:flex; justify-content:space-between; align-items:baseline; gap:8px; font-size:15px; }
.gwfp-sh span{ font-size:12.5px; color:var(--gw-muted,#5F6672); }
.gwfp-sales table{ width:100%; border-collapse:collapse; font-size:14px; }
.gwfp-sales th{ padding:8px 0; font-size:12.5px; font-weight:600; color:var(--gw-muted,#5F6672); text-align:left; border-bottom:1px solid var(--gw-line,#E3E3E8); }
.gwfp-sales td{ padding:10px 0; border-bottom:1px solid var(--gw-line,#E3E3E8); }
.gwfp-sales .r{ text-align:right; }
.gwfp-sales small{ font-size:12.5px; color:var(--gw-muted,#5F6672); }
.gwfp-vfine{ margin-top:auto; display:flex; flex-direction:column; gap:4px; font-size:13px; line-height:1.45; color:var(--gw-muted,#5F6672); }
@media (max-width:899px){
  .gwfp-vh{ padding:8px 12px 10px; gap:8px; }
  .gwfp-vt{ gap:10px; }
  .gwfp-vn b{ font-size:15.5px; }
  .gwfp-vtabs button{ min-height:36px; padding:0 12px; font-size:14px; }
  .gwfp-vchips button{ min-height:36px; padding:0 12px; font-size:13.5px; }
  .gwfp-vtypes button{ min-height:30px; }
  .gwfp-vb{ grid-template-columns:1fr; grid-template-rows:minmax(260px,55vh) auto; overflow-y:auto; overscroll-behavior:contain; }
  .gwfp-pan{ inset:12px; }
  .gwfp-zoom{ right:12px; bottom:12px; }
  .gwfp-hint{ display:none; }
  .gwfp-va{ border-left:0; border-top:1px solid var(--gw-line,#E3E3E8); padding:20px 16px 28px; overflow:visible; }
  .gwfp-va .gwfp-tt b{ font-size:24px; }
  .gwfp-va .gwfp-pp b{ font-size:28px; }
}
@media (max-width:300px){ .gwfp-pp{ grid-template-columns:1fr; } }
@media print{ .gwfp-v{ display:none; } .gwfp-panel{ position:static; } }
