/* House Hack Jack - "Around <Town>" living layer on the town hubs (L65.88a, r205, 2026-11-14; L65.88d, r222, 2026-11-18).
   Same look as the hub's Quick answers / Areas near boxes; every tap target is at least 44 px.
   L65.88d (his 11/18 15:53 ask): the map block (section#around) and Events (section#events) sit at the top of the hub,
   inside the page's .wrap, in the 900 px column the glance box and the prose use; the lists, the commute and the
   getting-set-up steps (section#aroundMore) stay lower on the page. The chips, the map box and "Move the map" are in the
   HTML from the build and the map box holds its height from first paint, so nothing at the top moves when the town
   data, Leaflet or the tiles arrive (living.js hides them if the data or Leaflet fails). v20261118a */
.hhj-living{max-width:1080px;margin:0 auto;padding:6px 22px 14px}
.wrap>section.hhj-living{max-width:900px;margin:22px auto 0;padding:0}
.wrap>section.hhj-events{margin-top:14px}
.lv-box{border:1px solid rgba(163,212,242,.32);border-radius:14px;padding:20px 22px;background:rgba(35,35,35,.45)}
.lv-h{font-family:Georgia,serif;color:#A3D4F2;margin:0 0 6px;font-size:1.3rem;line-height:1.3}
.lv-h3{font-family:Georgia,serif;color:#F7F5EE;margin:22px 0 6px;font-size:1.08rem}
.lv-lead,.lv-p{margin:0 0 12px;line-height:1.65;font-size:.98rem}
.lv-tools{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 12px}
.lv-tools[hidden],.lv-map[hidden],.lv-move[hidden]{display:none}
.lv-chip,.lv-move{min-height:44px;padding:0 14px;border-radius:22px;border:1px solid rgba(163,212,242,.45);background:transparent;color:#F7F5EE;font:inherit;font-size:.92rem;cursor:pointer}
.lv-chip[aria-pressed="true"]{background:#A3D4F2;color:#0D0D0D;border-color:#A3D4F2}
/* category keys, the same colors as the map pins (COLORS in assets/living.js); after the pressed rule so the key stays */
.lv-chip[data-cat="eat"]{border-left:4px solid #E8A33D}
.lv-chip[data-cat="coffee"]{border-left:4px solid #C98B5E}
.lv-chip[data-cat="outdoors"]{border-left:4px solid #6FBF73}
.lv-chip[data-cat="things"]{border-left:4px solid #A3D4F2}
.lv-chip[data-cat="fitness"]{border-left:4px solid #C792EA}
.lv-chip[data-cat="essentials"]{border-left:4px solid #F7F5EE}
.lv-chip:focus-visible,.lv-move:focus-visible,.lv-btn:focus-visible,.lv-pop-btn:focus-visible{outline:2px solid #F7F5EE;outline-offset:2px}
/* "Move the map": touch screens only (the map does not trap the page scroll there); in the HTML so it never pops in */
.lv-move{display:none;margin:-8px 0 14px}
@media (pointer:coarse){.lv-move:not([hidden]){display:inline-block}}
.lv-map{position:relative;height:380px;border-radius:12px;overflow:hidden;margin:0 0 16px;background:#1A1A1A}
.lv-map:not(.leaflet-container)::before{content:"Loading the map";position:absolute;left:0;right:0;top:50%;margin-top:-.7em;text-align:center;color:#A6A6A6;font-size:.9rem}
.lv-map.leaflet-container{font-family:inherit;background:#1A1A1A}
/* L65.143 (r225): first-party placeholder image under the tiles, so the town hub's largest first paint is ours, not a map tile */
.lv-map-ph{position:absolute;inset:-1px;width:calc(100% + 2px);height:calc(100% + 2px);max-width:none;object-fit:cover;display:block;z-index:0;pointer-events:none}
/* the room "How far is it from the places you go?" (assets/place-distance.js) takes when it mounts at the end of
   section#around: --n = its "Closest to" rows for this town, --k = 1 when it has any (the build writes both). Measured
   on all 27 hubs: exact at 760 px and up, the no-wrap minimum below (there the tool mounts under the first screen).
   Gone the moment the tool is in (here with :has(), and living.js removes it), when the tool fails, or after 8 s. */
.lv-pdslot{--pd-base:220px;--pd-head:53px;margin:18px 0 0;min-height:calc(var(--pd-base) + var(--k,1) * var(--pd-head) + var(--n,5) * 57px)}
#around:has(> .pd) > .lv-pdslot{display:none}
@media (max-width:759px){.lv-pdslot{--pd-base:260px}}
@media (max-width:559px){.lv-pdslot{--pd-base:312px;--pd-head:52px}}
@media (max-width:520px){.lv-pdslot{--pd-base:398px;--pd-head:32px}}
.lv-map .leaflet-control-attribution{background:rgba(13,13,13,.8);color:#A6A6A6;font-size:10.5px}
.lv-map .leaflet-control-attribution a{color:#C9CED6}
.lv-map .leaflet-bar a,.lv-map .leaflet-bar a:hover{background:#232323;color:#F7F5EE;border-bottom-color:#3A3F48}
.lv-map .leaflet-popup-content-wrapper,.lv-map .leaflet-popup-tip{background:#232323;color:#F7F5EE}
.lv-pop strong{display:block;font-size:.95rem}
.lv-pop-meta{color:#C9CED6;font-size:.82rem;margin:2px 0 8px;text-transform:capitalize}
.lv-pop-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.lv-pop-btn{min-height:44px;padding:0 12px;border-radius:10px;border:1px solid rgba(163,212,242,.45);background:transparent;color:#F7F5EE;font:inherit;font-size:.85rem;cursor:pointer}
.lv-map .lv-pop-link{display:inline-flex;align-items:center;min-height:44px;color:#A3D4F2;text-decoration:underline}
.lv-map .leaflet-popup-close-button{color:#C9CED6}
.lv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px 20px;margin:4px 0 4px}
.lv-cat h3,.lv-cat h4{font-family:Georgia,serif;color:#A3D4F2;margin:0 0 6px;font-size:1rem}
.lv-cat h3 span,.lv-cat h4 span{color:#A6A6A6;font-size:.8rem;font-family:inherit;font-weight:400;margin-left:4px}
.lv-cat ul{list-style:none;margin:0;padding:0}
.lv-cat li{margin:0 0 7px;font-size:.93rem;line-height:1.4}
.lv-cat li span{display:block;color:#A6A6A6;font-size:.8rem}
.lv-miles{list-style:none;padding:0;margin:0 0 12px;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:6px 16px;font-size:.95rem}
.lv-miles strong{color:#A3D4F2;margin-right:6px}
.lv-commute label{display:block;margin:6px 0;font-size:.95rem}
.lv-row{display:flex;gap:8px;flex-wrap:wrap}
.lv-row input{flex:1 1 240px;min-height:44px;padding:0 12px;border-radius:10px;border:1px solid #3A3F48;background:#1A1A1A;color:#F7F5EE;font:inherit;font-size:16px}
.lv-btn{min-height:44px;padding:0 18px;border-radius:10px;border:1px solid #A3D4F2;background:#000E35;color:#F7F5EE;font:inherit;font-weight:700;cursor:pointer}
.lv-note{font-size:.82rem;color:#A6A6A6;margin:6px 0 0}
.lv-list{margin:0;padding-left:18px;line-height:1.6;font-size:.95rem}
.lv-list a{display:inline-block;min-height:24px}
.lv-cta{margin:20px 0 6px;padding:16px;border-radius:12px;background:rgba(163,212,242,.08)}
.lv-cta p{margin:0;line-height:1.6}
.lv-ctarow{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.lv-src{font-size:.78rem;color:#A6A6A6;margin:14px 0 0;line-height:1.5}
@media (max-width:600px){.hhj-living{padding:6px 16px 14px}.wrap>section.hhj-living{padding:0}.lv-box{padding:16px}.lv-map{height:300px}}
