/* bltn.club maps */
.bmap { position: relative; border-radius: 22px; overflow: hidden; background: #E9E4D8; box-shadow: var(--shadow); border: 1px solid rgba(27,26,31,.05); isolation: isolate; }
.bmap .bmap-canvas { width: 100%; height: var(--h, 420px); }
.bmap .leaflet-container { font-family: var(--body); background: #E9E4D8; }
.bmap .leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.75); border-radius: 8px 0 0 0; }
.bmap .leaflet-control-zoom { border: 0 !important; box-shadow: 0 6px 18px rgba(0,0,0,.14) !important; border-radius: 14px !important; overflow: hidden; margin: 0 12px 26px 0 !important; }
.bmap .leaflet-control-zoom a { width: 38px !important; height: 38px !important; line-height: 38px !important; font-size: 20px !important; color: var(--ink) !important; border-color: var(--line) !important; }

/* tap-to-explore overlay */
.bmap-gate { position: absolute; inset: 0; z-index: 500; display: flex; align-items: flex-end; justify-content: center; padding: 18px; cursor: pointer; background: linear-gradient(180deg, transparent 45%, rgba(27,26,31,.28)); border: 0; width: 100%; font: inherit; }
.bmap-gate span { display: inline-flex; align-items: center; gap: 9px; background: #fff; color: var(--ink); font-weight: 800; font-size: 15px; padding: 12px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.bmap-gate span svg { width: 18px; height: 18px; color: #2F8CFF; }
.bmap-gate:hover span { transform: translateY(-1px); }

/* status line */
.bmap-status { position: absolute; z-index: 600; left: 12px; right: 64px; top: 12px; background: rgba(27,26,31,.88); color: #fff; font-size: 13.5px; font-weight: 600; padding: 10px 14px; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); pointer-events: none; }
.bmap-status[data-kind="err"] { background: #A11235; }
.bmap-status[hidden] { display: none; }

/* locate button */
.bmap-locate { display: inline-flex; align-items: center; gap: 7px; border: 0; background: #fff; color: var(--ink); font: inherit; font-weight: 800; font-size: 13.5px; padding: 10px 14px 10px 11px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.16); cursor: pointer; margin: 12px 12px 0 0 !important; }
.bmap-locate svg { width: 18px; height: 18px; color: #2F8CFF; }
.bmap-locate:hover { background: var(--paper); }

/* category teardrop pins */
.bpin { background: none; border: 0; }
.bpin span { position: absolute; left: 50%; top: 0; width: 26px; height: 26px; margin-left: -13px; background: var(--c); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,.28); transition: transform .15s; }
.bpin span::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.bpin.big span { width: 34px; height: 34px; margin-left: -17px; border-width: 3.5px; }
.bpin.big span::after { inset: 8px; }
.bpin.faded span { opacity: .8; transform: rotate(-45deg) scale(.85); }
.bpin.x span { background: #fff; border-color: var(--c); }
.bpin.x span::after { background: var(--c); inset: 9px; }
.leaflet-marker-icon.bpin:hover span { transform: rotate(-45deg) scale(1.12); }

/* you are here */
.bme { background: none; border: 0; }
.bme span { position: absolute; inset: 3px; border-radius: 50%; background: #2F8CFF; border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(47,140,255,.5), 0 2px 8px rgba(0,0,0,.3); animation: bme 1.8s infinite; }
@keyframes bme { 70% { box-shadow: 0 0 0 16px rgba(47,140,255,0), 0 2px 8px rgba(0,0,0,.3); } 100% { box-shadow: 0 0 0 0 rgba(47,140,255,0), 0 2px 8px rgba(0,0,0,.3); } }

/* popups */
.bpopwrap .leaflet-popup-content-wrapper, .leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: 0 14px 40px rgba(0,0,0,.2); padding: 0; }
.leaflet-popup-content { margin: 0; }
.bpop { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 13px; border-left: 5px solid var(--c, var(--ink)); min-width: 200px; color: var(--ink) !important; text-decoration: none !important; font-family: var(--body); }
.bpop b { font-family: var(--display); font-size: 16px; line-height: 1.2; letter-spacing: -.01em; margin: 2px 0 2px; }
.bpop span { font-size: 12.5px; color: var(--ink-3); line-height: 1.35; }
.bpop .bpop-cat { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 75%, #1B1A1F); }
.bpop .bpop-foot { margin-top: 4px; color: var(--ink-2); font-weight: 700; }
.bpop .bpop-foot strong { color: #1D6FE0; }
.bpop em { color: #A11235; font-style: normal; }
a.bpop:hover b { text-decoration: underline; }

/* sections using maps */
.map-section .section-head p a { font-weight: 700; color: var(--ink); text-decoration: underline; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 11px; height: 11px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.near-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 16px; }
.near-list a { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.near-list a i { width: 10px; height: 40px; border-radius: 6px; background: var(--c); }
.near-list a b { display: block; font-size: 15px; line-height: 1.25; }
.near-list a span { font-size: 12.5px; color: var(--ink-3); }
.near-list a em { font-style: normal; font-weight: 800; font-size: 13px; color: #1D6FE0; white-space: nowrap; }

/* event page mini map */
.where-card { padding: 0; overflow: hidden; margin-top: 12px; }
.where-card .bmap { border-radius: 0; box-shadow: none; border: 0; }
.where-card .where-foot { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 16px; font-size: 13.5px; }
.where-card .where-foot a { font-weight: 700; color: #1D6FE0; }

/* picker in the event form */
.pick { border-radius: 18px; overflow: hidden; border: 1.5px solid var(--line-2); background: #fff; }
.pick .bmap { border-radius: 0; box-shadow: none; border: 0; }
.pick-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); }
.pick-tools .hint { flex: 1 1 100%; font-size: 13px; color: var(--ink-3); }
.pick-tools .hint[data-kind="ok"] { color: #0A7A4C; font-weight: 600; }
.pick-tools .hint[data-kind="err"] { color: #A11235; font-weight: 600; }
.pick:not(.pinned) .pick-tools #pinClear { display: none; }
.pick .bmap-canvas { cursor: crosshair; }

/* full map page */
.map-page .bmap .bmap-canvas { height: min(68vh, 640px); }
.map-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }

@media (max-width: 760px) {
  .bmap { border-radius: 18px; }
  .bmap .bmap-canvas { height: var(--hm, 340px); }
  .map-page .bmap { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .map-page .bmap .bmap-canvas { height: 62vh; }
  .map-filters { flex-wrap: nowrap; overflow-x: auto; margin: 6px -16px 14px; padding: 0 16px 4px; scrollbar-width: none; }
  .map-filters .chip { flex: none; }
  .bmap-locate span { display: none; }
  .bmap-locate { padding: 11px; }
  .bmap-status { right: 60px; font-size: 13px; }
  .near-list { grid-template-columns: 1fr; }
  .pick .bmap-canvas { height: 280px; }
}

/* soften OpenStreetMap tiles toward the paper palette */
.bmap .leaflet-tile-pane { filter: saturate(.55) sepia(.14) brightness(1.03) contrast(.96); }
