/* Lugoda Sentinel — Floor-plan module styles: gallery cards, SVG schematic,
   equipment hotspots, tooltip, breadcrumb bar, status panel, 3D tilt. On-theme. */

/* ============================================================== GALLERY */
.fp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.fp-card{cursor:pointer;transition:.18s;overflow:hidden}
.fp-card:hover{transform:translateY(-3px);border-color:#50505c;box-shadow:0 12px 34px rgba(0,0,0,.45)}
.fp-card h3.ch .fp-count{margin-left:auto;background:#2c2c34;color:#cfcfd6;border-radius:999px;
  font-size:11px;font-weight:600;padding:2px 9px}
.fp-card-site b{font-size:15px}
.fp-card-site span{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.fp-summary{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:12px 0 2px;
  font-size:13px;font-weight:600;color:#cfcfd6}
.fp-summary .muted{font-weight:400}
.fp-dot{width:10px;height:10px;border-radius:50%;display:inline-block;margin-right:4px;vertical-align:middle}
.fp-dot.ready{background:var(--green);box-shadow:0 0 5px var(--green)}
.fp-dot.warning{background:var(--amber);box-shadow:0 0 5px var(--amber)}
.fp-dot.critical{background:var(--red);box-shadow:0 0 6px var(--red)}
.fp-dot.offline{background:var(--grey)}
.fp-sep{width:1px;height:13px;background:var(--line);display:inline-block;margin:0 4px}
.fp-card-foot{display:flex;align-items:center;justify-content:space-between;margin-top:12px;
  padding-top:11px;border-top:1px solid var(--ink2);font-size:12px}
.fp-open{color:var(--red);font-weight:600}
.fp-link{color:var(--blue)}
.fp-link:hover{color:#fff;text-decoration:underline}

/* ============================================================ BREADCRUMB */
.fp-crumbbar{background:var(--panel);border:1px solid var(--line);border-radius:10px;
  padding:9px 14px;margin-bottom:16px}
.fp-crumbs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px}
.fp-crumb{color:var(--muted)}
.fp-crumb.fp-strong{color:var(--txt);font-weight:600}
.fp-chev{color:var(--line);font-size:12px}
.fp-crumb-dot{color:var(--muted)}
.fp-sel{font-variant-numeric:tabular-nums;color:#ff9b9b;background:#2a1416;
  border:1px solid var(--red-dark);border-radius:6px;padding:1px 8px;font-weight:600}

/* ================================================================ LAYOUT */
.fp-layout{align-items:start}
.fp-stage-card{min-width:0}
.fp-stage-body{position:relative;padding:14px}
.fp-tilt{margin-left:auto;font-size:11px;color:var(--muted);display:flex;align-items:center;
  gap:6px;cursor:pointer;text-transform:none;letter-spacing:0}
.fp-tilt input{accent-color:var(--red);cursor:pointer}

/* ================================================================== SVG */
.fp-wrap{width:100%;border-radius:10px;overflow:hidden;background:#15151a;
  border:1px solid var(--line);perspective:1400px}
.fp-svg{display:block;width:100%;height:auto;background:
  radial-gradient(circle at 30% 20%,#1b1b21,#131318);transition:transform .45s ease}
.fp-wrap.tilt .fp-svg{transform:rotateX(34deg) rotateZ(-2deg) scale(.92);transform-origin:center 62%}

/* rooms by kind */
.fp-room{fill:var(--panel2);stroke:var(--line);stroke-width:1.5;transition:.2s}
.fp-room.core{fill:#241417;stroke:var(--red-dark)}
.fp-room.service{fill:#102536;stroke:#2e547a}
.fp-room.stair{fill:#241d0e;stroke:#5a4a1c}
.fp-room.corridor{fill:#1d1d23;stroke:#2a2a31;stroke-width:1}
.fp-room-label{fill:var(--muted);font-size:13px;font-family:'Segoe UI',system-ui,Arial,sans-serif;
  letter-spacing:.3px;pointer-events:none;user-select:none}

/* ============================================================= HOTSPOTS */
.hotspot{cursor:pointer}
.hs-ring{fill:none;stroke:transparent;stroke-width:2;transition:.18s}
.hs-base{fill:#2c2c34;stroke:#15151a;stroke-width:2;transition:transform .15s ease}
.hs-base.ready{fill:#13362a;stroke:var(--green)}
.hs-base.warning{fill:#3a2c11;stroke:var(--amber)}
.hs-base.critical{fill:#3a1416;stroke:var(--red)}
.hs-base.offline{fill:#2c2c34;stroke:var(--grey)}
.hs-glyph{font-size:15px;pointer-events:none;user-select:none}
.hotspot .hs-led{stroke:#15151a;stroke-width:1.5}
.hotspot:hover .hs-base,.hotspot.hover .hs-base{transform:scale(1.18)}
.hotspot:hover .hs-ring,.hotspot.hover .hs-ring{stroke:#fff;stroke-opacity:.45}

/* SVG LED reuse (mirrors components.css .led, but filled via fill for <circle>) */
.led.ready.hs-led{fill:var(--green)}
.led.warning.hs-led{fill:var(--amber)}
.led.removed.hs-led,.led.faulted.hs-led{fill:var(--red);animation:blink .8s infinite}
.led.offline.hs-led{fill:var(--grey)}

/* selected hotspot — pulse ring */
.hotspot.selected .hs-ring{stroke:var(--red);stroke-opacity:.9;animation:fpPulse 1.4s infinite}
@keyframes fpPulse{
  0%{stroke-width:2;stroke-opacity:.9}
  70%{stroke-width:9;stroke-opacity:0}
  100%{stroke-width:2;stroke-opacity:0}
}

/* ================================================================ TOOLTIP */
.fp-tooltip{position:absolute;z-index:5;pointer-events:none;min-width:160px;max-width:240px;
  background:var(--panel);border:1px solid var(--line);border-radius:10px;
  box-shadow:var(--shadow);padding:9px 11px}
.fp-tip-id{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.fp-tip-nm{font-size:13px;font-weight:600;margin:2px 0 6px}
.fp-tip-st{display:flex;align-items:center;gap:7px}

/* ============================================================ STATUS PANEL */
.fp-panel-card{min-width:0}
.fp-panel{max-height:560px;overflow:auto}
.fp-row-icon{flex:0 0 auto;font-size:18px;width:24px;text-align:center}
.fp-panel .lrow.fp-active{background:var(--panel2);box-shadow:inset 3px 0 0 var(--red)}
.fp-panel .lrow.fp-active .nm b{color:#ff9b9b}

/* responsive: stack panel under the schematic on narrow screens */
@media(max-width:980px){.fp-layout{grid-template-columns:1fr}.fp-panel{max-height:340px}}
