html, body {
  background-color: #000;
  margin: 0px;
  padding: 0px;
  overflow: hidden;
}
body {
  font-family: open sans,arial;
  font-size: 13px;
}
a {
  color: #fff;
  text-decoration: none;
  outline : none;
}

.navbar-brand{
  position: absolute;
  width: auto;
  top: 0;
  left: 0.3rem;
}
.navbar-brand img{
  height: 30px;
  filter: drop-shadow(1px 1px 3px #fff);
  -webkit-filter: drop-shadow(1px 1px 3px #fff);
  /* border: 1px solid #fff;
  border-radius: 50%; */
}

#info, #pano-menu{
  position: absolute;
  width: auto;
  color: #ffffff;
  text-align: center;
}
#info {
  top: 0px;
  font-family:Arial, sans-serif;
  font-size:0.9rem;
  text-align:center;
}
#info span{
  padding: 5px;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0, 0.5);
}

#tour-menu{
  position: absolute;
  width: auto;
  top: 0;
  right: 0;
  background-color: rgba(35,49,66, 0.5);
  margin: 0.3rem 0 0.3rem 0.3rem;
  /* border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem; */
  border-top-left-radius: 0.9rem;
  border-bottom-left-radius: 0.9rem;
  overflow: hidden;
  padding-right: 0.2rem;
}
#tour-menu a{
  margin: 0.2rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 1.6rem;
  display: inline-table;
}
#tour-menu a:hover{
  background-color: #2a2929;
}
#tour-menu a:hover, #tour-menu a:visited, #tour-menu a:active {
  text-decoration: none;
}
#tour-menu a img{
  height: 1.4rem;
  width: 1.4rem;
  margin: 0.1rem;
}

#pano-menu { display:none;
  top: 0;
  right: 0;
  padding: 0.3rem 0;
  font-size:0.6rem;
}
#pano-menu a:hover, #pano-menu a:visited, #pano-menu a:active {
  color:yellow;
  text-decoration: none;
}
#pano-menu a img{
  height:1.5rem;
  opacity: 0.6;
  margin: 0 0.2rem;
  color: white;
  fill: currentColor;
}
/*#menu-info{ display: none; } / * TEMPORARILY HIDE INFO */

#pano-view{
  position: absolute;
  top: 42px;
  width: 80px;
  right: 0.3rem;
}
#pano-view a{
  display: block;
  padding: 0;
  margin-bottom: 0.4rem;
  width: 80px;
  height: 80px;
  -webkit-filter: drop-shadow(12px 12px 25px rgba(0,0,0,0.5));
  /* filter: url(#drop-shadow); */
  -ms-filter: "progid:DXImageTransform.Microsoft.Dropshadow(OffX=12, OffY=12, Color='#444')";
  filter: drop-shadow(12px 12px 25px rgba(0,0,0,0.5));

}
#pano-view a img{
  width: 80px;
  height: 80px;
  border-radius: 40px;
}
#pano-view.hidden{
  display: none;
}

.grab {
    cursor: move; /* fallback */
    cursor: grab;
    cursor: -moz-grab;
    cursor: -webkit-grab;
}
.grabbing {
    cursor: grabbing;
    cursor: -moz-grabbing;
    cursor: -webkit-grabbing;
}

#tourmap{
  opacity: 0.9;
  position: absolute;
  bottom: 3px;
  right: 3px;
  height:auto;
  width:auto;
  background: #000;
}
#tourmap.hidden{
  visibility: hidden;
  opacity: 0;
}
#tourmap.active{
  visibility: visible;
  opacity: 0.9;
  -webkit-transition: opacity 0.5s ease-out;
  -moz-transition: opacity 0.5s ease-out;
  -o-transition: opacity 0.5s ease-out;
  transition: opacity 0.5s ease-out;
}

#tourmap .plan-container img{ height:100px; }
#tourmap.large .plan-container img{ height:150px; }
/* @media only screen and (min-width: 576px) {
  #tourmap .plan-container img{ height:100px; }
  #tourmap.large .plan-container img{ height:150px; }
} */
@media only screen and (min-width: 768px) {
  #tourmap .plan-container img{ height:130px; }
  #tourmap.large .plan-container img{ height:180px; }
}
@media only screen and (min-width: 992px) {
  #tourmap .plan-container img{ height:150px; }
  #tourmap.large .plan-container img{ height:250px; }
}
@media only screen and (min-width: 1200px) {
  #tourmap .plan-container img{ height:180px; }
  #tourmap.large .plan-container img{ height:300px; }
}

