/**
 * Location details – four stats row (Average Price, YOY Growth, Properties Available, Avg. Days on Market).
 */

.location-details {
  background-color: #fff;
  padding: 0rem 1rem 2rem 1rem;
}

.location-details__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 2rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.location-details__stat {
  flex: 1 1 140px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.location-details__value {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: clamp(2rem, 4vw, 2.25rem);
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}

.location-details__value--growth.location-details__value--positive {
  color: #b91c1c;
}

.location-details__value--growth.location-details__value--negative {
  color: #15803d;
}

.location-details__label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0;
}

@media (min-width: 640px) {
  .location-details__inner {
    gap: 2rem 4rem;
  }

  .location-details__value {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
  }

  .location-details__label {
    font-size: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .location-details {
    padding: 0 2rem 3rem 2rem;
  }

  .location-details__inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 2rem;
  }

  .location-details__stat {
    flex: 1 1 0;
  }
}

@media (max-width: 768px) {
  .location-details__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* Invest style: show property cards grid instead of stats row */
.location-details--invest .location-details__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.location-details__invest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
