@import url('https://fonts.googleapis.com/css2?family=Hind:wght@400;500;600;700&display=swap');

:root {
  --theme-color-darkblue: #2D4059;
  --theme-color-lightblue: #5491ea;
  --theme-color-lightblue-hover: #487dcb;
  --theme-color-red: #ea5455;
  --theme-color-red-hover: #cb4849;
  --theme-font-family-hind: 'Hind', sans-serif;
}

html, body {
  background-color: #000;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  font-family: var(--theme-font-family-hind);
  font-size: 13px;
}

button, input, select, textarea, .btn, .modal, .tooltip, .popover {
  font-family: var(--theme-font-family-hind);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--theme-font-family-hind);
  font-weight: 700;
}

.modal-content { border: 0; border-radius: 1.25rem; overflow: hidden; box-shadow: 0 18px 55px rgba(0,0,0,.22); }
.modal-header { padding: 1.1rem 1.25rem; border-bottom: 1px solid rgba(45,64,89,.08); }
.modal-title { color: var(--theme-color-darkblue); font-weight: 600; }
.modal-body { padding: 1.25rem; }
.modal-footer { padding: .9rem 1.25rem; border-top: 1px solid rgba(45,64,89,.08); }

.modal-header .close,
.pv-infohotspot-popup__close {
  width: 36px; height: 36px; margin: -.35rem -.35rem -.35rem auto; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-family: Arial, sans-serif; font-size: 1.5rem;
  font-weight: 400; line-height: 1; opacity: .55;
  transition: background-color .15s ease, opacity .15s ease;
}
.modal-header .close:hover,
.pv-infohotspot-popup__close:hover { background: rgba(45,64,89,.08); opacity: .9; }

.modal .form-control {
  border-radius: .75rem; border: 1px solid rgba(45,64,89,.15);
  padding: .6rem .85rem; box-shadow: none;
}
.modal .form-control:focus {
  border-color: var(--theme-color-lightblue);
  box-shadow: 0 0 0 3px rgba(84,145,234,.14);
}


a {
  color: #fff;
  text-decoration: none;
  outline : none;
}

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

#info, #pano-menu{
  position: absolute;
  width: auto;
  color: #ffffff;
  text-align: center;
}
#info {
  top: 0;
  font-family: var(--theme-font-family-hind);
  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 */
#tour-menu {
  position: absolute;
  top: 0.3rem;
  right: 0;
  display: flex;
  align-items: center;
  padding: 0.2rem;
  background: rgba(35, 49, 66, 0.5);
  border-radius: 999px 0 0 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px) saturate(115%);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
}

#tour-menu > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  margin: 0.2rem;
  border-radius: 50%;
  vertical-align: middle;
  transition:
    background-color 0.18s ease,
    transform 0.18s ease;
}

#tour-menu > a:hover {
  background: rgba(0, 0, 0, 0.35);
}

#tour-menu > a:active {
  transform: scale(0.92);
}

#tour-menu > a:hover,
#tour-menu > a:visited,
#tour-menu > a:active {
  text-decoration: none;
}

/* Menu action icons */
#tour-menu > a img {
  display: block;
  position: relative;
  top: auto;
  left: auto;
  width: 1.4rem;
  height: 1.4rem;
  margin: 0 auto;
}

/*
 * Some controls are dynamically enabled by JS.
 * Keep their icons centered.
 */
#menu-fullscreen,
#menu-geo,
#menu-gyro,
#menu-xr {
  text-align: center;
  line-height: 1.6rem;
}

#menu-fullscreen img,
#menu-geo img,
#menu-gyro img,
#menu-xr img {
  display: inline-block;
  vertical-align: middle;
  margin: 0;
}

/* Menu toggle
   Larger than action buttons so it
   reads as the main menu control. */

#menu-toggle {
  flex: 0 0 auto;
  width: 2.2rem !important;
  height: 2.2rem !important;
  margin: 0.05rem 0.15rem 0.05rem 0.25rem !important;
  background: rgba(255, 255, 255, 0.10);
}

