/* Events page — advanced filter bar (reference layout) */
.events-promo-section {
  margin-bottom: 28px;
}

.events-filter-wrap {
  margin-bottom: 20px;
}

.events-filter-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--charcoal);
  margin: 0 0 10px;
  padding: 0 4px;
}

.events-filter-inbox-title {
  margin: 0 0 12px;
  font-family: 'DM Serif Display', serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.95);
}

.events-filter-shell {
  --filter-surface: #7a5290;
  --filter-surface-deep: #634268;
  --filter-divider: rgba(255, 255, 255, 0.22);
  --filter-label: rgba(255, 255, 255, 0.95);
  --filter-muted: rgba(255, 255, 255, 0.78);
  margin-bottom: 0;
  padding: 0;
  border-radius: 18px;
  background: var(--filter-surface);
  border: none;
  box-shadow: 0 12px 36px rgba(74, 44, 92, 0.28);
  overflow: visible;
}

/* Keep typeahead above the Leaflet map (map panel uses z-index: 1). */
.events-filter-shell:has(.filter-field-search:focus-within),
.events-filter-shell:has(.filter-field-postcode:focus-within) {
  position: relative;
  z-index: 30;
}

.events-results-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
  padding: 0 4px;
  font-size: var(--text-size-body);
  color: var(--text-muted);
  scroll-margin-top: 96px;
}

#events-search-query {
  font-weight: 500;
  color: var(--charcoal);
}

.events-filter-bar {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 20px 22px 18px;
  box-shadow: none;
}

.events-filter-shell .filter-bar-row-top,
.events-filter-shell .filter-bar-row-types,
.events-filter-shell .filter-bar-row-bottom {
  border-color: var(--filter-divider);
}

.events-filter-shell .filter-bar-chip-label,
.events-filter-shell .filter-format-group legend,
.events-filter-shell .filter-org-rating-group legend {
  color: var(--filter-label);
}

.events-filter-shell .filter-checkbox {
  color: var(--filter-label);
}

.events-filter-shell .filter-checkbox-box {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.events-filter-shell .filter-checkbox input:checked + .filter-checkbox-box {
  background: var(--gold);
  border-color: var(--gold);
}

.events-filter-shell .filter-checkbox input:checked + .filter-checkbox-box::after {
  border-color: var(--filter-surface-deep);
}

.events-filter-shell .filter-field-icon,
.events-filter-shell .filter-date-icon {
  color: rgba(255, 255, 255, 0.9);
}

.events-filter-shell .event-type-chip {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.1);
  color: var(--filter-label);
}

.events-filter-shell .event-type-chip:hover {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.events-filter-shell .event-type-chip.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--filter-surface-deep);
}

.events-filter-shell .event-type-chip.is-zero:not(.is-active) {
  opacity: 0.65;
}

.events-filter-shell .filter-date-wrap {
  border-color: rgba(255, 255, 255, 0.45);
  background: var(--cream);
}

.events-filter-shell .filter-field input {
  background: var(--cream);
  border-color: rgba(255, 255, 255, 0.45);
}

.events-filter-shell .filter-field input::placeholder {
  color: rgba(74, 68, 70, 0.55);
}

.events-filter-shell .filter-field input:focus {
  border-color: #fff;
  background: var(--cream);
}

.events-filter-shell .filter-date-wrap.is-active {
  border-color: var(--gold);
  background: var(--gold-light);
}

