* {
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
  text-size-adjust: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

#logo {
  position: fixed;
  top: 45px;       /* ajuste selon la hauteur de ton bandeau */
  right: 7px;
  width: 130px;    /* ajuste selon la taille souhaitée */
  z-index: 9999;   /* passe au-dessus de la scène 360 */
  /*pointer-events: none; /* optionnel : le logo ne capte pas les clics */
}
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: rgba(58,68,84,0.8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  -webkit-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: 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: 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: 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;
  transition: margin-left 0.5s ease-in-out;
}

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

#sceneList .scenes {
  width: 100%;
  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: rgba(103,115,131,0.8);
}

#sceneList .scene.current {
  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 */

@keyframes link-hotspot-bounce {
  0%, 100% { transform: translateY(0); }
  45%       { transform: translateY(-9px); }
  65%       { transform: translateY(-5px); }
}

@keyframes link-hotspot-pulse {
  0%   { transform: scale(0.85); opacity: 0.6; }
  70%  { transform: scale(1.6);  opacity: 0; }
  100% { transform: scale(1.6);  opacity: 0; }
}

.link-hotspot {
  width: 60px;
  height: 60px;
  margin-left: -30px;
  margin-top: -30px;
  opacity: 0.9;
  transition: opacity 0.2s;
}

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

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

.link-hotspot-inner {
  position: relative;
  width: 60px;
  height: 60px;
  animation: link-hotspot-bounce 1.6s ease-in-out infinite;
}

.link-hotspot-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  animation: link-hotspot-pulse 1.8s ease-out infinite;
  pointer-events: none;
}

.link-hotspot-icon {
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: block;
}

.no-touch .link-hotspot:hover .link-hotspot-inner {
  animation: none;
}

.no-touch .link-hotspot:hover .link-hotspot-inner::before {
  animation: none;
  opacity: 0;
}

.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: rgba(58,68,84,0.8);

  color: #fff;

  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;

  cursor: pointer;

  opacity: 0;

  transform: translateX(-8px);

  transition: 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;
  transform: translateX(0);
}

/* Touch (mobile) : afficher le tooltip au premier tap, avant de naviguer */
.touch .link-hotspot.visible .link-hotspot-tooltip {
  opacity: 1;
  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;
  transition: opacity 0.2s 0.2s;
}

.no-touch .info-hotspot:hover {
  opacity: 1;
  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;
  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;
  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;
  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;
  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;
  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;

  -webkit-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;
  transform: perspective(200px) rotateY(90deg);
  transform-origin: 0 50% 0;
  transition: transform 0.3s 0.3s,
              visibility 0s 0.6s;
}

.desktop .info-hotspot.visible .info-hotspot-close-wrapper {
  visibility: visible;
  transform: perspective(200px) rotateY(0deg);
  transition: 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 */
  transform: perspective(200px) rotateX(-89.999deg);
  transform-origin: 50% 0 0;
  transition: transform 0.3s,
              visibility 0s 0.3s;

  -webkit-user-select: text;
  user-select: text;
}

.desktop .info-hotspot.visible .info-hotspot-text {
  visibility: visible;
  transform: perspective(200px) rotateX(0deg);
  transition: transform 0.3s 0.3s,
              visibility 0s 0s;
}

/* Hotspot Expand */

.expand-hotspot {
  position: relative;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  margin-top: -30px;
  background-color: #fff;
  color: #000;
  border-radius: 50%;
  text-align: center;
  cursor: pointer;
  transition:
    width .3s ease-in-out,
    height .3s ease-in-out,
    background-color .3s ease-in-out,
    color .3s ease-in-out,
    margin .3s ease-in-out;
}

/* Flèche pointant vers le bas (liaison label → cercle) */
.expand-hotspot::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border: solid transparent;
  border-top-color: #fff;
  border-width: 8px 7px 0;
  transition:
    border-top-color .3s ease-in-out,
    border-width .3s ease-in-out,
    bottom .3s ease-in-out;
  pointer-events: none;
}

/* Flèche disparaît au hover */
.expand-hotspot:hover::after {
  border-top-color: transparent;
  border-width: 0;
}