#menu-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Burger / X icon */
.tour-menu-toggle-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 16px;
}

.tour-menu-toggle-icon i {
  position: absolute;
  right: 0;
  top: 7px;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transform-origin: center;
  transition:
    width 0.2s ease,
    top 0.2s ease,
    transform 0.2s ease;
}

/* Expanded menu = X */
.tour-menu-toggle-icon i:first-child {
  transform: rotate(45deg);
}

.tour-menu-toggle-icon i:last-child {
  transform: rotate(-45deg);
}

/* Collapsed menu = modern two-line burger */
#tour-menu.collapsed .tour-menu-toggle-icon i:first-child {
  top: 4px;
  width: 18px;
  transform: none;
}

#tour-menu.collapsed .tour-menu-toggle-icon i:last-child {
  top: 10px;
  width: 12px;
  transform: none;
}

/* Hide action buttons when menu is collapsed */
#tour-menu.collapsed > a:not(#menu-toggle) {
  display: none !important;
}

/* Mobile Larger touch targets*/

@media (max-width: 576px) {

  #tour-menu {
    top: 0.4rem;
    padding: 0.25rem;
  }

  #tour-menu > a {
    width: 2.2rem;
    height: 2.2rem;
    margin: 0.15rem;
  }

  #tour-menu > a img {
    width: 1.65rem;
    height: 1.65rem;
  }

  /* Larger primary menu control */
  #menu-toggle {
    width: 2.6rem !important;
    height: 2.6rem !important;
    margin-left: 0.2rem !important;
  }

  /* Larger mobile burger / X */
  .tour-menu-toggle-icon {
    width: 20px;
    height: 18px;
  }

  .tour-menu-toggle-icon i {
    top: 8px;
    width: 20px;
    height: 2.5px;
  }

  /* Collapsed mobile burger */
  #tour-menu.collapsed .tour-menu-toggle-icon i:first-child {
    top: 4px;
    width: 20px;
  }

  #tour-menu.collapsed .tour-menu-toggle-icon i:last-child {
    top: 11px;
    width: 13px;
  }
}

.btn-rounded, .btn-next, .btn-prev {
  border-radius: 999px !important;
}

/* Location map */
#modalGeoMap .modal-dialog {
  width: 90vw;
  max-width: 1400px;
}

#modalGeoMap .modal-content {
  height: 90vh;
}

@media (max-width: 576px) {
  #modalGeoMap .modal-dialog {
    width: auto;
    max-width: none;
    margin: 0.5rem;
  }

  #modalGeoMap .modal-content {
    height: calc(100vh - 1rem);
  }
}

#modalGeoMap .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 300px;
}


#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{
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  width: auto;
  height: auto;
  max-width: calc(100vw - 1rem);
  max-height: calc(100vh - 1rem);
  z-index: 20;

  display: flex;
  flex-direction: column;

  background: rgba(10, 15, 22, 0.88);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.75rem;
  box-shadow: 0 12px 36px rgba(0,0,0,0.42);

  opacity: 0.96;
  overflow: hidden;

  backdrop-filter: blur(10px) saturate(115%);
  -webkit-backdrop-filter: blur(10px) saturate(115%);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}

#tourmap.hidden{
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

#tourmap.active{
  visibility: visible;
  opacity: 0.96;
  pointer-events: auto;
  transform: translateY(0);
}

/* Floor-map control bar */
#tourmap .plan-controls{
  position: relative;
  z-index: 20;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;

  min-height: 40px;
  padding: 4px 5px;

  background: rgba(35,49,66,0.94);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-sizing: border-box;
}

#tourmap .plan-controls a{
  position: relative;
  float: none;

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

  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;

  color: #fff;
  line-height: 1;
  box-sizing: border-box;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;

  cursor: pointer;
  text-decoration: none;

  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

#tourmap .plan-controls a:hover{
  color: #fff;
  background: #1684ff;
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 5px 14px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}

