/* Version 3, market (D6). Loaded by templates/v3/base.html only when v3 is on. Every rule is scoped:
   under body.v3, or on a v3- class. followap.css is one global namespace; a bare class here can break today's pages.

   Market, Lists and Settings (D6 and D7) share one root class, .v3-mls, on each of their screens and on the sheets
   they open: the prototype's components (Redesign_Prototype_v2.1.html), with v3- in front of every class, live under
   it, so another area's .v3-card can never change ours, nor ours theirs. This file holds those shared components and
   Market's own rules; lists.css and setup.css hold theirs. */

/* ── the root: the prototype's type and resets, inside our screens only ── */
body.v3 .v3-mls{font-size:15px;line-height:1.45;letter-spacing:-.011em;color:var(--ink)}
body.v3 .v3-mls button{background:none;border:0;cursor:pointer;text-align:inherit;font:inherit;color:inherit;letter-spacing:inherit}
body.v3 .v3-mls :is(input,select,textarea){font:inherit;color:inherit;letter-spacing:inherit}
body.v3 .v3-mls img,body.v3 .v3-mls svg{display:inline-block}
body.v3 .v3-mls .v3-wrap{max-width:1640px;margin:0 auto}
body.v3 .v3-mls .v3-muted{color:var(--grey)}
body.v3 .v3-mls .v3-dim{color:var(--grey-d)}
body.v3 .v3-mls .v3-fine{font-size:12.5px;color:var(--grey);line-height:1.45}
body.v3 .v3-mls .v3-kick{font-size:13px;color:var(--grey);font-weight:600}
body.v3 .v3-mls .tnum{font-variant-numeric:tabular-nums}
body.v3 .v3-mls :focus-visible{outline:2px solid var(--green);outline-offset:2px}

