/* Local Openings, map page only (loaded after vendor/leaflet/leaflet.css). */
.map-sec{padding-top:clamp(24px,4vw,40px)}
.map-wrap{display:grid;gap:26px;grid-template-columns:minmax(0,1fr)}
.map-col{min-width:0}
.map{height:min(64vh,520px);min-height:340px;border:1.5px solid var(--ink);border-radius:18px;overflow:hidden;background:var(--paper-2);box-shadow:var(--shadow);position:relative;z-index:0}
.map-fallback{margin:0;padding:28px 20px;text-align:center;color:var(--ink-2)}
.js .map-fallback{display:none}
@media (max-width:700px){
  .map{margin:0 -20px;border-radius:0;border-left:0;border-right:0;box-shadow:none}
}
@media (max-width:380px){.map{margin:0 -16px}}
@media (min-width:980px){
  .map-wrap{grid-template-columns:minmax(0,1.75fr) minmax(0,1fr);gap:30px;align-items:start}
  .map{height:660px}
  .map-side{display:flex;flex-direction:column;max-height:712px}
  .map-list{overflow:auto;padding-right:6px;scrollbar-width:thin}
}
.map-tools{margin-bottom:20px}
.map-tools .f-status:empty{display:none}
.chip.tog::before{content:"";width:12px;height:12px;border-radius:4px;border:1.5px solid currentColor;flex:none}
.chip.tog[aria-pressed="true"]::before{background:currentColor;box-shadow:inset 0 0 0 2px var(--ink)}
.legend{display:flex;flex-wrap:wrap;gap:6px 22px;list-style:none;margin:14px 0 0;padding:0;color:var(--ink-2);font-size:.92rem;font-weight:600}
.legend li{display:inline-flex;align-items:center;gap:12px}
.legend .pin{width:18px;height:18px;border-width:2px;margin:0 0 4px}
.legend .pin::after{inset:4px}
.map-hint{display:none;margin:8px 0 0;color:var(--mute);font-size:.88rem}
.is-touch .map-hint{display:block}
.map-note{margin:26px 0 0;color:var(--ink-2);font-size:.95rem;max-width:76ch}

/* pins: drawn in CSS, no marker images. Open = green with a light dot; coming soon = mustard with a dark edge and dot. */
.pin-wrap{background:none;border:0}
.pin{display:block;box-sizing:border-box;width:28px;height:28px;margin:3px 2px 0;border-radius:50% 50% 50% 3px;transform:rotate(-45deg);border:2.5px solid #fffdf9;background:#0f6f69;box-shadow:-2px 3px 5px rgba(0,0,0,.32);position:relative}
.pin::after{content:"";position:absolute;inset:6px;border-radius:50%;background:#fffdf9}
.pin-soon{background:#ffbf2f;border-color:#1d2a44}
.pin-soon::after{background:#1f1b16}
.leaflet-marker-icon.pin-wrap:focus-visible{outline:none}
.leaflet-marker-icon.pin-wrap:focus-visible .pin{outline:3px solid var(--tomato);outline-offset:2px}
.leaflet-marker-icon.pin-wrap:hover .pin{filter:brightness(1.08)}

/* Leaflet, dressed for this site */
.leaflet-container{font:inherit;background:var(--paper-2);color:var(--ink)}
.leaflet-tile-pane{filter:sepia(.16) saturate(.86)}
:root[data-theme="dark"] .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) brightness(.88) contrast(.9) saturate(.55) sepia(.12)}
.leaflet-container a{color:var(--tomato)}
.leaflet-bar{border:1.5px solid var(--ink)!important;border-radius:12px!important;overflow:hidden;box-shadow:var(--shadow)}
.leaflet-bar a,.leaflet-touch .leaflet-bar a{width:40px;height:40px;line-height:40px;background:var(--card);color:var(--ink);border-bottom-color:var(--line-2);font-size:20px}
.leaflet-bar a:hover,.leaflet-bar a:focus{background:var(--paper-2);color:var(--ink)}
.leaflet-bar a.leaflet-disabled{background:var(--paper-2);color:var(--mute)}
.leaflet-container .leaflet-control-attribution{background:color-mix(in srgb,var(--card) 90%,transparent);color:var(--ink-2);font:500 .72rem/1.5 var(--sans);padding:2px 8px;border-radius:8px 0 0 0}
.leaflet-container .leaflet-control-attribution a{color:var(--ink);text-decoration:underline}
.leaflet-popup-content-wrapper{background:var(--card);color:var(--ink);border:1px solid var(--line-2);border-radius:16px;box-shadow:var(--shadow-up);padding:0}
.leaflet-popup-tip{background:var(--card);box-shadow:none;border:1px solid var(--line-2)}
.leaflet-popup-content{margin:16px 18px 16px 16px;font:400 .95rem/1.4 var(--sans)}
.leaflet-container a.leaflet-popup-close-button{width:40px;height:40px;font:400 22px/40px var(--sans);color:var(--mute);top:0;right:0}
.leaflet-container a.leaflet-popup-close-button:hover{color:var(--ink)}
.pop{display:flex;gap:12px;align-items:flex-start}
.pop .tile{width:42px;height:42px;border-radius:12px}
.pop .tile svg{width:32px;height:32px}
.pop-in{min-width:0;padding-right:18px}
.leaflet-popup-content .pop-name{margin:0 0 3px;font:600 1.14rem/1.2 var(--serif);letter-spacing:-.01em;color:var(--ink)}
.leaflet-popup-content .type{margin:0 0 9px}
.pop .badge{font-size:.76rem}
.pop-link{display:flex;align-items:center;min-height:40px;margin:6px 0 -8px;font-weight:700}
.pop-link::after{content:"\2192";margin-left:6px}

/* the list beside (or under) the map */
.map-side .sub{margin:0 0 14px}
.map-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ml{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:14px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:14px 14px 14px 16px}
.ml .tile{width:44px;height:44px;border-radius:12px}
.ml .tile svg{width:34px;height:34px}
.ml h3{margin:0 0 2px;font-size:1.08rem}
.ml h3 a{color:var(--ink);text-decoration:none;display:inline-block;padding:4px 0}
.ml h3 a:hover{text-decoration:underline}
.ml .type{margin:0 0 8px;font-size:.88rem}
.ml .badge{font-size:.76rem;padding:5px 10px}
.pin-btn svg{width:20px;height:20px}
.js .pin-btn{display:inline-flex}
/* phones: each filter group is one swipeable row, so the map starts near the top of the screen */
@media (max-width:700px){
  .map-tools{gap:6px;margin-bottom:16px}
  .map-tools .f-row{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:2px}
  .map-tools .f-row::-webkit-scrollbar{display:none}
  .map-tools .f-row>span{flex:0 0 3.4rem}
  .map-tools .chip{flex:0 0 auto;min-height:40px;padding:0 14px}
}
