:root {
  font-family: Arial,Helvetica,sans-serif;
  color: #101534;
  background: #e9ece6;
  font-synthesis: none;
  --ink: #101534;
  --muted: #717c96;
  --line: #e2e5ec;
  --toolbar-height: 100px
}

#event-map[data-map-provider="voyager-local"] {
  background: #fbf8f3;
}

#event-map .maplibregl-canvas-container,
#event-map .maplibregl-canvas {
  pointer-events: none;
}

* {
  box-sizing: border-box
}

body {
  margin: 0
}

button,input {
  font: inherit
}

a {
  color: inherit
}

button,a,input,summary {
  touch-action: manipulation
}

button,summary {
  cursor: pointer
}

button {
  color: inherit
}

button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible {
  outline: 3px solid #3972ff;
  outline-offset: 4px
}

button {
  border: 0;
  background: transparent
}

a {
  text-underline-offset: 3px
}

[hidden] {
  display: none!important
}

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

.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  background: #fff;
  padding: 15px;
  z-index: 2000;
  border-radius: 8px
}

.skip-link:focus {
  top: 20px
}

.enhanced-only {
  display: none
}

.map-ready .enhanced-only {
  display: flex
}

.discovery {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 480px;
  isolation: isolate;
  overflow: hidden
}

#event-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #e9ece6
}

#event-map:focus-visible {
  outline: 3px solid #3972ff;
  outline-offset: -3px
}

.leaflet-container {
  font-family: inherit;
  color: var(--ink)
}

#event-map[data-map-provider="openstreetmap"] .leaflet-tile-pane {
  filter: saturate(.45) brightness(1.065)
}

.map-toolbar {
  position: absolute;
  z-index: 1000;
  top: 24px;
  left: 28px;
  right: 28px;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 25px;
  border: 1px solid rgba(219,223,230,.8);
  border-radius: 14px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 8px #20294513
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 23px;
  text-decoration: none;
  font-size: 27px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .3px;
  white-space: nowrap
}

.wordmark-place {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  color: #818ba3;
  padding-left: 22px;
  border-left: 1px solid #bfc5d4
}

.day-navigation {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0
}

.day-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 37px;
  font-weight: 300;
  text-decoration: none;
  line-height: 1
}

.day-arrow:hover {
  background: #f5f6fa;
  border-radius: 50%
}

.day-arrow.disabled {
  color: #c1c7d3
}

.day-picker {
  position: relative;
  text-align: center;
  min-width: 116px
}

.day-picker summary {
  list-style: none;
  line-height: 1.45;
  min-height: 44px;
  padding: 0 6px;
  font-size: 16px
}

.day-picker summary::-webkit-details-marker {
  display: none
}

.day-picker summary strong,.day-picker summary span {
  display: block
}

.day-picker summary strong {
  font-size: 16px
}

.day-picker summary span {
  color: var(--muted)
}

.date-form {
  position: absolute;
  left: 50%;
  top: calc(100% + 20px);
  transform: translateX(-50%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 20px #18234a16;
  text-align: left;
  width: 280px
}

.date-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px
}

.date-fields {
  display: flex;
  gap: 8px
}

.date-fields input {
  min-width: 0;
  flex: 1;
  border: 1px solid #cdd2de;
  border-radius: 6px;
  padding: 10px;
  color: var(--ink)
}

.date-fields button {
  background: var(--ink);
  border-radius: 6px;
  padding: 0 14px;
  color: white
}

.date-form>a {
  display: inline-block;
  padding: 14px 0 0;
  font-size: 13px;
  color: #385fa9
}

.category-filters {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0
}

.category--kids {
  --category: #b48b00;
  --tint: #fbf6e9;
  --border: #e4c770
}

.category--music {
  --category: #3767ef;
  --tint: #eff3ff;
  --border: #b7c6ff
}

.category--performance {
  --category: #8329c1;
  --tint: #f5effc;
  --border: #d4b8ed
}

.category--comedy {
  --category: #e25b44;
  --tint: #fff2ef;
  --border: #efbaae
}

