/* === hotspot.css — Hotspot System (Nav + Artifact) + Gallery === */

/* 12. HỆ THỐNG HOTSPOT PREMIUM PREVIEW (IMAGE 1, 2, 3) */
/* Cấu trúc này nhắm vào các hotspot mặc định của Pano2VR và tiêm nhiễm giao diện mới */

/* 12. HỆ THỐNG HOTSPOT PREMIUM PREVIEW V2 - FIX OVERLAP & HOT ANIMS */
.ggskin_hotspot {
  width: 70px !important;
  height: 70px !important;
  overflow: visible !important;
  cursor: pointer !important;
  z-index: 10; /* MẶC ĐỊNH THẤP */
}

/* KHI DI CHUỘT VÀO: ĐẨY TOÀN BỘ CỤM LÊN TRÊN CÙNG ĐỂ KHÔNG BỊ CÁC HOTSPOT KHÁC CHE */
.ggskin_hotspot:hover {
  z-index: 1000000 !important;
}

/* Sóng âm lan tỏa (Ripple Effect) cho Icon Hotspot */
.epic-hotspot-wrapper::before,
.epic-hotspot-wrapper::after {
  content: "";
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(218, 37, 29, 0.5);
  animation: hotspotRipple 3s infinite ease-out;
  pointer-events: none;
  z-index: 1;
}

.epic-hotspot-wrapper::after {
  animation-delay: 1.5s;
}

@keyframes hotspotRipple {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

.epic-hotspot-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-origin: center center;
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  overflow: visible !important;
  z-index: 5;
}

/* Icon bình thường - Đã thiết kế lại rực rỡ hơn V3 */
.epic-hotspot-icon {
  width: 48px;
  height: 48px;
  /* Nền Gradient Đỏ sẫm cổ điển */
  background: radial-gradient(circle at 30% 30%, #ff5e57, #da251d);
  border: 2.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow:
    0 8px 30px rgba(218, 37, 29, 0.6),
    inset 0 2px 5px rgba(255, 255, 255, 0.4);
  z-index: 10;
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  animation: iconFloating 4s infinite ease-in-out;
}

/* Biểu tượng mũi tên/người đi bộ bên trong icon */
.epic-hotspot-icon svg {
  width: 24px;
  height: 24px;
  fill: #ffd700;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: transform 0.4s;
}

@keyframes iconFloating {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 35px rgba(218, 37, 29, 0.3);
  }
  50% {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 20px 45px rgba(218, 37, 29, 0.5);
  }
}

/* Màn hình Preview - Fix lỗi đè Title */
.epic-hotspot-preview {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255, 255, 255, 0.9); /* VIỀN TRẮNG MỎNG THEO YÊU CẦU */
  opacity: 0;
  transform: scale(0.3) translateY(0);
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
  z-index: 15;
  pointer-events: none;
}

/* Title Box - Đẩy xa hơn để không bị đè */
.epic-hotspot-label {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) translateY(30px) scale(0.5);
  background: linear-gradient(
    135deg,
    rgba(14, 42, 71, 0.98),
    rgba(2, 20, 39, 0.98)
  );
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.6); /* VIỀN TRẮNG MỎNG ĐỒNG BỘ */
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  z-index: 20;
  pointer-events: none;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* HIỆU ỨNG HOVER CHI TIẾT */
.ggskin_hotspot:hover .epic-hotspot-wrapper {
  z-index: 999999;
}

.ggskin_hotspot:hover .epic-hotspot-icon {
  opacity: 0;
  transform: scale(0.1);
}

/* Preview nở rộng lên trên, nhãn rơi xuống dưới - CÂN BẰNG KHOẢNG CÁCH */
.ggskin_hotspot:hover .epic-hotspot-preview {
  opacity: 1;
  width: 190px;
  height: 190px;
  transform: scale(1) translateY(-100px); /* Đẩy lên cao hơn một chút so với bản trước */
}

.ggskin_hotspot:hover .epic-hotspot-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  bottom: -30px; /* Nới lỏng khoảng cách phía dưới */
}

/* Xóa sóng khi hover */
.ggskin_hotspot:hover .epic-hotspot-wrapper::before,
.ggskin_hotspot:hover .epic-hotspot-wrapper::after {
  display: none;
}

