/* ===== 说唱地标标注样式 ===== */
/* 临时隐藏地标版块；将 body 的 data-rap-landmarks-enabled 改为 true 可恢复。 */
body[data-rap-landmarks-enabled="false"] .filter-btn[data-type="landmark"],
body[data-rap-landmarks-enabled="false"] .filter-btn[data-type="food"],
body[data-rap-landmarks-enabled="false"] #landmark-city-dropdown,
body[data-rap-landmarks-enabled="false"] #mobile-layer-switch,
body[data-rap-landmarks-enabled="false"] #mobile-landmark-cities,
body[data-rap-landmarks-enabled="false"] #cover-view-rank {
  display: none !important;
}



/* 说唱地标按钮样式 */
.filter-btn[data-type="landmark"] {
  background: rgba(255,255,255,0.96);
  color: #e60012;
  border: 1px solid rgba(230,0,18,0.16);
  box-shadow: 0 2px 10px rgba(0,0,0,0.14);
}
.filter-btn[data-type="landmark"].active {
  background: #e60012;
  color: white;
  border: 1px solid transparent;
  box-shadow: 0 3px 12px rgba(230,0,18,0.32);
}
.filter-btn[data-type="landmark"]:hover:not(.active) {
  background: #fff5f5;
  border-color: rgba(230,0,18,0.28);
  color: #d70010;
}
.filter-btn[data-type="food"] {
  background: rgba(255,255,255,0.96);
  color: #d97904;
  border: 1px solid rgba(217,121,4,0.18);
  box-shadow: 0 2px 10px rgba(0,0,0,0.14);
}
.filter-btn[data-type="food"].active {
  background: #d97904;
  color: white;
  border: 1px solid transparent;
  box-shadow: 0 3px 12px rgba(217,121,4,0.32);
}
.filter-btn[data-type="food"]:hover:not(.active) {
  background: #fff8ed;
  border-color: rgba(217,121,4,0.32);
  color: #bd6803;
}

/* ===== 地标PIN图标标记（所有缩放级别统一用此样式） ===== */
.landmark-pin-marker {
  background: none !important;
  border: none !important;
}
.landmark-pin-wrapper {
  display: flex;
  flex-direction: row;   /* 水平排列：图标在左，名称在右 */
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  /* 移除hover放大动画 */
}
/* 苹果地图气泡点 */
.landmark-pin-icon {
  width: 14px;
  height: 14px;
  background: #e60012;
  border-radius: 50%;
  box-shadow:
    0 0 0 3px rgba(255,255,255,0.96),
    0 0 0 7px rgba(230,0,18,0.15),
    0 3px 9px rgba(0,0,0,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.landmark-pin-icon::after {
  content: '';
  width: 5px;
  height: 5px;
  background: white;
  border-radius: 50%;
  opacity: 0.95;
}
.landmark-pin-wrapper:hover .landmark-pin-icon {
  transform: scale(1.08);
  box-shadow:
    0 0 0 3px rgba(255,255,255,0.98),
    0 0 0 8px rgba(230,0,18,0.2),
    0 4px 12px rgba(0,0,0,0.26);
}
/* 地标名称标签（PIN右侧） */
.landmark-pin-label {
  font-size: 11px;
  font-weight: 700;
  color: #1a1a1a;
  background: rgba(255,255,255,0.95);
  padding: 2px 7px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 1px 5px rgba(0,0,0,0.15);
  letter-spacing: 0.1px;
  border: 1px solid rgba(255,68,68,0.12);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 低缩放时只显示城市名（更大字体） */
.landmark-pin-label.city-only {
  font-size: 12px;
  font-weight: 800;
  background: rgba(255,68,68,0.88);
  color: white;
  border: none;
  padding: 3px 10px;
  border-radius: 12px;
  cursor: pointer;
}
.landmark-pin-label.city-only:hover {
  background: #ff2222;
}

/* ===== 苹果音乐播放器风格弹出卡片 ===== */
.landmark-popup-card {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  z-index: 9999;
  width: min(calc(107px + var(--lpc-title-width, 193px)), calc(100vw - 40px));
  min-width: 300px;
  max-width: calc(100vw - 40px);
  background: rgba(245, 245, 247, 0.93);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow:
    0 20px 45px rgba(0,0,0,0.2),
    0 4px 14px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,0.72),
    0 0 0 0.5px rgba(0,0,0,0.05);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  white-space: normal;
}
.landmark-popup-card.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.lpc-group-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 10px;
}
.lpc-group-location {
  font-size: 13px;
  font-weight: 800;
  color: #e60012;
  letter-spacing: 0;
}
.lpc-group-count {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: rgba(20,20,20,0.52);
  background: rgba(230,0,18,0.08);
  border-radius: 999px;
  padding: 4px 8px;
}
.lpc-kind-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  flex-shrink: 0;
  background: transparent !important;
}
.lpc-kind-badge.lyric {
  color: #e60012;
}
.lpc-kind-badge.shop {
  color: #d97904;
}
.lpc-kind-badge.venue {
  color: #e60012;
}
.lpc-entry-list {
  display: flex;
  flex-direction: column;
}
.lpc-entry + .lpc-entry {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(20,20,20,0.08);
}