#tourmap.small .plan-container img,
#tourmap.small .plan-plus,
#tourmap.small .plan-container a { display:none; }
#tourmap .plan-top{
  height: 20px;
}
#tourmap .plan-top a{
  height: 20px;
  width: 20px;
  background: #fff;
  color: #ccc;
  float: right;
  text-align: center;
  /* text-decoration: none; */
  margin: 1px;
  cursor: pointer;
}
#tourmap .plan-container{
  position: relative;
}
#tourmap .plan-container a{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: white;
  position: absolute;
  display: block;
  -webkit-box-shadow: 1px 1px 7px 0px #000000;
  box-shadow: 1px 1px 7px 0px #000000;
  opacity: 0.5;
}
#tourmap .plan-container a:hover,
#tourmap .plan-container a.active{
  opacity: 1;
}
#tourmap .plan-container a.active{
  background-color: lightgreen;
  -webkit-box-shadow: 1px 1px 7px 0px orange;
  box-shadow: 1px 1px 7px 0px lightgreen;
}
#no-panorama-sign{
  cursor: not-allowed;
}
#no-panorama-sign, #next-panorama-sign{
  position: absolute;
  top:0;
  left:0;
  width:8%;
  height:8%;
  margin: -4% 0 0 -4%;
  opacity: 0;
}
#no-panorama-sign.highlight,
#next-panorama-sign.highlight{
  -webkit-animation: fadeinout 1.5s linear forwards;
  animation: fadeinout 1.5s linear forwards;
}
@-webkit-keyframes fadeinout {
  0%,100% { opacity: 0; }
  25% { opacity: 1; }
}
@keyframes fadeinout {
  0%,100% { opacity: 0; }
  25% { opacity: 1; }
}
#no-panorama-sign.hidden,
#next-panorama-sign.hidden{
  display: none;
}

/* Overlay */
.overlay {
  height: 100%;
  width: 100%;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0, 0.9);
  overflow-x: hidden;
  visibility: visible;/**/
  opacity: 1;/**/
  -webkit-transition: 0.5s;
  -moz-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
}
.overlay.hidden{
  visibility: hidden;
  opacity: 0;
  -webkit-transition: visibility 0s 1s, opacity 1s linear;
  -moz-transition: visibility 0s 1s, opacity 1s linear;
  -o-transition: visibility 0s 1s, opacity 1s linear;
  transition: visibility 0s 1s, opacity 1s linear;
}

/* .overlay.fadeInAndOut {
    opacity: 1;
    animation: fade 2s linear;
}
@keyframes fade {
  0%,100% { opacity: 0 }
  50% { opacity: 1 }
} */
/* .overlay.fadein{
  visibility: visible;
  opacity: 1;
  -webkit-transition: visibility 0s, opacity 1s linear;
  -moz-transition: visibility 0s, opacity 1s linear;
  -o-transition: visibility 0s, opacity 1s linear;
  transition: visibility 0s, opacity 1s linear;
} */


/* Progress Bar */
#progress-bar {
  position: absolute;
  width: 200px;
  height: 200px;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
}
#progress-bar.hiding {
  visibility: hidden;
  opacity: 0;
  -webkit-transition: visibility 0s 0.3s, opacity 0.3s linear;
  -moz-transition: visibility 0s 0.3s, opacity 0.3s linear;
  -o-transition: visibility 0s 0.3s, opacity 0.3s linear;
  transition: visibility 0s 0.3s, opacity 0.3s linear;
}









.img-hover img {
    -webkit-transition: all .3s ease; /* Safari and Chrome */
  	-moz-transition: all .3s ease; /* Firefox */
  	-o-transition: all .3s ease; /* IE 9 */
  	-ms-transition: all .3s ease; /* Opera */
  	transition: all .3s ease;
}
.img-hover img:hover {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform:translateZ(0) scale(1.20); /* Safari and Chrome */
    -moz-transform:scale(1.20); /* Firefox */
    -ms-transform:scale(1.20); /* IE 9 */
    -o-transform:translatZ(0) scale(1.20); /* Opera */
    transform:translatZ(0) scale(1.20);
}


