:root {
  --ink: #2c2733;
  --ink-2: #5b5465;
  --mut: #8b8494;
  --line: rgba(44, 39, 51, .09);
  --line-2: rgba(44, 39, 51, .14);
  --paper: #f6f2ec;
  --panel: rgba(253, 251, 248, .97);
  --hover: rgba(139, 95, 191, .07);
  --accent: #8b5fbf;
  --accent-ink: #6f45a3;
  --accent-soft: #f1eaf9;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --pop: cubic-bezier(.34, 1.4, .5, 1);
  --shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 18px 48px -18px rgba(44, 39, 51, .32), 0 2px 8px rgba(44, 39, 51, .06);
  --shadow-sm: 0 1px 2px rgba(44, 39, 51, .1), 0 4px 12px -4px rgba(44, 39, 51, .16);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --panel-w: 384px;
  --gap: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
button { font: inherit; color: inherit; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.app { position: fixed; inset: 0; }
.map { position: absolute; inset: 0; }

/* 首屏加载时的纸色遮罩 */
.map-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--paper);
  transition: opacity .7s var(--ease);
}
.map-veil span {
  position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px;
  border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent);
  animation: spin .9s linear infinite;
}
.map-veil.is-done { opacity: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 面板 ---------- */
.panel {
  position: absolute; z-index: 5;
  top: var(--gap); left: var(--gap); bottom: var(--gap);
  width: var(--panel-w);
  display: flex; flex-direction: column;
  background: var(--panel);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  backdrop-filter: blur(20px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.grip { display: none; }

.panel-head { padding: 22px 24px 4px; }
.back-site {
  display: inline-flex; align-items: center; gap: 4px;
  margin: -6px 0 14px -8px; padding: 4px 10px 4px 6px;
  border-radius: 999px;
  color: var(--mut); font-size: 12.5px; text-decoration: none;
  transition: background .2s, color .2s;
}
.back-site svg { width: 16px; height: 16px; }
.back-site:hover { background: var(--hover); color: var(--accent-ink); }
.eyebrow { margin: 0 0 4px; font-size: 12px; letter-spacing: .08em; color: var(--accent); font-weight: 600; }
.panel-head h1 { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 650; letter-spacing: .01em; }
.lede { margin: 6px 0 0; color: var(--ink-2); font-size: 13.5px; }

.grab-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  padding: 6px 10px 6px 9px; border-radius: 10px;
  background: rgba(0, 166, 74, .08); color: #00843b; font-size: 12.5px; font-weight: 600; text-decoration: none;
  transition: background .2s;
}
.grab-link:hover { background: rgba(0, 166, 74, .14); }
.grab-link svg { width: 16px; height: 16px; }
.grab-link .arr { width: 14px; height: 14px; margin-left: -2px; }
.tools { padding: 16px 16px 10px; border-bottom: 1px solid var(--line); }
.search {
  position: relative; display: flex; align-items: center;
  height: 42px; padding: 0 10px 0 38px;
  background: rgba(44, 39, 51, .045);
  border-radius: 12px;
  transition: background .2s, box-shadow .2s;
}
.search:focus-within { background: #fff; box-shadow: 0 0 0 1.5px var(--accent), 0 4px 14px -6px rgba(139, 95, 191, .4); }
.search svg { position: absolute; left: 12px; width: 18px; height: 18px; color: var(--mut); }
.search input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; background: none; outline: none;
  font: inherit; font-size: 14.5px; color: var(--ink);
}
.search input::placeholder { color: var(--mut); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search kbd {
  font: 11px/1 var(--font); color: var(--mut);
  padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line-2); background: #fff;
}
.search:focus-within kbd { opacity: 0; }

.chips {
  display: flex; gap: 6px; margin: 12px -16px 0; padding: 0 16px 2px;
  overflow-x: auto; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px 0 10px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  font-size: 13px; color: var(--ink-2); cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.chip:hover { border-color: rgba(44, 39, 51, .26); color: var(--ink); }
.chip:active { transform: scale(.96); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.chip b { font-weight: 500; font-size: 11.5px; color: var(--mut); font-variant-numeric: tabular-nums; }
.chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-selected="true"] b { color: rgba(255, 255, 255, .6); }
.chip[aria-selected="true"] i { box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }

/* 列表 / 详情 两个视图横向切换 */
.views { position: relative; flex: 1; min-height: 0; }
.view {
  position: absolute; inset: 0;
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: rgba(44, 39, 51, .18) transparent;
  transition: transform .42s var(--ease-out), opacity .3s var(--ease);
}
.view-detail { transform: translateX(28px); opacity: 0; pointer-events: none; }
.panel.is-detail .view-list { transform: translateX(-12%); opacity: 0; pointer-events: none; }
.panel.is-detail .view-detail { transform: none; opacity: 1; pointer-events: auto; }

.list { list-style: none; margin: 0; padding: 6px 8px 0; }
.group-title {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 12px 6px; font-size: 12px; font-weight: 600; color: var(--mut); letter-spacing: .04em;
}
.group-title i { width: 3px; height: 12px; border-radius: 2px; background: var(--c); }
.group-title span { font-weight: 400; font-variant-numeric: tabular-nums; }

.row {
  display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px;
  width: 100%; padding: 9px 12px; border: 0; border-radius: 14px;
  background: none; text-align: left; cursor: pointer;
  transition: background .18s;
}
.row:hover, .row.is-hot { background: var(--hover); }
.row:active { background: rgba(139, 95, 191, .12); }
.row.is-active { background: var(--accent-soft); }
.row-ico {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--c);
  transition: transform .25s var(--pop);
}
.row:hover .row-ico, .row.is-hot .row-ico { transform: scale(1.06); }
.row-ico svg { width: 18px; height: 18px; }
.row-ico.is-logo { background: #fff; box-shadow: 0 0 0 1px var(--line-2); overflow: hidden; }
.row-ico.is-logo img { width: 28px; height: 28px; object-fit: contain; }
.row-text { min-width: 0; }
.row-zh { display: block; font-size: 14.5px; font-weight: 550; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-en { display: block; font-size: 12px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta { text-align: right; font-variant-numeric: tabular-nums; }
.row-meta strong { display: block; font-size: 13px; font-weight: 550; color: var(--ink-2); }
.row-meta span { display: block; font-size: 11.5px; color: var(--mut); }
.row-meta.is-far strong { color: var(--accent-ink); }
.row-meta.is-unknown strong { color: var(--mut); font-weight: 500; }
.row-meta .is-warn { color: #b4492f; }
.row mark { background: rgba(139, 95, 191, .18); color: inherit; border-radius: 3px; padding: 0 1px; }

.empty { margin: 28px 24px; color: var(--mut); text-align: center; font-size: 13.5px; }
.fine { margin: 18px 24px 24px; font-size: 11.5px; line-height: 1.6; color: var(--mut); }

/* 详情 */
.detail-bar {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; gap: 4px;
  padding: 10px 12px;
  background: linear-gradient(var(--panel) 70%, rgba(253, 251, 248, 0));
}
.detail-count { font-size: 12px; color: var(--mut); font-variant-numeric: tabular-nums; margin-left: 4px; }
.spacer { flex: 1; }
.icon-btn {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 0; border-radius: 10px; background: none; color: var(--ink-2); cursor: pointer;
  transition: background .18s, color .18s;
}
.icon-btn:hover { background: rgba(44, 39, 51, .06); color: var(--ink); }
.icon-btn:disabled { opacity: .3; pointer-events: none; }
.icon-btn svg { width: 20px; height: 20px; }

.detail { padding: 2px 24px 28px; }
.detail > * { animation: rise .45s var(--ease-out) both; }
.detail > :nth-child(2) { animation-delay: .03s; }
.detail > :nth-child(3) { animation-delay: .06s; }
.detail > :nth-child(4) { animation-delay: .09s; }
.detail > :nth-child(5) { animation-delay: .12s; }
.detail > :nth-child(6) { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 12%, #fff); color: color-mix(in srgb, var(--c) 80%, #000);
  font-size: 12px; font-weight: 600;
}
.tag svg { width: 14px; height: 14px; }
.detail h2 { margin: 12px 0 2px; font-size: 24px; line-height: 1.3; font-weight: 650; }
.detail-en { margin: 0; color: var(--mut); font-size: 13.5px; }

.stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  margin: 20px 0 0; border-radius: 14px; overflow: hidden;
  background: var(--line); border: 1px solid var(--line);
}
.stat { padding: 12px 14px; background: rgba(255, 255, 255, .75); }
.stat dt { font-size: 11.5px; color: var(--mut); }
.stat dd { margin: 2px 0 0; font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat dd small { font-size: 12.5px; font-weight: 500; color: var(--ink-2); margin-left: 2px; }

.note { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(236, 226, 196, .38); color: var(--ink-2); font-size: 13.5px; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 42px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: #fff;
  font-size: 13.5px; font-weight: 550; color: var(--ink); text-decoration: none; cursor: pointer;
  transition: background .18s, border-color .18s, transform .15s, box-shadow .18s;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { border-color: rgba(44, 39, 51, .28); box-shadow: var(--shadow-sm); }
.btn:active { transform: scale(.98); }
.btn-primary { grid-column: 1 / -1; background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #3b3443; border-color: #3b3443; }

/* 餐厅详情 */
.warn {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 14px 0 0; padding: 10px 12px; border-radius: 12px;
  font-size: 13px; line-height: 1.5;
  background: #fbf3dc; color: #7a5a12;
}
.warn svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.warn.is-stop { background: #fbe7e1; color: #9a3a22; }
.precision { margin: 8px 2px 0; font-size: 11.5px; color: var(--mut); }
.facts { margin: 18px 0 0; }
.facts > div {
  display: grid; grid-template-columns: 64px 1fr; gap: 10px;
  padding: 9px 0; border-top: 1px solid var(--line);
}
.facts > div:first-child { border-top: 0; padding-top: 0; }
.facts dt { font-size: 12px; color: var(--mut); padding-top: 1px; }
.facts dd { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.facts dd small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--mut); }
.facts a { color: var(--accent-ink); text-decoration: none; border-bottom: 1px solid rgba(111, 69, 163, .3); }
.siblings { margin-top: 18px; }
.siblings p { margin: 0 0 8px; font-size: 12px; color: var(--mut); }
.siblings div { display: flex; flex-wrap: wrap; gap: 6px; }
.siblings button {
  height: 30px; padding: 0 12px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--c) 30%, #fff);
  background: color-mix(in srgb, var(--c) 8%, #fff);
  font-size: 12.5px; cursor: pointer; transition: background .18s, transform .15s;
}
.siblings button:hover { background: color-mix(in srgb, var(--c) 16%, #fff); }
.siblings button:active { transform: scale(.96); }
.links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 18px; }
.links a {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12.5px; color: var(--ink-2); text-decoration: none;
}
.links a:hover { color: var(--accent-ink); }
.links svg { width: 13px; height: 13px; }
.fine-inline { margin: 8px 0 0; font-size: 11.5px; color: var(--mut); line-height: 1.5; }

/* ---------- 地图控件 ---------- */
.ctrls { position: absolute; z-index: 4; right: 20px; bottom: 40px; display: flex; flex-direction: column; gap: 10px; }
.ctrl-group {
  display: flex; flex-direction: column;
  background: var(--panel); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .6); border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.ctrl-group button {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 0; background: none; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s;
}
.ctrl-group button + button { border-top: 1px solid var(--line); }
.ctrl-group button:hover { background: rgba(44, 39, 51, .05); color: var(--ink); }
.ctrl-group button:active { background: rgba(44, 39, 51, .09); }
.ctrl-group svg { width: 20px; height: 20px; }

.topbar { display: none; }

.maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib { margin: 0 8px 8px 0; font: 11px var(--font); background: rgba(253, 251, 248, .8); border-radius: 8px; }
.maplibregl-ctrl-attrib a { color: var(--ink-2); }
.maplibregl-canvas:focus-visible { outline: none; }

/* ---------- 标记（参照 Apple 地图） ---------- */
/* 普通地点：分类色圆形 + 白色图形；选中时升起成气泡大头针，名字落在针脚下方。
   重点地点（酒店、PAI、帕雅泰 2）：用各自 logo 做成常显的徽章。 */
.mk { cursor: pointer; }
.mk.is-off { pointer-events: none; }
.mk-label {
  position: absolute; left: calc(100% + 5px); top: 50%;
  transform: translateY(-50%);
  max-width: 150px; overflow: hidden; text-overflow: ellipsis;
  font-size: 12px; font-weight: 600; line-height: 1.25; white-space: nowrap;
  color: color-mix(in srgb, var(--c) 72%, #1d1a22);
  text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 4px rgba(255, 255, 255, .9);
  opacity: 0; pointer-events: none;
  transition: opacity .2s var(--ease), transform .3s var(--ease-out);
}
.map.show-labels .mk-poi .mk-label,
.mk.is-hot .mk-label { opacity: 1; }
.mk.is-off .mk-label { opacity: 0 !important; }
.map.show-labels .mk-poi .mk-label.is-hidden { opacity: 0; }

/* 普通地点 */
.mk-poi .mk-body {
  position: relative; display: grid; place-items: center;
  width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c));
  color: #fff; border: 1.5px solid #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .22), 0 3px 8px -2px rgba(0, 0, 0, .2);
  transition: opacity .3s var(--ease), transform .35s var(--pop);
}
.mk-poi .mk-body svg { width: 13px; height: 13px; stroke-width: 2.1; }
.mk-poi .mk-body b { display: none; font: 700 11.5px/1 var(--font); font-variant-numeric: tabular-nums; }
.mk-count .mk-body svg { display: none; }
.mk-count .mk-body b { display: block; }
.mk-poi.is-hot .mk-body { transform: scale(1.15); }
.mk.is-off .mk-body { opacity: 0; transform: scale(.4); }

.mk.is-stop { --c: #a39fa8; }
.mk.is-stop .mk-body { background: #fff; color: #a39fa8; border: 1.5px dashed #a39fa8; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }

/* 选中：气泡大头针，针尖正好落在地点上 */
.mk-balloon {
  position: absolute; left: 50%; bottom: calc(50% + 9px);
  width: 44px; height: 44px; margin-left: -22px;
  transform: translateY(10px) scale(.3); transform-origin: 50% 140%;
  opacity: 0; pointer-events: none;
  transition: transform .4s var(--pop), opacity .2s var(--ease);
}
.mk-balloon::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 50% 50% 50% 5px; transform: rotate(-45deg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c) 60%);
  box-shadow: -2px 3px 10px -2px rgba(0, 0, 0, .35);
}
.mk-balloon span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.mk-balloon svg { width: 21px; height: 21px; stroke-width: 2; }
.mk-poi.is-active .mk-balloon { opacity: 1; transform: none; }
.mk-poi.is-active .mk-body { transform: scale(.32); box-shadow: none; }
.mk-poi.is-active .mk-label {
  left: 50%; top: calc(50% + 9px); transform: translateX(-50%);
  max-width: 200px; font-size: 13px; font-weight: 700; color: #1d1a22; opacity: 1;
}

/* 重点地点：logo 徽章 + 指向地点的小尾巴 */
.mk-brand .mk-pt {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--c); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  transition: opacity .3s var(--ease);
}
.mk-badge {
  position: absolute; left: 50%; bottom: calc(50% + 9px);
  width: var(--bw); height: var(--bh); margin-left: calc(var(--bw) / -2);
  transform-origin: 50% calc(100% + 9px);
  transition: transform .35s var(--pop), opacity .3s var(--ease);
}
.mk-badge::after {
  content: ""; position: absolute; left: 50%; top: 100%; margin: -5px 0 0 -6px;
  width: 12px; height: 12px; background: #fff; transform: rotate(45deg);
  border-radius: 0 0 3px 0; box-shadow: 2px 2px 3px -1px rgba(0, 0, 0, .18);
}
.mk-badge span {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 100%; height: 100%; overflow: hidden;
  background: var(--bbg, #fff); border-radius: var(--br);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 2px 4px rgba(0, 0, 0, .14), 0 8px 18px -8px rgba(0, 0, 0, .4);
}
.mk-badge img { display: block; width: calc(100% - var(--bp) * 2); height: calc(100% - var(--bp) * 2); object-fit: contain; }
.mk-brand .mk-label {
  left: calc(50% + var(--bw) / 2 + 6px); top: auto; bottom: calc(50% + 9px + var(--bh) / 2);
  transform: translateY(50%); opacity: 1;
  font-size: 12.5px; font-weight: 700; color: #1d1a22;
}
.mk-brand.is-hot .mk-badge, .mk-brand.is-active .mk-badge { transform: scale(1.12); }
/* 连锁快餐 / 咖啡：小徽章，名字拉近或悬停时才出现 */
.mk-small .mk-label { opacity: 0; font-size: 12px; font-weight: 600; }
.map.show-labels .mk-small .mk-label, .mk-small.is-hot .mk-label, .mk-small.is-active .mk-label { opacity: 1; }
.mk-small .mk-badge::after { width: 9px; height: 9px; margin: -4px 0 0 -4.5px; }
.mk-small.is-tucked .mk-badge { opacity: 0; transform: scale(.4); pointer-events: none; }
.mk-small.is-tucked .mk-label { opacity: 0 !important; }
.mk-small.is-tucked .mk-pt { transform: scale(1.15); }
.mk-small.is-tucked.is-hot .mk-badge, .mk-small.is-tucked.is-active .mk-badge { opacity: 1; transform: scale(1.12); }
.mk-small.is-tucked.is-hot .mk-label, .mk-small.is-tucked.is-active .mk-label { opacity: 1 !important; }
.mk-brand.is-active .mk-badge span { box-shadow: 0 0 0 2.5px var(--c), 0 8px 22px -6px rgba(0, 0, 0, .45); }
.mk-brand.is-active .mk-badge::after { background: var(--c); }
.mk.is-off .mk-badge { opacity: 0; transform: scale(.4); }
.mk.is-off .mk-pt { opacity: 0; }

.mk.is-active .mk-ring {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--c); pointer-events: none;
  animation: ping 1.8s var(--ease-out) infinite;
}
@keyframes ping { from { transform: scale(.6); opacity: .8; } to { transform: scale(2.6); opacity: 0; } }

.detail-logo { display: block; height: 34px; width: auto; max-width: 200px; margin: 0 0 14px; }
.detail-logo.is-square { height: 46px; border-radius: 10px; }

/* ---------- 给司机看 ---------- */
.driver {
  position: fixed; inset: 0; z-index: 20;
  display: grid; place-items: center; padding: 20px;
  background: rgba(30, 26, 36, .5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fade .25s var(--ease);
}
.driver-card {
  position: relative; width: min(560px, 100%);
  padding: 36px 32px 32px; border-radius: 24px;
  background: #fff; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45);
  text-align: center;
  animation: pop .4s var(--ease-out);
}
.driver-close { position: absolute; top: 12px; right: 12px; }
.driver-hint { margin: 0; font-size: 12.5px; color: var(--mut); }
.driver-ask { margin: 10px 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.driver-ask span { font-size: 17px; }
.driver-name { margin: 22px 0 0; font-size: clamp(28px, 7vw, 40px); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
.driver-zh { margin: 10px 0 0; font-size: 16px; color: var(--ink-2); }
.driver-coord { margin: 18px 0 0; font-size: 12px; color: var(--mut); font-variant-numeric: tabular-nums; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }

.toast {
  position: fixed; z-index: 30; left: 50%; bottom: 32px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 13px;
  box-shadow: var(--shadow-sm);
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .3s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 手机：底部抽屉 ---------- */
@media (max-width: 760px) {
  :root { --gap: 12px; }

  .topbar {
    position: absolute; z-index: 4; top: calc(env(safe-area-inset-top) + 12px); left: 12px;
    display: flex; align-items: center; gap: 4px;
    padding: 4px 16px 4px 4px; border-radius: 999px;
    background: var(--panel); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .6); box-shadow: var(--shadow-sm);
  }
  .topbar .back-site { margin: 0; padding: 0; width: 36px; height: 36px; justify-content: center; color: var(--ink-2); }
  .topbar .back-site svg { width: 20px; height: 20px; }
  .topbar-text { display: flex; flex-direction: column; line-height: 1.25; }
  .topbar-text strong { font-size: 14px; font-weight: 650; }
  .topbar-text span { font-size: 11px; color: var(--mut); }

  .ctrls { top: calc(env(safe-area-inset-top) + 12px); right: 12px; bottom: auto; }
  .ctrls .ctrl-group:first-child { display: none; }

  .panel {
    top: auto; left: 0; right: 0; bottom: 0;
    width: auto; height: calc(100dvh - 64px - env(safe-area-inset-top));
    border-radius: 22px 22px 0 0; border-bottom: 0;
    transform: translateY(var(--sheet-y, 60%));
    transition: transform .48s var(--ease-out);
    touch-action: none;
  }
  .panel.is-dragging { transition: none; }
  .panel-head { display: none; }
  .grip {
    display: grid; place-items: center; flex: none;
    height: 22px; cursor: grab;
  }
  .grip span { width: 38px; height: 5px; border-radius: 3px; background: rgba(44, 39, 51, .2); }
  .tools { padding: 0 14px 10px; cursor: grab; }
  .tools input, .tools .chip { cursor: auto; }
  .chips { margin: 10px -14px 0; padding: 0 14px 2px; }
  .chip { cursor: pointer; }
  .search kbd { display: none; }
  .view { touch-action: pan-y; padding-bottom: env(safe-area-inset-bottom); }
  .detail { padding: 0 20px 28px; }
  .detail h2 { font-size: 22px; }

  .maplibregl-ctrl-bottom-right { display: none; }
  .toast { bottom: auto; top: calc(env(safe-area-inset-top) + 64px); }
}

/* 在首页弹窗里：返回首页交给弹窗的关闭按钮（右上角 40px 方块），控件避开它 */
.is-embed .back-site { display: none; }
@media (max-width: 760px) {
  .is-embed .topbar { padding-left: 16px; }
  .is-embed .ctrls { top: calc(env(safe-area-inset-top) + 66px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
