/* 3D Model Viewer Hotspot Styles */
/* Accessibility: Improved focus states and touch targets */

#hero-model:focus:not(:focus-visible) {
  outline: none;
}

#hero-model {
  outline: none;
}

.Hotspot {
  background: #fff;
  border-radius: 32px;
  border: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  cursor: pointer;
  height: 44px; /* Increased from 24px for better accessibility (WCAG 2.1 AA) */
  min-height: 44px;
  min-width: 44px;
  padding: 8px;
  position: relative;
  transition: opacity 0.3s;
  width: 44px; /* Increased from 24px for better accessibility (WCAG 2.1 AA) */
}

.Hotspot:not([data-visible]) {
  background: transparent;
  border: 4px solid #fff;
  box-shadow: none;
  height: 48px; /* Increased from 32px */
  pointer-events: none;
  width: 48px; /* Increased from 32px */
}

.Hotspot:focus {
  border: 4px solid rgb(0, 128, 200);
  height: 48px; /* Increased from 32px */
  outline: 2px solid rgb(0, 128, 200);
  outline-offset: 2px;
  width: 48px; /* Increased from 32px */
}

.Hotspot:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.Hotspot > * {
  opacity: 1;
  transform: translateY(-50%);
}

.HotspotAnnotation {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  color: rgba(0, 0, 0, 0.8);
  display: block;
  font-family: Futura, Helvetica Neue, sans-serif;
  font-size: 15px;
  font-weight: 700;
  left: calc(100% + 1em);
  max-width: 128px;
  padding: 0.2em 0.4em;
  position: absolute;
  top: 50%;
  width: max-content;
}

.Hotspot:not([data-visible]) > * {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(-50% + 4px));
  transition: transform 0.3s, opacity 0.3s;
}

/* Blink animation for live indicator */
.Blink {
  animation: blinker 1.1s cubic-bezier(.5, 0, 1, 1) infinite alternate;
}

@keyframes blinker {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .Hotspot {
    height: 48px; /* Even larger on mobile */
    width: 48px;
  }

  .HotspotAnnotation {
    font-size: 13px;
    max-width: 100px;
  }
}