.events-filter-shell .filter-more-toggle {
  color: var(--filter-surface-deep);
  background: linear-gradient(135deg, #fff8ef 0%, #fff 55%, #f7eef8 100%);
  border: 2px dashed rgba(255, 255, 255, 0.85);
  box-shadow:
    0 2px 12px rgba(36, 18, 48, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.events-filter-shell .filter-more-toggle:hover {
  background: #fff;
  border-color: #fff;
  transform: translateY(-1px);
}

.events-filter-shell .filter-more-toggle[aria-expanded='true'] {
  color: var(--filter-surface-deep);
  background: var(--gold);
  border-style: solid;
  border-color: var(--gold);
  box-shadow: 0 2px 12px rgba(18, 8, 28, 0.22);
}

.events-filter-shell .filter-price-bound {
  border-color: rgba(255, 255, 255, 0.45);
  background: var(--cream);
}

.events-filter-shell .filter-price-bound:focus-within {
  border-color: #fff;
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 1px;
}

.events-filter-shell .filter-price-bound-label {
  color: var(--filter-surface-deep);
}

.events-filter-shell .filter-price-bound-input {
  background: transparent;
  border: none;
  color: var(--charcoal);
}

.events-filter-shell .filter-price-bound-input::placeholder {
  color: rgba(74, 68, 70, 0.55);
}

.events-filter-shell .filter-price-bound-input:focus {
  border: none;
  outline: none;
}

.filter-bar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.filter-bar-row-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  z-index: 2;
}

.filter-bar-location-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  flex: 0 1 auto;
  min-width: 0;
}

.filter-bar-row-top .filter-field-postcode {
  flex: 0 1 200px;
  width: 200px;
  max-width: 260px;
  min-width: 0;
}

.filter-bar-location-group.is-disabled {
  opacity: 0.55;
}

.filter-bar-location-group.is-disabled .filter-field input,
.filter-bar-location-group.is-disabled select {
  background: rgba(255, 255, 255, 0.45);
  color: rgba(74, 68, 70, 0.55);
  cursor: not-allowed;
}

.filter-bar-location-group.is-disabled .filter-checkbox {
  cursor: not-allowed;
}

.events-filter-shell .filter-bar-location-group.is-disabled .filter-field input::placeholder {
  color: rgba(74, 68, 70, 0.4);
}

.filter-bar-row-top .filter-field-search {
  flex: 2 1 320px;
  min-width: 220px;
}

.filter-bar-row-top .filter-location-near {
  align-self: center;
}

.filter-bar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

.filter-bar-actions .filter-clear-btn {
  margin-left: 0;
  flex: 0 0 auto;
}

.filter-bar-row-types {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.filter-format-group--with-chips {
  flex: 0 0 auto;
  padding-right: 14px;
  border-right: 1px solid var(--border-soft);
  flex-wrap: nowrap;
  align-items: center;
}

.filter-format-group--prominent {
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.filter-format-group--prominent.filter-format-group--with-chips {
  border-right: 1.5px solid rgba(255, 255, 255, 0.32);
}

.filter-format-group--inline {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  min-width: max-content;
}

.filter-format-group--prominent.filter-format-group--inline {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.filter-format-group--inline .filter-format-pill-face {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

.filter-format-group--inline .filter-format-pill-icon {
  opacity: 0.78;
}

.filter-format-group--inline .filter-format-pill:hover .filter-format-pill-face {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
  color: rgba(255, 255, 255, 0.95);
}

.filter-format-group--inline .filter-format-pill:hover .filter-format-pill-icon {
  opacity: 0.95;
}

.filter-format-group--inline .filter-format-pill input:checked + .filter-format-pill-face {
  background: #fff;
  border-color: #fff;
  color: var(--filter-surface-deep, var(--lavender-deep));
  box-shadow: 0 2px 12px rgba(18, 8, 28, 0.22);
}

.filter-format-group--inline .filter-format-pill input:checked + .filter-format-pill-face .filter-format-pill-icon {
  opacity: 1;
}

.filter-format-group--inline .filter-format-legend {
  margin-right: 2px;
}

.filter-format-legend {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.filter-format-pills {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-width: max-content;
}

.filter-format-pill {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.filter-format-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.filter-format-pill-face {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s, opacity 0.15s;
}

/* Explicit tick box on checkbox pills (In person / Online) — not radio budget chips. */
.filter-format-pill input[type='checkbox'] + .filter-format-pill-face::before {
  content: '';
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  box-sizing: border-box;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.filter-format-pill-icon {
  flex-shrink: 0;
  opacity: 0.92;
}

.filter-format-pill:hover .filter-format-pill-face {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
  color: rgba(255, 255, 255, 0.95);
}

.filter-format-pill input:checked + .filter-format-pill-face {
  background: #fff;
  border-color: #fff;
  color: var(--filter-surface-deep, var(--lavender-deep));
  box-shadow: 0 2px 12px rgba(18, 8, 28, 0.22);
  opacity: 1;
}

.filter-format-pill input[type='checkbox']:checked + .filter-format-pill-face::before {
  border-color: var(--filter-surface-deep, var(--lavender-deep));
  background-color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23634268' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.2l2.8 2.8 6.2-6.2'/%3E%3C/svg%3E");
  background-size: 11px 11px;
  background-position: center;
  background-repeat: no-repeat;
}

.filter-format-pill input:checked + .filter-format-pill-face .filter-format-pill-icon {
  opacity: 1;
}

.filter-format-pill input[type='checkbox']:not(:checked) + .filter-format-pill-face {
  opacity: 0.72;
}

.filter-format-pill input:not(:checked) + .filter-format-pill-face .filter-format-pill-icon {
  opacity: 0.72;
}

.filter-format-pill input:focus-visible + .filter-format-pill-face {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.events-filter-shell .filter-format-group--with-chips {
  border-right-color: var(--filter-divider);
}

.filter-bar-row-types .event-type-chips {
  flex: 1 1 200px;
  width: auto;
  padding-bottom: 0;
}

.event-type-chips {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.event-type-chips::-webkit-scrollbar {
  display: none;
}

.event-type-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.event-type-chip:hover {
  border-color: var(--lavender-soft);
  color: var(--charcoal);
}

.event-type-chip.is-active {
  background: var(--lavender-deep);
  border-color: var(--lavender-deep);
  color: #fff;
}

.event-type-chip-count {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
}

.event-type-chip.is-zero:not(.is-active) {
  opacity: 0.55;
}


.filter-location-radius {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.filter-location-radius select {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 28px 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #fff;
  color: var(--charcoal);
  min-height: 42px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b5f75' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  touch-action: manipulation;
}

.filter-location-radius select:focus {
  outline: 2px solid var(--lavender);
  outline-offset: 1px;
  border-color: var(--lavender-deep);
}

.filter-location-radius select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.filter-location-near {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.filter-near-control {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Higher specificity than .filter-checkbox so only one Near me control shows */
.filter-checkbox.filter-near-control-desktop {
  display: none;
}

.filter-checkbox.filter-near-control-mobile {
  display: inline-flex;
}

.filter-near-radius select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.filter-field {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-field input,
.filter-field select {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  padding: 11px 14px 11px 40px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #fff;
  color: var(--charcoal);
}

.filter-field input:focus,
.filter-field select:focus {
  outline: 2px solid var(--lavender);
  outline-offset: 1px;
  border-color: var(--lavender-deep);
}

.filter-field-postcode input {
  padding-left: 38px;
}

.filter-field-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  pointer-events: none;
  color: var(--lavender-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-field-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.filter-field-search input {
  padding-right: 40px;
}

.filter-field-search .filter-field-icon-end {
  left: auto;
  right: 12px;
}

.events-filter-search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(45, 35, 50, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(45, 35, 50, 0.18);
  max-height: 280px;
  overflow-y: auto;
}

.events-filter-search-suggest li {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
}

.networking-region-suggest-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.networking-region-suggest-name {
  font-weight: 600;
  color: var(--charcoal);
}

.networking-region-suggest-hint {
  font-size: 12px;
  font-weight: 500;
  color: var(--lavender-deep);
}

.filter-city-page-cta {
  display: block;
  margin: 6px 0 0;
  padding: 0 2px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--lavender-deep);
  text-decoration: none;
}

.filter-city-page-cta:hover,
.filter-city-page-cta:focus-visible {
  text-decoration: underline;
}

.filter-city-page-cta[hidden] {
  display: none !important;
}

.events-filter-search-suggest li:hover,
.events-filter-search-suggest li.is-active {
  background: #f5eef8;
  color: var(--lavender-deep);
}

.filter-bar-chip-label,
.filter-format-group legend {
  font-size: 11px;
  font-weight: 600;
  color: var(--charcoal);
}

.filter-format-group,
.filter-price-tier-group,
.filter-price-range,
.filter-org-rating-group {
  border: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.filter-price-range {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
}

.filter-bar-primary .filter-price-range--inline,
.filter-price-range--inline {
  flex: 0 1 auto;
  width: auto;
  flex-wrap: nowrap;
}

.filter-bar-primary .filter-price-range--inline .filter-price-range-controls {
  flex-wrap: nowrap;
}

.filter-bar-primary .filter-price-range--inline .filter-price-bounds {
  flex: 0 1 auto;
}

.filter-bar-primary .filter-price-range--inline .filter-price-bound {
  flex: 0 0 auto;
  max-width: 150px;
}

.filter-rating-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
}

.filter-rating-stars {
  letter-spacing: -0.08em;
  font-size: 12px;
  line-height: 1;
}

.filter-price-range-controls {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.filter-price-range-controls .filter-checkbox-free {
  flex-shrink: 0;
}

.filter-price-range-controls .filter-price-bounds {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1 1 200px;
  min-width: 0;
}

.filter-price-bound {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex: 1 1 120px;
  min-width: 0;
  max-width: 200px;
  padding: 0 14px;
  min-height: 42px;
  border: 1.5px solid var(--border-soft);
  border-radius: 999px;
  background: #fff;
  cursor: text;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.filter-price-bound:hover {
  border-color: var(--lavender);
  box-shadow: 0 2px 10px rgba(91, 47, 153, 0.08);
}

.filter-price-bound:focus-within {
  border-color: var(--lavender-deep);
  outline: 2px solid rgba(107, 78, 155, 0.2);
  outline-offset: 1px;
}

.filter-price-bound-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lavender-deep);
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-price-bound-input {
  flex: 1 1 auto;
  width: auto;
  min-width: 2.5rem;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--charcoal);
  -moz-appearance: textfield;
}

.filter-price-bound-input::-webkit-outer-spin-button,
.filter-price-bound-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.filter-price-bound-input:focus {
  border: none;
  outline: none;
}

.filter-price-range-controls .filter-price-range-row {
  flex: 1 1 140px;
  min-width: 0;
}

.filter-price-range-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.filter-price-max-input {
  width: 4.75rem;
  min-width: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #fff;
  color: var(--charcoal);
  text-align: center;
  -moz-appearance: textfield;
}

.filter-price-max-input::-webkit-outer-spin-button,
.filter-price-max-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.filter-price-max-input:focus {
  outline: 2px solid var(--lavender);
  outline-offset: 1px;
  border-color: var(--lavender-deep);
}

.filter-price-range-row--max output {
  min-width: 3.5rem;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: var(--charcoal);
  white-space: nowrap;
}

.filter-price-range-row input[type='range'] {
  width: 100%;
  accent-color: var(--lavender-deep);
}

.filter-bar-row-bottom {
  justify-content: flex-start;
  gap: 10px 12px;
}

.filter-bar-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.filter-bar-cluster > .filter-more-panel:not([hidden]),
.filter-bar-cluster > .filter-bar-row-types {
  flex: 1 1 100%;
  width: 100%;
  order: 10;
}

.filter-bar-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.filter-bar-primary .filter-bar-quick,
.filter-bar-primary .filter-format-group--inline,
.filter-bar-primary .filter-price-range--inline,
.filter-bar-primary .filter-more-toggle {
  display: inline-flex;
  align-items: center;
  align-self: center;
}

.filter-bar-primary .filter-bar-quick {
  flex: 0 0 auto;
}

.filter-bar-primary .filter-format-group--inline {
  flex: 0 0 auto;
  min-width: max-content;
}

.filter-bar-primary .filter-format-group--inline > legend {
  width: auto;
  margin: 0;
}

.filter-bar-primary .filter-date-wrap,
.filter-bar-primary .filter-more-toggle,
.filter-bar-primary .filter-format-pill-face {
  min-height: 42px;
  box-sizing: border-box;
}

.filter-bar-primary .filter-more-toggle {
  padding: 0 16px;
  border-width: 1.5px;
  height: 42px;
}


body.browse-mode-organisers .filter-price-range-row input[type='range'] {
  accent-color: #2563eb;
}

.filter-format-group:not(.filter-format-group--inline):not(.filter-format-group--with-chips) legend {
  width: 100%;
  padding: 0;
  margin-bottom: 2px;
}

.filter-format-group--with-chips legend {
  width: auto;
  margin-bottom: 0;
  margin-right: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

.filter-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.filter-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.filter-checkbox-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--lavender-soft);
  background: #fff;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.filter-checkbox input:checked + .filter-checkbox-box {
  background: var(--lavender-deep);
  border-color: var(--lavender-deep);
}

.filter-checkbox input:checked + .filter-checkbox-box::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.filter-checkbox-near {
  padding: 4px 0;
}

.filter-date-wrap {
  position: relative;
  flex: 0 1 auto;
  min-width: 168px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0 14px 0 38px;
  min-height: 42px;
  border: 1.5px dashed var(--lavender-soft);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff 0%, var(--lavender-light) 100%);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.filter-date-wrap:hover {
  border-color: var(--lavender);
  box-shadow: 0 2px 10px rgba(91, 47, 153, 0.08);
}

.filter-date-wrap.is-active {
  border-style: solid;
  border-color: var(--lavender-deep);
  background: #fff;
}

.filter-date-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--lavender-deep);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-date-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.filter-date-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lavender-deep);
  margin-right: 8px;
  pointer-events: none;
  white-space: nowrap;
}

.filter-date-wrap input,
.filter-date-wrap .flatpickr-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  box-shadow: none;
}

.filter-date-wrap input::placeholder,
.filter-date-wrap .flatpickr-input::placeholder {
  color: var(--text-muted);
  font-weight: 500;
}

.filter-date-wrap input:focus,
.filter-date-wrap .flatpickr-input:focus {
  outline: none;
}

.filter-date-wrap .flatpickr-input[readonly] {
  cursor: pointer;
  background: transparent;
}

.flatpickr-calendar {
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(45, 38, 54, 0.18);
  border: 1px solid var(--border-soft);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: var(--lavender-deep);
  border-color: var(--lavender-deep);
}

.filter-bar-select {
  min-width: 120px;
}

.filter-bar-select select {
  padding: 10px 32px 10px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #fff;
  color: var(--charcoal);
  cursor: pointer;
}

.filter-price-apply {
  width: 100%;
  margin-top: 12px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: var(--lavender-deep);
  color: #fff;
  cursor: pointer;
}

.filter-price-apply:hover {
  background: var(--charcoal);
}

.filter-price-wrap {
  position: relative;
  min-width: 130px;
}

.filter-price-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: #fff;
  color: var(--charcoal);
  cursor: pointer;
  text-align: left;
}

.filter-price-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 50;
  min-width: 260px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(45, 38, 54, 0.15);
}

.filter-price-wrap.is-open .filter-price-panel {
  display: block;
}

.filter-price-sliders {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.filter-price-sliders input[type="range"] {
  width: 100%;
  accent-color: var(--lavender-deep);
}

.filter-price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.filter-price-inputs label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  display: block;
  margin-bottom: 4px;
}

.filter-price-inputs input {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}

.filter-bar-quick {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.filter-more-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 0 16px;
  font-family: inherit;
  font-size: var(--text-size-small);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--lavender-deep);
  background: linear-gradient(135deg, #fff8ef 0%, #fff 55%, #f7eef8 100%);
  border: 1.5px dashed rgba(122, 61, 138, 0.28);
  border-radius: 999px;
  cursor: pointer;
  min-height: 42px;
  box-shadow: 0 2px 10px rgba(74, 44, 92, 0.12);
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.filter-more-toggle-icon {
  flex-shrink: 0;
  opacity: 0.9;
}

.filter-more-toggle:hover {
  border-color: var(--lavender-soft);
  box-shadow: 0 4px 14px rgba(74, 44, 92, 0.16);
}

.filter-more-toggle[aria-expanded='true'] {
  color: #fff;
  background: var(--lavender-deep);
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 2px 12px rgba(36, 18, 48, 0.24);
}

.filter-more-toggle[aria-expanded='true'] .filter-more-toggle-icon {
  opacity: 1;
}

.filter-more-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.filter-more-panel:not([hidden]) {
  display: flex;
}

.filter-more-panel[hidden] {
  display: none !important;
}

.filter-bar-row-types--nested {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0;
  padding: 0;
  border: none;
}

.filter-more-near {
  display: contents;
}

@media (min-width: 901px) {
  .events-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .filter-bar-row-top {
    margin-bottom: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-soft);
  }

  .filter-bar-location-group {
    flex: 0 1 auto;
    max-width: 400px;
    min-width: 0;
  }

  .filter-bar-row-top .filter-field-postcode {
    flex: 0 1 200px;
    width: 200px;
    max-width: 240px;
    min-width: 0;
  }

  .filter-bar-row-top .filter-field-search {
    flex: 2 1 360px;
    min-width: 280px;
    max-width: none;
  }

  .filter-bar-row-top .filter-location-radius,
  .filter-bar-row-top .filter-location-near {
    flex: 0 0 auto;
  }

  .filter-checkbox.filter-near-control-mobile {
    display: none;
  }

  .filter-checkbox.filter-near-control-desktop {
    display: inline-flex;
  }

  .filter-bar-row-bottom {
    padding-top: 14px;
    border-top: none;
  }

  body.browse-mode-organisers .filter-bar-row-bottom {
    padding-top: 0;
  }

  .filter-bar-cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .filter-bar-primary,
  .filter-organiser-only {
    flex: 1 1 auto;
    min-width: 0;
  }

  .filter-bar-primary {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
  }

  .filter-bar-primary .filter-format-pill {
    flex: 0 0 auto;
  }

  .filter-bar-actions {
    margin-left: auto;
  }

  .filter-more-panel:not([hidden]) {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .filter-format-group--with-chips {
    flex: 1 1 100%;
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-soft);
  }

  .filter-format-group--prominent.filter-format-group--inline {
    width: auto;
    flex: 0 0 auto;
    min-width: max-content;
  }

  .filter-bar-primary {
    width: 100%;
  }

  .filter-bar-primary .filter-more-toggle {
    width: auto;
    flex: 0 0 auto;
  }

  .filter-bar-primary .filter-format-pill {
    flex: 0 0 auto;
  }

  .filter-bar-primary .filter-format-pill-face {
    justify-content: center;
  }

  .events-filter-shell .filter-format-group--with-chips {
    border-bottom-color: var(--filter-divider);
  }

}

.filter-more-toggle[aria-expanded='true'] .filter-more-chevron {
  transform: rotate(180deg);
}

.filter-more-chevron {
  display: inline-block;
  transition: transform 0.15s ease;
}

.filter-mobile-toggle {
  display: none;
}

.filter-near-radius select {
  font-family: inherit;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: #fff;
  color: var(--charcoal);
  touch-action: manipulation;
  min-height: 40px;
}

.events-view-toggle {
  display: inline-flex;
  align-items: stretch;
  flex-shrink: 0;
  padding: 3px;
  gap: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.events-view-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: var(--text-size-small);
  font-weight: 700;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.events-view-toggle-btn svg {
  flex-shrink: 0;
}

.events-view-toggle-btn.is-active,
.events-view-toggle-btn[aria-pressed='true'] {
  background: var(--gold);
  color: var(--filter-surface-deep, var(--charcoal));
  box-shadow: none;
}

.events-view-toggle-btn:not(.is-active):not([aria-pressed='true']):hover {
  color: var(--charcoal);
  background: rgba(122, 61, 138, 0.08);
}

.events-view-sort-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.events-results-actions .events-view-sort-group {
  flex-shrink: 0;
}

.events-results-meta strong {
  color: var(--charcoal);
}

.events-sort-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.events-sort-wrap label {
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
}

.events-results-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

@media (min-width: 769px) {
  .events-results-meta {
    flex-wrap: nowrap;
    align-items: center;
  }

  .events-results-actions {
    flex-wrap: nowrap;
    margin-left: auto;
  }

  .events-view-sort-group {
    margin-left: 0;
  }
}

.events-results-actions .browse-mode-toggle {
  flex-shrink: 0;
}

.events-page .browse-mode-btn.is-active {
  background: var(--gold);
  color: var(--filter-surface-deep, var(--charcoal));
}

.clear-filters-link {
  display: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--lavender-deep);
  background: var(--lavender-light);
  border: 1px solid rgba(122, 61, 138, 0.2);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  padding: 8px 14px;
  transition: background 0.15s, border-color 0.15s;
}

.clear-filters-link:hover {
  background: var(--gold-light);
  border-color: rgba(122, 61, 138, 0.35);
}

.events-sort-wrap select {
  font-family: inherit;
  font-size: 13px;
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--surface-card);
  color: var(--charcoal);
}

.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;
}

.events-page .events-body {
  grid-template-columns: 1fr;
}

.events-page .events-body .filters-panel {
  display: none;
}

.events-map-mobile-bar {
  display: none;
}

.events-map-mobile-list-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--lavender-deep);
  border: 1px solid var(--lavender-deep);
  border-radius: 12px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.events-map-mobile-list-btn:active {
  background: #7a5f88;
}

.events-map-wrap {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
  align-items: stretch;
}

.events-map-panel {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-height: 360px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  margin-bottom: 0;
  overflow: hidden;
  z-index: 1;
  position: relative;
  background: var(--surface-card);
}

body.events-view-map .events-map-panel {
  height: 100%;
  min-height: 480px;
}

.events-map-sidebar {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(45, 38, 54, 0.06);
}

.events-map-wrap[hidden] {
  display: none !important;
}

body.events-view-map .events-map-wrap {
  height: clamp(420px, calc(100svh - 240px), 860px);
  min-height: 420px;
}

@media (max-width: 900px) {
  body.events-view-map .events-map-wrap {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
  }

  body.events-view-map .events-map-mobile-bar {
    display: block;
    margin-bottom: 4px;
  }

  body.events-view-map .events-map-panel {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 62vh;
    height: min(62dvh, 680px);
    min-height: 340px;
    max-height: 680px;
  }

  .events-map-sidebar {
    grid-column: 1;
    grid-row: 2;
    height: auto;
    max-height: min(42dvh, 360px);
  }

  .map-list-toggle {
    display: inline-flex;
    align-items: center;
  }
}

.events-map-sidebar-head {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(165deg, #fffdf9 0%, var(--lavender-light) 100%);
}

.events-map-sidebar-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.map-list-toggle {
  display: none;
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--lavender-deep);
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 44px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.map-list-toggle:hover {
  background: var(--lavender-light);
}

.events-map-sidebar.is-collapsed .events-map-sidebar-list,
.events-map-sidebar.is-collapsed .events-map-sidebar-foot {
  display: none;
}

.events-map-sidebar.is-collapsed .events-map-sidebar-sub {
  margin-top: 4px;
  margin-bottom: 0;
}

.events-map-sidebar-count,
.events-map-sidebar-count-btn {
  margin: 0;
  font-size: 14px;
  color: var(--charcoal);
  text-align: left;
}

.events-map-sidebar-count-btn {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 4px 0;
  border: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.events-map-sidebar-count-btn:active {
  opacity: 0.85;
}

.events-map-sidebar-count-hint {
  flex: 1 0 100%;
  font-size: 12px;
  font-weight: 600;
  color: var(--lavender-deep);
}

.events-map-sidebar.is-collapsed .events-map-sidebar-count-hint {
  display: block;
}

.events-map-sidebar:not(.is-collapsed) .events-map-sidebar-count-hint {
  display: none;
}

.events-map-sidebar-count strong,
.events-map-sidebar-count-btn strong {
  font-size: 28px;
  font-weight: 700;
  color: var(--lavender-deep);
  margin-right: 6px;
}

.events-map-sidebar-sub {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.events-map-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.events-map-sidebar-foot {
  flex: 0 0 auto;
  padding: 8px 12px 12px;
  border-top: 1px solid var(--border-soft);
  background: #fffdf9;
}

.map-sidebar-load-more {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--lavender-deep);
  background: var(--lavender-light);
  border: 1px solid var(--lavender-soft);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.map-sidebar-load-more:hover {
  background: var(--lavender-soft);
}

.events-map-sidebar-foot[hidden] {
  display: none !important;
}

.map-sidebar-item-btn {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.map-sidebar-item-btn:hover {
  background: var(--lavender-light);
}

.map-sidebar-item.is-active .map-sidebar-item-btn {
  background: var(--lavender-light);
  border-color: var(--lavender-soft);
}

.map-sidebar-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.map-sidebar-item-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--charcoal);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.map-sidebar-item-meta {
  font-size: 12px;
  line-height: 1.35;
  color: var(--charcoal-soft);
}

.map-sidebar-item-price {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  background: #2d8a4e;
  color: #fff;
  white-space: nowrap;
}

.events-map-panel .leaflet-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  font: inherit;
}

.events-map-panel .leaflet-control-zoom {
  border: none;
  box-shadow: 0 2px 10px rgba(45, 38, 54, 0.12);
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background-color: rgba(194, 153, 209, 0.35);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background-color: rgba(154, 122, 168, 0.92);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.hub-map-pin {
  background: transparent;
  border: none;
}

.hub-map-pin-dot {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(45, 38, 54, 0.28);
}

.hub-map-pin--in-person .hub-map-pin-dot {
  background: #2d8a4e;
}

.events-map-panel[hidden] {
  display: none !important;
}

.events-map-hint-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -16px 0 24px;
  padding: 12px 16px;
  background: var(--lavender-light);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
}

.events-map-hint-bar[hidden] {
  display: none !important;
}

.events-map-hint {
  margin: 0;
  flex: 1 1 200px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted);
}

.events-map-hint-clear {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--charcoal);
  background: #fff;
  border: 1px solid rgba(122, 61, 138, 0.28);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.events-map-hint-clear:hover {
  background: var(--gold-light);
  border-color: rgba(122, 61, 138, 0.45);
}

.filter-clear-btn {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--filter-surface-deep);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.filter-clear-btn:hover {
  background: #fff;
  transform: translateY(-1px);
}

.filter-clear-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .filter-bar-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-left: 0;
  }

  .filter-bar-actions .filter-field-search {
    width: 100%;
    min-width: 0;
  }

  .filter-bar-actions .filter-clear-btn {
    width: 100%;
  }
}

.events-map-hint[hidden] {
  display: none !important;
}

body.events-view-map .events-results-meta {
  justify-content: flex-end;
  margin-bottom: 10px;
}

body.events-view-map .events-results-count {
  display: none;
}

body.events-view-map .events-filter-shell {
  margin-bottom: 12px;
}

body.browse-mode-organisers .filter-bar-row-types {
  display: none !important;
}

body:not(.browse-mode-organisers) .events-toolbar {
  display: none;
}

body.browse-mode-organisers .events-toolbar {
  display: flex;
}

.map-viewport-controls {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 650;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 24px);
  pointer-events: none;
}

.map-viewport-controls > * {
  pointer-events: auto;
}

.map-search-area-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--lavender-deep) 0%, #4a2f99 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  box-shadow:
    0 8px 28px rgba(74, 44, 92, 0.35),
    0 2px 8px rgba(45, 38, 54, 0.18);
  cursor: pointer;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  transition:
    opacity 0.2s ease,
    transform 0.22s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.map-search-area-btn.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.map-search-area-btn.is-pulse {
  animation: map-search-area-pulse 1.1s ease 0.15s 1;
}

.map-search-area-btn-icon {
  flex-shrink: 0;
  opacity: 0.95;
}

.map-search-area-btn:hover {
  background: linear-gradient(135deg, #5b2f99 0%, #3d247a 100%);
  box-shadow:
    0 10px 32px rgba(74, 44, 92, 0.42),
    0 2px 10px rgba(45, 38, 54, 0.2);
}

.map-search-area-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.map-search-area-btn[hidden],
.map-area-active[hidden] {
  display: none !important;
}

@keyframes map-search-area-pulse {
  0% {
    box-shadow:
      0 8px 28px rgba(74, 44, 92, 0.35),
      0 0 0 0 rgba(122, 61, 138, 0.45);
  }
  70% {
    box-shadow:
      0 8px 28px rgba(74, 44, 92, 0.35),
      0 0 0 12px rgba(122, 61, 138, 0);
  }
  100% {
    box-shadow:
      0 8px 28px rgba(74, 44, 92, 0.35),
      0 0 0 0 rgba(122, 61, 138, 0);
  }
}

.map-area-active {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 8px 8px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(122, 61, 138, 0.28);
  box-shadow: 0 6px 22px rgba(45, 38, 54, 0.16);
}

.map-area-active-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lavender-deep);
  box-shadow: 0 0 0 4px rgba(122, 61, 138, 0.16);
  flex-shrink: 0;
}

