#locations {
  padding-bottom: 60px;
  background: #fff;
}

.property-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: stretch;
  gap: 16px;
}

.property-map-canvas {
  min-height: 490px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #e8edf0;
  color: var(--navy);
  font-family: inherit;
  isolation: isolate;
}

.property-map-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.property-map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.property-map-controls[hidden], .property-map-canvas[hidden] {
  display: none;
}

.property-map-controls button, .property-map-link {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
  font-size: 0.875rem;
}

.property-map-controls button {
  min-height: 44px;
  padding: 5px 10px;
  font-weight: 600;
  cursor: pointer;
}

.property-map-panel button:hover,
.property-map-link:hover,
.property-map-link[aria-current="location"] {
  border-color: var(--blue);
  background: #ebf1f5;
}

.property-map-panel :focus-visible, .property-map-canvas :focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.property-map-list {
  display: grid;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.property-map-link {
  display: block;
  padding: 8px 10px;
  line-height: 1.5;
  font-weight: 700;
}

.property-map-link small {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
}

.property-map-city-pin, .property-map-building-pin {
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 7px #102c4c55;
}

.property-map-city-pin {
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}

.property-map-building-pin {
  border-radius: 50%;
  background: var(--navy);
}

.property-map-building-pin::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e0c17f;
}

.property-map-popup strong {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.property-map-popup small {
  display: block;
  font-size: 0.8125rem;
}

.property-map-popup a {
  display: block;
  padding-top: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 850px) {
  .property-map-layout { grid-template-columns: minmax(0, 1fr); }
  .property-map-canvas { height: clamp(330px, 57vw, 460px); min-height: 0; }
  .property-map-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 214px), 1fr)); }
}
