* {
  -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: "Poppins", sans-serif;
  font-size: 16px;
  background-color: #f5f5f5;
  color: #fff;
  display: flex;
  flex-direction: column;
}

.icon {
  font-size: 36px;
}

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

/* Tree Styling */
.tj_description {
  text-overflow: ellipsis;
  overflow: hidden;
  text-wrap: nowrap;
  padding: 10px 5px;
}

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

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

#sceneListToggle {
  border-radius: 10px 0 0 0;
}

#tabsContainer {
  display: flex;
  height: 40px;
}

#tab1,
#tab2 {
  width: 50%;
  align-items: center;
  justify-content: center;
  display: flex;
}

#tab1:hover,
#tab2:hover {
  cursor: pointer;
}

#assetActionsPanel,
#tourActionsPanel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-bottom: 1px solid #dee2e6;
  height: 40px;
}

#toggleToursTreeIcon,
#toggleAssetsTreeIcon {
  position: absolute;
  right: 10px;
  top: 50px;
  color: black;
  z-index: 1000000000;
}

#thumbnailBtn {
  position: absolute;
  right: 40px;
  top: 50px;
  color: black;
  z-index: 1000000000;
}

#thumbnailTreeBtn {
  position: absolute;
  right: 40px;
  top: 50px;
  color: black;
  z-index: 1000000000;
}

#sideMenupalette {
  position: absolute;
  width: 40px;
  height: 100vh;
  border-left: 1px solid #dee2e6;
  color: black;
  background-color: white;
  right: 0;
  z-index: 1;
  top: 90px;
  display: block;
}

.paletteOption {
  height: 150px;
  display: flex;
  transform: rotate(360deg);
  writing-mode: vertical-lr;
  text-orientation: sideways;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #dee2e6;
}

.paletteOption:hover {
  cursor: pointer;
}

input[type="checkbox"] {
  accent-color: var(--bs-primary);
}
#saveBtn {
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  background-color: var(--bs-primary-bg-subtle);
}

#saveBtn:hover {
  border-radius: 0;
}

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

#signOutBtn {
  background-color: white;
  color: var(--bs-primary);
  width: 100px;
}

.dropdown-menu {
  list-style-type: none;
  background-color: #ffffff;
  background-clip: padding-box;
  border-radius: 6px;
  outline: none;
  box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08),
    0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
}

.dropdown,
.text-end {
  position: absolute;
  right: 10px;
}

/* 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;
}

#uploadBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  right: 80px;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: rgb(103, 115, 131);
  background-color: rgba(103, 115, 131, 0.8);
}

.panoFileTypeBadge {
  padding: 3px 5px;
  border-radius: 5px;
  color: #26a41f;
  background-color: #8cdc8c;
}

.geoFileTypeBadge {
  padding: 3px 5px;
  border-radius: 5px;
  color: #0546a8;
  background-color: #7abeffb8;
}

.duplicateFileTypeBadge {
  padding: 3px 5px;
  border-radius: 5px;
  color: white;
  background-color: red;
}

.stillFileTypeBadge {
  padding: 3px 5px;
  border-radius: 5px;
  color: #875229;
  background-color: #edc2a8;
}

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

#infoBtn {
  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 #infoBtn {
  width: 50px;
  height: 50px;
}

body.fullscreen-enabled #uploadBtn {
  right: 40px;
}

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

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

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

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

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

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

.mobile #infoBtn .icon {
  top: 10px;
}

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

.videoName {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 200px;
}

.video-hotspot-icon {
  border-radius: 50%;
  border: 2px solid #707783;
  width: 40px;
  height: 40px;
}

.hotspot.link-hotspot:hover,
.video-hotspot-icon:hover {
  cursor: pointer;
}

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

.material-symbols-outlined:hover {
  cursor: pointer;
  border-radius: 50%;
  color: black;
}

.material-symbols-outlined {
  color: #626262;
}

.fullscreen-icon {
  font-size: 26px;
}

#autorotateToggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 5px;
}

.rotationSpeedControlContainer {
  display: none;
  padding: 5px;
  background: #bbb6b6;
  border-radius: 5px;
  color: white;
}

.rotationSpeedControlContainer:hover {
  cursor: pointer;
}

#linkIcon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px;
}

.rotate-icon {
  width: 50%;
  height: 50%;
  margin: 5%;
  background: #333333;
  border-radius: 50%;
  align-items: center;
  display: flex;
  justify-content: center;
  color: white;
  position: absolute;
  left: 8px;
  bottom: 45px;
}

.rotate-icon:hover {
  color: white;
}

.visibility-icon {
  width: 25px;
  height: 25px;
  margin: 5%;
  background: #333333;
  border-radius: 50%;
  align-items: center;
  display: flex;
  justify-content: center;
  color: white;

  position: absolute;
  top: -8px;
  left: -29px;
}

.visibility-icon:hover {
  color: white;
}

#infoIcon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px;
}

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

#pano-controls-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 23px;
  position: absolute;
  left: 50%;
  right: 50%;
  width: fit-content;
}

#pano-controls-bottom {
  display: flex;
  gap: 20px;
}

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

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

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

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

#autorotateToggle .icon.off {
  display: flex;
  align-items: center;
  justify-content: center;
}

#autorotateToggle.enabled .icon.on {
  display: flex;
  align-items: center;
  justify-content: center;
}

#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;
}

.imageContainer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #dee2e6;
  padding: 5px;
  border-radius: 5px;
  gap: 10px;
}

/* .remove-image-icon {
  position: absolute;
  right: 30px;
} */

