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

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

#tourAudioControls{position:absolute;z-index:20;top:14px;right:14px;display:flex;gap:9px}
.tour-control{width:46px;height:46px;padding:0;border-radius:50%;border:2px solid #e4b84c;background:rgba(92,18,13,.9);color:#ffe7a3;display:grid;place-items:center;cursor:pointer;box-shadow:0 5px 16px rgba(0,0,0,.32);transition:.2s}
.tour-control:hover{transform:translateY(-2px) scale(1.06);filter:brightness(1.12)}
.tour-control.active{box-shadow:0 5px 16px rgba(0,0,0,.32),0 0 19px rgba(255,215,87,.54)}
.tour-control.inactive{opacity:.46;filter:grayscale(.9)}.control-icon{font-size:22px}.logo-control img{width:31px;height:31px;border-radius:50%}
#audioHint{position:absolute;z-index:19;left:50%;bottom:22px;transform:translateX(-50%);padding:10px 17px;border:1px solid rgba(231,187,78,.82);border-radius:24px;background:rgba(45,16,9,.82);color:#ffe9b1;font:13px Arial;pointer-events:none;white-space:nowrap;transition:opacity .5s}
#audioHint.hidden{opacity:0}

#backToHomepage{position:absolute;z-index:21;top:14px;left:14px;min-height:46px;padding:0 16px;border-radius:24px;border:2px solid #e4b84c;background:rgba(92,18,13,.92);color:#ffe7a3;display:flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;font:700 13px Arial,sans-serif;box-shadow:0 5px 16px rgba(0,0,0,.32),0 0 15px rgba(255,215,87,.25);transition:.2s}
#backToHomepage:hover{transform:translateY(-2px) scale(1.03);filter:brightness(1.1)}
.home-icon{font-size:22px}.home-label{white-space:nowrap}

/* Hotspot logo, không ghi đè transform định vị của Marzipano */
.link-hotspot{width:66px!important;height:66px!important;border-radius:50%;overflow:visible!important;background:radial-gradient(circle,#fffbe0 0 45%,#931812 47% 66%,#e8b746 68% 75%,transparent 77%);box-shadow:0 0 0 3px rgba(255,221,112,.28),0 0 20px rgba(255,210,74,.88);animation:lxGlow 2.15s ease-in-out infinite!important;cursor:pointer}
.link-hotspot-icon{width:50px!important;height:50px!important;position:absolute;left:8px;top:8px;object-fit:contain;border-radius:50%;transform:none!important;-webkit-transform:none!important;filter:drop-shadow(0 2px 3px rgba(0,0,0,.42));animation:lxLogo 2.15s ease-in-out infinite;transform-origin:center}
.link-hotspot:hover{animation-play-state:paused!important}
.link-hotspot:hover .link-hotspot-icon{animation-play-state:paused;transform:rotate(8deg) scale(1.13)!important;-webkit-transform:rotate(8deg) scale(1.13)!important}
@keyframes lxGlow{0%,100%{box-shadow:0 0 0 3px rgba(255,221,112,.25),0 0 14px rgba(255,205,61,.58)}50%{box-shadow:0 0 0 8px rgba(255,221,112,.08),0 0 30px rgba(255,225,128,.98)}}
@keyframes lxLogo{0%,100%{transform:scale(.94)}50%{transform:scale(1.06)}}

/* Tooltip đầy đủ, nằm phía trên và căn giữa */
.link-hotspot-tooltip{position:absolute!important;left:50%!important;top:auto!important;bottom:calc(100% + 14px)!important;display:flex!important;align-items:center!important;justify-content:center!important;width:max-content!important;min-width:150px!important;max-width:280px!important;min-height:38px!important;height:auto!important;margin:0!important;padding:8px 16px!important;transform:translateX(-50%) translateY(8px)!important;background:linear-gradient(180deg,rgba(125,25,17,.98),rgba(75,13,9,.98))!important;border:1.5px solid #e3ad3a!important;border-radius:12px!important;box-shadow:0 8px 20px rgba(0,0,0,.42),0 0 15px rgba(255,208,82,.28)!important;color:#ffe8a7!important;font:700 14px/1.25 Arial,sans-serif!important;text-align:center!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;z-index:9999!important;transition:opacity .2s ease,transform .2s ease,visibility .2s ease!important}
.link-hotspot-tooltip:after{content:"";position:absolute;left:50%;top:100%;transform:translateX(-50%);border-left:8px solid transparent;border-right:8px solid transparent;border-top:9px solid #7b1811}
.no-touch .link-hotspot:hover .link-hotspot-tooltip,.link-hotspot.show-tooltip .link-hotspot-tooltip{opacity:1!important;visibility:visible!important;transform:translateX(-50%) translateY(0)!important}

.scene-transition-flash{position:fixed;inset:0;z-index:100;pointer-events:none;background:radial-gradient(circle at center,rgba(255,244,184,.8),rgba(180,40,21,.14) 46%,transparent 73%);animation:lxFlash .58s ease-out forwards}
@keyframes lxFlash{from{opacity:.75}to{opacity:0}}

@media(max-width:500px),(max-height:500px){
  #tourAudioControls{top:8px;right:8px;gap:6px}.tour-control{width:40px;height:40px}.logo-control img{width:27px;height:27px}.control-icon{font-size:19px}
  #backToHomepage{top:8px;left:8px;width:40px;min-width:40px;height:40px;min-height:40px;padding:0;border-radius:50%}.home-label{display:none}
  .link-hotspot{width:44px!important;height:44px!important}.link-hotspot-icon{width:34px!important;height:34px!important;left:5px;top:5px}
  .link-hotspot-tooltip{bottom:calc(100% + 11px)!important;min-width:130px!important;max-width:220px!important;min-height:34px!important;padding:7px 12px!important;font-size:12px!important}
  #audioHint{bottom:12px;font-size:11px}
}

/* ===== Nút Lịch sử và Video giới thiệu ===== */
#tourActions{position:absolute;z-index:22;top:14px;right:239px;display:flex;align-items:center;gap:13px}
.tour-action{position:relative;padding:0;border:0;background:none;line-height:0;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .2s ease}
.tour-action img{display:block;height:48px;width:auto;animation:lxActionGlow 2.6s ease-in-out infinite}
#btnVideo img{animation-delay:1.3s}
.tour-action:hover{transform:translateY(-2px) scale(1.045)}
.tour-action:active{transform:translateY(0) scale(.98)}
@keyframes lxActionGlow{
  0%,100%{filter:drop-shadow(0 3px 7px rgba(0,0,0,.5)) drop-shadow(0 0 4px rgba(255,196,74,.3))}
  50%{filter:drop-shadow(0 3px 7px rgba(0,0,0,.5)) drop-shadow(0 0 18px rgba(255,216,112,.95))}
}
/* Luồng sáng chạy ngang, cắt đúng theo hình viên nút */
.tour-action::after{content:"";position:absolute;inset:0;display:none;pointer-events:none;
  background:linear-gradient(104deg,transparent 40%,rgba(255,255,255,.12) 46%,rgba(255,255,255,.78) 50%,rgba(255,255,255,.12) 54%,transparent 60%);
  background-size:280% 100%;background-repeat:no-repeat;animation:lxActionSheen 3.8s ease-in-out infinite}
#btnVideo::after{animation-delay:1.9s}
@keyframes lxActionSheen{0%{background-position:180% 0}60%,100%{background-position:-80% 0}}
@supports ((-webkit-mask-image:url(xuanhiep/img/btn-video.png)) or (mask-image:url(xuanhiep/img/btn-video.png))){
  .tour-action::after{display:block}
  #btnHistory::after{-webkit-mask:url(xuanhiep/img/btn-lich-su.png) center/contain no-repeat;mask:url(xuanhiep/img/btn-lich-su.png) center/contain no-repeat}
  #btnVideo::after{-webkit-mask:url(xuanhiep/img/btn-video.png) center/contain no-repeat;mask:url(xuanhiep/img/btn-video.png) center/contain no-repeat}
}

/* Lớp phủ Lịch sử và Video */
.tour-overlay{position:fixed;inset:0;z-index:120;display:none;background:rgba(14,6,3,.94)}
.tour-overlay.open{display:block}
#historyOverlay iframe{width:100%;height:100%;border:0;display:block;background:#f7f1e4}
.overlay-close{position:absolute;z-index:3;top:14px;right:16px;width:46px;height:46px;border-radius:50%;border:2px solid #e4b84c;background:rgba(92,18,13,.94);color:#ffe7a3;font:300 30px/1 Arial,sans-serif;cursor:pointer;display:grid;place-items:center;box-shadow:0 5px 16px rgba(0,0,0,.4),0 0 15px rgba(255,215,87,.3);transition:.2s}
.overlay-close:hover{transform:scale(1.07);filter:brightness(1.12)}
#videoModal{place-items:center;padding:4vmin}
#videoModal.open{display:grid}
.video-box{width:min(1180px,94vw);aspect-ratio:16/9;background:#000;border:2px solid #e4b84c;border-radius:14px;overflow:hidden;box-shadow:0 18px 50px rgba(0,0,0,.6),0 0 26px rgba(255,208,82,.22)}
.video-box iframe{width:100%;height:100%;border:0;display:block}
.video-thieu{display:grid;place-items:center;height:100%;padding:24px;text-align:center;color:#ffe8a7;font:15px/1.7 Arial,sans-serif}

@media(max-width:500px),(max-height:500px){
  #tourActions{top:auto;right:auto;left:50%;bottom:13px;transform:translateX(-50%);gap:9px}
  .tour-action img{height:38px}
  .overlay-close{top:8px;right:8px;width:40px;height:40px;font-size:26px}
  #audioHint{bottom:60px}
}

/* ===== Trang gộp: danh sách cảnh chia nhóm theo khu vực ===== */
.scenes li.nhom{
  list-style:none;
  position:sticky;top:0;z-index:2;
  padding:13px 12px 7px;
  background:linear-gradient(180deg,rgba(92,18,13,.97),rgba(60,12,9,.97));
  border-top:1px solid rgba(231,187,78,.45);
  border-bottom:1px solid rgba(231,187,78,.22);
  color:#ffd98a;
  font:800 11.5px/1.3 Arial,sans-serif;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.scenes li.nhom:first-child{border-top:0}

/* Cầu vượt không phải ngôi đình nên ẩn hai nút, vào đình mới hiện */
#tourActions{display:none}

/* Trang chủ dùng border-box, giữ các nút của tour vẽ đúng như bản gốc */
#tourAudioControls .tour-control,#backToHomepage{box-sizing:content-box}

/* Màn hình chào nằm trên mọi thứ của tour */
#splash{z-index:10000}

/* Danh sách 45 cảnh: rộng hơn cho đỡ cắt chữ, chừa chỗ cho nút Trang chủ */
#sceneList{left:-258px;width:258px;padding-top:72px}
#sceneList.enabled{margin-left:258px}
.mobile #sceneList{left:-100%;width:100%;padding-top:62px}
.mobile #sceneList.enabled{margin-left:100%}
#sceneList .scene{height:32px}
#sceneList .scene .text{line-height:32px;padding:0 13px;font-size:13.5px}


/* Nút chỉ đường ẩn sẵn, vào đình mới hiện */
#btnChiDuong{display:none}

/* ===== Bảng thông báo khi bấm điểm Đình Linh Tây ===== */
#baoTinModal{place-items:center;padding:5vmin}
#baoTinModal.open{display:grid}
.bao-tin-hop{
  width:min(560px,94vw);padding:26px 28px 22px;border-radius:16px;
  background:linear-gradient(180deg,rgba(125,25,17,.98),rgba(66,12,9,.98));
  border:2px solid #e4b84c;
  box-shadow:0 20px 50px rgba(0,0,0,.6),0 0 28px rgba(255,208,82,.22);
  color:#ffe8a7;text-align:center;
}
.bao-tin-dau{display:flex;flex-direction:column;align-items:center;gap:10px;margin-bottom:14px}
.bao-tin-dau img{width:60px;height:60px;border-radius:50%;filter:drop-shadow(0 3px 7px rgba(0,0,0,.45))}
.bao-tin-hop h2{
  margin:0;font:800 19px/1.25 Arial,sans-serif;letter-spacing:.05em;color:#ffe8a7;
}
.bao-tin-hop p{
  margin:0 0 20px;font:15px/1.65 Arial,sans-serif;color:#ffdf9a;
}
.bao-tin-nut{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.bao-tin-nut-mot{
  all:unset;cursor:pointer;padding:10px 18px;border-radius:26px;
  border:1.5px solid #e4b84c;background:rgba(255,232,167,.1);
  color:#ffe8a7;font:700 13.5px Arial,sans-serif;white-space:nowrap;transition:.18s;
}
.bao-tin-nut-mot:hover{background:rgba(255,232,167,.22);transform:translateY(-2px)}
.bao-tin-nut-mot:focus-visible{outline:2px solid #ffe8a7;outline-offset:3px}

/* Điểm báo tin dùng chung dáng hotspot, chỉ khác là không dẫn đi đâu */
.link-hotspot.bao-tin{cursor:pointer}

@media(max-width:500px),(max-height:500px){
  .bao-tin-hop{padding:20px 18px 18px}
  .bao-tin-hop h2{font-size:16px}
  .bao-tin-hop p{font-size:13.5px}
  .bao-tin-dau img{width:48px;height:48px}
  .bao-tin-nut-mot{padding:9px 14px;font-size:12.5px}
}


/* ===== Man hinh cam ung: diem nho lai va hien san ten =====
   Tren dien thoai khong co chuot de ra xem ten, nen ten hien san va cham
   mot cai la di luon. Nhan ten phai gon de ba bon cai dung canh nhau
   khong de len nhau. May tinh khong doi gi. */
@media(max-width:500px),(max-height:500px){
  .link-hotspot{width:44px!important;height:44px!important}
  .link-hotspot-icon{width:34px!important;height:34px!important;left:5px!important;top:5px!important}
  .link-hotspot-tooltip{
    bottom:calc(100% + 6px)!important;
    min-width:0!important;
    max-width:150px!important;
    min-height:0!important;
    padding:4px 9px!important;
    font-size:10.5px!important;
    border-radius:9px!important;
    border-width:1px!important;
    white-space:nowrap!important;
  }
  .link-hotspot-tooltip:after{border-left-width:6px;border-right-width:6px;border-top-width:7px}
}
