
/* ==========================================================================
   Hotspot UI
   ========================================================================== */
#hotspot-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 15;
}

#hotspot-container.hidden {
  display: none;
}

.hotspot-btn {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  color: #121212;
  font-weight: 800;
  font-size: 1.2rem;
  border: 3px solid var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translate(-50%, -50%); /* Center on the exact coordinate */
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  animation: pulse-hotspot 2s infinite ease-in-out;
  transition: transform 0.1s, background-color 0.2s;
  font-family: 'Montserrat', sans-serif;
}

.hotspot-btn:active {
  background-color: var(--primary-color);
  color: white;
  transform: translate(-50%, -50%) scale(0.9);
}

@keyframes pulse-hotspot {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* ==========================================================================
   Hotspot Card (Information Overlay)
   ========================================================================== */
#hotspot-card {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  z-index: 25;
}

.hotspot-card-content {
  background: url('../assets/images/wood-texture.jpg') #f2e3c6; /* Fallback color if image not found */
  background-size: cover;
  background-position: center;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 500px;
  padding: 1.5rem;
  padding-top: 2rem;
  position: relative;
  box-shadow: 0 -5px 25px rgba(0,0,0,0.4);
  color: #3e2723; /* Dark brown for text */
  pointer-events: auto;
  animation: slideUp 0.3s ease-out;
  border-top: 4px solid #8d6e63;
  font-family: var(--font-family);
}

@keyframes slideUp {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

#hotspot-card .close-btn {
  color: #3e2723;
  top: 10px;
  right: 15px;
  font-weight: bold;
  opacity: 0.7;
}

#hotspot-card .close-btn:active {
  opacity: 1;
}

.hotspot-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.2rem;
  border-bottom: 2px solid rgba(141, 110, 99, 0.3);
  padding-bottom: 0.8rem;
}

.hotspot-badge {
  background-color: #3e2723;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
}

#hotspot-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: #3e2723;
  letter-spacing: 1px;
  margin: 0;
}

.hotspot-card-body {
  font-size: 1rem;
  line-height: 1.5;
}

.hotspot-data-group {
  margin-bottom: 1rem;
}

.hotspot-data-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: #5d4037;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  letter-spacing: 0.5px;
}

.hotspot-data-value {
  font-weight: 500;
  color: #212121;
}

/* Specific styling for Classification Badge */
.classification-chip {
  display: inline-block;
  background-color: #3e2723;
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 16px;
  font-weight: bold;
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Specific styling for Color Indicator */
.color-indicator-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #3e2723;
  display: inline-block;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