/* Label flottant au-dessus du cercle */
.expand-hotspot .hotspot-label {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background-color: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 5px;
  pointer-events: none;
  transition:
    bottom .3s ease-in-out,
    top .3s ease-in-out,
    transform .3s ease-in-out;
  /* ✅ Netteté du rendu typographique */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;

  /* ✅ Légère aération pour "aérer" les formes des lettres */
  letter-spacing: 0.07em;

  /* ✅ Optionnel : éviter la pixellisation lors des transitions CSS */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden; 
}

/* Petite flèche en bas du label (pointe vers le bas, vers le cercle) */
.expand-hotspot .hotspot-label::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: solid transparent;
  border-top-color: #ddd;
  border-width: 6px 5px 0;
  pointer-events: none;
}
.expand-hotspot .hotspot-label::before {
  content: '';
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  transform: translateX(-50%);
  border: solid transparent;
  border-top-color: #fff;
  border-width: 5px 4px 0;
  pointer-events: none;
  z-index: 1;
}

/* Au hover : label passe EN DESSOUS de la forme agrandie */
.expand-hotspot:hover .hotspot-label {
  position: absolute;
  bottom: auto;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
}

/* La flèche du label s'inverse pour pointer vers le HAUT */
.expand-hotspot:hover .hotspot-label::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #ddd;
  border-width: 0 5px 6px;
}
.expand-hotspot:hover .hotspot-label::before {
  top: auto;
  bottom: calc(100% - 1px);
  border-top-color: transparent;
  border-bottom-color: #fff;
  border-width: 0 4px 5px;
}

/* Wrapper interne centré absolument — image + texte */
.expand-hotspot .expand-content {
  visibility: hidden;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
}

.expand-hotspot .icon,
.expand-hotspot p {
  opacity: 0;
  pointer-events: none;
}

.expand-hotspot .icon {
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto;
  transition: opacity .3s ease-in-out;
}

.expand-hotspot p {
  width: 90%;
  margin: 8px auto 0;
  font-style: italic;
  font-size: 12px;
  transition: opacity .2s ease-in-out;
}

.expand-hotspot:hover {
  width: 200px;
  height: 200px;
  margin-top: -200px;
  margin-left: -100px;
  background-color: #222;
  color: #fff;
  z-index: 2;
  /* pas de overflow:hidden : le label doit rester visible sous le cercle */
}

.expand-hotspot:hover .expand-content {
  visibility: visible;
}

.expand-hotspot:hover .icon {
  width: 120px;
  height: auto;
  opacity: 1;
}

.expand-hotspot:hover p {
  opacity: 1;
  transition: opacity .3s ease-in-out .3s;
}

/* hotspot reveal */

.reveal-hotspot {
  width: 80px;
  height: 80px;
  background-color: #25aae1;
  border-radius: 50%;
  margin-left: 0;
  text-align: center;
  cursor: pointer;
  transition: height .3s ease-in-out,
              width .3s ease-in-out,
              border-radius .3s ease-in-out,
              margin .3s ease-in-out;
}

.reveal-hotspot > img {
  width: 50px;
  margin: 15px 0;
}

.reveal-hotspot .reveal-content {
  width: 180px;
  height: 160px;
  padding: 10px;
  background-color: #fff;
  opacity: 0;
  text-align: center;
  pointer-events: none;
  transition: opacity .01s ease-in-out;
}

.reveal-hotspot .reveal-content img {
  width: 120px;
  opacity: 0;
  transition: width .01s ease-in-out,
              opacity .01s ease-in-out;
}

.reveal-hotspot .reveal-content p {
  margin: 10px 0;
  color: #2d2d2d;
  margin-top: -20px;
  opacity: 0;
  transition: margin .01s ease-in-out,
              opacity .01s ease-in-out;
}

.reveal-hotspot:hover {
  width: 180px;
  height: 240px;
  border-radius: 5px;
  margin-left: -50px;
}

.reveal-hotspot:hover .reveal-content {
  opacity: 1;
  pointer-events: all;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  transition: opacity .3s ease-in-out .3s;
}

.reveal-hotspot:hover .reveal-content img {
  width: 160px;
  opacity: 1;
  transition: width .3s ease-in-out .4s,
              opacity .3s ease-in-out .4s;
}