.category--misc {
  --category: #009b9e;
  --tint: #eaf8f8;
  --border: #a4d7d9
}

.category-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--tint);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer
}

.category-toggle input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer
}

.category-toggle:has(input:focus-visible) {
  outline: 3px solid #3972ff;
  outline-offset: 3px
}

.category-toggle:has(input:not(:checked)) {
  background: #fff;
  border-color: #d9dde6;
  color: #7a8499
}

.category-toggle:has(input:not(:checked)) .category-dot {
  opacity: .35
}

.category-toggle:has(input:not(:checked)) .category-check {
  visibility: hidden
}

.category-filters:disabled .category-toggle {
  cursor: default
}

.category-dot {
  display: inline-block;
  background: var(--category);
  border-radius: 50%;
  width: 17px;
  height: 17px;
  flex-shrink: 0
}

.category-check {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  margin-left: 1px
}

.joined-marker {
  background: none;
  border: 0
}

.marker-content {
  position: relative;
  width: 0;
  height: 0
}

.pin-box {
  position: absolute;
  top: 0;
  left: 0;
  width: max-content;
  transform: translate(-8px,calc(-100% - 26px));
  z-index: 1
}

.pin-stack {
  width: max-content;
  max-width: 220px;
  max-height: 160px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid #dce1e9;
  border-radius: 6px;
  box-shadow: 0 1px 3px #1f2d4118;
  scrollbar-width: thin
}

.pin-place-name {
  max-width: 220px;
  padding: 2px 5px;
  border-bottom: 1px solid #edf0f4;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.pin-label {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-height: 22px;
  max-width: 220px;
  padding: 2px 5px;
  white-space: nowrap;
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  text-align: left
}

.pin-label+.pin-label {
  border-top: 1px solid #edf0f4
}

.pin-label:hover,.pin-label.is-active {
  background: var(--tint)
}

.pin-label:focus-visible {
  outline-offset: -3px;
  border-radius: 5px
}

.pin-row-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background: var(--category);
  border-radius: 50%
}

.pin-label-time {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums
}

.pin-label-text {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0
}

.pin-anchor {
  position: absolute;
  left: -12px;
  top: -26px;
  width: 24px;
  height: 30px;
  padding: 0;
  z-index: 0;
  border-radius: 12px
}

.pin-drop {
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: 16px;
  height: 22px;
  filter: drop-shadow(0 1px 1px #14223618);
  pointer-events: none
}

.pin-drop svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: var(--category);
  stroke: #fff;
  stroke-width: 2
}

.pin-leader {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: visible;
  pointer-events: none
}

.pin-leader line {
  stroke: #78849b;
  stroke-width: 1;
  stroke-opacity: .75
}

.pin-card {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  width: 320px;
  max-width: calc(100vw - 34px);
  max-height: calc(100dvh - var(--toolbar-height) - 100px);
  padding: 19px 22px 20px;
  background: #fff;
  border: 1px solid #dce1e9;
  border-radius: 14px;
  box-shadow: 0 3px 14px #1d264b1c;
  overflow: auto;
  overscroll-behavior: contain;
  transform-origin: left bottom;
  animation: expand-card 180ms ease-out
}

.pin-card .event-tags {
  padding-right: 28px;
  margin: 0 0 13px
}

.pin-card .event-title {
  font-size: 25px;
  line-height: 1.14;
  letter-spacing: -.65px;
  margin: 0 0 9px
}

.pin-card .event-meta {
  font-size: 15px;
  margin-bottom: 14px
}

.pin-card .event-description {
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 13px
}

.pin-card .event-actions {
  margin-top: 14px
}

.pin-card .source-link {
  font-size: 15px
}

.pin-card .close-card {
  position: absolute;
  right: 8px;
  top: 6px
}

.icon-button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 29px;
  font-weight: 300;
  flex-shrink: 0;
  line-height: 1;
  border-radius: 8px
}

.icon-button:hover {
  background: #f2f4f8;
  color: var(--ink)
}

