* {
  -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;
  background-color: #000;
  color: #fff;
  /* Use Merriweather Sans as the default font (linked in index.html) */
  font-family: "Merriweather Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 12px;
}

.logo {
  position: absolute; /* fix to viewport so top/right always apply */
  top: 70px; /* moved lower so it doesn't overlap the title */
  right: 12px; /* keep inside on small screens */
  left: auto;
  width: clamp(48px, 8vw, 120px); /* responsive width */
  height: auto;
  z-index: 10000; /* above panorama UI */
  opacity: 0; /* start invisible for animation */
  transform: translateY(-6px) scale(0.98);
  pointer-events: none; /* so it doesn't block controls */
  animation: logo-enter 600ms ease-out forwards;
}

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 {
  /* Hide titlebar by default as requested; leave markup for accessibility but hide visually */
  display: none;
  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: #9676aa;
  background-color: #9676aa;
  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;
}

/* Heading styles */
h1 {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 6px 0;
}

#fullscreenToggle {
  /* Visible inline in the controls row; visibility of icon handled by .enabled class */
  display: inline-flex;
  position: static;
  width: 40px;
  height: 40px;
  padding: 6px;
  background-color: #8b73a5;
  align-items: center;
  justify-content: center;
}

.mobile #fullscreenToggle {
  width: 50px;
  height: 50px;
}

/* fullscreenToggle uses the above definition; no empty rules needed */

#fullscreenToggle .icon {
  /* icons are inline within the button; remove absolute positioning */
  position: static;
  width: 30px;
  height: 30px;
}

.mobile #fullscreenToggle .icon {
  width: 34px;
  height: 34px;
}

#fullscreenToggle .icon.on {
  display: none;
}

#fullscreenToggle .icon.off {
  display: block;
}

#fullscreenToggle.enabled .icon.on {
  display: block;
}

#fullscreenToggle.enabled .icon.off {
  display: none;
}

#autorotateToggle {
  display: inline-flex;
  position: static;
  width: 40px;
  height: 40px;
  padding: 6px;
  background-color: #9676aa;
  align-items: center;
  justify-content: center;
}

.mobile #autorotateToggle {
  width: 50px;
  height: 50px;
}

/* If there is a fullscreen button, autorotate must placed a bit to the left */
/* autorotate positioning is handled by the flex container; remove manual right offsets */

#autorotateToggle .icon {
  position: static;
  width: 30px;
  height: 30px;
}

.mobile #autorotateToggle .icon {
  width: 34px;
  height: 34px;
}

#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: 8px;
  left: 8px;
  width: 40px;
  height: 40px;
  padding: 6px;
  background-color: #9676aa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile #sceneListToggle {
  width: 50px;
  height: 50px;
}

#sceneListToggle .text {
  position: absolute;
  top: 5px;
  left: 15px;
  width: 100%;
  line-height: 30px;
}

#sceneListToggle .icon {
  position: static;
  width: 28px;
  height: 28px;
}

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

/* --- BASIS MENU STRUCTUUR --- */
#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;
  font-family: "DM Sans", sans-serif;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  background-color: rgb(150, 118, 170); /* paars */
}

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

/* Mobiel gedrag */
.mobile #sceneList {
  padding-top: 50px;
  width: 100%;
  height: 100%;
  left: -100%;
  transition: margin-left 0.5s ease-in-out;
}
.mobile #sceneList.enabled {
  margin-left: 100%;
}
.mobile #sceneList .scenes {
  height: 100%;
}

/* --- HUISSTIJL --- */

/* Titel bovenaan menu */
#sceneList::before {
  content: "Virtuele tour";
  display: block;
  font-family: "eight", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.4rem;
  color: rgb(241, 246, 231); /* lichtgroen accent */
  text-align: left;
  padding: 10px 15px 5px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  margin-bottom: 10px;
}

/* Achtergrondlijst */
#sceneList .scenes {
  width: 100%;
  padding: 5px 0 15px;
  border-bottom-right-radius: 12px;
}

