* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -ms-text-size-adjust: none;
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -ms-content-zooming: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html,
body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  background-color: #000;
  color: #fff;
}

a,
a:hover,
a:active,
a:visited {
  text-decoration: none;
  color: inherit;
}

#pano {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#titleBar {
  position: absolute;
  top: 0;
  left: 0;
  right: 40px;
  height: 40px;
  text-align: center;
}

.mobile #titleBar {
  height: 50px;
  right: 50px;
}

/* If there is a fullscreen button the title bar must make space for it */
body.fullscreen-enabled #titleBar {
  right: 80px;
}

body.fullscreen-enabled.mobile #titleBar {
  right: 100px;
}

/* If there are multiple scenes the title bar must make space for the scene list toggle */
body.multiple-scenes #titleBar {
  left: 40px;
}

body.multiple-scenes.mobile #titleBar {
  left: 50px;
}

#titleBar .sceneName {
  width: 100%;
  height: 100%;
  line-height: 30px;
  padding: 5px;
  background-color: rgb(58, 68, 84);
  background-color: rgba(58, 68, 84, 0.8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.mobile #titleBar .sceneName {
  line-height: 40px;
}

#fullscreenToggle {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: rgb(103, 115, 131);
  background-color: rgba(103, 115, 131, 0.8);
}

.mobile #fullscreenToggle {
  width: 50px;
  height: 50px;
}

body.fullscreen-enabled #fullscreenToggle {
  display: block;
}

#fullscreenToggle .icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
}

.mobile #fullscreenToggle .icon {
  top: 10px;
  right: 10px;
}

#fullscreenToggle .icon.on {
  display: none;
}

#fullscreenToggle .icon.off {
  display: block;
}

#fullscreenToggle.enabled .icon.on {
  display: block;
}

#fullscreenToggle.enabled .icon.off {
  display: none;
}

#autorotateToggle {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: rgb(103, 115, 131);
  background-color: rgba(103, 115, 131, 0.8);
}

.mobile #autorotateToggle {
  width: 50px;
  height: 50px;
}

/* If there is a fullscreen button, autorotate must placed a bit to the left */
body.fullscreen-enabled #autorotateToggle {
  right: 40px;
}

body.fullscreen-enabled.mobile #autorotateToggle {
  right: 50px;
}

#autorotateToggle .icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
}

.mobile #autorotateToggle .icon {
  top: 10px;
  right: 10px;
}

#autorotateToggle .icon.on {
  display: none;
}

#autorotateToggle .icon.off {
  display: block;
}

#autorotateToggle.enabled .icon.on {
  display: block;
}

#autorotateToggle.enabled .icon.off {
  display: none;
}

#sceneListToggle {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: rgb(103, 115, 131);
  background-color: rgba(103, 115, 131, 0.8);
}

.mobile #sceneListToggle {
  width: 50px;
  height: 50px;
}

#sceneListToggle .text {
  position: absolute;
  top: 5px;
  left: 15px;
  width: 100%;
  line-height: 30px;
}

#sceneListToggle .icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
}

.mobile #sceneListToggle .icon {
  top: 10px;
  right: 10px;
}

#sceneListToggle .icon.on {
  display: none;
}

#sceneListToggle .icon.off {
  display: block;
}

#sceneListToggle.enabled .icon.on {
  display: block;
}

#sceneListToggle.enabled .icon.off {
  display: none;
}

#sceneList {
  position: absolute;
  top: 0;
  left: -220px;
  padding-top: 40px;
  width: 220px;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  margin-left: 0;
  -webkit-transition: margin-left 0.5s ease-in-out;
  transition: margin-left 0.5s ease-in-out;
  /* Keep scene list below the map popup overlay */
  z-index: 100;
}

.mobile #sceneList {
  padding-top: 50px;
}

#sceneList .scenes {
  width: 100%;
  background-color: rgb(58, 68, 84);
  background-color: rgba(58, 68, 84, 0.8);
}

.mobile #sceneList {
  width: 100%;
  height: 100%;
  left: -100%;
}

.mobile #sceneList.enabled {
  margin-left: 100%;
}

.mobile #sceneList .scenes {
  height: 100%;
}

#sceneList.enabled {
  margin-left: 220px;
}

#sceneList .scene {
  display: block;
  width: 100%;
  height: 30px;
}

.mobile #sceneList .scene {
  height: 40px;
}

#sceneList .scene .text {
  width: 100%;
  height: 100%;
  padding: 0 15px;
  line-height: 30px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile #sceneList .scene .text {
  line-height: 40px;
}

.no-touch #sceneList .scene:hover {
  background-color: rgb(103, 115, 131);
  background-color: rgba(103, 115, 131, 0.8);
}

#sceneList .scene.current {
  background-color: rgb(103, 115, 131);
  background-color: rgba(103, 115, 131, 0.8);
}

/* Hide scene list when only a single scene exists */
body.single-scene #sceneList,
body.single-scene #sceneListToggle {
  display: none;
}

/* Link hotspot */

