/**
 * homes-for-sale.css — Meadow Lane Park
 * Listing page: intro, filter bar, ownership strip, empty + no-match states.
 * Individual card styles live in listings.css.
 */

/* ── Page intro ──────────────────────────────────────── */
.listings-intro {
  padding: var(--space-10) 0 var(--space-8);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
  border-bottom: 1px solid var(--clr-stone);
  margin-bottom: var(--space-8);
}

.listings-intro__text {
  font-size: var(--text-base);
  color: var(--clr-text-mid);
  max-width: 640px;
  margin: 0;
  line-height: var(--leading-normal);
}

.listings-intro__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--clr-teal);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.listings-intro__link:hover {
  color: var(--clr-slate);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ── Filter bar ──────────────────────────────────────── */
.listings-filter-bar {
  background: var(--clr-stone-light);
  border: 1px solid var(--clr-stone);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-8);
}

.listings-filter-form {
  display: flex;
  align-items: flex-end;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.listings-filter__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 140px;
}

.listings-filter__label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--clr-text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.listings-filter__select {
  /* Inherits from forms.css base styles */
  padding: 8px 12px;
  font-size: var(--text-sm);
  min-width: 140px;
}

.listings-filter__count {
  margin-left: auto;
  align-self: center;
}

.listings-count {
  font-size: var(--text-sm);
  color: var(--clr-text-light);
  font-style: italic;
}

/* ── Listings section ────────────────────────────────── */
.listings-section {
  margin-bottom: var(--space-12);
}

/* Empty state (from View) */
.listings-empty-state,
.listings-empty {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  color: var(--clr-text-light);
  font-size: var(--text-base);
  background: var(--clr-stone-light);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--clr-stone);
}

.listings-empty a {
  color: var(--clr-teal);
  font-weight: 500;
}

/* ── Pager ───────────────────────────────────────────── */
.listings-pager {
  display: flex;
  justify-content: center;
  margin-top: var(--space-10);
}

.listings-pager .pager {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.listings-pager .pager__item a,
.listings-pager .pager__item.is-active span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  border: 1px solid var(--clr-stone);
  background: white;
  color: var(--clr-text-mid);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.listings-pager .pager__item a:hover {
  background: var(--clr-teal-pale);
  border-color: var(--clr-teal);
  color: var(--clr-teal);
  text-decoration: none;
}

.listings-pager .pager__item.is-active span {
  background: var(--clr-teal);
  border-color: var(--clr-teal);
  color: white;
}

/* ── Ownership explainer strip ───────────────────────── */
.listings-ownership-strip {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  background: var(--clr-teal-pale);
  border: 1px solid rgba(74,124,111,0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
}

.listings-ownership-strip__icon {
  color: var(--clr-teal);
  flex-shrink: 0;
}

.listings-ownership-strip__text {
  font-size: var(--text-sm);
  color: var(--clr-text-mid);
  flex: 1;
  line-height: var(--leading-normal);
}

.listings-ownership-strip__text strong {
  color: var(--clr-slate);
  font-weight: 500;
}

/* ── "Not finding what you need?" section ────────────── */
.listings-no-match {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  background: var(--clr-stone-light);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-16);
}

.listings-no-match h2 {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 500;
  color: var(--clr-slate);
  margin-bottom: var(--space-3);
}

.listings-no-match p {
  color: var(--clr-text-mid);
  max-width: 440px;
  margin: 0 auto var(--space-8);
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 767px) {
  .listings-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .listings-filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .listings-filter__group { min-width: 0; width: 100%; }
  .listings-filter__select { width: 100%; }
  .listings-filter__count { margin-left: 0; }

  .listings-ownership-strip { flex-direction: column; align-items: flex-start; }
}
