/* ============================================================
   Band Events Map — Frontend Styles
   ============================================================ */

.bem-frontend {
  --bem-ink: #000000;
  --bem-paper: #ffffff;
  --bem-accent: #b00500;
  --bem-accent-soft: rgba(176, 5, 0, 0.08);
  --bem-accent-soft-strong: rgba(176, 5, 0, 0.14);
  --bem-muted: rgba(0, 0, 0, 0.64);
  --bem-border: rgba(0, 0, 0, 0.1);
  --bem-shadow: 0 28px 64px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  clear: both;
  width: 100%;
  max-width: 100%;
  margin: 2.25rem 0;
  padding: clamp(1rem, 2vw, 1.65rem);
  border: 1px solid var(--bem-border);
  border-top: 4px solid var(--bem-accent);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(176, 5, 0, 0.06), transparent 26%),
    linear-gradient(180deg, #ffffff, #fffdfd 60%);
  box-shadow: var(--bem-shadow);
  color: var(--bem-ink);
  font-family: "PT Serif", serif;
  font-size: 16px;
  overflow: visible;
  isolation: isolate;
}

.bem-frontend *,
.bem-frontend *::before,
.bem-frontend *::after {
  box-sizing: border-box;
}

.bem-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bem-frontend__header,
.bem-frontend__heading,
.bem-frontend__controls,
.bem-search-wrap,
.bem-frontend__layout,
.bem-sidebar,
.bem-sidebar__header,
.bem-event-list,
.bem-event-card,
.bem-event-card__meta,
.bem-no-events,
.bem-popup {
  margin: 0;
}

.bem-frontend__header {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 26rem);
  gap: 1.75rem;
  align-items: end;
  margin-bottom: 1.7rem;
}

.bem-frontend__heading {
  min-width: 0;
  max-width: 42rem;
}

