html, body {
  margin: 0;
  height: 100%;
  background: #111;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  overflow: hidden;
}

#pano {
  position: fixed;
  inset: 0;
}

#label {
  position: fixed;
  top: 16px;
  left: 16px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

#minimap {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 320px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 10px;
  padding: 10px;
  backdrop-filter: blur(4px);
}

#floors {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
#floors button {
  flex: 1;
  background: #222;
  color: #ccc;
  border: 0;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
#floors button:hover { background: #333; }
#floors button.active { background: #ff5722; color: #fff; }

#floorplan {
  position: relative;
  width: 100%;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}
#floorplan img.fp {
  width: 100%;
  display: block;
}
.fp-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.fp-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5722;
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px rgba(0,0,0,.4);
  cursor: pointer;
  pointer-events: auto;
}
.fp-dot.active {
  background: #ffc107;
  width: 14px;
  height: 14px;
}

.hs {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid #fff;
  cursor: pointer;
  transition: transform .1s ease, background .1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  box-shadow: 0 0 12px rgba(0,0,0,.5);
}
.hs:hover {
  transform: scale(1.15);
  background: rgba(255, 87, 34, 0.6);
}
.hs-forward::before { content: "↑"; }
.hs-left-45::before { content: "↖"; }
.hs-right-45::before { content: "↗"; }
.hs-up::before { content: "⇧"; }
.hs-down::before { content: "⇩"; }
.hs-exact::before { content: "•"; font-size: 28px; }

/* Measurement tool */
#measure-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  z-index: 10;
}
#measure-btn:hover { background: rgba(0, 0, 0, 0.8); }
#measure-btn.active { background: #ff5722; }

#measure-overlay {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  max-width: 360px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 10px;
  padding: 12px 16px;
  backdrop-filter: blur(4px);
  z-index: 10;
}
.m-status { font-size: 13px; color: #ccc; line-height: 1.5; }
.m-result {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin: 4px 0;
}

.measure-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 0 8px rgba(0,0,0,.5);
}
