/* Phần «Tra property» (site plan, nhà hiện hữu, granny, A&A) — dùng chung cho trang chính và trang thành viên.
   Mọi luật nằm dưới .pp để không đụng style.css (vd. .hp của ô chống spam, .row của kết quả). Nền giấy trắng cả ở chế độ tối. */
.pp { --acc:#1f5f8b; --pp-lot:#e8f0f6; --warn:#a15c00; --bad:#a32020; --ink:#1d1d1b; --mute:#6b6b66; --line:#d9d9d4; --card:#fff;
  color-scheme: light; background:#fff; color:var(--ink); border:1px solid var(--line); border-radius:10px; padding:12px; margin:12px 0; }
.pp .card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 14px; }
.pp .row { display: flex; gap: 8px; } .pp input { flex: 1; min-width: 0; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.pp button { font: inherit; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--acc); background: var(--acc); color: #fff; cursor: pointer; }
.pp ul.list { list-style: none; margin: 10px 0 0; padding: 0; } .pp ul.list button { width: 100%; text-align: left; background: #fff; color: var(--ink); border-color: var(--line); margin-top: 6px; }
.pp ul.list button:hover { border-color: var(--acc); }
.pp .msg { color: var(--mute); margin-top: 8px; } .pp .bad { color: var(--bad); } .pp .warn { color: var(--warn); }
.pp dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; } .pp dt { color: var(--mute); } .pp dd { margin: 0; }
.pp svg { width: 100%; height: auto; display: block; background: #fff; }
.pp .pp-lot { fill: var(--pp-lot); stroke: var(--acc); stroke-width: 2; } .pp .pp-dim { fill: var(--ink); } .pp .pp-name { fill: var(--acc); font-weight: 600; }
.pp .pp-tag { fill: #fff; stroke: var(--acc); } .pp .pp-tagn { fill: var(--acc); font-size: 10px; } .pp .pp-north { fill: var(--ink); } .pp .pp-bar { stroke: var(--ink); stroke-width: 3; }
/* bối cảnh site plan: dải đường + lô giáp ranh (chỉ để nhìn, không đo) */
.pp .pp-rdc { fill: #d9d6cf; fill-opacity: .55; stroke: #b5b1a8; stroke-width: .8; } .pp svg.has-img .pp-rdc { fill-opacity: .25; }
.pp .pp-nb { fill: none; stroke: #8f8f88; stroke-width: 1; stroke-dasharray: 5 3; } .pp svg.has-img .pp-nb { stroke: #fff; stroke-width: 1.4; }
.pp .pp-nbn { fill: #6b6b66; } .pp svg.has-img .pp-nbn { fill: #1d1d1b; }
.pp .pp-img { opacity: .8; } .pp svg.has-img .pp-lot { fill: none; stroke-width: 2.5; } .pp svg:has(.pp-ov) .pp-lot { fill: none; }
.pp svg.has-img text { paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.pp .pp-ct { fill: none; stroke: #8a5a2b; stroke-width: .7; stroke-opacity: .85; } .pp .pp-ct-major { stroke-width: 1.4; }
.pp .pp-ctl { fill: #8a5a2b; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.pp svg.has-img .pp-ct { stroke: #ffb627; stroke-opacity: 1; stroke-width: 1.3; } .pp svg.has-img .pp-ct-major { stroke-width: 2.2; } .pp svg.has-img .pp-ctl { fill: #6b3f12; }
.pp .pp-fl path { stroke: none; } .pp .pp-fl-h1 { fill: #9ecae1; fill-opacity: .45; } .pp .pp-fl-h2 { fill: #6baed6; fill-opacity: .5; } .pp .pp-fl-h3 { fill: #4292c6; fill-opacity: .55; }
.pp .pp-fl-h4 { fill: #2171b5; fill-opacity: .6; } .pp .pp-fl-h5 { fill: #08519c; fill-opacity: .65; } .pp .pp-fl-h6 { fill: #08306b; fill-opacity: .7; }
.pp ul.cf { margin: 0; padding-left: 18px; } .pp ul.cf li { margin: 1px 0; }
.pp .pp-wall { fill: #c0392b; fill-opacity: .9; stroke: #7a1f15; stroke-width: .6; }
.pp .pp-upper-fill { fill: #1d6fd6; fill-opacity: .22; }
.pp .pp-upper { fill: #1d6fd6; fill-opacity: .55; stroke: #0b3d7a; stroke-width: .8; }
.pp .pp-vtx { fill: #fff; stroke: #7a1f15; stroke-width: 1.5; cursor: move; } .pp .pp-vtx.first { fill: #ffd54a; } .pp .pp-mid { fill: #7a1f15; fill-opacity: .7; cursor: copy; }
.pp .pp-temp { fill: none; stroke: #1d6fd6; stroke-width: 2; stroke-dasharray: 5 3; }
.pp .pp-elbl { fill: #7a1f15; font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.pp svg.editing { touch-action: none; cursor: crosshair; }
@media (max-width: 767px) { .pp svg.editing { max-height: 60vh; } } /* L-0255: màn hẹp chừa chỗ vuốt cuộn trang ngoài hình; màn rộng giữ hình to */
/* zoom.mjs: phóng/kéo site plan (viewBox). Khi đã phóng: nét giữ cỡ màn hình, viền chữ và chữ có cỡ riêng chia theo --pz (= 1/k) */
.pp .pp-zw { position: relative; } .pp svg { touch-action: pan-y; }
.pp .pp-zb { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 1; }
.pp .pp-zb button { width: 34px; height: 34px; padding: 0; font-size: 20px; line-height: 1; background: #fff; color: var(--acc); border-color: var(--line); box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.pp .pp-zb button:disabled { opacity: .4; cursor: default; }
.pp svg[data-zoom] { touch-action: none; user-select: none; } .pp svg[data-zoom]:not(.editing) { cursor: grab; } .pp svg.pp-panning { cursor: grabbing; }
.pp svg[data-zoom] :is(path, line, polyline, polygon, circle, rect, ellipse) { vector-effect: non-scaling-stroke; }
.pp svg[data-zoom] text { stroke-width: calc(3px * var(--pz)); } .pp svg[data-zoom] .pp-ctl { font-size: calc(11px * var(--pz)); } .pp svg[data-zoom] .pp-tagn { font-size: calc(10px * var(--pz)); }
@media (max-width: 767px) { .pp svg[data-zoom] { max-height: 60vh; } }
@media print { .pp .pp-zb { display: none; } }
.pp .pph { margin-top: 12px; } .pp .pph h3 { font-size: 15px; margin: 14px 0 4px; }
.pp .hp-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.pp .tb { background: #fff; color: var(--acc); padding: 6px 10px; font-size: 14px; } .pp .tb.on, .pp .tb.pri { background: var(--acc); color: #fff; } .pp .tb:disabled { opacity: .45; cursor: default; }
.pp .okc { color: #1e7b34; }
.pp .pp-front { stroke: #1e9e4a; stroke-opacity: .55; stroke-linecap: round; } .pp .pp-front.ok { stroke-opacity: .95; }
.pp .pp-x { fill: #7a5c2e; fill-opacity: .55; stroke: #4a3510; stroke-width: 1; } .pp .pp-x.open { fill: #9aa3ad; fill-opacity: .5; stroke: #4b5560; stroke-dasharray: 3 2; }
.pp .pp-x.roof { fill-opacity: .3; } .pp .pp-xwall { fill: #4a3510; fill-opacity: .75; } .pp .pp-x.drive { fill: #5b5f66; fill-opacity: .45; stroke: #2f3237; stroke-dasharray: 6 3; }
.pp .pp-xlbl { fill: #1b1b1b; font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 3px; pointer-events: none; }
.pp .pp-canopy { fill: #2e8b3e; fill-opacity: .18; stroke: #2e8b3e; stroke-width: 1; stroke-dasharray: 3 2; } .pp .pp-trunk { fill: #6b3d14; stroke: #fff; stroke-width: 1; }
.pp .pph .xdraw { background: #fff7e0; border-left: 3px solid #e8a20c; padding: 6px 8px; margin: 6px 0; font-size: 14px; }
.pp .pp-road { stroke: #e8780c; stroke-opacity: .9; stroke-linecap: round; } .pp .pp-road.rear { stroke: #8e44ad; }
.pp .pp-pos { fill: #1d6fd6; fill-opacity: .08; stroke: #1d6fd6; stroke-width: 1.2; stroke-dasharray: 4 3; }
.pp .pph .xl { margin: 4px 0; padding-left: 18px; } .pp .pph .xl li { margin: 3px 0; }
.pp .pp-gfz { fill: none; stroke: #1e9e4a; stroke-width: 1.2; stroke-dasharray: 5 3; } .pp .pp-gf { fill: #1e9e4a; fill-opacity: .55; stroke: #0f5c2a; stroke-width: 1; }
.pp .jobtabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; } .pp .jobtab { flex: 1 1 220px; display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border: 2px solid transparent; border-radius: 14px; background: #f3f1ee; color: var(--ink); font: inherit; cursor: pointer; } .pp .jobtab .sub { color: var(--mute); font-size: .88em; }
.pp .jobtab[aria-selected="true"] { border-color: var(--acc); background: #fff; } .pp .jobtab .i-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #f6e3dc; } .pp .jobtab .i-icon svg { width: 24px; height: 24px; }
.pp .pp-gfo { fill: none; stroke: #0f5c2a; stroke-width: 1.2; stroke-dasharray: 2 2; }
.pp .pp-gf.mv { cursor: move; stroke: #e8780c; stroke-width: 2; } .pp .pp-glbl { fill: #0b3d1c; font-weight: 700; paint-order: stroke; stroke: #fff; stroke-width: 3px; pointer-events: none; }
.pp .pp-gedge { fill: #fff; stroke: #e8780c; stroke-width: 1.5; cursor: grab; }
.pp .pp-grot { fill: #e8780c; stroke: #fff; cursor: grab; } .pp .pp-grotln { stroke: #e8780c; stroke-dasharray: 3 2; pointer-events: none; }
.pp .pph label.gang { display: inline-flex; align-items: center; gap: 6px; } .pp .pph label.gang input { width: 5.5em; }
.pp .pp-sb { fill: none; stroke: #e8780c; stroke-width: 1.2; stroke-dasharray: 6 3; pointer-events: none; } .pp .pp-sb.hi { stroke-width: 0.7; stroke-dasharray: none; opacity: .8; } .pp .pp-sblbl { fill: #b35500; font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 2.5px; pointer-events: none; }
.pp .pp-mdim { stroke: #222; stroke-width: .8; pointer-events: none; } .pp .pp-mdimend { fill: #222; pointer-events: none; } .pp .pp-mdimlbl { fill: #111; paint-order: stroke; stroke: #fff; stroke-width: 2.5px; pointer-events: none; }
.pp .pp-poslbl { fill: #134f9c; font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 2.5px; pointer-events: none; } .pp .pph h5.optg { margin: 10px 0 2px; font-size: 14px; }
.pp .pp-aa { fill: #e8780c; fill-opacity: .5; stroke: #8a4300; stroke-width: 1; } .pp .pp-aa.up { fill: #8e44ad; fill-opacity: .35; stroke: #5b2671; }
.pp .pp-aao { fill: none; stroke: #8a4300; stroke-width: 1.2; stroke-dasharray: 2 2; }
.pp .optl { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin: 6px 0; } .pp .optl .tb { text-align: left; white-space: normal; }
.pp .opts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 10px; font-size: 14px; } .pp .opts label { display: inline-flex; gap: 4px; align-items: center; }
.pp table { border-collapse: collapse; margin-top: 10px; } .pp td, .pp th { border-bottom: 1px solid var(--line); padding: 3px 12px 3px 0; text-align: left; }
.pp .note { color: var(--mute); font-size: 13px; margin-top: 10px; }
.pp dd { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .pp { padding: 8px; } .pp .card { padding: 10px; } .pp dl { grid-template-columns: 1fr; gap: 0; } .pp dd { margin-bottom: 8px; } }
/* khung «Phương án thiết kế» ngay dưới site plan (anh Bảo 14/11) */
.pp .hp-box { border: 2px solid var(--acc); border-radius: 10px; padding: 12px 14px; margin: 10px 0 14px; background: #f5f9fc; }
.pp .hp-box h3 { margin: 0 0 6px; }
.pp .hp-need { list-style: none; margin: 6px 0 0; padding: 0; }
.pp .hp-need li { padding: 4px 0; color: var(--mute); }
.pp .hp-need li.ok { color: var(--ink); }
.pp .hp-need li .tb { margin-left: 6px; padding: 4px 10px; }