.map-area-active-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.2;
}

.map-area-active-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.map-area-active-label {
  color: var(--charcoal);
  white-space: nowrap;
}

.map-area-reset-btn {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--lavender-deep);
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
}

.map-area-reset-btn:hover {
  background: #4a2f99;
}

.map-area-reset-btn:focus-visible {
  outline: 2px solid var(--lavender-deep);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .map-viewport-controls {
    top: 10px;
    max-width: calc(100% - 16px);
  }

  .map-search-area-btn {
    font-size: 13px;
    padding: 10px 14px;
    max-width: 100%;
  }

  .map-search-area-btn-label {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .map-area-active {
    max-width: 100%;
    gap: 8px;
    padding: 7px 7px 7px 10px;
  }

  .map-area-active-label {
    white-space: normal;
  }
}

.events-view-map .listings-block[hidden],
#listings-view[hidden] {
  display: none !important;
}

.map-event-popup .leaflet-popup-content-wrapper {
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(45, 38, 54, 0.18);
  border: 1px solid var(--border-soft);
}

.map-event-popup .leaflet-popup-content {
  margin: 0;
  width: min(268px, calc(100vw - 48px)) !important;
  max-width: min(268px, calc(100vw - 48px));
  line-height: 1.4;
}

@media (max-width: 900px) {
  .map-event-popup .leaflet-popup-content-wrapper {
    max-width: calc(100vw - 56px);
  }

  .map-event-popup .leaflet-popup-content {
    width: min(232px, calc(100vw - 72px)) !important;
    max-width: min(232px, calc(100vw - 72px));
  }

  .map-event-card-media {
    aspect-ratio: 2.2 / 1;
    max-height: 88px;
  }

  .map-event-card-body {
    padding: 10px 12px 12px;
  }

  .map-event-card-title {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .map-event-card-meta,
  .map-event-card-distance {
    font-size: 12px;
  }

  .leaflet-container .map-event-popup .map-event-card-cta {
    margin-top: 10px;
    padding: 9px 12px;
    font-size: 13px;
  }
}

.map-event-popup .leaflet-popup-tip {
  background: var(--white);
  border: 1px solid var(--border-soft);
  box-shadow: none;
}

.map-event-popup .leaflet-popup-close-button {
  display: none;
}

.map-event-card {
  position: relative;
}

.map-event-card-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(28, 32, 64, 0.55);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(28, 32, 64, 0.28);
}

