* {
  -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;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.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 {
  display: inline-block;
  width: auto;
  max-width: 80vw;
  height: auto;
  line-height: 1.3;
  padding: 5px 16px;
  border-radius: 6px;
  background-color: #C28156;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: all;

  -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: rgb(133 115 79 / 71%);
}

.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: rgb(133 115 79 / 71%);
}

#musicToggle {
  display: block;
  position: absolute;
  top: 40px;
  right: 0;
  width: 40px;
  height: 40px;
  padding: 8px;
  background-color: rgb(133 115 79 / 71%);
  cursor: pointer;
}

.mobile #musicToggle {
  top: 50px;
  width: 50px;
  height: 50px;
  padding: 11px;
}

body.fullscreen-enabled #musicToggle {
  top: 40px;
}

body.fullscreen-enabled.mobile #musicToggle {
  top: 50px;
}

#musicToggle .icon {
  width: 100%;
  height: 100%;
  display: none;
}

#musicToggle .icon.on  { display: none; }
#musicToggle .icon.off { display: block; }
#musicToggle.enabled .icon.on  { display: block; }
#musicToggle.enabled .icon.off { display: none; }

.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: rgb(133 115 79 / 71%);
}

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

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

#sceneList .scenes {
  width: 100%;
  background-color: rgb(58,68,84);
  background-color: rgb(116 99 69 / 36%);
}

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

.mobile #sceneList.enabled {
  margin-left: 100%;
  padding-bottom: 45px;
}

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

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

#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: rgb(122 93 41);
}

#sceneList .scene.current {
  background-color: rgb(103,115,131);
  background-color: rgb(122 93 41);
}

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

/* Link hotspot */

.link-hotspot {
  width: 45px;
  height: 45px;
  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: 30px;
  height: 30px;
  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: 25px;
  height: 25px;
  border-radius: 25px;
}

.desktop.no-touch .info-hotspot .info-hotspot-header:hover {
  width: 330px; /* do rong mau nen info tooltip*/
  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: 330px;
  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: 30px;
  height: 30px;
}

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

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

.info-hotspot .info-hotspot-title-wrapper {
  position: absolute;
  left: 25px;
  top: 0;
  width: 0;
  height: 25px;
  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: 300px;
  padding: 0 5px;
  z-index: 9999;
  -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: 280px;
  top: 0;
  height: 30px;
  width: 30px;
  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;
}


/* css custom */
#logo-link {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

#logo {
  height: 80px; /* Điều chỉnh kích thước logo */
}
/* dieu chinh nhom menu*/


/**/
#sceneList {
  max-width: 100%;
  background: #937b55b5;
  padding: 8px;
  border-radius: 0px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.scenes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.scenes .group-title {
  font-weight: bold;
  padding: 10px;
  background: #a00519ff;
  border-top: 1px solid #ccc;
}

.scenes li {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.scenes li a {
  text-decoration: none;
  color: #333;
  display: block;
}

.scenes li a:hover {
  background: #f0f0f0;
}

/* Css phoi canh tham khao*/
.reference-text {
  position: fixed;
  bottom: 70px;
  right: 15px;
  font-style: italic;
  font-size: 13px;
  color: #666;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.6);
  padding: 4px 8px;
  border-radius: 6px;
  pointer-events: none;
  max-width: 100%;
  text-align: right;
  line-height: 1.4;
  white-space: nowrap;
}

/* hotline*/

/* Định dạng hotline container */
.hotline-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #8d641bbd;
  color: white;
  padding: 10px 10px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  border-radius: 30px;
  position: fixed;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
}

/* Định dạng icon điện thoại */
.hotline-icon img {
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: none;
}

/* Hiển thị số hotline đầy đủ trên desktop */
.hotline-text a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* Popup hotline trên mobile */
.hotline-popup {
  display: none;
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 10px;
  z-index: 1000;
  width: max-content; /* Tự động điều chỉnh chiều rộng */
  white-space: nowrap; /* Không cho xuống dòng */
}

/* Nội dung popup */
.popup-content {
  text-align: left;
}

.popup-content p {
  margin: 10px 0;
}

.popup-content a {
  color: #ff6600;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  display: inline-block; /* Giữ số điện thoại trên cùng một dòng */
  padding: 5px 10px;
}