#tourmap .plan-controls a:active{
  transform: translateY(0) scale(0.96);
}

#tourmap .plan-controls a:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 2px;
}

#tourmap .plan-controls .plan-close:hover{
  background: #d9534f;
}

/* CSS icons */
#tourmap .plan-icon{
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

#tourmap .plan-icon-close::before,
#tourmap .plan-icon-close::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  margin-left: -7px;
  margin-top: -1px;
  background: #fff;
  border-radius: 2px;
}

#tourmap .plan-icon-close::before{
  transform: rotate(45deg);
}

#tourmap .plan-icon-close::after{
  transform: rotate(-45deg);
}

#tourmap .plan-icon-expand::before,
#tourmap .plan-icon-expand::after{
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border: 2px solid #fff;
}

#tourmap .plan-icon-expand::before{
  top: 0;
  right: 0;
  border-left: 0;
  border-bottom: 0;
}

#tourmap .plan-icon-expand::after{
  left: 0;
  bottom: 0;
  border-right: 0;
  border-top: 0;
}

/* Change expand icon to collapse icon while enlarged */
#tourmap.large .plan-icon-expand::before{
  top: 2px;
  right: 2px;
  border-top: 0;
  border-right: 0;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

#tourmap.large .plan-icon-expand::after{
  left: 2px;
  bottom: 2px;
  border-bottom: 0;
  border-left: 0;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

/* Floor-map image area */
#tourmap .plan-container{
  position: relative;
  overflow: hidden;
  background: #111;
}

#tourmap .plan-container > img{
  display: block;
  width: auto;
  height: 85px;
  max-width: calc(100vw - 1rem);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

#tourmap.large .plan-container > img{
  height: 150px;
}

/* Collapsed state: retain a visible reopen button */
#tourmap.small{
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  overflow: hidden;
}

#tourmap.small .plan-container{
  display: none;
}

#tourmap.small .plan-controls{
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 4px;
  justify-content: center;
  border-bottom: 0;
}

#tourmap.small .plan-close{
  display: none;
}

#tourmap.small .plan-plus{
  display: flex;
}

/* Floor map markers */
#tourmap .floor-map-marker{
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  transform-origin: center;
  display: block;
  cursor: pointer;
  text-decoration: none;
  opacity: 0.82;
  touch-action: manipulation;
  transition:
    opacity 0.15s ease,
    filter 0.15s ease;
}

#tourmap .floor-map-marker:hover,
#tourmap .floor-map-marker:focus-visible,
#tourmap .floor-map-marker.active{
  opacity: 1;
  z-index: 3;
}

#tourmap .floor-map-marker:focus-visible{
  outline: none;
}

#tourmap .floor-map-marker-dot{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #1684ff;
  box-shadow:
    0 2px 7px rgba(0,0,0,0.7),
    0 0 0 2px rgba(22,132,255,0.22);
  transform: translate(-50%, -50%);
  transform-origin: center;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

#tourmap .floor-map-marker-arrow{
  position: absolute;
  left: 50%;
  top: -2px;
  margin-left: -4px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 10px solid #1684ff;
  transform-origin: 50% 13px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.65));
  transition:
    border-bottom-color 0.18s ease,
    filter 0.18s ease;
}

#tourmap .floor-map-marker:hover .floor-map-marker-dot,
#tourmap .floor-map-marker:focus-visible .floor-map-marker-dot{
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow:
    0 3px 10px rgba(0,0,0,0.75),
    0 0 0 4px rgba(22,132,255,0.24);
}

#tourmap .floor-map-marker.active .floor-map-marker-dot{
  background: #ff8a00;
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow:
    0 3px 12px rgba(0,0,0,0.75),
    0 0 0 5px rgba(255,138,0,0.3);
}

#tourmap .floor-map-marker.active .floor-map-marker-arrow{
  border-bottom-color: #ff8a00;
  filter:
    drop-shadow(0 1px 2px rgba(0,0,0,0.65))
    drop-shadow(0 0 4px rgba(255,138,0,0.45));
}

