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

#panorama {
  width: 100%;
  height: 100vh;
}

.scene-label {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.lang-switch {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 25;
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.lang-btn {
  border: none;
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lang-btn.active {
  background: #ffffff;
  color: #111;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

.nav-left {
  left: 16px;
}

.nav-right {
  right: 16px;
}

.altitude-switch {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 10px;
  background: rgba(0, 0, 0, 0.45);
  padding: 8px 10px;
  border-radius: 14px;
  backdrop-filter: blur(4px);
}

.alt-btn {
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.alt-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.alt-btn.active {
  background: #ffffff;
  color: #111;
  font-weight: 700;
}

.video-open-btn {
  position: absolute;
  right: 18px;
  bottom: 20px;
  z-index: 20;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  backdrop-filter: blur(4px);
}

.video-open-btn:hover {
  background: rgba(0, 0, 0, 0.78);
}

.panel-toggle-btn {
  position: absolute;
  left: 18px;
  bottom: 20px;
  z-index: 20;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  backdrop-filter: blur(4px);
}

.panel-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.78);
}

.rotate-view-btn {
  position: absolute;
  right: 18px;
  bottom: 72px;
  z-index: 20;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  backdrop-filter: blur(4px);
  display: none;
}

.rotate-view-btn:hover {
  background: rgba(0, 0, 0, 0.78);
}

.rotate-view-btn.show {
  display: block;
}

.scene-panel {
  position: absolute;
  left: 18px;
  bottom: 72px;
  z-index: 30;
  width: min(380px, 92vw);
  max-height: 74vh;
  background: rgba(17, 17, 17, 0.92);
  color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.scene-panel.hidden {
  display: none;
}

.scene-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.scene-panel-title {
  font-size: 15px;
  font-weight: 700;
}

.scene-panel-close-btn {
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.scene-panel-close-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.scene-panel-body {
  padding: 12px;
  overflow-y: auto;
  max-height: calc(74vh - 60px);
}

.mini-map-box,
.scene-list-box {
  margin-bottom: 14px;
}

.mini-map-title,
.scene-list-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.scene-map {
  width: 100%;
  height: 230px;
  border-radius: 12px;
  overflow: hidden;
  background: #dfe7ef;
}

.map-current-scene {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.scene-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scene-list-btn {
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.scene-list-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.scene-list-btn.active {
  background: #ffffff;
  color: #111;
  font-weight: 700;
}

.scene-map-popup {
  min-width: 170px;
}

.scene-map-popup-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.scene-map-popup-buttons {
  display: flex;
  gap: 8px;
}

.scene-map-popup-buttons button {
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  background: #1f2937;
  color: #fff;
  font-size: 12px;
}

.scene-map-popup-buttons button:hover {
  background: #111827;
}

.scene-marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2563eb;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.scene-marker-dot.active {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.video-modal.hidden {
  display: none;
}

.video-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.video-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1100px, 92vw);
  max-height: 90vh;
  transform: translate(-50%, -50%);
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #181818;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.video-title {
  font-size: 16px;
  font-weight: 700;
}

.video-body {
  background: #000;
}

.park-video {
  display: block;
  width: 100%;
  max-height: calc(90vh - 56px);
  background: #000;
}

.video-close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.video-close-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 768px) {
  .scene-label {
    top: 12px;
    font-size: 13px;
    padding: 7px 12px;
  }

  .lang-switch {
    top: 58px;
    right: 10px;
    gap: 5px;
    padding: 5px;
  }

  .lang-btn {
    padding: 6px 10px;
    font-size: 11px;
  }

  .nav-btn {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }

  .nav-left {
    left: 10px;
  }

  .nav-right {
    right: 10px;
  }

  .altitude-switch {
    bottom: 16px;
    gap: 8px;
    padding: 7px 8px;
  }

  .alt-btn {
    padding: 9px 14px;
    font-size: 13px;
  }

  .panel-toggle-btn {
    left: 12px;
    bottom: 16px;
    padding: 10px 14px;
    font-size: 13px;
  }

  .video-open-btn {
    right: 12px;
    bottom: 16px;
    padding: 10px 14px;
    font-size: 13px;
  }

  .rotate-view-btn {
    right: 12px;
    bottom: 64px;
    padding: 10px 14px;
    font-size: 13px;
  }

  .scene-panel {
    left: 10px;
    right: 10px;
    bottom: 64px;
    width: auto;
    max-height: 68vh;
  }

  .scene-map {
    height: 210px;
  }

  .video-modal-content {
    width: 95vw;
  }
}