/* ── TOUCH FIX: .touched class cho mobile (JS toggle) ── */
.ggskin_hotspot.touched .epic-hotspot-wrapper {
  z-index: 999999;
}
.ggskin_hotspot.touched .epic-hotspot-icon {
  opacity: 0;
  transform: scale(0.1);
}
.ggskin_hotspot.touched .epic-hotspot-preview {
  opacity: 1;
  width: 160px;
  height: 160px;
  transform: scale(1) translateY(-90px);
}
.ggskin_hotspot.touched .epic-hotspot-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  bottom: -30px;
  /* Giới hạn chiều rộng label trên mobile để không tràn */
  white-space: normal;
  max-width: 200px;
  text-align: center;
  font-size: 13px;
  padding: 10px 16px;
}
.ggskin_hotspot.touched .epic-hotspot-wrapper::before,
.ggskin_hotspot.touched .epic-hotspot-wrapper::after {
  display: none;
}

/* ═══════════════════════════════════════════════════════════
   MINIMAL HOTSPOT STYLE — Hình oval sàn cho indoor nodes
   Không che khuất panorama, hover hiện ảnh + label phía trên
   ═══════════════════════════════════════════════════════════ */

/* Container minimal — rộng hơn (oval ngang) */
.ggskin_hotspot.minimal-hotspot-style {
  width: 90px !important;
  height: 50px !important;
}

.minimal-hotspot-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible !important;
  z-index: 5;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Hình Oval chính — vòng sáng trên sàn */
.minimal-oval {
  width: 80px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.15) 60%, transparent 100%);
  border: 4px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.9),
    0 0 45px rgba(255, 255, 255, 0.5),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
  z-index: 10;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  animation: ovalBreath 3.5s infinite ease-in-out;
  cursor: pointer;
  transform: perspective(140px) rotateX(58deg);
}

/* Final close-less/red-white overrides */
#galleryToggleBtn:not(.menu-action-fab) {
  background: rgba(255, 255, 255, 0.86) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.22),
    inset 0 0 12px rgba(255, 255, 255, 0.42) !important;
}

#galleryToggleBtn:not(.menu-action-fab):hover {
  background: #ffffff !important;
  border-color: rgba(218, 37, 29, 0.45) !important;
  box-shadow: 0 12px 34px rgba(218, 37, 29, 0.22) !important;
}

#galleryToggleBtn:not(.menu-action-fab) svg path {
  stroke: #da251d !important;
}

.gallery-close {
  display: none !important;
}

.museum-gallery-overlay [id*="close" i],
.museum-gallery-overlay [class*="close" i] {
  display: none !important;
}

@keyframes ovalBreath {
  0%, 100% {
    transform: perspective(140px) rotateX(58deg) scale(1);
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7), 0 0 45px rgba(255, 255, 255, 0.3);
  }
  50% {
    transform: perspective(140px) rotateX(58deg) scale(1.08);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.95), 0 0 60px rgba(255, 255, 255, 0.5);
  }
}

/* Vòng sóng tỏa ra từ oval */
.minimal-hotspot-wrapper::before {
  content: '';
  position: absolute;
  width: 80px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  animation: ovalRing 3s infinite ease-out;
  pointer-events: none;
  z-index: 1;
  transform: perspective(140px) rotateX(58deg);
}

@keyframes ovalRing {
  0% { transform: perspective(140px) rotateX(58deg) scale(1); opacity: 0.5; }
  100% { transform: perspective(140px) rotateX(58deg) scale(2); opacity: 0; }
}

/* Preview ảnh — hình tròn nổi lên trên oval khi hover */
.minimal-hotspot-preview {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 3px solid rgba(255, 255, 255, 0.8);
  opacity: 0;
  transform: scale(0.3) translateY(0);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  z-index: 15;
  pointer-events: none;
}

/* Label mô tả — nằm trên preview */
.minimal-hotspot-label {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-90px) scale(0.6);
  background: linear-gradient(135deg, rgba(10, 20, 40, 0.92), rgba(5, 10, 25, 0.92));
  backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
  z-index: 25;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ── HOVER EFFECT ─────────────────────────────────── */
.ggskin_hotspot:hover .minimal-hotspot-wrapper {
  z-index: 999999;
}

.ggskin_hotspot:hover .minimal-oval {
  border-color: rgba(255, 215, 0, 0.8);
  background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 60%, transparent 100%);
  box-shadow:
    0 0 25px rgba(255, 215, 0, 0.35),
    0 0 50px rgba(255, 215, 0, 0.1);
  animation: none;
}

.ggskin_hotspot:hover .minimal-hotspot-wrapper::before {
  display: none;
}

/* Preview phóng to + bay lên trên */
.ggskin_hotspot:hover .minimal-hotspot-preview {
  opacity: 1;
  width: 140px;
  height: 140px;
  transform: scale(1) translateY(-110px);
}