/* Nút đóng popup */
.close {
  font-size: 34px;
  font-weight: bold;
  cursor: pointer;
  color: #ff6600;
}


@media (max-width: 768px) {
  #logo {
    height: 80px; /* Giảm kích thước logo trên mobile */
    padding-top: 20px;
  }
  .link-hotspot-icon {
    width: 50%;
    height: 50%;
    cursor: pointer;
  }
  #sceneList {
    display: flex;
    flex-direction: column;
  }

  .scenes {
    display: block;
  }

  .scenes li {
    font-size: 16px;
    padding: 12px;
  }
  /* Ẩn hotline trên mobile, chỉ hiện icon */
  .hotline-text {
    display: none;
  }

 .hotline-icon img {
    display: block;
  }
 /* End Ẩn hotline trên mobile, chỉ hiện icon */

  .reference-text {
    font-size: 12px;
    text-align: center;
    bottom: 8px;
    padding: 3px 6px;
    background: rgba(255, 255, 255, 0.8);
    left: 50%;
    transform: translateX(-50%);
    right: auto; /* Bỏ right để tránh xung đột */
    text-align: center;
    white-space: normal; /* Cho phép xuống dòng nếu cần */
    width: 60%; /* Giới hạn chiều rộng để text không tràn */
  }
}
/* xóa khung info tooltip khi click vào info hotspot, neu chèn thông tin hay hình ảnh thì gở ra*/
.info-hotspot-text {
  display: none !important;
}


/* Cutom css*/
/* Container tổng */


/* Hiệu ứng nhấp nháy mượt */
.has-image:hover {
  animation: hotspot-smooth-blink 1s infinite ease-in-out;
}
@keyframes hotspot-smooth-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  display: none;
  position: fixed;
  z-index: 100000;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.92);
  justify-content: center;
  align-items: center;
  animation: lbFadeIn 0.22s ease;
}

@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Wrapper bao gồm ảnh + 2 nút prev/next */
.lb-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 92vh;
}

/* Cột ảnh + caption + dots */
.lb-img-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Ảnh chính */
.lb-img-box img {
  display: block;
  max-width: 78vw;
  max-height: 72vh;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lb-img-box img.lb-img-loaded {
  opacity: 1;
}

/* Caption */
.lb-caption {
  margin-top: 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  min-height: 22px;
  max-width: 78vw;
  line-height: 1.4;
}

/* Dots chỉ vị trí */
.lb-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  min-height: 14px;
}
.lb-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  display: inline-block;
  transition: background 0.2s;
}
.lb-dot.active {
  background: #fff;
}

/* Nút đóng — góc trên phải của ảnh */
.lb-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 34px; height: 34px;
  background: #fff;
  color: #111;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  padding: 0;
  line-height: 1;
  transition: transform 0.15s ease;
}
.lb-close:hover { transform: scale(1.12); }

/* Nút prev / next */
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  background: rgba(255,255,255,0.92);
  color: #111;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  padding: 0;
  transition: all 0.18s ease;
}
.lb-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}
.lb-prev { left: -62px; }
.lb-next { right: -62px; }

