/* =========================
   Marzipano viewer fix
========================= */

html,
body {

  height: 100%;
  width: 100%;

  margin: 0;

  overflow: hidden;

}

#pano {

  position: fixed;

  inset: 0;

}

/* =========================
   Algemene layout
========================= */

body {

  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: black;
  color: white;

}

/* =========================
   Hotspots
========================= */

.invisible-hotspot {

  cursor: pointer;

}

/* handig tijdens testen */
/*
.invisible-hotspot:hover {

  outline: 2px dashed rgba(255,255,255,0.35);

}
*/


/* =========================
   Popup overlay
========================= */

.popup-overlay {

  position: fixed;

  inset: 0;

  background: rgba(0,0,0,0.65);

  display: flex;

  justify-content: center;

  align-items: center;

  z-index: 3000;

  animation: fadeIn 0.2s ease;

}


/* =========================
   Popup basis
========================= */

.popup {

  background: rgba(25,25,25,0.96);

  padding: 22px;

  border-radius: 14px;

  width: min(500px, 90vw);

  max-height: 85vh;

  overflow: hidden;

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 12px;

}



/* =========================
   Popup varianten
========================= */

.popup img {

  max-width: 100%;

  max-height: 70vh;

  object-fit: contain;

  border-radius: 10px;

}

.popup video {

  width: 100%;

  max-height: 55vh;

  border-radius: 10px;

}

.popup-end {

  font-size: 26px;

}

.popup-end h1 {

  font-size: 42px;

  margin-bottom: 20px;

}


/* =========================
   Meters
========================= */

.popup-meters {

  background: transparent;

  box-shadow: none;

  padding: 10px;

}

.meter-panel {

  position: relative;

}

.meter-panel img {

  width: 100%;

  display: block;

  border-radius: 12px;

}

.meter-hand {

  position: absolute;

  width: 4px;

  background: #ff4444;

  transform-origin: bottom center;

  cursor: pointer;

  border-radius: 2px;

}


/* =========================
   Code input
========================= */

.popup input {

  margin-top: 10px;

  padding: 8px 10px;

  font-size: 18px;

  text-align: center;

  border-radius: 6px;

  border: none;

  width: 120px;

}
/* =========================
   Numpad layout
========================= */

#numpad {

  display: grid;

  grid-template-columns: repeat(3, 40px);

  grid-auto-rows: 60px;

  column-gap: 40px;   /* horizontale ruimte */

  row-gap: 20px;      /* verticale ruimte */

  justify-content: center;

  width: fit-content;   /* voorkomt uitrekken */

  margin: 10px auto;

}

#numpad button {

  all: unset;

  display: flex;

  justify-content: center;

  align-items: center;

  width: 55px;

  height: 55px;

  font-size: 16px;

  background: #8b8b8b;

  color: white;

  border-radius: 6px;

  cursor: pointer;

}


/* voorkomt overlap in flex popup */

.popup-phone #numpad {

  flex: 0 0 auto;

}

/* =========================
   Buttons
========================= */

.popup button {

  margin-top: 14px;

  padding: 10px 16px;

  border-radius: 8px;

  border: none;

  background: #3a86ff;

  color: white;

  font-size: 15px;

  cursor: pointer;

  transition: 0.15s;

}

.popup button:hover {

  background: #559cff;

}

.popup button:active {

  transform: scale(0.96);

}


/* =========================
   Text
========================= */

.popup h3 {

  margin-top: 0;

  margin-bottom: 10px;

  font-size: 20px;

}

.popup p {

  margin: 10px 0;

}


/* =========================
   Animaties
========================= */

@keyframes fadeIn {

  from {

    opacity: 0;

  }

  to {

    opacity: 1;

  }

}

@keyframes popupIn {

  from {

    opacity: 0;

    transform: scale(0.94);

  }

  to {

    opacity: 1;

    transform: scale(1);

  }

}
/* =========================
   Popup layout verbeteringen
========================= */

.popup {

  width: min(500px, 92vw);

  max-height: 88vh;

  display: flex;

  flex-direction: column;

  justify-content: flex-start;

}


/* content gebied */

.popup img,
.popup video {

  max-height: 50vh;

}


/* knoppen container automatisch naast elkaar */

.popup button {

  min-width: 110px;

}


/* meerdere knoppen naast elkaar */

.popup button + button {

  margin-left: 10px;

}


/* knop rij */

.popup-buttons {

  display: flex;

  justify-content: center;

  flex-wrap: wrap;

  gap: 10px;

  margin-top: 12px;

}


/* code input compacter */

.popup input {

  width: 90px;

}


/* numpad compacter */

#numpad {

  grid-template-columns: repeat(3, 60px);

  gap: 8px;

}


/* telefoon popup tekst */

#phoneMessage {

  min-height: 20px;

}


/* zorgt dat lange tekst niet te groot wordt */

.popup p {

  max-width: 100%;

  line-height: 1.4;

}


/* voorkomt dat popup hoger wordt dan scherm */

.popup {

  overflow: hidden;

}


/* animatie subtieler */

@keyframes popupIn {

  from {

    opacity: 0;

    transform: translateY(10px) scale(0.97);

  }

  to {

    opacity: 1;

    transform: translateY(0) scale(1);

  }

}
/* =========================
   Compacte formulier layout
========================= */

.popup input {

  margin: 6px 0;

}

.popup-buttons {

  margin-top: 6px;

}


/* verwijder overtollige witruimte */

.popup br {

  display: none;

}

.popup-buttons {

  display: flex;

  gap: 10px;

  justify-content: center;

  flex-wrap: wrap;

  width: 100%;

}
/* Startscherm fullscreen overlay */
.popup-start {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #111;
  color: #fff;
  font-family: sans-serif;
  text-align: left;
  padding: 40px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 0 20px rgba(0,0,0,0.7);
}

.popup-start h1 {
  font-size: 2em;
  margin-bottom: 20px;
}

.popup-start p {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.4;
}

.popup-start button {
  font-size: 1.5em;
  padding: 12px 30px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.popup-start button:hover {
  background: #45a049;
}

/* Fullscreen overlay specifiek voor startpopup */
.popup-overlay.popup-start {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.98);
  z-index: 9999;
}
.popup-start p {
  white-space: pre-line;
}
/* verberg Marzipano controls volledig */
.controls,
.control,
.control-zoom,
.control-fullscreen {
  display: none !important;
}
.fade-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  pointer-events: none;
  z-index: 9999;
}