.map-summary {
  position: absolute;
  z-index: 800;
  left: 28px;
  bottom: 30px;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #dce1e9;
  border-radius: 28px;
  background: #ffffffed;
  box-shadow: 0 2px 8px #20294510;
  font-size: 12px
}

.summary-demo {
  color: #7a622a;
  font-size: 10px;
  white-space: nowrap;
}

.map-credit {
  position: absolute;
  z-index: 800;
  bottom: 0;
  right: 0;
  padding: 4px 7px;
  background: #ffffffd9;
  font-size: 10px;
  color: #546178
}

.map-credit:empty {
  display: none
}

.map-credit a {
  text-decoration: none
}

.map-credit a:hover {
  text-decoration: underline
}

.leaflet-control-zoom.leaflet-bar {
  border: 1px solid #dce1e9;
  border-radius: 11px;
  box-shadow: 0 2px 8px #20294515;
  overflow: hidden
}

.leaflet-control-zoom.leaflet-bar a {
  width: 42px;
  height: 42px;
  line-height: 40px;
  color: var(--ink);
  font-size: 25px;
  font-family: Arial,Helvetica,sans-serif;
  font-weight: 500
}

.leaflet-control-zoom.leaflet-bar a:first-child {
  border-bottom: 1px solid #edf0f5
}

.leaflet-right .leaflet-control {
  margin-right: 28px
}

.leaflet-bottom .leaflet-control {
  margin-bottom: 40px
}

.event-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 10px
}

.category-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--category)
}

.category-name .category-dot {
  width: 12px;
  height: 12px
}

.badge {
  font-size: 9px;
  font-weight: 600;
  line-height: 1.4;
  padding: 3px 6px;
  border-radius: 4px;
  background: #eff1f5;
  color: #68748b;
  text-transform: uppercase;
  letter-spacing: .4px
}

.status-badge {
  color: #ad3e31;
  background: #fff0e9
}

.event-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.35px;
  margin: 0 0 8px;
  overflow-wrap: anywhere
}

.event-meta {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 9px;
  overflow-wrap: anywhere
}

.event-description {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 9px;
  white-space: pre-line;
  overflow-wrap: anywhere
}

.event-price {
  font-size: 12px;
  color: #66718a;
  margin: 10px 0
}

.event-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 12px
}

.source-link {
  color: #3269ed
}

.pin-label.is-past,.pin-card.is-past :is(.event-title,.event-meta,.event-description,.event-price,.event-actions,.category-name,.badge,.source-link,.fictional-label) {
  color: #727884
}

.source-link>span[aria-hidden] {
  margin-left: 4px
}

.fictional-label {
  color: #7b849a;
  font-size: 11px
}

.empty-state {
  position: absolute;
  z-index: 500;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-40%);
  width: 355px;
  max-width: calc(100% - 40px);
  padding: 26px 28px;
  background: #fffffff2;
  border: 1px solid #dce1e9;
  border-radius: 15px;
  box-shadow: 0 3px 15px #1d264b10;
  text-align: center
}

.empty-state h1 {
  font-size: 23px;
  letter-spacing: -.5px;
  line-height: 1.2;
  margin: 10px 0
}

.empty-state p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 10px 0
}

.empty-symbol {
  color: #476ded;
  font-size: 30px
}

.date-error,.map-warning,.no-script,.day-load-status {
  position: absolute;
  left: 50%;
  top: calc(var(--toolbar-height) + 10px);
  transform: translateX(-50%);
  z-index: 850;
  width: max-content;
  max-width: calc(100% - 36px);
  padding: 10px 15px;
  border-radius: 8px;
  background: #fff7e7;
  color: #7b6127;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 2px 8px #20294510
}

.date-error {
  z-index: 1100
}

.day-load-status {
  z-index: 1100
}

.day-load-status button {
  margin-left: 6px;
  text-decoration: underline;
  font-weight: 600
}

.no-script {
  position: fixed;
  left: 28px;
  max-width: 380px;
  transform: none
}

@keyframes expand-card {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.97)
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }

}