@media (max-width: 600px) {
  .lb-img-box img { max-width: 90vw; max-height: 65vh; }
  .lb-caption      { max-width: 90vw; font-size: 13px; }
  .lb-prev         { left: 6px; }
  .lb-next         { right: 6px; }
  .lb-close        { top: -14px; right: -10px; }
}
/* css custom hotspot re chuot moi hiển thị*/
/* Container tổng: Điểm neo (0,0) chính là nốt tròn */
.custom-hotspot-wrapper {
  width: 0; height: 0;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

/* Icon/Lottie: Tâm icon phải trùng với tọa độ chuẩn */
/* Khung chứa tổng cho Icon/Lottie */
.hotspot-asset-wrapper {
  width: 25px !important; 
  height: 25px !important;
  position: absolute;
  /* Căn giữa theo trục X */
  left: 50% !important;
  /* Căn giữa theo trục Y: đặt ngay trên nốt tròn hoặc đè lên nốt tròn */
  bottom: 0 !important; 
  /* Dịch chuyển ngược lại 50% chiều rộng và 50% chiều cao của chính nó để tâm trùng tọa độ */
  transform: translate(-50%, 50%) !important; 
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
  cursor: pointer;
  z-index: 20;
}

/* Ép tất cả các loại ảnh (PNG/GIF) và Lottie phải tràn đầy khung chứa */
/* Ép ảnh/lottie tràn khung */
.hotspot-asset-wrapper img, 
.hotspot-asset-wrapper lottie-player {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: contain !important;
}

/* Nhãn: Luôn nằm trên line, cách điểm neo 46px */
.hotspot-label {
  position: absolute;
  bottom: 46px; 
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 20px;
  border-radius: 25px;
  font-family: 'Arial', sans-serif;
  font-weight: normal;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 10;
  pointer-events: auto;
  text-align: center;
  transition: opacity 0.3s ease;
}

.hotspot-anchor {
  position: absolute;
  bottom: -6px !important; /* Âm 1/2 height (12px) */
  left: -6px !important;   /* Âm 1/2 width (12px) */
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  border: 2px solid #fff !important;
  z-index: 5;
}

/* Line đứng: Bắt đầu từ tâm đi lên */
.hotspot-line {
  position: absolute;
  bottom: 6px !important; 
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 2px !important;
  height: 40px !important;
  z-index: 1;
}

/* Logic ẩn hiện cho loại Hotspot có Icon */
.has-custom-icon .hotspot-label,
.has-custom-icon .hotspot-line,
.has-custom-icon .hotspot-anchor {
  opacity: 0;
  visibility: hidden;
}

.has-custom-icon:hover .hotspot-label,
.has-custom-icon:hover .hotspot-line,
.has-custom-icon:hover .hotspot-anchor {
  opacity: 1;
  visibility: visible;
}

/* Luôn hiện cho loại không có icon */
.no-icon .hotspot-label,
.no-icon .hotspot-line,
.no-icon .hotspot-anchor {
  opacity: 1;
  visibility: visible;
}


/* css cho linkhotspot tuy chinh"
/* --- CSS BỔ SUNG CHO LINK HOTSPOTS TÙY CHỈNH --- */

/* Khung chứa link hotspot */
.link-hotspot {
  width: 50px; /* Bồ có thể tăng lên 60px nếu dùng Lottie cho rõ */
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  pointer-events: auto !important; /* Đảm bảo luôn click được */
  z-index: 100;
}

/* Định dạng cho Lottie bên trong link hotspot */
.link-hotspot lottie-player {
  width: 100%;
  height: 100%;
  pointer-events: none; /* Để click xuyên qua lottie vào wrapper */
}

/* Nếu bồ dùng Icon PNG/GIF cho link hotspot */
.link-hotspot-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

/* SVG tùy chỉnh — không rotation, scale khi hover */
.link-hotspot-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.no-touch .link-hotspot:hover .link-hotspot-svg {
  transform: scale(1.15);
}

/* ---- Link Hotspot Animations ---- */

/* pulse: phóng to thu nhỏ nhịp nhàng */
.hs-anim-pulse {
  animation: hs-pulse 1.8s ease-in-out infinite;
}
@keyframes hs-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.18); }
}

/* bounce: nảy lên xuống mượt — alternate lên/xuống liên tục */
.hs-anim-bounce {
  animation: hs-bounce 1.2s ease-in-out infinite alternate;
}
@keyframes hs-bounce {
  from { transform: translateY(0); }
  to   { transform: translateY(-11px); }
}

/* glow: phát sáng */
.hs-anim-glow {
  animation: hs-glow 2s ease-in-out infinite;
}
@keyframes hs-glow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(255,200,100,0.4)); }
  50%       { filter: drop-shadow(0 0 14px rgba(255,200,100,0.95)); }
}

/* spin: xoay chậm */
.hs-anim-spin {
  animation: hs-spin 4s linear infinite;
}
@keyframes hs-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* shimmer: ánh sáng chạy từ trái qua phải */

/* — infoHotspot: dùng background-image gradient animation để không ảnh hưởng layout */
.hs-anim-shimmer .hotspot-label {
  background-image: linear-gradient(
    105deg,
    transparent 25%,
    rgba(255, 255, 255, 0.50) 50%,
    transparent 75%
  );
  background-size: 220% 100%;
  background-repeat: no-repeat;
  background-position: 220% 0;
  animation: hs-shimmer-label 2.6s ease-in-out infinite;
}
@keyframes hs-shimmer-label {
  0%   { background-position: 220% 0; }
  55%  { background-position: -120% 0; }
  100% { background-position: -120% 0; }
}