.reveal-hotspot:hover .reveal-content p {
  margin-top: 10px;
  opacity: 1;
  transition: margin .3s ease-in-out .6s,
              opacity .3s ease-in-out .6s;
}

/* lightbox */

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* hotspot textinfo */

.textInfo-hotspot .tooltip-content {
  position: absolute;
  left: -70px;
  bottom: 80px;
  width: 220px;

  pointer-events: none;

  background-color: rgba(30, 35, 45, 0.95);
  color: #fff;
  line-height: 1.5em;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  opacity: 0;

  transform-origin: 50% calc(100% + 6em);
  transform: rotate3d(0,0,1,15deg);

  transition: opacity 0.5s, transform 0.5s;
  transition-timing-function: ease, cubic-bezier(.17,.67,.4,1.39);
}

/* Titre du tooltip */
.textInfo-hotspot .tooltip-content .tooltip-title {
  display: block;
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background-color: rgba(37, 120, 210, 0.9);
  padding: 0.55em 0.9em;
  line-height: 1.3em;
}

/* Texte du tooltip */
.textInfo-hotspot .tooltip-content .tooltip-text {
  display: block;
  font-size: 0.82em;
  font-weight: 400;
  line-height: 1.55em;
  color: #e8eaf0;
  padding: 0.75em 0.9em;
  text-align: left;
  hyphens: auto;
  word-break: break-word;
}

.textInfo-hotspot:hover {
  z-index: 3;
}

.textInfo-hotspot:hover .tooltip-content {
  opacity: 1;
  pointer-events: all;
  transform: translate3d(0,0,0) rotate3d(0,0,0,0);
}

.textInfo-hotspot .hotspot {
  cursor: pointer;
}

.textInfo-hotspot .hotspot .out:before {
  speak: none;
  font-size: 48px;
  line-height: 90px;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  display: block;
  -webkit-font-smoothing: antialiased;
}

.textInfo-hotspot .hotspot .out {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 4px solid #fff;
  background-color: rgba(37,120,210,.85);
  transition: transform ease-out 0.1s, border 0.2s, background-color 0.2s;
}

.textInfo-hotspot .hotspot .in {
  width: 34px;
  height: 34px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border-radius: 50%;
  transition: transform ease-out 0.1s, background 0.2s;
}

.textInfo-hotspot .hotspot .out:after {
  top: 0;
  left: 0;
  padding: 0;
  z-index: -1;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  content: '';
  box-sizing: content-box;
  transform: scale(0.9);
}

.textInfo-hotspot .hotspot:hover .out {
  border: 5px solid rgba(255,255,255,1);
  transform: scale(0.9);
  color: #fff;
}

.textInfo-hotspot .hotspot:hover .in {
  background-color: rgba(255,255,255,1);
  transform: translate(-50%, -50%) scale(0.8);
}

.textInfo-hotspot .hotspot:hover .out:after {
  animation: sonarEffect 1.2s ease-out;
}

@keyframes sonarEffect {
  0% {
    opacity: 0.5;
  }
  20% {
    opacity: 0.8;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.1), 0 0 10px 10px rgba(37,170,225,.8), 0 0 0 10px rgba(255,255,255,0.5);
  }
  100% {
    box-shadow: 0 0 0 2px rgba(255,255,255,0.1), 0 0 10px 10px rgba(37,170,225,.8), 0 0 0 10px rgba(255,255,255,0.5);
    transform: scale(1.5);
    opacity: 0;
  }
}


/* 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;
  transition: opacity 0.2s ease-in-out 0.5s,
              visibility 0s 0.7s;
}

.info-hotspot-modal.visible {
  opacity: 1;
  visibility: visible;
  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: rgba(103,115,131,0.8);
  opacity: 0;
  transition: opacity 0.3s ease-in-out 0.2s;
}

.info-hotspot-modal.visible .info-hotspot-header {
  opacity: 1;
  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;

  -webkit-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: 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: rgba(58,68,84,0.8);
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;

  -webkit-user-select: text;
  user-select: text;
}

.info-hotspot-modal.visible .info-hotspot-text {
  opacity: 1;
  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: 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;
}
