/* ==========================================================================
   Sensor Map Component
   ========================================================================== */

/* === Container & Image === */
.tech-page .sensor-map {
  position: relative;
  max-width: 600px;
  width: 85%;
  margin: 0 auto;
}

.tech-page .sensor-map .tech-centered-image {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

/* === Hotspot Buttons with Pulsating Outline === */
.tech-page .hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffffff;
  border: 0px solid #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  z-index: 3;
  box-shadow: 0 0 12px rgba(255, 132, 180, 0.35);
  animation: hotspotPulse 2.5s infinite ease-in-out;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Pink icon tint */
.tech-page .hotspot-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  pointer-events: none;

}

/* Hover interaction */
.tech-page .hotspot:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 18px rgba(255, 132, 180, 0.55);
}

/* === Pink Pulsating Outline Animation === */
@keyframes hotspotPulse {
  0% {
    box-shadow: 0 0 8px rgba(255, 132, 180, 0.4),
                0 0 0 0 rgba(255, 132, 180, 0.5);
  }
  70% {
    box-shadow: 0 0 12px rgba(255, 132, 180, 0.6),
                0 0 0 12px rgba(255, 132, 180, 0);
  }
  140% {
    box-shadow: 0 0 8px rgba(255, 132, 180, 0.4),
                0 0 0 0 rgba(255, 132, 180, 0);
  }
}

/* === Floating Info Card (centered over hotspot) === */
.tech-page .hotspot-card {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 220px;
  max-width: 240px;
  background: #fff;
  color: var(--text-primary);
  border: 2px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 20px 16px 16px;
  z-index: 999;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.tech-page .hotspot-card[data-open="true"] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.dark-mode .tech-page .hotspot-card {
  background: #1f1f1f;
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.08);
}

/* === Card Content === */
.tech-page .hotspot-card-title {
    
  text-align: left;
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.tech-page .hotspot-card-body {
  text-align: left;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

/* === Close Button === */
.tech-page .hotspot-card-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.45);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 10;
}

.tech-page .hotspot-card-close:hover {
  color: var(--accent-color, #DF4DA6);
}

.dark-mode .tech-page .hotspot-card-close {
  color: rgba(255, 255, 255, 0.45);
}
.dark-mode .tech-page .hotspot-card-close:hover {
  color: #fff;
}

/* === Hide the card icon === */
.tech-page .hotspot-card-icon {
  display: none !important;
}

/* === Hotspot Logical Positions === */
.tech-page .hotspot[data-title="GNSS module"] { --x: 23%; --y: 36%; }
.tech-page .hotspot[data-title="Accelerometer"] { --x: 50%; --y: 36%; }
.tech-page .hotspot[data-title="Power monitor"] { --x: 77%; --y: 36%; }
.tech-page .hotspot[data-title="Precharge controller"] { --x: 23%; --y: 64%; }
.tech-page .hotspot[data-title="Thermal monitoring"] { --x: 50%; --y: 64%; }
.tech-page .hotspot[data-title="Enable & contactor system"] { --x: 77%; --y: 64%; }

/* ==========================================================================
   Optional Enhancements
   ========================================================================== */

/* Fade in close button */
.tech-page .hotspot-card-close { opacity: 0.7; }
.tech-page .hotspot-card:hover .hotspot-card-close { opacity: 1; }

.visually-hidden{
  position:absolute!important;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);
  height:1px;width:1px;overflow:hidden;white-space:nowrap;border:0;padding:0;margin:-1px;
}