/* ═══════════════════════════════════════════════════════════════
   REIS Components — Listing Cards, Lead Forms, Stats
   Load this after style.css on neighbourhood pages
   ═══════════════════════════════════════════════════════════════ */

/* ── Listing Cards ── */
.listing-card__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.listing-card {
  background: #1a1f24;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.listing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.listing-card__image {
  position: relative;
  aspect-ratio: 16/10;
  background: #14181c;
  overflow: hidden;
}

.listing-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1f24 0%, #2a3038 100%);
}

.listing-card__image-icon {
  font-size: 3rem;
  opacity: 0.3;
}

.listing-card__price {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.listing-card__body {
  padding: 1rem;
}

.listing-card__type {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin: 0 0 0.25rem;
}

.listing-card__address {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.listing-card__details {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.listing-card__details strong {
  color: rgba(255,255,255,0.85);
}

.listing-card__empty,
.listing-card__error {
  text-align: center;
  color: rgba(255,255,255,0.5);
  padding: 2rem;
  font-size: 1rem;
}

.listing-card__loading {
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(255,255,255,0.5);
}

/* ── Loading Spinner ── */
.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: rgba(255,255,255,0.5);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Lead Capture Form ── */
.lead-form {
  background: #1a1f24;
  border-radius: 8px;
  padding: 1.5rem;
}

.lead-form__field {
  margin-bottom: 1rem;
}

.lead-form__field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.35rem;
}

.lead-form__field input[type="text"],
.lead-form__field input[type="email"],
.lead-form__field input[type="tel"],
.lead-form__field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  background: #14181c;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.lead-form__field input:focus,
.lead-form__field textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.35);
}

.lead-form__radio-group {
  display: flex;
  gap: 1.5rem;
}

.lead-form__radio {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
}

.lead-form__radio input[type="radio"] {
  accent-color: #fff;
}

.lead-form__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  line-height: 1.4;
}

.lead-form__checkbox-label input[type="checkbox"] {
  margin-top: 0.15rem;
  accent-color: #fff;
  flex-shrink: 0;
}

.lead-form__message {
  font-size: 0.9rem;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .listing-card__grid {
    grid-template-columns: 1fr;
  }
}
/* ── Neighbourhood Listing Cards (rl-card) ── */
/* Doubled text sizes 2026-06-05 per Jon */
.rl-section { background: var(--color-off-white); padding: 4rem 0; }
.rl-card__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .rl-card__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rl-card__grid { grid-template-columns: 1fr; } }
.rl-card__link { text-decoration: none; color: inherit; display: block; }
.rl-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow 0.3s ease, transform 0.3s ease; }
.rl-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.rl-card__img { aspect-ratio: 4/3; background-size: cover; background-position: center; background-color: #f0f0f0; position: relative; }
.rl-card__img--empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f5f5f5, #e8e8e8); }
.rl-card__placeholder { font-size: 3rem; opacity: 0.2; }
.rl-card__price { position: absolute; bottom: 0; left: 0; right: 0; padding: 0.75rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,0.75)); color: #fff; font-family: var(--font-heading); font-size: 2.8rem; font-weight: 600; line-height: 1.2; }
.rl-card__body { padding: 1.25rem; }
.rl-card__type { font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); margin: 0 0 0.35rem; }
.rl-card__address { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 500; color: var(--color-text); margin: 0 0 0.75rem; line-height: 1.3; }
.rl-card__meta { display: flex; gap: 1.25rem; font-size: 1.8rem; color: var(--color-text-light); }
.rl-card__meta strong { color: var(--color-text); }
.rl-card__empty, .rl-card__error { grid-column: 1/-1; text-align: center; padding: 3rem 1rem; color: var(--color-text-muted); font-size: 2rem; }
.rl-card__loading { grid-column: 1/-1; text-align: center; padding: 3rem 1rem; color: var(--color-text-muted); }
.rl-spinner { width: 36px; height: 36px; margin: 0 auto 1rem; border: 3px solid var(--color-border); border-top-color: var(--color-accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
