.oeu-community-map {
  --oeu-ink: #2f211c;
  --oeu-muted: #66554c;
  --oeu-cream: #fffaf0;
  --oeu-paper: #ffffff;
  --oeu-border: #d8c8b7;
  --oeu-red: #7a2e25;
  --oeu-red-dark: #5b211b;
  --oeu-gold: #e6a52e;
  color: var(--oeu-ink);
  font: inherit;
}

.oeu-community-map *,
.oeu-community-map *::before,
.oeu-community-map *::after {
  box-sizing: border-box;
}

.oeu-community-map [hidden] {
  display: none !important;
}

.oeu-community-map__status {
  min-height: 1.5em;
  margin: 0 0 0.75rem;
  color: var(--oeu-muted);
}

.oeu-community-map .is-error,
.oeu-community-map__status.is-error {
  color: #8b1e16;
  font-weight: 650;
}

.oeu-community-map__filters {
  display: grid;
  grid-template-columns: minmax(14rem, 2fr) repeat(2, minmax(10rem, 1fr));
  gap: 0.8rem;
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid var(--oeu-border);
  border-radius: 0.8rem;
  background: var(--oeu-cream);
}

.oeu-community-map label > span,
.oeu-place-picker > label {
  display: block;
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.oeu-community-map input[type='text'],
.oeu-community-map input[type='search'],
.oeu-community-map select {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.6rem 0.72rem;
  border: 1px solid #947f70;
  border-radius: 0.45rem;
  background: var(--oeu-paper);
  color: var(--oeu-ink);
  font: inherit;
}

.oeu-community-map input:focus-visible,
.oeu-community-map select:focus-visible,
.oeu-community-map button:focus-visible,
.oeu-community-map a:focus-visible {
  outline: 3px solid #1469a0;
  outline-offset: 3px;
}

.oeu-community-map__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(17rem, 0.85fr);
  min-height: var(--oeu-map-height, 480px);
  overflow: hidden;
  border: 1px solid var(--oeu-border);
  border-radius: 1rem;
  background: var(--oeu-paper);
  box-shadow: 0 0.6rem 1.7rem rgb(62 37 26 / 10%);
}

.oeu-community-map__canvas {
  width: 100%;
  min-height: var(--oeu-map-height, 480px);
  background: #dbe9e2;
}

.oeu-community-map__list-panel {
  min-width: 0;
  max-height: var(--oeu-map-height, 480px);
  overflow-y: auto;
  padding: 1.1rem;
  border-left: 1px solid var(--oeu-border);
  overscroll-behavior: contain;
}

.oeu-community-map__list-title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.oeu-community-map__count {
  margin: 0.35rem 0 1rem;
  color: var(--oeu-muted);
  font-size: 0.92rem;
}

.oeu-community-map__list,
.oeu-community-map__people {
  margin: 0;
  padding: 0;
  list-style: none;
}

.oeu-community-map__place {
  padding: 0.85rem 0;
  border-top: 1px solid #eadfd4;
}

.oeu-community-map__place:first-child {
  border-top: 0;
}

.oeu-community-map__place h3,
.oeu-map-popup h3 {
  margin: 0;
  color: var(--oeu-red-dark);
  font-size: 1rem;
  line-height: 1.35;
}

.oeu-community-map__place-count {
  margin: 0.2rem 0 0.5rem;
  color: var(--oeu-muted);
  font-size: 0.88rem;
}

.oeu-community-map__people li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin: 0.25rem 0;
}

.oeu-pin-share {
  flex: 0 0 auto;
  padding: 0.25rem 0.45rem;
  border: 1px solid var(--oeu-border);
  border-radius: 999px;
  background: var(--oeu-cream);
  color: var(--oeu-red-dark);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.oeu-map-popup .oeu-pin-share {
  max-width: 9rem;
}

.oeu-community-map__preview-link {
  margin: 1rem 0 0;
  text-align: center;
}

.oeu-map-stick-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--oeu-ink);
  font: inherit;
  cursor: pointer;
  filter: drop-shadow(0 0.2rem 0.22rem rgb(47 33 28 / 28%));
}