@media only screen and (min-width: 768px){
  #tourmap .plan-container > img{
    height: 115px;
  }

  #tourmap.large .plan-container > img{
    height: 180px;
  }
}

@media only screen and (min-width: 992px){
  #tourmap .plan-container > img{
    height: 130px;
  }

  #tourmap.large .plan-container > img{
    height: 250px;
  }
}

@media only screen and (min-width: 1200px){
  #tourmap .plan-container > img{
    height: 155px;
  }

  #tourmap.large .plan-container > img{
    height: 300px;
  }
}

@media only screen and (max-width: 575.98px){
  #tourmap{
    right: 0.35rem;
    bottom: 0.35rem;
    max-width: calc(100vw - 0.7rem);
  }

  #tourmap .plan-container > img{
    max-width: calc(100vw - 0.7rem);
  }

  #tourmap .floor-map-marker{
    width: 30px;
    height: 30px;
  }

  #tourmap .floor-map-marker-dot{
    width: 15px;
    height: 15px;
  }
}

#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 {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
  visibility: visible;
  opacity: 1;
  background: #111;
  transition: opacity .55s ease, visibility 0s;
}

.overlay.hidden {
  visibility: hidden;
  opacity: 0;
  transition: opacity .55s ease, visibility 0s .55s;
}

.tour-loader-background {
  position: absolute;
  inset: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  object-fit: cover;
  filter: blur(28px);
  transform: scale(1.08);
}

.tour-loader-shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .28);
}

.tour-loader-content {
  position: relative;
  z-index: 1;
  width: min(90vw, 620px);
  text-align: center;
  color: #fff;
}

.tour-loader-preview {
  --loader-size: clamp(170px, 24vmin, 300px);
  position: relative;
  width: var(--loader-size);
  height: var(--loader-size);
  margin: 0 auto 28px;
  flex: 0 0 var(--loader-size);
}

/* Leave a consistent inner gap for the progress stroke. */
.tour-loader-preview > img {
  position: absolute;
  inset: 7px;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  display: block;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(20, 25, 32, .65);
}

.tour-loader-preview #progress-bar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

.tour-loader-preview #progress-bar svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
  overflow: visible;
}

@media (max-width: 576px) {
  .tour-loader-preview {
    --loader-size: clamp(150px, 48vw, 190px);
    margin-bottom: 22px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .tour-loader-preview {
    --loader-size: 140px;
    margin-bottom: 14px;
  }
}

.tour-loader-content h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;

  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow-wrap: anywhere;
}

.tour-loader-content p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .overlay {
    transition-duration: .15s;
  }
}


.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: auto;
  max-height: calc(100dvh - 6rem); */
  height: 380px;
max-height: calc(100dvh - 6rem);

  z-index: 9999;
  display: none;
  flex-direction: column;
  color: #fff;
  background: rgba(10, 15, 22, 0.88);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.75rem;
  box-shadow: 0 12px 36px rgba(0,0,0,0.42);
  overflow: hidden;
  backdrop-filter: blur(10px) saturate(115%);
  -webkit-backdrop-filter: blur(10px) saturate(115%);
}

#aiChatPanel:has(#leadCaptureMode:not(.d-none)) {
  height: auto;
}

#aiChatPanel .card-header {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 4px 5px 4px 12px !important;

  color: #fff;
  background: rgba(35,49,66,0.94) !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

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

#aiChatPanel .ai-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 1rem;
  color: #fff;
  background: color-mix(
    in srgb,
    var(--theme-color-darkblue) 35%,
    #000
  );
}

#aiChatMode {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

#leadCaptureMode {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

#tourLeadForm {
  min-height: 0;
}

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

#aiChatPanel label {
  color: rgba(255,255,255,0.92);
}

#aiChatPanel a {
  color: #7eb5ff;
}

