/* Basic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  margin:0; 
  padding:0;
  font-family:Roboto,Arial, Helvetica, sans-serif;
}

.ui-left {
  position: fixed;
  top: 16px;
  left: calc(env(safe-area-inset-left, 0px) + var(--vv-left, 0px));
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  border-bottom-right-radius: 15px;
  border-top-right-radius: 15px;
  cursor: pointer;
}

@supports not (left: env(safe-area-inset-left)) {
  .ui-left { left: 16px; }
}

/* CURSOR WROTE: iOS Safari landscape mode fix - ensure buttons stick to left edge 
@media screen and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 2) {
  .ui-left {
    left: calc(env(safe-area-inset-left, 0px)) !important;
    transform: none !important;
  }
}
  */

/* CURSOR WROTE: Additional iOS Safari specific fix for landscape positioning *
@supports (-webkit-touch-callout: none) {
  @media screen and (orientation: landscape) {
    .ui-left {
      left: calc(env(safe-area-inset-left, 0px)) !important;
      position: fixed !important;
      transform: none !important;
    }
  }
}
*/

#pano {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Map container */
.map {
  position: fixed;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, width, left, top;
  transform-origin: center;
  pointer-events: auto;
  z-index: 10000;
}

/* Map states */
.map.collapsed {

  transform: none;
}

.map.expanded {
  width: 90vw;
  max-width: 1200px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

/* Map spots */
.mapspot {
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
}

.mapspot:hover {
  transform: scale(1.1);
}

.active-spot {
  filter: drop-shadow(0 0 8px rgba(255, 64, 64, 0.8));
}


/* Thumbs container CSS-based mechanism */
.thumbs-strip {
  position: fixed;
  left: 0;
  top: 0;
  width: 100px;
  height: 100vh;
  background: transparent;
  z-index: 1000;
  cursor: pointer;
}

.thumbs-container {
  position: fixed;
  left: 0px;
  top: 0;
  width: 200px;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  border-right: 0Px solid rgba(255, 255, 255, 0.2);
  /*
  transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  */
  z-index: 999;
  overflow-y: auto;
}

.thumbs-container-btns {
  vertical-align: top;
  float: left;  
  background: rgba(0, 0, 0, 0.85);
  border-bottom-right-radius: 15px;
  border-top-right-radius: 15px;
  cursor: pointer;
  z-index: 1000;
  
  /*
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --toggle-width: 38px;
  background: #2b2b2b;
  width: var(--toggle-width);
  height: 42px;
  position: absolute;
  right: calc(-1 * var(--toggle-width));
  top: 100px;
  border-bottom-right-radius: 50px;
  border-top-right-radius: 50px;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  */
}

.thumbs-container-txt {
  font-family: Roboto, Arial;
  color: rgb(170, 170, 170);
  font-size: 12px;
  font-weight: lighter;
  text-align: center;
  line-height: 30px;
}

/*
.thumbs-container.visible {
  left: 0;
}

.thumbs-strip:hover + .thumbs-container,
.thumbs-container:hover {
  left: 0;
}
*/


/* Desktop behavior */
/*
@media (min-width: 769px) {
  .thumbs-container {
    transition: left 0.3s ease-out;
  }
  
  .thumbs-strip:hover + .thumbs-container,
  .thumbs-container:hover {
    left: 0;
  }
}
*/


/* Map adjustments */
@media (max-width: 768px) {
  .map.collapsed {
    left: 10px;
    bottom: 10px;
    width: max(240px, 40vw);
  }

  .map.expanded {
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
  }
  
}