/* LALALAY Residences 360° — 3D Spatial Hotspots (Portals & Info Diamonds) */
#hotspot-layer {
  position: fixed;
  inset: 0;
  z-index: 12;
  pointer-events: none;
}

.hotspot-node {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  transition: opacity 0.22s ease;
}

.hotspot-node.is-behind {
  opacity: 0;
  pointer-events: none;
}

.hotspot-portal-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hotspot-portal-ring {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 219, 164, 0.95) 0%, rgba(184, 93, 67, 0.85) 65%, transparent 70%);
  border: 2px solid var(--gold-light);
  box-shadow: 0 0 22px rgba(216, 179, 106, 0.7);
  display: grid;
  place-items: center;
  color: #091221;
  transition: transform 0.3s var(--ease-luxury);
}

.hotspot-portal-ring::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(243, 219, 164, 0.65);
  animation: hotspotPulse 2.4s infinite ease-out;
}

.hotspot-portal-btn:hover .hotspot-portal-ring {
  transform: scale(1.16);
}

.hotspot-info-btn {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  transform: rotate(45deg);
  background: rgba(8, 17, 31, 0.85);
  border: 1.5px solid var(--gold-light);
  box-shadow: 0 0 18px rgba(216, 179, 106, 0.48);
  display: grid;
  place-items: center;
  transition: transform 0.28s var(--ease-luxury), background 0.25s ease;
}

.hotspot-info-btn svg {
  transform: rotate(-45deg);
  color: var(--gold-light);
}

.hotspot-info-btn:hover {
  transform: rotate(45deg) scale(1.16);
  background: var(--terracotta);
}

.hotspot-label {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(7, 16, 30, 0.88);
  border: 1px solid var(--gold-border);
  backdrop-filter: blur(10px);
  color: var(--ivory);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.hotspot-info-wrap .hotspot-label {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.hotspot-info-wrap:hover .hotspot-label {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

@keyframes hotspotPulse {
  0% { transform: scale(0.92); opacity: 0.9; }
  100% { transform: scale(1.65); opacity: 0; }
}

/* Điểm ảnh tiện ích trong cảnh 360°: bong bóng ảnh phối cảnh, viền vàng nhịp sáng, số thứ tự theo chú thích */
.hotspot-amenity-btn {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold-light), #b8894a);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(243, 219, 164, 0.55);
  animation: amenityBreath 2.8s ease-in-out infinite;
  transition: transform 0.3s var(--ease-luxury);
}
.hotspot-amenity-btn img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid rgba(8, 17, 31, 0.85); }
.hotspot-amenity-btn b {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}
.hotspot-amenity-btn.is-red b { background: #c9573e; color: #fff; }
.hotspot-amenity-btn.is-blue b { background: #d6eef7; color: #0c2430; }
.hotspot-amenity-btn.is-gold b { background: #cfa36a; color: #1c1306; }
.hotspot-amenity-btn::after { content: ''; position: absolute; left: 50%; bottom: -9px; width: 2px; height: 9px; transform: translateX(-50%); background: var(--gold-light); }
.hotspot-amenity-btn:hover { transform: scale(1.18); animation-play-state: paused; }
.hotspot-amenity-wrap .hotspot-label { bottom: 70px; }

@keyframes amenityBreath {
  0%, 100% { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(243, 219, 164, 0.5); }
  50% { box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5), 0 0 0 9px rgba(243, 219, 164, 0); }
}

/* Nhãn cổng chuyển cảnh đè lên nhãn cổng khác thì tạm ẩn (tính trong tour-webgl-engine.js). */
.hotspot-portal-btn .hotspot-label { transition: opacity 0.2s ease; }
.hotspot-portal-btn .hotspot-label.is-colliding { opacity: 0; }

@media (max-width: 900px) {
  .hotspot-amenity-btn { width: 46px; height: 46px; }
  .hotspot-amenity-wrap .hotspot-label { bottom: 58px; }
  /* Màn hẹp: nhãn cổng xuống tối đa hai dòng thay vì một dòng dài tràn sang cổng bên cạnh. */
  .hotspot-portal-btn .hotspot-label { max-width: 150px; white-space: normal; text-align: center; line-height: 1.3; }
}

@media (prefers-reduced-motion: reduce) {
  .hotspot-amenity-btn { animation: none; }
}

/* Nhãn "360°" dưới bong bóng tiện ích có cảnh 360° riêng */
.hotspot-amenity-btn em {
  position: absolute;
  left: 50%;
  bottom: -8px;
  z-index: 1;
  transform: translateX(-50%);
  padding: 1px 6px;
  border-radius: 999px;
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(8, 17, 31, 0.88);
  color: var(--gold-light);
  border: 1px solid var(--gold-light);
  white-space: nowrap;
}
