/* ==========================================================================
   Charles and Lois Home — Properties Listing Page
   Loaded only on properties.html. The property grid and card styles
   (.property-grid, .property-card, etc.) live in pages.css and are reused
   as-is here rather than duplicated — this file only adds what's new for
   this page: the intro, the filter panel, and the empty state.
   ========================================================================== */

.properties-intro {
  padding-block: var(--space-2xl) var(--space-lg);
}

.properties-intro__heading {
  margin-top: var(--space-2xs);
  max-width: 18ch;
}

.properties-intro__body {
  margin-top: var(--space-sm);
  max-width: 60ch;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

/* ---- Filter panel ----
   Reuses .search-field (defined in pages.css) for label/input styling, so
   these fields look identical to the homepage search panel. */
.properties-filters {
  padding-bottom: var(--space-md);
}

.properties-results {
  padding-top: var(--space-lg);
}

.filters-panel__row {
  display: grid;
  gap: var(--space-md);
  padding: var(--space-lg);
  background-color: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
}

.filter-field__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
}

/* One control height so every label and control lines up in the row. */
.filters-panel__row input,
.filter-type-btn,
.filters-panel__reset {
  box-sizing: border-box;
  height: 3.25rem;
}

.filters-panel__note {
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.filter-types {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}

.filter-type-btn {
  padding: 0.65em 1.1em;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  background-color: var(--color-bg);
  border: var(--border-width) solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast);
}

.filter-type-btn:hover {
  border-color: var(--color-gold);
}

.filter-type-btn[aria-pressed='true'] {
  background-color: var(--color-forest);
  border-color: var(--color-forest);
  color: var(--color-cream);
}

.filters-panel__reset {
  width: 100%;
}

/* ---- Results ---- */
.properties-results__summary {
  margin-bottom: var(--space-lg);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ---- Empty state ---- */
.empty-state {
  padding-block: var(--space-2xl);
  text-align: center;
  border: var(--border-width) dashed var(--color-border);
}

.empty-state__heading {
  font-size: var(--text-2xl);
}

.empty-state__body {
  margin-top: var(--space-sm);
  margin-inline: auto;
  max-width: 46ch;
  color: var(--color-text-muted);
}

.empty-state .btn {
  margin-top: var(--space-lg);
}

@media (min-width: 640px) {
  .filters-panel__row {
    grid-template-columns: repeat(2, 1fr);
  }

  .filters-panel__reset {
    width: auto;
  }
}

@media (min-width: 1024px) {
  .filters-panel__row {
    /* Guests, property type, then Reset pushed to the right edge. */
    grid-template-columns: minmax(0, 18rem) auto 1fr;
    align-items: end;
  }

  .filters-panel__reset {
    justify-self: end;
  }
}
