/* Fasa 4D: lot map. Fortress tokens only. */
.fx-lm-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--fx-edge); border-radius: var(--fx-pill); background: var(--fx-glass); align-self: end; }
.fx-lm-tabs button { min-height: 36px; padding: 0 16px; border: 0; border-radius: var(--fx-pill); background: transparent; color: var(--fx-muted); font: 600 var(--fx-type-2) var(--fx-body); cursor: pointer; transition: background-color var(--fx-base), color var(--fx-base); }
.fx-lm-tabs button[aria-selected="true"] { background: var(--fx-gold); color: var(--fx-gold-ink); }
#lotMapHost { margin-top: 14px; }
.fx-lm { --lm-available: var(--fx-ok); --lm-hold: var(--fx-warn); --lm-reserved: var(--fx-earth); --lm-booking: var(--fx-gold); --lm-closed: #8C877C; display: grid; gap: 12px; background: var(--fx-bg); color: var(--fx-ink); }
.fx-lm-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 16px; }
.fx-lm-project { display: grid; gap: 4px; font-size: var(--fx-type-2); color: var(--fx-muted); min-width: 220px; }
.fx-lm-project select { min-height: 40px; }
.fx-lm-legend { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.fx-lm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--fx-edge); border-radius: var(--fx-pill); font-size: var(--fx-type-2); color: var(--fx-muted); }
.fx-lm-chip i { width: 10px; height: 10px; border-radius: 50%; }
.fx-lm-chip b { color: var(--fx-ink); font-variant-numeric: tabular-nums; }
.fx-lm-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-lm-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
.fx-lm-stage { position: relative; height: min(72vh, 720px); overflow: hidden; border: 1px solid var(--fx-edge); border-radius: var(--fx-radius-3); background: #f4f2ec; touch-action: none; cursor: grab; outline: none; }
.fx-lm-stage:active { cursor: grabbing; }
.fx-lm-stage:focus-visible { box-shadow: 0 0 0 3px var(--fx-gold); }
.fx-lm-stage.is-grid { height: auto; min-height: 200px; background: var(--fx-panel); cursor: default; touch-action: auto; padding: 14px; }
.fx-lm-canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; --lm-k: 1; }
.fx-lm-canvas.is-easing { transition: transform 420ms var(--fx-ease); }
.fx-lm-canvas img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.fx-lm-svg { position: absolute; inset: 0; overflow: visible; }
.fx-lm-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #4b463c; }
.fx-lm-lot { transform: translate(var(--x), var(--y)) scale(var(--lm-k)); cursor: pointer; transition: opacity 200ms; outline: none; }
.fx-lm-lot circle { fill: var(--lm-c); stroke: #fff; stroke-width: 2.5; fill-opacity: .92; transition: fill 600ms var(--fx-ease), stroke-width 160ms; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .35)); }
.fx-lm-lot text { fill: #1b1406; font: 700 11px var(--fx-body); text-anchor: middle; pointer-events: none; }
.fx-lm-lot.is-closed text, .fx-lm-lot.is-reserved text { fill: #fff; }
.fx-lm-lot:hover circle, .fx-lm-lot:focus-visible circle { stroke-width: 4; }
.fx-lm-lot.is-selected circle { stroke: #111; stroke-width: 4; }
.fx-lm-lot.is-dim { opacity: .25; }
.fx-lm-lot.is-changed circle { animation: lm-pulse 1.2s var(--fx-ease) 2; }
.fx-lm-area { fill: var(--lm-c, #fff); fill-opacity: .35; stroke: #fff; stroke-width: 2; }
.is-available { --lm-c: var(--lm-available); }
.is-lead-hold { --lm-c: var(--lm-hold); }
.is-reserved { --lm-c: var(--lm-reserved); }
.is-booking { --lm-c: var(--lm-booking); }
.is-closed { --lm-c: var(--lm-closed); }
.fx-lm-chip.is-available i, .fx-lm-chip.is-lead-hold i, .fx-lm-chip.is-reserved i, .fx-lm-chip.is-booking i, .fx-lm-chip.is-closed i { background: var(--lm-c); }
.fx-lm-note { margin: 0 0 10px; color: var(--fx-muted); font-size: var(--fx-type-2); }
.fx-lm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.fx-lm-tile { display: grid; gap: 2px; place-items: center; min-height: 56px; padding: 6px 4px; border: 2px solid transparent; border-radius: var(--fx-radius-1); background: var(--lm-c); color: #1b1406; font: inherit; cursor: pointer; transition: transform 160ms var(--fx-ease), background-color 600ms; }
.fx-lm-tile b { font-size: 14px; }
.fx-lm-tile small { font-size: 11px; opacity: .8; }
.fx-lm-tile.is-closed, .fx-lm-tile.is-reserved { color: #fff; }
.fx-lm-tile:hover { transform: translateY(-2px); }
.fx-lm-tile.is-selected { border-color: var(--fx-ink); }
.fx-lm-tile.is-dim { opacity: .25; }
.fx-lm-tile.is-changed { animation: lm-pop 900ms var(--fx-ease); }
.fx-lm-side { position: sticky; top: 92px; }
.fx-lm-card, .fx-lm-editor { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--fx-edge); border-radius: var(--fx-radius-3); background: var(--fx-panel); animation: fx-enter var(--fx-base) var(--fx-ease) both; }
.fx-lm-card.is-empty p { margin: 0; color: var(--fx-muted); font-size: var(--fx-type-2); }
.fx-lm-card header { display: flex; justify-content: space-between; align-items: center; }
.fx-lm-badge { padding: 3px 10px; border-radius: var(--fx-pill); background: var(--lm-c); color: #1b1406; font-size: 12px; font-weight: 700; }
.fx-lm-card.is-closed .fx-lm-badge, .fx-lm-card.is-reserved .fx-lm-badge { color: #fff; }
.fx-lm-close { width: 32px; height: 32px; border: 1px solid var(--fx-edge); border-radius: 50%; background: transparent; color: var(--fx-ink); font-size: 18px; cursor: pointer; }
.fx-lm-card h3 { margin: 0; font: 600 22px var(--fx-display); }
.fx-lm-project-name { margin: -6px 0 0; color: var(--fx-muted); font-size: var(--fx-type-2); }
.fx-lm-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.fx-lm-card dt { font-size: 11px; color: var(--fx-muted); text-transform: uppercase; letter-spacing: .05em; }
.fx-lm-card dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.fx-lm-card-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-lm-editor h3 { margin: 0; font: 600 16px var(--fx-display); }
.fx-lm-upload { display: grid; gap: 6px; font-size: var(--fx-type-2); color: var(--fx-muted); }
.fx-lm-progress { margin: 0; font-size: var(--fx-type-2); color: var(--fx-muted); }
.fx-lm-progress b { color: var(--fx-ink); }
.fx-lm-unplaced { display: flex; flex-wrap: wrap; gap: 6px; max-height: 220px; overflow: auto; }
.fx-lm-unplaced button { padding: 5px 9px; border: 1px solid var(--fx-edge); border-radius: var(--fx-radius-1); background: var(--fx-glass); color: var(--fx-ink); font-size: 12px; cursor: pointer; }
.fx-lm-unplaced button.is-on { background: var(--fx-gold); color: var(--fx-gold-ink); border-color: var(--fx-gold); }
.fx-lm.is-edit .fx-lm-stage { cursor: crosshair; }
/* Showing prospects: full screen, no names, nothing to edit. */
.fx-lm.is-client .fx-lm-private { display: none; }
.fx-lm:fullscreen { padding: 12px; overflow: auto; }
.fx-lm:fullscreen .fx-lm-body { grid-template-columns: minmax(0, 1fr) 280px; }
.fx-lm:fullscreen .fx-lm-stage { height: calc(100vh - 110px); }
@keyframes lm-pulse { 0%, 100% { r: 15; } 50% { r: 21; } }
@keyframes lm-pop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@media (max-width: 900px) {
  .fx-lm-body, .fx-lm:fullscreen .fx-lm-body { grid-template-columns: minmax(0, 1fr); }
  .fx-lm-stage { height: min(62vh, 92vw); }
  .fx-lm:fullscreen .fx-lm-stage { height: calc(100vh - 230px); }
  .fx-lm-side { position: static; }
  .fx-lm-project { min-width: 0; width: 100%; }
  .fx-lm-actions { width: 100%; }
  .fx-lm-actions button { flex: 1; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-lm-canvas.is-easing, .fx-lm-lot circle, .fx-lm-tile { transition: none; }
  .fx-lm-lot.is-changed circle, .fx-lm-tile.is-changed, .fx-lm-card, .fx-lm-editor { animation: none; }
}
/* Legacy board styles set display on these blocks; keep them hidden while the map is shown. */
.lot-status-shell > [hidden], .lot-status-toolbar > [hidden] { display: none !important; }
