/* ============================================================
   360° VIRTUAL TOUR — INSTITUTIONAL PROFESSIONAL THEME
   Parul University Branding
   ============================================================ */

/* ── Design Tokens ── */
:root {
  --bar-bg: rgba(30, 42, 120, 0.95);
  --card-bg: #FFFFFF;
  --border: rgba(30, 42, 120, 0.12);
  --border-hover: rgba(30, 42, 120, 0.25);
  --text: #1A1A1A;
  --text-light: #FFFFFF;
  --text-dim: #4A5568;
  --text-muted: #8896A6;
  --accent: #1E2A78;
  --accent-red: #D32F2F;
  --accent-gold: #F4B400;
  --accent-dim: rgba(23, 29, 85, 0.579);
  --danger: #D32F2F;
  --radius: 10px;
  --blur: 20px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --topbar-h: 80px;

  /* Arrow Colors */
  --arrow-color: #ffffff;
  --arrow-stroke: rgba(0, 0, 0, 0.4);
}

/* ── Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0D1117;
  color: var(--text);
}

/* ========== CUSTOM VR CURSOR ========== */
.vr-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background: #FFFFFF;
  border-radius: 50%;
  pointer-events: none;
  /* Important so it doesn't block clicks */
  z-index: 99999999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s var(--ease), border 0.25s var(--ease);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  mix-blend-mode: difference;
}

/* When hovering over clickable items, keep the dot but intensify its glow */
.vr-cursor.magnetic {
  width: 12px;
  height: 12px;
  background: #F4B400;
  /* Parul Gold */
  border: none;
  box-shadow: 0 0 18px 4px rgba(244, 180, 0, 0.9);
  mix-blend-mode: normal;
}

/* When clicking/dragging in the panorama */
.vr-cursor.dragging {
  width: 8px;
  height: 8px;
  background: #F4B400;
  box-shadow: 0 0 15px rgba(244, 180, 0, 1);
}


/* ==========================================================
   LOADING SCREEN
   ========================================================== */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 900000;
  background: #212e48;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s var(--ease), visibility .5s;
}

.loading-screen.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* Spinner */
.loader-spinner {
  width: 80px;
  height: 80px;
  position: relative;
}

.spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: #FFFFFF;
  border-right-color: #FFFFFF;
  animation: lspin 1.6s linear infinite;
}

.spinner-ring.inner {
  inset: 14px;
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: rgba(255, 255, 255, .25);
  border-left-color: rgba(255, 255, 255, .25);
  animation-direction: reverse;
  animation-duration: 1.1s;
}

.spinner-dot {
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  background: #F4B400;
  opacity: .35;
  animation: ldot 1.6s ease-in-out infinite alternate;
}

@keyframes lspin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ldot {
  from {
    transform: scale(.7);
    opacity: .2;
  }

  to {
    transform: scale(1);
    opacity: .45;
  }
}

.loader-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: #FFFFFF;
}

.loader-sub {
  font-size: .85rem;
  color: rgba(255, 255, 255, 0.7);
}

.loader-track {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0%;
  background: #F4B400;
  border-radius: 3px;
  transition: width .15s;
}


/* ==========================================================
   TOP BAR
   ========================================================== */
.top-bar {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 70px;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  background: transparent;
  pointer-events: none;
  /* Let clicks pass through empty space */
  transform: translateY(-120%);
  transition: transform .45s var(--ease);
}

.top-bar.show {
  transform: translateY(0);
}

/* Left */
.top-left {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  margin-right: 30px;
  pointer-events: auto;
  /* Re-enable clicks for logo */
}

.pu-tour-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  border-radius: 5px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  text-decoration: none;
  transition: all 0.3s ease;
  margin-left: 10px;
}

.logo:hover {
  transform: scale(1.2);
}



/* Right */
.top-right {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  pointer-events: auto;
  /* Re-enable clicks for menu */
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  color: #333333;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn:hover {
  background: #f8f9fa;
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.icon-btn:active {
  transform: scale(.94);
}

/* ========== DROPDOWN MENU ========== */
.dropdown-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: #ffffff;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0 16px 16px 0;
  padding: 80px 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-100%);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.dropdown-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  color: #444444;
  padding: 14px 16px;
  margin: 6px 16px;
  width: calc(100% - 32px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.dropdown-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #666666;
  transition: color 0.2s;
}

.dropdown-item:hover {
  background: #ffffff;
  color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.15);
}

.dropdown-item:hover svg {
  color: #F4B400;
  /* Parul Gold on hover */
}

.shortcut-key {
  margin-left: auto;
  font-size: 0.65rem;
  background: #eeeeee;
  border: 1px solid #e0e0e0;
  padding: 2px 6px;
  border-radius: 6px;
  color: #777777;
  font-family: monospace;
  font-weight: bold;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}


/* ==========================================================
   PANORAMA (full viewport)
   ========================================================== */
#panorama {
  position: fixed;
  inset: 0;
  background: #0D1117;
  touch-action: none;
  /* Prevent accidental page scrolling while interacting */
}


/* ==========================================================
   BOTTOM-LEFT INFO BOX
   ========================================================== */
.info-box {
  position: fixed;
  bottom: 24px;
  left: 20px;
  z-index: 9999;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.4) 0%, rgba(10, 10, 10, 0.6) 100%);
  backdrop-filter: blur(32px) saturate(150%);
  -webkit-backdrop-filter: blur(32px) saturate(150%);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  max-width: 360px;
}

.info-box.show {
  opacity: 1;
  transform: translateY(0);
}

.info-box-text {
  font-size: .85rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  line-height: 1.35;
}


/* ==========================================================
   PANNELLUM OVERRIDES
   ========================================================== */
/* Custom scene loader spinner */
.pnlm-load-box {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -22px 0 0 -22px;
  padding: 0 !important;
  animation: lspin 1s linear infinite;
  opacity: 0;
  animation: lspin 1s linear infinite, pfadeIn .1s .3s forwards;
}

.pnlm-load-box::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .15);
  border-top-color: #F4B400;
  animation: lspin .75s linear infinite;
}

@keyframes pfadeIn {
  to {
    opacity: 1;
  }
}

.pnlm-lbar,
.pnlm-lbox,
.pnlm-load-box p {
  display: none !important;
}