/* ── shared components ── */
/* ── p_shared.css ── */
body.v3 .v3-mls .v3-hd{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px}
body.v3 .v3-mls .v3-hd .v3-r{display:flex;gap:8px;align-items:center}
body.v3 .v3-mls .v3-me{width:40px;height:40px;border-radius:50%;background:var(--ink);color:var(--white);display:grid;place-items:center;font-weight:750;font-size:15px;flex:none}
body.v3 .v3-mls .v3-cbtn{width:40px;height:40px;border-radius:50%;background:color-mix(in srgb,var(--ink) 6%,transparent);display:grid;place-items:center;flex:none}
body.v3 .v3-mls .v3-h1{font-size:32px;line-height:1.05;font-weight:800;letter-spacing:-.04em;margin-top:10px}
body.v3 .v3-mls .v3-h2{font-size:22px;font-weight:800;letter-spacing:-.03em;line-height:1.15}
body.v3 .v3-mls .v3-lede{color:var(--grey-d);font-size:15px;margin-top:6px}
body.v3 .v3-mls .v3-sec{display:flex;align-items:baseline;justify-content:space-between;margin:26px 0 12px;gap:10px}
body.v3 .v3-mls .v3-sec h2{font-size:19px;font-weight:750;letter-spacing:-.025em}
body.v3 .v3-mls .v3-sec .v3-n{color:var(--grey);font-size:14px;font-weight:550}
body.v3 .v3-mls .v3-sec a,body.v3 .v3-mls .v3-sec button.lk{font-size:14px;font-weight:650;color:var(--grey-d)}
body.v3 .v3-mls .v3-card{background:var(--white);border-radius:var(--r);padding:18px;box-shadow:0 1px 0 var(--line-soft),0 10px 28px -22px color-mix(in srgb,var(--ink) 40%,transparent)}
body.v3 .v3-mls .v3-card h4{font-size:15px;font-weight:700;letter-spacing:-.015em;margin-bottom:10px}
body.v3 .v3-mls .v3-card+.v3-card{margin-top:10px}
body.v3 .v3-mls .v3-pill{height:40px;padding:0 16px;border-radius:99px;background:var(--ink);color:var(--white);font-weight:650;font-size:14.5px; display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}
body.v3 .v3-mls .v3-pill.light{background:var(--sunken);color:var(--ink)}
body.v3 .v3-mls .v3-pill.line{background:var(--white);color:var(--ink);border:1px solid var(--line)}
body.v3 .v3-mls .v3-pill.ghost{background:transparent;color:var(--grey-d);padding:0 10px}
body.v3 .v3-mls .v3-pill.green{background:var(--green);color:var(--ink)}
body.v3 .v3-mls .v3-pill.big{height:52px;font-size:16px;padding:0 22px}
body.v3 .v3-mls .v3-pill.sm{height:34px;font-size:13.5px;padding:0 12px}
body.v3 .v3-mls .v3-pill.full{width:100%}
body.v3 .v3-mls .v3-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px 0}
body.v3 .v3-mls .v3-chips::-webkit-scrollbar{display:none}
body.v3 .v3-mls .v3-chips.wrapc{flex-wrap:wrap;overflow:visible}
body.v3 .v3-mls .v3-chip{height:34px;padding:0 13px;border-radius:99px;background:var(--white);border:1px solid var(--line);font-weight:600;font-size:13.5px; display:inline-flex;align-items:center;gap:7px;white-space:nowrap;flex:none}
body.v3 .v3-mls .v3-chip .v3-c{color:var(--grey);font-weight:550}
body.v3 .v3-mls .v3-chip.on{background:var(--ink);color:var(--white);border-color:var(--ink)}
body.v3 .v3-mls .v3-chip.on .v3-c{color:color-mix(in srgb,var(--white) 60%,transparent)}
body.v3 .v3-mls .v3-chip .v3-x{opacity:.6;margin-left:2px}
body.v3 .v3-mls .v3-chip .v3-dt{width:8px;height:8px;border-radius:50%;background:var(--c,var(--grey))}
body.v3 .v3-mls .v3-st{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 9px;border-radius:99px;font-size:12px;font-weight:650; background:var(--sunken);color:var(--grey-d);white-space:nowrap;--c:var(--grey)}
body.v3 .v3-mls .v3-st::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--c)}
body.v3 .v3-mls .v3-st.amber{--c:var(--amber);background:color-mix(in srgb,var(--amber) 12%,var(--white));color:var(--ink)}
body.v3 .v3-mls .v3-st.green{--c:var(--green);background:color-mix(in srgb,var(--green) 14%,var(--white));color:var(--ink)}
body.v3 .v3-mls .v3-st.ink{--c:var(--ink)}
body.v3 .v3-mls .v3-bar{position:relative;height:8px;border-radius:99px;background:color-mix(in srgb,var(--ink) 7%,transparent);overflow:hidden}
body.v3 .v3-mls .v3-bar>i{position:absolute;inset:0;border-radius:99px;background:var(--ink);transform:translateX(calc((var(--p) - 1) * 100%));will-change:transform}
body.v3 .v3-mls .v3-bar.green>i{background:var(--green)}
body.v3 .v3-mls .v3-bar.amber>i{background:var(--amber)}
body.v3 .v3-mls .v3-ico{flex:none;width:40px;height:40px;border-radius:50%;background:var(--sunken);display:grid;place-items:center;color:var(--ink)}
body.v3 .v3-mls .v3-ico.g{background:color-mix(in srgb,var(--green) 18%,var(--white))}
body.v3 .v3-mls .v3-ico.a{background:color-mix(in srgb,var(--amber) 16%,var(--white))}
body.v3 .v3-mls .v3-ico.k{background:var(--ink);color:var(--white)}
body.v3 .v3-mls .v3-ico.sm{width:32px;height:32px}
body.v3 .v3-mls .v3-list{background:var(--white);border-radius:var(--r);overflow:hidden;box-shadow:0 1px 0 var(--line-soft)}
body.v3 .v3-mls .v3-li{display:flex;align-items:center;gap:12px;padding:13px 16px;border-top:1px solid var(--line-soft);width:100%;text-align:left}
body.v3 .v3-mls .v3-li:first-child{border-top:0}
body.v3 .v3-mls .v3-li .v3-tx{flex:1;min-width:0}
body.v3 .v3-mls .v3-li .v3-t{font-weight:650;font-size:15px}
body.v3 .v3-mls .v3-li .v3-s{font-size:13.5px;color:var(--grey);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.v3 .v3-mls .v3-li .v3-m{font-size:13px;color:var(--grey);text-align:right;flex:none}
/* A row's small icon is grey, as the prototype's .li .s / .qrow .s / .guide .s / .gstep .s also match <svg class="i s">;
   a list row's chevron stays --never (the prototype's later .li .chev). */
body.v3 .v3-mls :is(.v3-li,.v3-qrow,.v3-guide,.v3-gstep) .v3-i.s{color:var(--grey)}
body.v3 .v3-mls .v3-li .v3-i.v3-chev,body.v3 .v3-mls .v3-li .v3-chev{color:var(--never)}
body.v3 .v3-mls .v3-kv{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--line-soft);font-size:14.5px}
body.v3 .v3-mls .v3-kv:first-of-type{border-top:0;padding-top:0}
body.v3 .v3-mls .v3-kv span:first-child{color:var(--grey)}
body.v3 .v3-mls .v3-tags{display:flex;flex-wrap:wrap;gap:6px}
body.v3 .v3-mls .v3-tag{height:30px;padding:0 12px;border-radius:99px;background:var(--sunken);font-size:13.5px;font-weight:600;display:inline-flex;align-items:center;gap:6px}
body.v3 .v3-mls .v3-sw{position:relative;width:46px;height:28px;border-radius:14px;background:var(--never);flex:none;transition:opacity var(--dur-fast)}
body.v3 .v3-mls .v3-sw::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:var(--white);transition:transform var(--dur-base) var(--spring-bouncy);box-shadow:0 1px 3px color-mix(in srgb,var(--ink) 25%,transparent)}
body.v3 .v3-mls .v3-sw.on{background:var(--green)}
body.v3 .v3-mls .v3-sw.on::after{transform:translateX(18px)}
body.v3 .v3-mls .v3-field{width:100%;height:50px;border:1px solid var(--line);border-radius:14px;background:var(--sunken);padding:0 14px;font-size:16px;outline:0}
body.v3 .v3-mls textarea.v3-field{height:auto;min-height:130px;padding:14px;line-height:1.45;resize:none}
body.v3 .v3-mls .v3-flabel{font-size:13px;font-weight:650;color:var(--grey-d);margin:14px 0 6px;display:block}
body.v3 .v3-mls .v3-empty{text-align:center;padding:26px 18px;color:var(--grey-d)}
body.v3 .v3-mls .v3-empty b{display:block;color:var(--ink);font-size:16px;margin-bottom:4px}