.bem-frontend__eyebrow {
  margin: 0 0 0.45rem;
  color: var(--bem-accent);
  font-family: "Filicudi", serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.bem-frontend__title {
  margin: 0;
  color: var(--bem-ink);
  font-family: "Filicudi", serif;
  font-size: clamp(2.15rem, 4vw, 3.15rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.bem-frontend__intro {
  margin: 0.95rem 0 0;
  max-width: 40rem;
  color: var(--bem-muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.bem-frontend__controls {
  min-width: 0;
  padding: 1.15rem 1.15rem 1.1rem;
  border: 1px solid rgba(176, 5, 0, 0.12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(176, 5, 0, 0.05), rgba(255, 255, 255, 0.99));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.bem-search-label {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: var(--bem-ink);
  font-family: "Filicudi", serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bem-search-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
}

.bem-search-input {
  width: 100%;
  min-width: 0;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 16px;
  background: #ffffff;
  color: var(--bem-ink);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bem-search-input::placeholder {
  color: rgba(0, 0, 0, 0.46);
}

.bem-search-input:focus {
  border-color: var(--bem-accent);
  box-shadow: 0 0 0 4px rgba(176, 5, 0, 0.12);
}

.bem-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.92rem 1rem;
  border: 1px solid var(--bem-accent);
  border-radius: 14px;
  background: var(--bem-accent);
  color: #ffffff;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bem-search-clear:hover,
.bem-search-clear:focus {
  border-color: #8f0400;
  background: #8f0400;
  color: #ffffff;
}

.bem-search-clear[hidden] {
  display: none !important;
}

.bem-search-hint {
  margin: 0.65rem 0 0;
  color: var(--bem-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.bem-frontend__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(20rem, 0.95fr);
  gap: 1.55rem;
  align-items: start;
  min-height: 0;
}

.bem-map-container,
.bem-sidebar {
  min-height: 0;
}

.bem-map-container {
  position: sticky;
  top: clamp(1rem, 2vw, 1.5rem);
  align-self: start;
  min-width: 0;
  height: clamp(24rem, 72vh, var(--bem-map-height, 600px));
  min-height: clamp(24rem, 72vh, var(--bem-map-height, 600px));
  overflow: hidden;
  border: 1px solid var(--bem-border);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.08);
}

.bem-map-container.is-touch-locked .bem-public-map {
  touch-action: pan-y;
}

.bem-public-map {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.bem-map-locate-control {
  margin-top: 0.95rem;
  margin-right: 0.95rem;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.bem-map-locate-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.bem-map-locate-button::before,
.bem-map-locate-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--bem-accent);
  transform: translate(-50%, -50%);
  transition: background 0.2s ease;
}

.bem-map-locate-button::before {
  width: 18px;
  height: 2px;
}

.bem-map-locate-button::after {
  width: 2px;
  height: 18px;
}

.bem-map-locate-button:hover,
.bem-map-locate-button:focus {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(176, 5, 0, 0.14);
}

.bem-map-locate-button:disabled {
  cursor: wait;
}

.bem-map-locate-button__icon {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  border: 2px solid var(--bem-accent);
  border-radius: 999px;
  background: rgba(176, 5, 0, 0.08);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.bem-map-locate-button__icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--bem-accent);
  transform: translate(-50%, -50%);
  transition: background 0.2s ease;
}

.bem-map-locate-button[data-state="loading"] .bem-map-locate-button__icon {
  animation: bem-locate-pulse 1s ease-in-out infinite;
}

.bem-map-locate-button[data-state="found"] {
  background: var(--bem-accent);
}

.bem-map-locate-button[data-state="found"]::before,
.bem-map-locate-button[data-state="found"]::after {
  background: rgba(255, 255, 255, 0.7);
}

.bem-map-locate-button[data-state="found"] .bem-map-locate-button__icon {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.bem-map-locate-button[data-state="found"] .bem-map-locate-button__icon::before {
  background: #ffffff;
}

.bem-map-locate-button[data-state="blocked"],
.bem-map-locate-button[data-state="unavailable"] {
  background: #fff3f1;
}

.bem-map-locate-button[data-state="blocked"]::before,
.bem-map-locate-button[data-state="blocked"]::after,
.bem-map-locate-button[data-state="unavailable"]::before,
.bem-map-locate-button[data-state="unavailable"]::after {
  background: #8f0400;
}

@keyframes bem-locate-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.12);
    opacity: 0.7;
  }
}

.bem-map-mobile-controls {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  left: 0.9rem;
  z-index: 500;
  display: grid;
  gap: 0.5rem;
  pointer-events: none;
}

.bem-map-mobile-controls[hidden] {
  display: none !important;
}

.bem-map-touch-toggle,
.bem-map-touch-hint {
  pointer-events: auto;
}

.bem-map-touch-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.88rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.78);
  color: #ffffff;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.bem-map-touch-hint {
  margin: 0;
  padding: 0.72rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--bem-ink);
  font-size: 0.85rem;
  line-height: 1.45;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.bem-sidebar {
  display: flex;
  flex-direction: column;
  align-self: start;
  min-width: 0;
  height: clamp(24rem, 72vh, var(--bem-map-height, 600px));
  max-height: clamp(24rem, 72vh, var(--bem-map-height, 600px));
  overflow: hidden;
  border: 1px solid var(--bem-border);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.08);
}

.bem-sidebar__header {
  display: grid;
  gap: 0.42rem;
  padding: 1.2rem 1.2rem 1rem;
  border-bottom: 1px solid var(--bem-border);
  background:
    linear-gradient(180deg, rgba(176, 5, 0, 0.06), rgba(255, 255, 255, 0.98) 72%),
    #ffffff;
}

.bem-sidebar__kicker {
  color: var(--bem-accent);
  font-family: "Filicudi", serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bem-event-count {
  color: var(--bem-ink);
  font-family: "Filicudi", serif;
  font-size: 1.22rem;
  line-height: 1.2;
}

.bem-sidebar__note {
  margin: 0.05rem 0 0;
  color: var(--bem-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.bem-event-list {
  display: grid;
  gap: 1rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: auto;
  padding: 1.1rem 1.15rem 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(176, 5, 0, 0.04));
}

.bem-event-list::-webkit-scrollbar {
  width: 10px;
}

.bem-event-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid transparent;
  background: rgba(0, 0, 0, 0.18);
  background-clip: padding-box;
}

.bem-event-card {
  display: grid;
  gap: 0.9rem;
  width: auto;
  min-width: 0;
  padding: 1.2rem 1.2rem 1.15rem;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 248, 248, 0.95));
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
  outline: none;
}

.bem-event-card:hover,
.bem-event-card:focus {
  transform: translateY(-1px);
  border-color: var(--bem-accent-soft-strong);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
}

.bem-event-card.is-active {
  border-color: var(--bem-accent-soft-strong);
  background: linear-gradient(180deg, rgba(176, 5, 0, 0.08), rgba(255, 255, 255, 0.98));
  box-shadow:
    inset 4px 0 0 var(--bem-accent),
    0 18px 34px rgba(0, 0, 0, 0.1);
}

.bem-event-card__band {
  margin: 0;
  color: var(--bem-ink);
  font-family: "Filicudi", serif;
  font-size: 1.28rem;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.bem-event-card__date {
  margin: 0;
  color: var(--bem-accent);
  font-size: 0.98rem;
  font-weight: 700;
}

.bem-event-card__venue {
  margin: 0;
  color: var(--bem-muted);
  font-size: 0.98rem;
  line-height: 1.48;
}

.bem-event-card__meta {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  min-width: 0;
}

.bem-event-card__cost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.25rem;
  min-height: 4rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--bem-ink);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
}