/* Hide default pannellum UI (we have our own) */
.pnlm-title-box {
  display: none !important;
}

.pnlm-panorama-info {
  display: none !important;
}

.pnlm-about-msg {
  display: none !important;
}

.pnlm-fullscreen-toggle-button {
  display: none !important;
}

.pnlm-zoom-controls {
  display: none !important;
}

/* Z-index stacking */
.pnlm-controls-container,
.pnlm-ui,
.pnlm-zoom-controls,
.pnlm-orient-controls {
  z-index: 99999 !important;
}

.pnlm-hotspot-base,
.pnlm-hotspot {
  z-index: 100001 !important;
  pointer-events: auto !important;
}


/* ==========================================================
   NAVIGATION ARROWS / HOTSPOT CONTENT
   ========================================================== */
.nav-btn {
  width: 80px;
  height: 80px;
  cursor: pointer;
  z-index: 1;
  background: transparent;
  border: none;
  padding: 0;
}

body.hide-arrows .nav-btn {
  display: none !important;
}

.hotspot-content {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s var(--ease);
  box-shadow: none;
}

.nav-btn:hover .hotspot-content {
  transform: scale(1.25);
  background: transparent;
  animation: none;
}

.arrow-img {
  width: 160px;
  height: 80px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.8));
  transition: filter 0.3s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease);
}

.nav-btn:hover .arrow-img {
  filter: drop-shadow(0 4px 10px rgba(244, 180, 0, 0.8));
}

.animate-bounce-left .arrow-img {
  transform: perspective(400px) rotateX(65deg) rotate(180deg);
}

.animate-bounce-right .arrow-img {
  transform: perspective(400px) rotateX(65deg) rotate(0deg);
}

.animate-bounce-up .arrow-img {
  transform: perspective(400px) rotateX(65deg) rotate(-90deg);
}

.animate-bounce-down .arrow-img {
  transform: perspective(400px) rotateX(65deg) rotate(90deg);
}

/* Live Flow Animation for Chevrons */
@keyframes liveFlow {
  0% {
    opacity: 0.15;
    filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
  }

  30% {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 196, 0, 0.855));
  }

  100% {
    opacity: 0.15;
    filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
  }
}

.chev-1 {
  animation: liveFlow 1.5s infinite;
  animation-delay: 0s;
}

.chev-2 {
  animation: liveFlow 1.5s infinite;
  animation-delay: 0.15s;
}

.chev-3 {
  animation: liveFlow 1.5s infinite;
  animation-delay: 0.3s;
}


/* Disable the old bounce animations so it looks planted on the floor */
.animate-bounce-up .hotspot-content,
.animate-bounce-down .hotspot-content,
.animate-bounce-right .hotspot-content,
.animate-bounce-left .hotspot-content {
  animation: none;
}

/* ── 45° Diagonal arrows (Google Street View style) ── */
.animate-bounce-upper-left .arrow-img {
  transform: perspective(400px) rotateX(65deg) rotate(-135deg);
}

.animate-bounce-upper-right .arrow-img {
  transform: perspective(400px) rotateX(65deg) rotate(-45deg);
}

@keyframes bUpperLeft {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translate(0, 0);
  }

  40% {
    transform: translate(-10px, -10px);
  }

  60% {
    transform: translate(-5px, -5px);
  }
}

@keyframes bUpperRight {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translate(0, 0);
  }

  40% {
    transform: translate(10px, -10px);
  }

  60% {
    transform: translate(5px, -5px);
  }
}

.animate-bounce-upper-left .hotspot-content {
  animation: bUpperLeft 2.2s infinite;
}

.animate-bounce-upper-right .hotspot-content {
  animation: bUpperRight 2.2s infinite;
}

.hidden-hotspot {
  display: none !important;
}


/* ==========================================================
   PANEL OVERLAY (shared backdrop for right-side panels)
   ========================================================== */
.panel-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 100000;
  animation: overlayIn .25s var(--ease);
}

.panel-overlay.active {
  display: block;
}

@keyframes overlayIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ── Right-side panel (shared) ── */
.panel-right {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%) translateX(40px);
  opacity: 0;
  width: 460px;
  max-width: calc(100vw - 40px);
  max-height: 90vh;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 100001;
  animation: slideRight .5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(100px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1);
  }
}

/* ── Panel close button ── */
.panel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: #F5F7FA;
  color: #4A5568;
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s var(--ease);
}

.panel-close:hover {
  background: #D32F2F;
  color: #FFFFFF;
  transform: rotate(90deg) scale(1.08);
}

/* ── Panel header ── */
.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid #E2E8F0;
}

.panel-header h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1E2A78;
}

.panel-header svg {
  color: #F4B400;
}

/* ==========================================================
   CENTERED MODAL OVERLAY (for info popup only)
   ========================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 200000;
  justify-content: center;
  align-items: center;
  animation: overlayIn .25s var(--ease);
}

.modal-overlay.active {
  display: flex;
}


/* ==========================================================
   FLOOR MAP NAV OVERLAY
   ========================================================== */
.map-container-card {
  position: relative;
  width: 900px;
  max-width: 95vw;
  max-height: 85vh;
  background: #121214;
  border: none;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  color: #E2E8F0;
  overflow: hidden;
  z-index: 200001;
}

.map-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: none;
  background: rgba(255, 255, 255, 0.02);
}

.map-header-icon {
  width: 22px;
  height: 22px;
  color: #D32F2F;
}