/* 播放器主体行：封面 + 歌曲信息 */
.lpc-player-row {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
}

/* 左侧：专辑封面（方形圆角，支持图片） */
.lpc-cover {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 20%, rgba(255,255,255,0.45), transparent 35%),
    linear-gradient(135deg, #f2b35c 0%, #e96b4b 48%, #5a8bb8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.22);
  position: relative;
}
.lpc-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
/* 封面默认图标（无图时显示） */
.lpc-cover-default {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* 中间：歌曲信息（对齐参考图） */
.lpc-info {
  flex: 0 0 var(--lpc-title-width, 193px);
  min-width: 0;
  width: var(--lpc-title-width, 193px);
  max-width: calc(100vw - 150px);
  padding-top: 1px;
}
/* 歌名：大字黑色加粗，参考图样式 */
.lpc-song-title {
  width: var(--lpc-title-width, 193px);
  max-width: calc(100vw - 150px);
  font-size: 18px;
  font-weight: 800;
  color: #141414;
  line-height: 1.15;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  margin-bottom: 5px;
  letter-spacing: 0;
}
/* 艺术家/歌曲名：小字灰色，参考图样式 */
.lpc-meta {
  width: var(--lpc-title-width, 193px);
  max-width: calc(100vw - 150px);
  font-size: 15px;
  color: #858585;
  line-height: 1.18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400;
  letter-spacing: 0;
}
.lpc-meta-text {
  display: inline-block;
  min-width: 100%;
  will-change: transform;
}
.lpc-meta.is-scrolling .lpc-meta-text {
  animation: lpcMetaScroll var(--lpc-meta-duration, 7s) ease-in-out infinite;
}
@keyframes lpcMetaScroll {
  0%, 18% { transform: translateX(0); }
  82%, 100% { transform: translateX(calc(-1 * var(--lpc-meta-shift, 0px))); }
}
/* E标（Explicit内容标签） */
.lpc-explicit-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  background: #8f8f8f;
  color: white;
  font-size: 9px;
  font-weight: 700;
  border-radius: 3px;
  margin-left: 5px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* 文化地标：店铺信息块 */
.lpc-shop-block {
  margin-top: 8px;
  padding-left: 75px;
  color: #8d8d8d;
  font-size: 12px;
  line-height: 1.45;
}
.lpc-shop-tag {
  display: inline-block;
  color: #f17f2f;
  font-size: 12px;
  font-weight: 700;
  margin-right: 6px;
  letter-spacing: 0;
}
.lpc-shop-desc {
  font-size: 12px;
  color: #8d8d8d;
  line-height: 1.45;
  display: inline;
}

/* 演出场所：图片 + 名称 + 高德地址 */
.lpc-venue-card {
  position: relative;
  width: 100%;
}
.lpc-venue-photo {
  width: 100%;
  height: 112px;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(230,0,18,0.72), rgba(20,20,20,0.86)),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: auto, 18px 18px;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.lpc-venue-photo .lpc-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.lpc-venue-card .lpc-kind-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 12px;
  text-shadow: 0 1px 4px rgba(255,255,255,0.75);
}
.lpc-venue-body {
  padding: 0 4px 2px;
}
.lpc-venue-body .lpc-song-title {
  width: 100%;
  max-width: 100%;
  white-space: normal;
  margin-bottom: 6px;
}
.lpc-venue-address {
  color: #8a8a8a;
  font-size: 14px;
  line-height: 1.3;
}

