/* ═══════════════════════════════════════════
   Info modal (location pop-up) & 3D location buttons
   ═══════════════════════════════════════════ */

/* ── Full-screen backdrop ── */
#info-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 20000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  user-select: none;
}

#info-overlay.visible {
  display: flex;
  animation: overlayEnter 0.8s ease-out forwards;
}

#info-overlay.visible #info-modal-box {
  animation: videoSlideIn 0.7s ease-out 0.25s both;
}

#info-overlay.visible #info-close-btn {
  animation: videoSlideIn 0.5s ease-out 0.5s both;
}

/* ── Modal card ── */
#info-modal-box {
  position: relative;
  width: 50vw;
  max-height: 85vh;
  background: rgba(0, 36, 73, 0.97);
  border-radius: 1.2vmin;
  border: 2px solid rgba(180, 151, 77, 0.5);
  box-shadow: 0 0 6vmin rgba(0, 0, 0, 0.8);
  padding: 3vh 3.6vw 2.4vh;
  display: flex;
  flex-direction: column;
  gap: 1.6vmin;
  overflow: hidden;
}

/* ── Modal title ── */
#info-modal-title {
  margin: 0;
  font-size: 2.2vmin;
  font-weight: 700;
  color: #B4974D;
  text-align: center;
  letter-spacing: 0.05vmin;
}

/* ── Modal content area ── */
#info-modal-content {
  display: flex;
  gap: 2vmin;
  align-items: flex-start;
  overflow-y: auto;
  max-height: 55vh;
}

/* ── YouTube / video iframe inside modal ── */
#info-modal-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 8px;
  flex-shrink: 0;
}

#info-modal-content video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 8px;
  flex-shrink: 0;
  background: #000;
}

/* ── Text block ── */
.info-modal-text {
  flex: 1;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.5vmin;
  line-height: 1.7;
  text-align: center;
}

/* ── Side image ── */
.info-modal-image {
  width: 22vw;
  flex-shrink: 0;
  border-radius: 0.8vmin;
  object-fit: cover;
  border: 1px solid rgba(180, 151, 77, 0.3);
}

/* ── Close button ── */
#info-close-btn {
  align-self: center;
  padding: 1vh 3.6vw;
  font-size: 1.5vmin;
  font-weight: 600;
  color: #B4974D;
  background: transparent;
  border: 2px solid rgba(180, 151, 77, 0.5);
  border-radius: 0.8vmin;
  cursor: pointer;
  letter-spacing: 0.05vmin;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

#info-close-btn:hover {
  background: rgba(180, 151, 77, 0.15);
  border-color: #B4974D;
}

/* ── 3D location info buttons (in-scene) ── */
.location-btn {
  position: fixed;
  transform: translate(-50%, -50%);
  padding: 0.8vmin 2.2vmin;
  font-size: 1.4vmin;
  font-weight: 600;
  color: #FFF;
  background: #228B22;
  border: 2px solid rgba(34, 139, 34, 0.9);
  opacity: 1;
  border-radius: 0.6vmin;
  cursor: pointer;
  pointer-events: all;
  z-index: 10001;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0.2vmin 0.8vmin rgba(0, 0, 0, 0.4);
  text-shadow: 0 0.1vmin 0.3vmin rgba(0, 0, 0, 0.6);
  letter-spacing: 0.05vmin;
}

.location-btn:hover {
  background: rgba(34, 139, 34, 1);
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.location-btn:active {
  transform: translate(-50%, -50%) scale(0.98);
}