/* — linkHotspot: ::after trên animDiv (kích thước px cố định, overflow:hidden an toàn) */
.link-hotspot .hs-anim-shimmer {
  position: relative;
  overflow: hidden;
}
.link-hotspot .hs-anim-shimmer::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 80%
  );
  animation: hs-shimmer-icon 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hs-shimmer-icon {
  0%   { left: -100%; }
  55%  { left: 160%; }
  100% { left: 160%; }
}

/* Hiệu ứng phóng nhẹ khi rê chuột vào điểm di chuyển */
.link-hotspot:hover .link-hotspot-icon,
.link-hotspot:hover lottie-player {
  transform: scale(1.15);
}

/* Tên scene phía trên icon link hotspot */
.link-hotspot-name {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: #BF7146;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ============================================================
   BOTTOM NAVIGATION
   ============================================================ */

#bottomNav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Khi persist thumbstrip đang hiện → ẩn panel dropdown để tránh chồng */
#bottomNav.thumb-mode .bnav-panel {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(6px) !important;
}

/* Panels được JS di chuyển ra #bottomNav level trên mobile
   (#bottomNav không có overflow hay backdrop-filter nên không clip) */
#bottomNav > .bnav-panel {
  position: absolute;
  bottom: var(--bnav-height, 54px);
  left: 50%;
  max-width: 95vw;
  border-radius: 12px 12px 0 0;
}

#bottomNav > .bnav-panel.open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

.bnav-container {
  display: flex;
  align-items: stretch;
  pointer-events: all;
  position: relative;
  order: 2;
  background: linear-gradient(90deg, rgba(111,50,13,0.93) 0%, rgba(202,121,77,0.93) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,210,170,0.50);
  border-left: 1px solid rgba(255,210,170,0.25);
  border-right: 1px solid rgba(255,210,170,0.25);
  border-radius: 14px 14px 0 0;
  overflow: visible;
  max-width: 92vw;
}

/* Divider giữa các nhóm */
.bnav-sep {
  width: 1px;
  background: rgba(255, 210, 170, 0.25);
  margin: 10px 0;
  flex-shrink: 0;
}

/* ---- Item wrapper ---- */
.bnav-item {
  display: flex;
  align-items: stretch;
}

/* ---- Nút cấp 1 ---- */
.bnav-main-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 16px 28px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.92);
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.055em;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.22s ease, background 0.22s ease;
  position: relative;
}

.bnav-main-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 18px; right: 18px;
  height: 2px;
  background: #FFD4A8;
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.no-touch .bnav-main-btn:hover,
.bnav-item.open .bnav-main-btn {
  color: #FFD4A8;
  background: rgba(255, 255, 255, 0.08);
}

.no-touch .bnav-main-btn:hover::after,
.bnav-item.open .bnav-main-btn::after,
.bnav-main-btn.current::after {
  transform: scaleX(1);
}

.bnav-main-btn.current {
  color: #FFD4A8;
}

.bnav-label {
  font-weight: 500;
}

.bnav-zone {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FFD4A8;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255,210,170,0.45);
  border-radius: 4px;
  padding: 2px 6px;
}

.bnav-caret {
  font-size: 7px;
  opacity: 0.6;
  transition: transform 0.25s ease, opacity 0.25s ease;
  display: inline-block;
}

.bnav-item.open .bnav-caret {
  transform: rotate(180deg);
  opacity: 1;
  color: #FFD4A8;
}

