/* Our Town Almanac: "Eat & shop like a local" square map on the Visit page (2026-10-21).
   Loads after style.css, warm.css, leaflet.css, MarkerCluster.css and map-ui.css. */
.vm-wrap{margin:18px 0 6px;background:var(--card,#fffaf0);border:1px solid var(--rule);border-top:5px solid var(--ink);padding:12px 14px}
.vm-title{margin:0 0 2px;font:700 19px/1.25 "Playfair Display",Georgia,serif}
.vm-title svg{vertical-align:-4px;margin-right:6px}
.vm-intro{margin:0 0 8px;font-size:14.5px;color:var(--muted)}
.vm-legend{list-style:none;display:flex;flex-wrap:wrap;gap:4px 16px;padding:0;margin:4px 0 6px;font-size:14px;line-height:1.4}
.vm-legend li{display:inline-flex;align-items:center;gap:6px}
#visit-map{height:420px;border:2px solid var(--ink);margin:6px 0 4px;background:var(--paper2);max-width:100%;box-sizing:border-box}
/* SK-Q4 2026-11-04: own stacking context so Leaflet panes/controls (z-index 400-1000) stay under the sticky phone masthead (z-index 50); .ota-map-full keeps z-index 10000 (higher specificity) */
[data-visit-map]{position:relative;z-index:0}
.vm-src{margin:2px 0 8px;font-size:12.5px;color:var(--muted);line-height:1.4}
.vm-src a{color:var(--muted)}
/* Pins: color + shape by category (circle = coffee, rounded square = lunch, diamond = shop), number matches the key */
.vm-pin,.vm-court{background:transparent;border:0}
.vm-pin span{display:flex;align-items:center;justify-content:center;width:26px;height:26px;box-sizing:border-box;border:2px solid #fff;color:#fff;font:700 12px/1 system-ui,-apple-system,"Segoe UI",sans-serif;box-shadow:0 0 0 1.5px rgba(43,35,24,.85),0 2px 4px rgba(0,0,0,.4);cursor:pointer}
.vm-pin.vm-coffee span{background:#8a5208;border-radius:50%}
.vm-pin.vm-lunch span{background:#b0470f;border-radius:6px}
.vm-pin.vm-shop span{position:relative;isolation:isolate;background:transparent;border:0;box-shadow:none}
.vm-pin.vm-shop span::before{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;box-sizing:border-box;background:#24527a;border:2px solid #fff;box-shadow:0 0 0 1.5px rgba(43,35,24,.85),0 2px 4px rgba(0,0,0,.4);transform:rotate(45deg);z-index:-1}
.vm-court span{display:flex;align-items:center;justify-content:center;width:34px;height:34px;box-sizing:border-box;border-radius:50%;background:var(--yp,#f5cf2a);color:var(--ink,#2b2318);border:2px solid var(--ink,#2b2318);box-shadow:0 2px 5px rgba(0,0,0,.45)}
.ota-cluster-visit span{background:var(--ink,#2b2318);box-shadow:0 0 0 2px var(--ink,#2b2318),0 2px 5px rgba(0,0,0,.45)}
/* Legend swatches (page legend and the in-map legend in full-screen) */
.vm-sw{display:inline-block;width:14px;height:14px;box-sizing:border-box;border:1.5px solid #fff;box-shadow:0 0 0 1px var(--ink,#2b2318);flex:0 0 auto}
.vm-sw-coffee{background:#8a5208;border-radius:50%}
.vm-sw-lunch{background:#b0470f;border-radius:3px}
.vm-sw-shop{background:#24527a;transform:rotate(45deg) scale(.85)}
.vm-sw-court{background:var(--yp,#f5cf2a);border-color:var(--ink,#2b2318);border-radius:50%;box-shadow:none}
.vm-maplegend{display:none;background:#fffaf0;border:2px solid var(--ink,#2b2318);border-radius:6px;padding:6px 10px;font:13px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink,#2b2318);max-width:220px}
.vm-maplegend span{display:flex;align-items:center;gap:6px}
.ota-map-full .vm-maplegend{display:block}
/* Popups */
.vm-pop-cat{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#fff;padding:1px 6px;border-radius:3px;margin-bottom:2px}
.vm-pc-coffee{background:#8a5208}.vm-pc-lunch{background:#b0470f}.vm-pc-shop{background:#24527a}
/* Key: every pin by side of the square */
.vm-key{margin:4px 0 0}
.vm-key summary{cursor:pointer;font-weight:700;padding:8px 0;min-height:28px}
.vm-key h4{margin:10px 0 4px;font:700 15px/1.3 Georgia,serif;color:var(--ink)}
.vm-key ol{list-style:none;padding:0;margin:0 0 4px;display:grid;gap:4px}
.vm-key button{display:flex;align-items:center;gap:8px;width:100%;min-height:40px;padding:4px 8px;text-align:left;background:#fff;border:1px solid var(--rule);border-radius:4px;font:15px/1.3 Georgia,serif;color:var(--ink);cursor:pointer}
.vm-key button:hover,.vm-key button:focus-visible{background:var(--yp)}
.vm-key b{display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;height:24px;border-radius:50%;color:#fff;font:700 12px/1 system-ui,-apple-system,"Segoe UI",sans-serif}
.vm-key .vm-coffee b{background:#8a5208}.vm-key .vm-lunch b{background:#b0470f;border-radius:5px}.vm-key .vm-shop b{background:#24527a;border-radius:3px}
.vm-key small{display:block;color:var(--muted);font-size:12.5px}
@media (min-width:760px){ .vm-key ol{grid-template-columns:repeat(2,minmax(0,1fr))} #visit-map{height:460px} }
@media (max-width:480px){ #visit-map{height:380px} .vm-wrap{padding:10px 10px} }
@media print{ #visit-map,.vm-legend,.vm-src{display:none} }