.bem-event-card__link,
.bem-popup__link,
.bem-event-card__link:link,
.bem-event-card__link:visited,
.bem-popup__link:link,
.bem-popup__link:visited {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  min-height: 4rem;
  padding: 0.95rem 1.15rem;
  border: none;
  border-radius: 18px;
  background: var(--bem-accent);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-decoration: none;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.bem-event-card__link .bem-button-label,
.bem-popup__link .bem-button-label {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.bem-event-card__link::after,
.bem-popup__link::after {
  content: "\2192";
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}

.bem-event-card__link:hover,
.bem-event-card__link:focus,
.bem-event-card__link:active,
.bem-popup__link:hover,
.bem-popup__link:focus,
.bem-popup__link:active {
  background: #8f0400;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(176, 5, 0, 0.22);
}

.bem-event-card__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 4rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--bem-ink);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bem-no-events {
  display: grid;
  place-items: center;
  gap: 0.45rem;
  min-height: 14rem;
  padding: 2rem 1.2rem;
  border: 1px dashed rgba(0, 0, 0, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
  color: var(--bem-muted);
}

.bem-no-events__title {
  margin: 0;
  color: var(--bem-ink);
  font-family: "Filicudi", serif;
  font-size: 1.24rem;
}

.bem-no-events__body {
  margin: 0;
  max-width: 18rem;
  font-size: 0.98rem;
  line-height: 1.6;
}

.bem-popup {
  min-width: 14rem;
  padding: 1rem;
  font-family: "PT Serif", serif;
}

.bem-popup--group {
  min-width: 16rem;
  max-width: 18.5rem;
  padding: 0;
}

.bem-frontend .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 22px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.bem-frontend .leaflet-popup-content {
  margin: 0;
}

.bem-frontend .leaflet-popup-tip {
  box-shadow: none;
}

.bem-popup__group-head {
  padding: 1rem 1rem 0.9rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background:
    linear-gradient(180deg, rgba(176, 5, 0, 0.08), rgba(255, 255, 255, 0.96) 85%),
    #ffffff;
}

.bem-popup__band {
  margin: 0;
  color: var(--bem-ink);
  font-family: "Filicudi", serif;
  font-size: 1.18rem;
  line-height: 1.2;
  padding-top: 0.08em;
}

.bem-popup__date,
.bem-popup__venue,
.bem-popup__cost {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
}

.bem-popup__date {
  color: var(--bem-accent);
  font-weight: 700;
  margin-top: 0.55rem;
}

.bem-popup__venue {
  color: var(--bem-muted);
  margin-top: 0.7rem;
}

.bem-popup__cost {
  color: var(--bem-ink);
  font-weight: 700;
  margin-top: 0.45rem;
}

.bem-popup__group-title {
  margin: 0;
  color: var(--bem-ink);
  font-family: "Filicudi", serif;
  font-size: 1.06rem;
  line-height: 1.22;
  padding-top: 0.06em;
}

.bem-popup__group-count {
  margin: 0.38rem 0 0;
  color: var(--bem-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bem-popup__events {
  display: grid;
  gap: 0.65rem;
  max-height: 15rem;
  overflow-y: auto;
  padding: 0.9rem;
  background: #ffffff;
}

.bem-popup__event {
  display: grid;
  gap: 0.6rem;
  padding: 0.8rem 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, rgba(250, 248, 248, 0.92));
}

.bem-popup__event + .bem-popup__event {
  margin-top: 0.05rem;
}

.bem-popup__event-main {
  display: grid;
  gap: 0.3rem;
}

.bem-popup__event-name {
  color: var(--bem-ink);
  font-family: "Filicudi", serif;
  font-size: 0.98rem;
  line-height: 1.22;
  padding-top: 0.05em;
}

.bem-popup__event-date {
  color: var(--bem-accent);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
}

.bem-popup__event-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.bem-popup__event-cost,
.bem-popup__event-status,
.bem-popup__event-link,
.bem-popup__event-link:link,
.bem-popup__event-link:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.55rem 0.8rem;
  border-radius: 13px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bem-popup__event-cost {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.04);
  color: var(--bem-ink);
}

.bem-popup__event-link,
.bem-popup__event-link:link,
.bem-popup__event-link:visited {
  background: var(--bem-accent);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(176, 5, 0, 0.16);
}

.bem-popup__event-status {
  background: rgba(0, 0, 0, 0.06);
  color: var(--bem-muted);
}

.bem-popup__event-link:hover,
.bem-popup__event-link:focus,
.bem-popup__event-link:active {
  background: #8f0400;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.bem-group-marker {
  background: transparent;
  border: 0;
}

.bem-group-marker__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--bem-accent);
  color: #ffffff;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(176, 5, 0, 0.28);
}