.link-hotspot {
  width: 60px;
  height: 60px;
  margin-left: -30px;
  margin-top: -30px;
  opacity: 0.9;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.no-touch .link-hotspot:hover {
  opacity: 1;
}

.mobile .link-hotspot {
  width: 70px;
  height: 70px;
}

.link-hotspot-icon {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.link-hotspot-tooltip {
  position: absolute;
  left: 100%;
  top: 14px;
  /* ( 60 - (16 + 2*8) ) / 2 */

  margin-left: 3px;

  font-size: 16px;

  max-width: 300px;

  padding: 8px 10px;

  border-radius: 5px;

  background-color: rgb(58, 68, 84);
  background-color: rgba(58, 68, 84, 0.8);

  color: #fff;

  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;

  cursor: pointer;

  opacity: 0;

  -ms-transform: translateX(-8px);
  -webkit-transform: translateX(-8px);
  transform: translateX(-8px);

  -webkit-transition: -ms-transform 0.3s,
    -webkit-transform 0.3s,
    transform 0.3s,
    opacity 0.3s;
  transition: -ms-transform 0.3s,
    -webkit-transform 0.3s,
    transform 0.3s,
    opacity 0.3s;
}

.mobile .link-hotspot {
  top: 19px;
  /* ( 70 - (16 + 2*8) ) / 2 */
}

.no-touch .link-hotspot:hover .link-hotspot-tooltip {
  opacity: 1;
  -ms-transform: translateX(0);
  -webkit-transform: translateX(0);
  transform: translateX(0);
}

/* Prevent tooltip from triggering */
.link-hotspot-tooltip {
  pointer-events: none;
}

.no-touch .link-hotspot:hover .link-hotspot-tooltip {
  pointer-events: all;
}

/* Fallback mode without pointer-events (IE8-10) */
.tooltip-fallback .link-hotspot-tooltip {
  display: none;
}

.no-touch .tooltip-fallback .link-hotspot:hover .link-hotspot-tooltip {
  display: block;
}

/* Info hotspot */

.info-hotspot {
  line-height: 1.2em;
  opacity: 0.9;
  -webkit-transition: opacity 0.2s 0.2s;
  transition: opacity 0.2s 0.2s;
}

.no-touch .info-hotspot:hover {
  opacity: 1;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.info-hotspot.visible {
  opacity: 1;
}

.info-hotspot .info-hotspot-header {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background-color: rgb(103, 115, 131);
  cursor: pointer;
  -webkit-transition: width 0.3s ease-in-out 0.5s,
    border-radius 0.3s ease-in-out 0.5s;
  transition: width 0.3s ease-in-out 0.5s,
    border-radius 0.3s ease-in-out 0.5s;
}

.mobile .info-hotspot .info-hotspot-header {
  width: 50px;
  height: 50px;
  border-radius: 25px;
}

.desktop.no-touch .info-hotspot .info-hotspot-header:hover {
  width: 260px;
  border-radius: 5px;
  -webkit-transition: width 0.3s ease-in-out,
    border-radius 0.3s ease-in-out;
  transition: width 0.3s ease-in-out,
    border-radius 0.3s ease-in-out;
}

.desktop .info-hotspot.visible .info-hotspot-header,
.desktop.no-touch .info-hotspot.visible .info-hotspot-header:hover {
  width: 260px;
  border-radius: 5px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  -webkit-transition: width 0.3s ease-in-out,
    border-radius 0.3s ease-in-out;
  transition: width 0.3s ease-in-out,
    border-radius 0.3s ease-in-out;
}

.info-hotspot .info-hotspot-icon-wrapper {
  width: 40px;
  height: 40px;
}

.mobile .info-hotspot .info-hotspot-icon-wrapper {
  width: 50px;
  height: 50px;
}

.info-hotspot .info-hotspot-icon {
  width: 90%;
  height: 90%;
  margin: 5%;
}

.info-hotspot .info-hotspot-title-wrapper {
  position: absolute;
  left: 40px;
  top: 0;
  width: 0;
  height: 40px;
  padding: 0;
  overflow: hidden;
  -webkit-transition: width 0s 0.4s,
    padding 0s 0.4s;
  transition: width 0s 0.4s,
    padding 0s 0.4s;
}

.desktop .info-hotspot.visible .info-hotspot-title-wrapper,
.desktop.no-touch .info-hotspot .info-hotspot-header:hover .info-hotspot-title-wrapper {
  width: 220px;
  padding: 0 5px;
  -webkit-transition: width 0s 0.4s,
    padding 0s 0.4s;
  transition: width 0s 0.4s,
    padding 0s 0.4s;
}

.info-hotspot .info-hotspot-title-wrapper:before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}

.info-hotspot .info-hotspot-title {
  display: inline-block;
  vertical-align: middle;

  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.info-hotspot .info-hotspot-close-wrapper {
  position: absolute;
  left: 260px;
  top: 0;
  height: 40px;
  width: 40px;
  border-top-right-radius: 5px;
  background-color: rgb(78, 88, 104);
  visibility: hidden;
  -ms-transform: perspective(200px) rotateY(90deg);
  -webkit-transform: perspective(200px) rotateY(90deg);
  transform: perspective(200px) rotateY(90deg);
  -ms-transform-origin: 0 50% 0;
  -webkit-transform-origin: 0 50% 0;
  transform-origin: 0 50% 0;
  -webkit-transition: -ms-transform 0.3s 0.3s,
    -webkit-transform 0.3s 0.3s,
    transform 0.3s 0.3s,
    visibility 0s 0.6s;
  transition: -ms-transform 0.3s 0.3s,
    -webkit-transform 0.3s 0.3s,
    transform 0.3s 0.3s,
    visibility 0s 0.6s;
}

.desktop .info-hotspot.visible .info-hotspot-close-wrapper {
  visibility: visible;
  -ms-transform: perspective(200px) rotateY(0deg);
  -webkit-transform: perspective(200px) rotateY(0deg);
  transform: perspective(200px) rotateY(0deg);
  -webkit-transition: -ms-transform 0.3s,
    -webkit-transform 0.3s,
    transform 0.3s,
    visibility 0s 0s;
  transition: -ms-transform 0.3s,
    -webkit-transform 0.3s,
    transform 0.3s,
    visibility 0s 0s;
}

.info-hotspot .info-hotspot-close-icon {
  width: 70%;
  height: 70%;
  margin: 15%;
}

.info-hotspot .info-hotspot-text {
  position: absolute;
  width: 300px;
  height: auto;
  max-height: 200px;
  top: 40px;
  left: 0;
  padding: 10px;
  background-color: rgb(58, 68, 84);
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
  overflow-y: auto;
  visibility: hidden;
  /* rotate(90deg) causes transition flicker on Firefox 58 */
  -ms-transform: perspective(200px) rotateX(-89.999deg);
  -webkit-transform: perspective(200px) rotateX(-89.999deg);
  transform: perspective(200px) rotateX(-89.999deg);
  -ms-transform-origin: 50% 0 0;
  -webkit-transform-origin: 50% 0 0;
  transform-origin: 50% 0 0;
  -webkit-transition: -ms-transform 0.3s,
    -webkit-transform 0.3s,
    transform 0.3s,
    visibility 0s 0.3s;
  transition: -ms-transform 0.3s,
    -webkit-transform 0.3s,
    transform 0.3s,
    visibility 0s 0.3s;

  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.desktop .info-hotspot.visible .info-hotspot-text {
  visibility: visible;
  -ms-transform: perspective(200px) rotateX(0deg);
  -webkit-transform: perspective(200px) rotateX(0deg);
  transform: perspective(200px) rotateX(0deg);
  -webkit-transition: -ms-transform 0.3s 0.3s,
    -webkit-transform 0.3s 0.3s,
    transform 0.3s 0.3s,
    visibility 0s 0s;
  transition: -ms-transform 0.3s 0.3s,
    -webkit-transform 0.3s 0.3s,
    transform 0.3s 0.3s,
    visibility 0s 0s;
}

/* Info hotspot modal */

.desktop .info-hotspot-modal {
  display: none;
}

.info-hotspot-modal {
  top: 0;
  left: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 11000 !important;
  background-color: rgba(0, 0, 0, .5);
  line-height: 1.2em;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.2s ease-in-out 0.5s,
    visibility 0s 0.7s;
  transition: opacity 0.2s ease-in-out 0.5s,
    visibility 0s 0.7s;
}

.info-hotspot-modal.visible {
  opacity: 1;
  visibility: visible;
  -webkit-transition: opacity 0.2s ease-in-out,
    visibility 0s 0s;
  transition: opacity 0.2s ease-in-out,
    visibility 0s 0s;
}

.info-hotspot-modal .info-hotspot-header {
  position: absolute;
  top: 60px;
  left: 10px;
  right: 10px;
  width: auto;
  height: 50px;
  background-color: rgb(103, 115, 131);
  background-color: rgba(103, 115, 131, 0.8);
  opacity: 0;
  -webkit-transition: opacity 0.3s ease-in-out 0.2s;
  transition: opacity 0.3s ease-in-out 0.2s;
}

.info-hotspot-modal.visible .info-hotspot-header {
  opacity: 1;
  -webkit-transition: opacity 0.3s ease-in-out 0.2s;
  transition: opacity 0.3s ease-in-out 0.2s;
}

.info-hotspot-modal .info-hotspot-icon-wrapper {
  width: 50px;
  height: 50px;
}

.info-hotspot-modal .info-hotspot-icon {
  width: 90%;
  height: 90%;
  margin: 5%;
}

.info-hotspot-modal .info-hotspot-title-wrapper {
  position: absolute;
  top: 0;
  left: 50px;
  right: 50px;
  width: auto;
  height: 50px;
  padding: 0 10px;
}

.info-hotspot-modal .info-hotspot-title-wrapper:before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}

.info-hotspot-modal .info-hotspot-title {
  display: inline-block;
  vertical-align: middle;

  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.info-hotspot-modal .info-hotspot-close-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  background-color: rgb(78, 88, 104);
  background-color: rgba(78, 88, 104, 0.8);
  cursor: pointer;
}

.info-hotspot-modal .info-hotspot-close-icon {
  width: 70%;
  height: 70%;
  margin: 15%;
}

.info-hotspot-modal .info-hotspot-text {
  position: absolute;
  top: 110px;
  bottom: 10px;
  left: 10px;
  right: 10px;
  padding: 10px;
  background-color: rgb(58, 68, 84);
  background-color: rgba(58, 68, 84, 0.8);
  overflow-y: auto;
  opacity: 0;
  -webkit-transition: opacity 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out;

  -moz-user-select: text;
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.info-hotspot-modal.visible .info-hotspot-text {
  opacity: 1;
  -webkit-transition: opacity 0.3s ease-in-out 0.4s;
  transition: opacity 0.3s ease-in-out 0.4s;
}

/* View control buttons */

.viewControlButton {
  display: none;
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: rgb(103, 115, 131);
  background-color: rgba(103, 115, 131, 0.8);
}

body.view-control-buttons .viewControlButton {
  display: block;
}

/* Hide controls when width is too small */
@media (max-width: 600px) {
  body.view-control-buttons .viewControlButton {
    display: none;
  }
}

.viewControlButton .icon {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 30px;
  height: 30px;
}

/* Center is at margin-left: -20px */
.viewControlButton-1 {
  margin-left: -145px;
}

.viewControlButton-2 {
  margin-left: -95px;
}

.viewControlButton-3 {
  margin-left: -45px;
}

.viewControlButton-4 {
  margin-left: 5px;
}

.viewControlButton-5 {
  margin-left: 55px;
}

.viewControlButton-6 {
  margin-left: 105px;
}

/* Zero-point marker at yaw:0, pitch:0 */
.zero-square-hotspot {
  width: 50px;
  height: 50px;
  background-color: rgba(199, 38, 38, 0);
  border: 2px solid #ff000000;
  margin-top: -25px;
  margin-left: -25px;
  pointer-events: none;
}

/* Coordinate display overlay */
#coordinatesDisplay {
  position: absolute;
  top: 0;
  right: 80px;
  height: 40px;
  padding: 0 15px;
  line-height: 40px;
  background-color: rgb(103, 115, 131);
  background-color: rgba(103, 115, 131, 0.8);
  font-family: monospace;
  font-size: 14px;
  color: #fff;
  z-index: 10;
  white-space: nowrap;
}

body.fullscreen-enabled #coordinatesDisplay {
  right: 120px;
}

.mobile #coordinatesDisplay {
  right: 100px;
  height: 50px;
  line-height: 50px;
}

body.fullscreen-enabled.mobile #coordinatesDisplay {
  right: 150px;
}