/* 小三角（白色） */
.landmark-popup-card::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.06));
}

/* 移动端适配 */
@media (max-width: 480px) {
  .landmark-popup-card {
    min-width: 260px;
    max-width: calc(100vw - 28px);
    padding: 12px 13px;
    border-radius: 18px;
  }
  .lpc-player-row { gap: 11px; }
  .lpc-cover { width: 54px; height: 54px; border-radius: 10px; }
  .lpc-cover-img { border-radius: 10px; }
  .lpc-info,
  .lpc-song-title { max-width: calc(100vw - 115px); }
  .lpc-song-title { font-size: 16px; }
  .lpc-meta { font-size: 13px; }
  .lpc-shop-block { padding-left: 65px; font-size: 11px; }
  #landmark-category-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 地标图层 cluster 样式 */
.landmark-cluster-icon {
  background: linear-gradient(135deg, #e60012 0%, #ff6b6b 100%);
  color: white;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  font-weight: bold;
  font-size: 13px;
  box-shadow: 0 3px 12px rgba(255,68,68,0.4);
  border: 2px solid rgba(255,255,255,0.3);
}

/* 地标完整卡片标记的额外样式（兼容旧代码） */
.landmark-custom-marker {
  background: none !important;
  border: none !important;
}
.landmark-dot-marker {
  background: none !important;
  border: none !important;
}
.landmark-pulse-dot {
  width: 12px;
  height: 12px;
  background: #e60012;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 8px rgba(255,68,68,0.6);
}
.landmark-pulse-dot::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(255,68,68,0.5);
}
.landmark-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,68,68,0.25);
  /* animation: landmarkPulse 1.8s ease-out infinite 0.4s; */
}
.landmark-dot-label {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,68,68,0.85);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  letter-spacing: 0.3px;
}
@keyframes landmarkPulse {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* 地标完整卡片标记的额外样式 */
.landmark-custom-marker {
  background: none !important;
  border: none !important;
}


/* ===== 城市快捷列表（在说唱地标按钮下方展开） ===== */
#landmark-city-dropdown {
  position: fixed;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  width: min(430px, calc(100vw - 20px));
  max-width: calc(100vw - 20px);
  padding: 12px;
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.16);
  overflow-x: hidden;
  overflow-y: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  scrollbar-width: none;
}
#landmark-city-dropdown::-webkit-scrollbar {
  display: none;
}
#landmark-city-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.landmark-city-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
}
.landmark-city-panel-title {
  color: #111;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}
.landmark-city-panel-count {
  color: #888;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
#landmark-category-tabs {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.landmark-category-btn {
  border: none;
  border-radius: 10px;
  background: #f4f4f6;
  color: #555;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.landmark-category-btn:hover {
  background: #fff0f0;
  color: #e60012;
}
.landmark-category-btn.active {
  background: #e60012;
  color: #fff;
  box-shadow: 0 2px 8px rgba(230,0,18,0.22);
}
.landmark-city-panel-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.city-nav-btn {
  padding: 8px 4px;
  border: none;
  border-radius: 10px;
  background: #f5f5f6;
  color: #555;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  letter-spacing: 0.1px;
  box-shadow: none;
}
.city-nav-btn:hover {
  background: #fff0f0;
  color: #e60012;
}
.city-nav-btn.active {
  background: #e60012;
  color: white;
  box-shadow: 0 2px 8px rgba(230,0,18,0.24);
}
.landmark-free-btn {
  display: none;
  background: #111;
  color: #fff;
}
.landmark-free-btn:hover {
  background: #252525;
  color: #fff;
}

/* 移动端适配 */
@media (max-width: 480px) {
  #landmark-city-dropdown {
    width: calc(100vw - 20px);
    border-radius: 14px;
  }
  .landmark-city-panel-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }
  .city-nav-btn {
    font-size: 11px;
    padding: 8px 2px;
  }
  .landmark-pin-label {
    font-size: 10px;
    max-width: 90px;
  }
}