.oeu-map-stick-pin__label {
  display: block;
  max-width: 11rem;
  overflow: hidden;
  padding: 0.32rem 0.55rem;
  border: 2px solid var(--oeu-red-dark);
  border-radius: 0.5rem;
  background: var(--oeu-cream);
  color: var(--oeu-red-dark);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oeu-map-stick-pin__point {
  position: relative;
  display: block;
  width: 3px;
  height: 1rem;
  background: var(--oeu-red-dark);
}

.oeu-map-stick-pin__point::after {
  position: absolute;
  bottom: -0.18rem;
  left: 50%;
  width: 0.48rem;
  height: 0.48rem;
  border: 2px solid var(--oeu-cream);
  border-radius: 50%;
  background: var(--oeu-red);
  content: '';
  transform: translateX(-50%);
}

.oeu-map-stick-pin:hover .oeu-map-stick-pin__label,
.oeu-map-stick-pin:focus-visible .oeu-map-stick-pin__label {
  background: #fff0c9;
}

.oeu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 2px solid var(--oeu-red);
  border-radius: 999px;
  background: var(--oeu-red);
  color: #fff !important;
  font: inherit;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.oeu-button:hover {
  border-color: var(--oeu-red-dark);
  background: var(--oeu-red-dark);
}

.oeu-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.oeu-button--secondary {
  background: transparent;
  color: var(--oeu-red-dark) !important;
}

.oeu-community-map__form-panel {
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(18rem, 1.2fr);
  gap: clamp(1.4rem, 4vw, 3.5rem);
  margin: 0 0 1.5rem;
  padding: clamp(1.2rem, 4vw, 2.5rem);
  border-radius: 1rem;
  background: var(--oeu-cream);
}

.oeu-community-map__form-panel h2 {
  margin: 0.2rem 0 0.7rem;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.oeu-eyebrow {
  margin: 0;
  color: var(--oeu-red);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.oeu-community-map__form {
  position: relative;
}

.oeu-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(8rem, 1fr);
  gap: 0.8rem;
  margin: 0 0 0.9rem;
}

.oeu-place-picker {
  position: relative;
  margin: 0 0 0.9rem;
}

.oeu-place-picker__results {
  position: absolute;
  z-index: 10;
  top: calc(100% - 1.45rem);
  right: 0;
  left: 0;
  max-height: 17rem;
  overflow-y: auto;
  border: 1px solid #947f70;
  border-radius: 0 0 0.55rem 0.55rem;
  background: var(--oeu-paper);
  box-shadow: 0 0.6rem 1.3rem rgb(37 24 18 / 16%);
}

.oeu-place-picker__option {
  display: block;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 0;
  border-top: 1px solid #eadfd4;
  background: var(--oeu-paper);
  color: var(--oeu-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.oeu-place-picker__option:first-child {
  border-top: 0;
}

.oeu-place-picker__option:hover,
.oeu-place-picker__option.is-active,
.oeu-place-picker__option:focus-visible {
  background: #fff3d9;
}

.oeu-place-picker__message {
  margin: 0;
  padding: 0.75rem;
}

.oeu-place-picker__feedback {
  margin: 0.35rem 0 0;
  color: var(--oeu-muted);
  font-size: 0.83rem;
}

.oeu-place-picker__feedback:empty {
  display: none;
}

.oeu-field-help {
  margin: 0.3rem 0 0;
  color: var(--oeu-muted);
  font-size: 0.83rem;
}

.oeu-field-help--names {
  margin: -0.45rem 0 0.9rem;
}

.oeu-community-map__statistics {
  display: grid;
  grid-template-columns: minmax(14rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.2rem, 4vw, 2.5rem);
  margin: 1.5rem 0 0;
  padding: clamp(1.1rem, 3vw, 1.7rem);
  border: 1px solid var(--oeu-border);
  border-radius: 1rem;
  background: var(--oeu-cream);
}

.oeu-community-map__statistics h2 {
  margin: 0.25rem 0 0.6rem;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.oeu-community-map__statistics-heading > p:last-child {
  margin-bottom: 0;
  color: var(--oeu-muted);
}

.oeu-statistics-total {
  color: var(--oeu-red-dark);
  font-size: 1.35em;
}

.oeu-community-map__rankings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.oeu-community-map__rankings article {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid #eadfd4;
  border-radius: 0.7rem;
  background: var(--oeu-paper);
}

.oeu-community-map__rankings h3 {
  margin: 0 0 0.55rem;
  color: var(--oeu-red-dark);
  font-size: 1rem;
}

.oeu-ranking {
  margin: 0;
  padding: 0;
  list-style: none;
}

.oeu-ranking li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.38rem 0;
  border-top: 1px solid #f0e7dd;
  font-size: 0.84rem;
}

.oeu-ranking li:first-child {
  border-top: 0;
}

.oeu-ranking__place {
  min-width: 0;
  overflow-wrap: anywhere;
}

.oeu-ranking__count {
  flex: 0 0 auto;
  min-width: 1.8rem;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  background: #f5dfae;
  color: var(--oeu-red-dark);
  text-align: center;
}

.oeu-ranking__empty {
  color: var(--oeu-muted);
}

.oeu-check-row {
  display: flex !important;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.75rem 0;
  font-weight: 400 !important;
}

.oeu-check-row input {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
}

.oeu-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

.oeu-community-map__form-result {
  margin: 0.8rem 0 0;
}

.oeu-community-map__form-result p {
  margin: 0.3rem 0;
}

.oeu-private-link {
  font-weight: 750;
}

.oeu-community-map__management {
  padding: clamp(1.2rem, 4vw, 2.5rem);
  border: 1px solid var(--oeu-border);
  border-radius: 1rem;
  background: var(--oeu-cream);
}

.oeu-community-map__management h2 {
  margin-top: 0;
}

.oeu-community-map__management-name {
  margin-bottom: 0.2rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.oeu-community-map__management-status {
  font-weight: 700;
}

.oeu-community-map__back {
  margin-top: 1rem;
}

.oeu-community-map .maplibregl-popup-content {
  max-height: 18rem;
  overflow-y: auto;
  padding: 1rem;
  border-radius: 0.7rem;
  color: var(--oeu-ink);
}

.oeu-community-map .maplibregl-ctrl-attrib {
  font-size: 10px;
}

body.oeu-donation-prompt-open {
  overflow: hidden;
}

.oeu-donation-prompt {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.oeu-donation-prompt__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgb(25 16 12 / 68%);
  cursor: default;
}

.oeu-donation-prompt__dialog {
  position: relative;
  width: min(44rem, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: clamp(1.2rem, 4vw, 2rem);
  border: 1px solid var(--oeu-border);
  border-radius: 1rem;
  background: rgb(255 250 240 / 97%);
  box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 32%);
}

.oeu-donation-prompt__dialog > h2 {
  margin: 0.25rem 2rem 0.65rem 0;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
}

.oeu-donation-prompt__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  padding: 0;
  border: 1px solid var(--oeu-border);
  border-radius: 50%;
  background: var(--oeu-paper);
  color: var(--oeu-red-dark);
  font: inherit;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.oeu-donation-prompt__methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}

.oeu-donation-prompt__methods > div {
  padding: 1rem;
  border: 1px solid var(--oeu-border);
  border-radius: 0.75rem;
  background: var(--oeu-paper);
  text-align: center;
}

.oeu-donation-prompt__methods h3 {
  margin: 0 0 0.6rem;
  color: var(--oeu-red-dark);
  font-size: 1.05rem;
}

.oeu-donation-prompt__methods img {
  display: block;
  width: min(12rem, 100%);
  height: auto;
  margin: 0.5rem auto;
  border-radius: 0.45rem;
}

.oeu-donation-prompt__dismiss {
  display: block;
  margin: 0.6rem auto 0;
  padding: 0.35rem;
  border: 0;
  background: transparent;
  color: var(--oeu-red-dark);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 840px) {
  .oeu-community-map__filters,
  .oeu-community-map__form-panel,
  .oeu-community-map__statistics {
    grid-template-columns: 1fr;
  }

  .oeu-community-map__rankings {
    grid-template-columns: 1fr;
  }

  .oeu-community-map__layout {
    grid-template-columns: 1fr;
  }

  .oeu-community-map__canvas {
    min-height: min(var(--oeu-map-height, 480px), 65vh);
  }

  .oeu-community-map__list-panel {
    max-height: none;
    overflow: visible;
    border-top: 1px solid var(--oeu-border);
    border-left: 0;
  }
}

@media (max-width: 520px) {
  .oeu-form-grid {
    grid-template-columns: 1fr;
  }

  .oeu-donation-prompt__methods {
    grid-template-columns: 1fr;
  }

  .oeu-community-map__filters,
  .oeu-community-map__form-panel {
    padding: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oeu-community-map *,
  .oeu-community-map *::before,
  .oeu-community-map *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