/* Cursor coordinate display overlay */
#cursorCoordinatesDisplay {
  position: absolute;
  top: 40px;
  right: 0px;
  /* Aligned vertically with the top toggle buttons */
  height: 40px;
  padding: 0 15px;
  line-height: 40px;
  background-color: rgb(103, 115, 131);
  background-color: rgba(103, 115, 131, 0.8);
  font-family: monospace;
  font-size: 14px;
  color: #fff;
  z-index: 10;
  white-space: nowrap;
}

body.fullscreen-enabled #cursorCoordinatesDisplay {
  right: 0px;
}

.mobile #cursorCoordinatesDisplay {
  top: 50px;
  height: 50px;
  line-height: 50px;
}

/* Hide developer coordinate bars on very small screens to prevent clutter */
@media (max-width: 600px) {

  #coordinatesDisplay,
  #cursorCoordinatesDisplay {
    display: none;
  }
}






/* =======================================================
   1. THE FLOATING MAP BUTTON
   ======================================================= */

#mapToggleBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 62px;
  height: 62px;
  background: rgba(25, 25, 25, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 1.5px solid rgba(0, 150, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(0, 150, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  cursor: pointer;
  /* Keep above all tour UI including scene list */
  z-index: 99999;
  /* Prevent layout shifts from pulse child */
  overflow: visible;
}

/* Smooth lift and glow on hover (desktop) */
#mapToggleBtn:hover {
  transform: translateY(-5px) scale(1.07);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), 0 0 22px rgba(0, 150, 255, 0.55);
  background: rgba(40, 40, 40, 0.9);
}

