/* ============================================================
   ORBITY 360 — Hero / 360 Viewer
   ============================================================ */

/* ── Hero Section ── */
#section-home {
  position: relative;
  width: 100%;
  background: var(--dark-base);
  /* No height/overflow here — .hero-wrap handles the 100vh panel.
     The section grows naturally to contain all home sub-sections. */
}

/* ── Pannellum Container ── */
#panorama {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Prevent browser from claiming touch events for scroll before Pannellum gets them */
  touch-action: none;
  /* Visual affordance that the view is draggable */
  cursor: grab;
  user-select: none;
}

#panorama:active {
  cursor: grabbing;
}

/* Override Pannellum defaults */
#panorama .pnlm-container {
  background: var(--dark-base);
}

#panorama .pnlm-ui {
  display: none; /* hide default UI; we use custom controls */
}

/* ── Hero Overlay Gradient (bottom fade) ── */
.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(8,12,24,0.15) 0%, transparent 40%),
    linear-gradient(to top, rgba(8,12,24,0.7) 0%, transparent 50%);
  pointer-events: none;
  z-index: var(--z-overlay);
}

/* ── Top Notification Bar ── */
.hero-notice {
  position: absolute;
  top: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  z-index: calc(var(--z-overlay) + 1);
  white-space: nowrap;
}

.hero-notice-inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: rgba(8, 12, 24, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--off-white);
  box-shadow: var(--shadow-md);
  animation: noticeSlideDown 0.8s var(--ease-out) 0.5s both;
}

.hero-notice-icon {
  width: 20px;
  height: 20px;
  background: var(--grad-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--dark-base);
  flex-shrink: 0;
}

.hero-notice-text {
  font-weight: 500;
}

.hero-notice-text strong {
  color: var(--gold-light);
}

/* ── Info Card (top-right) ── */
.hero-info-card {
  position: absolute;
  top: var(--space-5);
  right: var(--space-8);
  width: 320px;
  z-index: calc(var(--z-overlay) + 1);
  animation: cardSlideIn 0.9s var(--ease-out) 0.3s both;
}

.hero-info-card-inner {
  background: rgba(8, 12, 24, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.04) inset;
}

.info-card-location {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.info-card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: pulseDot 2s ease-in-out infinite;
}

.info-card-place {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.info-card-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: var(--space-3);
}

.info-card-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dark), transparent);
  margin-bottom: var(--space-4);
}

.info-card-body {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.info-card-hint {
  font-size: var(--text-xs);
  color: var(--muted-dark);
  font-style: italic;
  margin-bottom: var(--space-5);
}

.info-card-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  border-bottom: 1px solid rgba(201,168,76,0.3);
  padding-bottom: 2px;
}

.info-card-cta:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
  gap: var(--space-3);
}

/* ── Custom Controls (bottom-left) ── */
.hero-controls {
  position: absolute;
  bottom: var(--space-8);
  left: var(--space-8);
  z-index: calc(var(--z-overlay) + 1);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  animation: controlsSlideUp 0.8s var(--ease-out) 0.6s both;
}

.ctrl-360 {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(201,168,76,0.5);
  background: rgba(8,12,24,0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gold);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: -0.05em;
  transition: all var(--duration-base) var(--ease-out);
  animation: spin360 12s linear infinite;
}

.ctrl-360:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  animation-play-state: paused;
}

.ctrl-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--gold);
  color: var(--dark-base);
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
}

.ctrl-btn:hover {
  background: var(--gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateX(3px);
}

.ctrl-btn i {
  font-size: 10px;
}

/* ── Tour Counter ── */
.hero-tour-counter {
  position: absolute;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: calc(var(--z-overlay) + 1);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  animation: controlsSlideUp 0.8s var(--ease-out) 0.7s both;
}

.tour-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all var(--duration-base);
}

.tour-dot.active {
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
  width: 24px;
  border-radius: var(--radius-full);
}

/* ── Loading overlay ── */
.hero-loading {
  position: absolute;
  inset: 0;
  background: var(--dark-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: opacity var(--duration-slow) var(--ease-out);
}

.hero-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--dark-border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: var(--space-4);
}

.loading-text {
  font-size: var(--text-sm);
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ── Scroll Hint ── */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: calc(var(--z-overlay) + 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0.5;
  pointer-events: none;
}

/* ── Animations ── */
@keyframes noticeSlideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes cardSlideIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes controlsSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 6px var(--gold); }
  50%       { box-shadow: 0 0 14px var(--gold); }
}

@keyframes spin360 {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
