/* True Cross-fade transition styles */
.fotostep-image-wrapper {
  position: relative;
  width: 640px;
  height: 480px;
  overflow: hidden;
  background-color: #000000;
  display: inline-block;
}

.fotostep-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 640px;
  height: 480px;
  transition: opacity 0.5s ease-in-out;
  opacity: 1;
  z-index: 1;
}

.fotostep-image.fade-out {
  opacity: 0;
}

.fotostep-image.fade-in-start {
  opacity: 0;
  z-index: 2;
}

.fotostep-image.fade-in-end {
  opacity: 1;
  z-index: 2;
}

/* Pulsing highlight for detail areas */
.hotspot-highlight {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
  pointer-events: none; /* Let clicks pass through to the map area below */
  z-index: 5;
  animation: hotspot-pulse 1.8s infinite ease-in-out;
}

@keyframes hotspot-pulse {
  0% {
    opacity: 0.2;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.2);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  }
  100% {
    opacity: 0.2;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.2);
  }
}

/* Timestamp Digital sobre la Foto (Centrado horizontalmente) */
#photo-timestamp {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(12, 12, 12, 0.85);
  color: #ffaa00;
  font-family: 'Consolas', 'Lucida Console', 'Courier New', monospace;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 170, 0, 0.75);
  box-shadow: 0 0 8px rgba(255, 170, 0, 0.5), inset 0 0 5px rgba(0, 0, 0, 0.8);
  text-shadow: 0 0 6px rgba(255, 170, 0, 0.85);
  z-index: 12;
  pointer-events: none;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
}

#photo-timestamp .lcd-dot {
  color: #ff3333;
  font-size: 9px;
  animation: blink-rec 1.2s infinite;
}

@keyframes blink-rec {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Wrapper relativo para posicionar el timestamp sobre la foto */
.foto-wrapper {
  position: relative;
  display: inline-block;
  width: 640px;
  height: 480px;
}