#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;
}

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

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

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

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

#sceneList {
  position: relative;
  /* top: 90px; */
  padding-top: 0;
  width: 330px;
  min-width: 20%;
  overflow-y: auto;
  transition: width 0.1s;
}

.imageContainer-imageName {
  width: 240px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* The switch - the box around the slider */
.switch {
  position: absolute;
  display: inline-block;
  width: 60px;
  height: 34px;
  bottom: 10px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #2196f3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

li {
  list-style-type: none;
}

.scene-item {
  display: flex;
  width: auto;
  text-wrap: nowrap;
  padding: 10px;
  background-color: #4c5461;
  height: 50px;
  align-items: center;
  flex-grow: 1;
}

.scene-item:hover {
  cursor: pointer;
}

li.selected {
  background-color: #4c5461;
}

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

.scene-item-container {
  background-color: #4c5461;
  color: white;
}

#sideMenu {
  height: 100%;
}

#container {
  height: 100%;
  overflow-y: auto;
}

#dragHandle {
  position: absolute;
  right: 0;
  background: #dee2e6;
  width: 2px;
  top: 0;
  cursor: ew-resize;
  height: 100%;
}

.scene-delete-icon {
  margin: 10px;
  align-items: center;
  display: flex;
}

.scene-delete-icon:hover {
  cursor: pointer;
}

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

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

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

.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: 50px;
  height: 50px;
  opacity: 0.9;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.video-hotspot {
  width: 50px;
  height: 50px;
  opacity: 0.9;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.link-scenes-list {
  align-items: center;
  width: fit-content;
  position: absolute;
  top: 0px;
  left: 65px;
  display: flex;
  flex-direction: row;
  background: #677383;
  border-radius: 5px;
  gap: 2px;
  padding: 10px;
}

.link-item {
  text-wrap: nowrap;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 5px;
  border-radius: 5px;
}

.link-item:hover {
  cursor: pointer;
  background-color: #4c5461;
  border-radius: 5px;
}

.edit-icon {
  color: white;
}

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

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

.link-hotspot-icon {
  width: 100%;
  height: 100%;
  cursor: pointer;
  color: white;
  transform: rotate(0rad);
  border-radius: 50%;
}

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

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

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

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

/* Info hotspot */

.info-hotspot,
.iframe-hotspot,
.redirect-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,
.iframe-hotspot .info-hotspot-header,
.redirect-hotspot .info-hotspot-header {
  display: flex;
  align-items: center;
  width: 35px;
  height: 35px;
  border-radius: 20px;
  background-color: rgb(103, 115, 131);
  cursor: pointer;
}

.hotspot-title,
.hotspot-text {
  flex-grow: 1;
  line-height: 1.3em;
  height: auto;
  width: calc(100% - 24px);
  font-size: 16px;
  overflow: hidden;
}

.hotspot-control-container {
  display: flex;
  align-items: center;
}

#hotspot-btns-container {
  flex-direction: row;
  gap: 5px;
  margin-bottom: 10px;
}

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

.info-hotspot-tooltip {
  position: absolute;
  top: 0;
  left: 60px;
  width: 250px;
}

.titleWrapper {
  background-color: rgba(103, 115, 131, 0.8);
  width: 100%;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  border-radius: 5px 5px 0 0;
  gap: 5px;
}

.textWrapper {
  background-color: rgba(58, 68, 84, 0.8);
  width: 100%;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  border-radius: 0 0 5px 5px;
  gap: 5px;
}

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

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

.info-hotspot .info-hotspot-close-icon {
  width: 40px;
  height: 40px;
  top: 18px;
  left: -34px;
  position: absolute;
}

