/* dogAdvisor Max: places map card (edition 4). Neutral dark glass. No inline styles, CSP safe. */
.mm-wrap { margin: 20px 0 6px; width: 100%; max-width: 1090px; animation: mm-in .8s cubic-bezier(.16,1,.3,1) both; }
@keyframes mm-in { from { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.mm-slot { position: relative; width: 100%; aspect-ratio: 16 / 10; min-height: 520px; max-height: 720px; }
.mm-credit { margin: 8px 6px 0; text-align: right; font-size: 11px; line-height: 1.4; opacity: .45; }
.mm-credit a { color: inherit; text-decoration: none; }

.mm {
  --surface: rgba(30, 33, 35, .87); --solid: #26292b; --edge: rgba(255, 255, 255, .09); --hover: rgba(255, 255, 255, .06); --on: rgba(255, 255, 255, .09);
  --ink: #fff; --sub: rgba(255, 255, 255, .58); --faint: rgba(255, 255, 255, .38); --sep: rgba(255, 255, 255, .09);
  --shadow: 0 12px 34px rgba(0, 0, 0, .34), 0 2px 6px rgba(0, 0, 0, .26);
  --blur: blur(26px) saturate(1.05);
  --ease: cubic-bezier(.16, 1, .3, 1);
  position: absolute; inset: 0; border-radius: 24px; overflow: hidden; isolation: isolate; background: #3e5f50; border: 1px solid var(--edge);
  font-family: inherit; color: var(--ink); text-align: left; line-height: 1.3; -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none;
}
.mm *, .mm *::before, .mm *::after { box-sizing: border-box; }
:where(.mm) :where(button, a) { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; margin: 0; text-decoration: none; -webkit-tap-highlight-color: transparent; }
:where(.mm) :where(input) { font: inherit; }
.mm-ico { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mm-ico-fill { fill: currentColor; stroke: none; }
.mm-map { position: absolute; inset: 0; }
.mm-map .maplibregl-canvas { outline: none; }
.mm .maplibregl-ctrl-bottom-left, .mm .maplibregl-ctrl-bottom-right, .mm .maplibregl-ctrl-top-left, .mm .maplibregl-ctrl-top-right { display: none; }

/* one glass style for every floating piece */
.mm .mm-surf { background: var(--surface); border: 1px solid var(--edge); box-shadow: var(--shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }

/* ---------- top-left ---------- */
.mm-top { position: absolute; z-index: 7; top: 16px; left: 16px; display: flex; align-items: center; gap: 10px; }
.mm .mm-round { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; transition: transform .25s var(--ease), background .2s ease; }
.mm .mm-round:hover { background: rgba(48, 52, 55, .86); } .mm .mm-round:active { transform: scale(.94); }
.mm-round svg { width: 19px; height: 19px; }
.mm .mm-pill { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px 0 16px; border-radius: 999px; font-size: 15.5px; font-weight: 500; white-space: nowrap; transition: background .2s ease, opacity .3s ease, transform .4s var(--ease); }
.mm .mm-pill:hover { background: rgba(48, 52, 55, .86); }
.mm-pill svg { width: 18px; height: 18px; flex: none; }
.mm[data-mode="list"] .mm-listbtn, .mm .mm-modewrap, .mm[data-mode="route"] .mm-startpill { display: none; }

/* ---------- places list ---------- */
.mm-panel, .mm-tp { position: absolute; z-index: 5; top: 16px; right: 16px; width: min(44%, 470px); border-radius: 26px; transition: transform .6s var(--ease), opacity .4s ease; }
.mm-panel { bottom: 16px; display: flex; flex-direction: column; overflow: hidden; }
.mm[data-mode="route"] .mm-panel, .mm[data-mode="place"] .mm-panel { transform: translateX(calc(100% + 30px)); opacity: 0; pointer-events: none; }
.mm-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.mm-list::-webkit-scrollbar { width: 6px; } .mm-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 6px; }
.mm .mm-row { display: flex; align-items: center; gap: 18px; width: 100%; padding: 16px; border-radius: 18px; text-align: left; position: relative; transition: background .25s ease, transform .3s var(--ease); }
.mm-row + .mm-row { margin-top: 16px; }
.mm-row + .mm-row::before { content: ""; position: absolute; top: -8px; left: 16px; right: 16px; height: 1px; background: var(--sep); transition: opacity .2s ease; }
.mm .mm-row:hover { background: var(--hover); }
.mm .mm-row:active { transform: scale(.985); }
.mm-row:hover::before, .mm-row:hover + .mm-row::before, .mm-row.on::before, .mm-row.on + .mm-row::before { opacity: 0; }
.mm .mm-row.on { background: var(--on); }
.mm-thumb { flex: none; width: 84px; height: 84px; border-radius: 14px; object-fit: cover; background: rgba(255,255,255,.08); display: block; }
.mm-rtxt { min-width: 0; flex: 1; }
.mm-name { font-size: 19px; font-weight: 400; line-height: 1.25; letter-spacing: -.005em; }
.mm-meta { margin-top: 4px; font-size: 15px; color: var(--sub); display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; }
.mm-meta svg { width: 14px; height: 14px; flex: none; }
.mm-desc { margin-top: 5px; font-size: 15px; line-height: 1.4; color: var(--sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- pins, dot, labels ---------- */
.mm-mk { will-change: transform; }
.mm-pin { min-width: 46px; height: 32px; padding: 0 12px; display: grid; place-items: center; border-radius: 999px; font-size: 14.5px; font-weight: 600; cursor: pointer;
  background: var(--solid); color: #fff; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 4px 12px rgba(0,0,0,.35);
  transition: transform .35s cubic-bezier(.3,1.5,.5,1), background .25s ease, color .25s ease; animation: mm-pinin .55s cubic-bezier(.3,1.4,.5,1) backwards; }
@keyframes mm-pinin { from { opacity: 0; transform: scale(.4) translateY(8px); } to { opacity: 1; transform: none; } }
.mm-pin:hover { transform: scale(1.08); }
.mm-pin.on { background: #fff; color: #1d2022; transform: scale(1.14); }
.mm-dot { width: 20px; height: 20px; border-radius: 50%; background: #3b82f6; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); position: relative; }
.mm-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(59,130,246,.22); z-index: -1; pointer-events: none; animation: mm-pulse 2.6s ease-out infinite; }
@keyframes mm-pulse { 0% { transform: scale(.4); opacity: .95; } 100% { transform: scale(1); opacity: 0; } }
.mm-tip { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 15.5px; white-space: nowrap; pointer-events: none; animation: mm-pop .45s var(--ease) both; }
.mm-tip .mm-tmin { color: var(--sub); }
@keyframes mm-pop { from { opacity: 0; transform: scale(.92) translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- travel path ---------- */
.mm-tp { max-height: calc(100% - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; transform: translateX(calc(100% + 30px)); opacity: 0; pointer-events: none; }
.mm-tp::-webkit-scrollbar { display: none; }
.mm[data-mode="route"] .mm-tp { transform: none; opacity: 1; pointer-events: auto; transition-delay: .06s; }
.mm-tp-head { position: sticky; top: 0; z-index: 2; text-align: center; font-size: 17px; font-weight: 500; padding: 18px 0 16px; border-bottom: 1px solid var(--sep); background: #1f2224; }
.mm-tp-body { padding: 20px 20px 20px; }
.mm-tp.mm-anim .mm-st { animation: mm-up .6s var(--ease) both; animation-delay: calc(var(--i) * 55ms + 80ms); }
@keyframes mm-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.mm-tp-row { display: flex; align-items: center; gap: 16px; }
.mm-tp-row .mm-startdot, .mm-tp-row .mm-thumb { width: 64px; height: 64px; border-radius: 14px; }
.mm-startdot { flex: none; display: grid; place-items: center; background: rgba(59,130,246,.14); }
.mm-startdot::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: #3b82f6; border: 3px solid #fff; box-shadow: 0 0 0 10px rgba(59,130,246,.22); }
.mm-ctext { min-width: 0; flex: 1; }
.mm-k { font-size: 13.5px; color: var(--sub); }
.mm-t { margin-top: 2px; font-size: 18px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-sub1 { margin-top: 2px; font-size: 13px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm .mm-chg { flex: none; display: flex; align-items: center; gap: 4px; height: 34px; padding: 0 10px 0 14px; border-radius: 999px; font-size: 14px; background: rgba(255,255,255,.1); transition: background .2s ease; }
.mm .mm-chg:hover { background: rgba(255,255,255,.17); }
.mm-chg svg { width: 15px; height: 15px; }
.mm-tp-link { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.mm-tp-line { width: 64px; flex: none; align-self: stretch; margin: 6px 0; background: radial-gradient(circle, #3b82f6 3.2px, rgba(255,255,255,.9) 3.6px, rgba(255,255,255,.9) 4.6px, transparent 5px) center top / 12px 14px repeat-y; }
.mm-tp-sum { font-size: 14.5px; color: var(--sub); }

/* address form (in the travel path, and the bottom bar in list mode) */
.mm-aform { display: none; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 16px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--edge); transition: border-color .2s ease; }
.mm-aform:focus-within { border-color: rgba(255,255,255,.28); }
.mm-tp.chg-open .mm-aform { display: flex; margin-top: 14px; animation: mm-pop .35s var(--ease) both; }
.mm-aform input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: #fff; font-size: 15px; -webkit-user-select: text; user-select: text; }
.mm-aform input::placeholder { color: var(--sub); }
.mm-b-ico { width: 17px; height: 17px; color: var(--sub); flex: none; }
.mm .mm-send { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #1d2022; transition: transform .2s var(--ease), opacity .2s ease; }
 .mm .mm-send:active { transform: scale(.94); } .mm-send svg { width: 18px; height: 18px; }
.mm-aform.busy .mm-send { opacity: .45; pointer-events: none; animation: mm-breath 1s ease-in-out infinite; }
@keyframes mm-breath { 50% { transform: scale(.9); } }
.mm .mm-aform.mm-bar { position: absolute; z-index: 8; left: 50%; bottom: 20px; width: min(470px, calc(100% - 40px)); height: 56px; transform: translateX(-50%); background: var(--surface); }
.mm.mm-addr .mm-aform.mm-bar { display: flex; animation: mm-bar-in .45s var(--ease) both; }
@keyframes mm-bar-in { from { opacity: 0; transform: translate(-50%, 12px) scale(.97); } to { opacity: 1; transform: translateX(-50%); } }

/* travel-by options */
.mm-tp-sec { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--sep); }
.mm-tp-h { font-size: 17px; font-weight: 500; }
.mm-tp-hs { margin-top: 3px; font-size: 13px; color: var(--faint); }
.mm-opts { margin-top: 14px; padding: 6px; border-radius: 20px; background: rgba(0,0,0,.18); border: 1px solid var(--edge); }
.mm-opt { border-radius: 15px; transition: background .25s ease; }
.mm-opt + .mm-opt { margin-top: 2px; }
.mm-opt.on { background: var(--on); }
.mm .mm-opt-h { display: flex; align-items: center; gap: 14px; width: 100%; height: 52px; padding: 0 16px; border-radius: 15px; text-align: left; font-size: 16px; }
.mm .mm-opt:not(.on) .mm-opt-h:hover { background: var(--hover); }
.mm-opt-ic { width: 20px; height: 20px; flex: none; }
.mm-opt-m { color: var(--sub); }
.mm-opt-ck { width: 18px; height: 18px; margin-left: auto; opacity: 0; transform: scale(.6); transition: opacity .25s ease, transform .35s var(--ease); }
.mm-opt.on .mm-opt-ck { opacity: 1; transform: none; }
.mm-opt-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.mm-opt.open .mm-opt-b { grid-template-rows: 1fr; }
.mm-opt-in { overflow: hidden; padding: 0 16px; opacity: 0; transition: opacity .3s ease, padding .5s var(--ease); position: relative; }
.mm-opt.open .mm-opt-in { padding: 2px 16px 16px; opacity: 1; transition-delay: .08s; }
.mm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mm-chip { height: 28px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 13px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.85); }
.mm-chip.soft { color: var(--sub); }
.mm-chip.warn { background: rgba(245,158,11,.18); color: #fcd38a; }
.mm-note { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--sub); }
.mm-note:empty { display: none; }
.mm-steps { list-style: none; margin: 12px 0 0; padding: 0; }
.mm-steps:empty { display: none; }
.mm-step { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 14px; }
.mm-step + .mm-step { border-top: 1px solid var(--sep); }
.mm-step.more { display: none; } .mm-det.all .mm-step.more { display: flex; }
.mm-step-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.mm-step-ic svg { width: 15px; height: 15px; }
.mm-step-t { flex: 1; min-width: 0; line-height: 1.35; }
.mm-step-d { flex: none; color: var(--sub); font-size: 13px; }
.mm-acts { display: flex; gap: 8px; margin-top: 14px; }
.mm .mm-btn1, .mm .mm-btn2 { height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 500; transition: transform .2s var(--ease), background .2s ease; white-space: nowrap; }
.mm .mm-btn1 { flex: 1; background: #fff; color: #1d2022; }
.mm .mm-btn1:hover { background: #e9eaeb; } .mm .mm-btn1:active, .mm .mm-btn2:active { transform: scale(.97); }
.mm .mm-btn2 { background: rgba(255,255,255,.1); }
.mm .mm-btn2:hover { background: rgba(255,255,255,.17); }
.mm-btn2 svg { width: 16px; height: 16px; }
.mm-btn2[hidden] { display: none; }
.mm-logos { display: inline-flex; }
.mm-logo { width: 20px; height: 20px; border-radius: 5px; object-fit: cover; }
.mm-logos .mm-logo + .mm-logo, .mm-logos .mm-logo-fb + .mm-logo, .mm-logos .mm-logo + .mm-logo-fb { margin-left: -5px; box-shadow: 0 0 0 2px #fff; }
.mm-logo-fb { width: 18px; height: 18px; }
.mm-logos .mm-logo-fb + .mm-logo-fb { display: none; }
.mm-sendmenu { display: none; margin-top: 8px; padding: 6px; border-radius: 16px; background: rgba(0,0,0,.28); border: 1px solid var(--edge); }
.mm-det.menu-on .mm-sendmenu { display: block; animation: mm-pop .3s var(--ease) both; }
.mm .mm-maplink { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px; border-radius: 12px; font-size: 15px; color: #fff; }
.mm .mm-maplink:hover { background: var(--hover); }
.mm-maplink .mm-logo { width: 26px; height: 26px; border-radius: 7px; }
.mm-maplink .mm-logo-fb { width: 20px; height: 20px; margin: 0 3px; }
.mm-ext { width: 15px; height: 15px; margin-left: auto; color: var(--sub); }

.mm-tp-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--sep); }
.mm .mm-tp-nb { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; background: rgba(255,255,255,.08); transition: background .2s ease, transform .2s var(--ease); }
.mm .mm-tp-nb:hover { background: rgba(255,255,255,.15); } .mm .mm-tp-nb:active { transform: scale(.96); }
.mm-tp-nb svg { width: 16px; height: 16px; }
.mm-tp-count { font-size: 14px; color: var(--sub); }

/* far-away confirm: same look as the travel path panel */
.mm-confirm { position: absolute; z-index: 10; left: 50%; top: 50%; width: min(430px, calc(100% - 40px)); border-radius: 26px; overflow: hidden; transform: translate(-50%, -46%) scale(.96); opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .5s var(--ease); }
.mm .mm-confirm { background: rgba(30, 33, 35, .95); }
.mm.mm-cf-on .mm-confirm { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.mm.mm-cf-on .mm-map { filter: brightness(.55) saturate(.8); transition: filter .35s ease; }
.mm-cf-head { text-align: center; font-size: 17px; font-weight: 500; padding: 18px 0 16px; border-bottom: 1px solid var(--sep); }
.mm-cf-body { padding: 20px; }
.mm-cf-chips { margin-top: 16px; }
.mm-cf-chips .mm-chip { gap: 6px; } .mm-cf-chips svg { width: 14px; height: 14px; }
.mm-cf-s { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--sub); }
.mm-confirm .mm-acts { margin-top: 18px; } .mm-confirm .mm-btn2 { flex: 1; }

/* travel-by picker (top-left) */
.mm-modewrap { position: relative; }
.mm-mp-ic { display: grid; place-items: center; } .mm-mp-ic svg { width: 19px; height: 19px; }
.mm-pill .mm-pill-min { color: var(--sub); font-weight: 400; }
.mm-pill .mm-chev { width: 15px; height: 15px; margin-left: 2px; opacity: .65; transition: transform .3s var(--ease); }
.mm-modewrap.open .mm-chev { transform: rotate(180deg); }
.mm-modemenu { position: absolute; top: 0; left: 0; z-index: 3; min-width: 232px; padding: 6px; border-radius: 22px; display: none; transform-origin: 30px 22px; }
.mm-modewrap.open .mm-modemenu { display: block; animation: mm-menu .38s var(--ease) both; }
@keyframes mm-menu { from { opacity: 0; transform: scale(.9) translateY(-4px); } to { opacity: 1; transform: none; } }
.mm .mm-mi { display: flex; align-items: center; gap: 13px; width: 100%; height: 50px; padding: 0 16px; border-radius: 16px; text-align: left; font-size: 16.5px; transition: background .2s ease; }
.mm .mm-mi:hover { background: var(--hover); }
.mm .mm-mi.on { background: var(--on); }
.mm-mi-ic { width: 20px; height: 20px; flex: none; }
.mm-mi-m { color: var(--sub); min-width: 3ch; }
.mm-mi-ck { width: 18px; height: 18px; margin-left: auto; padding-left: 0; opacity: 0; transform: scale(.6); transition: opacity .25s ease, transform .35s var(--ease); }
.mm-mi.on .mm-mi-ck { opacity: 1; transform: none; }
.mm-det { margin-top: 14px; }

/* ---------- full screen ---------- */
.mm-ctrls { display: none; position: absolute; z-index: 6; left: 20px; top: 82px; flex-direction: column; gap: 10px; }
.mm.mm-fs .mm-ctrls { display: flex; }
.mm .mm-ctrls .mm-3d { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.mm .mm-ctrls .mm-3d.on { background: #fff; color: #1d2022; }
.mm-grp { display: flex; flex-direction: column; border-radius: 23px; overflow: hidden; }
.mm .mm-grp button { width: 46px; height: 44px; display: grid; place-items: center; }
.mm .mm-grp button:hover { background: var(--hover); }
.mm .mm-grp button + button { border-top: 1px solid var(--sep); }
.mm-grp svg { width: 18px; height: 18px; }
.mm.mm-fs { position: fixed; inset: 0; z-index: 2147483000; border-radius: 0; border: 0; }
.mm.mm-fs .mm-panel, .mm.mm-fs .mm-tp { top: 20px; right: 20px; width: 450px; }
.mm.mm-fs .mm-panel { bottom: 20px; } .mm.mm-fs .mm-tp { max-height: calc(100% - 40px); }
.mm.mm-fs .mm-top { top: 20px; left: 20px; }

.mm-toast { position: absolute; z-index: 9; left: 20px; bottom: 20px; max-width: calc(100% - 40px); padding: 12px 18px; border-radius: 16px; font-size: 14px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .3s ease, transform .4s var(--ease); }
.mm-toast.on { opacity: 1; transform: none; }
.mm-fs-credit { position: absolute; z-index: 4; right: 12px; bottom: 6px; font-size: 10px; opacity: .5; display: none; }
.mm.mm-fs .mm-fs-credit { display: block; }
html.mm-noscroll, html.mm-noscroll body { overflow: hidden !important; }

/* ---------- narrow ---------- */
.mm.narrow .mm-panel, .mm.narrow .mm-tp { width: 60%; }
.mm.narrow .mm-thumb { width: 64px; height: 64px; }
.mm.narrow .mm-name { font-size: 16px; } .mm.narrow .mm-meta, .mm.narrow .mm-desc { font-size: 13px; }
@media (max-width: 640px) { .mm-slot { aspect-ratio: auto; height: 620px; } .mm-panel, .mm-tp { top: auto; left: 10px; right: 10px; bottom: 10px; width: auto; height: 55%; max-height: 55%; } }
@media (prefers-reduced-motion: reduce) { .mm-wrap, .mm-pin, .mm-tip, .mm-dot::after, .mm-tp.mm-anim .mm-st { animation: none; } .mm * { transition: none !important; } }

/* edition 7 (9 November 2026): Send to phone, Send to Maps, Start */
.mm .mm-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 6px 2px; font-size: 14px; color: var(--sub); transition: color .2s ease; }
.mm .mm-more:hover { color: #fff; } .mm-more svg { width: 15px; height: 15px; } .mm .mm-more[hidden] { display: none; }
.mm-acts3 { flex-wrap: wrap; }
.mm .mm-acts3 .mm-btn1, .mm .mm-acts3 .mm-btn2 { padding: 0 15px; font-size: 14.5px; flex: 1 1 auto; }
.mm .mm-acts3 .mm-gobtn { flex: 1 1 88px; }
.mm-acts3 .mm-btn1 svg, .mm-acts3 .mm-btn2 svg, .mm-confirm .mm-btn1 svg, .mm-confirm .mm-btn2 svg { width: 16px; height: 16px; }
.mm .mm-btn2:disabled, .mm .mm-btn1:disabled { opacity: .4; cursor: default; }
.mm-cf-head { position: relative; }
.mm .mm-cf-x { position: absolute; right: 12px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background .2s ease; }
.mm .mm-cf-x:hover { background: rgba(255,255,255,.16); } .mm-cf-x svg { width: 15px; height: 15px; }
.mm-cf-q { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.mm-cf-route { margin-top: 16px; padding: 14px 16px; border-radius: 18px; background: rgba(0,0,0,.24); border: 1px solid var(--edge); }
.mm-cf-rt { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sub); margin-bottom: 12px; } .mm-cf-rt svg { width: 16px; height: 16px; color: #fff; }
.mm-cf-pt { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.mm-cf-dot { width: 12px; height: 12px; border-radius: 50%; background: #3b82f6; box-shadow: 0 0 0 2.5px #fff; flex: none; margin: 0 2px; }
.mm-cf-dot.end { background: #ef4444; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.mm-cf-vl { width: 0; height: 18px; margin: 3px 0 3px 7px; border-left: 2px dotted rgba(255,255,255,.4); }
.mm-cf-phone { text-align: center; }
.mm-cf-phone .mm-cf-route, .mm-cf-phone .mm-acts { text-align: left; }
.mm-qr { width: 190px; height: 190px; margin: 4px auto 0; border-radius: 22px; background: rgba(255,255,255,.06); display: grid; place-items: center; overflow: hidden; }
.mm-qr.ready { background: #fff; animation: mm-pop .45s var(--ease) both; }
.mm-qr-svg { width: 100%; height: 100%; display: block; }
.mm-qr-wait { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px; font-size: 13.5px; color: var(--sub); }
.mm-spin { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: #fff; animation: mm-spin .8s linear infinite; }
@keyframes mm-spin { to { transform: rotate(360deg); } }
.mm-qr-cap { margin-top: 14px; }
.mm-url { margin-top: 10px; font-size: 13px; color: #8db4ff; word-break: break-all; user-select: text; -webkit-user-select: text; }
.mm-url:empty { display: none; }
.mm.mm-fs .mm-confirm, .mm-confirm { max-height: calc(100% - 32px); overflow-y: auto; scrollbar-width: none; }
.mm.mm-cf-on .mm-tp, .mm.mm-cf-on .mm-top, .mm.mm-cf-on .mm-panel { filter: brightness(.55); transition: filter .35s ease; }

/* edition 8 (9 November 2026): flights, real public transport, ways of travelling that don't make sense */
.mm-mi.off { opacity: .45; } .mm-mi.off .mm-mi-m { font-size: 12px; }
.mm-fly:empty { display: none; }
.mm-fly { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--sep); }
.mm-fly .mm-tp-h { margin-top: 0; }
.mm-fly-get { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.mm-fly-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.mm-fly-ic svg { width: 16px; height: 16px; }
.mm-fly-gt { font-size: 15px; line-height: 1.35; }
.mm-fly-sub { font-size: 13px; color: var(--sub); margin-top: 2px; line-height: 1.4; }
.mm-fly-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.mm .mm-fly-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid transparent; transition: background .2s ease, border-color .2s ease; }
.mm .mm-fly-opt:hover { background: rgba(255,255,255,.09); }
.mm .mm-fly-opt.on { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.09); }
.mm-fly-route { font-size: 15.5px; font-weight: 500; }
.mm-fly .mm-note { margin-top: 12px; }
.mm-step-badge { width: auto; min-width: 30px; padding: 0; background: none; }
.mm-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 24px; padding: 0 7px; border-radius: 7px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.mm-step-sub { display: block; margin-top: 3px; font-size: 12.5px; color: var(--sub); }
.mm-tstep { align-items: flex-start; } .mm-tstep .mm-step-ic { margin-top: 1px; }
.mm .mm-btn1:disabled { background: rgba(255,255,255,.35); }

/* edition 9 (9 November 2026) */
/* the list and travel path reach out to the card's edges, with corners that follow the card's own */
.mm-panel, .mm-tp { top: 8px; right: 8px; border-radius: 18px; }
.mm-panel { bottom: 8px; }
.mm-tp { max-height: calc(100% - 16px); }
.mm-tp-head { border-radius: 18px 18px 0 0; }
.mm.mm-fs .mm-panel, .mm.mm-fs .mm-tp { top: 10px; right: 10px; border-radius: 22px; }
.mm.mm-fs .mm-panel { bottom: 10px; } .mm.mm-fs .mm-tp { max-height: calc(100% - 20px); }
@media (max-width: 640px) { .mm-panel, .mm-tp { left: 8px; right: 8px; bottom: 8px; } }

/* numbered places: the pins and the list share the same numbers */
.mm-thumbw { position: relative; flex: none; display: block; }
.mm-num { position: absolute; left: -6px; top: -6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; background: #1d2022; color: #fff; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: transform .35s var(--ease); }
.mm-row.on .mm-num { background: #fff; color: #1d2022; border-color: #fff; transform: scale(1.08); }
.mm .mm-row:hover .mm-num { transform: scale(1.1) rotate(-6deg); }

/* the chosen pin: white, with a small bounce */
.mm-pin.on { animation: mm-pinbounce .55s var(--ease); }
@keyframes mm-pinbounce { 0% { transform: scale(1); } 45% { transform: scale(1.3) translateY(-4px); } 100% { transform: scale(1.14); } }

/* credits: ours on the left, the ones the licences require on the right */
.mm-credit { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; text-align: left; }
.mm-brand { font-weight: 500; }
.mm-req { text-align: right; }

/* flights: plain icons, never in a circle */
.mm-fly-gi { width: 20px; height: 20px; flex: none; color: rgba(255,255,255,.85); }
.mm-fly-get .mm-fly-gi { margin: 0 7px; }

/* the globe floats in a very dark, softly starry sky */
.mm.mm-globe, .mm.mm-globe .mm-map { background-color: #04060b; }
.mm.mm-globe .mm-map { background-image:
  radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.75), transparent 60%), radial-gradient(1px 1px at 27% 72%, rgba(255,255,255,.55), transparent 60%),
  radial-gradient(1.4px 1.4px at 41% 33%, rgba(255,255,255,.7), transparent 60%), radial-gradient(1px 1px at 58% 84%, rgba(255,255,255,.5), transparent 60%),
  radial-gradient(1.2px 1.2px at 69% 14%, rgba(255,255,255,.65), transparent 60%), radial-gradient(1px 1px at 83% 47%, rgba(255,255,255,.55), transparent 60%),
  radial-gradient(1.5px 1.5px at 91% 78%, rgba(220,230,255,.7), transparent 60%), radial-gradient(1px 1px at 6% 58%, rgba(255,255,255,.45), transparent 60%),
  radial-gradient(1px 1px at 35% 92%, rgba(255,255,255,.4), transparent 60%), radial-gradient(1.2px 1.2px at 76% 63%, rgba(255,240,220,.55), transparent 60%),
  radial-gradient(ellipse at 50% 120%, rgba(40,60,110,.25), transparent 60%);
  background-size: 340px 340px, 420px 420px, 380px 380px, 460px 460px, 300px 300px, 520px 520px, 610px 610px, 280px 280px, 390px 390px, 470px 470px, 100% 100%;
  animation: mm-stars 9s ease-in-out infinite alternate; }
@keyframes mm-stars { from { opacity: 1; } to { opacity: .9; } }

/* small, kind animations everywhere */
.mm[data-mode="list"] .mm-row { animation: mm-up .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.mm .mm-row:hover .mm-thumb { transform: scale(1.04); }
.mm-thumb { transition: transform .45s var(--ease); }
.mm-modewrap.open .mm-mi { animation: mm-up .4s var(--ease) both; }
.mm-modewrap.open .mm-mi:nth-child(2) { animation-delay: .04s; } .mm-modewrap.open .mm-mi:nth-child(3) { animation-delay: .08s; } .mm-modewrap.open .mm-mi:nth-child(4) { animation-delay: .12s; }
.mm-chip { animation: mm-pop .45s var(--ease) both; }
.mm-chips .mm-chip:nth-child(2) { animation-delay: .05s; } .mm-chips .mm-chip:nth-child(3) { animation-delay: .1s; }
.mm-steps .mm-step { animation: mm-up .45s var(--ease) both; }
.mm-steps .mm-step:nth-child(2) { animation-delay: .04s; } .mm-steps .mm-step:nth-child(3) { animation-delay: .08s; } .mm-steps .mm-step:nth-child(4) { animation-delay: .12s; }
.mm .mm-btn1, .mm .mm-btn2, .mm .mm-chg, .mm .mm-round, .mm .mm-pill { will-change: transform; }
.mm .mm-round:active, .mm .mm-pill:active, .mm .mm-chg:active { transform: scale(.94); }
.mm .mm-fly-opt { animation: mm-up .5s var(--ease) both; }
.mm-confirm .mm-cf-body > * { animation: mm-up .5s var(--ease) both; }
.mm-confirm .mm-cf-body > *:nth-child(2) { animation-delay: .05s; } .mm-confirm .mm-cf-body > *:nth-child(3) { animation-delay: .1s; } .mm-confirm .mm-cf-body > *:nth-child(4) { animation-delay: .15s; }
@media (prefers-reduced-motion: reduce) { .mm-pin.on, .mm.mm-globe .mm-map, .mm-row, .mm-chip, .mm-step, .mm-mi, .mm-fly-opt { animation: none !important; } }
.mm-pin { min-width: 34px; padding: 0 10px; }

/* ===== edition 10: the place preview, travel modes inside the travel path, wide Send to phone, nothing jumps on hover ===== */
.mm .mm-btn1:hover, .mm .mm-btn2:hover, .mm .mm-row:hover, .mm .mm-round:hover, .mm .mm-send:hover, .mm .mm-tp-nb:hover { transform: none; }

/* Walk, Bike, Transit, Drive: one segmented control, like the phone */
.mm-seg { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 22px; padding: 4px; border-radius: 16px; background: rgba(0,0,0,.26); border: 1px solid var(--edge); }
.mm-seg::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 4); border-radius: 12px; background: rgba(255,255,255,.13); box-shadow: 0 2px 8px rgba(0,0,0,.25); transform: translateX(calc(var(--on, 0) * 100%)); transition: transform .5s var(--ease); }
.mm .mm-seg-b { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 2px 8px; border-radius: 12px; color: var(--sub); transition: color .25s ease; }
.mm .mm-seg-b:hover { color: #fff; }
.mm .mm-seg-b.on { color: #fff; }
.mm-seg-b svg { width: 18px; height: 18px; transition: transform .45s cubic-bezier(.3,1.5,.5,1); }
.mm-seg-b.on svg { transform: scale(1.12); }
.mm-seg-l { font-size: 13px; font-weight: 500; }
.mm-seg-t { font-size: 12px; color: var(--faint); min-height: 15px; white-space: nowrap; }
.mm-seg-b.on .mm-seg-t { color: rgba(255,255,255,.75); }
.mm .mm-seg-b.off { opacity: .4; }
.mm-seg-b.nope { animation: mm-nope .4s ease; }
@keyframes mm-nope { 20%, 60% { transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }
.mm-tp-sec { margin-top: 14px; padding-top: 0; border-top: 0; }
.mm-tp-sec > .mm-tp-h, .mm-tp-sec > .mm-tp-hs { display: none; }
.mm-tp-sec.is-fly > .mm-tp-h { display: block; margin-top: 18px; }

/* the place preview */
.mm-pv { position: absolute; z-index: 6; top: 8px; right: 8px; bottom: 8px; width: min(44%, 470px); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
  transform: translateX(calc(100% + 30px)); opacity: 0; pointer-events: none; transition: transform .6s var(--ease), opacity .4s ease; }
.mm[data-mode="place"] .mm-pv { transform: none; opacity: 1; pointer-events: auto; transition-delay: .06s; }
.mm.mm-fs .mm-pv { top: 10px; right: 10px; bottom: 10px; width: 450px; border-radius: 22px; }
.mm.narrow .mm-pv { width: 60%; }
.mm-pv-ph { position: relative; flex: none; height: 210px; background: rgba(255,255,255,.06); overflow: hidden; }
.mm-pv-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease), filter .5s ease; }
.mm-pv.mm-anim .mm-pv-img { animation: mm-pvimg 1.1s var(--ease) both; }
@keyframes mm-pvimg { from { transform: scale(1.08); filter: blur(6px); } to { transform: none; filter: none; } }
.mm-pv-ph::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70px; background: linear-gradient(to bottom, transparent, rgba(0,0,0,.35)); pointer-events: none; }
.mm .mm-pv-x, .mm .mm-pv-i { position: absolute; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(20,22,24,.62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; transition: background .2s ease; }
.mm .mm-pv-x { top: 12px; right: 12px; } .mm .mm-pv-i { left: 12px; bottom: 12px; }
.mm .mm-pv-x:hover, .mm .mm-pv-i:hover { background: rgba(20,22,24,.82); }
.mm-pv-x svg, .mm-pv-i svg { width: 16px; height: 16px; }
.mm .mm-pv-i[hidden] { display: none; }
.mm-pv-cred { position: absolute; z-index: 2; left: 54px; right: 12px; bottom: 12px; min-height: 34px; display: block; padding: 8px 12px; border-radius: 12px; font-size: 12px; line-height: 1.4; color: rgba(255,255,255,.9);
  background: rgba(20,22,24,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; transform: translateX(-10px) scale(.97); transform-origin: left center; pointer-events: none; transition: opacity .35s ease, transform .5s var(--ease); }
.mm-pv-cred a { color: #fff; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255,255,255,.4); }
.mm-pv-ph.cred .mm-pv-cred { opacity: 1; transform: none; pointer-events: auto; }
.mm-pv-ph.cred .mm-pv-i { background: #fff; color: #1d2022; }
.mm-pv-b { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 20px 22px 8px; }
.mm-pv-b::-webkit-scrollbar { display: none; }
.mm-pv-n { font-size: 23px; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.mm-pv-a { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; font-size: 14.5px; line-height: 1.4; color: var(--sub); }
.mm-pv-a svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.mm-pv-d { margin: 16px 0 0; font-size: 15.5px; line-height: 1.5; color: rgba(255,255,255,.86); }
.mm-pv-f { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--sep); display: grid; gap: 12px; }
.mm-pv-f li { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.35; }
.mm-pv-f li svg { flex: none; width: 32px; height: 32px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.08); }
.mm-pv.mm-anim .mm-pv-b > * { animation: mm-up .55s var(--ease) both; }
.mm-pv.mm-anim .mm-pv-b > :nth-child(2) { animation-delay: .04s; } .mm-pv.mm-anim .mm-pv-b > :nth-child(3) { animation-delay: .08s; } .mm-pv.mm-anim .mm-pv-b > :nth-child(4) { animation-delay: .12s; } .mm-pv.mm-anim .mm-pv-b > :nth-child(5) { animation-delay: .16s; }
.mm-pv.mm-anim .mm-pv-f li { animation: mm-up .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms + 180ms); }
.mm-pv-foot { flex: none; padding: 4px 16px 16px; border-top: 1px solid var(--sep); background: rgba(30,33,35,.6); }
.mm-pv-foot .mm-acts { margin-top: 12px; }
.mm-pv-foot .mm-btn1 svg { width: 16px; height: 16px; }
.mm-pv.menu-on .mm-sendmenu { display: block; animation: mm-pop .3s var(--ease) both; }
.mm.mm-cf-on .mm-pv { filter: brightness(.55); transition: filter .35s ease; }
@media (max-width: 640px) { .mm-pv { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; height: 62%; } .mm-pv-ph { height: 150px; } }

/* Send to phone: wide, QR on the left, words on the right */
.mm .mm-confirm.mm-cf-wide { width: min(680px, calc(100% - 40px)); }
.mm-cf-wide .mm-cf-phone { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; text-align: left; }
.mm-cf-wide .mm-qr { width: 260px; height: 260px; margin: 0; padding: 14px; border-radius: 24px; }
.mm-cf-wide .mm-qr.ready { padding: 16px; }
.mm-cf-wide .mm-qr-side .mm-qr-cap { margin-top: 2px; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.86); }
.mm-cf-wide .mm-cf-route { margin-top: 18px; }
.mm .mm-qr-copy { display: inline; color: #fff; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); transition: text-decoration-color .2s ease, color .2s ease; }
.mm .mm-qr-copy:hover { text-decoration-color: #fff; }
.mm .mm-qr-copy:disabled { opacity: .5; cursor: default; }
.mm .mm-qr-copy.done { color: #30c45a; text-decoration-color: transparent; }
.mm-qr-acts { padding: 0 20px 20px; margin-top: 0; justify-content: flex-end; }
.mm .mm-qr-acts .mm-btn1, .mm .mm-qr-acts .mm-btn2 { flex: 0 0 auto; min-width: 130px; }
.mm-qr-acts .mm-btn2[disabled] { opacity: .5; }
@media (max-width: 640px) { .mm-cf-wide .mm-cf-phone { grid-template-columns: 1fr; justify-items: center; } .mm-cf-wide .mm-qr { width: 220px; height: 220px; } }

/* small cards (phones): every panel is a sheet along the bottom, the map stays visible above it */
.mm.tiny .mm-panel, .mm.tiny .mm-tp, .mm.tiny .mm-pv { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; height: 60%; max-height: 60%; }
.mm.tiny .mm-pv-ph { height: 130px; }
.mm.tiny .mm-pv-b { padding: 16px 18px 6px; } .mm.tiny .mm-pv-n { font-size: 20px; } .mm.tiny .mm-pv-d { font-size: 14.5px; margin-top: 12px; }
.mm.tiny .mm-pv-foot { padding: 0 12px 12px; }
.mm.tiny .mm-pv-foot .mm-btn1, .mm.tiny .mm-pv-foot .mm-btn2 { padding: 0 14px; font-size: 14.5px; }
.mm.tiny .mm-tp-body { padding: 16px; }
.mm.tiny .mm-seg-l { font-size: 12px; } .mm.tiny .mm-seg-t { font-size: 11px; }
.mm.tiny[data-mode="route"] .mm-tip { display: none; }

/* ===== edition 11 (9 November 2026) ===== */
/* a fuller starry sky behind the globe */
.mm.mm-globe .mm-map { background-image: url('/maps/stars.svg?v=1'), url('/maps/stars-faint.svg?v=1'), radial-gradient(ellipse at 50% 120%, rgba(40,60,110,.25), transparent 60%); background-size: 600px 600px, 430px 430px, 100% 100%; background-repeat: repeat, repeat, no-repeat; animation: mm-stars 6s ease-in-out infinite alternate; }
@keyframes mm-stars { from { opacity: 1; } to { opacity: .86; } }

/* "All places" says what it does */
.mm .mm-listbtn { gap: 6px; padding: 0 18px 0 12px; }
.mm-startpill span { overflow: hidden; text-overflow: ellipsis; }
.mm .mm-startpill { min-width: 0; max-width: 100%; }
.mm-top { max-width: calc(100% - 32px); }
.mm[data-mode="place"].tiny .mm-startpill, .mm[data-mode="place"].narrow .mm-startpill { display: none; }

/* start → destination: the summary sits on one line and the dots fit the gap exactly */
.mm-tp-link { min-height: 46px; }
.mm-tp-sum { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mm-tp-line { margin: 4px 0; background-repeat: no-repeat; background-repeat: no-repeat space; background-position: center center; background-size: 12px 13px; }

/* flying: three plain steps, like Apple Maps */
.mm-fly { margin-bottom: 6px; padding-bottom: 16px; }
.mm-jt { position: relative; margin-top: 4px; }
.mm-jt::before { content: ""; position: absolute; left: 17px; top: 26px; bottom: 26px; width: 2px; border-radius: 2px; background: rgba(255,255,255,.12); }
.mm-jt-row { position: relative; display: flex; align-items: center; gap: 14px; padding: 9px 0; animation: mm-up .5s var(--ease) both; }
.mm-jt-row:nth-child(2) { animation-delay: .06s; } .mm-jt-row:nth-child(3) { animation-delay: .12s; }
.mm-jt-ic { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: #2b2e31; }
.mm-jt-ic svg { width: 18px; height: 18px; }
.mm-jt-tx { flex: 1; min-width: 0; }
.mm-jt-t { font-size: 15px; line-height: 1.3; }
.mm-jt-s { margin-top: 2px; font-size: 13px; color: var(--sub); }
.mm-jt-d { flex: none; font-size: 14.5px; color: rgba(255,255,255,.8); font-variant-numeric: tabular-nums; }
.mm-tp-sec.is-fly > .mm-tp-h { margin-top: 14px; font-size: 13px; font-weight: 500; color: var(--sub); letter-spacing: .01em; }

/* address suggestions as you type */
.mm-aform { position: relative; }
.mm-sugg { display: none; position: absolute; z-index: 20; left: -1px; right: -1px; top: calc(100% + 8px); padding: 6px; border-radius: 18px; max-height: 300px; overflow-y: auto; scrollbar-width: none; }
.mm .mm-sugg { background: rgba(30, 33, 35, .97); }
.mm-aform.mm-bar .mm-sugg { top: auto; bottom: calc(100% + 8px); }
.mm-aform.sugg-on .mm-sugg { display: block; animation: mm-pop .28s var(--ease) both; }
.mm .mm-sg { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 10px; border-radius: 12px; text-align: left; transition: background .15s ease; animation: mm-up .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
.mm .mm-sg:hover, .mm .mm-sg.hi { background: rgba(255,255,255,.08); }
.mm-sg-ic { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.mm-sg-ic svg { width: 16px; height: 16px; }
.mm-sg-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mm-sg-t { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-sg-s { margin-top: 2px; font-size: 12.5px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-sg-tag { flex: none; font-size: 11.5px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--sub); }
.mm-sg-none { padding: 12px; font-size: 13.5px; color: var(--sub); }

/* "Where in 94158?" */
.mm-cf-area .mm-cf-lead { margin-top: 0; font-size: 15px; color: rgba(255,255,255,.82); }
.mm .mm-cf-area .mm-aform.mm-cf-form { display: flex; margin-top: 16px; }
.mm-cf-area .mm-acts .mm-btn2 { flex: 1; }
.mm-cf-area .mm-note { margin-top: 12px; }
.mm-confirm:has(.mm-cf-area) { overflow: visible; }

/* the photo credit is written out in the footer */
.mm-req a { text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 2px; }
.mm-aform.sugg-on { z-index: 30; }
.mm-tp-body > .mm-aform.sugg-on { position: relative; }

/* ===== edition 12: icons stand on their own, no boxes; credits read as plain text ===== */
.mm-pv-f li svg { width: 22px; height: 22px; padding: 0; border-radius: 0; background: none; color: rgba(255,255,255,.9); stroke-width: 1.8; }
.mm-pv-f li { gap: 14px; }
.mm-jt::before { display: none; }
.mm-jt-ic { width: 26px; height: 26px; border-radius: 0; background: none; }
.mm-jt-ic svg { width: 21px; height: 21px; color: rgba(255,255,255,.9); }
.mm-sg-ic { width: 24px; height: 24px; border-radius: 0; background: none; color: var(--sub); }
.mm-sg-ic svg { width: 18px; height: 18px; }
.mm-credit a, .mm-req a { text-decoration: none; color: inherit; }

/* ===== edition 13: Send to phone is exactly as tall as the QR code, the button sits under the route ===== */
.mm-cf-wide .mm-cf-phone { align-items: stretch; padding-bottom: 20px; }
.mm-cf-wide .mm-qr-side { display: flex; flex-direction: column; min-height: 260px; }
.mm-cf-wide .mm-cf-route { margin-top: 14px; }
.mm .mm-cf-wide .mm-qr-acts { margin-top: auto; padding: 14px 0 0; justify-content: stretch; }
.mm .mm-cf-wide .mm-qr-acts .mm-btn1 { flex: 1; min-width: 0; }
.mm .mm-cf-wide .mm-qr-acts .mm-btn2 { flex: none; min-width: 0; width: 44px; padding: 0; }
@media (max-width: 640px) { .mm-cf-wide .mm-qr-side { min-height: 0; width: 100%; } }

/* ===== edition 14: shorter start → destination, buttons pinned to the bottom, no Previous / Next ===== */
.mm-tp-body .mm-tp-row { gap: 12px; }
.mm-tp-row .mm-startdot, .mm-tp-row .mm-thumb { width: 44px; height: 44px; border-radius: 12px; }
.mm-tp-row .mm-startdot::before { width: 14px; height: 14px; border-width: 2.5px; box-shadow: 0 0 0 6px rgba(59,130,246,.22); }
.mm-tp-body .mm-k { font-size: 12px; }
.mm-tp-body .mm-t { margin-top: 1px; font-size: 16px; }
.mm-tp-body .mm-tp-row .mm-sub1 { display: none; }
.mm-tp-body .mm-tp-row .mm-meta { margin-top: 1px; font-size: 13px; }
.mm-tp-link { min-height: 28px; gap: 12px; }
.mm-tp-line { width: 44px; margin: 2px 0; background-size: 12px 10px; }
.mm-tp-sum { font-size: 13.5px; }
.mm-tp-body .mm-chg { height: 34px; padding: 0 12px; font-size: 13.5px; }
.mm-tp-body .mm-seg { margin-top: 16px; }
.mm-tp-body { padding: 16px 20px 12px; }
.mm-tp-foot { position: sticky; bottom: 0; z-index: 3; padding: 12px 16px 14px; border-top: 1px solid var(--sep); background: #1f2224; }
.mm-tp-foot .mm-acts { margin-top: 0; }
.mm-tp-foot .mm-sendmenu { margin: 0 0 10px; }
.mm-tp-foot.menu-on .mm-sendmenu { display: block; animation: mm-pop .3s var(--ease) both; }
.mm-tp-nav { display: none; }
/* edition 15: the button sits just under the route instead of at the very bottom */
.mm .mm-cf-wide .mm-qr-acts { margin-top: 16px; }
.mm-cf-wide .mm-qr-side { min-height: 0; }
.mm-cf-wide .mm-cf-route { margin-top: 12px; padding: 12px 16px; }
.mm-cf-wide .mm-cf-route .mm-cf-rt { margin-bottom: 9px; }
.mm .mm-cf-wide .mm-qr-acts { margin-top: 12px; }

/* edition 16: every step's words sit level with the middle of its icon, buses and trains included */
.mm-tstep { align-items: center; } .mm-tstep .mm-step-ic { margin-top: 0; }
.mm-step-badge { min-width: 30px; height: auto; align-self: center; }

/* edition 16: places Max won't give directions to */
.mm .mm-sg.is-denied .mm-sg-t, .mm .mm-sg.is-denied .mm-sg-ic { opacity: .55; }
.mm-sg-tag.mm-sg-no { background: rgba(239,68,68,.16); color: #ffb4b4; }
.mm-cf-denied { text-align: center; }
.mm-den-ic { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: rgba(239,68,68,.14); color: #ff9b9b; animation: mm-pop .45s var(--ease) both; }
.mm-den-ic svg { width: 26px; height: 26px; }
.mm-cf-denied .mm-cf-q { font-size: 17px; line-height: 1.4; }
.mm-cf-denied .mm-acts > * { flex: 1; }
/* edition 17: dogs on public transport */
.mm-dogrule { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,.78); }
.mm-dogrule svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: rgba(255,255,255,.9); }
.mm-dogrule.no { color: #ffb4b4; } .mm-dogrule.no svg { color: #ff9b9b; }
.mm-credit, .mm-req, .mm-fs-credit { pointer-events: none; user-select: none; cursor: default; }
/* ===== edition 19: the map sits between Max's advice and the list of addresses; each address opens its place ===== */
.mm-inline { margin: 14px 0 16px; }
.mm-addr-l { color: inherit; font-weight: 600; cursor: pointer; text-decoration: none; border-radius: 4px; transition: color .15s ease; }
.mm-addr-l:hover, .mm-addr-l:focus-visible { color: #8fc3ff; outline: none; }
/* ===== edition 20: real photos of each place, playing one after another with the Health hero's dots and Pause / Resume pill ===== */
.mm-pv-ph .mm-pv-img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.1s ease, transform 1.2s var(--ease), filter .5s ease; }
.mm-pv-ph .mm-pv-img.on { opacity: 1; }
.mm-pv.mm-anim .mm-pv-img:not(.on) { animation: none; }
.mm-pv-maptag { position: absolute; z-index: 2; left: 12px; top: 12px; height: 30px; padding: 0 12px; border-radius: 15px; display: none; align-items: center; font-size: 12px; color: #fff; background: rgba(20,22,24,.62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); pointer-events: none; }
.mm-pv-ph.is-map .mm-pv-maptag { display: inline-flex; }
.mm-pc { position: absolute; z-index: 3; left: 0; right: 0; bottom: 14px; display: none; align-items: center; justify-content: center; gap: 10px; }
.mm-pv-ph.multi .mm-pc { display: flex; }
.mm-pc-pg { display: flex; align-items: center; height: 40px; padding: 0 8px; border-radius: 40px; background: rgba(28,28,30,.9); }
.mm-pc-pg button { -webkit-appearance: none; appearance: none; border: 0; background: none; margin: 0; padding: 0 6px; height: 40px; cursor: pointer; display: flex; align-items: center; font: inherit; }
.mm-pc-pg button:focus-visible { outline: 1px solid rgba(255,255,255,.7); outline-offset: -4px; border-radius: 30px; }
.mm-pc-pg .d { display: block; width: 8px; height: 8px; border-radius: 8px; background: rgba(255,255,255,.4); transition: width .45s cubic-bezier(.22,1,.36,1), background-color .3s ease; position: relative; overflow: hidden; }
.mm-pc-pg button.on .d { width: 48px; background: rgba(255,255,255,.26); }
.mm-pc-pg .d i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 8px; background: #fff; }
.mm-pc-pss { position: relative; width: 40px; height: 40px; flex: none; }
.mm-pc-ps { -webkit-appearance: none; appearance: none; border: 0; margin: 0; position: absolute; left: 0; top: 0; box-sizing: border-box; min-width: 40px; height: 40px; border-radius: 20px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: flex-start; background: rgba(28,28,30,.9); color: #fff; cursor: pointer; }
.mm-pc-ps:focus-visible { outline: 1px solid rgba(255,255,255,.7); outline-offset: 2px; }
.mm-pc-ps-i { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; flex: none; }
.mm-pc-ps-i svg { width: 16px; height: 16px; fill: #fff; display: block; }
.mm-pc-ps-t { display: inline-block; max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; margin-left: 0; font: 400 13px/1 Geist, "Helvetica Neue", Arial, sans-serif; color: #fff; transition: max-width .5s cubic-bezier(.34,1.56,.64,1), opacity .25s ease, margin-left .5s cubic-bezier(.34,1.56,.64,1); }
.mm-pc-ps:hover .mm-pc-ps-t, .mm-pc-ps:focus-visible .mm-pc-ps-t { max-width: 80px; opacity: 1; margin-left: 8px; }
@media (hover: none) { .mm-pc-ps:hover .mm-pc-ps-t { max-width: 0; opacity: 0; margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .mm-pc-pg .d, .mm-pc-ps-t, .mm-pv-ph .mm-pv-img { transition: none; } }
.mm-req-ph { white-space: normal; }
/* ===== edition 21: a soft blur while Max finds the addresses and the map draws, then the same Lens reveal as Max's photos ===== */
.mm-load { position: absolute; inset: 0; z-index: 60; border-radius: 26px; overflow: hidden; background: rgba(255,255,255,.05); pointer-events: none; transition: opacity .7s ease, filter .7s ease; }
.mm-load::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(40% 50% at 30% 40%, rgba(120,140,200,.22), transparent 70%), radial-gradient(35% 45% at 70% 60%, rgba(110,170,140,.2), transparent 70%); filter: blur(28px); animation: mm-loadmove 3.2s ease-in-out infinite alternate; }
@keyframes mm-loadmove { from { transform: translate(-4%, -3%) scale(1); } to { transform: translate(4%, 3%) scale(1.08); } }
.mm-wrap.mm-loading .mm-slot > .mm { opacity: 0; }
.mm-wrap.mm-revealed .mm-slot > .mm { animation: mm-lens 700ms cubic-bezier(.3,0,.1,1) both; }
.mm-wrap.mm-revealed .mm-load { opacity: 0; filter: blur(8px); }
@keyframes mm-lens { from { opacity: 0; transform: scale(1.04); filter: blur(5px); } 35% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mm-load::before, .mm-wrap.mm-revealed .mm-slot > .mm { animation: none; } }
/* 3D, north and zoom sit in the map's bottom-left corner, in the card as well as full screen */
.mm:not(.mm-fs) .mm-ctrls { display: flex; flex-direction: row; top: auto; left: 16px; bottom: 16px; gap: 8px; }
.mm.narrow:not(.mm-fs) .mm-ctrls, .mm.tiny:not(.mm-fs) .mm-ctrls { display: none; }
.mm-credit .mm-req { pointer-events: none; }
/* only zoom out / in side by side and 3D, and only while no place is open; no locate arrow or compass */
.mm .mm-ctrls { display: flex; flex-direction: row; align-items: center; top: auto; left: 16px; bottom: 16px; gap: 8px; }
.mm .mm-ctrls > .mm-round:not(.mm-3d) { display: none; }
.mm .mm-ctrls .mm-grp { flex-direction: row; height: 46px; width: auto; }
.mm .mm-ctrls .mm-grp button { width: 46px; height: 46px; }
.mm:not([data-mode="list"]) .mm-ctrls { display: none; }
.mm .mm-ctrls .mm-grp button + button { border-top: 0; border-left: 1px solid var(--sep); }
.mm-pv-maptag { display: none !important; }
/* edition 24: a red warning under the transit option when the trip won't work with a dog right now */
.mm-dogalert { display: flex; gap: 9px; align-items: flex-start; margin: 2px 0 10px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; color: #ffb4b4; background: rgba(255, 80, 80, .12); }
.mm-dogalert svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: #ff8080; }
/* edition 24: "dogAdvisor Max Maps" leads the map's top row; Max trots along the bottom in full screen */
.mm .mm-brandpill { height: 46px; padding: 0 18px; border-radius: 23px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; color: #fff; pointer-events: none; user-select: none; }
.mm.narrow .mm-brandpill, .mm.tiny .mm-brandpill { display: none; }
.mm-maxdog { position: absolute; z-index: 5; left: 0; bottom: 6px; display: none; pointer-events: none; background-repeat: no-repeat; will-change: transform; }
.mm.mm-fs .mm-maxdog.on { display: block; }
/* edition 25: places Max finds live. No photo: the place panel simply has none, and the list shows our own little map tile */
.mm-pv.noph .mm-pv-ph { height: 0; overflow: visible; background: none; }
.mm-pv.noph .mm-pv-ph::after, .mm-pv.noph .mm-pv-img, .mm-pv.noph .mm-pc { display: none; }
.mm-pv.noph .mm-pv-b { padding-top: 60px; }
.mm-wrap.mm-pre .mm-slot { border-radius: 26px; overflow: hidden; }
/* the top row never runs under the side panel: the start pill shortens first */
.mm:not(.mm-fs):not(.narrow):not(.tiny) .mm-top { right: calc(min(44%, 470px) + 26px); }
.mm.mm-fs .mm-top { right: 480px; }
.mm .mm-top > * { flex-shrink: 0; } .mm .mm-top > .mm-startpill { flex-shrink: 1; }
.mm .mm-startpill span { white-space: nowrap; }
/* edition 26: the name only in full screen; zoom and 3D always there; the place panel in full screen is only as tall as what's in it;
   the selected row's corners follow the panel's own corners */
.mm:not(.mm-fs) .mm-brandpill { display: none; }
.mm:not([data-mode="list"]) .mm-ctrls { display: flex; }
.mm.narrow:not(.mm-fs) .mm-ctrls, .mm.tiny:not(.mm-fs) .mm-ctrls { display: none; }
.mm .mm-row { border-radius: 12px; }
/* edition 27: addresses in Max's answer turn blue with a dashed line under them when you point at them */
.mm-addr-l { transition: color .15s ease, text-decoration-color .15s ease; text-decoration: underline dashed transparent; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.mm-addr-l:hover, .mm-addr-l:focus-visible { color: #6aa8ff; text-decoration-color: #6aa8ff; }
/* a shared map whose 30 days are up: a heavy blur of a map with one line of text on it, nothing else */
.mm-inline.mm-expired { margin: 14px 0 16px; }
.mm-exp { position: relative; width: 100%; aspect-ratio: 16 / 7; min-height: 220px; border-radius: 26px; overflow: hidden; background: #3e5f50 url('/maps/img/mapblur.jpg?v=1') center / cover no-repeat; display: grid; place-items: center; }
.mm-exp::before { content: ""; position: absolute; inset: 0; backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); background: rgba(10, 16, 14, .28); }
.mm-exp-t { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 28px; max-width: 560px; text-align: left; font-size: 15px; line-height: 1.45; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.mm-exp-t svg { width: 22px; height: 22px; flex: none; color: #ffd166; }
/* the loading blur looks like a softly blurred map */
.mm-load { background: #3e5f50 url('/maps/img/mapblur.jpg?v=1') center / cover no-repeat; }
.mm-load::before { mix-blend-mode: screen; }
/* ===== edition 28 ===== */
/* a start Max guessed (the middle of a new city) glows orange from its edge inwards and pulses, so you know to set your own */
.mm .mm-startpill.mm-sp-guess { box-shadow: inset 0 0 0 1.5px rgba(255, 149, 0, .95), inset 0 0 14px rgba(255, 149, 0, .55), 0 0 0 0 rgba(255, 149, 0, .5); animation: mm-guess 1.8s ease-in-out infinite; }
@keyframes mm-guess { 0%, 100% { box-shadow: inset 0 0 0 1.5px rgba(255, 149, 0, .95), inset 0 0 10px rgba(255, 149, 0, .35), 0 0 0 0 rgba(255, 149, 0, .45); } 50% { box-shadow: inset 0 0 0 1.5px rgba(255, 170, 40, 1), inset 0 0 20px rgba(255, 149, 0, .7), 0 0 0 7px rgba(255, 149, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .mm .mm-startpill.mm-sp-guess { animation: none; } }
/* an X on Your travel path */
.mm-tp-head { position: sticky; }
.mm .mm-tp-x { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.08); transition: background .2s ease; }
.mm .mm-tp-x:hover { background: rgba(255,255,255,.16); }
.mm-tp-x svg { width: 16px; height: 16px; }
/* far out, one location pin instead of ten numbers on top of each other */
.mm-clu { display: none; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 10px; border-radius: 18px; background: #fff; color: #1d2022; font-size: 13.5px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.35); white-space: nowrap; }
.mm-clu svg { width: 18px; height: 18px; color: #e5484d; }
.mm.mm-bunched .mm-clu { display: inline-flex; }
.mm.mm-bunched .mm-pin { opacity: 0; pointer-events: none; transition: opacity .25s ease; }
/* the directions page over the chat: 95% of the screen, rounded, opening with Max's thinking-style words */
.mm-gov { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; background: rgba(0, 0, 0, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background .45s ease, backdrop-filter .45s ease, -webkit-backdrop-filter .45s ease; }
.mm-gov.on { background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.mm-gov-card { position: relative; width: 95vw; height: 95vh; height: 95dvh; border-radius: 28px; overflow: hidden; background: #0b1410; box-shadow: 0 30px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08);
  transform: translateY(26px) scale(.94); opacity: 0; filter: blur(8px); transition: transform .6s cubic-bezier(.16,1,.3,1), opacity .4s ease, filter .5s ease; }
.mm-gov.on .mm-gov-card { transform: none; opacity: 1; filter: none; }
.mm-gov.off .mm-gov-card { transform: translateY(18px) scale(.96); opacity: 0; filter: blur(6px); transition-duration: .35s; }
.mm-gov.off { background: rgba(0,0,0,0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); }
.mm-gov-fr { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #0b1410; }
.mm-gov-load { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; transition: opacity .6s ease, filter .6s ease; }
.mm-gov-card.ready .mm-gov-load { opacity: 0; filter: blur(10px); pointer-events: none; }
.mm-gov-blur { position: absolute; inset: -40px; background: #3e5f50 url('/maps/img/mapblur.jpg?v=1') center / cover no-repeat; filter: blur(26px) saturate(1.1); animation: mm-govdrift 6s ease-in-out infinite alternate; }
@keyframes mm-govdrift { from { transform: scale(1.05) translate(-1%, -1%); } to { transform: scale(1.12) translate(1%, 1%); } }
.mm-gov-t { position: relative; font-size: 19px; font-weight: 500; letter-spacing: -.01em; color: transparent; background: linear-gradient(90deg, rgba(255,255,255,.55) 0%, #fff 40%, rgba(255,255,255,.55) 80%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; animation: mm-govshine 1.6s linear infinite; }
.mm-gov-t.in { animation: mm-govshine 1.6s linear infinite, mm-govin .45s cubic-bezier(.16,1,.3,1); }
@keyframes mm-govshine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes mm-govin { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
html.mm-gov-open, html.mm-gov-open body { overflow: hidden; }
@media (max-width: 640px) { .mm-gov-card { width: 100vw; height: 100dvh; border-radius: 0; } }
@media (prefers-reduced-motion: reduce) { .mm-gov-card, .mm-gov-blur, .mm-gov-t { transition: none; animation: none; } }
.mm-gov { inset: auto; left: 0; top: 0; }
.mm-gov-t { font-size: 24px; padding: 10px 22px; }
/* ===== edition 29 ===== */
/* the map in Max's answer: once it has appeared, being put back while Max writes never replays its entrance */
.mm-inline.mm-settled .mm-wrap, .mm-inline.mm-settled .mm-wrap.mm-shown .mm-slot > .mm, .mm-inline.mm-settled .mm-pin, .mm-inline.mm-settled .mm-row { animation: none !important; }
/* a guessed start, and the address bar while you type a new one: a rainbow that flows slowly round the inside edge, never outside it */
@property --mm-ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.mm .mm-startpill.mm-sp-guess { animation: none; box-shadow: var(--shadow); position: relative; isolation: isolate; }
.mm .mm-startpill.mm-sp-guess::before, .mm .mm-startpill.mm-sp-guess::after,
.mm .mm-aform.mm-bar::before, .mm .mm-aform.mm-bar::after, .mm .mm-tp.chg-open .mm-aform::before, .mm .mm-tp.chg-open .mm-aform::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: conic-gradient(from var(--mm-ang), #ff5f6d, #ffb347, #ffe66d, #5eead4, #60a5fa, #a78bfa, #f472b6, #ff5f6d);
  animation: mm-rainbow 4s linear infinite; }
.mm .mm-startpill.mm-sp-guess::before, .mm .mm-aform.mm-bar::before, .mm .mm-tp.chg-open .mm-aform::before { /* the thin coloured edge */
  padding: 1.5px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: .95; z-index: 1; }
.mm .mm-startpill.mm-sp-guess::after, .mm .mm-aform.mm-bar::after, .mm .mm-tp.chg-open .mm-aform::after { /* its soft glow, kept inside */
  padding: 6px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: blur(6px); opacity: .3; clip-path: inset(0 round 999px); }
.mm .mm-aform.mm-bar, .mm .mm-tp.chg-open .mm-aform { isolation: isolate; }
@keyframes mm-rainbow { to { --mm-ang: 360deg; } }
@media (prefers-reduced-motion: reduce) { .mm .mm-startpill.mm-sp-guess::before, .mm .mm-startpill.mm-sp-guess::after, .mm .mm-aform::before, .mm .mm-aform::after { animation: none; } }
/* edition 29b: the colour glow, as in the reference: a soft blurred bloom of colour rising from the bottom edge, drifting slowly,
   with only a faint coloured hairline around the edge. Everything stays inside the shape */
.mm .mm-startpill.mm-sp-guess::before, .mm .mm-aform.mm-bar::before, .mm .mm-tp.chg-open .mm-aform::before {
  padding: 1px; opacity: .45; z-index: 0; }
.mm .mm-startpill.mm-sp-guess::after, .mm .mm-aform.mm-bar::after, .mm .mm-tp.chg-open .mm-aform::after {
  padding: 0; -webkit-mask: none; mask: none; opacity: 1; z-index: -1;
  background:
    radial-gradient(20% 60% at 50% 112%, rgba(255,255,255,.8), transparent 72%),
    radial-gradient(30% 85% at 40% 116%, rgba(244,114,182,.95), transparent 72%),
    radial-gradient(28% 80% at 62% 122%, rgba(250,204,21,.55), transparent 72%),
    radial-gradient(34% 90% at 24% 120%, rgba(96,165,250,.9), transparent 72%),
    radial-gradient(30% 85% at 78% 125%, rgba(167,139,250,.6), transparent 72%),
    radial-gradient(26% 80% at 10% 128%, rgba(94,234,212,.45), transparent 72%);
  background-size: 170% 100%; background-repeat: no-repeat;
  filter: blur(8px) saturate(1.3); clip-path: inset(0 round 999px);
  animation: mm-bloom 7s ease-in-out infinite alternate; }
@keyframes mm-bloom { 0% { background-position: 0% 0, 10% 0, 20% 0, 0% 0, 30% 0, 5% 0; } 50% { background-position: 60% 0, 45% 0, 70% 0, 35% 0, 80% 0, 50% 0; } 100% { background-position: 100% 0, 85% 0, 40% 0, 90% 0, 55% 0, 100% 0; } }
@media (prefers-reduced-motion: reduce) { .mm .mm-startpill.mm-sp-guess::after, .mm .mm-aform::after { animation: none; } }
/* edition 30: "Loading map…" on the soft blur while the map loads */
.mm-load { display: grid; place-items: center; }
.mm-load-t { position: relative; z-index: 1; font-size: 17px; font-weight: 500; letter-spacing: -.01em; color: transparent; background: linear-gradient(90deg, rgba(255,255,255,.55) 0%, #fff 40%, rgba(255,255,255,.55) 80%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; animation: mm-govshine 1.6s linear infinite; }
@media (prefers-reduced-motion: reduce) { .mm-load-t { animation: none; color: #fff; } }
/* edition 31: the number sits inside the photo's top-left corner, and the list sits closer to the panel's right edge */
.mm-num { left: 6px; top: 6px; min-width: 22px; height: 22px; padding: 0 6px; font-size: 12px; background: rgba(20, 22, 24, .78); border-color: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.mm-list { padding: 10px 6px 10px 10px; }
.mm .mm-row { padding: 14px 10px 14px 14px; }
.mm-row + .mm-row::before { right: 10px; }
/* edition 32: the list shows straight away; only the map area waits, behind a heavy blur */
.mm-wrap.mm-loading .mm-slot > .mm { opacity: 1; }
.mm-wrap.mm-revealed .mm-slot > .mm { animation: none; }
.mm > .mm-load { z-index: 2; border-radius: 0; inset: 0; transition: opacity .8s ease, filter .8s ease; background: #3f5f52; isolation: isolate; }
.mm-load::after { content: ""; position: absolute; inset: -60px; z-index: -1; background: #3e5f50 url('/maps/img/mapblur.jpg?v=1') center / cover no-repeat; filter: blur(34px) saturate(1.05); }
.mm-load::before { z-index: 0; }
.mm-wrap.mm-revealed .mm > .mm-load { opacity: 0; filter: blur(12px); }
.mm.mm-fs > .mm-load { border-radius: 0; }
/* "Loading map…" sits in the middle of the map area, not under the list; skeleton rows while the places are found */
.mm:not(.narrow):not(.tiny) > .mm-load { padding-right: calc(min(44%, 470px) + 16px); box-sizing: border-box; }
.mm-pre .mm-load { padding-right: calc(min(44%, 470px) + 16px); box-sizing: border-box; }
.mm-skel { position: absolute; z-index: 61; top: 8px; right: 8px; bottom: 8px; width: min(44%, 470px); border-radius: 18px; padding: 16px 12px; box-sizing: border-box; background: rgba(31,34,36,.92); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 22px; overflow: hidden; }
.mm-skel-r { display: flex; align-items: center; gap: 18px; }
.mm-skel-i { flex: none; width: 84px; height: 84px; border-radius: 14px; }
.mm-skel-t { flex: 1; display: grid; gap: 10px; }
.mm-skel-t i { display: block; height: 12px; border-radius: 6px; } .mm-skel-t i.a { width: 55%; height: 16px; } .mm-skel-t i.b { width: 35%; } .mm-skel-t i.c { width: 85%; }
.mm-skel-i, .mm-skel-t i { background: linear-gradient(90deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.13) 40%, rgba(255,255,255,.06) 80%); background-size: 200% 100%; animation: mm-govshine 1.4s linear infinite; }
@media (max-width: 640px) { .mm-skel { display: none; } .mm-pre .mm-load { padding-right: 0; } }
@media (prefers-reduced-motion: reduce) { .mm-skel-i, .mm-skel-t i { animation: none; } }
/* edition 33: while the map loads, its whole area is a plain grey skeleton with a soft shimmer: no blur, no words */
.mm-load, .mm > .mm-load, .mm-pre .mm-load { background: #2a2d30; }
.mm-load::after { background: linear-gradient(100deg, rgba(255,255,255,0) 20%, rgba(255,255,255,.07) 45%, rgba(255,255,255,0) 70%); background-size: 220% 100%; filter: none; inset: 0; animation: mm-skelsweep 1.6s linear infinite; }
.mm-load::before { display: none; }
.mm-load-t { display: none; }
@keyframes mm-skelsweep { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.mm-skel { background: #232629; border-color: rgba(255,255,255,.06); }
@media (prefers-reduced-motion: reduce) { .mm-load::after { animation: none; } }
/* edition 34: while the map loads, everything in the card is a grey skeleton too: the buttons, the place names, ratings, descriptions,
   photos and the credit line. They all appear together with the map. A photo still on its way stays a grey shimmer until it arrives */
.mm-wrap.mm-loading .mm-top, .mm-wrap.mm-loading .mm-ctrls, .mm-wrap.mm-loading .mm-panel, .mm-wrap.mm-loading .mm-credit { pointer-events: none; }
.mm-wrap.mm-loading .mm-top .mm-surf, .mm-wrap.mm-loading .mm-ctrls .mm-grp, .mm-wrap.mm-loading .mm-ctrls .mm-3d,
.mm-wrap.mm-loading .mm-name, .mm-wrap.mm-loading .mm-meta, .mm-wrap.mm-loading .mm-desc,
.mm-wrap.mm-loading .mm-credit .mm-brand, .mm-wrap.mm-loading .mm-credit .mm-req,
.mm-thumbw.mm-wait, .mm-wrap.mm-loading .mm-thumbw, .mm-pv-ph.mm-wait {
  background: linear-gradient(90deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.14) 40%, rgba(255,255,255,.07) 80%) #2a2d30 !important;
  background-size: 200% 100% !important; animation: mm-govshine 1.4s linear infinite; color: transparent !important;
  border-color: transparent !important; box-shadow: none !important; text-shadow: none !important;
}
.mm-wrap.mm-loading .mm-top .mm-surf *, .mm-wrap.mm-loading .mm-ctrls .mm-grp *, .mm-wrap.mm-loading .mm-ctrls .mm-3d *,
.mm-wrap.mm-loading .mm-meta *, .mm-wrap.mm-loading .mm-credit *, .mm-wrap.mm-loading .mm-thumbw > *,
.mm-thumbw.mm-wait > img, .mm-pv-ph.mm-wait .mm-pv-img { visibility: hidden; }
.mm-thumbw.mm-wait, .mm-wrap.mm-loading .mm-thumbw { border-radius: 14px; }
.mm-wrap.mm-loading .mm-name, .mm-wrap.mm-loading .mm-meta { width: fit-content; max-width: 100%; border-radius: 6px; }
.mm-wrap.mm-loading .mm-name { min-width: 46%; }
.mm-wrap.mm-loading .mm-desc { border-radius: 6px; -webkit-mask: repeating-linear-gradient(to bottom, #000 0 1em, transparent 1em 1.4em); mask: repeating-linear-gradient(to bottom, #000 0 1em, transparent 1em 1.4em); }
.mm-wrap.mm-loading .mm-credit { opacity: 1; }
.mm-wrap.mm-loading .mm-credit .mm-brand, .mm-wrap.mm-loading .mm-credit .mm-req { border-radius: 5px; background-color: #1e2124 !important; }
.mm-wrap.mm-loading .mm-ctrls .mm-grp button + button { border-left-color: transparent; }
/* the real card fades in over its skeleton */
.mm-wrap.mm-revealed .mm-top, .mm-wrap.mm-revealed .mm-ctrls, .mm-wrap.mm-revealed .mm-rtxt, .mm-wrap.mm-revealed .mm-credit { animation: mm-skin .5s ease both; }
.mm-thumbw > img { transition: transform .45s var(--ease), opacity .4s ease; }
@keyframes mm-skin { from { opacity: .35; } to { opacity: 1; } }
.mm-wrap.mm-revealed .mm-credit { animation-name: mm-skin-c; } @keyframes mm-skin-c { from { opacity: .15; } to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .mm-wrap.mm-loading *, .mm-thumbw.mm-wait, .mm-pv-ph.mm-wait { animation: none !important; } }

/* 10 November 2026: the expired map. A "Your map expired" tag with a white triangle, and white explanation text underneath, centred over the blurred map */
.mm-exp-t { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
.mm-exp-tag { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 11px; border-radius: 999px; background: rgba(0, 0, 0, .38); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.2; text-shadow: none; }
.mm-exp-t .mm-exp-tag svg { width: 15px; height: 15px; flex: none; color: #fff; }
.mm-exp-s { max-width: 460px; color: #fff; font-size: 14.5px; line-height: 1.45; }

/* 10 November 2026: the Change location and address forms keep only their soft bottom gradient, with no gradient around the border */
.mm .mm-aform.mm-bar::before, .mm .mm-tp.chg-open .mm-aform::before { display: none !important; animation: none !important; }

/* 10 November 2026: the travel panel's one button fills the row */
.mm .mm-acts .mm-gobtn { flex: 1 1 auto; justify-content: center; }

/* 10 November 2026: the map in an answer is drawn at double size and shrunk to fit, so it shows full buildings like the navigation view.
   Markers are doubled back to their normal size. Full screen and phones are unchanged */
@media (min-width: 700px) {
  .mm:not(.mm-fs) > .mm-map { inset: 0 auto auto 0; width: 200%; height: 200%; transform: scale(.5); transform-origin: 0 0; }
  .mm:not(.mm-fs) > .mm-map .mm-mk > * { zoom: 2; }
  .mm:not(.mm-fs) > .mm-map .mm-mk > .mm-tip { margin-bottom: 11px; }
}

/* 10 November 2026: the travel panel's one white button says "Learn more and see directions", or "Learn more" on phones */
.mm .mm-gobtn .mm-go-s { display: none; }
@media (max-width: 640px) { .mm .mm-gobtn .mm-go-l { display: none; } .mm .mm-gobtn .mm-go-s { display: inline; } }

/* 10 November 2026: the place card's one white button fills the row and uses the short wording on phones */
.mm .mm-acts .mm-pvgo { flex: 1 1 auto; justify-content: center; }
.mm .mm-pvgo .mm-go-s { display: none; }
@media (max-width: 640px) { .mm .mm-pvgo .mm-go-l { display: none; } .mm .mm-pvgo .mm-go-s { display: inline; } }

/* 10 November 2026: on phones nothing floats over an open place card or travel path */
.mm .mm-zc, .mm .mm-maxdog { transition: opacity .25s ease; }
@media (max-width: 640px) {
  .mm.mm-busy .mm-zc, .mm.mm-busy .mm-maxdog, .mm-busy > .mm-maxdog { opacity: 0 !important; pointer-events: none !important; }
  .mm .mm-panel, .mm .mm-tp, .mm .mm-pv { z-index: 30; }
}

/* 11 November 2026: the photo and OpenStreetMap credits on the right are at 30% opacity; dogAdvisor Max Maps on the left is unchanged */
.mm-credit .mm-req { opacity: .3; }
.mm-wrap.mm-loading .mm-credit .mm-req { opacity: 1; }

/* 11 November 2026: the Rotate button lights up like 3D while it is on */
.mm-round.mm-rot.on { background: #fff !important; color: #1d2022 !important; }
/* 11 November 2026: on phones and tablets an up or down swipe over a map in the chat scrolls the chat (maxmap.js decides when a touch
   means the map instead); in full screen the map takes every touch as before */
.mm:not(.mm-fs) .maplibregl-canvas-container.maplibregl-touch-drag-pan, .mm:not(.mm-fs) .maplibregl-canvas-container.maplibregl-touch-zoom-rotate, .mm:not(.mm-fs) .maplibregl-canvas { touch-action: pan-y !important; }
.mm:not(.mm-fs) .mm-map.mm-tpan .maplibregl-canvas-container, .mm:not(.mm-fs) .mm-map.mm-tpan .maplibregl-canvas { touch-action: none !important; }
/* 11 November 2026: Rotate map sits right of 3D on the map in the chat too; pointing at 3D or Rotate grows the button into a pill
   with its name, the same as on the large map */
.mm .mm-ctrls > .mm-round.mm-rot { display: inline-flex; }
.mm .mm-ctrls .mm-round.mm-has-lab { width: auto; min-width: 46px; padding: 0 12.5px; border-radius: 23px; display: inline-flex; align-items: center; justify-content: center; }
.mm .mm-ctrls .mm-round.mm-has-lab svg { flex: none; width: 19px; height: 19px; }
.mm-lab { display: inline-block; max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; margin-left: 0; font-size: 14px; font-weight: 500; color: inherit;
  transition: max-width .5s cubic-bezier(.34,1.56,.64,1), opacity .25s ease, margin-left .5s cubic-bezier(.34,1.56,.64,1); }
.mm-has-lab:hover .mm-lab, .mm-has-lab:focus-visible .mm-lab { max-width: 180px; opacity: 1; margin-left: 9px; }
.mm .mm-ctrls .mm-3d.mm-has-lab:hover::after, .mm .mm-ctrls .mm-3d.mm-has-lab:focus-visible::after { content: " buildings"; white-space: pre; font-weight: 500; }
@media (hover: none) { .mm-has-lab:hover .mm-lab { max-width: 0; opacity: 0; margin-left: 0; } .mm .mm-ctrls .mm-3d.mm-has-lab:hover::after { content: none; } }
@media (prefers-reduced-motion: reduce) { .mm-lab { transition: none; } }

/* Edition 37 (18 November 2026): while Max is still writing the addresses, the map waits in a grey, softly flashing loading state over the
   rough area of the city; the moment the last address is written it fades to colour. Afterwards (mm-calm) no entrance animation ever replays
   when the chat redraws Max's message, which was the flash. A tapped pin still bounces */
/* the grey goes on the map's frame, not the map itself: the map's own fade-in animates its filter and would win */
.mm-inline .mm-slot { transition: filter .6s ease; }
.mm-inline.mm-wait .mm-slot { filter: grayscale(1) brightness(.5) !important; pointer-events: none; }
.mm-inline.mm-wait .mm-slot::after { content: ""; position: absolute; inset: 0; z-index: 60; border-radius: inherit; pointer-events: none; background: rgba(150, 150, 150, .22); animation: mm-waitpulse 1.1s ease-in-out infinite; }
@keyframes mm-waitpulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.mm-inline.mm-calm .mm-wrap, .mm-inline.mm-calm .mm-wrap.mm-revealed .mm-slot > .mm, .mm-inline.mm-calm .mm-pin:not(.on), .mm-inline.mm-calm .mm-row,
.mm-inline.mm-calm .mm-wrap.mm-revealed .mm-top, .mm-inline.mm-calm .mm-wrap.mm-revealed .mm-ctrls, .mm-inline.mm-calm .mm-wrap.mm-revealed .mm-rtxt, .mm-inline.mm-calm .mm-wrap.mm-revealed .mm-credit { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .mm-inline.mm-wait .mm-slot::after { animation: none; opacity: .6; } }

/* Max Maps edition 38 (18 November 2026): photos, the look at a place, and the loading state.
   Photos: the small copy of a photo sits behind the full one, softly out of focus, so the frame is never empty; the full photo
   fades in over it in a third of a second (the fade used to take over a second, and an unloaded photo showed as an empty box). */
.mm-pv-ph::before { content: ""; position: absolute; inset: -18px; background-image: var(--mm-lq, none); background-size: cover; background-position: var(--mm-lqp, 50% 50%); background-repeat: no-repeat; -webkit-filter: blur(14px) saturate(1.08); filter: blur(14px) saturate(1.08); pointer-events: none; }
.mm-pv-ph .mm-pv-img { transition: opacity .34s ease, transform .6s var(--ease), filter .3s ease; }
.mm-pv-ph .mm-pv-img.mm-f0, .mm-pv-ph .mm-pv-img.on.mm-f0 { opacity: 0; transition: none; }
.mm-pv.mm-anim .mm-pv-img { animation: mm-pvimg38 .5s var(--ease) both; }
@keyframes mm-pvimg38 { from { transform: scale(1.045); } to { transform: none; } }
/* the place card arrives sooner and its lines follow closer together */
.mm-pv { transition: transform .36s var(--ease), opacity .2s ease; }
.mm[data-mode="place"] .mm-pv { transition-delay: 0s; }
.mm-pv.mm-anim .mm-pv-b > * { animation-duration: .32s; }
.mm-pv.mm-anim .mm-pv-b > :nth-child(2) { animation-delay: .02s; } .mm-pv.mm-anim .mm-pv-b > :nth-child(3) { animation-delay: .04s; } .mm-pv.mm-anim .mm-pv-b > :nth-child(4) { animation-delay: .06s; } .mm-pv.mm-anim .mm-pv-b > :nth-child(5) { animation-delay: .08s; }
.mm-pv.mm-anim .mm-pv-f li { animation-duration: .3s; animation-delay: calc(var(--i, 0) * 26ms + 80ms); }
.mm-tp.mm-anim .mm-st { animation-duration: .36s; animation-delay: calc(var(--i) * 30ms + 40ms); }
/* the chosen pin: a quicker lift, then one soft ring that opens out and fades */
.mm-pin.on { position: relative; animation: mm-pinbounce .32s var(--ease); }
.mm-pin.on::after { content: ""; position: absolute; inset: -2px; border-radius: 999px; border: 2px solid rgba(255,255,255,.75); pointer-events: none; animation: mm-pinring .62s cubic-bezier(.2,.7,.2,1) both; }
@keyframes mm-pinring { from { opacity: .9; transform: scale(.92); } to { opacity: 0; transform: scale(1.75); } }
/* a photo in the list eases in instead of popping */
.mm-thumbw .mm-thumb { transition: opacity .25s ease, transform .45s var(--ease); }
.mm-thumbw.mm-wait .mm-thumb { opacity: 0; }
/* the loading state: instead of a grey block blinking, one band of light glides across the dimmed map, and the colour comes back in a third of a second */
.mm-inline .mm-slot { transition: filter .34s ease; }
.mm-inline.mm-wait .mm-slot::after { opacity: 1; background: linear-gradient(105deg, rgba(255,255,255,0) 32%, rgba(255,255,255,.42) 50%, rgba(255,255,255,0) 68%) no-repeat, rgba(140,140,140,.14); background-size: 60% 100%, auto; animation: mm-waitsweep 1.05s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes mm-waitsweep { from { background-position: -80% 0, 0 0; } to { background-position: 240% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .mm-pin.on::after, .mm-inline.mm-wait .mm-slot::after { animation: none; } .mm-pv.mm-anim .mm-pv-img { animation: none; } }