/* Categorieën (zoals Faciliteiten, Vakantiepark) */
#sceneList .category {
  font-weight: 700; /* bold DM Sans */
  color: rgb(241, 246, 231);
  padding: 10px 15px 5px;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-top: 12px;
  text-transform: none;
}

/* Scènes (links) */
#sceneList .scene {
  display: block;
  width: 100%;
  height: 34px;
  text-decoration: none;
  transition: all 0.25s ease;
}

#sceneList .scene .text {
  width: 100%;
  height: 100%;
  padding: 0 15px;
  line-height: 34px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 0.95rem;
}

/* Hover + actieve scène */
.no-touch #sceneList .scene:hover,
#sceneList .scene.current {
  background-color: rgb(224, 121, 107); /* roze accent */
  color: #fff;
  cursor: pointer;
}

/* Mobiel: iets groter klikvlak */
.mobile #sceneList .scene {
  height: 44px;
}
.mobile #sceneList .scene .text {
  line-height: 44px;
}

/* Scrollbar subtiel */
#sceneList::-webkit-scrollbar {
  width: 6px;
}
#sceneList::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}
#sceneList::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.5);
}

/* Verberg bij single scene */
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: 30px;
  height: 30px;
}

.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: #9676aa;
  background-color: #9676aa;

  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: #9676aa;
  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: 20px;
  height: 20px;
  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: #9676aa;
  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:#9676aa;
  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: #9676aa;
  background-color: #9676aa;
  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: #9676aa;
  background-color: #9676aa;
  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;
}

/* Responsive embed for YouTube/video inside info hotspot */
.info-hotspot-text .video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}
.info-hotspot-text .video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.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;
/* viewControlButton-7 removed */
  bottom: 0;
  left: 50%;
  width: 40px;
/* deviceMotionToggle styles removed */


  height: 40px;
  padding: 5px;
  background-color:#9676aa;
  background-color:#9676aa;
}

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

/* Ensure the device motion toggle is available on small screens */
/* mobile device motion styles removed */

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


/* Slide-and-fade animation for logo */
@keyframes logo-enter {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
  }
  60% {
    opacity: 1;
    transform: translateY(4px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Achtergrond overlay (verborgen standaard) */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Wanneer actief → zichtbaar */
.overlay.active {
  visibility: visible;
  opacity: 1;
}

/* Pop-up venster */
.popup {
  background: #f1f6e7;
  padding: 20px;
  border-radius: 12px;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.popup h1 {
  font-family: "eight", sans-serif;
  font-weight: 600;
  font-style: normal;
  color: #e0796b; /* of pas aan naar wens */
}

.popup p {
  font-weight: 400;
  font-size: 14px;
  color: #333;
}


.overlay.active .popup {
  transform: scale(1);
}

.popup button {
  margin-top: 15px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: #9676aa;
  color: white;
  cursor: pointer;
}

.overlay {
  position: fixed;
  inset: 0; /* vult hele scherm */
  display: flex;
  align-items: center;     /* verticaal centreren */
  justify-content: center; /* horizontaal centreren */
}

.popup {
  color: black;   /* alles in de popup wordt zwart */
}

.popup-logo {
  width: 40%;           /* pas dit aan naar gewenste grootte */
  display: block;        /* zorgt dat het logo op een eigen regel staat */
  margin: 0 auto 15px;   /* centreren + ruimte onder logo */
}

/* Plattegrond knop (zelfde stijl als andere knoppen)
   Laat de knop in de #topRightControls flexcontainer meeliften
   in plaats van absolute positionering te gebruiken. */
#mapToggle {
  /* plaatsing: laat de flex-container bepalen */
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 5px;
  background-color: #9676aa;
  cursor: pointer;
}


/* Volgt de algemene icon-setup zodat het precies hetzelfde oogt als andere knoppen */
#mapToggle .icon {
  width: 30px;
  height: 30px;
  object-fit: cover;
}

/* Container voor alle knoppen rechtsboven */
#topRightControls {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 10px; /* ruimte tussen knoppen */
  align-items: center;
  z-index: 1000; /* stacking context for children */
  min-width: 160px; /* keep enough room so buttons don't overlap */
}