.iframe-hotspot .info-hotspot-close-icon {
  width: 40px;
  height: 40px;
  top: 18px;
  left: -34px;
  position: absolute;
}

.redirect-hotspot .info-hotspot-close-icon {
  width: 40px;
  height: 40px;
  top: 18px;
  left: -34px;
  position: absolute;
}

.iframe-hotspot .iframe-hotspot-preview-icon {
  width: 70%;
  height: 70%;
  margin: 15%;
  top: 35px;
  left: 0px;
  position: absolute;
}

#iframe-close-icon {
  color: black;
}

.preview-icon {
  width: 90%;
  height: 90%;
  margin: 5%;
  background: #333333;
  border-radius: 50%;
  align-items: center;
  display: flex;
  justify-content: center;
  color: white;
}

.preview-icon:hover {
  color: white;
}

.link-hotspot .info-hotspot-close-icon {
  width: 40px;
  height: 40px;
  top: 18px;
  left: -34px;
  position: absolute;
}

.video-hotspot .info-hotspot-close-icon {
  width: 40px;
  height: 40px;
  top: 18px;
  left: -34px;
  position: absolute;
}

.info-hotspot-close-icon:hover,
.iframe-hotspot-preview-icon:hover {
  cursor: pointer;
}

.info-hotspot .info-close-icon,
.iframe-hotspot .info-close-icon,
.redirect-hotspot .info-close-icon {
  width: 90%;
  height: 90%;
  margin: 5%;
  background: #333333;
  border-radius: 50%;
  align-items: center;
  display: flex;
  justify-content: center;
}

.link-hotspot .info-hotspot-close-icon {
  width: 40px;
  height: 40px;
  top: 18px;
  left: -34px;
  position: absolute;
}

.video-hotspot .info-hotspot-close-icon {
  width: 40px;
  height: 40px;
  top: 18px;
  left: -34px;
  position: absolute;
}

.link-hotspot .info-close-icon {
  width: 90%;
  height: 90%;
  margin: 5%;
  background: #333333;
  border-radius: 50%;
  align-items: center;
  display: flex;
  justify-content: center;
}

.video-hotspot .info-close-icon {
  width: 90%;
  height: 90%;
  margin: 5%;
  background: #333333;
  border-radius: 50%;
  align-items: center;
  display: flex;
  justify-content: center;
}

.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;
}

.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;
}

.info-hotspot .info-hotspot-edit-wrapper {
  position: absolute;
  left: 220px;
  top: 0;
  height: 40px;
  width: 40px;
  border-top-right-radius: 5px;
  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;
}

.desktop .info-hotspot.visible .info-hotspot-edit-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%;
}

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

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

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

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

.info-hotspot .info-hotspot-edit-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, 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%;
}

.iframe-hotspot-icon-wrapper {
  width: 35px;
  height: 35px;
}

.redirect-hotspot-icon-wrapper {
  width: 35px;
  height: 35px;
}

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

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

.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-edit-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-edit-icon {
  width: 70%;
  height: 70%;
  margin: 15%;
}

.info-hotspot-modal .info-hotspot-text {
  height: fit-content;
  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;
}

#iconTab,
#styleTab {
  padding: 5px;
}

.spinner-border {
  color: #b9b7b7;
  height: 24px;
  width: 24px;
}

.hover-video {
  display: none;
  left: 8px;
  position: absolute;
  top: 43px;
  width: 300px;
  height: max-content;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#canvas-container {
  position: relative;
  cursor: crosshair; /* Set the cursor style for drawing inside the canvas */
  width: 200px;
  height: 200px;
}

.drawCanvas {
  border: 1px solid #000;
}

#iframe-container,
#preview-container {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90vh;
  background-color: #aaaaaa;
  z-index: 1000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  border-radius: 5px;
}

#iframe-element,
#preview-element {
  display: none;
  position: relative;
  top: 30px;
  width: 100%;
  height: calc(100% - 47px);
  background-color: #ebebeb;
  border-radius: 0 0 5px 5px;
}

.iframe-container-close-icon,
.preview-container-close-icon {
  position: absolute;
  position: absolute;
  right: 5px;
  top: 5px;
}

#iframe-title,
#preview-title {
  position: relative;
  top: 10px;
  left: 10px;
  color: black;
}

#loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: #333;
}

/* Map Styles */

#mapCanvas {
  display: none;
  width: 250px;
  height: 400px;
}

.mapContainer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 10px;
  color: black;
}

.map-canvas-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 20px;
}

#marker-container {
  flex-grow: 1;
}