.map-header h3 {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.map-body {
  padding: 0;
  overflow: hidden;
  flex: 1;
  display: flex;
  background: #0B0B0C;
}

.map-visual-section {
  flex: 1;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.map-edit-section {
  width: 320px;
  background: #161619;
  border-left: none;
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.map-container-card.edit-mode .map-edit-section {
  display: flex;
}

.map-edit-btn {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #E2E8F0;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  margin-left: auto;
  margin-right: 40px;
  transition: background 0.2s;
}

.map-edit-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.map-container-card.edit-mode .map-edit-btn {
  background: #D32F2F;
  color: #FFFFFF;
}

.map-edit-section h4 {
  margin: 0 0 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF;
}

.map-edit-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.map-edit-group label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #A0AEC0;
}

.map-edit-select {
  background: #1F1F23;
  border: none;
  color: #E2E8F0;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  width: 100%;
}

.map-edit-textarea {
  background: #1F1F23;
  border: none;
  color: #00E676;
  padding: 10px;
  border-radius: 8px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  line-height: 1.4;
  height: 220px;
  resize: none;
  outline: none;
}

.map-edit-copy-btn {
  background: #1E2A78;
  color: #FFFFFF;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}

.map-edit-copy-btn:hover {
  background: #2A3B9C;
}

.map-edit-copy-btn:active {
  transform: scale(0.98);
}

.map-edit-help {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #718096;
}

.map-pin.dragging {
  cursor: grabbing !important;
  transform: translate(-50%, -50%) scale(1.4) !important;
  background-color: #00E676 !important;
  box-shadow: 0 0 16px rgba(0, 230, 118, 0.8) !important;
  transition: none !important;
}

.map-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  display: inline-block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.map-image {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Map Interactive Pins */
.map-pin {
  position: absolute;
  display: none;
  /* Hide pins by default for a clean map view */
  width: 9px;
  height: 9px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='4' r='2.5' fill='%23D32F2F' stroke='%23FFFFFF' stroke-width='1.2' stroke-linejoin='round'/><path d='M 9.5 8 L 14.5 8 C 15.5 8 16.3 8.8 16.3 9.8 L 16.3 16.5 L 14.7 16.5 L 14.7 22.5 C 14.7 23 14.2 23 13.5 23 C 12.8 23 12.5 23 12.5 22.5 L 12.5 17.5 L 11.5 17.5 L 11.5 22.5 C 11.5 23 11.2 23 10.5 23 C 9.8 23 9.3 23 9.3 22.5 L 9.3 16.5 L 7.7 16.5 L 7.7 9.8 C 7.7 8.8 8.5 8 9.5 8 Z' fill='%23D32F2F' stroke='%23FFFFFF' stroke-width='1.2' stroke-linejoin='round'/><rect x='5.4' y='9' width='1.8' height='7.5' rx='0.9' fill='%23D32F2F' stroke='%23FFFFFF' stroke-width='1.2' stroke-linejoin='round'/><rect x='16.8' y='9' width='1.8' height='7.5' rx='0.9' fill='%23D32F2F' stroke='%23FFFFFF' stroke-width='1.2' stroke-linejoin='round'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  z-index: 10;
}

.map-container-card.edit-mode .map-pin {
  display: block;
  /* Show all pins when editing coordinates */
}

.map-pin:hover {
  transform: translate(-50%, -50%) scale(1.4);
  box-shadow: 0 0 12px rgba(255, 82, 82, 0.5);
  z-index: 12;
}

/* Active Pin representing current position */
.map-pin.active {
  display: block;
  /* Ensure active pin remains visible */
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='4' r='2.5' fill='%2300E676' stroke='%23FFFFFF' stroke-width='1.2' stroke-linejoin='round'/><path d='M 9.5 8 L 14.5 8 C 15.5 8 16.3 8.8 16.3 9.8 L 16.3 16.5 L 14.7 16.5 L 14.7 22.5 C 14.7 23 14.2 23 13.5 23 C 12.8 23 12.5 23 12.5 22.5 L 12.5 17.5 L 11.5 17.5 L 11.5 22.5 C 11.5 23 11.2 23 10.5 23 C 9.8 23 9.3 23 9.3 22.5 L 9.3 16.5 L 7.7 16.5 L 7.7 9.8 C 7.7 8.8 8.5 8 9.5 8 Z' fill='%2300E676' stroke='%23FFFFFF' stroke-width='1.2' stroke-linejoin='round'/><rect x='5.4' y='9' width='1.8' height='7.5' rx='0.9' fill='%2300E676' stroke='%23FFFFFF' stroke-width='1.2' stroke-linejoin='round'/><rect x='16.8' y='9' width='1.8' height='7.5' rx='0.9' fill='%2300E676' stroke='%23FFFFFF' stroke-width='1.2' stroke-linejoin='round'/></svg>");
  z-index: 11;
}

.map-pin.active::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: pinPulse 1.8s infinite;
  z-index: -1;
}

.map-pin.active:hover {
  transform: translate(-50%, -50%) scale(1.3);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='4' r='2.5' fill='%2300FF87' stroke='%23FFFFFF' stroke-width='1.2' stroke-linejoin='round'/><path d='M 9.5 8 L 14.5 8 C 15.5 8 16.3 8.8 16.3 9.8 L 16.3 16.5 L 14.7 16.5 L 14.7 22.5 C 14.7 23 14.2 23 13.5 23 C 12.8 23 12.5 23 12.5 22.5 L 12.5 17.5 L 11.5 17.5 L 11.5 22.5 C 11.5 23 11.2 23 10.5 23 C 9.8 23 9.3 23 9.3 22.5 L 9.3 16.5 L 7.7 16.5 L 7.7 9.8 C 7.7 8.8 8.5 8 9.5 8 Z' fill='%2300FF87' stroke='%23FFFFFF' stroke-width='1.2' stroke-linejoin='round'/><rect x='5.4' y='9' width='1.8' height='7.5' rx='0.9' fill='%2300FF87' stroke='%23FFFFFF' stroke-width='1.2' stroke-linejoin='round'/><rect x='16.8' y='9' width='1.8' height='7.5' rx='0.9' fill='%2300FF87' stroke='%23FFFFFF' stroke-width='1.2' stroke-linejoin='round'/></svg>");
  box-shadow: 0 0 16px rgba(0, 255, 135, 1);
}

/* Locked Pin styling in Edit Mode */
.map-container-card.edit-mode .map-pin.locked {
  cursor: not-allowed;
  opacity: 0.6;
}

.map-container-card.edit-mode .map-pin.locked:hover {
  transform: translate(-50%, -50%);
  /* Disable hover scaling */
  background-color: #D32F2F;
  /* Keep same red color */
  box-shadow: none;
  /* Disable hover glowing */
}


@keyframes pinPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(0, 230, 118, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
  }
}

/* Hover Tooltips for Pins */
.map-pin::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  background: rgba(18, 18, 20, 0.95);
  color: #FFFFFF;
  padding: 5px 10px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 20;
}

.map-pin:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.map-footer {
  padding: 12px 20px;
  border-top: none;
  background: rgba(255, 255, 255, 0.01);
}

.map-legend {
  display: flex;
  gap: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #A0AEC0;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #FFFFFF;
}

.legend-dot.current-pos {
  background-color: #00E676;
  box-shadow: 0 0 6px rgba(0, 230, 118, 0.6);
}

.legend-dot.normal-pos {
  background-color: #D32F2F;
}

/* Modal Scale-up Animation */
.animate-scale-up {
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* ==========================================================
   GRID VIEW — RIGHT PANEL
   ========================================================== */
.scenes-panel .grid-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  max-height: calc(90vh - 80px);
}

.scenes-panel .grid-body::-webkit-scrollbar {
  width: 4px;
}

.scenes-panel .grid-body::-webkit-scrollbar-thumb {
  background: rgba(30, 42, 120, 0.15);
  border-radius: 4px;
}

.grid-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  aspect-ratio: 16/10;
  background: #F5F7FA;
  transition: .25s var(--ease);
}