/* ── p_seg.css ── */
body.v3 .v3-mls .v3-seg{position:relative;display:grid;grid-template-columns:repeat(var(--n,4),1fr);background:color-mix(in srgb,var(--ink) 6%,transparent);border-radius:14px;padding:4px;height:44px}
body.v3 .v3-mls .v3-seg button{position:relative;z-index:1;font-weight:650;font-size:14px;color:var(--grey-d);text-align:center;border-radius:10px;white-space:nowrap}
body.v3 .v3-mls .v3-seg button.on{color:var(--ink)}
body.v3 .v3-mls .v3-seg-ind{position:absolute;top:4px;bottom:4px;left:4px;width:calc((100% - 8px) / var(--n,4));border-radius:10px;background:var(--white); box-shadow:0 1px 3px color-mix(in srgb,var(--ink) 14%,transparent);will-change:transform}

/* ── p_search.css ── */
body.v3 .v3-mls .v3-search{height:48px;border-radius:16px;background:var(--white);border:1px solid var(--line);display:flex;align-items:center;gap:10px;padding:0 14px;margin-top:14px;color:var(--grey)}
body.v3 .v3-mls .v3-search input{flex:1;border:0;outline:0;background:transparent;font-size:16px;color:var(--ink);min-width:0}

/* ── p_av.css ── */
body.v3 .v3-mls .v3-av{width:44px;height:44px;border-radius:50%;background:var(--sunken);display:grid;place-items:center;font-weight:700;font-size:14.5px;flex:none;letter-spacing:-.01em}
body.v3 .v3-mls .v3-av.k{background:var(--ink);color:var(--white)}

