/* 地图外层容器必须有高度；按你页面实际头部/筛选的高度微调 260px */
.map-wrap{
  position: relative;
  height: calc(100vh - 260px);   /* ★ 关键：给地图实际高度 */
  min-height: 420px;
  border: 1px solid #2a200a;
  border-radius: 12px;
  overflow: hidden;
  background: #0f0f0f;          /* 未加载前避免透明 */
}

.map-canvas{
  position: absolute; 
  inset: 0;
  width: 100%; 
  height: 100%;
}

/* 统一的错误覆盖层 */
.map-error{
  position: absolute; 
  inset: 0;
  display: grid; 
  place-items: center;
  background: rgba(0,0,0,.6);
  color: #ffd96b; 
  font-weight: 800; 
  text-align: center;
  padding: 16px; 
  z-index: 10;
}

/* 地图统计信息样式 */
.map-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  padding: 15px;
  background: rgba(45,45,45,.9);
  border: 1px solid rgba(255,215,0,.2);
  border-radius: 8px;
}

.stat-item {
  text-align: center;
}

.stat-label {
  display: block;
  color: #aaa;
  font-size: 12px;
  margin-bottom: 5px;
}

.stat-value {
  display: block;
  color: #ffd700;
  font-size: 18px;
  font-weight: bold;
}

/* 筛选工具栏样式 */
.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(45,45,45,.9);
  border: 1px solid rgba(255,215,0,.2);
  border-radius: 8px;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-label {
  color: #ffd700;
  font-size: 12px;
  font-weight: bold;
}

.filter-select {
  padding: 8px 12px;
  border: 1px solid #2a200a;
  border-radius: 6px;
  background: #1a1a1a;
  color: #fff;
  font-size: 14px;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid #2a200a;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,215,0,0.3);
}

.filter-btn-secondary {
  background: linear-gradient(135deg, #666, #444);
  color: #fff;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .map-wrap {
    height: calc(100vh - 320px);
    min-height: 300px;
  }
  
  .filter-toolbar {
    flex-direction: column;
    gap: 10px;
  }
  
  .map-stats {
    flex-direction: column;
    gap: 10px;
  }
}
