/* Draggable map sheet (phones only) */
.sheet-swipe{display:none}
@media (max-width:899px){
  html body .map-home .bottom-sheet.ms[data-snap]{height:var(--ms-h,42%)!important;max-height:none!important;overflow:hidden!important;transition:none!important}
  html body .map-home .bottom-sheet.ms.ms-anim[data-snap]{transition:height .28s cubic-bezier(.2,.8,.2,1)!important}
  html body .map-home .bottom-sheet.ms .sheet-handle,html body .map-home .bottom-sheet.ms .sheet-head{touch-action:none;user-select:none;-webkit-user-select:none}
  html body .map-home .bottom-sheet.ms .sheet-handle{display:flex!important;flex-direction:column;align-items:center;gap:4px;padding:6px 0 2px!important;cursor:grab}
  html body .map-home .bottom-sheet.ms .sheet-handle i{display:block}
  .bottom-sheet.ms .sheet-swipe{display:inline-flex;align-items:center;gap:6px;min-height:32px;min-width:120px;justify-content:center;padding:4px 14px;border-radius:999px;font:800 13px/1 Inter,system-ui,sans-serif;letter-spacing:.02em;cursor:pointer;border:2px solid currentColor}
  .bottom-sheet.ms .sheet-swipe svg{transition:transform .25s}
  .bottom-sheet.ms .sheet-swipe.down svg{transform:rotate(180deg)}
  html body[data-mode="day"] .bottom-sheet.ms .sheet-swipe,html body:not([data-mode]) .bottom-sheet.ms .sheet-swipe{background:#111827!important;color:#fff!important;border-color:#111827!important}
  html body[data-mode="night"] .bottom-sheet.ms .sheet-swipe{background:#F9FAFB!important;color:#0B0B0B!important;border-color:#F9FAFB!important}
  .bottom-sheet.ms .sheet-swipe:focus-visible{outline:3px solid #3B82F6;outline-offset:2px}
  html body .map-home .bottom-sheet.ms[data-snap="collapsed"] .sheet-osm,html body .map-home .bottom-sheet.ms[data-snap="collapsed"] .sheet-feeline{display:none!important}
  html body .map-home .bottom-sheet.ms[data-snap="full"] .sheet-list{flex:1 1 auto;min-height:0;overflow-y:auto}
}
@media (prefers-reduced-motion:reduce){
  html body .map-home .bottom-sheet.ms.ms-anim[data-snap]{transition:none!important}
  .bottom-sheet.ms .sheet-swipe svg{transition:none}
}
@media (max-width:899px){html body .map-home:has(.bottom-sheet.ms[data-snap="full"]) .locate-btn{opacity:0!important;pointer-events:none!important}}

.bottom-sheet.ms .sheet-swipe svg{display:none!important}.bottom-sheet.ms .sheet-swipe span{white-space:nowrap}

/* uszoom v4: pin card close × stays above the install banner on phones */
body.pin-card-open .pin-card-slot.show { z-index: 1250 !important; }

/* uszoom v5: no red/pink (or any) halos on map pins. Only the selected pin gets a thin, faint, muted outline. */
html body[data-mode] .leaflet-marker-icon.yh-house,
html body[data-mode] .yh-house.pin-b,
html body[data-mode] .yh-house.pin-b.active,
html body[data-mode] .yh-house.active,
html body .yh-pin.boosted .fx-pin,
html body .yh-pin .fx-pin { filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)) !important; box-shadow: none !important; }
html body[data-mode] .yh-house.pin-b { animation: pinRise 0.5s ease-out both !important; }
html body .yh-pin.active .fx-pin { filter: drop-shadow(0 0 1px rgba(148,163,184,.75)) drop-shadow(0 2px 3px rgba(0,0,0,.45)) !important; }

/* uszoom v5: category legend dots in the type chips (match the U-Pin colours) */
.kind-chips button[data-kind]:not([data-kind=""])::before{content:"";display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:5px;vertical-align:middle;background:var(--kd)}



/* uszoom v6: legend dots match the icon U-Pins */
.kind-chips button[data-kind="garage"]{--kd:#8B1E1E}.kind-chips button[data-kind="shop"]{--kd:#0F5F63}.kind-chips button[data-kind="truck"]{--kd:#B4501A}.kind-chips button[data-kind="business"]{--kd:#1F5E3A}.kind-chips button[data-kind="estate"]{--kd:#5B21B6}.kind-chips button[data-kind="moving"]{--kd:#1D4ED8}.kind-chips button[data-kind="church"]{--kd:#475569}.kind-chips button[data-kind="flea"]{--kd:#A16207}.kind-chips button[data-kind="neighborhood"]{--kd:#78350F}.kind-chips button[data-kind="popup"]{--kd:#4D7C0F}
/* golive-uszoom: muted type label (no bright red) */
html body .kind-tag{background:rgba(51,65,85,.10);color:#334155}
html body[data-mode="night"] .kind-tag{background:rgba(148,163,184,.18);color:#CBD5E1}

/* mapsheet2 (2026-10-29): compact one-row type capsules so the sheet shows a preview list; list clears the bottom nav */
@media (max-width:899px){
  html body:not(#_r):not(#_s):not(#_t) .map-home #bottomSheet .sheet-kinds .kind-chips{flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;gap:6px!important;row-gap:0!important;padding:2px 2px 6px!important;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
  html body:not(#_r):not(#_s):not(#_t) .map-home #bottomSheet .sheet-kinds .kind-chips button{flex:0 0 auto!important;min-height:32px!important;height:32px!important;padding:0 11px!important;font-size:12.5px!important;line-height:1!important;white-space:nowrap!important}
  html body:not(#_r):not(#_s):not(#_t) .map-home #bottomSheet .sheet-kinds .kind-chips button svg{width:13px!important;height:13px!important}
  html body:not(#_r):not(#_s):not(#_t) .map-home #bottomSheet.bottom-sheet.ms[data-snap]{display:flex!important;flex-direction:column!important;overflow:hidden!important;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))!important}
  html body:not(#_r):not(#_s):not(#_t) .map-home #bottomSheet.ms[data-snap] > *{flex-shrink:0}
  html body:not(#_r):not(#_s):not(#_t) .map-home #bottomSheet.ms[data-snap] .sheet-list{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain}
  html body .map-home #bottomSheet .sheet-card{min-height:82px;flex-shrink:0}
  html body .map-home #bottomSheet .sheet-card img{align-self:center}
  html body .map-home .bottom-sheet.ms .sheet-list-link{display:inline-flex;align-items:center;min-height:32px}
}

/* v256: capsule row arrows (phones) */
.kc-arrow{display:none}
@media (max-width:899px){
  html body .map-home #bottomSheet .sheet-kinds.kc-wrap{position:relative}
  html body .map-home #bottomSheet .kc-arrow:not([hidden]){display:inline-flex;position:absolute;top:0;bottom:6px;z-index:30;align-items:center;width:44px;padding:0;border:0;background:none;cursor:pointer}
  html body .map-home #bottomSheet .kc-l{left:0;justify-content:flex-start}
  html body .map-home #bottomSheet .kc-r{right:0;justify-content:flex-end}
  html body .map-home #bottomSheet .kc-arrow svg{box-sizing:content-box;width:16px;height:16px;padding:6px;border-radius:999px;border:2px solid currentColor}
  html body[data-mode="night"] .map-home #bottomSheet .kc-arrow{color:#F9FAFB}
  html body[data-mode="night"] .map-home #bottomSheet .kc-arrow svg{background:#22262C;box-shadow:0 0 8px rgba(217,221,227,.35)}
  html body[data-mode="night"] .map-home #bottomSheet .kc-l{background:linear-gradient(90deg,#0c1016 45%,rgba(12,16,22,0))}
  html body[data-mode="night"] .map-home #bottomSheet .kc-r{background:linear-gradient(270deg,#0c1016 45%,rgba(12,16,22,0))}
  html body:not([data-mode="night"]) .map-home #bottomSheet .kc-arrow{color:#111827}
  html body:not([data-mode="night"]) .map-home #bottomSheet .kc-arrow svg{background:#fff;box-shadow:0 0 5px rgba(120,128,138,.35)}
  html body:not([data-mode="night"]) .map-home #bottomSheet .kc-l{background:linear-gradient(90deg,#F5F0E8 45%,rgba(245,240,232,0))}
  html body:not([data-mode="night"]) .map-home #bottomSheet .kc-r{background:linear-gradient(270deg,#F5F0E8 45%,rgba(245,240,232,0))}
  html body .map-home #bottomSheet .kc-arrow:focus-visible svg{outline:3px solid #3B82F6;outline-offset:2px}
}
@media (max-width:899px){html body:not(#_r):not(#_s):not(#_t) .map-home #bottomSheet .sheet-kinds.kc-wrap .kind-chips{position:relative;z-index:1}}

/* v257: Profile "My stats" pill centered and larger (owners only) */
html body .profile-stats-row{display:flex!important;justify-content:center!important;margin:4px 16px 18px!important}
html body .profile-stats-row .profile-stats-pill{justify-content:center!important;width:65%!important;max-width:320px!important;min-height:48px!important;padding:12px 22px!important;font-size:17px!important;font-weight:700!important;border-radius:999px!important;box-sizing:border-box!important}

/* v258 WEB C2: 44px arrow hit area (invisible), real touch swipe on capsule row */
html body .map-home #bottomSheet .kc-arrow::after{content:"";position:absolute;left:0;right:0;top:50%;height:44px;transform:translateY(-50%)}
html body .map-home #bottomSheet #mapKinds{overflow-x:auto!important;touch-action:pan-x!important;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}

/* v259 listtidy: List tab type pills = one 32px scrolling row with arrows (same as map sheet) */
.list-kinds{position:relative}
@media (max-width:899px){
  html body:not(#_r):not(#_s):not(#_t) .list-kinds .kind-chips{flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;gap:6px!important;row-gap:0!important;padding:2px 2px 6px!important;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;touch-action:pan-x!important;position:relative;z-index:1}
  html body:not(#_r):not(#_s):not(#_t) .list-kinds .kind-chips::-webkit-scrollbar{display:none}
  html body:not(#_r):not(#_s):not(#_t) .list-kinds .kind-chips button{flex:0 0 auto!important;min-height:32px!important;height:32px!important;padding:0 11px!important;font-size:12.5px!important;line-height:1!important;white-space:nowrap!important}
  html body:not(#_r):not(#_s):not(#_t) .list-kinds .kind-chips button svg{width:13px!important;height:13px!important}
  html body .list-kinds .kc-arrow:not([hidden]){display:inline-flex;position:absolute;top:0;bottom:6px;z-index:30;align-items:center;width:44px;padding:0;border:0;background:none;cursor:pointer}
  html body .list-kinds .kc-arrow::after{content:"";position:absolute;left:0;right:0;top:50%;height:44px;transform:translateY(-50%)}
  html body .list-kinds .kc-l{left:0;justify-content:flex-start;background:linear-gradient(90deg,var(--bg) 45%,transparent)}
  html body .list-kinds .kc-r{right:0;justify-content:flex-end;background:linear-gradient(270deg,var(--bg) 45%,transparent)}
  html body .list-kinds .kc-arrow svg{box-sizing:content-box;width:16px;height:16px;padding:6px;border-radius:999px;border:2px solid currentColor}
  html body[data-mode="night"] .list-kinds .kc-arrow{color:#F9FAFB}
  html body[data-mode="night"] .list-kinds .kc-arrow svg{background:#22262C;box-shadow:0 0 8px rgba(217,221,227,.35)}
  html body:not([data-mode="night"]) .list-kinds .kc-arrow{color:#111827}
  html body:not([data-mode="night"]) .list-kinds .kc-arrow svg{background:#fff;box-shadow:0 0 5px rgba(120,128,138,.35)}
  html body .list-kinds .kc-arrow:focus-visible svg{outline:3px solid #3B82F6;outline-offset:2px}
}
/* v259 listtidy: night empty-state card dark */
html body[data-mode="night"]:not(#_r):not(#_s) .empty-state{background:#161A20!important;border:1px solid rgba(255,255,255,.14)!important;color:#F3F4F6!important;box-shadow:none!important;border-radius:16px}
html body[data-mode="night"]:not(#_r):not(#_s) .empty-state h2{color:#F3F4F6!important}
html body[data-mode="night"]:not(#_r):not(#_s) .empty-state p{color:#9CA3AF!important}
.kind-chips button[data-kind="benefit"]{--kd:#0369A1} /* v275n benefit U-pin legend dot */
html body .benefit-badge{background:#0369A1!important;color:#fff!important;width:max-content!important;max-width:max-content!important;flex:0 0 auto!important;align-self:flex-start;padding:2px 8px;border-radius:999px;font-weight:700}

.kind-chips button[data-kind="festival"]{--kd:#1E3A8A} /* multipill festival pin */
.kind-chips button[data-kind="military"]{--kd:#0F766E} /* realpins military & veteran pin */
.pill-zip{display:inline-flex;align-items:center;gap:4px;margin-left:6px}.pill-zip input{width:84px;font:inherit;font-size:13px;padding:2px 6px;border-radius:8px;border:1px solid #9CA3AF;background:transparent;color:inherit}.pill-zip button{font:inherit;font-size:12px;border:0;background:none;color:inherit;text-decoration:underline;cursor:pointer}.pill-zip-msg{display:block;font-size:12px;color:#B45309}html body[data-mode="night"] .pill-zip-msg{color:#FCD34D}
/* realpins list/sheet/pin cards: U-pin thumb instead of a photo */
.rp-thumb{flex:0 0 72px;width:72px;height:72px;display:grid;place-items:center;border-radius:14px;background:rgba(30,58,138,.08)}
html[data-mode=night] .rp-thumb,body.night .rp-thumb,.night .rp-thumb{background:rgba(255,255,255,.08)}
.rp-thumb svg{width:52px;height:52px}
.rp-card .rp-info{display:block;margin-top:2px}
.pin-card-cover.rp-cover{display:grid;place-items:center;min-height:110px}
.rp-detail{display:flex;align-items:center;gap:12px}

.b4u-backbar{display:inline-flex;align-items:center;min-height:44px;margin:10px 16px 4px;padding:0 16px;border:1px solid var(--line,#8884);border-radius:99px;color:inherit;font-weight:700;font-size:15px;text-decoration:none;position:relative;z-index:5}
.screen > .b4u-backbar:first-child{margin-top:84px;margin-left:0;z-index:30}
.b4u-backbar,.b4u-backbar:visited,.b4u-backbar:hover{color:var(--ink,inherit)!important;text-decoration:none!important}
.legal > .b4u-backbar:first-child{margin-left:0}

/* qa3: night pin card cover dark; overlap chooser */
html body[data-mode="night"] .pin-card-cover,html body[data-mode="night"] .pin-card-cover.rp-cover{background:#161A20!important}
.pin-chooser .pin-card-body{display:flex;flex-direction:column;gap:8px;padding-top:14px}
.pin-choice{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;text-align:left;padding:8px 10px;border-radius:12px;border:1px solid var(--line,#8884);background:transparent;color:inherit;font:inherit;cursor:pointer}
.pin-choice b{display:block}.pin-choice small{display:block;opacity:.75;font-size:12px}
.pin-choice-u svg{width:30px;height:30px;display:block}
/* v276y: ZIP box on the same row, right of the radius button */
html body #pillChip{display:inline-flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;width:auto!important;max-width:100%;gap:6px;vertical-align:middle}
html body #pillChip .pill-mi{flex:none}
html body #pillChip .pill-zip{flex:0 1 auto;margin-left:0!important;flex-wrap:wrap;min-width:0}
html body #pillChip .pill-zip-msg:empty{display:none}
html body #pillChip .pill-zip-msg{flex-basis:100%}
html body #pillChip .pill-zip input{width:104px}
/* v277b: sheet content scrolls vertically on touch; handle/head stay drag zones */
html body .map-home #bottomSheet .sheet-handle{touch-action:none!important}
html body:not(#_r):not(#_s):not(#_t) .map-home #bottomSheet .ms-scroll{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;touch-action:pan-y!important;overscroll-behavior:contain}
html body:not(#_r):not(#_s):not(#_t) .map-home #bottomSheet.ms[data-snap] .ms-scroll .sheet-list{flex:none!important;overflow:visible!important;max-height:none!important;height:auto!important;min-height:0!important}
html body .map-home #bottomSheet .ms-scroll .cs-row{touch-action:pan-x pan-y!important}
html body .map-home #bottomSheet .cs-wrap.cs-compact{margin:12px 0 8px}
/* v277c: compact Coming Soon cards inside the sheet (modal keeps full size) */
#bottomSheet .cs-wrap.cs-compact{padding:10px 12px!important}
#bottomSheet .cs-compact .cs-pill,#bottomSheet .cs-compact .cs-s,#bottomSheet .cs-compact .cs-fine{display:none!important}
#bottomSheet .cs-compact .cs-k{font-size:10.5px}
#bottomSheet .cs-compact .cs-h{font-size:15px;margin:2px 0 6px}
#bottomSheet .cs-compact .cs-card{flex:0 0 min(62%,210px);padding:8px 10px;gap:3px;border-radius:12px;display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:6px}
#bottomSheet .cs-compact .cs-badge{grid-column:1/-1;font-size:9.5px;padding:2px 7px}
#bottomSheet .cs-compact .cs-ic{font-size:17px}
#bottomSheet .cs-compact .cs-card b{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#bottomSheet .cs-compact .cs-card p{grid-column:1/-1;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* v277f: a pill is on -> card previews only */
#bottomSheet.pill-on #csTeaser,#bottomSheet.pill-on .sheet-feeline{display:none!important}
#bottomSheet .sheet-fullpage{display:flex;align-items:center;justify-content:center;min-height:44px;margin:4px 12px 10px;border-radius:12px;background:#E63946;color:#fff!important;font-weight:800;font-size:15px;text-decoration:none}
/* v277f: Coming Soon badge fits its text */
#bottomSheet .cs-compact .cs-badge{justify-self:start;width:max-content}
#bottomSheet .deal-soon{display:flex;gap:10px;align-items:center;margin:0 12px 10px;padding:10px 12px;border:1px solid rgba(127,127,127,.25);border-radius:12px}
#bottomSheet .deal-soon>span{font-size:22px}#bottomSheet .deal-soon b{display:block;font-size:14px}#bottomSheet .deal-soon small{display:block;font-size:12px;opacity:.8}
#bottomSheet button.deal-soon{display:flex;flex-direction:column;align-items:stretch;gap:6px;width:calc(100% - 24px);text-align:left;font:inherit;color:inherit;background:transparent;border:1px dashed rgba(127,127,127,.55);cursor:pointer}
#bottomSheet .deal-soon .ds-ex{align-self:flex-start;font-size:11px;font-weight:800;background:#fef3c7;color:#78350f;border-radius:99px;padding:2px 8px}
#bottomSheet .deal-soon .ds-row{display:flex;gap:10px;align-items:center}#bottomSheet .deal-soon .ds-ic{font-size:22px}
#bottomSheet .deal-soon .ds-note{font-size:12.5px;line-height:1.35;opacity:.9}
#bottomSheet .pill-hint{margin:8px 12px 12px;padding:12px;border:1px dashed rgba(127,127,127,.5);border-radius:12px;text-align:center;font-weight:700;font-size:14px}

/* v277k: [hidden] must win over card display rules */
#sheetCards [hidden],#sheetCards .area-empty[hidden]{display:none!important}
.list-search{margin:0 0 10px}.list-search .ls-row{display:flex;align-items:center;gap:8px;border:1px solid rgba(0,0,0,.18);border-radius:999px;padding:6px 12px;background:#fff}
.list-search input{flex:1;border:0;outline:0;background:transparent;font:inherit;color:inherit;min-width:0}.list-search input::-webkit-search-cancel-button{display:none}
.list-search .ls-x{border:0;background:rgba(0,0,0,.08);border-radius:50%;width:26px;height:26px;font-size:18px;line-height:1;cursor:pointer;color:inherit}
.list-search .ls-empty{margin:8px 4px;opacity:.85}.list-search [hidden]{display:none!important}
[data-theme="dark"] .list-search .ls-row,.dark .list-search .ls-row,html.night .list-search .ls-row{background:#1f2937;border-color:#374151;color:#f3f4f6}
[data-theme="dark"] .list-search .ls-x,.dark .list-search .ls-x{background:rgba(255,255,255,.12)}
body[data-mode="night"] .list-search .ls-row{background:#1f2937;border-color:#374151;color:#f3f4f6}body[data-mode="night"] .list-search .ls-x{background:rgba(255,255,255,.12)}

/* v278d: Deals pill hidden (code kept); Free pill */
.kind-chips button[data-kind="deal"][hidden]{display:none!important}.kind-chips button[data-kind="free"]{--kd:#6D28D9}
#bottomSheet .free-soon{margin:0 12px 10px;padding:12px;border:1px dashed rgba(127,127,127,.55);border-radius:12px;text-align:center;font-weight:700;font-size:15px}

/* v278j: real tap target for ZIP Clear */html body #pillChip .pill-zip-x{min-height:36px;min-width:44px;padding:8px 6px;position:relative;z-index:5;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
/* v278m8: cluster chooser fits under the header; scrolls inside */
html body .pin-card-slot .pin-card.pin-chooser{max-height:70dvh;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y!important;pointer-events:auto}
.pin-chooser .pin-card-close{position:sticky;top:6px;float:right;z-index:2}
