/* Map Depth Navigation Component */
.map-depth-container {
  display: none !important; /* Hide Map Depth navigation */
  position: fixed;
  bottom: 140px; /* Positioned above HPI Summary */
  left: 16px; /* Match HPI Summary alignment */
  background-color: transparent;
  z-index: 501; /* Just above HPI Summary (500) */
  transition: all 0.3s ease;
  pointer-events: auto; /* Ensure clicks work */
}


.map-depth-title {
  font-size: 16px;
  font-weight: bold;
  color: #888;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.map-depth-levels {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.map-depth-level {
  display: inline-block;
  padding: 4px 0;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: left;
  pointer-events: auto; /* Ensure clicks work */
  user-select: none; /* Prevent text selection */
}


.map-depth-level:hover .map-depth-level-text {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.map-depth-level.active .map-depth-level-text {
  color: #00bfff;
  font-weight: bold;
}



.map-depth-level-text {
  font-size: 18px;
  font-weight: normal;
  color: #999;
  transition: all 0.2s ease;
  display: inline-block;
}






/* Animation for level transitions */
@keyframes levelPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 191, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 191, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 191, 255, 0);
  }
}

.map-depth-level.active .map-depth-level-indicator {
  animation: levelPulse 2s infinite;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .map-depth-container {
    bottom: 120px;
    left: 10px;
  }
  
  .map-depth-title {
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  .map-depth-level {
    padding: 4px 0;
  }
  
  .map-depth-level-text {
    font-size: 16px;
  }
  
}

/* Tooltip for collapsed state */
.map-depth-level-tooltip {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(26, 26, 26, 0.95);
  color: #ddd;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  border: 1px solid #333;
  z-index: 1000;
}

.map-depth-container.collapsed .map-depth-level:hover .map-depth-level-tooltip {
  opacity: 1;
}