/* ---- Panel (slides up từ thanh nav) ---- */
/* Panel neo vào .bnav-container (position: relative) để căn giữa toàn nav */
.bnav-panel {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: max-content;
  max-width: min(720px, 92vw);
  background: linear-gradient(160deg, rgba(70,25,5,0.97) 0%, rgba(140,65,30,0.97) 100%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255,210,170,0.30);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.no-touch .bnav-item.has-panel:hover .bnav-panel,
.bnav-item.open .bnav-panel {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

/* ---- Sub-menu bar (cấp 2) ---- */
.bnav-submenu {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 9px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 88vw;
  border-top: 1px solid rgba(255,210,170,0.15);
}

.bnav-submenu::-webkit-scrollbar { display: none; }

.bnav-submenu {
  cursor: grab;
}
.bnav-submenu.dragging {
  cursor: grabbing;
  user-select: none;
}

.bnav-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 18px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-family: inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: 1px solid transparent;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.no-touch .bnav-sub:hover,
.bnav-sub.current {
  color: #FFD4A8;
  background: rgba(255,210,170,0.12);
  border-color: rgba(255,210,170,0.30);
}

.bnav-house {
  position: relative;
}

.bnav-house.active-house {
  color: #FFD4A8;
  background: rgba(255,210,170,0.16);
  border-color: rgba(255,210,170,0.38);
}

.bnav-house-arrow {
  font-size: 15px;
  line-height: 1;
  transition: transform 0.2s ease;
  display: inline-block;
}

.bnav-house.active-house .bnav-house-arrow {
  transform: rotate(90deg);
}

/* ---- Thumbnail strip (cấp 3) ---- */
.bnav-thumbstrip {
  display: none;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(255,210,170,0.18);
}

.bnav-thumbstrip.visible {
  display: block;
}

.bnav-thumbstrip-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  max-width: 88vw;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,210,170,0.4) transparent;
}

.bnav-thumbstrip-scroll::-webkit-scrollbar { height: 3px; }
.bnav-thumbstrip-scroll::-webkit-scrollbar-track { background: transparent; }
.bnav-thumbstrip-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,210,170,0.4);
  border-radius: 2px;
}

.bnav-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.no-touch .bnav-thumb:hover {
  transform: translateY(-4px);
}

.bnav-thumb img {
  width: 118px;
  height: 66px;
  object-fit: cover;
  border-radius: 7px;
  border: 2px solid rgba(255, 255, 255, 0.10);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  display: block;
}

.no-touch .bnav-thumb:hover img,
.bnav-thumb.current img {
  border-color: #FFD4A8;
  box-shadow: 0 0 12px rgba(255,210,170,0.35);
}

.bnav-thumb span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  white-space: nowrap;
  transition: color 0.2s ease;
  letter-spacing: 0.03em;
}

.no-touch .bnav-thumb:hover span,
.bnav-thumb.current span {
  color: #FFD4A8;
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  .bnav-container {
    max-width: 100vw;
    border-radius: 0;
    border-left: none;
    border-right: none;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
  }
  .bnav-container::-webkit-scrollbar { display: none; }

  .bnav-main-btn {
    padding: 14px 18px;
    font-size: 13px;
  }

  .bnav-thumb img {
    width: 100px;
    height: 56px;
  }

  .reference-text {
    bottom: 65px;
  }
}

/* ---- Persistent thumbstrip (nổi trên nav, giữ khi user tương tác 360) ---- */
/* order: 1 → nằm trước .bnav-container (order: 2) trong flex column → hiện phía trên nav bar */
#bnavThumbPersist {
  display: none;
  order: 1;
  width: max-content;
  max-width: min(720px, 92vw);
  background: linear-gradient(160deg, rgba(70,25,5,0.97) 0%, rgba(140,65,30,0.97) 100%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255,210,170,0.30);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  padding: 12px 14px 10px;
  pointer-events: all;
  z-index: 10;
}

#bnavThumbPersist.visible {
  display: block;
}

#bnavThumbPersistScroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  max-width: 88vw;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,210,170,0.4) transparent;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

#bnavThumbPersistScroll.dragging {
  cursor: grabbing;
}

#bnavThumbPersistScroll::-webkit-scrollbar { height: 3px; }
#bnavThumbPersistScroll::-webkit-scrollbar-track { background: transparent; }
#bnavThumbPersistScroll::-webkit-scrollbar-thumb {
  background: rgba(255,210,170,0.4);
  border-radius: 2px;
}

/* Drag scroll cho in-panel thumbstrip */
.bnav-thumbstrip-scroll {
  cursor: grab;
}
.bnav-thumbstrip-scroll.dragging {
  cursor: grabbing;
}

@media (max-width: 768px) {
  #bnavThumbPersist {
    max-width: 100vw;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

/* ---- Ẩn sceneList cũ (nếu còn sót) ---- */
#sceneList, #sceneListToggle {
  display: none !important;
}