/* Squeeze on tap/click */
#mapToggleBtn:active {
  transform: scale(0.93);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Ambient radar pulse ring */
#mapToggleBtn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 2px solid rgba(0, 150, 255, 0.35);
  animation: pulseMapBtn 2.8s ease-out infinite;
  pointer-events: none;
}

@keyframes pulseMapBtn {
  0% {
    transform: scale(1);
    opacity: 0.65;
  }

  65% {
    transform: scale(1.4);
    opacity: 0;
  }

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

/* ── Mobile overrides: bigger tap target, always above nav bar ── */
@media (max-width: 600px) {
  #mapToggleBtn {
    bottom: 24px;
    right: 18px;
    width: 68px;
    height: 68px;
    font-size: 30px;
    border-radius: 20px;
    /* Strong shadow so it pops against dark panorama */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 150, 255, 0.5);
  }
}

/* ── Small landscape phones (e.g. 375×667 landscape) ── */
@media (max-width: 812px) and (orientation: landscape) {
  #mapToggleBtn {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
    font-size: 22px;
  }
}


/* =======================================================
   2. THE VR MODE BUTTON
   ======================================================= */

#vrModeBtn {
  position: fixed;
  bottom: 30px;
  /* Sits immediately to the left of the map button:
     map is at right:30px, width:62px → button right = 30 + 62 + 12 = 104px */
  right: 112px;
  width: 62px;
  height: 62px;
  background: rgba(48, 0, 90, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 1.5px solid rgba(160, 80, 255, 0.50);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(140, 0, 255, 0.3);
  cursor: pointer;
  z-index: 99999;
  overflow: visible;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

#vrModeBtn:hover {
  transform: translateY(-5px) scale(1.07);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), 0 0 24px rgba(140, 0, 255, 0.65);
  background: rgba(70, 0, 130, 0.92);
}

