/* 港深打卡 CityWalk — 手机竖屏，全屏地图 + 悬浮控件 + 底部抽屉
   场景：夜晚街头单手持机边走边看。深色 chrome、金色夜行强调、地图是主角。 */

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #0f1216;
  --surface: #171d26;
  --surface-2: #202834;
  --line: #2b3441;
  --ink: #f3f5f7;
  --dim: #9aa5b1;
  --faint: #8a95a2; /* 曾 #6b7683，对比 3.7:1 不达 AA，提亮到 ~4.5:1（11-12px 小字可读） */
  --accent: #f5a623;
  /* 打卡标记（与 marks.js emoji 色一致） */
  --mark-heart: #e0245e;
  --mark-star: #f5c518;
  --mark-done: #2ec46b; /* 与自绘绿勾渐变中段同色（见 .mk-done） */
  --accent-ink: #211603;
  --primary: #2f80ed;
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  --shadow-1: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 10px 32px rgba(0, 0, 0, 0.5);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms;
  --t-med: 260ms;
  /* 悬浮控件几何 */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --bar-h: 44px;
  --chip-h: 38px;
  --top-cluster: calc(var(--safe-top) + 8px + var(--bar-h) + 8px + var(--chip-h));
  /* z 轴语义层级 */
  --z-scrim: 500;
  --z-controls: 900;
  --z-list: 800;
  --z-fab: 950;
  --z-mask: 1200;
  --z-sheet: 1300;
  --z-lightbox: 1350;
  --z-toast: 1400;
}

html, body { height: 100%; overscroll-behavior: none; }

body {
  font-family: -apple-system, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--ink);
  height: 100dvh;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
}

.hidden { display: none !important; }

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-s); }

.icon { width: 18px; height: 18px; flex: none; display: block; }

/* ---------- 全屏地图 ---------- */
#map {
  position: fixed;
  inset: 0;
  background: #ccd3da;
  z-index: 0;
}

/* 顶部渐隐 scrim：保证悬浮控件压在浅色瓦片上也清晰 */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: calc(var(--top-cluster) + 40px);
  background: linear-gradient(to bottom, rgba(10, 13, 17, 0.55), rgba(10, 13, 17, 0));
  pointer-events: none;
  z-index: var(--z-scrim);
}

/* ---------- 悬浮顶栏 ---------- */
.topbar {
  position: fixed;
  top: calc(var(--safe-top) + 8px);
  left: 10px;
  right: 10px;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: var(--z-controls);
}

.brand {
  height: var(--bar-h);
  padding: 0 14px 0 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: rgba(19, 24, 31, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-1);
  white-space: nowrap;
}
.brand::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(245, 166, 35, 0.7);
}

