html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: sans-serif;
}

#viewer {
  width: 100%;
  height: 100%;
}

#thumbnail-strip {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 101;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  overflow-x: auto;
  max-width: 95%;
}

.thumb-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.thumb {
  width: 150px;
  height: 90px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s;
}

.thumb:hover {
  transform: scale(1.05);
}

.thumb.active {
  border-color: #00d1ff;
}

.thumb-label {
  margin-top: 5px;
  font-size: 15px;
  color: white;
  text-align: center;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#info-popup {
  position: absolute;
  transform: translate(-50%, -100%);
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  padding: 10px 15px;
  z-index: 999;
  min-width: 200px;
  max-width: 300px;
  text-align: center;
  pointer-events: auto;
}

#info-popup.hidden {
  display: none;
}

#info-popup h2 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  text-align: center;
}

#info-popup p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #555;
  text-align: center;
}

#info-popup-close {
  position: absolute;
  top: 5px;
  right: 10px;
  background: none;
  border: none;
  font-size: 18px;
  color: #888;
  cursor: pointer;
}
:root {
  --leader-length: 40px;   /* Diagonal line length */
  --leader-angle: -45deg;  /* Diagonal line angle */
}

.hotspot-wrapper {
  position: absolute; /* anchor point */
  top: 0;
  left: 0;
  transform: translate(-50%, -50%); /* center on marker */
}

/* Dot (anchor point) */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(255, 255, 255);
  border: 2px solid #fff;
  position: absolute;
  top: -6px; /* center vertically */
  left: -6px; /* center horizontally */
  z-index: 2;
}

/* Leader line from dot to vline */
.leader {
  position: absolute;
  width: 40px;
  height: 2px;
  background: #ffffff;
  left: 0;
  top: 0;
  transform: rotate(-45deg);
  transform-origin: left center;
  z-index: 1;
}

/* Connector container for vline + label */
.connector {
  position: absolute;
  left: calc(40px * 0.7071); /* diagonal end */
  top: calc(-40px * 0.7071 *2); /* start vertical at middle */
  display: flex;
  align-items: stretch;
  gap: 10px;
}

/* Vertical line */
.vline {
  width: 2px;
  background: #eeeeee;
}

/* Label box */
.label {
  background: #205791;
  color: white;
  padding: 8px 12px;
  /* border-radius: 2px; */
  font-size: 14px;
  min-width: 140px;
   border-radius:0px 10px 10px 0px;  
}


.label .subtitle {
  display: block;
  font-size: 12px;
  opacity: 0.8;
  margin-top: 4px;
}
