/**
 * FYSH — Floor plan (listing + editor preview)
 * Page creation: 19/10/2026 23:27
 * Page modified: 19/10/2026 23:27
 * CR: fysh-floor-plan-workbench-2026-10-19
 *
 * Styles the read only floor plan rendered by listing-floor-plan.js on the public
 * listing and the editor import preview. Replaces listing-floor-plans.css (v2).
 */

.fpw { margin: 0; }
.fpw__summary { font-size: 0.9rem; color: var(--muted, #6B7A8D); margin: 0 0 12px; }
.fpw__summary strong { color: var(--navy, #0F2340); }
.fpw__sep { opacity: 0.5; margin: 0 4px; }

.fpw__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.fpw__tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: #fff; border: 1px solid var(--border, #E2E8F0); border-radius: 4px;
  padding: 8px 12px; cursor: pointer; font: inherit; color: var(--muted, #6B7A8D);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.fpw__tab:hover { border-color: var(--blue, #1E5BA8); }
.fpw__tab.is-active { border-color: var(--blue, #1E5BA8); color: var(--navy, #0F2340); box-shadow: inset 0 -2px 0 var(--blue, #1E5BA8); }
.fpw__tab-name { font-weight: 700; font-size: 0.88rem; }
.fpw__tab-gia { font-size: 0.72rem; opacity: 0.8; font-variant-numeric: tabular-nums; }

.fpw__panel { }
.fpw__viewport {
  border: 1px solid var(--border, #E2E8F0); border-radius: 4px; background: #fff;
  padding: 12px; overflow: hidden;
}
.fpw__caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 0.8rem; color: var(--muted, #6B7A8D); }
.fpw__caption-name { font-weight: 700; color: var(--navy, #0F2340); }
.fpw__caption-gia { font-variant-numeric: tabular-nums; }
.fpw__disclaimer { font-size: 0.72rem; color: var(--muted, #6B7A8D); margin: 8px 0 0; opacity: 0.85; }

/* ── The drawn plan ──────────────────────────────────────────────────────── */
.fpw-svg {
  --fpw-wall: var(--navy, #0F2340);
  --fpw-room-fill: #FBFAF7;
  --fpw-room-stroke: var(--navy, #0F2340);
  --fpw-furn: var(--blue, #1E5BA8);
  --fpw-furn-fill: #ffffff;
  --fpw-ink: var(--navy, #0F2340);
  --fpw-accent: var(--blue, #1E5BA8);
  --fpw-muted: var(--muted, #6B7A8D);
  width: 100%; height: auto; display: block;
  font-family: var(--font-body, inherit);
}
.fpw-svg .wall { stroke: var(--fpw-wall); stroke-linejoin: miter; stroke-linecap: butt; fill: none; }
.fpw-svg .room-fill { fill: var(--fpw-room-fill); stroke: none; }
.fpw-svg .room-wall { fill: var(--fpw-wall); stroke: none; }
.fpw-svg .room-ph { fill: none; stroke: var(--fpw-wall); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 7 5; }
.fpw-svg .furn { stroke: var(--fpw-furn); fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.fpw-svg .furn-fill { fill: var(--fpw-furn-fill); stroke: var(--fpw-furn); stroke-width: 1.6; }
.fpw-svg .jamb { stroke: var(--fpw-wall); stroke-linecap: butt; }
.fpw-svg .leaf { stroke: var(--fpw-furn); fill: none; }
.fpw-svg .glass { stroke: var(--fpw-furn); }
.fpw-svg .room-label, .fpw-svg .seg-text, .fpw-svg .dim-text { fill: var(--fpw-muted); }
.fpw-svg .text-el { fill: var(--fpw-ink); }
.fpw-svg .dim { stroke: var(--fpw-accent); }
.fpw-svg .stair-arrow { stroke: var(--fpw-furn); fill: none; stroke-width: 1.6; }
.fpw-svg .stair-text { fill: var(--fpw-furn); font-weight: 700; }
.fpw-svg .nr-ring { fill: #fff; stroke: var(--fpw-ink); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.fpw-svg .nr-n { fill: var(--fpw-accent); stroke: none; }
.fpw-svg .nr-s { fill: #fff; stroke: var(--fpw-ink); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.fpw-svg .nr-lbl { fill: var(--fpw-ink); font-weight: 800; }

/* ── Editor import control ───────────────────────────────────────────────── */
.fp-import { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 0; }
.fp-import__file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.fp-import__btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--navy, #0F2340); color: #fff; border: 1px solid var(--navy, #0F2340);
  border-radius: 4px; padding: 8px 14px; font-size: 0.85rem; font-weight: 600;
}
.fp-import__btn:hover { filter: brightness(1.08); }
.fp-import__remove { background: none; border: none; color: var(--muted, #6B7A8D); cursor: pointer; font-size: 0.82rem; text-decoration: underline; }
.fp-import__msg { width: 100%; margin: 0; font-size: 0.8rem; color: var(--muted, #6B7A8D); }
.fp-import__msg--ok { color: #2f7a4f; }
.fp-import__msg--err { color: #b23b3b; }
.fp-preview { margin-top: 12px; }