.seg {
  margin-left: auto;
  height: var(--bar-h);
  padding: 4px;
  gap: 2px;
  background: rgba(19, 24, 31, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-1);
  display: flex;
  align-items: center;
}
.seg button {
  height: 100%;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dim);
  transition: background var(--t-fast), color var(--t-fast);
}
.seg button.active { background: var(--primary); color: #fff; font-weight: 600; }
.seg button.current { color: var(--accent); }
.seg button:active { transform: scale(0.96); }

.view-toggle {
  height: var(--bar-h);
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(19, 24, 31, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-1);
  white-space: nowrap;
  transition: background var(--t-fast);
}
.view-toggle:active { background: var(--surface-2); }

/* ---------- 悬浮筛选 chips ---------- */
.chips {
  position: fixed;
  top: calc(var(--safe-top) + 8px + var(--bar-h) + 8px);
  left: 0;
  right: 0;
  height: var(--chip-h);
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
  z-index: var(--z-controls);
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  height: 34px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: rgba(19, 24, 31, 0.92);
  color: var(--ink);
  font-size: 13px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--shadow-1);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.chip .n { font-size: 11px; color: var(--faint); font-weight: 600; font-variant-numeric: tabular-nums; }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.chip.active .n { color: rgba(33, 22, 3, 0.65); }
.chip:disabled { opacity: 0.35; }
.chip:active:not(:disabled) { transform: scale(0.96); }

/* ---------- marker 标签 ---------- */
.poi-label {
  background: rgba(255, 255, 255, 0.95);
  border: 0;
  border-radius: 7px;
  box-shadow: 0 1px 5px rgba(15, 23, 32, 0.3);
  color: #1f2933;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 7px;
  white-space: nowrap;
  cursor: pointer;
}
.poi-label::before { display: none; }
.poi-label-night { background: rgba(255, 246, 224, 0.97); color: #6b4e00; }
/* 标记态：label 彩色描边（❤️红 / ⭐黄），去过整体淡出 */
.poi-label-heart { box-shadow: 0 0 0 1.5px var(--mark-heart), 0 1px 5px rgba(15, 23, 32, 0.3); }
.poi-label-star { box-shadow: 0 0 0 1.5px var(--mark-star), 0 1px 5px rgba(15, 23, 32, 0.3); }
.poi-label-done { opacity: 0.75; }
.labels-off .poi-label { display: none; }

/* 用户蓝点 */
.user-dot {
  width: 16px;
  height: 16px;
  background: #4285f4;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.4), 0 1px 6px rgba(0, 0, 0, 0.4);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.45), 0 1px 6px rgba(0, 0, 0, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(66, 133, 244, 0.1), 0 1px 6px rgba(0, 0, 0, 0.4); }
}

/* ---------- 回到我 FAB ---------- */
.fab {
  position: fixed;
  right: 12px;
  bottom: calc(var(--safe-bottom) + 22px);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(19, 24, 31, 0.95);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-2);
  z-index: var(--z-fab);
  transition: transform var(--t-fast), background var(--t-fast);
}
.fab:active { transform: scale(0.92); background: var(--surface-2); }
.fab .icon { width: 22px; height: 22px; }
.fab-route { bottom: calc(var(--safe-bottom) + 84px); color: var(--accent); }
.fab-route.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- 暴走路线 ---------- */
.route-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  border: 2px solid #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
.route-panel {
  position: fixed;
  right: 12px;
  bottom: calc(var(--safe-bottom) + 146px);
  z-index: var(--z-fab);
  background: rgba(19, 24, 31, 0.97);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-2);
  padding: 12px;
  width: 232px;
}
.rp-title { font-size: 13px; font-weight: 700; }
.rp-hint { display: block; font-size: 11px; color: var(--faint); font-weight: 400; margin: 3px 0 9px; }
.rp-options { display: flex; flex-direction: column; gap: 6px; }
.rp-opt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  transition: filter var(--t-fast);
}
.rp-opt:active { filter: brightness(1.2); }
.rp-opt .d { font-size: 11px; color: var(--dim); font-weight: 400; }
.route-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--safe-bottom) + 22px);
  max-width: calc(100vw - 96px);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(24, 30, 38, 0.97);
  border: 1px solid var(--accent);
  color: var(--ink);
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 999px;
  z-index: var(--z-fab);
  box-shadow: var(--shadow-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* 清除按钮：视觉小圆（26px）不变，热区扩到 44px（负 margin 不撑高胶囊） */
.route-bar button {
  width: 44px;
  height: 44px;
  margin: -10px -14px -10px -4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--dim);
  flex: none;
}
.route-bar button .icon {
  width: 26px;
  height: 26px;
  padding: 7px;
  background: var(--surface-2);
  border-radius: 50%;
}

/* ---------- 列表面板 ---------- */
.list {
  position: fixed;
  inset: 0;
  z-index: var(--z-list);
  background: var(--bg);
  overflow-y: auto;
  padding: calc(var(--top-cluster) + 14px) 12px calc(var(--safe-bottom) + 24px);
}
.list-empty { color: var(--faint); text-align: center; padding: 48px 0; }

.list-item {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--r-m);
  padding: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background var(--t-fast);
}
.list-item:active { background: var(--surface-2); }

.thumb {
  width: 76px;
  height: 76px;
  border-radius: var(--r-s);
  object-fit: cover;
  flex: none;
  background: var(--surface-2);
}
.thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  background: linear-gradient(150deg, var(--surface-2), #232f3d);
}
.thumb-empty .icon { width: 24px; height: 24px; opacity: 0.7; }

