/* Listing view for the HubDB-driven property template. Plain CSS (not a
   CSS module) since this markup lives directly in the HubL template. */

.property-listing-hero {
  background: var(--bg);
  padding: 64px 24px 40px;
}

.property-listing-hero__grid {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.property-listing-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 8px 0 12px;
}

.property-listing-hero__subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 40em;
  margin: 0 0 8px;
}

.property-listing-hero__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 4 / 3;
}

.property-listing-hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 860px) {
  .property-listing-hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .property-listing-hero__subtitle {
    margin: 0 auto 8px;
  }
}

.property-listing-intro {
  background: var(--surface);
  padding: 48px 24px;
  text-align: center;
}

.property-listing-intro__inner {
  max-width: var(--container-width);
  margin: 0 auto;
}

.property-listing-intro__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 16px;
}

.property-listing-intro__text {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 70ch;
  margin: 0 auto;
  line-height: 1.6;
}

.property-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 24px 96px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.property-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease;
}

.property-card:hover {
  transform: translateY(-4px);
}

.property-card__image {
  aspect-ratio: 16 / 10;
  background: var(--bg);
}

.property-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-card__body {
  padding: 28px;
}

.property-card__tenant {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-on-surface);
  margin-bottom: 10px;
}

.property-card__title {
  font-size: 20px;
  margin-bottom: 10px;
}

.property-card__title span {
  color: var(--accent-on-surface);
}

.property-card__address {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.property-card__cta {
  color: var(--accent-on-surface);
  font-weight: 600;
  font-size: 14px;
}