/* 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 {
  position: relative;
  flex: 0 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;

  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  cursor: pointer;

  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

#aiChatCloseBtn:hover {
  color: #fff;
  background: #d9534f;
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 5px 14px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}

#aiChatCloseBtn:active {
  transform: translateY(0) scale(0.96);
}

#aiChatCloseBtn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

#aiChatCloseBtn .plan-icon {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

#aiChatCloseBtn .plan-icon-close::before,
#aiChatCloseBtn .plan-icon-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  margin-left: -7px;
  margin-top: -1px;
  background: #fff;
  border-radius: 2px;
}

#aiChatCloseBtn .plan-icon-close::before {
  transform: rotate(45deg);
}

#aiChatCloseBtn .plan-icon-close::after {
  transform: rotate(-45deg);
}

/* Compact contact form */
/* #tourLeadForm .form-group {
  margin-bottom: 0.55rem;
}

#tourLeadForm label {
  margin-bottom: 0.2rem;
  font-size: 0.8rem;
  line-height: 1.2;
}

#tourLeadForm .form-control {
  height: 32px;
  padding: 0.25rem 0.5rem;
  font-size: 0.82rem;
  line-height: 1.25;
  border-radius: 6px;
}

#tourLeadForm select.form-control {
  padding-right: 1.5rem;
}

#tourLeadForm textarea.form-control {
  height: 58px;
  min-height: 58px;
  resize: vertical;
}

#tourLeadForm #leadSubmitBtn {
  min-height: 32px;
  padding: 0.3rem 0.65rem;
  font-size: 0.82rem;
}

@media (max-width: 575.98px) {
  #tourLeadForm .form-control {
    font-size: 16px;
  }
} */

/* Contact form */
#tourLeadForm .form-group {
  margin-bottom: 0.65rem;
}

#tourLeadForm label {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Rounded fields with a subtle theme-blue background */
#tourLeadForm .form-control {
  height: 36px;
  padding: 0.4rem 0.7rem;

  color: #fff;
  background-color: color-mix(
    in srgb,
    var(--theme-color-darkblue) 55%,
    #000
  );

  border: 1px solid var(--theme-color-darkblue);
  border-radius: 10px;
  box-shadow: none;

  font-size: 16px;
  line-height: 1.4;
  color-scheme: dark;

  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

#tourLeadForm .form-control::placeholder {
  color: #abb5c3;
  opacity: 1;
}

#tourLeadForm .form-control:focus {
  /* border-color: var(--theme-color-lightblue);
  outline: 2px solid var(--theme-color-lightblue);
  outline-offset: 2px;
  box-shadow: none; */

  border-color: color-mix(
    in srgb,
    var(--theme-color-darkblue) 25%,
    #fff
  );
  outline: none;
  box-shadow: 0 0 0 1px color-mix(
    in srgb,
    var(--theme-color-darkblue) 25%,
    #fff
  );
}

#tourLeadForm select.form-control {
  padding-right: 1.5rem;
}

#tourLeadForm select.form-control option {
  color: #fff;
  background-color: var(--theme-color-darkblue);
}

#tourLeadForm textarea.form-control {
  height: 88px;
  min-height: 88px;
  resize: vertical;
}

/* Theme-red submit button */
#tourLeadForm #leadSubmitBtn {
  width: 100%;
  min-height: 38px;
  padding: 0.45rem 1rem;

  color: #fff;
  background-color: var(--theme-color-red-hover);
  border: 1px solid transparent;
  border-radius: 10px;

  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;

  transition: background-color 160ms ease;
}

#tourLeadForm #leadSubmitBtn:not(:disabled):hover {
  background-color: color-mix(
    in srgb,
    var(--theme-color-red-hover) 88%,
    #000
  );
}

#tourLeadForm #leadSubmitBtn:focus-visible {
  outline: 2px solid var(--theme-color-lightblue);
  outline-offset: 3px;
}

#tourLeadForm #leadSubmitBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  #tourLeadForm .form-control,
  #tourLeadForm #leadSubmitBtn {
    transition: none;
  }
}

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


