/* Column overrides are results-only; home/saved/recent and map grids keep their layout. */
.listing-map-layout:not(.is-map-active) #property-results .property-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Shared card markup is also used outside listing results. */
.property-card {
  min-width: 0;
  grid-template-rows: auto 1fr;
}

.property-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.property-card__topline {
  align-items: flex-start;
}

.property-card__type {
  min-width: 0;
  overflow-wrap: anywhere;
}

.property-card__agency {
  flex: 0 1 65%;
  min-width: 0;
  color: var(--color-muted);
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: right;
  overflow-wrap: anywhere;
}

.property-card__address {
  overflow-wrap: anywhere;
}

.property-card__facts dt,
.property-card__facts dd {
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.property-card__analysis {
  margin: 0;
  overflow-wrap: anywhere;
}

.property-card__analysis:empty {
  display: none;
}

.property-card__footer {
  flex-wrap: wrap;
  margin-top: auto;
}

.property-card__details {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 38px;
  color: var(--color-primary-dark);
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.property-card__details:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.property-card__details:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.property-card__details img {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.property-card__tools {
  margin-inline-start: auto;
}

@media (max-width: 860px) {
  .listing-map-layout:not(.is-map-active) #property-results .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .listing-map-layout:not(.is-map-active) #property-results .property-grid {
    grid-template-columns: 1fr;
  }
}

