/* Itinerary at a Glance 行程路线地图模块 */
.stm-itinerary {
  margin-top: 40px;
}

.stm-itinerary h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color, #e5e7eb);
}

.stm-itinerary .mapbox-container {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  background: #dfe8e4;
}

@media (max-width: 768px) {
  .stm-itinerary .mapbox-container {
    height: 300px;
  }
}

/* 起/终点图钉：水滴形，尖端指向坐标 */
.stm-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  box-sizing: border-box;
  cursor: pointer;
}

.stm-pin::after {
  content: "";
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}

.stm-pin-start {
  background: #2fbfa3;
}

.stm-pin-end {
  background: #d64541;
}

/* 中途途经点圆点 */
.stm-dot {
  width: 12px;
  height: 12px;
  background: #1e78c8;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
  box-sizing: border-box;
  cursor: pointer;
}

/* 循环移动标识：白底蓝圈 + 扩散光环 */
.stm-moving {
  position: relative;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 3px solid #1e78c8;
  border-radius: 50%;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .35);
  box-sizing: border-box;
}

.stm-moving::after {
  content: "";
  position: absolute;
  left: -3px;
  top: -3px;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(30, 120, 200, .55);
  border-radius: 50%;
  box-sizing: border-box;
  animation: stm-pulse 1.6s ease-out infinite;
}

@keyframes stm-pulse {
  0% {
    transform: scale(.7);
    opacity: .9;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* 地址悬浮气泡(行程地图/单点定位地图共用) */
.stm-mapbox .mapboxgl-popup-content {
  font-size: 12px;
  line-height: 1.5;
  padding: 6px 10px;
  border-radius: 6px;
}

/* 缩放控件(行程地图/单点定位地图共用) */
.stm-mapbox .mapboxgl-ctrl-top-right {
  margin: 12px 12px 0 0;
}

.stm-mapbox .mapboxgl-ctrl-group {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