.grid-item:hover {
  border-color: #1E2A78;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 42, 120, 0.12);
}

.grid-item.active {
  border-color: #D32F2F;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
}

.grid-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.grid-item:hover .grid-thumb {
  transform: scale(1.06);
}

.grid-num {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(30, 42, 120, 0.85);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: .6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(30, 42, 120, 0.2);
}

.grid-item.active .grid-num {
  background: #D32F2F;
  border-color: #D32F2F;
}

.grid-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 7px 5px;
  background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent);
  font-size: .58rem;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ==========================================================
   INFO POPUP (hotspot detail — centered)
   ========================================================== */
.info-popup-overlay {
  z-index: 2147483647 !important;
  padding-top: 70px;
}

.info-popup-overlay .info-popup {
  z-index: 2147483647 !important;
  pointer-events: auto !important;
}

.info-popup {
  background: #ffffff;
  border-radius: 16px;
  width: 500px;
  max-width: 93vw;
  max-height: 85vh;
  overflow: hidden;
  position: relative;
  border: 1px solid #E2E8F0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .2);
  animation: popupIn .4s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.popup-img-wrap {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
  background: #F5F7FA;
}

.popup-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(to top, #FFFFFF, transparent);
  pointer-events: none;
}

#infoImage {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: transform .5s;
}

.info-popup:hover #infoImage {
  transform: scale(1.04);
}

#infoTitle {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1E2A78;
  margin: 0 0 12px;
  line-height: 1.3;
}

#infoDescription {
  font-size: .9rem;
  line-height: 1.75;
  color: #4A5568;
  margin: 0;
}

/* ── Formatted description content ── */
#infoDescription h3,
#infoDescription h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #1E2A78;
  margin: 18px 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(30, 42, 120, 0.1);
  font-size: .95rem;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}

#infoDescription h3:first-child,
#infoDescription h4:first-child {
  margin-top: 4px;
}

#infoDescription h3::before,
#infoDescription h4::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 16px;
  background: linear-gradient(180deg, #1E2A78, #F4B400);
  border-radius: 2px;
  flex-shrink: 0;
}

#infoDescription ul {
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
}

#infoDescription ul li {
  position: relative;
  padding: 5px 0 5px 20px;
  font-size: .85rem;
  line-height: 1.6;
  color: #4A5568;
  transition: color .2s ease;
}

#infoDescription ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F4B400;
  box-shadow: 0 0 0 2px rgba(244, 180, 0, 0.2);
}

#infoDescription ul li:hover {
  color: #1E2A78;
}

#infoDescription p {
  font-size: .88rem;
  line-height: 1.7;
  color: #4A5568;
  margin: 0 0 10px;
}

#infoDescription strong,
#infoDescription b {
  font-weight: 600;
  color: #1A1A1A;
}

/* Make popup body scrollable for long content */
.popup-body {
  padding: 22px 26px 28px;
  overflow-y: auto;
  max-height: calc(85vh - 271px);
}

.popup-body::-webkit-scrollbar {
  width: 4px;
}

.popup-body::-webkit-scrollbar-track {
  background: transparent;
}

.popup-body::-webkit-scrollbar-thumb {
  background: rgba(30, 42, 120, 0.15);
  border-radius: 4px;
}

.popup-body::-webkit-scrollbar-thumb:hover {
  background: rgba(30, 42, 120, 0.3);
}

/* ==========================================================
   HELP — RIGHT PANEL
   ========================================================== */
.help-panel {
  padding: 0 0 28px;
}

.help-panel .help-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 0;
  margin-bottom: 18px;
}

.help-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 8px;
  background: #F5F7FA;
  border: 1px solid #E2E8F0;
  transition: background .2s;
}

.help-row:hover {
  background: #EBF0F5;
}

.help-label {
  font-size: .85rem;
  font-weight: 500;
  color: #1A1A1A;
}

.help-value {
  font-size: .78rem;
  color: #4A5568;
  text-align: right;
}

.help-sub {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8896A6;
  padding: 0 24px;
  margin-bottom: 10px;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 24px;
}

.sc {
  font-size: .78rem;
  color: #4A5568;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sc kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 26px;
  padding: 0 7px;
  font-family: 'Inter', monospace;
  font-size: .7rem;
  font-weight: 600;
  color: #1E2A78;
  background: #F5F7FA;
  border: 1px solid #E2E8F0;
  border-radius: 5px;
  box-shadow: 0 1.5px 0 rgba(0, 0, 0, 0.08);
}


/* ==========================================================
   MOBILE
   ========================================================== */
