.track-start-marker,
.track-end-marker {
  background: none !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.track-start-marker img,
.track-end-marker img {
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.track-point-marker {
  background: none !important;
  border: none !important;
}

.track-point-marker div {
  border: 2px solid #fff;
  transition: transform 0.2s ease;
}

/* 轨迹线流动动画 */
.track-animated-line {
  animation: dashFlow 1.5s linear infinite;
}

@keyframes dashFlow {
  0% {
    stroke-dashoffset: 20;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* 移动标记 */
.track-moving-marker {
  background: none !important;
  border: none !important;
  z-index: 1000 !important;
}

.track-moving-marker .moving-icon {
  width: 28px;
  height: 28px;
  background: #1890ff;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 1.2s ease-in-out infinite;
}

.track-moving-marker .moving-icon::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.5);
  }
  50% {
    box-shadow: 0 2px 16px rgba(24, 144, 255, 0.8);
  }
}

/* Leaflet 弹窗样式优化 */
.leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
  margin: 12px 16px;
  font-size: 13px;
  line-height: 1.6;
}

.leaflet-popup-content h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.leaflet-popup-content p {
  margin: 4px 0;
  color: #666;
}

/* 地图自定义控件 */
.map-custom-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-custom-controls .ant-btn {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 轨迹统计面板 */
.track-stats-panel {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 12px;
  line-height: 1.8;
}

.track-stats-panel .stats-label {
  color: #999;
}

.track-stats-panel .stats-value {
  color: #333;
  font-weight: 500;
}