.li-main { flex: 1; min-width: 0; }
.li-title {
  font-size: 15px;
  font-weight: 650;
  display: flex;
  align-items: baseline;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.li-sub {
  font-size: 12px;
  color: var(--dim);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.li-sub b { color: var(--accent); font-weight: 700; }
.li-tags {
  margin-top: 4px;
  font-size: 11px;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.li-hot {
  flex: none;
  font-size: 11px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  align-self: flex-start;
  margin-top: 2px;
}
.night-badge { font-size: 12px; flex: none; }
.li-mark { font-size: 13px; flex: none; }
.list-item.item-done { opacity: 0.6; }

/* ---------- 底部详情抽屉 ---------- */
.sheet-mask {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 12, 0.5);
  z-index: var(--z-mask);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.sheet-mask.show { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 82dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border-radius: var(--r-l) var(--r-l) 0 0;
  border-top: 1px solid var(--line);
  z-index: var(--z-sheet);
  padding: 8px 16px calc(var(--safe-bottom) + 18px);
  box-shadow: var(--shadow-2);
  transform: translateY(104%);
  visibility: hidden;
  transition: transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
}
.sheet.open {
  transform: translateY(0);
  visibility: visible;
  transition: transform var(--t-med) var(--ease-out);
}

.sheet-handle {
  width: 38px;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin: 6px auto 12px;
}

.photo-wrap { position: relative; margin-bottom: 14px; }
.photo-wrap .photo-strip { margin-bottom: 0; }
.photo-count {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(10, 13, 17, 0.72);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.photo-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: var(--r-m);
  margin-bottom: 14px;
  scrollbar-width: none;
}
.photo-strip::-webkit-scrollbar { display: none; }
.photo-strip img {
  height: 216px;
  min-width: 80%;
  object-fit: cover;
  border-radius: var(--r-m);
  scroll-snap-align: center;
  background: var(--surface-2);
}
.photo-placeholder {
  height: 150px;
  min-width: 100%;
  border-radius: var(--r-m);
  background: linear-gradient(150deg, var(--surface-2), #232f3d);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--dim);
  font-size: 13px;
}
.photo-placeholder .icon { width: 26px; height: 26px; color: var(--faint); }
.ph-sub { font-size: 11px; color: var(--faint); }

.sheet-title h2 { font-size: 20px; font-weight: 700; display: inline; letter-spacing: 0.005em; }
.title-en { color: var(--faint); font-size: 12px; margin-top: 3px; }

/* 打卡标记：❤️最想去 / ⭐想去 / 绿勾已去过（互斥三选一，点当前态取消） */

/* 自绘绿勾：与 ❤️⭐ 同一套立体语言——实心粗笔画（占宽 22%）、圆头无边框、
   自上而下的绿色渐变（受光在上）、左上高光、右下柔和投影。Unicode 里没有等价字符
   （✅ 带绿框、✔️ 是扁平细线条），故用 data-URI 背景图：渐变 id 被隔离在图片文档内，
   多处注入（详情卡按钮 / 列表 / 地图 label）不会 id 冲突。尺寸走 em，跟随各处字号。 */
.mk-done {
  display: inline-block;
  width: 1.08em;
  height: 1.08em;
  vertical-align: -0.19em;
  flex: none;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='12' y1='3' x2='12' y2='21' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%2379EDA2'/%3E%3Cstop offset='.5' stop-color='%2324BE5C'/%3E%3Cstop offset='1' stop-color='%230A7B36'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.6 12.6 9.4 18.4 20.6 5.2' stroke='%23043F1D' stroke-opacity='.3' stroke-width='5.9' transform='translate(.3 1)'/%3E%3Cpath d='M3.6 12.6 9.4 18.4 20.6 5.2' stroke='url(%23g)' stroke-width='5.4'/%3E%3Cpath d='M11.9 13.2 17.3 6.9' stroke='%23fff' stroke-opacity='.45' stroke-width='1.4'/%3E%3C/g%3E%3C/svg%3E");
}

.mark-row { display: flex; gap: 8px; margin-top: 12px; }
.mark-btn {
  flex: 1;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--dim);
  border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.mark-btn:active { transform: scale(0.97); }
.mark-btn.mark-heart.active { background: rgba(224, 36, 94, 0.16); color: var(--mark-heart); border-color: var(--mark-heart); }
.mark-btn.mark-star.active { background: rgba(245, 197, 24, 0.14); color: var(--mark-star); border-color: var(--mark-star); }
.mark-btn.mark-done.active { background: rgba(46, 196, 107, 0.16); color: var(--mark-done); border-color: var(--mark-done); font-weight: 700; }
.sheet-meta { color: var(--dim); font-size: 13px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.sheet-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.sheet-tags span {
  font-size: 11px;
  background: var(--surface-2);
  border-radius: 6px;
  padding: 3px 9px;
  color: var(--dim);
}
.sheet-hours {
  font-size: 13px;
  color: var(--accent);
  margin-top: 12px;
  font-weight: 500;
}
.sheet-intro { font-size: 14.5px; line-height: 1.7; margin-top: 10px; max-width: 68ch; }
.sheet-tips { list-style: none; margin-top: 10px; }
.sheet-tips li {
  font-size: 13px;
  line-height: 1.75;
  color: #ccd4dc;
  padding-left: 14px;
  position: relative;
}
.sheet-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* 网友评价（来自小红书笔记与评论区的原文引用） */
.sheet-reviews { margin-top: 14px; }
.rev-title { font-size: 12px; color: var(--faint); margin-bottom: 8px; font-weight: 600; }
.review {
  position: relative;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 9px 12px 9px 26px;
  font-size: 13px;
  line-height: 1.65;
  color: #cfd6dd;
  margin-bottom: 6px;
}
.review::before {
  content: "\201C";
  position: absolute;
  left: 10px;
  top: 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  font-family: Georgia, serif;
}

/* 小红书相关笔记列表 */
.sheet-notes { margin-top: 14px; }
.note-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 6px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  transition: filter var(--t-fast);
}
.note-link:active { filter: brightness(1.15); }
.nl-t {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nl-t::before { content: "📕 "; }
.nl-l { flex: none; color: var(--accent); font-size: 12px; font-variant-numeric: tabular-nums; }

.sheet-links { display: flex; gap: 8px; margin-top: 16px; }
.btn {
  flex: 1;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 8px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink);
  transition: filter var(--t-fast), transform var(--t-fast);
}
.btn:active { filter: brightness(1.15); transform: scale(0.98); }
.btn-primary { flex: 1.6; background: var(--primary); color: #fff; font-weight: 600; }
.sheet-source { font-size: 11px; color: var(--faint); margin-top: 14px; }

/* ---------- toast（底部 snackbar） ---------- */
.toast {
  position: fixed;
  bottom: calc(var(--safe-bottom) + 88px);
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 48px);
  background: rgba(24, 30, 38, 0.97);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 999px;
  z-index: var(--z-toast);
  box-shadow: var(--shadow-2);
  white-space: nowrap;
  animation: toast-in 240ms var(--ease-out);
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.toast button {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 12px;
  border-radius: 999px;
  padding: 5px 13px;
  margin-left: 10px;
}

/* ---------- 照片灯箱（sheet 之上、toast 之下） ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  background: rgba(5, 8, 12, 0.96);
  animation: lb-in var(--t-fast) var(--ease-out);
}
@keyframes lb-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lb-track {
  height: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide {
  flex: 0 0 100%;
  width: 100vw;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  scroll-snap-stop: always; /* 快速甩动也逐张停 */
}
.lb-slide img {
  max-width: 100vw;
  max-height: 100dvh;
  object-fit: contain;
}
.lb-top {
  position: absolute;
  top: calc(var(--safe-top) + 10px);
  left: 14px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none; /* 只有关闭按钮可点，不挡横滑 */
}
.lb-counter {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: rgba(10, 13, 17, 0.6);
  padding: 4px 10px;
  border-radius: 999px;
}
.lb-close {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border-radius: 50%;
  background: rgba(10, 13, 17, 0.6);
}
.lb-close .icon { width: 20px; height: 20px; }

/* ---------- Leaflet 控件 ---------- */
.leaflet-control-attribution {
  font-size: 9px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 6px 0 0 0;
  color: #4b5763;
}
.leaflet-bottom.leaflet-right .leaflet-control-attribution { margin-right: 0; }

/* ---------- 窄屏（≤400px）：收紧顶栏，保三组控件一行 ---------- */
@media (max-width: 400px) {
  .view-toggle span { display: none; }
  .view-toggle { padding: 0 12px; }
  .brand { padding: 0 11px 0 10px; font-size: 13px; }
  .seg button { padding: 0 10px; font-size: 12.5px; }
}

/* 超窄屏（≤360px）：三城四按钮放不下时舍弃品牌名 */
@media (max-width: 360px) {
  .brand { display: none; }
  .seg { margin-left: 0; }
}

/* ---------- 动效可及性 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .user-dot { animation: none; }
}