@media (max-width: 768px) {
  :root {
    --topbar-h: 65px;
  }

  body {
    overflow: hidden;
  }

  #panorama {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    z-index: 1;
  }

  .top-bar {
    padding: 0 12px;
  }

  .brand-text {
    font-size: .85rem;
  }

  .pu-tour-logo {
    height: 45px;
  }

  .nav-scene-title {
    font-size: .7rem;
    max-width: 150px;
  }

  .nav-scene-counter {
    font-size: .55rem;
  }

  .icon-btn {
    width: 32px;
    height: 32px;
  }

  .icon-btn svg {
    width: 15px;
    height: 15px;
  }

  .nav-btn {
    width: 32px;
    height: 32px;
  }

  .arrow-img {
    width: 14px;
    height: 14px;
  }

  .info-box {
    position: fixed;
    bottom: 16px;
    left: 14px;
    padding: 8px 14px;
    max-width: 260px;
    z-index: 9999;
  }

  .info-box-text {
    font-size: .7rem;
  }

  /* Panels go full-width on mobile */
  .panel-right {
    width: calc(100vw - 24px);
    right: 12px;
    max-height: 85vh;
  }

  .scenes-panel .grid-body {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-popup {
    max-width: 94vw;
  }

  .popup-img-wrap {
    height: 170px;
  }

  .popup-body {
    padding: 16px 18px 20px;
  }

  #infoTitle {
    font-size: 1.1rem;
  }

  #infoDescription {
    font-size: .82rem;
  }

  .info-popup>.panel-close {
    width: 30px;
    height: 30px;
    font-size: 16px;
    top: 10px;
    right: 10px;
  }

  .shortcut-grid {
    grid-template-columns: 1fr;
  }

  @media (orientation: portrait) {
    #btnFullscreen {
      display: none;
    }
  }
}

@media (max-width: 380px) {

  .nav-scene-title {
    max-width: 110px;
  }
}


/* ==========================================================
   SCROLLBAR
   ========================================================== */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(30, 42, 120, 0.15);
  border-radius: 5px;
}


/* ==========================================================
   INDOOR NAVIGATION PANEL
   ========================================================== */
.nav-guide-panel {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 300px;
  max-width: calc(100vw - 40px);
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  z-index: 10001;
  transform: translateX(340px);
  opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
  overflow: hidden;
}

.nav-guide-panel.open {
  transform: translateX(0);
  opacity: 1;
}

.nav-guide-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #E2E8F0;
  background: rgba(30, 42, 120, 0.03);
}

.nav-guide-icon {
  width: 20px;
  height: 20px;
  color: #D32F2F;
  flex-shrink: 0;
}

.nav-guide-title {
  font-family: 'Poppins', sans-serif;
  font-size: .92rem;
  font-weight: 600;
  color: #1E2A78;
  flex: 1;
}

.nav-guide-close {
  width: 28px;
  height: 28px;
  border: none;
  background: #F5F7FA;
  color: #4A5568;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s var(--ease);
}

.nav-guide-close:hover {
  background: #D32F2F;
  color: #FFFFFF;
  transform: rotate(90deg);
}

.nav-guide-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-guide-select-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-guide-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #8896A6;
}

.nav-guide-select {
  width: 100%;
  padding: 10px 12px;
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  color: #1A1A1A;
  background: #F5F7FA;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.nav-guide-select:focus {
  border-color: #1E2A78;
  box-shadow: 0 0 0 3px rgba(30, 42, 120, 0.1);
}

.nav-guide-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nav-guide-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.nav-guide-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all .25s var(--ease);
}

.nav-guide-go {
  background: #D32F2F;
  color: #FFFFFF;
  box-shadow: 0 3px 12px rgba(211, 47, 47, 0.25);
}

.nav-guide-go:hover:not(:disabled) {
  background: #C62828;
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(211, 47, 47, 0.35);
}

.nav-guide-go:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.nav-guide-clear {
  background: #F5F7FA;
  color: #4A5568;
  border: 1px solid #E2E8F0;
}

.nav-guide-clear:hover {
  background: #E2E8F0;
  color: #1A1A1A;
}

/* Active state for nav button */
#btnNavGuide.active {
  background: #D32F2F;
  color: #FFFFFF;
  border-color: #D32F2F;
}

/* Coming Soon message for unavailable floors */
.nav-guide-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 20px 16px;
  margin: 4px 0;
  background: linear-gradient(135deg, #F0F4FF, #F5F7FA);
  border: 1px dashed #CBD5E0;
  border-radius: 10px;
  color: #4A5568;
}

.nav-guide-coming-soon svg {
  color: #1E2A78;
  opacity: 0.6;
  margin-bottom: 2px;
}

.coming-soon-text {
  font-family: 'Poppins', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  color: #1E2A78;
}

.coming-soon-sub {
  font-size: .72rem;
  font-weight: 400;
  color: #718096;
  line-height: 1.4;
  max-width: 220px;
}


/* ==========================================================
   DIRECTION GUIDANCE BANNER
   ========================================================== */
.direction-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 10002;
  opacity: 0;
  pointer-events: none;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}

.direction-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.direction-banner-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background: rgba(30, 42, 120, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  min-width: 320px;
  max-width: 90vw;
}

.direction-step-indicator {
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex-shrink: 0;
}

.direction-step-num {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #F4B400;
  line-height: 1;
}

.direction-step-total {
  font-size: .75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
}