/* Zorg dat alle knoppen dezelfde stijl hebben */
#topRightControls a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #9676aa;
  border-radius: 4px;
  cursor: pointer;
  z-index: auto;
}

/* Icon-afmetingen */
#topRightControls img.icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}


/* Mobile adjustments: larger, more tappable, better contrast on top of panorama */
.mobile #topRightControls {
  top: 6px;
  right: 6px;
  gap: 8px;
  width: 44px;
  height: 44px;
  padding: 6px 4px; /* smaller padding to save horizontal space */
  border-radius: 4; /* remove rounded container so it doesn't push layout */
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  flex-wrap: nowrap; /* keep buttons in a single row */
  white-space: nowrap;
  background-color: #9676aa;
  border-radius: 4px;
}

/* Hide title bar on mobile: only keep scene list toggle on the top-left */
.mobile #titleBar {
  display: none !important;
}

/* Ensure the scene list toggle remains visible and positioned top-left */
.mobile #sceneListToggle {
  display: block !important;
  top: 6px;
  left: 6px;
  width: 44px;
  height: 44px;
  padding: 6px;
  z-index: 10000;
  background-color: #9676aa;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Remove top offset padding that reserved space for the titlebar */
#pano {
  top: 0; /* ensure pano uses full height when titlebar hidden */
}

.mobile #topRightControls a {
  width: 50px;
  height: 50px;
  padding: 8px;
  background-color: #9676aa;
  border-radius: 0; /* remove rounded corners for consistency */
}

.mobile #topRightControls img {
  width: 34px;
  height: 34px;
}

/* Ensure mapToggle inherits the mobile sizing as well */
.mobile #mapToggle {
  width: 50px;
  height: 50px;
}

/* avoid accidental overlap with the scene list toggle on very small screens */
.mobile.body-multiple-scenes #topRightControls {
  right: 56px; /* nudge left a bit if scene list exists on the left */
}

/* Mobile-only hamburger button */
.mobile-only {
  display: none;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 56px; /* under status/title area */
  right: 8px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  border-radius: 6px;
  padding: 8px;
  z-index: 12000;
  display: none;
  min-width: 140px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.mobile-menu-overlay.active {
  display: block;
}

.mobile-menu-overlay a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: #fff;
  text-decoration: none;
}

.mobile-menu-overlay img.menu-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.mobile-menu-overlay .menu-label {
  font-size: 15px;
}

.mobile-menu-overlay a:hover {
  background: rgba(255,255,255,0.04);
}

/* Show only the hamburger on mobile, hide the individual controls */
.mobile #topRightControls a:not(#mobileMenuToggle) {
  display: none !important;
}
.mobile .mobile-only {
  display: inline-flex !important;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: #9676aa;
  color: #fff;
  border-radius: 4px;
}
/* On mobile we show only the hamburger menu (single block) and hide the full controls container
   This prevents two separate visual blocks appearing. */
.mobile #topRightControls {
  display: none !important;
}

/* Ensure hamburger is visible on .mobile and hidden otherwise */
.mobile .mobile-only {
  display: inline-flex !important;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: #9676aa;
  color: #fff;
  border-radius: 4px;
  z-index: 11001;
}

/* Ensure mobile hamburger sits above panorama and overlays */
#mobileMenuToggle {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 12000;
}

body:not(.mobile) .mobile-only {
  display: none !important;
}




/* Overlay voor plattegrond */
#mapOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 11000;
}
#mapOverlay.active {
  visibility: visible;
  opacity: 1;
}

/* Inhoud popup */
.map-popup {
  background: #fff;
  border-radius: 12px;
  max-width: 80vw;   /* maximaal 80% van het schermbreedte */
  max-height: 80vh;  /* maximaal 80% van het schermhoogte */
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  color: #000;
  position: relative;
  animation: popup-scale 0.3s ease;
}
.map-header {
  background: #9676aa;
  color: #fff;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  position: relative;
}
.map-close {
  position: absolute;
  top: 8px;
  right: 12px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.map-image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 70vh; /* voorkomt dat hij te hoog wordt */
  display: block;
  margin: 0 auto;
  object-fit: contain; /* zorgt dat het hele beeld zichtbaar blijft */
}