.grayscale {
  -webkit-filter: brightness(1.10) grayscale(100%) contrast(90%);
  -moz-filter: brightness(1.10) grayscale(100%) contrast(90%);
  filter: brightness(1.10) grayscale(100%);
}


#modalInfo .modal-body div p span{
  text-transform: uppercase;
  color: #4d90fe;
  font-weight: bold;
}
#modalInfo .modal-body div img{
  width: 12%;
  margin: 1% 7%;
}
@media screen and (max-width: 480px) {
  #modalInfo .modal-body div img{
    margin: 1% 40%;
  }
}
#modalInfo .modal-body div p{
  width: 60%;
  display: inline;
}






.info-hotspot-popup{
  box-sizing: border-box;
  display: inline-block;     
  padding: 0 !important; 
  max-width: 90vw;
  max-height: 80vh;
  overflow: hidden;
}

.info-hotspot-popup > .mt-3{
  box-sizing: border-box;
  padding: 1rem; 
  aspect-ratio: 16 / 9;
  width: min(80vw, calc(60vh * 16 / 9));
  max-width: 90vw;
  height: auto;
  max-height: 60vh;
  overflow: hidden;
}

.info-hotspot-popup iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.info-hotspot-popup .yt-embed,
.info-hotspot-popup .embed-webpage{
  position: relative;
  width: 100%;
  height: 100%;
}

/* Small screens guardrails */
@media (max-width: 576px){
  .info-hotspot-popup{
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    left: 8px !important;
    right: 8px;
  }
  .info-hotspot-popup > .mt-3{
    width: min(calc(100vw - 16px), calc((100vh - 16px) * 16 / 9));
    max-height: calc(100vh - 16px);
  }
}

/* General safety: never let inner content push wider than the box */
.info-hotspot-popup img,
.info-hotspot-popup iframe,
.info-hotspot-popup video {
  max-width: 100%;
  height: auto;
  display: block;
}
.info-hotspot-popup { overflow: hidden; }

/* Mobile fixes */
@media (max-width: 576px){
  .info-hotspot-popup{
    /* Kill parent padding so 100% children don't overhang */
    padding: 0 !important;

    /* Constrain horizontally to viewport even if inline "left" is set */
    left: 8px !important;
    right: 8px;              /* stretching wins over a too-large width */
    width: auto;             /* ignore any inline width */
    max-width: calc(100vw - 16px);
    overflow: hidden;
  }

  /* The content area: owns the padding and stays within parent */
  .info-hotspot-popup > .mt-3{
    box-sizing: border-box;
    padding: 12px;

    /* 16:9 without spilling: pick the smaller of (viewport width) or (viewport height * 16/9) */
    width: min( calc(100vw - 16px - 24px), calc((100vh - 16px - 24px) * 16 / 9) );
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }

  /* YouTube & webpage wrappers fill the content box and keep 16:9 */
  .info-hotspot-popup .yt-embed,
  .info-hotspot-popup .embed-webpage{
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
  }

  .info-hotspot-popup .yt-embed iframe,
  .info-hotspot-popup .embed-webpage iframe{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

  /* Text safety: long words/URLs won’t force horizontal overflow */
  .info-hotspot-popup,
  .info-hotspot-popup *{
    overflow-wrap: anywhere;
  }
}


/* AI Chat */

#aiChatBtn {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 9999;

  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  letter-spacing: 0.2px;

  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;

  background-color: rgba(35, 49, 66, 1) !important;
  border-color: #5491ea !important;
}

#aiChatBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.32);
  filter: brightness(1.03);
}

#aiChatBtn:active {
  transform: translateY(0px);
  box-shadow: 0 9px 22px rgba(0,0,0,0.24);
}

#aiChatBtn .ai-icon {
  font-size: 1.05rem;
  margin-right: 0.45rem;
  line-height: 1;
}

/* Panel */
#aiChatPanel {
  position: absolute;
  left: 1rem;
  bottom: 4rem;
  width: 340px;
  max-width: calc(100vw - 2rem);
  height: 380px;
  max-height: calc(100vh - 6rem);

  z-index: 9999;
  display: none;          /* toggled by JS */
  flex-direction: column;

  border-radius: 18px;    /* rounder */
  overflow: hidden;       /* clean edges */
  box-shadow: 0 18px 52px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}