#vrModeBtn:active {
  transform: scale(0.93);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Ambient violet pulse ring */
#vrModeBtn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 2px solid rgba(160, 80, 255, 0.40);
  animation: pulseVrBtn 3.2s ease-out infinite;
  pointer-events: none;
}

@keyframes pulseVrBtn {
  0% {
    transform: scale(1);
    opacity: 0.70;
  }

  65% {
    transform: scale(1.4);
    opacity: 0;
  }

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

/* Mobile: match the larger map button size */
@media (max-width: 600px) {
  #vrModeBtn {
    bottom: 24px;
    right: 110px;
    width: 68px;
    height: 68px;
    font-size: 30px;
    border-radius: 20px;
  }
}

/* Landscape phones */
@media (max-width: 812px) and (orientation: landscape) {
  #vrModeBtn {
    bottom: 16px;
    right: 82px;
    width: 52px;
    height: 52px;
    font-size: 22px;
  }
}


/* =======================================================
   3. THE MAP POPUP OVERLAY
   ======================================================= */

#mapPopup {
  position: fixed;
  inset: 0;
  /* top/right/bottom/left: 0 in one shot */
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.94);
  display: none;
  /* Toggled to flex by JS */
  align-items: center;
  justify-content: center;
  z-index: 999999;
  /* Subtle fade-in when opened via JS display:flex */
  animation: mapPopupFadeIn 0.22s ease forwards;
}

@keyframes mapPopupFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Inner content wrapper */
#mapPopupContent {
  position: relative;
  /* Give 4 px safe area on every side (notch-aware) */
  width: calc(100vw - 8px);
  height: calc(100vh - 8px);
  max-width: 1400px;
  max-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Grab cursor to signal the map is pannable */
  cursor: grab;
  /* Prevent native browser pan/zoom from stealing our touch events */
  touch-action: none;
}

/* On true mobile, fill the full screen edge-to-edge */
@media (max-width: 600px) {
  #mapPopupContent {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }
}

/* Close button */
#mapCloseBtn {
  position: fixed;
  top: 16px;
  right: 20px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.2s;
  z-index: 1000001;
}

#mapCloseBtn:hover {
  background: rgba(200, 40, 40, 0.75);
}

/* Bigger close button on mobile so it's easy to tap */
@media (max-width: 600px) {
  #mapCloseBtn {
    top: 12px;
    right: 12px;
    font-size: 22px;
    padding: 10px 16px;
  }
}


/* =======================================================
   3. MAP IMAGE CONTAINER  (image + SVG overlay must share
      exactly the same bounding box so click coordinates match)
   ======================================================= */

#mapImageContainer {
  position: relative;
  /* Shrink-wrap to the image's rendered size */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Never exceed the popup content area */
  max-width: 100%;
  max-height: 100%;
  /* centers itself inside #mapPopupContent */
  margin: auto;
  /* Zoom / pan transforms are applied by JS */
  transform-origin: center center;
  will-change: transform;
  /* Fast transition for button-triggered zooms; disabled during drag */
  transition: transform 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#mapImageContainer img#fullMapImage {
  display: block;
  /* Scale to fit without cropping */
  max-width: 100%;
  max-height: calc(100vh - 60px);
  /* leave room for close button */
  width: auto;
  height: auto;
  object-fit: contain;
  /* Prevent dragging / long-press context menu on mobile */
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

@media (max-width: 600px) {
  #mapImageContainer img#fullMapImage {
    /* In portrait, allow the image to fill as much height as possible */
    max-height: calc(100vw * 0.6);
    /* keeps aspect ratio on portrait */
    max-width: 100%;
  }
}

/* Landscape hint — shown in portrait, hidden in landscape */
#mapLandscapeHint {
  display: none;
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.3px;
  pointer-events: none;
  z-index: 1000002;
}

/* Show only on portrait phones */
@media (max-width: 600px) and (orientation: portrait) {
  #mapLandscapeHint {
    display: block;
  }
}


/* =======================================================
   4. SVG ROAD OVERLAY
   (must cover the image pixel-perfectly)
   ======================================================= */

#mapSvgOverlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Clicks on empty SVG canvas fall through to image */
  pointer-events: none;
  z-index: 5;
}

.map-path {
  fill: none;
  stroke: transparent;
  /* Invisible but hittable */
  stroke-width: 18px;
  /* Generous tap/click zone */
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: stroke;
  /* Only the stroke is clickable */
  cursor: pointer;
}

/* Highlighted state (optional visual debug) */
.map-path.highlighted {
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 18px;
}

/* Wider hit zone on touch screens */
@media (max-width: 600px) {
  .map-path {
    stroke-width: 24px;
  }

  .map-path.highlighted {
    stroke-width: 24px;
  }
}


/* =======================================================
   5. BUILDING DOTS
   Building dots use the --dot-inv-scale CSS custom property
   (set by JS) so they always appear the same visual size
   regardless of the current map zoom level.
   ======================================================= */

.building-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 2.5px solid rgba(0, 200, 255, 0.9);
  border-radius: 50%;
  /* --dot-inv-scale is 1/zoomLevel, updated by JS every frame */
  transform: translate(-50%, -50%) scale(var(--dot-inv-scale, 1));
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.45);
  /* Only animate colour / shadow changes; transform is driven by JS */
  transition: background-color 0.25s, box-shadow 0.25s, border-color 0.25s,
    opacity 0.2s;
  z-index: 10;
  will-change: transform;
}

/* Desktop hover: scale up 1.4× relative to current dot size */
.building-dot:hover {
  transform: translate(-50%, -50%) scale(calc(var(--dot-inv-scale, 1) * 1.4));
  background-color: rgba(0, 200, 255, 0.9);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.8);
}

/* ── Active / "You are here" – GLOWING RED ── */
.building-dot.active {
  background-color: rgba(255, 30, 30, 0.95);
  border-color: rgba(255, 100, 100, 0.9);
  /* Pulsing red glow, counter-scaled so it stays at fixed visual size */
  animation: redLocationPulse 1.6s ease-out infinite;
  z-index: 20;
  /* Always renders above other dots */
}

.building-dot.active:hover {
  transform: translate(-50%, -50%) scale(calc(var(--dot-inv-scale, 1) * 1.3));
  background-color: rgba(255, 60, 60, 0.95);
}

@keyframes redLocationPulse {
  0% {
    box-shadow: 0 0 0 0px rgba(255, 50, 50, 0.8);
  }

  55% {
    box-shadow: 0 0 0 16px rgba(255, 50, 50, 0);
  }

  100% {
    box-shadow: 0 0 0 0px rgba(255, 50, 50, 0);
  }
}

/* ── Permanent label — always visible below each dot ── */
.building-dot-label {
  position: absolute;
  /* Sit just below the dot circle */
  top: calc(100% + 5px);
  left: 50%;
  /* Counter-scale so visual size stays constant at every zoom level */
  transform: translateX(-50%) scale(var(--dot-inv-scale, 1));
  transform-origin: top center;
  background: rgba(8, 8, 8, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  letter-spacing: 0.2px;
  white-space: nowrap;
  padding: 2px 7px 3px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  /* clicks pass through to the dot */
  z-index: 30;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
  /* Always on — no :hover dependency */
  opacity: 1;
  visibility: visible;
}

/* Active / "you are here" dot: give the label a red tint to match the dot */
.building-dot.active .building-dot-label {
  background: rgba(60, 0, 0, 0.85);
  border-color: rgba(255, 80, 80, 0.35);
}


/* =======================================================
   6. ZOOM CONTROLS BAR
   ======================================================= */

#mapZoomControls {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 8, 8, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 14px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  /* Must sit above the map image but below the close button */
  z-index: 1000002;
  user-select: none;
  -webkit-user-select: none;
}

#mapZoomControls button {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, transform 0.15s;
  padding: 0;
  /* Separate from the general * selector which blocks user-select */
  user-select: none;
}

#mapZoomControls button:hover {
  background: rgba(0, 150, 255, 0.45);
  transform: scale(1.12);
}

#mapZoomControls button:active {
  transform: scale(0.9);
  background: rgba(0, 150, 255, 0.65);
}

#mapZoomLevel {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-family: monospace;
  min-width: 40px;
  text-align: center;
  letter-spacing: 0.5px;
}

/* Compact on landscape mobile (short screens) */
@media (max-width: 812px) and (orientation: landscape) {
  #mapZoomControls {
    bottom: 10px;
    padding: 6px 10px;
    gap: 6px;
  }

  #mapZoomControls button {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
}

/* Keep the landscape-hint above the zoom bar */
#mapLandscapeHint {
  bottom: 72px;
  /* clear the zoom controls */
}

/* =======================================================
   7. BHAWAN SLIDER (LEFT SIDE)
   ======================================================= */

