:root{
  --bg:#0b0c10;
  --card:#111218;
  --muted:#8c92a4;
  --text:#e7e9f3;
  --line:#222436;
  --accent:#7aa2ff;
  --danger:#ff6b6b;
  --ok:#5eead4;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1200px 800px at 20% 10%, #121528 0%, var(--bg) 55%);
  color:var(--text);
}
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 16px; border-bottom:1px solid var(--line);
  position:sticky; top:0; background:rgba(11,12,16,0.85); backdrop-filter: blur(10px);
  z-index:10;
}
.brand{display:flex; gap:12px; align-items:center;}
.logo{width:34px; height:34px;}
.title{font-weight:700; letter-spacing:.2px}
.subtitle{color:var(--muted); font-size:12px; margin-top:2px}
.toolbar{display:flex; gap:8px; align-items:center; flex-wrap:wrap; justify-content:flex-end}
.sep{width:1px; height:26px; background:var(--line); margin:0 6px}
.btn{
  border:1px solid var(--line);
  background:linear-gradient(180deg, #1a1c29, #121324);
  color:var(--text);
  padding:8px 10px; border-radius:10px; cursor:pointer;
  transition:transform .04s ease, border-color .15s ease;
}
.btn:hover{border-color:#2d3150}
.btn:active{transform:translateY(1px)}
.btnGhost{background:transparent}
.input{
  border:1px solid var(--line);
  background:#0f1020;
  color:var(--text);
  padding:8px 10px; border-radius:10px;
  min-width:280px;
}
.layout{
  display:grid;
  grid-template-columns: 420px 1fr;
  gap:12px;
  padding:12px;
  height: calc(100% - 62px);
}
.panel{
  border:1px solid var(--line);
  background:rgba(17,18,24,0.7);
  border-radius:16px;
  overflow:hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  min-height:0;
}
.panelHeader{
  display:flex; justify-content:space-between; align-items:baseline;
  padding:12px 12px 10px;
  border-bottom:1px solid var(--line);
}
.panelTitle{font-weight:700}
.panelHint{color:var(--muted); font-size:12px}
#map{height: calc(100% - 90px); width:100%}
.mapFooter{
  display:flex; justify-content:space-between; gap:8px;
  padding:10px 12px; border-top:1px solid var(--line);
}
.pill{
  border:1px solid var(--line);
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  color:var(--muted);
  background:rgba(0,0,0,.2);
}
#viewer{
  position:relative;
  height: calc(100% - 90px);
  width:100%;
  background:#0a0a12;
  user-select:none;
  overflow:hidden;
}
#photo{
  position:absolute;
  left:0; top:0;
  transform-origin: 0 0;
  will-change: transform;
  max-width:none;
}
#hotspots{
  position:absolute; inset:0;
  pointer-events:none; /* hotspots individual handle clicks */
}
.hotspot{
  position:absolute;
  transform: translate(-50%, -50%);
  pointer-events:auto;
  border:1px solid rgba(255,255,255,.25);
  background: rgba(122,162,255,.18);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 7px 10px;
  font-size:12px;
  cursor:pointer;
  display:flex; gap:8px; align-items:center;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}
.hotspot:hover{border-color: rgba(122,162,255,.7)}
.hotspot .dot{
  width:10px; height:10px; border-radius:999px; background: var(--accent);
}
.arrow{
  position:absolute; top:50%;
  transform: translateY(-50%);
  border:1px solid rgba(255,255,255,.20);
  background: rgba(0,0,0,.25);
  color: var(--text);
  border-radius: 999px;
  width:46px; height:46px;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  backdrop-filter: blur(8px);
}
.arrow:hover{border-color: rgba(255,255,255,.45)}
.arrowLeft{left:14px}
.arrowRight{right:14px}
.arrowDown{top:auto; bottom:14px; left:50%; transform: translateX(-50%); width:54px}
.viewerFooter{
  display:flex; justify-content:space-between; align-items:center;
  padding:10px 12px; border-top:1px solid var(--line);
}
.metaTitle{font-weight:700}
.metaSub{color:var(--muted); font-size:12px; margin-top:2px}
.metaRight{display:flex; gap:8px; align-items:center}

.dialog{
  border:1px solid var(--line);
  background: rgba(17,18,24,.92);
  color:var(--text);
  border-radius:16px;
  padding:16px;
  width:min(640px, calc(100% - 24px));
}
.dialogActions{display:flex; justify-content:flex-end; margin-top:10px}

/* Mobile */
@media (max-width: 980px){
  .layout{grid-template-columns:1fr; height:auto}
  #map{height:360px}
  #viewer{height:420px}
  .input{min-width: 180px}
}


.siteFooter{padding:18px 18px 28px;margin-top:22px;border-top:1px solid rgba(255,255,255,.08);background:rgba(11,16,32,.65);backdrop-filter:blur(10px)}
.footerInner{max-width:1100px;margin:0 auto;color:var(--muted);font-size:12px;letter-spacing:.2px}

.muted{color:var(--muted);opacity:.95}
.footer{margin-top:22px;padding:18px 18px 26px;border-top:1px solid rgba(255,255,255,.10)}
.footerInner{display:flex;gap:18px;flex-wrap:wrap}
.footerCol{flex:1;min-width:220px}
.footerTitle{font-weight:800;color:#e9ecf5;margin-bottom:8px}
.footerLine{margin:4px 0}
.footerQr{display:flex;flex-direction:column;align-items:flex-start}
.qrImg{width:140px;height:auto;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:#fff}
