/* 地图找馆：地图和列表分别滚动；小屏改为地图在上、结果在下，避免双指缩放把页面带走。 */
.vm-page { max-width:1440px; }
.vm-head { margin-bottom:16px; }
.vm-head h1 { margin-bottom:6px; }
.vm-head p { color:var(--muted); margin:0; }
.vm-head-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.vm-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
.vm-area-switch { display:flex; gap:8px; flex-wrap:wrap; }
.vm-area-option { min-width:74px; white-space:nowrap; }
.vm-area-option.on { color:var(--accent); border-color:var(--accent); background:var(--accent-soft); }
.vm-filter-options { display:contents; }
.vm-filter { white-space:nowrap; }
.vm-filter.on { color:var(--accent); border-color:var(--accent); background:var(--accent-soft); }
.vm-label-toggle.on { color:#705c00; border-color:#e4b80a; background:#fff4bc; }
.vm-mobile-filter-toggle { display:none; }
.vm-layout { display:grid; grid-template-columns:minmax(300px,370px) minmax(0,1fr); height:clamp(480px,calc(100svh - 255px),900px); min-height:0; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:var(--surface); }
.vm-results { min-width:0; min-height:0; display:flex; flex-direction:column; background:var(--surface); border-right:1px solid var(--line); }
.vm-results-search { padding:12px 14px; border-bottom:1px solid var(--line); }
.vm-results-search .vm-search { width:100%; min-width:0; }
.vm-results-head { padding:14px 16px 12px; border-bottom:1px solid var(--line); color:var(--muted); font-size:12px; }
.vm-results-list { flex:1 1 auto; min-height:0; overflow:auto; overscroll-behavior:contain; }
.vm-result { width:100%; display:grid; grid-template-columns:72px minmax(0,1fr); gap:11px; padding:12px 14px; text-align:left; color:inherit; background:transparent; border:0; border-bottom:1px solid var(--line-soft); cursor:pointer; font:inherit; }
.vm-result:hover,.vm-result.on { background:var(--accent-soft); }
.vm-result:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
.vm-thumb { height:72px; overflow:hidden; border-radius:9px; background:var(--surface-2); }
.vm-thumb .vc-cover { height:72px !important; }
.vm-result-main { min-width:0; }
.vm-result-title { display:flex; align-items:baseline; gap:7px; }
.vm-result-title b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; }
.vm-distance { flex:none; color:var(--accent); font-family:var(--mono); font-size:11px; }
.vm-result-meta,.vm-result-addr { display:block; color:var(--muted); font-size:11.5px; line-height:1.5; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vm-result-tags { display:flex; flex-wrap:wrap; gap:4px; margin-top:5px; }
.vm-result-tags span { padding:1px 5px; border-radius:4px; color:var(--accent); background:rgba(var(--accent-rgb),.1); font-size:10px; }
.vm-empty { padding:36px 22px; color:var(--muted); text-align:center; line-height:1.65; }
.vm-map-panel { position:relative; min-width:0; background:var(--surface-2); }
.vm-map { position:absolute; inset:0; min-height:360px; }
.vm-map-state { display:grid; place-items:center; align-content:center; gap:10px; height:100%; min-height:360px; padding:28px; color:var(--muted); text-align:center; line-height:1.6; }
.vm-map-state b { color:var(--ink); }
.vm-map-note { position:absolute; z-index:2; right:12px; bottom:12px; max-width:250px; padding:7px 10px; border:1px solid var(--line); border-radius:8px; background:rgba(15,18,22,.78); color:#fff; font-size:11px; line-height:1.45; pointer-events:none; }
/* 黑色双黄点壁球：点位比普通图钉更贴合壁球馆地图。 */
.vm-marker { position:relative; display:block; width:28px; height:28px; overflow:visible; }
.vm-pin { position:relative; display:block; box-sizing:border-box; width:28px; height:28px; overflow:hidden; border:2px solid #fff; border-radius:50%; box-shadow:0 2px 8px rgba(0,0,0,.48); background:radial-gradient(circle at 32% 26%,#3d3d3d 0 8%,#1b1b1b 38%,#070707 100%); cursor:pointer; }
.vm-pin::before,.vm-pin::after { content:""; position:absolute; z-index:1; width:6px; height:6px; border-radius:50%; background:#ffda23; box-shadow:inset 0 1px 1px rgba(255,255,255,.55),0 1px 1px rgba(0,0,0,.38); }
.vm-pin::before { top:8px; left:6px; }
.vm-pin::after { right:5px; bottom:7px; }
.vm-pin.on { transform:translateY(-2px) scale(1.14); transform-origin:bottom center; box-shadow:0 0 0 5px rgba(255,218,35,.32),0 3px 10px rgba(0,0,0,.55); }
.vm-pin-label { position:absolute; z-index:2; top:50%; left:calc(100% + 6px); display:none; max-width:154px; overflow:hidden; padding:3px 6px; border:1px solid rgba(31,35,40,.2); border-radius:5px; background:rgba(255,255,255,.96); box-shadow:0 1px 5px rgba(0,0,0,.2); color:#20242a; font:600 11px/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; text-overflow:ellipsis; white-space:nowrap; transform:translateY(-50%); pointer-events:none; }
.vm-labels-on .vm-pin-label { display:block; }
.vm-labels-on .vm-pin.on + .vm-pin-label { border-color:#e4b80a; font-weight:800; }
.vm-pin.me { width:20px; height:20px; border-radius:50%; transform:none; background:#287be8; box-shadow:0 0 0 6px rgba(40,123,232,.2); pointer-events:none; }
.vm-pin.me::before,.vm-pin.me::after { content:none; }
.vm-info { min-width:190px; max-width:250px; padding:2px; color:#1f2328; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.vm-info b { display:block; margin-bottom:4px; font-size:14px; }
.vm-info small { display:block; color:#65707b; line-height:1.45; }
.vm-info-actions { display:flex; gap:8px; margin-top:10px; }
.vm-info-actions a { color:#15744d; font-size:12px; font-weight:700; text-decoration:none; }

@media (max-width:760px) {
  .vm-head { display:block; }
  .vm-head-actions { margin-top:12px; justify-content:stretch; }
  .vm-head-actions .btn { flex:1; }
  .vm-toolbar { gap:8px; }
  .vm-area-switch { width:100%; flex-wrap:nowrap; overflow-x:auto; overscroll-behavior-x:contain; padding-bottom:2px; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
  .vm-area-switch::-webkit-scrollbar { display:none; }
  .vm-area-option { flex:0 0 auto; }
  .vm-filter-options { display:none; width:100%; gap:8px; }
  .vm-filter-options.mobile-open { display:flex; }
  .vm-filter-options .vm-filter { flex:1 1 0; }
  .vm-mobile-filter-toggle { display:inline-flex; }
  .vm-layout { display:flex; flex-direction:column; min-height:0; border-radius:12px; }
  .vm-map-panel { order:-1; flex:0 0 clamp(260px,40svh,360px); height:auto; min-height:0; }
  .vm-map { min-height:260px; }
  .vm-results { flex:1 1 auto; border-right:0; border-top:1px solid var(--line); min-height:0; max-height:none; }
  .vm-results-search { padding:10px 12px; }
  .vm-results-head { padding:10px 12px 8px; }
  .vm-results-list { overscroll-behavior-y:contain; }
  .vm-map:not(.vm-labels-on) .vm-pin.on + .vm-pin-label { display:block; }
  .vm-pin-label { max-width:124px; }
  .vm-result { grid-template-columns:62px minmax(0,1fr); padding:10px 12px; }
  .vm-thumb,.vm-thumb .vc-cover { height:62px !important; }
  .vm-map-note { left:10px; right:auto; bottom:10px; max-width:230px; }
}
