.image-map-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

/* SVG is now the responsive container */
.clickable-overlay {
    border: 2px solid red;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* --- Hotspot base --- */
.hotspot {
  cursor: url("../images/magnifying-glass-white.png"), zoom-in;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out; /* for the pointer */
  /* Base styles for hotspots */
  fill: transparent;
  stroke: transparent;
  transition: stroke 0.3s, fill-opacity 0.3s;
  transform-origin: center;
  transform-box: fill-box;
}
.hotspot:hover {
  stroke: rgba(0,255,0,0.4);
  stroke-width: 3;
}
.hotspot.active {
  stroke: #00ff00;
  stroke-width: 4;
  fill-opacity: 0.1;
  filter: drop-shadow(0 0 6px rgba(0,255,0,0.6));
}

/* --- Pulse animation --- */
@keyframes pulse {
  0% { transform: scale(1); stroke-width: 4; }
  50% { transform: scale(1.1); stroke-width: 6; stroke: #e5ff00; fill: #e5ff00; }
  100% { transform: scale(1); stroke-width: 4; }
}
.hotspot.pulse {
  animation: pulse 0.6s ease-out;
}

/* --- Tooltip box --- */
.tooltip-box {
  position: absolute;
  background: #00ff00;
  color: #000;
  font-size: 0.75rem;
  padding: 0.3em 0.6em;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  white-space: nowrap;
  z-index: 50;
}
.tooltip-box.visible {
  opacity: 1;
}

/* Hide tooltip entirely on small screens */
@media (max-width: 700px) {
  #tooltip {
    display: none;
  }
}

/* --- Info box --- */
.suitcase-info {
  position: absolute;
  top: 47%;
  left: 40%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.9);
  border: 2px solid #ccc;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  width: 60%;
  max-width: 400px;
  z-index: 10;
  text-align: center;
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
}
#info-text {
  transition: opacity 0.4s ease-in-out;
}
.hidden-text { opacity: 0; }

/* --- Mobile behavior --- */
@media (max-width: 700px) {
  .suitcase-info {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    margin-top: 1rem;
  }
  .image-map-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hotspot::after, .hotspot::before {
    display: none !important;
  }
}
