/* Polmor 3D Train Viewer Styles */
.polmor-3d-wrapper {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  min-height: 500px;
  height: 70vh;
  max-height: 850px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  user-select: none;
  touch-action: pan-y;
  cursor: grab;
}

.polmor-3d-wrapper:active {
  cursor: grabbing;
}

.polmor-3d-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Preloader */
.polmor-3d-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: opacity 0.4s ease;
}

.polmor-3d-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.polmor-3d-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e2e8f0;
  border-top-color: #04457D;
  border-radius: 50%;
  animation: polmorSpin 1s linear infinite;
}

.polmor-3d-loader-text {
  margin-top: 16px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #04457D;
  letter-spacing: 0.5px;
}

@keyframes polmorSpin {
  to { transform: rotate(360deg); }
}

/* Hotspots / Pins */
.polmor-3d-hotspot {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #04457D;
  border: 2.5px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(4, 69, 125, 0.35);
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s;
}

.polmor-3d-hotspot::after {
  content: '+';
  line-height: 1;
}

.polmor-3d-hotspot:hover {
  transform: translate(-50%, -50%) scale(1.2);
  background: #0066cc;
  box-shadow: 0 6px 16px rgba(0, 102, 204, 0.5);
}

/* Tooltips */
.polmor-3d-tooltip {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 15;
}

.polmor-3d-hotspot:hover .polmor-3d-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Controls indicator overlay */
.polmor-3d-badge {
  position: absolute;
  bottom: 16px;
  right: 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  z-index: 10;
}

.polmor-3d-badge-icon {
  width: 14px;
  height: 14px;
}