#bhawanToggleBtn,
#floorToggleBtn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 62px;
  height: 62px;
  background: rgba(25, 25, 25, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 1.5px solid rgba(255, 165, 0, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(255, 165, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  cursor: pointer;
  z-index: 99999;
}

#bhawanToggleBtn:hover,
#floorToggleBtn:hover {
  transform: translateY(-5px) scale(1.07);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), 0 0 22px rgba(255, 165, 0, 0.55);
  background: rgba(40, 40, 40, 0.9);
}

#bhawanToggleBtn:active,
#floorToggleBtn:active {
  transform: scale(0.93);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

@media (max-width: 600px) {
  #bhawanToggleBtn,
  #floorToggleBtn {
    bottom: 24px;
    left: 18px;
    width: 60px;
    height: 60px;
    font-size: 26px;
  }
}

/* Specific positioning for Floor Button to be above Bhawan button */
#floorToggleBtn {
  bottom: 104px; /* 30 + 62 + 12 */
}
@media (max-width: 600px) {
  #floorToggleBtn {
    bottom: 96px; /* 24 + 60 + 12 */
  }
}

#bhawanSlider,
#floorSlider {
  position: fixed;
  top: 0;
  left: -280px; /* Hidden by default */
  width: 280px;
  max-width: 75vw;
  height: 100%;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  transition: left 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#bhawanSlider.open,
#floorSlider.open {
  left: 0;
}

.bhawan-slider-header,
.floor-slider-header {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bhawan-slider-header h2,
.floor-slider-header h2 {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  color: #fff;
}

#bhawanCloseBtn,
#floorCloseBtn {
  font-size: 20px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  padding: 5px;
  transition: color 0.2s;
}

#bhawanCloseBtn:hover,
#floorCloseBtn:hover {
  color: #fff;
}

#bhawanListItems,
#floorListItems {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Scrollbar styling for slider */
#bhawanListItems::-webkit-scrollbar,
#floorListItems::-webkit-scrollbar {
  width: 6px;
}
#bhawanListItems::-webkit-scrollbar-track,
#floorListItems::-webkit-scrollbar-track {
  background: transparent;
}
#bhawanListItems::-webkit-scrollbar-thumb,
#floorListItems::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}
#bhawanListItems::-webkit-scrollbar-thumb:hover,
#floorListItems::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

.bhawan-item,
.floor-item {
  display: flex;
  align-items: center;
  background: rgba(40, 40, 40, 0.6);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.bhawan-item:hover,
.floor-item:hover {
  transform: translateX(4px);
  background: rgba(60, 60, 60, 0.8);
  border-color: rgba(255, 165, 0, 0.5);
}

.bhawan-item.active,
.floor-item.active {
  border-color: #ffa500;
  background: rgba(80, 50, 0, 0.4);
}

.bhawan-item span,
.floor-item span {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #eee;
  width: 100%;
}

/* === TAKSHILA SUB-MENU CSS === */
.bhawan-item-wrapper {
  display: flex;
  flex-direction: column;
}

.bhawan-expand-btn {
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  transition: transform 0.3s ease, color 0.2s ease;
  flex-shrink: 0;
}

.bhawan-expand-btn:hover {
  color: white;
}

.bhawan-expand-btn.expanded {
  transform: rotate(180deg);
  color: #ffa500;
}

.bhawan-sub-list {
  display: none;
  flex-direction: column;
  background: rgba(20, 20, 20, 0.4);
  margin-top: 4px;
  border-radius: 8px;
  padding: 6px 0;
  border-left: 2px solid rgba(255, 165, 0, 0.4);
  animation: fadeIn 0.2s ease;
}

.bhawan-sub-item {
  padding: 10px 16px 10px 24px;
  font-size: 13.5px;
  color: #ccc;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

.bhawan-sub-item:hover {
  background: rgba(255, 165, 0, 0.15);
  color: #fff;
  padding-left: 28px;
}



/* =======================================================
   8. TOP RIGHT ACTION BUTTONS
   ======================================================= */
#topRightActions {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 12px;
  z-index: 9999;
}

.action-btn {
  width: 44px;
  height: 44px;
  background: rgba(25, 25, 25, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  text-decoration: none;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.action-btn:hover {
  transform: translateY(-3px) scale(1.05);
  background: rgba(40, 40, 40, 0.85);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 10px rgba(0, 160, 255, 0.4);
  border-color: rgba(0, 160, 255, 0.6);
}

.action-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
  #topRightActions {
    top: 15px;
    right: 15px;
    gap: 10px;
  }
  .action-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* =======================================================
   9. IFRAME MODAL (LOCATION MAP)
   ======================================================= */
#iframeModal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none; /* hidden by default, JS toggles to 'flex' */
  align-items: center;
  justify-content: center;
  z-index: 1000000;
  animation: fadeIn 0.25s ease forwards;
}

.iframe-modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  height: 80%;
  max-height: 700px;
  background: #111;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
}

#iframeCloseBtn {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 38px;
  height: 38px;
  background: #dc3545;
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  border: 2px solid #fff;
  z-index: 10;
  transition: transform 0.2s, background 0.2s;
}

#iframeCloseBtn:hover {
  transform: scale(1.1);
  background: #c82333;
}