/* Label hiện ra phía trên preview */
.ggskin_hotspot:hover .minimal-hotspot-label {
  opacity: 1;
  transform: translateX(-50%) translateY(-225px) scale(1);
}

/* ── TOUCH FIX: mobile ─────────────────────────────── */
.ggskin_hotspot.touched .minimal-hotspot-wrapper {
  z-index: 999999;
}
.ggskin_hotspot.touched .minimal-oval {
  border-color: rgba(255, 215, 0, 0.8);
  animation: none;
}
.ggskin_hotspot.touched .minimal-hotspot-wrapper::before {
  display: none;
}
.ggskin_hotspot.touched .minimal-hotspot-preview {
  opacity: 1;
  width: 120px;
  height: 120px;
  transform: scale(1) translateY(-90px);
}
.ggskin_hotspot.touched .minimal-hotspot-label {
  opacity: 1;
  transform: translateX(-50%) translateY(-185px) scale(1);
  white-space: normal;
  max-width: 200px;
  text-align: center;
  font-size: 12px;
  padding: 8px 14px;
}

/* ARROW HOTSPOT STYLE — mũi tên lướt tới */
.ggskin_hotspot.arrow-hotspot-style {
  width: 110px !important;
  height: 90px !important;
  overflow: visible !important;
}

.arrow-hotspot-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
  z-index: 5;
}

.arrow-hotspot-lane {
  width: 92px;
  height: 70px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: perspective(140px) rotateX(58deg) rotate(var(--arrow-rotate, 0deg));
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.85));
}

.arrow-hotspot-chevron {
  position: absolute;
  width: 44px;
  height: 44px;
  border-right: 6px solid rgba(255, 255, 255, 0.96);
  border-bottom: 6px solid rgba(255, 255, 255, 0.96);
  transform: rotate(45deg);
  opacity: 0;
  animation: arrowHotspotSlide 1.8s infinite ease-out;
}

.arrow-hotspot-chevron:nth-child(1) { animation-delay: 0s; }
.arrow-hotspot-chevron:nth-child(2) { animation-delay: 0.28s; }
.arrow-hotspot-chevron:nth-child(3) { animation-delay: 0.56s; }

@keyframes arrowHotspotSlide {
  0% {
    transform: translateY(-24px) rotate(45deg) scale(0.72);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: translateY(24px) rotate(45deg) scale(1.08);
    opacity: 0;
  }
}

.arrow-hotspot-label {
  position: absolute;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%) translateY(12px) scale(0.9);
  background: rgba(14, 42, 71, 0.96);
  color: #fff;
  padding: 8px 16px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s ease;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.arrow-hotspot-preview {
  position: absolute;
  left: 50%;
  bottom: 124px;
  width: 150px;
  height: 84px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateX(-50%) translateY(14px) scale(0.86);
  pointer-events: none;
  transition: all 0.28s ease;
}

.ggskin_hotspot.arrow-hotspot-style:hover .arrow-hotspot-label,
.ggskin_hotspot.arrow-hotspot-style.touched .arrow-hotspot-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.ggskin_hotspot.arrow-hotspot-style:hover .arrow-hotspot-preview,
.ggskin_hotspot.arrow-hotspot-style.touched .arrow-hotspot-preview {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* 12. HỆ THỐNG THƯ VIỆN ẢNH (ULTRA-STABLE GRID) */
#galleryToggleBtn:not(.menu-action-fab) {
  position: fixed;
  bottom: 495px;
  right: 45px;
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1.5px solid rgba(255, 215, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 4000;
  border-radius: 50%;
  transition: var(--transition-smooth);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

#galleryToggleBtn:not(.menu-action-fab):hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.3);
  border-color: #ffd700;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

#galleryToggleBtn:not(.menu-action-fab) svg {
  width: 32px;
  height: 32px;
}

#galleryToggleBtn:not(.menu-action-fab) svg path {
  stroke: #ffd700;
}

.museum-gallery-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  backdrop-filter: none;
  transition: all 0.5s ease;
}

.museum-gallery-overlay.active {
  visibility: visible;
  pointer-events: auto;
}

