.batf-city-filter { scroll-margin-top: 180px; }
.batf-city-filter h2 { font-family: var(--batf-font); font-size: 20px; line-height: 1.3; margin: 0 0 16px; }
.batf-city-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 24px; }
.batf-city-select { position: relative; width: 240px; max-width: 100%; }
.batf-city-select::after, .batf-date-select::after { content: ''; position: absolute; right: 14px; top: 19px; border: 5px solid transparent; border-bottom: 0; border-top-color: currentColor; pointer-events: none; }
.batf-city-select:has(select:open)::after, .batf-date-select:has(select:open)::after { transform: rotate(180deg); }
.batf-city-form select, .batf-date-range input { min-height: 44px; box-sizing: border-box; background: #fff; color: #050505; border: 1px solid #050505; padding: 10px 36px 10px 12px; font: inherit; font-size: 16px; line-height: 22px; border-radius: 0; }
.batf-city-form select { appearance: none; width: 100%; cursor: pointer; }
.batf-date-select { position: relative; width: 220px; max-width: 100%; }
.batf-date-range { display: grid; width: 472px; max-width: 100%; box-sizing: border-box; grid-template-columns: 240px minmax(0, 1fr); align-items: end; gap: 12px; }
.batf-date-range[hidden] { display: none; }
.batf-date-range label { display: block; width: 100%; max-width: 100%; min-width: 0; font-size: 14px; line-height: 20px; }
.batf-date-range input { appearance: none; -webkit-appearance: none; display: flex; align-items: center; width: 100%; max-width: 100%; min-width: 0; height: 44px; overflow: hidden; padding: 0 12px; margin-top: 4px; line-height: 42px; text-align: left; color-scheme: light; }
.batf-date-range input::-webkit-datetime-edit { display: inline-flex; align-items: center; min-width: 0; padding: 0; line-height: 42px; }
.batf-date-range input::-webkit-date-and-time-value { display: flex; align-items: center; min-width: 0; height: 42px; padding: 0; margin: 0; line-height: 42px; text-align: left; }
.batf-city-form :is(select, input),
.batf-city-form :is(select, input):is(:hover, :focus, :focus-visible, :active) { outline: none; box-shadow: none; border-color: #050505; background: #fff; color: #050505; transform: none; transition: none; }
.batf-event-map-section { margin: 0 0 40px; }
.batf-event-map-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 22px 0 14px; }
.batf-event-map-heading h2 { font-family: var(--batf-font); font-size: 24px; margin: 0; line-height: 1.3; }
.batf-event-map-heading span { font-size: 15px; flex-shrink: 0; }
.batf-event-map { position: relative; height: 360px; width: 100%; border: 1px solid #050505; background: #eee; color: #050505; z-index: 0; font-family: var(--batf-font); }
.batf-event-map .leaflet-tile-pane { filter: grayscale(1); }
.batf-event-map .leaflet-control-zoom { border: 1px solid #050505; border-radius: 0; box-shadow: 3px 3px 0 #050505; }
.batf-event-map .leaflet-control-zoom a { width: 36px; height: 36px; line-height: 36px; background: #fff; color: #050505; border-radius: 0; }
.batf-event-map .leaflet-control-zoom a:hover,
.batf-event-map .leaflet-control-zoom a:focus,
.batf-event-map .leaflet-control-zoom a:active { background: #000; color: #fff; }
.batf-event-map .leaflet-control-attribution { font-size: 11px; color: #111; background: #fff; }
.batf-event-map .leaflet-control-attribution a { color: #111; }
.batf-event-map .batf-map-marker { background: #000; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 1px 5px #0006; display: grid; place-items: center; }
.batf-map-marker-logo { display: block; width: 16px; height: 12px; background: url('../img/favicon.svg') center / contain no-repeat; }
.batf-map-marker-count { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 3px; border: 1px solid #000; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-size: 10px; font-weight: 800; line-height: 1; }
.batf-map-marker:focus-visible { outline: 3px solid #050505; outline-offset: 3px; }
.batf-event-map .leaflet-popup-content-wrapper { border-radius: 4px; background: #fff; color: #050505; border: 1px solid #050505; }
.batf-map-popup strong { display: block; font-size: 16px; }
.batf-map-popup p { font-size: 12px; margin: 8px 0 14px; line-height: 1.5; }
.batf-event-map .batf-map-popup a { display: block; color: #050505; font-weight: 700; text-decoration: underline; line-height: 1.4; font-size: 14px; margin-top: 12px; }
.batf-map-popup a:hover { text-decoration-thickness: 2px; }
.batf-map-popup small { display: block; font-size: 12px; margin-top: 4px; }
.batf-map-status { position: absolute; top: 8px; left: 8px; right: 56px; z-index: 500; background: #fff; color: #050505; padding: 8px 12px; font-size: 14px; border: 1px solid #050505; }
.batf-map-status[hidden] { display: none; }
.batf-map-empty, .batf-map-note { font-size: 15px; margin: 12px 0; }
@media (max-width: 760px) {
    .batf-city-filter { scroll-margin-top: 140px; }
    .batf-city-filter h2 { font-size: 18px; }
    .batf-city-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 10px; }
    .batf-city-select, .batf-date-select { width: 100%; min-width: 0; }
    .batf-date-range:not([hidden]) { display: contents; }
    .batf-event-map { height: 300px; }
    .batf-event-map-heading h2 { font-size: 20px; }
    .batf-event-map-section { margin-bottom: 28px; }
}