.bem-frontend .leaflet-control-zoom a,
.bem-frontend .leaflet-control-zoom a:hover,
.bem-frontend .leaflet-control-zoom a:focus,
.bem-frontend .leaflet-control-zoom a:active {
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 1024px) {
  .bem-frontend__header {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 1rem;
  }

  .bem-frontend__layout {
    grid-template-columns: 1fr;
    min-height: unset;
    gap: 1rem;
  }

  .bem-map-container {
    position: relative;
    top: auto;
    height: min(68vh, 32rem);
    min-height: min(68vh, 32rem);
  }

  .bem-sidebar {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .bem-event-list {
    overflow: visible;
    max-height: none;
  }

  .bem-map-mobile-controls {
    display: grid;
  }
}

@media (max-width: 640px) {
  .bem-frontend {
    margin: 1.25rem 0;
    padding: 0.85rem;
    border-radius: 24px;
  }

  .bem-search-wrap {
    grid-template-columns: 1fr;
  }

  .bem-frontend__title {
    font-size: 1.9rem;
  }

  .bem-frontend__intro {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .bem-frontend__controls,
  .bem-map-container,
  .bem-sidebar {
    border-radius: 20px;
  }

  .bem-map-container {
    height: 22rem;
    min-height: 22rem;
  }

  .bem-map-locate-control {
    margin-right: 0.7rem;
    margin-bottom: 2rem;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
  }

  .bem-map-locate-button {
    width: 40px;
    height: 40px;
  }

  .bem-map-locate-button::before {
    width: 14px;
  }

  .bem-map-locate-button::after {
    height: 14px;
  }

  .bem-map-locate-button__icon {
    width: 15px;
    height: 15px;
  }

  .bem-map-locate-button__icon::before {
    width: 5px;
    height: 5px;
  }

  .bem-sidebar {
    height: auto;
    max-height: none;
  }

  .bem-sidebar__header {
    padding: 1rem 1rem 0.9rem;
  }

  .bem-event-list {
    padding: 0.85rem;
  }

  .bem-event-card {
    padding: 0.9rem;
    border-radius: 18px;
  }

  .bem-event-card__band {
    font-size: 1.08rem;
  }

  .bem-event-card__venue {
    font-size: 0.92rem;
  }

  .bem-event-card__meta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .bem-event-card__cost,
  .bem-event-card__status {
    width: 100%;
  }

  .bem-public-map {
    min-height: 22rem;
  }

  .bem-event-card__link,
  .bem-popup__link {
    font-size: 0.84rem;
  }

  .bem-map-mobile-controls {
    top: 0.7rem;
    right: 0.7rem;
    bottom: auto;
    left: auto;
    gap: 0;
    justify-items: end;
  }

  .bem-map-touch-toggle {
    width: auto;
    min-height: 2.55rem;
    padding: 0.78rem 0.95rem;
    border-radius: 999px;
    background: rgba(28, 28, 28, 0.88);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
  }

  .bem-map-touch-hint {
    display: none;
  }

  .bem-map-container.has-open-popup .bem-map-mobile-controls,
  .bem-map-container.has-open-popup .bem-map-locate-control {
    opacity: 0;
    pointer-events: none;
  }

  .bem-frontend .leaflet-popup-content-wrapper {
    border-radius: 18px;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
  }

  .bem-popup {
    min-width: 0;
    max-width: min(15.5rem, calc(100vw - 7rem));
    padding: 0.8rem;
  }

  .bem-popup--group {
    max-width: min(16.25rem, calc(100vw - 6.5rem));
    padding: 0;
  }

  .bem-popup__band {
    font-size: 1rem;
    line-height: 1.24;
    padding-top: 0.1em;
  }

  .bem-popup__date,
  .bem-popup__venue,
  .bem-popup__cost {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .bem-popup__group-head {
    padding: 0.8rem 0.8rem 0.7rem;
  }

  .bem-popup__group-title {
    font-size: 0.92rem;
    line-height: 1.24;
    padding-top: 0.08em;
  }

  .bem-popup__group-count {
    font-size: 0.72rem;
  }

  .bem-popup__events {
    gap: 0.5rem;
    max-height: 9.75rem;
    padding: 0.7rem;
  }

  .bem-popup__event {
    gap: 0.45rem;
    padding: 0.65rem 0.7rem;
    border-radius: 14px;
  }

  .bem-popup__event-name {
    font-size: 0.86rem;
    line-height: 1.24;
    padding-top: 0.06em;
  }

  .bem-popup__event-date {
    font-size: 0.8rem;
  }

  .bem-popup__event-meta {
    gap: 0.4rem;
  }

  .bem-popup__event-cost,
  .bem-popup__event-status,
  .bem-popup__event-link,
  .bem-popup__event-link:link,
  .bem-popup__event-link:visited {
    min-height: 1.9rem;
    padding: 0.45rem 0.65rem;
    border-radius: 12px;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
  }
}