.map-container {
  position: relative;
  display: inline-block;
}

.map-point {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #9676aa;
  border: 2px solid white;
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, background 0.2s ease;
}

/* Actieve scene op de kaart */
.map-point.active {
  background: #ffffff;
  border-color: #9676aa;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%) scale(1.3);
}


/* Eerste punt */
.map-point {
  top: 31.83%;
  left: 49.46%;
}

/* Tweede punt */
.point2 {
  top: 55.55%;
  left: 36.07%;
}
.point3 {
  top: 59.56%;
  left: 28.90%;
}

/* Tweede punt */
.point4 {
  top: 36.23%;
  left: 14.56%;
}

.point5 {
  top: 44.07%;
  left: 24.84%;
}

.point6 {
  top: 41.58%; 
  left: 37.96%;
}

.point7 {
  top: 14.42%;
  left: 23.62%;
}

.point8 {
  top: 9.64%;
  left: 46.21%;
}

.point9 {
  top: 38.91%; 
  left: 54.19%;
}

.point10 {
  top: 58.99%; 
  left: 56.36%;
}

.point11 {
  top: 18.25%; 
  left: 83.82%;
}

.map-point:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%) scale(1.2);
}


/* Animatie */
@keyframes popup-scale {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Categorie-kopjes in scenelijst */
#sceneList .category {
  padding: 8px 15px;
  font-weight: 700;
  background: rgba(255,255,255,0.1);
  color: #fff;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-top: 1px solid #9676aa;
  border-bottom: 1px solid #9676aa;
}

/* Altijd zichtbaar label boven info-hotspots */
.info-hotspot-label {
  position: absolute;
  bottom: 48px; /* net boven het icoon */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none; /* klik gaat naar hotspot zelf */
  text-align: center;
}

/* --- Mobiele info-hotspot popup kleiner maken --- */
@media (max-width: 768px) {
  .info-hotspot-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 85vw;          /* breedte aanpassen */
    max-width: 400px;     /* maximale breedte */
    max-height: 70vh;     /* hoogte beperken */
    transform: translate(-50%, -50%);
    background: transparent !important;
    color: #fff;
    border-radius: 10px;
    padding: 15px;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  }

  .info-hotspot-modal .info-hotspot-header {
    justify-content: space-between;
    align-items: center;
  }

  .info-hotspot-modal .info-hotspot-title {
    font-size: 1rem;
    font-weight: 600;
  }

  .info-hotspot-modal .info-hotspot-text {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .info-hotspot-close-wrapper img {
    width: 20px;
    height: 20px;
  }
}

/* --- Plan je verblijf knop (desktop & mobiel) --- */
.plan-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #9676aa;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 9999px;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(3px);
}

.plan-btn:hover {
  background: #8b73a5;
  transform: scale(1.05);
}

/* --- HARD RESET voor mobiele weergave van Plan-knop --- */
@media screen and (max-width: 600px) {
  /* alleen icoon tonen */
  a.plan-btn {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    display: flex !important;
  }

  /* label keihard verbergen */
  a.plan-btn span.label {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
  }

  /* toon label tijdelijk bij tik of hover */
  a.plan-btn:active span.label,
  a.plan-btn:hover span.label {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    position: absolute !important;
    bottom: 60px;
    right: 0;
    background: #9676aa;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    transition: opacity 0.25s ease;
  }
}

/* 📱 Maak hotspots kleiner op mobiele schermen */
@media (max-width: 600px) {
  /* Navigatie-hotspots (pijltjes) */
  .link-hotspot {
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
  }

  .link-hotspot-icon {
    width: 100%;
    height: 100%;
  }

  /* Info-hotspots (informatie-icoontjes) */
  .info-hotspot .info-hotspot-header {
    width: 30px;
    height: 30px;
    border-radius: 15px;
  }

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

  .info-hotspot .info-hotspot-icon {
    width: 80%;
    height: 80%;
  }
}



body {
  position: relative;
}