.gallery-container {
  width: calc(100vw - 160px);
  height: 78vh;
  max-width: 1100px;
  margin-right: 120px;
  background: #ffffff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: none;
  border: none;
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.museum-gallery-overlay.active .gallery-container {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.gallery-header {
  padding: 30px 45px;
  background: #ffffff;
  border-bottom: 2px solid #f8f8f8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.gallery-title {
  font-size: 28px;
  font-weight: 800;
  color: #111;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.gallery-close {
  width: 45px;
  height: 45px;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
  font-size: 20px;
  color: #666;
}

.gallery-close:hover {
  background: #da251d;
  color: #fff;
  transform: rotate(90deg);
}

/* GRID CHỐNG BỂ FORM (THE CORE) */
.gallery-grid {
  flex: 1;
  overflow-y: auto;
  padding: 40px;
  display: grid;
  /* Cố định chiều rộng cột tối thiểu 320px, tự động fill cực đẹp */
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  /* Cố định chiều cao hàng để không bị nhấp nhô */
  grid-auto-rows: max-content;
  gap: 35px;
  background: #fafafa;
}

.gallery-item {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  transition: all 0.5s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* KHÓA TỈ LỆ KHUNG HÌNH - GIẢI PHÁP TRIỆT ĐỂ */
.gallery-img-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9; /* Khóa chặt tỉ lệ 16:9 cho mọi ảnh */
  overflow: hidden;
  position: relative;
  background: #eee;
}

.gallery-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 1.5s ease;
}

.gallery-item:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(218, 37, 29, 0.15);
  border-color: #da251d;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

.gallery-footer {
  padding: 22px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: #fff;
  flex: 1;
}

.gallery-item-title {
  font-size: 16px;
  font-weight: 800;
  color: #000;
  text-align: center;
  line-height: 1.4;
  /* Giới hạn 2 dòng để không vỡ layout khi title quá dài */
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}

.gallery-visit-btn {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(218, 37, 29, 0.05);
  color: #da251d;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  transition: 0.3s;
}

.gallery-item:hover .gallery-visit-btn {
  background: #da251d;
  color: white;
}

/* 13. HỆ THỐNG HOTSPOT HIỆN VẬT (ARTIFACT SYSTEM) */
/* 13. HỆ THỐNG HOTSPOT HIỆN VẬT (TRONG SUỐT) */
.artifact-hotspot-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  background: radial-gradient(circle, #ffd700 0%, #b8860b 100%);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.55);
  cursor: pointer;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.artifact-hotspot-wrapper::after {
  content: "i";
  color: #ffffff;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.38);
}

.artifact-hotspot-wrapper::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 1.5px solid #ffd700;
  border-radius: 50%;
  animation: artifactPulse 2s infinite;
}

@keyframes artifactPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* 14. STYLE RIÊNG CHO HOTSPOT TẠI ẢNH 1 (STEM-LABEL DESIGN) */
.special-gateway-hotspot {
  width: 20px !important;
  height: 20px !important;
  /* Căn đúng tâm — Pano2VR đặt hotspot ở top-left corner nên cần offset về tâm */
  transform: translate(-50%, -50%) !important;
  overflow: visible !important;
}

/* Hiển thị Icon và Preview đồng bộ với thiết kế card */
.special-gateway-hotspot .epic-hotspot-wrapper .epic-hotspot-icon {
  display: none !important; /* Ẩn icon tròn đỏ, dùng flycam-icon thay thế */
}
.special-gateway-hotspot .epic-hotspot-wrapper .epic-hotspot-preview {
  display: block !important;
  opacity: 0 !important; /* ẨN MẶC ĐỊNH THEO YÊU CẦU */
  visibility: hidden !important;
  width: 220px !important; /* CHUYỂN SANG HÌNH CHỮ NHẬT */
  height: 124px !important; 
  border-radius: 12px !important; /* KHÔNG CÒN LÀ HÌNH TRÒN */
  transform: scale(0.5) translateY(-180px) !important;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1) !important;
  z-index: 30; /* ẢNH NẰM TRÊN CÙNG */
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: none !important; /* XÓA BỎ BÓNG TỐI DƯỚI ẢNH THEO YÊU CẦU */
}

/* ẨN SÓNG ĐỎ CHO HOTSPOT FLYCAM */
.special-gateway-hotspot .epic-hotspot-wrapper::before,
.special-gateway-hotspot .epic-hotspot-wrapper::after {
  display: none !important;
}

/* HOVER HOẶC CHẠM (MOBILE) THÌ HIỆN ẢNH CHỮ NHẬT LÊN */
.special-gateway-hotspot:hover .epic-hotspot-wrapper .epic-hotspot-preview,
.special-gateway-hotspot.touched .epic-hotspot-wrapper .epic-hotspot-preview {
  opacity: 1 !important;
  visibility: visible !important;
  transform: scale(1) translateY(-230px) !important;
}

/* Loại bỏ chấm neo cũ */
.special-gateway-hotspot::after {
  display: none !important;
}

