/* Harbrook & Vale demo: search results. Loaded on the PropertyHive results page. */

.hv-search { padding-bottom: var(--sa-gap-section); }
.hv-search__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  padding: clamp(32px, 5vw, 64px) 0 clamp(20px, 3vw, 32px); }
.hv-search__head h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4rem); margin: 0; max-width: 20ch; }
.hv-search__count { margin: 0; color: var(--sa-muted); font-size: 1.05rem; }

/* Filter bar */
.hv-filters { margin: 0 0 clamp(24px, 3vw, 40px); }
.hv-filters__box { background: var(--sa-surface); border: 1px solid var(--sa-hairline); border-radius: var(--sa-r-surface); }
.hv-filters__toggle { display: none; list-style: none; cursor: pointer; padding: 16px 20px; font-family: var(--sa-label); font-size: 1.05rem;
  align-items: center; justify-content: space-between; min-height: 52px; }
.hv-filters__toggle::-webkit-details-marker { display: none; }
.hv-filters__toggle::after { content: ""; width: 9px; height: 9px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
.hv-filters__box[open] .hv-filters__toggle::after { transform: rotate(-135deg); }
.hv-filters__on { margin-left: 8px; padding: .15rem .6rem; border-radius: var(--sa-r-pill); background: var(--sa-ink); color: #fff; font-size: .78rem; }
.hv-filters__grid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; padding: 22px 24px; }

.hv-seg { display: inline-flex; margin: 0; padding: 0; border: 0; min-width: 0; }
.hv-seg label { position: relative; display: block; }
.hv-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hv-seg span { display: block; padding: .72rem 1.4rem; border: 1px solid var(--sa-ink); font-family: var(--sa-label); font-size: 1rem; line-height: 1.2; min-height: 46px; display: flex; align-items: center; }
.hv-seg label:first-child span { border-radius: var(--sa-r-button) 0 0 var(--sa-r-button); }
.hv-seg label:last-child span { border-radius: 0 var(--sa-r-button) var(--sa-r-button) 0; border-left: 0; }
.hv-seg input:checked + span { background: var(--sa-ink); color: #fff; }
.hv-seg input:focus-visible + span { outline: 2px solid var(--sa-ink); outline-offset: 2px; }

.hv-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 140px; margin: 0; }
.hv-field--place { flex: 1.4 1 190px; }
.hv-field > span { color: var(--sa-muted); font-size: .82rem; letter-spacing: .02em; }
.hv-field select { width: 100%; min-height: 46px; padding: .6rem .9rem; font: inherit; font-size: 1rem; color: var(--sa-ink);
  background: #fff; border: 1px solid var(--sa-line); border-radius: var(--sa-r-input); margin: 0; }
.hv-field select:hover { border-color: var(--sa-ink); }
.hv-filters__go { flex: 0 0 auto; min-height: 46px; }

/* Results */
.hv-search .navigation.pagination { margin-top: clamp(32px, 4vw, 56px); }
.hv-search .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hv-search .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--sa-line); border-radius: var(--sa-r-button); color: var(--sa-ink); font-family: var(--sa-label); }
.hv-search a.page-numbers:hover { border-color: var(--sa-ink); text-decoration: none; }
.hv-search .page-numbers.current { background: var(--sa-ink); border-color: var(--sa-ink); color: #fff; }
.hv-search .page-numbers.dots { border: 0; }

.hv-empty { padding: clamp(32px, 6vw, 80px) 0; max-width: 56ch; }
.hv-empty h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); }
.hv-empty p { color: var(--sa-muted); }
.hv-empty__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

@media (min-width: 768px) {
  .hv-filters__box[open] .hv-filters__toggle, .hv-filters__toggle { display: none; }
}
@media (max-width: 767px) {
  .hv-filters__toggle { display: flex; }
  .hv-filters__grid { flex-direction: column; align-items: stretch; padding: 4px 20px 22px; }
  .hv-field, .hv-field--place { flex: 0 0 auto; }
  .hv-seg { display: flex; }
  .hv-seg label { flex: 1; }
  .hv-seg span { justify-content: center; }
  .hv-filters__go { width: 100%; }
}
