/* 官网地图找铺 */
.map-toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.map-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.map-chip {
  font-size: 13px;
  color: #4b5563;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 14px;
}
.map-chip:hover { border-color: var(--brand); color: var(--brand); }
.map-chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.map-poi {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.map-poi-label { font-size: 13px; color: var(--muted); }
.map-select {
  width: auto;
  max-width: 340px;
  flex: 0 1 auto;
  height: 36px;
  min-width: 240px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
}
.map-select-sm { min-width: 120px; max-width: 140px; }
.map-clear { margin-left: auto; font-size: 12.5px; color: var(--brand); }
.map-radius-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 14px; }

.map-distance {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  color: var(--brand);
}

.map-layout { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }

.webmap {
  position: relative;
  height: 600px;
  border-radius: 16px;
  overflow: hidden;
  background: #eef1ed;
  border: 1px solid var(--line);
  z-index: 1;
}
.webmap-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 14px;
  color: #8a8f99;
  text-align: center;
  padding: 0 30px;
}
.webmap-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(31, 36, 48, 0.72);
  color: #fff;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 10px;
  z-index: 500;
}

.webmap-note {
  position: absolute;
  right: 10px;
  bottom: 32px;
  z-index: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: #6b7280;
  font-size: 11px;
  pointer-events: none;
}

.map-side {
  display: flex;
  flex-direction: column;
  max-height: 600px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.map-side-head { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.map-list { flex: 1; display: flex; flex-direction: column; gap: 8px; overflow: auto; padding-right: 4px; }
.map-card {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.map-card:hover,
.map-card.active { background: #f7f9ff; border-color: #dbe4ff; }
.map-card img { width: 84px; height: 64px; border-radius: 8px; object-fit: cover; background: #eef0f4; flex-shrink: 0; }
.map-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.map-card-body b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-card-body span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-card-body em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--price); }
.map-tip { margin-top: 10px; font-size: 11.5px; line-height: 1.6; color: #9aa0aa; }

/* 地图标记与弹窗 */
.shop-pin-wrap { background: transparent; border: none; }
.shop-pin {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 4px 9px;
  border-radius: 9px;
  background: #2f5bff;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(20, 30, 60, 0.25);
}
.shop-pin i { font-style: normal; font-size: 9px; font-weight: 400; opacity: 0.9; }
.shop-pin-wrap.active .shop-pin { background: #ff5a3c; }

.poi-pin-wrap { background: transparent; border: none; }
.poi-pin {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: #1f2733;
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(20, 30, 60, 0.3);
}

.leaflet-div-icon { background: transparent; border: none; }
.leaflet-container { font: inherit; }
.map-popup { font-size: 13px; line-height: 1.6; }
.map-popup b { font-size: 13.5px; }
.map-popup p { margin: 4px 0; color: #6b7280; }
.map-popup .map-popup-price { color: #ff5a3c; font-weight: 600; }
.map-popup a { color: #2f5bff; }

@media (max-width: 1080px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-side { max-height: none; }
  .webmap { height: 480px; }
}

@media (max-width: 640px) {
  .webmap { height: 380px; }
}

/* 地名搜索与周边地标 */
.map-searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.map-search-icon { font-size: 15px; }
.map-searchbar input {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fffdf7;
  font-size: 13.5px;
}
.map-search-tip { font-size: 12px; color: var(--seal); white-space: nowrap; }

.map-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.map-toggle input { width: 14px; height: 14px; }

.poi-label-wrap { background: transparent; border: none; }
.poi-label {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 2px;
  background: rgba(251, 247, 236, 0.92);
  border: 1px solid rgba(199, 160, 100, 0.55);
  color: #7b5c25;
  font-size: 10px;
  line-height: 16px;
  white-space: nowrap;
}
.poi-pin { background: var(--seal); }

.map-label-wrap { background: transparent; border: none; }
.road-label {
  display: inline-block;
  padding: 0 4px;
  background: rgba(251, 247, 236, 0.72);
  color: #8a7d66;
  font-size: 10px;
  line-height: 15px;
  white-space: nowrap;
}
.district-label {
  display: inline-block;
  padding: 1px 6px;
  background: rgba(20, 50, 57, 0.06);
  color: #6f7c78;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
}
