* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
}

/* =====================================================
           360 VIEWER
        ====================================================== */
#panorama {
  width: 100%;
  height: 100%; /* Changed from 620px so it stretches in fullscreen */
  border-radius: 22px;
  overflow: hidden;
  background: #020617;
}

@media (max-width: 768px) {
  #panorama {
    height: 100%; /* Changed from 480px */
  }
}

/* =====================================================
           SCROLLBAR
        ====================================================== */

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #1e293b;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #d97706;
  border-radius: 10px;
}

/* =====================================================
           PANNELLUM HOTSPOT
        ====================================================== */

.street-hotspot {
  width: 54px;
  height: 54px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;

  cursor: pointer;

  position: relative;

  border: 3px solid white;

  box-shadow:
    0 0 0 4px rgba(245, 158, 11, 0.25),
    0 10px 30px rgba(0, 0, 0, 0.55);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.street-hotspot:hover {
  transform: scale(1.18);

  box-shadow:
    0 0 0 8px rgba(245, 158, 11, 0.25),
    0 12px 35px rgba(0, 0, 0, 0.65);
}
.street-hotspot-door {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.75),
    rgba(217, 119, 6, 0.75)
  ) !important;
  backdrop-filter: blur(4px) !important;
}

.street-hotspot-info {
  background: linear-gradient(
    135deg,
    rgba(2, 132, 199, 0.75),
    rgba(3, 105, 161, 0.75)
  ) !important;
  backdrop-filter: blur(4px) !important;
}

.street-hotspot-arrow {
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.75),
    rgba(4, 120, 87, 0.75)
  ) !important;
  backdrop-filter: blur(4px) !important;
}

.street-hotspot::after {
  content: "";

  position: absolute;

  width: 75px;
  height: 75px;

  border-radius: 50%;

  border: 2px solid rgba(255, 255, 255, 0.65);

  animation: hotspotPulse 1.8s infinite;

  pointer-events: none;
}

@keyframes hotspotPulse {
  0% {
    transform: scale(0.65);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

/* =====================================================
           HOTSPOT LABEL
        ====================================================== */

.hotspot-label {
  position: absolute;

  bottom: 65px;

  left: 50%;

  transform: translateX(-50%) translateY(5px);

  background: rgba(15, 23, 42, 0.95);

  color: white;

  padding: 8px 13px;

  border-radius: 10px;

  font-size: 12px;

  font-weight: 700;

  white-space: nowrap;

  opacity: 0;

  pointer-events: none;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;

  border: 1px solid rgba(255, 255, 255, 0.15);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.street-hotspot:hover .hotspot-label {
  opacity: 1;

  transform: translateX(-50%) translateY(-3px);
}

/* =====================================================
           PANNELLUM OVERRIDES & TRANSPARENCY
====================================================== */

/* Strip default Pannellum backgrounds & sprites */
.pnlm-hotspot,
.pnlm-hotspot-base,
.pnlm-sprite,
.pnlm-info,
.custom-pano-hotspot {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Ensure custom hotspot element stays fully transparent */
.street-hotspot,
.street-hotspot-door,
.street-hotspot-info,
.street-hotspot-arrow {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  cursor: pointer;
  position: relative;

  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;

  /* White ring border */
  border: 3px solid rgba(255, 255, 255, 0.9) !important;

  box-shadow:
    0 0 0 4px rgba(0, 0, 0, 0.25),
    0 10px 30px rgba(0, 0, 0, 0.55);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.pnlm-tooltip {
  display: none !important;
}

/* =====================================================
           MOBILE
        ====================================================== */

@media (max-width: 768px) {
  .hotspot-label {
    display: none;
  }

  .street-hotspot {
    width: 46px;
    height: 46px;
  }
}