.map-event-card-close span {
  display: block;
  margin-top: -1px;
}

.map-event-card-close:hover,
.map-event-card-close:focus {
  background: rgba(28, 32, 64, 0.78);
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.map-event-card-media {
  position: relative;
  aspect-ratio: 2 / 1;
  max-height: 120px;
  background: var(--lavender-light);
  overflow: hidden;
}

.map-event-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 32, 64, 0.18) 0%, transparent 42%);
  pointer-events: none;
}

.map-event-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-event-card-img.is-logo-cover {
  object-fit: contain;
  object-position: center;
  background: linear-gradient(145deg, #f6f1fa 0%, #eef3f8 100%);
}

.map-event-card-body {
  padding: 12px 14px 14px;
}

.map-event-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.map-event-card-premium {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: #d4a017;
  color: #1a1200;
}

.map-event-card-format {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-event-card-format.in-person {
  color: #2d8a4e;
}

.map-event-card-format.online {
  color: #3b6fd4;
}

.map-event-card-price {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: #2d8a4e;
  color: #fff;
}

.map-event-card-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--charcoal);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.map-event-card-meta,
.map-event-card-distance {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--charcoal-soft);
}

.map-event-card-distance {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--lavender-deep);
}

.leaflet-container .map-event-popup .map-event-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: #fff;
  background: var(--lavender-deep);
  box-shadow: 0 3px 12px rgba(154, 122, 168, 0.3);
}