/* ── p_qrow.css ── */
body.v3 .v3-mls .v3-qrow{display:flex;gap:12px;align-items:center;padding:12px 0;border-top:1px solid var(--line-soft)}
body.v3 .v3-mls .v3-qrow:first-child{border-top:0;padding-top:4px}
body.v3 .v3-mls .v3-qrow .v3-tx{flex:1;min-width:0}
body.v3 .v3-mls .v3-qrow .v3-t{font-weight:650}
body.v3 .v3-mls .v3-qrow .v3-s{font-size:13.5px;color:var(--grey);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ── p_tl.css ── */
body.v3 .v3-mls .v3-link{display:inline-flex;align-items:center;gap:4px;font-weight:650;font-size:14.5px;margin-top:12px}
body.v3 .v3-mls .v3-tl{position:relative;padding-left:22px}
body.v3 .v3-mls .v3-tl::before{content:"";position:absolute;left:5px;top:6px;bottom:6px;width:2px;background:var(--line)}
body.v3 .v3-mls .v3-ev{position:relative;padding:0 0 16px}
body.v3 .v3-mls .v3-ev::before{content:"";position:absolute;left:-22px;top:5px;width:12px;height:12px;border-radius:50%;background:var(--white);border:2px solid var(--c,var(--ink))}
body.v3 .v3-mls .v3-ev .v3-w{font-size:12.5px;color:var(--grey);font-weight:600}
body.v3 .v3-mls .v3-ev .v3-t{font-size:15px;font-weight:650;margin-top:1px}
body.v3 .v3-mls .v3-ev .v3-q{font-size:14px;color:var(--grey-d);margin-top:2px}

@media (min-width:900px){ body.v3 .v3-mls .v3-h1{font-size:42px} }
@media (min-width:900px){
body.v3 .v3-mls .v3-hd .v3-me{display:none}
body.v3 .v3-mls .v3-two-col{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
body.v3 .v3-mls .v3-rgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.v3 .v3-mls .v3-rgrid>.v3-card+.v3-card{margin-top:0}
body.v3 .v3-mls .v3-sgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
}
@media (min-width:1600px){
body.v3 .v3-mls .v3-rgrid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:899px){
body.v3 .v3-mls .v3-switch a,body.v3 .v3-mls .v3-switch button{padding:0 10px;font-size:13.5px;gap:5px}
body.v3 .v3-mls .v3-switch .v3-bdg{min-width:18px;height:18px;font-size:11px}
body.v3 .v3-mls .v3-two-col>*+*{margin-top:12px}
body.v3 .v3-mls .v3-sgrid>*+*{margin-top:12px}
body.v3 .v3-mls .v3-rgrid>*+*{margin-top:10px}
}

/* ── Market ── */
/* ── p_mklists.css ── */
/* market */
body.v3 .v3-mls .v3-map{position:relative;border-radius:var(--r);overflow:hidden;background:var(--sunken);height:330px;margin-top:12px}
body.v3 .v3-mls .v3-map svg{position:absolute;inset:0;width:100%;height:100%}
body.v3 .v3-mls .v3-pin{position:absolute;transform:translate(-50%,-100%);display:flex;flex-direction:column;align-items:center;cursor:pointer;z-index:2}
body.v3 .v3-mls .v3-pin b{display:block;padding:4px 8px;border-radius:99px;font-size:12px;font-weight:750;white-space:nowrap;background:var(--c,var(--ink));color:var(--fg,var(--white)); box-shadow:0 4px 10px -4px color-mix(in srgb,var(--ink) 50%,transparent)}
body.v3 .v3-mls .v3-pin::after{content:"";width:8px;height:8px;margin-top:-4px;transform:rotate(45deg);background:var(--c,var(--ink))}
body.v3 .v3-mls .v3-pin.ring b{background:var(--white);color:var(--ink);box-shadow:inset 0 0 0 2px var(--c),0 4px 10px -4px color-mix(in srgb,var(--ink) 50%,transparent)}
body.v3 .v3-mls .v3-pin.ring::after{background:var(--c)}
body.v3 .v3-mls .v3-person{position:absolute;transform:translate(-50%,-50%);width:28px;height:28px;border-radius:50%;background:var(--white);border:2px solid var(--ink);font-size:10.5px;font-weight:800;display:grid;place-items:center;z-index:1}
body.v3 .v3-mls .v3-map .v3-ctl{position:absolute;right:10px;top:10px;display:grid;gap:6px;z-index:3}
body.v3 .v3-mls .v3-map .v3-ctl button{width:36px;height:36px;border-radius:10px;background:var(--white);box-shadow:0 2px 8px -2px color-mix(in srgb,var(--ink) 30%,transparent);font-weight:700}
body.v3 .v3-mls .v3-map .v3-lay{position:absolute;left:10px;top:10px;z-index:3;display:flex;gap:4px;background:var(--white);border-radius:10px;padding:3px;box-shadow:0 2px 8px -2px color-mix(in srgb,var(--ink) 30%,transparent)}
body.v3 .v3-mls .v3-map .v3-lay button{height:28px;padding:0 9px;border-radius:7px;font-size:12px;font-weight:650;color:var(--grey-d)}
body.v3 .v3-mls .v3-map .v3-lay .on{background:var(--ink);color:var(--white)}
body.v3 .v3-mls .v3-homes{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-top:12px}
body.v3 .v3-mls .v3-home{padding:0;overflow:hidden;cursor:pointer}
body.v3 .v3-mls .v3-home .v3-ph{position:relative;height:150px;background:var(--sunken)}
body.v3 .v3-mls .v3-home .v3-ph svg{width:100%;height:100%;display:block}
body.v3 .v3-mls .v3-home .v3-ph .v3-st{position:absolute;left:10px;top:10px;background:var(--white)}
body.v3 .v3-mls .v3-home .v3-plus{position:absolute;right:10px;top:10px;width:36px;height:36px;border-radius:50%;background:var(--white);display:grid;place-items:center;box-shadow:0 2px 8px -2px color-mix(in srgb,var(--ink) 40%,transparent)}
body.v3 .v3-mls .v3-home .v3-plus.on{background:var(--green)}
body.v3 .v3-mls .v3-home .v3-bd{padding:12px 14px 14px}
body.v3 .v3-mls .v3-home .v3-pr{font-size:19px;font-weight:800;letter-spacing:-.03em}
body.v3 .v3-mls .v3-home .v3-ad{font-size:14px;font-weight:600;margin-top:1px}
body.v3 .v3-mls .v3-home .v3-fx{font-size:13px;color:var(--grey);margin-top:2px}
body.v3 .v3-mls .v3-home .v3-near{font-size:12.5px;color:var(--grey-d);margin-top:8px;display:flex;align-items:center;gap:6px}
body.v3 .v3-mls .v3-home .v3-near b{color:var(--ink);font-weight:700}       /* how many first (17 October 2026) */
body.v3 .v3-mls .v3-tray{position:fixed;left:14px;right:14px;bottom:calc(90px + env(safe-area-inset-bottom));z-index:45;background:var(--ink);color:var(--white);border-radius:18px;padding:10px 10px 10px 16px; display:flex;align-items:center;gap:10px;box-shadow:0 14px 30px -14px color-mix(in srgb,var(--ink) 80%,transparent)}
body.v3 .v3-mls .v3-tray b{flex:1;font-size:15px}
body.v3 .v3-mls .v3-tray .v3-pill{background:var(--green);color:var(--ink)}

@media (min-width:900px){
body.v3 .v3-mls .v3-mkt{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(400px,1fr);gap:20px;align-items:start}
body.v3 .v3-mls .v3-mkt .v3-map{position:sticky;top:0;height:calc(100dvh - 190px);margin-top:0}
body.v3 .v3-mls .v3-mkt .v3-homes{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:0}
body.v3 .v3-mls .v3-tray{left:auto;right:28px;bottom:24px;width:420px}
body.v3 .v3-mls .v3-homes.grid3{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (min-width:1600px){
body.v3 .v3-mls .v3-mkt{grid-template-columns:minmax(0,1.6fr) minmax(560px,1fr)}
body.v3 .v3-mls .v3-mkt .v3-homes{grid-template-columns:repeat(2,minmax(0,1fr))}
body.v3 .v3-mls .v3-homes.grid3{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* Our screens take the whole width of the page: today's desk rule keeps a page that is not a .page-shell at 760px. */
body.v3 main.wrap > .v3-mls{max-width:none}

/* ── Market: the real pieces in the prototype's places ── */
body.v3 .v3-mls .v3-home{position:relative}
body.v3 .v3-mls .v3-home .v3-hlink{position:absolute;inset:0;z-index:1;border-radius:inherit}
body.v3 .v3-mls .v3-home .v3-ph .v3-st,body.v3 .v3-mls .v3-home .v3-plus{z-index:2}
body.v3 .v3-mls .v3-home .v3-ph img{width:100%;height:100%;object-fit:cover;display:block}
body.v3 .v3-mls .v3-home.lit{box-shadow:0 0 0 2px var(--ink)}
body.v3 .v3-mls .v3-home .v3-plus.on{color:var(--ink)}
body.v3 .v3-mls .v3-mkbar{display:flex;gap:8px;margin-top:10px;align-items:center}
body.v3 .v3-mls .v3-mkview{width:140px;height:34px;padding:3px;margin-left:auto}
body.v3 .v3-mls .v3-mkview button{font-size:13px}
body.v3 .v3-mls .v3-mkview .v3-seg-ind{top:3px;bottom:3px;left:3px;width:calc((100% - 6px) / 2)}
body.v3 .v3-mls .v3-map{height:var(--mh,330px)}
body.v3 .v3-mls [data-view=list] .v3-mkmap,body.v3 .v3-mls[data-view=list] .v3-mkmap,
body.v3 .v3-mls[data-view=list] .v3-mkinview{display:none}
body.v3 .v3-mls .v3-map .mapgl{position:absolute;inset:0;z-index:0}
/* With tiles (map.js adds .live) the clients are map.js's own layer, at their points; the drawn initials, placed in
   the box, would sit in the wrong places over the real map. */
body.v3 .v3-mls .v3-map.live .v3-person{display:none}
body.v3 .v3-mls .v3-map .mpin.v3-pin{background:none;border:0;border-radius:0;height:auto;min-height:0;min-width:0;width:auto;padding:0;box-shadow:none;
  color:inherit;font-size:12px;transform:translate(-50%,-100%);transition:transform var(--dur-fast) var(--ease-out)}
body.v3 .v3-mls .v3-map .mpin.v3-pin::before{display:none}
body.v3 .v3-mls .v3-map .mpin.v3-pin.on{transform:translate(-50%,-100%) scale(1.12);z-index:5}
body.v3 .v3-mls .v3-map .mpin.v3-pin.gl{position:relative;left:auto;top:auto;transform:none}
body.v3 .v3-mls .v3-pair{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center}
body.v3 .v3-mls .v3-grid2{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px}
body.v3 .v3-mls select.v3-field{appearance:none;-webkit-appearance:none}
body.v3 .v3-mls .v3-sa .v3-pill{flex:1;height:52px;font-size:15.5px}
body.v3 .v3-mls .v3-nearhead{display:flex;gap:12px;align-items:center}
body.v3 .v3-mls .v3-nthumb{width:72px;height:56px;border-radius:12px;overflow:hidden;flex:none}
body.v3 .v3-mls .v3-nthumb svg{width:100%;height:auto;display:block}   /* the prototype's: full width, its own height */
body.v3 .v3-mls .v3-nthumb img{width:100%;height:100%;display:block;object-fit:cover}
body.v3 .v3-mls .v3-nthumb:has(img){background:var(--sunken)}   /* a photo still loading sits on grey; a drawn house sits on the card, as the prototype's */
body.v3 .v3-mls .v3-nt{font-weight:700;margin-top:4px}
body.v3 .v3-mls .v3-pill.sent{background:var(--green);color:var(--ink)}
body.v3 .v3-mls .v3-pill[disabled]{opacity:.35}
@media (min-width:900px){
  body.v3 .v3-mls .v3-mkview,body.v3 .v3-mls .v3-mkinview{display:none}
  body.v3 .v3-mls[data-view=list] .v3-mkmap{display:block}
  body.v3 .v3-mls .v3-mkt>.v3-mkmap{align-self:stretch}
  body.v3 .v3-mls .v3-mkt .v3-mkmap .v3-map{position:sticky;top:0;height:calc(100dvh - 190px);margin-top:0}
}
body.v3 .v3-mls .v3-fn:empty{display:none}
@media (max-width:899px){
  /* the bar keeps the prototype's sizes; on a narrow phone it scrolls sideways, as the chips do */
  body.v3 .v3-mls .v3-mkbar{overflow-x:auto;scrollbar-width:none;margin-left:-18px;margin-right:-18px;padding:0 18px}
  body.v3 .v3-mls .v3-mkbar::-webkit-scrollbar{display:none}
  body.v3 .v3-mls .v3-mkbar>*{flex:none}
}
/* Every tap is 44px on the phone: the prototype's 34px pills and chips, 40px round buttons and 28px switches keep
   their drawn size and reach 44px with an invisible edge above and below. */
body.v3 .v3-mls :is(.v3-pill,.v3-chip,.v3-cbtn,.v3-me,.v3-sw,.v3-plus,.v3-seg button,.v3-lay button,.v3-link,.v3-cpy,a.v3-av){position:relative}
body.v3 .v3-mls :is(.v3-pill,.v3-chip,.v3-cbtn,.v3-me,.v3-sw,.v3-plus,.v3-seg button,.v3-lay button,.v3-link,.v3-cpy,a.v3-av)::before{content:"";position:absolute;left:0;right:0;top:50%;height:max(100%,44px);transform:translateY(-50%)}
body.v3 .v3-mls .v3-sw::before{left:-4px;right:-4px}
/* card.css draws its switch's track on ::before (body.v3 .v3-sw, unscoped), with a -8px margin; here ::before is only
   the 44px tap area, so it stays clear and the switch is the prototype's 46x28 */
body.v3 .v3-mls .v3-sw{margin:0;border:0;padding:0}
body.v3 .v3-mls .v3-sw::before,body.v3 .v3-mls .v3-sw.on::before{background:none;border-radius:0;transition:none}

/* Sales near your clients on the desk (the owner's note, 17 October 2026): bigger cards, two across at any width, each
   with the home's picture across its top, so more of the home near the client shows. The phone's is as it was. */
@media (min-width:900px){
body.v3 .v3-mls[data-v3-market-near] .v3-lgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
body.v3 .v3-mls[data-v3-market-near] .v3-nearhead{flex-direction:column;align-items:stretch;gap:12px;margin-bottom:4px}
body.v3 .v3-mls[data-v3-market-near] .v3-nthumb{width:100%;height:240px;border-radius:14px}
body.v3 .v3-mls[data-v3-market-near] .v3-nthumb svg{height:100%}
body.v3 .v3-mls[data-v3-market-near] .v3-nearhead .v3-nt{font-size:17px;font-weight:700;margin-top:6px}
}

/* ── a film home's gallery (the demo copy only: templates/v3/contacts/_demo_gallery.html) ── */
body.v3 .v3-mls .v3-gal{border-radius:inherit}
body.v3 .v3-mls .v3-gal-fr{position:relative;aspect-ratio:3/2;background:var(--sunken);overflow:hidden}
body.v3 .v3-mls .v3-gal-tr{display:flex;width:100%;height:100%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
body.v3 .v3-mls .v3-gal-tr::-webkit-scrollbar{display:none}
body.v3 .v3-mls .v3-gal-sl{flex:0 0 100%;height:100%;scroll-snap-align:start;display:grid;place-items:center}
body.v3 .v3-mls .v3-gal-sl img{width:100%;height:100%;object-fit:contain;display:block}
body.v3 .v3-mls .v3-gal-sl svg{width:100%;height:100%;display:block}
body.v3 .v3-mls .v3-gal-kind{position:absolute;left:10px;top:10px;background:var(--white)}
body.v3 .v3-mls .v3-gal-n{position:absolute;right:10px;bottom:10px;display:inline-flex;align-items:center;height:28px;padding:0 12px;border-radius:99px;font-size:12.5px;font-weight:650;white-space:nowrap;background:color-mix(in srgb,#000 66%,transparent);color:#fff}
body.v3 .v3-mls .v3-gal-nav{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;background:var(--white);display:grid;place-items:center;box-shadow:0 2px 8px -2px color-mix(in srgb,var(--ink) 40%,transparent)}
body.v3 .v3-mls .v3-gal-nav.prev{left:10px}
body.v3 .v3-mls .v3-gal-nav.next{right:10px}
body.v3 .v3-mls .v3-gal-nav[disabled]{opacity:0;pointer-events:none}
body.v3 .v3-mls .v3-gal-th{display:flex;gap:6px;overflow-x:auto;padding:8px 10px 4px;scrollbar-width:none}
body.v3 .v3-mls .v3-gal-th::-webkit-scrollbar{display:none}
body.v3 .v3-mls .v3-gal-tb{flex:0 0 72px;height:48px;border-radius:8px;overflow:hidden;background:var(--sunken);opacity:.7;padding:0}
body.v3 .v3-mls .v3-gal-tb img,body.v3 .v3-mls .v3-gal-tb svg{width:100%;height:100%;object-fit:cover;display:block}
body.v3 .v3-mls .v3-gal-tb.on{opacity:1;outline:2px solid var(--ink);outline-offset:-2px}
@media (hover:none){body.v3 .v3-mls .v3-gal-nav{display:none}}
