/* Search + pagination for /blog and /guides */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.list-search { display: flex; gap: .6rem; align-items: center; margin: 0 0 1.2rem; }
.list-search input[type="search"] { margin-top: 0; }
.list-search input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }

.list-count { margin: 0 0 .9rem; }

/* Fade results while a request is in flight — subtle, so fast responses don't flicker. */
#list-results { transition: opacity .12s ease; }
#list-results.is-loading { opacity: .55; }

.pager {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: .4rem; margin: 1.6rem 0 .5rem;
}
.pager-pages { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }

.pager-btn, .pager-num {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .4rem .75rem; border: 1px solid var(--border); border-radius: 8px;
  background: var(--panel); color: var(--text); font-size: .9rem;
  text-decoration: none; transition: background .15s ease, border-color .15s ease;
}
.pager-num { min-width: 2.1rem; }
.pager-btn:hover, .pager-num:hover { background: var(--panel-2); border-color: var(--accent); }

.pager-num.is-current {
  background: var(--accent); border-color: var(--accent);
  color: #04241a; font-weight: 600;
}
.pager-num.is-current:hover { background: var(--accent); }

.pager-btn.is-disabled { opacity: .4; pointer-events: none; }
.pager-gap { padding: 0 .2rem; color: var(--muted); }

@media (max-width: 480px) {
  .pager { gap: .3rem; }
  .pager-btn, .pager-num { padding: .35rem .6rem; font-size: .85rem; }
}

/* Category + location filters on /guides */
.list-search { flex-wrap: wrap; }
.list-search input[type="search"] { flex: 1 1 16rem; }

.list-filters { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.list-filters select { width: auto; margin-top: 0; min-width: 11rem; cursor: pointer; }
.list-filters select option:disabled { color: var(--muted); }

.filter-clear { font-size: .85rem; color: var(--muted); text-decoration: underline; white-space: nowrap; }
.filter-clear:hover { color: var(--accent); }
.filter-clear[hidden] { display: none; }

.badge-varies {
  display: inline-block; margin-left: .5rem; padding: .1rem .45rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--panel-2); color: var(--muted);
  font-size: .68rem; font-weight: 500; letter-spacing: .01em;
  vertical-align: middle; white-space: nowrap;
}

@media (max-width: 620px) {
  .list-filters { width: 100%; }
  .list-filters select { flex: 1 1 100%; min-width: 0; }
}