/* Header */
#aiChatPanel .card-header {
  background-color: rgba(35, 49, 66, 1) !important;
  border-bottom: 1px solid rgba(255,255,255,0.10) !important;

  padding: 0.6rem 0.8rem !important;
}

#aiChatPanel .card-header .text-muted {
  color: rgba(255,255,255,0.70) !important;
}

/* Body layout */
#aiChatPanel .ai-card-body {
  display: flex;
  flex-direction: column;
  height: calc(100% - 48px); /* header approx */
  min-height: 0;
  padding: 0.65rem;
  background: rgba(255,255,255,0.96);
}

/* Messages area */
#aiChatPanelMessages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;

  padding: 0.25rem 0.15rem;
  margin-bottom: 0.6rem;

  font-size: 0.95rem;
  line-height: 1.25;
  scrollbar-width: thin; /* Firefox */
}

/* Message bubbles */
.aiChatMsg {
  max-width: 86%;
  margin-bottom: 0.35rem;
  word-wrap: break-word;
}

.aiChatMsg span {
  display: inline-block;
  padding: 0.42rem 0.6rem;
  border-radius: 14px; /* rounder bubbles */
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

/* Assistant bubble */
.aiChatMsg.assistant span {
  background-color: #f4f6f8;
  color: #1f2a33;
  border: 1px solid rgba(0,0,0,0.05);
}

/* User bubble */
.aiChatMsg.user {
  margin-left: auto;
  text-align: right;
}

.aiChatMsg.user span {
  background-color: #0b66ff; /* slightly punchier than default */
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}

/* Input row (sticky-ish) */
#aiChatPanelInput {
  flex: 0 0 auto;
  padding-top: 0.15rem;
}
#aiChatPanelInput .input-group {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
  border: 1px solid rgba(0,0,0,0.06);
}
#aiChatPanelInput .form-control {
  font-size: 0.95rem;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0.6rem 0.7rem;
}
#aiChatPanelInput .form-control:focus {
  outline: none;
  box-shadow: none !important;
}
#aiChatPanelInput .btn {
  font-size: 0.95rem;
  border: 0 !important;
  padding: 0.55rem 0.75rem;
  background-color: rgba(35, 49, 66, 1) !important;
}

/* Close button */
#aiChatCloseBtn {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.92);
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.9;
  transition: opacity 120ms ease, transform 120ms ease;
}
#aiChatCloseBtn:hover {
  opacity: 1;
  transform: scale(1.05);
}



/* Info popup */
.pv-infohotspot-popup{
  position: fixed;
  left: 12px; top: 12px;             /* JS will set real position */
  z-index: 1050;
  display: none;                     /* toggled by JS */
  box-sizing: border-box;
  max-width: 92vw;
  max-height: 70vh;
}
.pv-infohotspot-popup.is-open{ display:block; }

/* Inner box */
.pv-infohotspot-popup__inner{
  position: relative;
  box-sizing: border-box;

  background: #fff;
  border: 1px solid rgba(0,0,0,.125);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);

  /* uniform padding + reserve space for close button */
  padding: 16px;
  padding-top: 52px; /* prevents content from touching/overlapping close button */

  /* never let the inner exceed screen */
  max-width: inherit;
  max-height: inherit;
  overflow: hidden; /* scrolling happens in body */
}

/* Close button */
.pv-infohotspot-popup__close{
  position: absolute;
  top: 12px;
  right: 12px;

  width: 32px;
  height: 32px;
  border-radius: 8px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  background: transparent;
  cursor: pointer;

  line-height: 1;
  font-size: 24px;
  padding: 0;
  margin: 0;
}
.pv-infohotspot-popup__close:focus{
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0,123,255,.35);
}

/* Scrollable content */
.pv-infohotspot-popup__body{
  box-sizing: border-box;
  width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;

  /* guard: keep body readable even when JS min-sizes */
  min-height: 60px;
}

/* Make embedded media behave */
.pv-infohotspot-popup__body iframe,
.pv-infohotspot-popup__body video,
.pv-infohotspot-popup__body img{
  max-width: 100%;
  display: block;
}