.iframe-container {
  flex: 1;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 600px) {
  .iframe-modal-content {
    width: 95%;
    height: 85%;
  }
  #iframeCloseBtn {
    top: -10px;
    right: -10px;
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
}

/* =======================================================
   10. TOP LEFT SEARCH BAR
   ======================================================= */
#unifiedSearchContainer {
  position: absolute;
  top: 130px;
  left: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
}

#searchBarWrapper {
  display: flex;
  align-items: center;
  background: rgba(25, 25, 25, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 25px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: width 0.3s ease, border-color 0.3s ease;
  width: 46px; /* Shrink to just button size */
  height: 46px;
}

#searchBarWrapper.active {
  width: 280px;
  border-color: rgba(255, 165, 0, 0.5);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 10px rgba(255, 165, 0, 0.3);
}

#searchToggleBtn {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  cursor: pointer;
  background: transparent;
  transition: transform 0.2s, color 0.2s;
}

#searchToggleBtn:hover {
  transform: scale(1.1);
  color: #ffa500;
}

#searchInput {
  flex: 1;
  height: 46px;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 15px;
  padding: 0 15px 0 5px;
  font-family: inherit;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

#searchBarWrapper.active #searchInput {
  opacity: 1;
  pointer-events: auto;
}

#searchInput::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#searchResults {
  margin-top: 10px;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  max-height: 400px;
  overflow-y: auto;
  flex-direction: column;
  width: 280px; /* match expanded search bar width */
}

#searchResults::-webkit-scrollbar {
  width: 6px;
}
#searchResults::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.search-result-item {
  padding: 12px 16px;
  color: #eee;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s, padding-left 0.2s, border-color 0.2s;
  border-left: 3px solid transparent;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(255, 165, 0, 0.15);
  padding-left: 20px;
  color: #fff;
  border-left: 3px solid #ffa500;
}

.search-result-error {
  padding: 12px 16px;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 600px) {
  #unifiedSearchContainer {
    top: 15px;
    left: 15px;
  }
  #searchBarWrapper {
    height: 42px;
    width: 42px;
  }
  #searchToggleBtn {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
  #searchInput {
    height: 42px;
    font-size: 14px;
  }
  #searchBarWrapper.active,
  #searchResults {
    width: 240px;
  }
}

/* =======================================================
   11. UNIVERSITY LOGO & LOADING OVERLAY
   ======================================================= */
#loadingOverlay {
  position: fixed;
  inset: 0;
  background: #111; /* Dark background to match aesthetic */
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 1s;
}

.loader-logo {
  width: 250px;
  max-width: 80vw;
  animation: pulseLogo 2s infinite ease-in-out;
}

.loading-spinner {
  margin-top: 40px;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #ffa500;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes pulseLogo {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#uniLogoTopLeft {
  position: absolute;
  top: 20px;
  left: 20px;
  height: 95px; /* Adjust as needed */
  z-index: 9999;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

/* ── Mobile phones (≤600px portrait) ─────────────────────────── */
@media (max-width: 600px) {
  #uniLogoTopLeft {
    top: 15px;
    left: 15px;
    height: 70px;
  }
  #unifiedSearchContainer {
    top: 100px;
    left: 15px;
  }
}

/* ── Tablets portrait (601px–900px) ──────────────────────────── */
@media (min-width: 601px) and (max-width: 900px) {
  #uniLogoTopLeft {
    height: 80px;
    top: 18px;
    left: 18px;
  }
  #unifiedSearchContainer {
    top: 115px;
    left: 18px;
  }
  #topRightActions {
    top: 18px;
    right: 18px;
    gap: 10px;
  }
  .action-btn {
    width: 42px;
    height: 42px;
    font-size: 19px;
  }
}

/* ── Landscape phones (short height ≤ 450px) ─────────────────── */
@media (max-height: 450px) {
  #uniLogoTopLeft {
    height: 40px;
    top: 10px;
    left: 10px;
  }
  #unifiedSearchContainer {
    top: 60px;
    left: 10px;
  }
  #topRightActions {
    top: 10px;
    right: 10px;
    gap: 8px;
  }
  .action-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  #bhawanToggleBtn,
  #floorToggleBtn,
  #mapToggleBtn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* =======================================================
   CLEAN UI — hide all on-screen tour overlays.
   Only the floating map button (#mapToggleBtn) remains
   visible. All elements are hidden via CSS only so the
   underlying JS wiring continues to function correctly.
   ======================================================= */

/* Scene name bar at the top */
#titleBar {
  display: none !important;
}

/* Scene list panel + its hamburger toggle */
#sceneList {
  display: none !important;
}

#sceneListToggle {
  display: none !important;
}

/* Developer coordinate / cursor readouts */
#coordinatesDisplay {
  display: none !important;
}

#cursorCoordinatesDisplay {
  display: none !important;
}

/* Autorotate play/pause & fullscreen buttons */
#autorotateToggle {
  display: none !important;
}

#fullscreenToggle {
  display: none !important;
}

/* D-pad view-control buttons (up / down / left / right / zoom in / zoom out) */
.viewControlButton {
  display: none !important;
}