#market-map {
  height: clamp(260px, 55vh, 520px);
  margin-bottom: 1rem;
}

#market-results[hidden] {
  display: none;
}

.market-map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.25rem;
  padding: 0;
  list-style: none;
}

.market-map-legend li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.market-map-area-symbol {
  box-sizing: border-box;
  border: 2px dashed #6c510d;
  border-radius: 50%;
  background: rgba(245, 210, 103, .72);
}

.market-map-legend .market-map-area-symbol {
  width: 1.15rem;
  height: 1.15rem;
}

.market-map-pin-symbol {
  width: .85rem;
  height: .85rem;
  background: #246090;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.market-map-area-symbol:focus-visible {
  outline: 3px solid #243d20;
  outline-offset: 2px;
}

#buyer-results[hidden], .map-view-active #market-pagination, .map-view-active #buyer-pagination { display:none; }
.map-popup-cards { padding:0; list-style:none; max-height:260px; overflow:auto; }
.map-popup-cards li { display:flex; align-items:center; gap:.5rem; margin:.45rem 0; }
.map-popup-cards small { display:block; color:#41513b; }
.map-popup-photo { width:58px; height:44px; object-fit:cover; border-radius:4px; flex:none; }
.map-popup-photo[hidden] { display:none; }
.market-map-haul-pin {
  box-sizing:border-box;
  border:2px solid #246090;
  border-radius:50%;
  background:#fff;
}
.market-map-haul-pin::before {
  content:"";
  position:absolute;
  left:50%;
  top:100%;
  transform:translateX(-50%);
  border:5px solid transparent;
  border-top:6px solid #246090;
}
.market-map-haul-arrow {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  fill:none;
  stroke:#213d2b;
  stroke-width:2.75;
  stroke-linecap:round;
  stroke-linejoin:round;
  pointer-events:none;
}
.map-popup-direction { display:inline-block; margin-right:.3rem; font-weight:bold; }
.map-view-active .result-count-bar { display:none; }