.direction-text-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.direction-instruction {
  font-size: .88rem;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.direction-destination {
  font-size: .72rem;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.direction-nav-btns {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.direction-nav-btn {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s var(--ease);
}

.direction-nav-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.direction-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}


/* ==========================================================
   HIGHLIGHTED PATH — HOTSPOT GLOW EFFECTS
   ========================================================== */

/* Golden glow on highlighted arrow hotspots */
.pnlm-hotspot.highlight-path .hotspot-content {
  background: rgba(244, 180, 0, 0.85) !important;
  border-color: #FFFFFF !important;
  box-shadow:
    0 0 12px rgba(244, 180, 0, 0.6),
    0 0 30px rgba(244, 180, 0, 0.3),
    0 0 60px rgba(244, 180, 0, 0.15) !important;
  animation: pathPulse 1.5s ease-in-out infinite !important;
}

.pnlm-hotspot.highlight-path .arrow-img {
  filter: brightness(0) !important;
}

@keyframes pathPulse {

  0%,
  100% {
    box-shadow:
      0 0 12px rgba(244, 180, 0, 0.6),
      0 0 30px rgba(244, 180, 0, 0.3),
      0 0 60px rgba(244, 180, 0, 0.15);
    transform: scale(1);
  }

  50% {
    box-shadow:
      0 0 20px rgba(244, 180, 0, 0.8),
      0 0 45px rgba(244, 180, 0, 0.4),
      0 0 80px rgba(244, 180, 0, 0.2);
    transform: scale(1.15);
  }
}

/* Blinking destination marker */
.pnlm-hotspot.highlight-destination {
  z-index: 200000 !important;
}

.pnlm-hotspot.highlight-destination .hotspot-content,
.pnlm-hotspot.highlight-destination>div:first-child {
  background: rgba(211, 47, 47, 0.9) !important;
  border-color: #FFFFFF !important;
  box-shadow:
    0 0 16px rgba(211, 47, 47, 0.7),
    0 0 40px rgba(211, 47, 47, 0.35) !important;
  animation: destBlink 1s ease-in-out infinite !important;
}

@keyframes destBlink {

  0%,
  100% {
    opacity: 1;
    box-shadow:
      0 0 16px rgba(211, 47, 47, 0.7),
      0 0 40px rgba(211, 47, 47, 0.35);
  }

  50% {
    opacity: 0.5;
    box-shadow:
      0 0 24px rgba(211, 47, 47, 0.9),
      0 0 60px rgba(211, 47, 47, 0.5);
  }
}

/* Dimmed non-highlighted hotspots during navigation */
.nav-active .pnlm-hotspot:not(.highlight-path):not(.highlight-destination) .hotspot-content {
  opacity: 0.35;
}


/* ==========================================================
   INDOOR NAV — MOBILE
   ========================================================== */
@media (max-width: 768px) {
  .nav-guide-panel {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
  }

  .nav-guide-panel.open {
    transform: translateY(0);
  }

  .direction-banner {
    bottom: 16px;
    left: 50%;
  }

  .direction-banner-inner {
    min-width: 280px;
    padding: 10px 14px;
    gap: 10px;
  }

  .direction-step-num {
    font-size: 1.2rem;
  }

  .direction-instruction {
    font-size: .8rem;
  }

  .direction-destination {
    font-size: .68rem;
  }

  /* Compact navigation arrows for mobile devices */
  .nav-btn {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
  }

  .arrow-img {
    width: 75px !important;
    height: 38px !important;
  }
}

@media (max-width: 480px) {
  .nav-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }

  .arrow-img {
    width: 60px !important;
    height: 30px !important;
  }
}

.device-info h3 {
  margin-top: 10px;
  font-size: 18px;
  color: #1b2a57;
}

.device-info ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.device-info li {
  margin-bottom: 5px;
}

/* ========== MINIMAP HUD ========== */
.minimap-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.minimap-container.hidden {
  transform: scale(0) translate(50%, 50%);
  opacity: 0;
  pointer-events: none;
}

.minimap-bg {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  object-fit: cover;
  opacity: 0.6;
  pointer-events: none;
  /* Map will be moved dynamically via JS based on user location to keep them centered */
  transition: transform 0.5s ease-out;
}

.minimap-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #00e5ff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px #00e5ff, 0 0 20px #00e5ff;
  z-index: 2;
}

.minimap-marker::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid rgba(0, 229, 255, 0.5);
  border-radius: 50%;
  animation: radar-pulse 2s infinite ease-out;
}

.radar-cone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background: conic-gradient(from -45deg at 50% 100%, rgba(0, 229, 255, 0) 0deg, rgba(0, 229, 255, 0.4) 45deg, rgba(0, 229, 255, 0) 90deg);
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(0deg);
  pointer-events: none;
}

@keyframes radar-pulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* ==========================================================
   WELCOME SPLASH SCREEN CARD
   ========================================================== */
#loaderContent {
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

#loaderContent.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.welcome-card {
  max-width: 540px;
  width: 90%;
  background: rgba(30, 42, 120, 0.4);
  /* Translucent Parul Blue */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 48px 40px;
  border-radius: 24px;
  text-align: center;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transform: translateY(0);
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.welcome-card.hidden {
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  display: none !important;
}

.welcome-badge {
  background: rgba(244, 180, 0, 0.15);
  /* Parul Gold Accent */
  color: #F4B400;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(244, 180, 0, 0.25);
  margin-bottom: 8px;
}

.welcome-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.welcome-subheading {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 12px;
}