.leaflet-container .map-event-popup .map-event-card-cta:hover,
.leaflet-container .map-event-popup .map-event-card-cta:focus {
  color: #fff;
  text-decoration: none;
  background: var(--charcoal-soft);
}


@media (max-width: 768px) {
  .filter-price-range-row {
    grid-template-columns: 1fr 4.75rem;
  }

  .events-results-meta {
    scroll-margin-top: 76px;
  }

  .events-sort-wrap select {
    max-width: 100%;
  }
}

/* ─── Mobile: compact search bar + full-page filter sheet ─── */
@media (max-width: 900px) {
  .events-page .events-filter-wrap {
    margin-bottom: 12px;
  }

  .events-page .events-filter-heading {
    display: none;
  }

  .events-page .events-filter-shell {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .events-page .events-filter-bar {
    padding: 0;
    background: transparent;
  }

  .events-page .filter-bar-row-compact {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: none;
  }

  /* Beat hub-mobile width:100% so search + Filters stay one row */
  .events-page .filter-bar-row-compact .filter-field-search,
  .events-page .filter-bar-row-top .filter-field-search {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    background: #fff;
    border: 2px solid rgba(122, 82, 144, 0.42);
    border-radius: 14px;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.8) inset,
      0 6px 18px rgba(74, 44, 92, 0.12);
  }

  .events-page .filter-bar-row-compact .filter-field-search:focus-within,
  .events-page .filter-bar-row-top .filter-field-search:focus-within {
    border-color: var(--filter-surface, #7a5290);
    box-shadow:
      0 0 0 3px rgba(122, 82, 144, 0.18),
      0 8px 22px rgba(74, 44, 92, 0.16);
  }

  .events-page .filter-bar-row-compact .filter-field-search input,
  .events-page .filter-bar-row-top .filter-field-search input {
    min-height: 48px;
    padding: 12px 40px 12px 14px;
    border: none;
    background: transparent;
    box-shadow: none;
    font-size: 16px;
    font-weight: 500;
    color: var(--charcoal, #2d2332);
  }

  .events-page .filter-bar-row-compact .filter-field-search input::placeholder,
  .events-page .filter-bar-row-top .filter-field-search input::placeholder {
    color: rgba(45, 35, 50, 0.48);
    font-weight: 500;
  }

  .events-page .filter-bar-row-compact .filter-field-search input:focus,
  .events-page .filter-bar-row-top .filter-field-search input:focus {
    outline: none;
    box-shadow: none;
  }

  .events-page .filter-bar-row-compact .filter-field-icon-end,
  .events-page .filter-bar-row-top .filter-field-search .filter-field-icon-end {
    right: 12px;
    color: var(--filter-surface, #7a5290);
    opacity: 0.85;
  }

  .events-page .filter-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 0 0 auto;
    align-self: stretch;
    width: auto;
    min-width: 76px;
    min-height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 1.5px solid rgba(122, 82, 144, 0.35);
    border-radius: 14px;
    background: #fff;
    color: var(--filter-surface, #7a5290);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(45, 35, 50, 0.06);
  }

  .events-page .filter-mobile-toggle.is-active-hint {
    background: var(--filter-surface, #7a5290);
    border-color: var(--filter-surface, #7a5290);
    color: #fff;
    box-shadow:
      0 0 0 2px #fff,
      0 0 0 4px var(--gold, #d4a574),
      0 4px 14px rgba(74, 44, 92, 0.22);
  }

  .events-page .filter-mobile-toggle-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 8px;
    font-size: 18px;
    line-height: 1;
    color: var(--gold, #d4a574);
  }

  .events-page .filter-mobile-toggle.is-active-hint .filter-mobile-toggle-badge {
    color: var(--gold, #d4a574);
  }

  .events-page .events-filter-bar .filter-bar-location-group,
  .events-page .events-filter-bar > .filter-bar-row-bottom {
    display: none;
  }

  .events-page .events-filter-shell.is-filter-sheet-open .filter-bar-row-compact {
    opacity: 0.72;
  }
}

/* Full-page mobile filter sheet
   Vars live on the sheet itself — it is portaled to <body> and sits outside
   .events-filter-shell, so shell-scoped --filter-surface would not apply. */
body.events-filter-sheet-open {
  overflow: hidden;
}

.filter-mobile-sheet {
  --filter-surface: #7a5290;
  --filter-surface-deep: #634268;
  position: fixed;
  inset: 0;
  /* Above .site-nav (100) and cookie/hubert chrome; sheet is portaled to body */
  z-index: 11000;
  display: flex;
  flex-direction: column;
}

.filter-mobile-sheet[hidden] {
  display: none !important;
}

.filter-mobile-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 16, 37, 0.55);
}

.filter-mobile-sheet-panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: 100%;
  max-height: 100dvh;
  overflow: hidden;
  background-color: #7a5290;
  background-color: var(--filter-surface, #7a5290);
  color: #fff;
}

.filter-mobile-sheet-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--filter-surface-deep, #634268);
}

.filter-mobile-sheet-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.filter-mobile-sheet-title {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
}

.filter-mobile-sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 16px 20px;
  -webkit-overflow-scrolling: touch;
  background-color: #7a5290;
  background-color: var(--filter-surface, #7a5290);
}

.filter-mobile-sheet-body .events-filter-inbox-title {
  display: none;
}

.filter-mobile-sheet-body .filter-bar-location-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 0;
  align-items: stretch;
  width: 100%;
  margin: 0 0 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.filter-mobile-sheet-body .filter-field-postcode {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  border-right: none;
  border-radius: 12px 0 0 12px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.filter-mobile-sheet-body .filter-field-postcode:focus-within {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.2);
}

.filter-mobile-sheet-body .filter-field-postcode input {
  border: none;
  background: transparent;
  box-shadow: none;
  color: #fff;
  min-height: 48px;
}

.filter-mobile-sheet-body .filter-field-postcode input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.filter-mobile-sheet-body .filter-field-postcode .filter-field-icon {
  color: rgba(255, 255, 255, 0.85);
}

.filter-mobile-sheet-body .filter-city-page-cta {
  grid-column: 1 / -1;
}

.filter-mobile-sheet-body .filter-location-radius {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  align-self: stretch;
}

.filter-mobile-sheet-body .filter-location-radius select {
  height: 100%;
  min-height: 48px;
  min-width: 78px;
  margin: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0 12px 12px 0;
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 700;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.filter-mobile-sheet-body .filter-location-radius select:focus {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 1px;
  border-color: rgba(255, 255, 255, 0.85);
}

.filter-mobile-sheet-body .filter-location-near {
  grid-column: 1 / -1;
  justify-self: start;
}

.filter-mobile-sheet-body .filter-bar-row-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  border: none;
}

.filter-mobile-sheet-body .filter-bar-cluster,
.filter-mobile-sheet-body .filter-bar-primary,
.filter-mobile-sheet-body .filter-organiser-only {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

.filter-mobile-sheet-body .filter-bar-actions {
  display: none;
}

.filter-mobile-sheet-body .filter-more-panel,
.filter-mobile-sheet-body .filter-more-panel[hidden] {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
}

.filter-mobile-sheet-body .filter-bar-row-types {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  order: 10;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.filter-mobile-sheet-body .filter-bar-row-types::before {
  content: 'Event type';
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.filter-mobile-sheet-body .event-type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  overflow: visible;
  padding-bottom: 0;
}

.filter-mobile-sheet-body .event-type-chip {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
}

.filter-mobile-sheet-body .event-type-chip:hover {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.filter-mobile-sheet-body .event-type-chip.is-active {
  background: var(--gold, #d4a574);
  border-color: var(--gold, #d4a574);
  color: var(--filter-surface-deep, #634268);
}

.filter-mobile-sheet-body .event-type-chip.is-zero:not(.is-active) {
  opacity: 0.55;
}

.filter-mobile-sheet-body .filter-more-toggle {
  display: none !important;
}

.filter-mobile-sheet-body .filter-opp-location-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.filter-mobile-sheet-body .filter-bar-quick {
  width: 100%;
}

.filter-mobile-sheet-body .filter-bar-quick::before {
  content: 'When';
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.filter-mobile-sheet-body .filter-format-group--inline {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.filter-mobile-sheet-body .filter-format-pills::before {
  content: 'Format';
  display: block;
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.filter-mobile-sheet-body .filter-format-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.filter-mobile-sheet-body .filter-price-range--inline::before {
  content: 'Price';
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.filter-mobile-sheet-body .filter-format-pill,
.filter-mobile-sheet-body .filter-format-pill-face {
  width: 100%;
}

.filter-mobile-sheet-body .filter-price-range--inline .filter-price-range-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.filter-mobile-sheet-body .filter-checkbox {
  color: rgba(255, 255, 255, 0.95);
}

.filter-mobile-sheet-body .filter-checkbox-box {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.14);
}

.filter-mobile-sheet-body .filter-checkbox input:checked + .filter-checkbox-box {
  background: var(--gold, #d4a574);
  border-color: var(--gold, #d4a574);
}

.filter-mobile-sheet-body .filter-checkbox input:checked + .filter-checkbox-box::after {
  border-color: var(--filter-surface-deep, #634268);
}

.filter-mobile-sheet-body .filter-location-radius select {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.42);
}

.filter-mobile-sheet-body .filter-checkbox-free {
  grid-column: 1 / -1;
}

.filter-mobile-sheet-body .filter-price-bounds {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.filter-mobile-sheet-body .filter-more-toggle {
  width: 100%;
  justify-content: center;
  min-height: 44px;
}

.filter-mobile-sheet-body .filter-bar-quick .filter-date-wrap {
  width: 100%;
  max-width: none !important;
  min-height: 44px;
}

.filter-mobile-sheet-body .filter-bar-location-group::before {
  content: 'Where';
  display: block;
  grid-column: 1 / -1;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.filter-mobile-sheet-foot {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--filter-surface-deep, #634268);
  box-shadow: 0 -8px 24px rgba(26, 16, 37, 0.28);
}

.filter-mobile-sheet-clear,
.filter-mobile-sheet-apply {
  min-height: 48px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.filter-mobile-sheet-clear {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: transparent;
  color: #fff;
}

.filter-mobile-sheet-apply {
  border: none;
  background: #fff;
  color: var(--filter-surface-deep, #1a1025);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

@media (min-width: 901px) {
  .filter-mobile-sheet {
    display: none !important;
  }
}

/* iOS Safari auto-zooms inputs below 16px — must beat later page CSS */
@media (max-width: 900px) {
  .events-page .events-filter-shell input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='hidden']),
  .events-page .events-filter-shell select,
  .events-page .events-filter-shell textarea,
  .events-page .events-filter-shell .flatpickr-input,
  .events-page .events-filter-shell .filter-date-wrap input,
  .events-page .events-filter-shell .filter-field input,
  .events-page .events-filter-shell .filter-field select,
  .events-page .events-filter-shell .filter-near-radius select,
  .events-page .events-filter-shell .filter-location-radius select,
  .events-page .events-filter-shell .filter-organiser-industry select,
  .events-page .events-filter-shell .filter-price-bound-input,
  .filter-mobile-sheet input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='hidden']),
  .filter-mobile-sheet select,
  .filter-mobile-sheet textarea,
  .events-page .events-results-meta .events-sort-wrap select,
  .events-page .events-filter-bar input.flatpickr-input,
  .events-page .events-filter-shell input.flatpickr-input {
    font-size: 16px;
  }
}

/* Beat home-page.css 640px city grid — keep a single horizontal carousel on events */
@media (max-width: 640px) {
  .events-page .home-locations-scroller::after {
    display: block;
    background: linear-gradient(90deg, transparent, #fff);
  }

  .events-page .home-locations-track {
    display: flex !important;
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding: 4px 36px 12px 2px;
  }

  .events-page .home-location-chip,
  .events-page .home-location-chip--online {
    width: 84px;
    height: 84px;
    max-width: none;
    aspect-ratio: auto;
    flex: 0 0 auto;
  }

  .events-page .home-location-chip--county {
    width: auto;
    height: auto;
    min-height: 40px;
    border-radius: 999px;
    flex-direction: row;
    padding: 8px 14px;
    aspect-ratio: auto;
  }
}