.added-link,
.added-markers {
  margin: 10px 0;
  background: #f1f3f5;
  border: 1px solid #d2d6da;
  padding: 10px;
  border-radius: 5px;
  color: black;
}

.mapUploadModal {
  max-width: 800px;
}

#viewImages {
  margin: 5px;
}

.marker {
  cursor: pointer;
  user-drag: none;
  -webkit-user-drag: element;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

#marker-container {
  margin: 20px;
  color: black;
}

#homeImageSelector {
  margin-top: 10px;
}

#availableLinksContainer {
  margin-top: 10px;
}

#empty-links,
#empty-markers {
  align-items: center;
  justify-content: center;
  color: #a79d9d;
  margin-top: 20px;
}

/* Dropdown Hotspots Styles */

#hotspotDropdownContainer {
  position: relative;
  display: inline-block;
}

/* Style for the dropdown content (hidden by default) */
.dropdown-content,
.dropdown-content-filter {
  top: 35px;
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  z-index: 100000;
  width: 250px;
}
.eyeIcon {
  position: absolute;
  right: 10px;
}

/* Style for dropdown items */
.dropdown-item {
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: #333;
}

/* Change color on hover */
.dropdown-item:hover {
  background-color: #ddd;
}

/* Site Menu Styles */
#sideMenuContainer {
  z-index: 1000000000;
  position: absolute;
  width: 350px;
  height: 100%;
  right: 0;
  background: white;
  border-left: 1px solid #dee2e6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.2s ease-out;
}

#properties-menu,
#site-menu {
  z-index: 1000000000;
  position: absolute;
  width: 350px;
  top: 90px;
  height: calc(100% - 90px);
  right: -350px;
  background: white;
  border-left: 1px solid #dee2e6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.2s ease-out;
}
#map-menu {
  z-index: 1000000000;
  position: absolute;
  width: 700px;
  top: 90px;
  height: calc(100% - 90px);
  right: -700px;
  background: white;
  border-left: 1px solid #dee2e6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.2s ease-out;
}

#site-menu-header,
#map-menu-header {
  padding: 5px;
  height: 50px;
  color: black;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dee2e6;
}

#site-menu-body,
#map-menu-body {
  flex-grow: 1;
}

#map-menu-body {
  flex-grow: 1;
}

#color-picker-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.color-pickers {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  align-items: flex-start;
}

#pickerContainer {
  display: flex;
  gap: 10px;
}

#upload-logo-container {
  height: 200px;
  border: 1px solid #dee2e6;
  cursor: pointer;
  margin: 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #dee2e6;
}

#recenterBtn {
  position: absolute;
  z-index: 1000000;
  right: 10px;
  margin-top: 10px;
  border-radius: 2px;
  color: black;
  width: 30px;
  height: 30px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 5px;
}

#upload-map-container {
  height: 400px !important;
  width: 250px !important;
  border: 1px solid #dee2e6;
  cursor: pointer;
  margin: 20px;
  border-radius: 10px;
  display: flex;
  color: black;
  align-items: center;
  justify-content: center;
}

#all-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.site-menu-links {
  gap: 10px;
  display: flex;
  color: black;
  align-items: center;
}

.link-title {
  width: 100px;
}

.link-description {
  flex-grow: 1;
}

#site-menu-footer,
#map-menu-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 5px;
  border-top: 1px solid #dee2e6;
  height: 50px;
}

/* leaflet map */
#leafletMap {
  width: 400px;
  height: 400px;
}

#deleteText {
  line-height: 22px;
}

#textBold {
  font-weight: 600 !important;
}

#homeImageIcon {
  display: none;
  cursor: auto;
}

.helpDescriptionContainer {
  margin-left: 10px;
}

.helpDescriptionContainer > li {
  list-style-type: disc;
  line-height: normal;
  margin: 5px;
}

.exportOptionsContainer {
  gap: 10px;
  display: flex;
  flex-direction: column;
}

#filter-hotspots-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  z-index: 10000;
  gap: 10px;
  background: white;
  width: 250px;
  padding: 10px;
  position: absolute;
  right: 0;
  top: 100px;
  border-radius: 10px;
  color: black;
  right: 10px;
}

.showFilterContainer {
  right: 10px !important;
}

.hideFilterContainer {
  right: -250px !important;
}

#hideFilterContainerIcon {
  display: none;
}

#showFilterContainerIcon {
  display: flex;
}

#showFilterContainerIcon,
#hideFilterContainerIcon {
  width: 20px;
  height: 60px;
  align-items: center;
  position: absolute;
  bottom: 45px;
  right: 250px;
  background: white;
  z-index: 1000;
  color: #626262;
  border-radius: 5px 0 0 5px;
}

