/*
  prop-results.css
  The results area of the property page: count, the card grid, the empty state and the page links.
  The card shell (.fm-card, .fm-media) is in css/base.css; buttons are in prop-filters.css.
  Needs css/base.css.
*/

.fm-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.fm-props { padding-block: 1.25rem calc(var(--fm-section) * 0.8); container-type: inline-size; }
.fm-props__count { margin-bottom: 1rem; font-size: var(--fm-t-sm); font-weight: 600; color: var(--fm-muted); }
.fm-props h2:focus { outline: none; }

/* ---------- Cards: 1 across on phones, 2 on tablets, 3 on desktop ---------- */
.fm-props__cards { display: grid; gap: calc(var(--fm-gap) * 0.7) calc(var(--fm-gap) * 0.6); }
@container (min-width: 34rem) { .fm-props__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 56rem) { .fm-props__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.fm-prop { display: flex; flex-direction: column; }
.fm-prop .fm-media { aspect-ratio: 16 / 9; }
.fm-prop .fm-media img { height: 100%; aspect-ratio: 16 / 9; }
.fm-prop .fm-card__body { flex: 1; padding-bottom: 1.2rem; }
.fm-prop h3 { font-size: 1.0625rem; line-height: 1.3; }
.fm-prop__county { margin-top: 0.3rem; font-size: var(--fm-t-sm); color: var(--fm-muted); }
.fm-prop__price { margin-top: 0.7rem; font-family: var(--fm-serif); font-size: 1.5rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: var(--fm-blue); }

/* ---------- Empty state ---------- */
.fm-props__empty { display: grid; justify-items: center; gap: 1rem; padding: 2.5rem 1.5rem; border: 2px dashed var(--fm-rule); border-radius: var(--fm-radius); background: #fff; text-align: center; color: var(--fm-muted); }
.fm-props__empty[hidden] { display: none; }

/* ---------- Page links: Previous, 1 ... 4 5 6 ... 40, Next (same as the directory) ---------- */
.fm-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 0.75rem; margin-top: calc(var(--fm-gap) * 1.1); }
.fm-pager__nums { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; }
.fm-pager a, .fm-pager__step, .fm-pager__gap { display: grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; padding-inline: 0.8rem; border-radius: 8px; font-size: var(--fm-t-sm); font-weight: 700; }
.fm-pager__gap { min-width: 1.4rem; padding-inline: 0; color: var(--fm-muted); }
.fm-pager a { border: 1px solid var(--fm-rule); background: #fff; color: var(--fm-blue); }
.fm-pager a:hover { border-color: var(--fm-blue); background: var(--fm-blue-tint); }
.fm-pager a.is-current { border-color: var(--fm-blue); background: var(--fm-blue); color: #fff; }
.fm-pager a:focus-visible { outline: 2px solid var(--fm-blue); outline-offset: 2px; }
.fm-pager__step.is-off { color: #6f7f8b; }
