/* Vector Mall Map Styling */
.map-viewport {
  position: relative;
  width: 100%;
  height: calc(100vh - 120px);
  background: #ffffff;
  overflow: hidden;
  border: 1px solid var(--copelt-border);
  border-radius: 8px;
  user-select: none;
  touch-action: none;
}

.map-svg {
  width: 100%;
  height: 100%;
  cursor: grab;
  transition: transform 0.05s linear;
}

.map-svg:active {
  cursor: grabbing;
}

.map-polygon {
  fill: #f8f9fa;
  stroke: #0a1b39;
  stroke-width: 1.5;
  transition: fill 0.2s, stroke-width 0.2s;
  cursor: pointer;
}

.map-polygon:hover {
  fill: #eef2f6;
  stroke: #c07f21;
  stroke-width: 2.5;
}

.map-polygon.pro-tenant {
  fill: #ffffff;
  stroke: #c07f21;
}

.map-pin {
  cursor: pointer;
  transition: transform 0.2s;
}

.map-pin:hover {
  transform: scale(1.25);
}

/* Floor Switcher & Right Controls */
.floor-switcher {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(7, 21, 43, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 60;
}

.floor-btn {
  padding: 0.45rem 0.85rem;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.78rem;
  color: #cbd5e1;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.18s ease;
  text-align: center;
}

.floor-btn:last-child {
  border-bottom: none;
}

.floor-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.floor-btn.active {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.floor-btn.parking-floor-btn {
  background: rgba(15, 23, 42, 0.6);
  color: #38bdf8;
  font-size: 0.76rem;
}

.floor-btn.parking-floor-btn.active, .floor-btn.parking-floor-btn:hover {
  background: linear-gradient(135deg, #0369a1, #0284c7);
  color: #ffffff;
}

/* 3D Camera Angles & Controls Bar */
.camera-presets-bar,
.camera-preset-bar {
  position: absolute;
  top: 10.5rem;
  right: 0.85rem;
  background: rgba(7, 21, 43, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 60;
  padding: 5px;
  gap: 3px;
  min-width: 120px;
}

.camera-presets-header {
  font-size: 0.64rem;
  font-weight: 800;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 6px 1px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.camera-preset-btn {
  padding: 0.38rem 0.65rem;
  border: none;
  background: transparent;
  font-size: 0.74rem;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  border-radius: 6px;
  text-align: left;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.camera-preset-btn:hover {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
}

.camera-preset-btn.active {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* Futuristic Cyber-Glassmorphism Modal Card (Freemium & Amenity Popups) */
.free-store-tooltip {
  position: absolute;
  background: rgba(7, 21, 43, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.2);
  z-index: 80;
  display: none;
  min-width: 290px;
  max-width: 340px;
  color: #e2e8f0;
  animation: cyberModalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cyberModalPop {
  0% { opacity: 0; transform: scale(0.92) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Universal Cyber Modal Close Button */
.cyber-modal-close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.cyber-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: #ffffff;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* Pro Store Futuristic Cyber-Luxe Sidebar Drawer (Multi-Style Engine) */
.pro-store-sidebar {
  position: absolute;
  top: 0;
  right: 0;
  width: 440px;
  max-width: 92vw;
  height: 100%;
  background: rgba(7, 21, 43, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(245, 158, 11, 0.15);
  z-index: 90;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 2rem 1.75rem;
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
}

.pro-store-sidebar.open {
  transform: translateX(0);
}

.pro-store-sidebar::-webkit-scrollbar {
  width: 5px;
}

.pro-store-sidebar::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.4);
  border-radius: 4px;
}

/* Sidebar Theme Presets */
.pro-store-sidebar.theme-glassmorphism {
  background: rgba(15, 23, 42, 0.88);
  border-left: 1px solid rgba(56, 189, 248, 0.5);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.2);
}

.pro-store-sidebar.theme-editorial {
  background: #071224;
  border-left: 2px solid #f59e0b;
}

/* Pro Sidebar Action Buttons (Protected from global .btn overrides) */
.pro-store-sidebar .pro-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  line-height: 1.3;
}

.pro-store-sidebar .pro-btn-route {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #07152b !important;
  border: none !important;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
}

.pro-store-sidebar .pro-btn-route:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.55);
  filter: brightness(1.05);
}

.pro-store-sidebar .pro-btn-handoff {
  background: rgba(56, 189, 248, 0.12) !important;
  border: 1.5px solid #38bdf8 !important;
  color: #38bdf8 !important;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.15);
}

.pro-store-sidebar .pro-btn-handoff:hover {
  background: rgba(56, 189, 248, 0.24) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.35);
}

.pro-store-sidebar .pro-btn-minisite {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.pro-store-sidebar .pro-btn-minisite:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25);
}

.pro-store-sidebar .pro-btn-whatsapp {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.35);
}

.pro-store-sidebar .pro-btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(34, 197, 94, 0.55);
  filter: brightness(1.05);
}

/* Mode Switcher (2D / 3D Hologram / WebAR / Kiosk) */
.view-mode-bar {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  max-width: calc(100% - 110px);
  background: rgba(7, 21, 43, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 4px 6px;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 100;
  overflow: visible;
  white-space: nowrap;
}

.view-mode-btn {
  background: transparent;
  color: #e2e8f0;
  border: none;
  padding: 0.42rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.view-mode-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.view-mode-btn.active {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
}

/* 3D WebGL Canvas */
#mall-3d-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  cursor: grab;
  outline: none;
  touch-action: none;
}

#mall-3d-canvas:active {
  cursor: grabbing;
}

/* 3D Hologram Controls Overlay / Bottom 3D Quick-Action Bar */
.hologram-overlay {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: auto;
  transform: none !important;
  max-width: calc(100% - 1.5rem);
  background: rgba(7, 21, 43, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 24px;
  color: #ffffff;
  padding: 4px 8px;
  font-size: 0.76rem;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 6px;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.hologram-overlay::-webkit-scrollbar {
  display: none;
}

.hologram-tag {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.hologram-tag:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(14, 165, 233, 0.45));
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.45);
}

.hologram-tag:active {
  transform: translateY(0) scale(0.96);
}

/* QR Handoff Modal */
.qr-handoff-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 27, 57, 0.85);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.qr-handoff-box {
  background: rgba(7, 21, 43, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 18px;
  border: 1px solid rgba(245, 158, 11, 0.5);
  padding: 2.5rem;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 158, 11, 0.2);
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  color: #e2e8f0;
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* WebAR Simulator Overlay */
.webar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/hero-mall-saas.jpg') center/cover no-repeat;
  display: none;
  z-index: 55;
  overflow: hidden;
}