@media(max-width:1250px) {
  .map-toolbar {
    gap: 13px;
    padding: 12px 18px
  }

  .wordmark {
    font-size: 25px
  }

  .wordmark-place {
    display: none
  }

  .category-filters {
    gap: 7px
  }

  .category-toggle {
    padding: 7px 9px;
    font-size: 12px;
    gap: 6px
  }

  .day-navigation {
    gap: 3px
  }

  .day-picker {
    min-width: 106px
  }

}

@media(max-width:950px) {
  :root {
    --toolbar-height: 145px
  }

  .map-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 13px 16px;
    top: 18px;
    left: 18px;
    right: 18px;
    padding: 14px 18px
  }

  .wordmark-place {
    display: inline-block
  }

  .category-filters {
    grid-column: 1/-1;
    justify-content: center;
    gap: 9px
  }

  .category-toggle {
    font-size: 13px;
    padding: 7px 11px
  }

  .map-summary {
    left: 18px
  }

  .leaflet-right .leaflet-control {
    margin-right: 18px
  }

}

@media(max-width:600px) {
  :root {
    --toolbar-height: 185px
  }

  .map-toolbar {
    top: 12px;
    left: 16px;
    right: 16px;
    padding: 10px 12px;
    gap: 8px 4px;
    border-radius: 14px;
    min-height: 0
  }

  .wordmark {
    font-size: 25px;
    letter-spacing: .3px
  }

  .wordmark-place {
    display: none
  }

  .day-navigation {
    gap: 0
  }

  .day-arrow {
    width: 44px;
    font-size: 32px
  }

  .day-picker {
    min-width: 94px
  }

  .day-picker summary {
    font-size: 13px
  }

  .day-picker summary strong {
    font-size: 14px
  }

  .category-filters {
    justify-content: space-between;
    gap: 2px;
    flex-wrap: nowrap
  }

  .category-toggle {
    min-height: 28px;
    padding: 3px 2px;
    gap: 2px;
    font-size: 11px;
    border-radius: 6px
  }

  .category-toggle input {
    top: 50%;
    bottom: auto;
    height: 44px;
    transform: translateY(-50%)
  }

  .category-dot {
    width: 8px;
    height: 8px
  }

  .category-check {
    display: none
  }

  .date-form {
    left: auto;
    right: -24px;
    transform: none;
    top: calc(100% + 18px)
  }

  .map-summary {
    left: 16px;
    bottom: 28px;
    max-width: calc(100% - 88px);
    gap: 8px;
    padding: 10px 12px;
    font-size: 11px
  }

  .map-credit {
    font-size: 9px
  }

  .leaflet-right .leaflet-control {
    margin-right: 16px
  }

  .leaflet-bottom .leaflet-control {
    margin-bottom: 31px
  }

  .leaflet-control-zoom.leaflet-bar a {
    width: 39px;
    height: 40px;
    line-height: 39px
  }

  .pin-label {
    font-size: 11px;
    min-height: 24px;
    padding: 2px 5px;
    gap: 4px
  }

  .pin-place-name {
    padding: 2px 5px
  }

  .pin-card {
    width: 285px;
    padding: 18px 18px 19px
  }

  .pin-card .event-title {
    font-size: 24px
  }

  .pin-card .event-description {
    font-size: 14px
  }

  .pin-card .event-meta {
    font-size: 14px
  }

  .pin-card .category-name {
    font-size: 14px
  }

  .empty-state {
    transform: translate(-50%,-20%)
  }

  .map-warning,.date-error {
    font-size: 11px
  }

  .no-script {
    left: 16px;
    right: 16px;
    top: calc(var(--toolbar-height) + 10px);
    max-width: none
  }

}

@media(max-width:360px) {
  .wordmark {
    font-size: 22px
  }

  .map-toolbar {
    left: 12px;
    right: 12px;
    padding-left: 6px;
    padding-right: 6px
  }

  .day-picker {
    min-width: 86px
  }

  .day-arrow {
    width: 44px
  }

}

@media(pointer:coarse) {
  .pin-label {
    min-height: 24px
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation: none!important;
    transition: none!important;
    scroll-behavior: auto!important
  }

  .leaflet-zoom-animated {
    transition: none!important
  }

}
