.mm-page { min-width:0; }
.mm-tabs,.mm-mode,.mm-links { display:flex; flex-wrap:wrap; align-items:center; gap:7px; }
.mm-tabs { margin:0 0 15px; }
.mm-tabs button,.mm-mode button,.mm-links a,.mm-address button { font:inherit; line-height:1.3; font-weight:580; border:1px solid var(--line); border-radius:7px; background:var(--surface); color:var(--ink); padding:8px 13px; text-decoration:none; cursor:pointer; }
.mm-tabs button[aria-pressed="true"] { background:#f8eade; border-color:#deb994; color:#81421e; }
.mm-tabs button:focus-visible,.mm-pin:focus-visible,.mm-links a:focus-visible,.mm-mode button:focus-visible,.mm-shop:focus-visible { outline:3px solid var(--accent-deep); outline-offset:2px; }
.mm-layout { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(220px,.87fr); gap:16px; align-items:start; }
.mm-view,.mm-venue,.mm-shops { background:var(--surface); border:1px solid var(--line); border-radius:10px; min-width:0; }
.mm-view { overflow:hidden; }.mm-venue { border-top:2px solid #c67a4e; }
.mm-map-head { padding:9px 12px; border-bottom:1px solid var(--line); }
.mm-mode { display:inline-flex; gap:2px; padding:3px; background:var(--canvas); border-radius:8px; }
.mm-mode button { padding:6px 12px; font-size:.84rem; background:transparent; border-color:transparent; color:var(--muted); }
.mm-mode button[aria-pressed="true"] { background:var(--surface); border-color:var(--line); color:var(--ink); box-shadow:0 1px 3px #3827140d; }
.mm-offline,.mm-frame { display:block; position:relative; width:100%; height:clamp(310px,38vw,435px); background:#f1eee7; border:0; }
.mm-streets { width:100%; height:100%; }
.mm-park { fill:#c4dbbb; }
.mm-blocks { fill:#ddd9d0; stroke:#ccc7bf; stroke-width:.7; }
.mm-footprints { fill:#d7c7b1; fill-opacity:.78; stroke:#a89c8a; stroke-width:1; }
.mm-footprints .selected { fill:#f5bf91; stroke:#a34b21; stroke-width:2; }
.mm-roads { fill:none; stroke-linecap:round; stroke-linejoin:round; }
.mm-minor { stroke:#fbfaf6; stroke-width:1.8; }
.mm-street-side { stroke:#d7d2c9; stroke-width:5; }
.mm-street { stroke:#fffefa; stroke-width:4; }
.mm-artery-side { stroke:#d8bc99; stroke-width:7; }
.mm-artery { stroke:#f7e2c3; stroke-width:5.3; }
.mm-road-names { font:600 12px sans-serif; fill:#605b53; stroke:#f8f5ee; stroke-width:2px; paint-order:stroke; text-anchor:middle; dominant-baseline:middle; }
.mm-pin { position:absolute; transform:translate(-50%,-94%); max-width:46%; min-height:31px; display:inline-flex; align-items:center; justify-content:center; gap:3px; padding:4px 9px; border-radius:7px; color:var(--ink); background:var(--surface); border:1px solid #968b7e; box-shadow:0 2px 4px #14110f16; font-size:.82rem; line-height:1.15; font-weight:720; cursor:pointer; white-space:nowrap; }
.mm-pin:after { content:''; width:7px; height:7px; position:absolute; left:calc(50% - 4px); bottom:-4px; transform:rotate(45deg); border-right:1px solid #968b7e; border-bottom:1px solid #968b7e; background:var(--surface); }
.mm-pin[aria-pressed="true"],.mm-pin[aria-pressed="true"]:after { color:white; background:var(--btn); border-color:var(--btn); z-index:1; }
.mm-pin[aria-pressed="true"] svg { color:#ffbe85; }
.mm-north { position:absolute; top:9px; right:12px; font-size:.77rem; font-weight:700; color:var(--ink); background:#fffefbe6; border-radius:4px; padding:1px 5px; pointer-events:none; }
.mm-attribution { position:absolute; right:0; bottom:0; padding:3px 6px; background:#fffffff2; color:var(--ink); text-decoration:underline; font:10px/1.3 sans-serif; }
.mm-online-help,.mm-hint { font-size:.83rem; line-height:1.6; color:var(--muted); }
.mm-online-help { padding:6px 10px; }
.mm-online-help button,.mm-online-help a { color:var(--btn); text-decoration:underline; font:inherit; padding:0; }
.mm-side { min-width:0; }
.mm-venue,.mm-shops { padding:18px; }
.mm-venue-head { display:flex; gap:10px; align-items:flex-start; }
.mm-heading-icon { flex:none; width:36px; height:36px; display:grid; place-items:center; background:var(--accent-soft); color:var(--accent-deep); border-radius:9px; }
.mm-venue-head h2,.mm-shop-head h2 { margin:0; font-size:1.1rem; line-height:1.45; overflow-wrap:anywhere; }
.mm-venue-head p { margin:2px 0 0; color:var(--muted); font-size:.86rem; }
.mm-address { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 8px; color:var(--ink); line-height:1.45; font-size:.9rem; overflow-wrap:anywhere; }
.mm-address > span:first-child { display:inline-flex; align-items:baseline; gap:5px; min-width:0; max-width:100%; }
.mm-address > span:first-child svg { flex:none; align-self:flex-start; margin-top:2px; }
.mm-address button { font-weight:550; font-size:.8rem; padding:3px 7px; }
.mm-venue .mm-address { margin:16px 0; }
.mm-copy-status { font-size:.8rem; color:var(--accent-deep); }
.mm-copy-status:empty { display:none; }
.mm-manual { width:100%; min-width:0; font:inherit; border:1px solid #bcb4aa; border-radius:0; padding:6px; }
.mm-links a { color:var(--btn); border-color:var(--line); font-size:.84rem; }
.mm-links a:hover,.mm-address button:hover { background:var(--canvas); }
.mm-hint { margin:10px 4px 0; }
.mm-shops { margin-top:16px; }
.mm-shop-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:9px; margin-bottom:12px; }
.mm-list-title { display:flex; align-items:center; gap:8px; }
.mm-list-title [data-mm-count] { font-size:.76rem; line-height:1.55; color:#684e38; background:#f3ede4; border-radius:5px; padding:1px 7px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.mm-shop-head label { position:relative; display:flex; align-items:center; max-width:100%; }
.mm-shop-head label>svg { position:absolute; left:9px; color:var(--muted); pointer-events:none; }
.mm-shop-head label:focus-within>svg { color:var(--accent-deep); }
.mm-shop-head input { width:210px; max-width:100%; border:1px solid var(--line); border-radius:7px; padding:8px 11px 8px 32px; font:inherit; font-size:.86rem; color:var(--ink); background:var(--surface); }
.mm-shop-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(190px,100%),1fr)); gap:0;border-top:1px solid var(--line);border-left:1px solid var(--line); }
.mm-shop { display:flex; flex-direction:column; align-items:flex-start; gap:3px; min-width:0; min-height:48px; text-align:left; border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line); border-radius:0; padding:8px 10px; background:var(--surface); cursor:pointer; }
.mm-shop:hover { background:var(--canvas); }
.mm-shop:focus-visible { outline-offset:-2px; }
.mm-shop strong,.mm-shop small { overflow-wrap:anywhere; }
.mm-shop small,.mm-empty { color:var(--muted); }
.mm-empty { grid-column:1/-1; display:flex; flex-wrap:wrap; justify-content:center; gap:8px; align-items:center; padding:24px 10px; font-size:.87rem; border-bottom:1px solid var(--line); border-right:1px solid var(--line); }
.mm-empty button { color:var(--accent-deep); text-decoration:underline; text-underline-offset:3px; }
.mm-restaurant { margin:12px 0; padding:12px 0; border-top:1px solid var(--line); }
.mm-restaurant .mm-address { margin-top:9px; }
@media (max-width:740px) {
  .mm-shop-head input { font-size:16px; }
  .mm-layout { grid-template-columns:minmax(0,1fr); gap:10px; }
  .mm-venue,.mm-shops { padding:13px; }
  .mm-venue .mm-address { margin:10px 0; }
  .mm-offline,.mm-frame { height:clamp(295px,71vw,390px); }
  .mm-shop-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:390px) {
  .mm-tabs { gap:5px; }
  .mm-tabs button { padding:7px 9px; font-size:.84rem; }
  .mm-pin { font-size:.77rem; padding:4px 7px; }
}

@media (prefers-reduced-motion:no-preference) {
  .mm-tabs button,.mm-mode button,.mm-shop { transition:background-color var(--motion-fast,120ms),border-color var(--motion-fast,120ms),color var(--motion-fast,120ms); }
  .mm-pin { transition:background-color var(--motion-fast,120ms),color var(--motion-fast,120ms),box-shadow var(--motion-fast,120ms); }
  .mm-footprints path { transition:fill var(--motion-normal,180ms),stroke var(--motion-normal,180ms); }
  .mm-pin[data-mm-pulse]::before { content:""; position:absolute; inset:-2px; border:2px solid #b96532; border-radius:inherit; pointer-events:none; animation:mm-pin-ring 420ms var(--ease-out,ease-out) both; }
  .mm-selection-change .mm-venue-head { animation:mm-venue-in var(--motion-normal,180ms) var(--ease-out,ease-out); }
  @keyframes mm-pin-ring { from { opacity:.75; transform:scale(.94); } to { opacity:0; transform:scale(1.22); } }
  @keyframes mm-venue-in { from { opacity:.55; transform:translateY(3px); } }
}
@media (hover:hover) {
  .mm-tabs button:not([aria-pressed="true"]):hover,.mm-mode button:not([aria-pressed="true"]):hover { background:#f3eee7; }
  .mm-pin:hover { box-shadow:0 3px 8px #3c281e35; }
}
