.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-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: 1.5rem 0 0;
  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:focus-visible {
  background: #fff3d9;
}

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

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

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

@media (max-width: 840px) {
  .oeu-community-map__filters,
  .oeu-community-map__form-panel {
    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-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;
  }
}

