.ihd-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  max-width: 100%;
  margin: 0 auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ihd-image-col {
  flex: 1 1 60%;
  min-width: 300px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: #000;
}

.ihd-image-wrap {
  position: relative;
  display: block;
  width: 100%;
  line-height: 0;
}

.ihd-image {
  display: block;
  width: 100%;
  height: auto;
}

.ihd-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* HOTSPOT */
.ihd-hotspot {
  position: absolute;
  pointer-events: auto;
  background: rgba(255, 235, 59, 0.05);
  /* Faint visual aid by default */
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  z-index: 100;
  transition: background-color 0.15s ease;
}

.ihd-hotspot[data-shape="circle"] {
  border-radius: 50%;
}

.ihd-hotspot:hover,
.ihd-hotspot:focus-visible,
.ihd-hotspot.is-active {
  background-color: rgba(255, 235, 59, 0.5);
  /* Strong yellow on hover */
  /* Rects can have box-shadow safely */
}

/* Specific overrides if needed, but background-color is safest for all shapes */
.ihd-hotspot[data-shape="rect"]:hover,
.ihd-hotspot[data-shape="rect"].is-active {
  box-shadow: 0 0 0 2px rgba(255, 235, 59, 0.8);
}


/* Being smarter about display - keeping the old one for now but styled better */
.ihd-display-wrap {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.85);
  color: #39ff14;
  /* Terminal Green */
  padding: 8px 16px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 16px;
  border: 1px solid #39ff14;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
  pointer-events: none;
  z-index: 20;
}

.ihd-display-text {
  letter-spacing: 1px;
}

/* REPLACING OLD DISPLAY CLASS USAGE WITH NEW WRAPPER FOR BETTER TARGETING */
.ihd-display {
  position: absolute;
  right: 20px;
  bottom: 20px;
  background: rgba(10, 10, 10, 0.9);
  color: #00ff41;
  padding: 8px 15px;
  border-radius: 4px;
  font-family: 'Consolas', 'Monaco', monospace;
  border: 1px solid #00ff41;
  box-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
  z-index: 20;
  font-size: 1.1em;
}


/* INFO COLUMN */
.ihd-info-col {
  flex: 1 1 300px;
}

.ihd-info-panel {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 20px;
  border: 1px solid #eaeaea;
  transition: transform 0.2s ease;
}

.ihd-info-title {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.ihd-info-body {
  font-size: 1rem;
  line-height: 1.6;
  color: #4a4a4a;
  white-space: pre-wrap;
}

/* ANIMATION */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ihd-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .ihd-container {
    flex-direction: column;
  }

  .ihd-info-col {
    width: 100%;
    flex: auto;
  }
}

/* OVERLAYS */
.ihd-overlay-item {
  pointer-events: none;
  /* Let clicks pass through to hotspots below */
  z-index: 50;
  /* Above image, below hotspots (100) */
  transition: opacity 0.2s ease;
}