/* KX-EVENTS-MAP (27 Nov 2026, preview): Events map page /map/. Dark site palette and Liquid Glass buttons (kx-round2.css),
   shared glass header (kx-header.css). Phone first: 390 px, no horizontal page scroll, tap targets >= 40 px. */
html,body{margin:0;background:#101013;color:#f7f6f4;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
*,*::before,*::after{box-sizing:border-box}
.skip-link{position:absolute;left:-9999px;top:8px;z-index:100;background:#1d1e24;color:#fff;padding:10px 14px;border-radius:8px}
.skip-link:focus{left:8px}
.kxm{display:flex;flex-direction:column;min-height:calc(100dvh - 72px)}
.kxm-bar{padding:14px clamp(14px,4vw,52px) 10px;background:#161619;border-bottom:1px solid #2c2d37;display:flex;flex-wrap:wrap;gap:10px 28px;align-items:flex-end;justify-content:space-between}
.kxm-head{min-width:0}
.kxm-eyebrow{margin:0 0 4px;color:#f1d78f;font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase}
.kxm h1{margin:0;font-size:clamp(22px,3vw,30px);font-weight:800;letter-spacing:-.02em;line-height:1.1}
.kxm-count{margin:4px 0 0;color:#aeb2be;font-size:13px}
.kxm-filters{display:flex;flex-direction:column;gap:8px;min-width:0;max-width:100%}
.kxm-row{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:2px}
.kxm-row::-webkit-scrollbar{display:none}
.kxm-row .kx-lg-btn{flex:0 0 auto;white-space:nowrap}
.kxm-mapwrap{position:relative;flex:1 1 auto;min-height:420px;height:calc(100dvh - 72px - 128px)}
.kxm-map{position:absolute;inset:0;background:#0d0d10}
.kxm-status{position:absolute;left:50%;top:16px;transform:translateX(-50%);z-index:500;margin:0;padding:10px 14px;border-radius:9px;background:rgba(8,10,14,.82);border:1px solid rgba(255,255,255,.28);color:#f7f6f4;font-size:13px;max-width:calc(100% - 24px);text-align:center}
.kxm-about{padding:28px clamp(16px,4vw,52px) 8px;max-width:920px}
.kxm-about h2{margin:0 0 10px;font-size:20px}
.kxm-about p{margin:0 0 12px;color:#aeb2be;font-size:14px;line-height:1.6}
.kxm-links{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.kxm-footer{padding:28px 20px 40px;text-align:center;color:#aeb2be;font-size:13px}
.kxm-footer .footer-brand{color:#fff8ef;font-weight:900;text-decoration:none;letter-spacing:-.02em}
.kxm-footer p{margin:6px 0 0}

/* pins and clusters */
.kxm-pin{background:none;border:0}
.kxm-pin span{position:absolute;left:50%;top:50%;width:16px;height:16px;margin:-8px 0 0 -8px;border-radius:50%;background:#ed1c24;border:2px solid #fff;box-shadow:0 0 0 4px rgba(237,28,36,.25),0 2px 8px rgba(0,0,0,.6)}
.kxm-pin.is-approx span{background:rgba(237,28,36,.35);border:2px dashed #fff}
.kxm-cluster{background:none;border:0}
.kxm-cluster span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;border-radius:50%;color:#fff;font:700 13px/1 Inter,ui-sans-serif,system-ui,sans-serif;
  border:1px solid rgba(255,255,255,.55);background:radial-gradient(circle at 30% 25%,rgba(255,255,255,.22),transparent 45%),linear-gradient(135deg,rgba(255,255,255,.1),rgba(237,28,36,.55) 60%),rgba(20,10,12,.78);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 0 0 5px rgba(237,28,36,.18),0 4px 14px rgba(0,0,0,.55)}
.kxm-pin:focus-visible span,.kxm-cluster:focus-visible span{outline:3px solid #fff;outline-offset:3px}

/* popup card */
.kxm .leaflet-popup-content-wrapper{background:#1d1e24;color:#f7f6f4;border:1px solid #2c2d37;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.6);padding:0}
.kxm .leaflet-popup-tip{background:#1d1e24;border:1px solid #2c2d37}
.kxm .leaflet-popup-content{margin:0;width:auto!important;min-width:250px;max-width:min(320px,calc(100vw - 48px))}
.kxm .leaflet-container a.leaflet-popup-close-button{color:#aeb2be;width:40px;height:40px;font:22px/40px Inter,sans-serif;top:0;right:0}
.kxm-card{display:flex;gap:12px;padding:12px 40px 12px 12px;align-items:flex-start}
.kxm-thumb{flex:0 0 72px;width:72px;height:90px;object-fit:contain;object-position:center top;border-radius:8px}
.kxm-body{min-width:0;display:flex;flex-direction:column;gap:4px}
.kxm-date{color:#f1d78f;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.kxm-title{margin:0;font-size:15px;font-weight:700;line-height:1.25;color:#fff8ef;overflow-wrap:anywhere}
.kxm-venue{color:#aeb2be;font-size:13px;line-height:1.35}
.kxm-approx{color:#aeb2be;font-size:11px;font-style:italic}
.kxm-body .kx-lg-btn{margin-top:6px;align-self:flex-start}
.kxm-list{max-height:min(60vh,420px);overflow-y:auto;padding:4px 0}
.kxm-list-head{margin:0;padding:12px 44px 4px 12px;color:#aeb2be;font-size:12px}
.kxm-list .kxm-card{border-top:1px solid #2c2d37;padding-right:12px}
.kxm-list .kxm-card:first-of-type{border-top:0}

/* Leaflet controls in the dark theme */
.kxm .leaflet-bar a{background:#1d1e24;color:#f7f6f4;border-bottom-color:#2c2d37;width:40px;height:40px;line-height:40px}
.kxm .leaflet-bar a:hover{background:#26272f}
.kxm .leaflet-bar{border:1px solid rgba(255,255,255,.28)}
.kxm .leaflet-control-attribution{background:rgba(16,16,19,.78);color:#aeb2be;font-size:10px}
.kxm .leaflet-control-attribution a{color:#d9dbe2}

@media (max-width:640px){
  .kxm{min-height:calc(100dvh - 64px)}
  .kxm-bar{padding:10px 12px 8px;gap:8px}
  .kxm-filters{width:100%}
  .kxm-mapwrap{height:calc(100dvh - 64px - 170px);min-height:380px}
}
@media (prefers-reduced-motion:reduce){.kxm *{transition:none!important;animation:none!important}}
