.jobs-map[hidden],
[data-map-retry][hidden],
[data-place-clear][hidden] {
  display: none;
}
.map-search[data-map-active] {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 1fr);
  gap: 1rem;
  align-items: start;
}
.jobs-map {
  position: relative;
  min-width: 0;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #cbd2ca;
  border-radius: 1rem;
  background: #e5e9e2;
}
.map-surface {
  position: relative;
  height: 34rem;
  max-height: 65dvh;
  min-height: 18rem;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  outline-offset: -4px;
}
.map-surface:active {
  cursor: grabbing;
}
.map-tiles,
.map-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.map-tiles img {
  position: absolute;
  width: 256px;
  height: 256px;
  max-width: none;
  user-select: none;
}
.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  min-width: 44px;
  height: 44px;
  padding: 0 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  border-radius: 50%;
  background: #242e28;
  color: white;
  font-weight: 750;
  box-shadow: 0 2px 8px #0003;
  text-decoration: none;
  cursor: pointer;
}
.map-marker:focus-visible {
  outline: 3px solid #93cf1d;
  outline-offset: 3px;
}
.map-controls {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.map-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 0.4rem 0.55rem;
  background: white;
  color: #17211a;
  border: 1px solid #b5bcb5;
  border-radius: 0.6rem;
}
.map-attribution {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #fffffff2;
  color: #17211a;
  padding: 0.3rem 0.5rem;
  font-size: 0.72rem;
  line-height: 1.5;
}
.map-error {
  position: absolute;
  left: 0.5rem;
  bottom: 2rem;
  max-width: calc(100% - 1rem);
  padding: 0.5rem 0.75rem;
  background: white;
  color: #952e24;
  border-radius: 0.4rem;
  margin: 0;
}
.map-results {
  min-width: 0;
}
.map-result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.map-results > .rows {
  max-height: 31rem;
  overflow: auto;
  overscroll-behavior: contain;
}
.map-results .list-row {
  padding: 1rem 0.5rem;
}
.map-list-link {
  margin-right: 1rem;
}
.place-editor {
  border: 0;
  padding: 0;
  margin: 1.5rem 0;
  min-width: 0;
}
.place-editor legend {
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.place-editor .map-surface {
  height: 22rem;
}
.detail-main .map-surface {
  height: 24rem;
}
@media (max-width: 800px) {
  .map-search[data-map-active] {
    grid-template-columns: minmax(0, 1fr);
  }
  .map-surface {
    height: 48dvh;
    min-height: 16rem;
  }
  .map-results > .rows {
    max-height: none;
    overflow: visible;
  }
  .map-results .list-row {
    padding: 1rem 0;
  }
  .place-editor .map-surface {
    height: 18rem;
  }
}
@media (forced-colors: active) {
  .map-marker,
  .map-controls button {
    border: 2px solid ButtonText;
  }
  .map-attribution,
  .map-error {
    background: Canvas;
    color: CanvasText;
  }
}