.welcome-btn {
  background: linear-gradient(135deg, #F4B400 0%, #d49c00 100%);
  color: #111111;
  border: none;
  padding: 16px 36px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(244, 180, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.welcome-btn svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #111111;
}

.welcome-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(244, 180, 0, 0.55);
  background: linear-gradient(135deg, #ffc82c 0%, #F4B400 100%);
}

.welcome-btn:hover svg {
  transform: translateX(4px);
}

.welcome-btn:active {
  transform: translateY(0);
}

/* ==========================================================
   FLOOR MAP BOTTOM-RIGHT UI
   ========================================================== */
.modal-overlay.map-overlay:not(.active) {
  display: none !important;
}

.modal-overlay.map-overlay.active {
  display: flex !important;
}

.modal-overlay.map-overlay {
  background: transparent !important;
  backdrop-filter: none !important;
  justify-content: flex-end !important;
  align-items: flex-end !important;
  padding: 24px !important;
  pointer-events: none !important;
}

.modal-overlay.map-overlay .map-container-card {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  top: auto !important;
  left: auto !important;
  transform: translate(0, 0) !important;
  pointer-events: auto !important;
  width: 420px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 120px);
  margin: 0 !important;
  background: transparent !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  border: none !important;
  outline: none !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.modal-overlay.map-overlay .map-header,
.modal-overlay.map-overlay .map-footer,
#mapClose {
  display: none !important;
}

.modal-overlay.map-overlay .map-wrapper {
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 2.5px solid #000000 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.modal-overlay.map-overlay .map-image {
  border: none !important;
  outline: none !important;
}

.modal-overlay.map-overlay .map-container-card.enlarged .map-header,
.modal-overlay.map-overlay .map-container-card.enlarged .panel-close,
.modal-overlay.map-overlay .map-container-card.enlarged .map-footer {
  display: none !important;
}

.modal-overlay.map-overlay .map-visual-section {
  padding: 0 !important;
}

.modal-overlay.map-overlay .map-wrapper {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.modal-overlay.map-overlay .map-container-card.edit-mode {
  width: 740px;
}

@media (max-width: 767px) {
  .modal-overlay.map-overlay {
    padding: 10px !important;
    justify-content: flex-end !important;
    align-items: flex-end !important;
  }

  .modal-overlay.map-overlay .map-container-card:not(.enlarged) {
    position: fixed !important;
    bottom: 10px !important;
    right: 10px !important;
    top: auto !important;
    left: auto !important;
    transform: translate(0, 0) !important;
    width: 190px !important;
    max-width: 44vw !important;
    max-height: calc(100vh - 20px) !important;
    border-radius: 10px !important;
  }

  .modal-overlay.map-overlay .map-wrapper {
    border-radius: 10px !important;
    border: 2px solid #000000 !important;
  }

  .modal-overlay.map-overlay .map-container-card.edit-mode {
    width: 100% !important;
    flex-direction: column !important;
    overflow-y: auto !important;
  }

  .modal-overlay.map-overlay .map-edit-section {
    width: 100% !important;
    border-left: none !important;
    border-top: none !important;
  }
}

/* Horizontal / Landscape mode optimization for map */
@media (orientation: landscape) and (max-height: 600px),
(max-height: 500px) {
  .modal-overlay.map-overlay {
    padding: 8px !important;
    justify-content: flex-end !important;
    align-items: flex-end !important;
  }

  .modal-overlay.map-overlay .map-container-card:not(.enlarged) {
    width: 180px !important;
    max-width: 32vw !important;
    max-height: calc(100vh - 16px) !important;
    border-radius: 10px !important;
  }

  .modal-overlay.map-overlay .map-container-card:not(.enlarged) .map-header {
    padding: 4px 8px !important;
  }

  .modal-overlay.map-overlay .map-container-card:not(.enlarged) .map-header h3 {
    font-size: 10px !important;
  }

  .modal-overlay.map-overlay .map-container-card:not(.enlarged) .map-footer {
    padding: 2px 6px !important;
  }

  .modal-overlay.map-overlay .map-container-card:not(.enlarged) .map-legend {
    font-size: 8px !important;
    gap: 6px !important;
  }
}

/* ==========================================================
   ACTIVE POSITION RADAR CONE
   ========================================================== */
.map-pin.active {
  overflow: visible !important;
}

.radar-cone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  /* Centered at 0deg with a 60deg sweep width (Solid Constant Blue) */
  background: conic-gradient(from 330deg at 50% 50%, rgba(0, 122, 255, 0.5) 0deg 60deg, transparent 60deg);
  border-radius: 50%;
  pointer-events: none;
  transform-origin: center center;
  z-index: -1;
  transform: translate(-50%, -50%) rotate(var(--radar-yaw, 0deg));
}

/* Tooltip for navigation arrows - Hidden as replaced by Advanced HUD */
.arrow-tooltip {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.hotspot-content {
  position: relative;
}

.nav-btn:hover .arrow-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

/* When mini map is enlarged in center, blur the screen outside of mini map */
.modal-overlay.map-overlay:has(.map-container-card.enlarged),
.modal-overlay.map-overlay.enlarged-overlay {
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(12px) saturate(150%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(150%) !important;
  pointer-events: auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 !important;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.modal-overlay.map-overlay .map-container-card.enlarged {
  position: fixed !important;
  top: auto !important;
  left: auto !important;
  bottom: 50% !important;
  right: 50% !important;
  transform: translate(50%, 50%) !important;
  width: 90vw !important;
  max-width: 1400px !important;
  max-height: 95vh !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.modal-overlay.map-overlay .map-container-card.enlarged .map-body,
.modal-overlay.map-overlay .map-container-card.enlarged .map-visual-section {
  background: transparent !important;
}

.modal-overlay.map-overlay .map-wrapper {
  cursor: zoom-in;
}

.modal-overlay.map-overlay .map-container-card.enlarged .map-wrapper {
  cursor: zoom-out;
  aspect-ratio: 1024 / 625;
  width: 65vw !important;
  max-width: 950px !important;
  max-height: 70vh !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
  border: 6px solid #000000 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
  line-height: 0;
}

.modal-overlay.map-overlay .map-container-card.enlarged .map-image {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: fill;
}

/* ==========================================================
   MAP TEXT LABELS
   ========================================================== */
.map-label {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.3s var(--ease);
}

/* Hide labels in the regular modal view, show only when enlarged or editing */
.map-container-card:not(.enlarged):not(.edit-mode) .map-label {
  display: none !important;
}

.map-container-card.edit-mode .map-label {
  pointer-events: auto;
  cursor: grab;
  border: 1px dashed #00E676;
}

.map-container-card.edit-mode .map-label:active {
  cursor: grabbing;
}

.map-label-delete {
  display: none;
  position: absolute;
  top: -8px;
  right: -8px;
  width: 18px;
  height: 18px;
  background: #D32F2F;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.map-container-card.edit-mode .map-label:hover .map-label-delete {
  display: block;
}

.map-label-edit {
  display: none;
  position: absolute;
  top: -8px;
  right: 12px;
  width: 18px;
  height: 18px;
  background: #FFA000;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.map-container-card.edit-mode .map-label:hover .map-label-edit {
  display: block;
}

/* Label properties popup */
.label-props-popup {
  display: none;
  /* hidden by default */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1E1E24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  z-index: 100;
  min-width: 200px;
}

.label-props-popup h5 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.lp-group {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lp-group label {
  font-size: 12px;
  color: #A0AEC0;
}

.lp-group input {
  background: #2D3748;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
}

.lp-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.lp-actions button {
  padding: 6px 12px;
  border-radius: 4px;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.lp-btn-cancel {
  background: #4A5568;
  color: #fff;
}

.lp-btn-save {
  background: #00E676;
  color: #000;
}

/* ========== CONTROLS GUIDE ========== */
.controls-guide-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 440px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(135deg, rgba(15, 20, 35, 0.95), rgba(5, 10, 20, 0.98));
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: 20px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.85),
    0 0 30px rgba(0, 230, 118, 0.15);
  color: #fff;
  font-family: 'Inter', sans-serif;
  z-index: 200000;
  animation: centerZoomIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes centerZoomIn {
  from {
    opacity: 0;
    transform: translate(-50%, -45%) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.controls-guide-header {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.controls-guide-header svg {
  color: #00E676;
  margin-right: 14px;
  filter: drop-shadow(0 0 6px rgba(0, 230, 118, 0.4));
}

.controls-guide-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  flex-grow: 1;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #f8f9fa;
}

.controls-guide-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.controls-guide-close:hover {
  background: rgba(255, 71, 87, 0.2);
  border-color: rgba(255, 71, 87, 0.5);
  color: #ff4757;
  transform: scale(1.1);
}

.controls-guide-body {
  padding: 24px;
}

.controls-guide-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.controls-guide-item:last-child {
  margin-bottom: 0;
}

.controls-guide-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.2), rgba(0, 230, 118, 0.05));
  border: 1px solid rgba(0, 230, 118, 0.25);
  box-shadow: 0 4px 12px rgba(0, 230, 118, 0.15);
  border-radius: 12px;
  color: #00E676;
  margin-right: 16px;
  flex-shrink: 0;
}

.controls-guide-text {
  display: flex;
  flex-direction: column;
  padding-top: 2px;
}

.controls-guide-text strong {
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.controls-guide-text span {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 768px) {
  .controls-guide-card {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 380px;
    padding: 12px;
  }
}

@keyframes slideUpBottom {
  from {
    opacity: 0;
    transform: translate(50%, 50px);
  }

  to {
    opacity: 1;
    transform: translate(50%, 0);
  }
}


/* ========== ADVANCED NAVIGATION HUD ========== */
.nav-hud-container {
  position: fixed !important;
  top: auto !important;
  bottom: 20px !important;
  left: 20px !important;
  right: auto !important;
  width: auto !important;
  height: auto !important;
  z-index: 1000 !important;
  display: flex !important;
  align-items: flex-end !important;
  gap: 12px;
  animation: slideInLeft 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  pointer-events: none !important;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.hud-avatar-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(20, 25, 40, 0.8), rgba(5, 10, 20, 0.95));
  border: none;
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.2), inset 0 0 15px rgba(0, 230, 118, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hud-avatar-img {
  width: 90%;
  height: 90%;
  border-radius: 50%;
  object-fit: cover;
  mix-blend-mode: screen;
}

.hud-scanner-ring {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  border-radius: 50%;
  border: 2px dashed rgba(0, 230, 118, 0.3);
  border-left-color: transparent;
  border-right-color: transparent;
  animation: spinRing 6s linear infinite;
}

@keyframes spinRing {
  100% {
    transform: rotate(360deg);
  }
}

.hud-online-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  background: #00E676;
  border-radius: 50%;
  border: 2px solid #0a0f24;
  box-shadow: 0 0 10px #00E676;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(0, 230, 118, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
  }
}

.hud-data-panel {
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  min-width: 140px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color: #fff;
  font-family: 'Inter', sans-serif;
  transform-origin: left bottom;
  transition: all 0.3s ease;
  pointer-events: auto !important;
}

.hud-data-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hud-data-header span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #00E676;
  text-shadow: 0 0 8px rgba(0, 230, 118, 0.4);
}

.hud-paths-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hud-path-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  animation: fadeInList 0.3s ease forwards;
}

@keyframes fadeInList {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hud-path-item.empty {
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
}

.hud-path-dir {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  color: #00E676;
  font-weight: 700;
  min-width: 48px;
  text-align: center;
  text-transform: uppercase;
  border: 1px solid rgba(0, 230, 118, 0.15);
}

.hud-path-name {
  color: #f8f9fa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

@media (max-width: 768px) {
  .nav-hud-container {
    position: fixed !important;
    top: auto !important;
    bottom: 10px !important;
    left: 10px !important;
    right: auto !important;
    gap: 6px !important;
  }

  .hud-data-panel {
    min-width: 110px;
    max-width: 140px;
    padding: 5px 8px;
    border-radius: 8px;
  }

  .hud-data-header {
    font-size: 8px;
    gap: 4px;
    margin-bottom: 4px;
  }

  .hud-path-item {
    gap: 5px;
    padding: 2px 0;
  }

  .hud-path-dir {
    min-width: 38px;
    font-size: 8px;
    padding: 1px 3px;
    border-radius: 3px;
  }

  .hud-path-name {
    max-width: 80px;
    font-size: 9px;
  }
}

@media (max-width: 380px) {
  .nav-hud-container {
    position: fixed !important;
    top: auto !important;
    bottom: 8px !important;
    left: 8px !important;
    right: auto !important;
  }

  .hud-data-panel {
    min-width: 95px;
    max-width: 120px;
    padding: 4px 6px;
  }

  .hud-path-name {
    max-width: 65px;
    font-size: 8px;
  }
}

/* Hide Pannellum default title box and arrow tooltips */
.pnlm-title-box,
.pnlm-panorama-info,
.arrow-tooltip {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ABSOLUTE MASTER OVERRIDE FOR NAVIGATION ASSISTANT POSITION */
#navHudContainer,
.nav-hud-container {
  position: fixed !important;
  top: auto !important;
  bottom: 20px !important;
  left: 20px !important;
  right: auto !important;
  width: auto !important;
  height: auto !important;
  max-width: 280px !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: flex-end !important;
  margin: 0 !important;
}

#navHudContainer .hud-data-panel,
.nav-hud-container .hud-data-panel {
  width: auto !important;
  max-width: 240px !important;
  margin: 0 !important;
}

@media (max-width: 768px) {

  #navHudContainer,
  .nav-hud-container {
    position: fixed !important;
    top: auto !important;
    bottom: 12px !important;
    left: 12px !important;
    right: auto !important;
    max-width: 160px !important;
  }
}

/* ABSOLUTE MOBILE ARROW RESIZING OVERRIDE */
@media (max-width: 768px) {

  #panorama .arrow-img,
  .arrow-img {
    width: 50px !important;
    height: 25px !important;
    max-width: 50px !important;
    max-height: 25px !important;
  }

  #panorama .nav-btn,
  .nav-btn,
  #panorama .hotspot-content,
  .hotspot-content {
    width: 35px !important;
    height: 35px !important;
    min-width: 35px !important;
    min-height: 35px !important;
  }
}

@media (max-width: 480px) {

  #panorama .arrow-img,
  .arrow-img {
    width: 40px !important;
    height: 20px !important;
    max-width: 40px !important;
    max-height: 20px !important;
  }

  #panorama .nav-btn,
  .nav-btn,
  #panorama .hotspot-content,
  .hotspot-content {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
  }
}

/* Hide navigation assistant when menu is opened */
.dropdown-menu.show ~ #navHudContainer,
.dropdown-menu.show ~ .nav-hud-container {
  display: none !important;
}