:root {
  --ink: #1c2b3a; --muted: #6b7682; --line: #e3e0da; --bg: #f6f4f0; --card: #fff; --accent: #e8893a;
  --radius: 12px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 24px rgba(28,43,58,.07);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 "Segoe UI", system-ui, -apple-system, Arial, sans-serif; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.muted { color: var(--muted); margin: 2px 0 0; font-size: 14px; }

.top { background: var(--ink); color: #fff; padding: 36px 0 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: #ffb36b; margin: 0 0 6px; font-weight: 600; }
.top h1 { font-size: clamp(28px, 4vw, 44px); }
.lead { max-width: 720px; color: #d5dde5; font-size: 17px; margin: 10px 0 22px; }
.lead strong { color: #fff; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stat { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 10px 14px; }
.stat b { display: block; font-size: 22px; }
.stat span { font-size: 13px; color: #c3ccd5; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 22px; padding-bottom: 30px; align-items: start; }
.layout.wrap { max-width: none; padding-left: 24px; padding-right: 24px; }
.side-col { max-width: 1400px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0 24px; align-items: start; }
.side-col .side-title { grid-column: 1 / -1; }
.plan-scroll { overflow-x: auto; }
.floorbar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.floorbar button { border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 8px 14px; border-radius: 999px;
  font: inherit; font-weight: 600; cursor: pointer; }
.floorbar button small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.floorbar button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.floorbar button[aria-selected="true"] small { color: #c3ccd5; }
.plan-head { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-bottom: 8px; }
.plan-head h2 { font-size: 22px; }
.dl { font-size: 13px; color: var(--muted); }
.plan-box { position: relative; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
#plan { display: block; width: 100%; height: auto; touch-action: manipulation; }
#plan .hit { cursor: pointer; }
#plan .unitfill { transition: opacity .2s; }
#plan .dim { opacity: .12; }
#plan .sel { stroke: var(--ink); stroke-width: .07; }
#plan .lbl { font-family: "Segoe UI", Arial, sans-serif; fill: #1c2b3a; text-anchor: middle; pointer-events: none; }
#plan .lbl.muted { fill: #7a7a7a; }
#plan .lbl.light { fill: #fff; }
#plan .lbl.dim { opacity: .2; }
.compass { position: absolute; right: 18px; bottom: 12px; font-size: 12px; color: var(--muted); }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 13px; padding: 5px 9px; border-radius: 6px; white-space: nowrap; }
.overlay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; font-size: 14px; }
.ov-title { font-weight: 700; }
.ghosts { display: flex; flex-wrap: wrap; gap: 6px; }
.ghosts label { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; cursor: pointer; user-select: none; }
.ghosts input { margin: 0 5px 0 0; vertical-align: -2px; }
.ghosts label.off { opacity: .4; cursor: default; }
.slider { color: var(--muted); display: flex; align-items: center; gap: 6px; }

.side-title { font-size: 16px; margin: 4px 0 10px; }
.units { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.unitbtn { display: flex; gap: 10px; align-items: center; text-align: left; background: var(--card); border: 2px solid transparent; border-radius: 10px;
  padding: 9px 11px; cursor: pointer; font: inherit; color: var(--ink); box-shadow: var(--shadow); }
.unitbtn .sw { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.unitbtn b { display: block; font-size: 14px; }
.unitbtn span { font-size: 12px; color: var(--muted); }
.unitbtn.on { border-color: var(--ink); }
.unitbtn.woon b { font-size: 15px; }

.fiche, .fiche-empty { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.fiche-empty { color: var(--muted); font-size: 14px; }
.fiche h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.fiche h3 .sw { width: 18px; height: 18px; border-radius: 5px; }
.fiche .big { font-size: 15px; color: var(--muted); margin: 4px 0 14px; }
.fiche .big b { color: var(--ink); font-size: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { background: #f1eee8; border-radius: 999px; padding: 4px 10px; font-size: 13px; }
.chip.terras { background: #efe6d4; } .chip.tuin { background: #dcefcc; }
.fiche h4 { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: flex; justify-content: space-between; }
.fiche h4 button { font: inherit; text-transform: none; letter-spacing: 0; border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; }
.fiche table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fiche td { padding: 4px 0; border-bottom: 1px solid #f0ede7; }
.fiche td:last-child { text-align: right; white-space: nowrap; }
.fiche tr.sum td { font-weight: 700; border-bottom: 0; }
.fiche .info { color: var(--muted); font-size: 12px; }
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.thumbs img { width: 100%; border: 1px solid var(--line); border-radius: 8px; cursor: zoom-in; background: #fff; }

.lightbox { position: fixed; inset: 0; background: rgba(15,22,30,.88); display: flex; align-items: center; justify-content: center; z-index: 10; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; background: #fff; border-radius: 6px; }
.lightbox button { position: absolute; top: 12px; right: 16px; font-size: 34px; color: #fff; background: none; border: 0; cursor: pointer; }
.foot { color: var(--muted); font-size: 13px; padding-bottom: 30px; }

@media (max-width: 960px) {
  .side-col { grid-template-columns: 1fr; }
  #plan { max-height: none; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .units { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: 1fr; }
}