/* Loại bỏ đường kẻ cũ */
.special-gateway-hotspot::before {
  display: none !important;
}

/* Hộp Label — luôn hiển thị, không cần hover */
.special-gateway-hotspot .epic-hotspot-label {
  opacity: 1 !important;
  visibility: visible !important;
  position: absolute !important;
  bottom: 90px !important; /* GIÃN CÁCH VỚI MÁY BAY */
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: rgba(14, 42, 71, 0.95);
  color: #ffffff !important;
  padding: 10px 30px !important;
  border-radius: 12px !important;
  border: 1.5px solid #0a1f33 !important; /* VIỀN ĐẬM HƠN NHIỀU THEO YÊU CẦU */
  white-space: nowrap !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease !important;
  z-index: 20; /* CHỮ NẰM GIỮA */
}

/* Biểu tượng Flycam nằm dưới nhãn */
.special-gateway-hotspot .flycam-icon {
  position: absolute;
  bottom: 5px; /* DỜI XUỐNG THẤP */
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 70px;
  /* background được inject bởi JS từ data.json hotspotConfig.flycamIcon */
  background-size: contain;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.4));
  animation: flycamHover 3s infinite ease-in-out;
  z-index: 15; /* MÁY BAY NẰM DƯỚI CÙNG */
}

@keyframes flycamHover {
  0%, 100% { transform: translate(-50%, 0) rotate(0deg); }
  50%       { transform: translate(-50%, -10px) rotate(2deg); }
}

/* Hover hoặc Chạm: nhãn nổi lên và đổi sang tông vàng sang trọng */
.special-gateway-hotspot:hover .epic-hotspot-label,
.special-gateway-hotspot.touched .epic-hotspot-label {
  background: #ffd700; /* ĐỔI SANG MÀU VÀNG THEO YÊU CẦU */
  color: #000000 !important; /* CHỮ ĐEN CHO RÕ TRÊN NỀN VÀNG */
  transform: translateX(-50%) translateY(-8px) scale(1.05) !important;
  border-color: #ffffff !important; /* VIỀN TRẮNG SÁNG BẬT TÔNG */
  box-shadow: 0 15px 35px rgba(255, 215, 0, 0.5) !important;
}

.special-gateway-hotspot:hover .flycam-icon,
.special-gateway-hotspot.touched .flycam-icon {
  transform: translate(-50%, -15px) scale(1.1) rotate(-2deg);
  filter: drop-shadow(0 15px 15px rgba(255, 215, 0, 0.5));
}

/* ── HOTSPOT LABEL RESPONSIVE — mobile không tràn khung ──────────── */

@media (max-width: 768px) {

/* Label khi hover/touched trên mobile — xuống dòng, không tràn */
  .ggskin_hotspot.touched .epic-hotspot-label,
  .ggskin_hotspot:hover .epic-hotspot-label {
    white-space: normal;
    max-width: min(220px, 55vw);
    text-align: center;
    font-size: 13px;
    padding: 10px 14px;
    line-height: 1.4;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  /* Flycam label — luôn hiển thị, cũng cần xuống dòng trên mobile */
  .special-gateway-hotspot .epic-hotspot-label {
    white-space: normal !important;
    max-width: min(200px, 52vw) !important;
    font-size: 14px !important;
    padding: 8px 16px !important;
    text-align: center !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    line-height: 1.4 !important;
  }

  /* Preview nhỏ hơn cho phù hợp màn hình nhỏ */
  .ggskin_hotspot.touched .epic-hotspot-preview {
    width: 130px;
    height: 130px;
    transform: scale(1) translateY(-75px);
  }

  /* Minimal hotspot label cũng giới hạn */
  .ggskin_hotspot.touched .minimal-hotspot-label,
  .ggskin_hotspot:hover .minimal-hotspot-label {
    white-space: normal;
    max-width: min(200px, 50vw);
    text-align: center;
    font-size: 11px;
    line-height: 1.4;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

}

@media (max-width: 480px) {

.ggskin_hotspot.touched .epic-hotspot-label,
  .ggskin_hotspot:hover .epic-hotspot-label {
    max-width: min(180px, 50vw);
    font-size: 12px;
    padding: 8px 12px;
  }

  .special-gateway-hotspot .epic-hotspot-label {
    max-width: min(170px, 48vw) !important;
    font-size: 12px !important;
    padding: 7px 12px !important;
  }

  .ggskin_hotspot.touched .epic-hotspot-preview {
    width: 110px;
    height: 110px;
    transform: scale(1) translateY(-65px);
  }

}