#showFilterContainerIcon:hover,
#hideFilterContainerIcon:hover {
  background-color: #626262;
  color: white;
}

#checkboxContainer,
#siteCheckboxContainer,
#mapCheckboxContainer {
  gap: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.initial-view-hint {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.initial-view-hint > .icon {
  position: relative;
  width: 150px;
  height: 100px;
}

.initial-view-hint > .text {
  color: #f6f6f6;
  text-shadow: 0 0 5px #000;
  font-weight: 600;
}

.initial-view-hint > .icon > .outer,
.inner {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -75px;
  margin-top: -50px;
  width: 100%;
  height: 100%;
  fill: #f6f6f6;
}

.commentContainer {
  padding: 5px;
  background-color: rgb(211, 56, 82);
  display: flex;
  flex-direction: column;
}

.triangle {
  width: 0;
  height: 0;
  border-right: 30px solid rgb(211, 56, 82);
  border-bottom: 20px solid transparent;
  position: absolute;
  right: 176px;
  top: 0;
}
.commentHeader {
  display: flex;
  justify-content: space-between;
}

.commentInput {
  resize: none;
  overflow: hidden;
}

.userInput {
  width: 165px;
}

.commentFooter {
  display: flex;
  justify-content: flex-end;
}

.iconsImg:hover {
  cursor: pointer;
}

.iconSelected {
  background-color: #cac6c6;
  border-radius: 5px;
}

.selected-items-list {
  max-height: 150px;
  overflow-y: auto;
  margin-bottom: 5px;
  margin-top: 10px;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #dee2e6;
}

.selected-item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
  padding: 4px 8px;
  background-color: #e9ecef;
  border-radius: 3px;
  cursor: default;
}

.selected-item:hover {
  white-space: normal;
  word-break: break-all;
}

.comma-list {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  padding: 8px;
}

.pagination-md {
  --bs-pagination-padding-x: 1rem;
  --bs-pagination-padding-y: 0.8rem;
  --bs-pagination-font-size: 1rem;
  --bs-pagination-border-radius: var(--bs-border-radius-sm);
}

#imageTypeNav .page-item.active .page-link {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: white;
}

#imageTypeNav .page-item:not(.active) .page-link:hover {
  color: var(--bs-primary);
  background-color: rgba(13, 110, 253, 0.1);
}

#imageTypeNav .page-item .page-link {
  color: black;
}

/* Keep active item styling intact */
#imageTypeNav .page-item.active .page-link {
  color: white;
}

#imageTypeNav > li {
  width: 100%;
}

.uploadImageMenu {
  width: 91%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.image-info-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.uploadGeoTourImageMenu {
  width: 91%;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* Add to your map.css file */
.leaflet-container {
  cursor: grab;
  height: 100% !important;
  width: 100% !important;
}

.leaflet-dragging .leaflet-container {
  cursor: grabbing;
}

/* Ensure map gets proper focus */
#mapViewer:focus-within {
  outline: none;
}

/* Fix z-index stacking for controls */
.leaflet-top,
.leaflet-bottom {
  z-index: 1000;
}

.leaflet-marker-container {
  width: 5rem;
  height: 5rem;
  border-radius: 100%;
  background-color: #fff;
  color: #000;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 2px solid var(--bs-primary);
  /* position: relative; */
}

.marker-content {
  /* position: relative; */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.marker-pin {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 15px solid var(--bs-primary);
  position: relative;
  top: -2px;
  z-index: 0;
}

#geo-controls-top {
  display: none;
}

#toursTreeContainer,
#assetsTreeContainer {
  height: 1vh;
}

.marker-option {
  cursor: pointer;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.marker-option:hover {
  background-color: rgba(13, 110, 253, 0.1);
}

.marker-option.selected {
  background-color: rgba(13, 110, 253, 0.2);
  border: 1px solid var(--bs-primary);
}

.marker-icon-container {
  transition: transform 0.2s ease;
}

.marker-option:hover .marker-icon-container {
  transform: scale(1.05);
}

.marker-option.selected .marker-icon-container {
  transform: scale(1.1);
}

.geoImageTable {
  border: 1px solid #dee2e6;
}

.geoImageTable thead {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
}

.geoImageTable-header {
  height: 60px; /* Increased header height */
  color: black;
}

.geoImageTable th {
  border: 1px solid #dee2e6;
  vertical-align: middle;
  font-weight: 500;
  color: #495057;
}

.geoImageTable td {
  vertical-align: middle;
}

.geoImageTable tbody tr:hover {
  background-color: #f8f9fa;
}
