/* ===== 地图面板 ===== */
.map-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: height 0.3s ease;
  overflow: hidden;
}
.map-panel-expanded {
  height: 30vh;
}
.map-panel-collapsed {
  height: 0;
}

.map-toggle-btn {
  position: absolute;
  bottom: 8px;
  right: 12px;
  z-index: 110;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.map-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.amap-container {
  width: 100%;
  height: 100%;
  min-height: 200px;
  position: relative;
}

/* 画廊主体下移 */
#gallery {
  padding-top: 30vh;
  transition: padding-top 0.3s ease;
}
#gallery.map-collapsed {
  padding-top: 0;
}

/* Marker 样式 */
.marker-thumb {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.marker-thumb img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}
.marker-thumb-active img {
  width: 48px;
  height: 48px;
  border: 3px solid #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* 返回按钮 */
.back-btn {
  position: fixed;
  z-index: 150;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}
.back-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}
.back-btn-expanded {
  top: calc(30vh + 12px);
  left: 12px;
}
.back-btn-collapsed {
  top: 12px;
  left: 12px;
}

/* 模式选择按钮 */
.mode-selector {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}
.mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.08);
  color: #d4a956;
  border: 1px solid rgba(212, 169, 86, 0.3);
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Noto Sans SC', sans-serif;
  backdrop-filter: blur(4px);
}
.mode-btn:hover {
  background: rgba(212, 169, 86, 0.15);
  border-color: rgba(212, 169, 86, 0.6);
  transform: translateY(-1px);
}
.mode-btn:active {
  transform: translateY(0);
}
.mode-icon {
  font-size: 18px;
}

/* ===== 地图展开时覆盖 v6 样式 ===== */
/* 照片舞台下移，避免被地图面板遮挡 */
body.map-visible .photo-stage {
  top: 30vh !important;
}

/* 返回按钮位置调整（补充 back-btn 样式） */
body.map-visible .back-btn {
  top: calc(30vh + 12px) !important;
}
