/* Approved city A grid and shared motion. Alternatives remain playground-only
   choices. Tokens follow the home design system and playground/spec.html. */
.cm-root { position:absolute; inset:0; z-index:20; pointer-events:none; color:var(--hc-ink); font:14px/20px var(--hc-sans); }
.cm-root * { box-sizing:border-box; }
.cm-shell { position:absolute; isolation:isolate; }
.cm-skin { position:absolute; inset:0; transform-origin:left bottom; border-radius:24px; background:var(--hc-sheet); backdrop-filter:blur(32px) saturate(1.4); -webkit-backdrop-filter:blur(32px) saturate(1.4); box-shadow:var(--hc-glass-shadow); }
.cm-root[data-resting=true] .cm-shell { visibility:hidden; }
.cm-content { position:absolute; inset:0; display:flex; flex-direction:column; border-radius:24px; }
.cm-root[data-open=true] .cm-content { pointer-events:auto; }
.cm-grid { padding:16px 16px 8px; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:4px; flex:none; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.cm-root[data-mobile=true] .cm-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.cm-option { border:0; margin:0; padding:0 8px; height:44px; display:grid; place-items:center; border-radius:999px; background:none; color:var(--hc-ink-2); font:400 14px/20px var(--hc-sans); white-space:nowrap; cursor:pointer; -webkit-tap-highlight-color:transparent; transition:background .3s var(--hc-curve),color .3s var(--hc-curve),transform .3s var(--hc-curve); }
.cm-option[aria-pressed=true] { color:var(--hc-accent); background:rgba(210,69,46,.08); font-weight:500; }
@media(hover:hover) { .cm-option:hover { background:var(--hc-fill); color:var(--hc-ink); } .cm-option[aria-pressed=true]:hover { color:var(--hc-accent); background:rgba(210,69,46,.08); } }
.cm-option:active { transform:scale(.98); }
.cm-option-count,.cm-option-check { display:none; }
/* B: independent capsules make every choice tactile, with one solid accent. */
.cm-root[data-variant=pills] .cm-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; padding:16px 16px 12px; }
.cm-root[data-variant=pills] .cm-option { background:var(--hc-fill); color:var(--hc-ink-2); }
.cm-root[data-variant=pills] .cm-option[aria-pressed=true] { background:var(--hc-accent); color:#fffdfa; }
/* C: a compact directory. Counts come from the actual venue catalog. */
.cm-root[data-variant=list] .cm-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 8px; padding:16px 16px 8px; }
.cm-root[data-variant=list] .cm-option { position:relative; height:64px; border-radius:16px; padding:8px 12px; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:4px; text-align:left; }
.cm-root[data-variant=list] .cm-option-name { font-size:16px; line-height:24px; color:var(--hc-ink); }
.cm-root[data-variant=list] .cm-option-count { display:block; font-size:14px; line-height:20px; color:var(--hc-ink-2); font-weight:400; }
.cm-root[data-variant=list] .cm-option[aria-pressed=true] { background:var(--hc-fill); }
.cm-root[data-variant=list] .cm-option[aria-pressed=true] .cm-option-name { color:var(--hc-accent); }
.cm-root[data-variant=list] .cm-option[aria-pressed=true] .cm-option-check { display:block; position:absolute; right:12px; top:12px; width:16px; height:16px; fill:none; stroke:var(--hc-accent); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
/* D: region rows, with the all-cities choice spanning the whole first row. */
.cm-root[data-variant=regions] .cm-grid { display:flex; flex-direction:column; gap:8px; padding:16px 16px 8px; }
.cm-root[data-variant=regions] .cm-grid > .cm-option { width:100%; flex:none; padding-inline:16px; display:flex; justify-content:space-between; }
.cm-root[data-variant=regions] .cm-grid > .cm-option .cm-option-name::after { content:'城市'; }
.cm-root[data-variant=regions] .cm-grid > .cm-option .cm-option-count { display:block; font-size:14px; line-height:20px; font-weight:400; color:var(--hc-ink-2); }
.cm-region { display:grid; grid-template-columns:32px minmax(0,1fr); gap:12px; align-items:center; }
.cm-region-name { font:400 14px/20px var(--hc-sans); color:var(--hc-ink-2); }
.cm-region-cities { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; }
.cm-region .cm-option { min-width:0; padding-inline:4px; }
.cm-root[data-variant=regions] .cm-grid > .cm-option[aria-pressed=true] .cm-option-count { color:var(--hc-accent); }
.cm-footer { display:flex; align-items:center; height:44px; flex:none; margin-top:auto; }
.cm-collapse { display:flex; align-items:center; gap:8px; height:44px; width:100%; padding:0 18px; border:0; background:none; color:var(--hc-ink); text-align:left; font:500 14px/20px var(--hc-sans); cursor:pointer; -webkit-tap-highlight-color:transparent; border-radius:999px; }
.cm-label { display:flex; align-items:center; gap:8px; white-space:nowrap; }
.cm-label > svg, .cm-chevron { width:18px; height:18px; flex:none; stroke:currentColor; fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.cm-chevron { width:16px; height:16px; margin-left:auto; color:var(--hc-ink-2); }
.cm-root button:focus-visible { outline:2px solid var(--hc-accent); outline-offset:-4px; }
.cm-root .cm-collapse:focus-visible { outline-offset:-6px; }
@media(prefers-reduced-motion:reduce) { .cm-root * { transition:none!important; } }
