/* ============================================
   Trip Map - 行程地图组件（粉白恋爱风）
   配合高德地图 JS API 使用
   ============================================ */

.trip-map-wrap {
  margin: 2rem 0;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff5f8 0%, #ffe4ec 100%);
  border: 1px solid rgba(255, 182, 193, 0.5);
  box-shadow:
    0 10px 30px rgba(255, 105, 180, 0.12),
    0 2px 8px rgba(255, 182, 193, 0.15);
}

/* 图例 */
.trip-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding: 0.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 182, 193, 0.3);
  font-size: 0.85rem;
  color: #555;
  align-items: center;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-sat {
  background: #ff69b4;
  box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.2);
}

.legend-sun {
  background: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

/* 地图容器 */
.trip-map {
  width: 100%;
  height: 420px;
  background: #f5f0f2;
}

/* 底部提示 */
.trip-map-note {
  margin: 0;
  padding: 0.6rem 1.2rem 0.8rem;
  font-size: 0.8rem;
  color: #999;
  background: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* 加载失败兜底 */
.trip-map-fallback {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff69b4;
  font-size: 0.95rem;
  text-align: center;
  padding: 1rem;
}

/* 深色模式适配 */
html[data-mode="dark"] .trip-map-wrap {
  background: linear-gradient(135deg, #2a1f2d 0%, #3d2a3d 100%);
  border-color: rgba(255, 182, 193, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

html[data-mode="dark"] .trip-map-legend,
html[data-mode="dark"] .trip-map-note {
  background: rgba(45, 35, 45, 0.6);
  color: #ffb6c1;
}

html[data-mode="dark"] .trip-map {
  background: #1e1820;
}

html[data-mode="dark"] .trip-map-fallback {
  color: #ffb6c1;
}

/* 移动端响应式 */
@media (max-width: 480px) {
  .trip-map {
    height: 320px;
  }

  .trip-map-legend {
    gap: 0.6rem 1rem;
    padding: 0.6rem 0.8rem;
    font-size: 0.78rem;
  }
}