.webar-ar-hud {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 40%, rgba(10,27,57,0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  color: #ffffff;
}

.ar-floating-arrow {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: arFloat 1.5s ease-in-out infinite alternate;
}

@keyframes arFloat {
  0% { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 0 10px #c07f21); }
  100% { transform: translate(-50%, -60%) scale(1.08); filter: drop-shadow(0 0 25px #c07f21); }
}

/* 2D to 3D Cinematic Hologram Transition Effects */
.map-svg {
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
  transform-origin: center center;
}

.map-svg.transitioning-out {
  opacity: 0;
  transform: scale(0.92) rotateX(25deg);
  filter: blur(4px) drop-shadow(0 20px 30px rgba(56,189,248,0.4));
}

#mall-3d-canvas {
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

#mall-3d-canvas.transitioning-in {
  opacity: 0;
  animation: canvasFadeIn 0.5s ease-out forwards;
}

@keyframes canvasFadeIn {
  0% { opacity: 0; filter: brightness(1.5) contrast(1.2); }
  100% { opacity: 1; filter: brightness(1) contrast(1); }
}

/* Real-Time "Estás Aquí" User Location Pulsating Beacon */
.user-location-pulse {
  animation: pulseRadar 2s infinite cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: center;
}

@keyframes pulseRadar {
  0% {
    r: 12;
    opacity: 0.85;
    stroke-width: 3;
  }
  70% {
    r: 36;
    opacity: 0.15;
    stroke-width: 1.5;
  }
  100% {
    r: 46;
    opacity: 0;
    stroke-width: 0;
  }
}

.user-dot-glow {
  animation: userDotGlow 1.5s ease-in-out infinite alternate;
}

@keyframes userDotGlow {
  0% { filter: drop-shadow(0 0 4px #0284c7); transform: scale(1); }
  100% { filter: drop-shadow(0 0 12px #38bdf8); transform: scale(1.15); }
}

@keyframes routeDash {
  to {
    stroke-dashoffset: -32;
  }
}

/* ==========================================================================
   MEGA-MALL EXTENSIONS: SECTORS, DEMO SWITCHER, SMART PARKING & ACCESS GATES
   ========================================================================== */

/* Top Demo Mall Switcher Bar */
.mall-demo-switcher {
  background: linear-gradient(90deg, #07152b 0%, #0f274a 50%, #07152b 100%);
  border-bottom: 2px solid rgba(245, 158, 11, 0.4);
  padding: 0.65rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  position: relative;
  z-index: 100;
}

.mall-demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  transition: all 0.22s ease;
}

.mall-demo-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

.mall-demo-pill.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000000;
  border-color: #fbbf24;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.5);
}

/* Horizontal Scroll Container & Lateral Navigation Buttons for PC/Mobile */
.horizontal-scroll-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
}

.horizontal-scroll-track {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  padding: 4px 2px;
  align-items: center;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.horizontal-scroll-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.horizontal-scroll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  z-index: 2;
  user-select: none;
  padding: 0;
}

.horizontal-scroll-btn:hover {
  background: #f8fafc;
  border-color: #0284c7;
  color: #0284c7;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.22);
}

.horizontal-scroll-btn:active {
  transform: scale(0.94);
}

.horizontal-scroll-btn:disabled,
.horizontal-scroll-btn.disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
  border-color: #e2e8f0;
  box-shadow: none;
  transform: none;
}

/* Sectors & Wings Navigation Bar */
.sectors-nav-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  align-items: center;
}

.sectors-nav-bar::-webkit-scrollbar {
  display: none;
}

.sector-chip-btn {
  background: #ffffff;
  color: var(--copelt-primary);
  border: 1px solid var(--copelt-border);
  padding: 0.4rem 0.95rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.sector-chip-btn:hover {
  background: #f1f5f9;
  border-color: #38bdf8;
  color: #0284c7;
  transform: translateY(-1px);
}

.sector-chip-btn.active {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

/* Smart Parking Modal */
.parking-column-btn {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1.5px solid rgba(56, 189, 248, 0.3);
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
}

.parking-column-btn:hover {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.parking-column-btn.active {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000000;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.parking-active-badge {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 0 12px rgba(22, 163, 74, 0.4);
}

.gate-recommendation-badge {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   SAFETY, EARTHQUAKE HALOS & INCLUSIVE AMENITIES
   ========================================================================== */
.earthquake-safe-halo {
  animation: earthquakeHaloPulse 2.5s infinite ease-in-out;
  transform-origin: center;
}

@keyframes earthquakeHaloPulse {
  0% {
    r: 22;
    fill-opacity: 0.15;
    stroke-opacity: 0.5;
  }
  50% {
    r: 32;
    fill-opacity: 0.45;
    stroke-opacity: 1;
  }
  100% {
    r: 22;
    fill-opacity: 0.15;
    stroke-opacity: 0.5;
  }
}

/* Rock-Solid SVG Safety and Amenity Hover (Zero Displacement & Zero Jitter) */
.safety-point-node,
.map-node,
.map-node rect,
.map-polygon {
  transform-box: fill-box !important;
  transform-origin: center center !important;
}

.safety-point-node:hover circle,
.safety-point-node:hover rect {
  filter: brightness(1.3) drop-shadow(0 0 12px #38bdf8) !important;
  stroke-width: 3px !important;
  cursor: pointer !important;
}

.map-node:hover rect {
  filter: brightness(1.18) drop-shadow(0 0 14px rgba(56, 189, 248, 0.6)) !important;
  cursor: pointer !important;
}

.earthquake-safe-halo {
  animation: copeltEarthquakePulse 2.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center center;
}

@keyframes copeltEarthquakePulse {
  0%, 100% {
    r: 22;
    fill-opacity: 0.2;
    stroke-opacity: 0.4;
  }
  50% {
    r: 32;
    fill-opacity: 0.45;
    stroke-opacity: 0.9;
  }
}


/* ==========================================================================
   3D VIRTUAL TOUR HUD & VIRTUAL D-PAD CONTROLLER
   ========================================================================== */
.virtual-tour-hud {
  position: absolute;
  bottom: 0.85rem;
  right: 0.85rem;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
  animation: cyberModalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dpad-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(7, 21, 43, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 22px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(56, 189, 248, 0.2);
  pointer-events: auto;
}

.dpad-middle-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dpad-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(15, 23, 42, 0.85);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  touch-action: none;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.dpad-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #ffffff;
  transform: scale(1.06);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
}

.dpad-btn:active,
.dpad-btn.active {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #07152b;
  transform: scale(0.92);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.7);
}

.dpad-center {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.25));
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  font-size: 1.05rem;
}

.dpad-center:hover {
  background: rgba(245, 158, 11, 0.35);
  border-color: #fbbf24;
}

.dpad-center.walk-active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #07152b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.7);
}

.tour-hint-pill {
  background: rgba(7, 21, 43, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 3px 8px;
  color: #cbd5e1;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  pointer-events: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.hint-separator {
  color: #64748b;
  font-size: 0.62rem;
}

@media (max-width: 768px) {
  .virtual-tour-hud {
    bottom: 0.6rem;
    right: 0.6rem;
  }
  .dpad-btn {
    width: 32px;
    height: 32px;
  }
  .tour-hint-pill {
    display: none;
  }
}

/* ==========================================================================
   ULTRA-HIGH VISIBILITY LOCATION PIN & RADAR BEACON (2D & 3D MAPS)
   ========================================================================== */

/* 2D SVG Location Pin Animations */
@keyframes copelt2dPinBounce {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 6px 14px rgba(245, 158, 11, 0.7));
  }
  50% {
    transform: translateY(-14px) scale(1.08);
    filter: drop-shadow(0 14px 25px rgba(245, 158, 11, 0.95)) drop-shadow(0 0 18px rgba(56, 189, 248, 0.8));
  }
}

@keyframes copelt2dRadarPulse1 {
  0% {
    r: 12;
    opacity: 0.95;
    stroke-width: 3.5;
  }
  100% {
    r: 75;
    opacity: 0;
    stroke-width: 0.5;
  }
}

@keyframes copelt2dRadarPulse2 {
  0% {
    r: 12;
    opacity: 0.8;
    stroke-width: 3;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    r: 110;
    opacity: 0;
    stroke-width: 0.5;
  }
}

@keyframes copeltStoreStrobeGlow {
  0%, 100% {
    stroke: #f59e0b;
    stroke-width: 4.5;
    filter: drop-shadow(0 0 8px #f59e0b);
  }
  50% {
    stroke: #38bdf8;
    stroke-width: 7;
    filter: drop-shadow(0 0 20px #38bdf8) drop-shadow(0 0 30px #f59e0b);
  }
}

.copelt-store-highlighted rect {
  animation: copeltStoreStrobeGlow 1.2s ease-in-out infinite !important;
}

.copelt-pin-2d-root {
  pointer-events: none;
  z-index: 999;
}

.copelt-pin-2d-animated {
  animation: copelt2dPinBounce 1.4s ease-in-out infinite;
  transform-origin: center bottom;
}

.copelt-radar-ring-1 {
  animation: copelt2dRadarPulse1 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  transform-origin: center;
}

.copelt-radar-ring-2 {
  animation: copelt2dRadarPulse2 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) infinite 0.6s;
  transform-origin: center;
}

/* Floating HUD Label over Pin in 2D Viewport */
.copelt-pin-floating-tag {
  position: absolute;
  transform: translate(-50%, -100%);
  background: linear-gradient(135deg, rgba(7, 21, 43, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 2px solid #38bdf8;
  border-radius: 30px;
  padding: 6px 14px;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.82rem;
  white-space: nowrap;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.5);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  z-index: 1000;
  pointer-events: auto;
  animation: copelt2dPinBounce 1.4s ease-in-out infinite;
}

.copelt-pin-floating-tag::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 7px 7px 0 7px;
  border-style: solid;
  border-color: #38bdf8 transparent transparent transparent;
}

/* =========================================================================
 * MULTI-THEME MAP ENGINE STYLES (2D & 3D WebGL Switcher)
 * ========================================================================= */
.theme-selector-container {
  position: relative;
  display: inline-flex;
}

.theme-selector-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 270px;
  background: rgba(10, 27, 57, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.2);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 120;
  animation: themeDropdownIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-selector-dropdown.show {
  display: flex;
}

@keyframes themeDropdownIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.theme-dropdown-header {
  padding: 6px 10px 8px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #38bdf8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.theme-option-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #f1f5f9;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  width: 100%;
}

.theme-option-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateX(2px);
}

.theme-option-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(2, 132, 199, 0.25) 100%);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.theme-preview-dots {
  display: flex;
  gap: 3px;
  align-items: center;
}

.theme-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.theme-option-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.theme-option-title {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

.theme-option-desc {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 500;
  line-height: 1.1;
  margin-top: 2px;
}

.theme-active-check {
  color: #38bdf8;
  font-size: 0.85rem;
  font-weight: 900;
}

/* Category Legend Pill Bar */
.category-legend-bar {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: auto;
  transform: none !important;
  background: rgba(7, 21, 43, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 24px;
  padding: 4px 8px;
  display: flex;
  gap: 6px;
  align-items: center;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  max-width: calc(100% - 1.5rem);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
  box-sizing: border-box;
  transition: opacity 0.3s ease;
}

.category-legend-bar::-webkit-scrollbar {
  display: none;
}

.category-legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
  padding: 3px 9px;
  border-radius: 14px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  background: transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-legend-pill:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
}

.category-legend-pill.active {
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.85);
  transform: scale(1.04);
}

.category-legend-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Zero-Jitter SVG Nodes & Luminous Amenity Badges (Eliminates Hover Flickering) */
.map-amenity-node {
  transform-box: fill-box !important;
  transform-origin: center center !important;
  transition: filter 0.18s ease;
  cursor: pointer;
}

.map-amenity-node:hover {
  filter: brightness(1.22) drop-shadow(0 0 10px rgba(56, 189, 248, 0.75));
}

.map-amenity-node:hover circle,
.map-amenity-node:hover rect {
  stroke-width: 3.2px;
  stroke: #38bdf8 !important;
}

.map-amenity-node text,
.map-node text,
.safety-point-node text {
  pointer-events: none !important;
  user-select: none;
}

.map-node {
  transform-box: fill-box !important;
  transform-origin: center center !important;
  transition: filter 0.18s ease;
}

.map-node:hover {
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.65));
}

.map-node:hover rect {
  stroke-width: 3px !important;
  stroke: #38bdf8 !important;
}

/* ==========================================================================
   TOP-DOWN AERIAL USER AVATAR & RADAR HALO (REPRESENTACIÓN CENITAL DE PERSONA)
   ========================================================================== */
.user-radar-pulse-1 {
  animation: userRadarPulse1 2.2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
  transform-box: fill-box;
  transform-origin: center center;
}

.user-radar-pulse-2 {
  animation: userRadarPulse2 2.2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite 0.7s;
  transform-box: fill-box;
  transform-origin: center center;
}

@keyframes userRadarPulse1 {
  0% {
    r: 14;
    opacity: 0.85;
    stroke-width: 2.5;
  }
  100% {
    r: 46;
    opacity: 0;
    stroke-width: 0.5;
  }
}

@keyframes userRadarPulse2 {
  0% {
    r: 14;
    opacity: 0.7;
    stroke-width: 2;
  }
  100% {
    r: 68;
    opacity: 0;
    stroke-width: 0.5;
  }
}

.user-vision-cone {
  animation: userVisionBreathe 3s ease-in-out infinite alternate;
}

@keyframes userVisionBreathe {
  0% {
    opacity: 0.25;
  }
  100% {
    opacity: 0.55;
  }
}

.user-topdown-avatar {
  transition: transform 0.2s ease;
}

#user-live-beacon:hover .user-topdown-avatar {
  filter: drop-shadow(0 0 12px #38bdf8);
}

/* =========================================================================
 * RESPONSIVE OPTIMIZATIONS: PC, TABLET & MOBILE (MAX VIEWABLE MAP CANVAS)
 * ========================================================================= */
@media (max-width: 992px) {
  .map-viewport {
    height: calc(100vh - 100px);
  }
  .view-mode-bar {
    top: 0.65rem;
    left: 0.65rem;
    max-width: calc(100% - 95px);
  }
  .floor-switcher {
    top: 0.65rem;
    right: 0.65rem;
  }
  .camera-presets-bar, .camera-preset-bar {
    top: 9.8rem;
    right: 0.65rem;
  }
  .hologram-overlay {
    bottom: 0.65rem;
    left: 0.65rem;
    right: auto;
    transform: none !important;
    max-width: calc(100% - 1.3rem);
  }
  .category-legend-bar {
    bottom: 0.65rem;
    left: 0.65rem;
    right: auto;
    transform: none !important;
    max-width: calc(100% - 1.3rem);
  }
}

@media (max-width: 680px) {
  .map-viewport {
    height: calc(100vh - 75px);
    border-radius: 0;
  }
  .view-mode-bar {
    top: 0.45rem;
    left: 0.45rem;
    max-width: calc(100% - 80px);
    padding: 3px 4px;
    gap: 3px;
  }
  .view-mode-btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.72rem;
  }
  .floor-switcher {
    top: 0.45rem;
    right: 0.45rem;
  }
  .floor-btn {
    padding: 0.38rem 0.6rem;
    font-size: 0.72rem;
  }
  .camera-presets-bar, .camera-preset-bar {
    top: 8.8rem;
    right: 0.45rem;
    padding: 2px;
  }
  .camera-preset-btn {
    padding: 0.32rem 0.5rem;
    font-size: 0.68rem;
  }
  .hologram-overlay {
    bottom: 0.45rem;
    left: 0.45rem;
    right: auto;
    transform: none !important;
    max-width: calc(100% - 0.9rem);
    padding: 3px 6px;
    gap: 4px;
  }
  .hologram-tag {
    padding: 3px 8px;
    font-size: 0.7rem;
  }
  .category-legend-bar {
    bottom: 0.45rem;
    left: 0.45rem;
    right: auto;
    transform: none !important;
    max-width: calc(100% - 0.9rem);
    padding: 3px 8px;
    gap: 5px;
  }
  .category-legend-pill {
    padding: 2px 6px;
    font-size: 0.66rem;
  }
  .virtual-tour-hud {
    bottom: 0.45rem;
    right: 0.45rem;
  }
  .dpad-btn {
    width: 30px;
    height: 30px;
  }
}