/* ============================================================
   guide-resources.css
   Loaded by all resource guide pages (resource_search,
   mental_health, veteran_resources, family_support,
   spiritual_health, training_workshops, housing, emergency).
   Requires guide-shared.css to already be loaded.

   Covers the filter bar, resource card grid, resource detail
   modal, pagination, and wide-container layout.
   ============================================================ */

body, .site-main { background: var(--cream); }

/* ══════════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════════ */
.res-layout { display: flex; gap: 2rem; align-items: flex-start; margin-bottom: 5rem; }

.res-wide-container {
  width: 100%; max-width: 1600px; margin-left: auto; margin-right: auto;
  padding-left: 2rem; padding-right: 2rem; box-sizing: border-box;
}
@media (max-width: 768px) {
  .res-wide-container { padding-left: 1rem; padding-right: 1rem; }
  .hide-on-mobile { display: none; }
}

/* ══════════════════════════════════════════════════════
   FILTER / SORT BAR
══════════════════════════════════════════════════════ */
.res-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem;
  margin-bottom: 1.25rem;
  background: #fff;
  border: 1px solid rgba(41,128,185,.15);
  border-radius: var(--radius);
  padding: .75rem 1.1rem;
  box-shadow: var(--shadow-card);
}
.res-filter-bar__left  { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.res-filter-bar__right { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; flex: 1 1 auto; justify-content: flex-end; }

/* Search input */
.res-search-wrap { position: relative; }
.res-search-wrap .res-search-icon {
  position: absolute; left: .8rem; top: 50%; transform: translateY(-50%);
  color: var(--main); font-size: .85rem; pointer-events: none; z-index: 1;
}
#resourceSearch {
  box-sizing: border-box;
  padding: .45rem 1rem .45rem 2.4rem;
  border: 2px solid var(--light) !important;
  border-radius: 50px !important;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  color: var(--text-dark) !important;
  background: #fff !important;
  outline: none;
  width: 310px;
  transition: border-color var(--tr), box-shadow var(--tr);
}
#resourceSearch:focus {
  border-color: var(--main) !important;
  box-shadow: 0 0 0 3px rgba(41,128,185,.15);
}

/* Filter dropdown button */
.filter-dropdown-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.filter-dropdown-wrap label {
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  color: var(--warm-gray);
  white-space: nowrap;
}
.filter-dropdown-wrap label i { color: var(--main); margin-right: .25rem; }
.filter-dropdown-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  border: 2px solid var(--light);
  border-radius: 50px;
  padding: .3rem 2rem .3rem .85rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232980b9' d='M6 8L0 0h12z'/%3E%3C/svg%3E") no-repeat right .75rem center;
  color: var(--mid);
  cursor: pointer;
  outline: none;
  transition: border-color var(--tr), background-color var(--tr);
  white-space: nowrap;
  min-width: 150px;
  text-align: left;
}
.filter-dropdown-btn:hover { border-color: var(--main); }
.filter-dropdown-btn.has-value {
  border-color: var(--main);
  background-color: var(--pale);
  color: var(--deep);
  font-weight: 600;
}

/* Filter popover panel */
.filter-popover {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1.5px solid var(--light);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(13,45,69,.15);
  padding: .5rem .25rem .5rem .5rem;
  min-width: 230px;
  z-index: 510;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--light) transparent;
}
.filter-popover::-webkit-scrollbar { width: 4px; }
.filter-popover::-webkit-scrollbar-thumb { background: var(--light); border-radius: 4px; }
.filter-popover.open { display: block; }
.filter-popover__head {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--mid); padding: .15rem .5rem .4rem; border-bottom: 1px solid var(--pale);
  margin-bottom: .35rem; display: flex; align-items: center; justify-content: space-between;
}
.filter-popover__clear {
  font-size: .72rem; font-weight: 600; color: var(--main);
  background: none; border: none; cursor: pointer; padding: 0;
  text-decoration: underline; text-transform: none; letter-spacing: 0;
}
.filter-popover__apply {
  margin: .25rem .5rem .4rem; width: calc(100% - 1rem); padding: .48rem;
  background: var(--main); color: #fff; border: none; border-radius: 50px;
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: .88rem;
  cursor: pointer; transition: background var(--tr); display: block;
}
.filter-popover__apply:hover { background: var(--deep); }
.filter-popover__divider { height: 1px; background: var(--pale); margin: .35rem .5rem; }
.filter-popover__item {
  display: flex; align-items: center; gap: .55rem; padding: .32rem .5rem;
  border-radius: 7px; cursor: pointer; transition: background var(--tr); user-select: none;
}
.filter-popover__item:hover { background: var(--pale); }
.filter-popover__check {
  flex-shrink: 0; width: 16px; height: 16px;
  border: 2px solid var(--light); border-radius: 4px; background: #fff;
  display: flex; align-items: center; justify-content: center; transition: all var(--tr);
}
.filter-popover__item.checked .filter-popover__check { background: var(--main); border-color: var(--main); }
.filter-popover__item.checked .filter-popover__check::after {
  content: ''; display: block; width: 4px; height: 7px;
  border: 2px solid #fff; border-top: none; border-left: none;
  transform: rotate(45deg) translate(-1px,-1px);
}
.filter-popover__name {
  font-family: 'DM Sans', sans-serif; font-size: .88rem; color: var(--text-dark); line-height: 1.3; flex: 1;
}
.filter-popover__count {
  margin-left: auto; font-family: 'DM Sans', sans-serif; font-size: .75rem;
  color: var(--warm-gray); background: var(--pale); border-radius: 50px;
  padding: .05rem .42rem; flex-shrink: 0; white-space: nowrap;
}
.filter-popover__note {
  margin: .5rem .5rem 0; padding: .45rem .55rem; background: var(--pale); border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: .72rem; color: var(--warm-gray); line-height: 1.5;
}

/* Mobile bottom-sheet popover */
.filter-popover--sheet {
  position: fixed !important; top: auto !important; bottom: 0 !important;
  left: 0 !important; right: 0 !important; width: 100% !important;
  min-width: unset !important; max-height: 62vh;
  border-radius: 20px 20px 0 0 !important;
  border-left: none !important; border-right: none !important; border-bottom: none !important;
  box-shadow: 0 -8px 48px rgba(13,45,69,.25) !important;
  z-index: 99999 !important; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem) !important;
  overflow-y: auto !important; display: block !important;
}
.filter-popover--sheet .filter-popover__item { padding: .55rem .6rem; }
.filter-popover--sheet .filter-popover__check { width: 20px; height: 20px; }
.filter-popover--sheet .filter-popover__name { font-size: .92rem; }
.filter-popover--sheet .filter-popover__apply { padding: .6rem; font-size: .92rem; }
.filter-popover--sheet::before {
  content: ''; display: block; width: 40px; height: 4px;
  background: #d0dde6; border-radius: 2px; margin: .3rem auto .75rem;
}
#popoverBackdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(13,45,69,.4); z-index: 99998;
}
#popoverBackdrop.active { display: block; }

/* Sort / count / chips */
.res-sort-select {
  font-family: 'DM Sans', sans-serif; font-size: .9rem;
  border: 2px solid var(--light); border-radius: 50px; padding: .3rem .85rem;
  background: #fff; color: var(--mid) !important; cursor: pointer; outline: none; transition: border-color var(--tr);
}
.res-sort-select:focus { border-color: var(--main); }
.res-count-label { font-family: 'DM Sans', sans-serif; font-size: .9rem; color: var(--warm-gray) !important; white-space: nowrap; }
.res-count-label strong { color: var(--deep) !important; }
.res-active-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.res-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--pale); border: 1.5px solid var(--light);
  color: var(--mid) !important; font-family: 'DM Sans', sans-serif; font-size: .82rem;
  font-weight: 600; padding: .25rem .65rem; border-radius: 50px; cursor: pointer; transition: all var(--tr);
}
.res-chip:hover { background: #fce8e8; border-color: #e07070; color: var(--deep) !important; }
.res-chip i { font-size: .65rem; }
.res-suggest-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .9rem; border-radius: 50px;
  background: var(--main); color: #fff !important;
  font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: .85rem;
  text-decoration: none; transition: background var(--tr); white-space: nowrap;
}
.res-suggest-btn:hover { background: var(--deep); color: #fff !important; text-decoration: none; }

/* Updated-at pill */
.res-updated-pill {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: 'DM Sans', sans-serif; font-size: .72rem; font-weight: 600;
  padding: .18rem .55rem; border-radius: 50px; white-space: nowrap;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4); color: #fff;
  line-height: 1;
}
.res-updated-pill--stale { background: rgba(0,0,0,.15); border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.65); }
.res-updated-pill i { font-size: .65rem; }

/* ══════════════════════════════════════════════════════
   RESOURCE CARD GRID
══════════════════════════════════════════════════════ */
.res-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
@media (max-width:1100px) { .res-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:600px)  { .res-grid { grid-template-columns: 1fr; } }

.res-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card); display: flex; flex-direction: column;
  transition: transform var(--tr), box-shadow var(--tr);
  animation: resFadeIn .35s ease both;
  border: 1px solid rgba(41,128,185,.12);
}
.res-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.res-card__header {
  padding: 1rem 1.15rem .8rem; display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: .45rem; border-radius: 14px 14px 0 0;
}
.res-card__title-block { width: 100%; min-width: 0; container-type: inline-size; text-align: center; }
.res-card__name {
  font-family: 'Playfair Display', serif; font-size: clamp(1.35rem, 3cqi, 1.6rem);
  font-weight: 700; color: #fff !important; line-height: 1.3; margin: 0 0 .3rem; overflow-wrap: break-word;
  letter-spacing: -.01em; text-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.res-card__type {
  display: inline-block; font-family: 'DM Sans', sans-serif; font-size: .75rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: .25rem .7rem;
  border-radius: 50px; white-space: normal; text-align: center; line-height: 1.4;
  background: rgba(255,255,255,.2); color: #fff !important; border: 1px solid rgba(255,255,255,.4);
}
.res-card__body { padding: .7rem 1.15rem; flex: 1; }
.res-card__desc {
  font-family: 'DM Sans', sans-serif; font-size: .92rem; color: var(--warm-gray) !important;
  line-height: 1.6; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.res-card__desc-wrap { position: relative; cursor: default; }

/* Description tooltip */
.res-desc-tooltip {
  position: absolute; width: 280px;
  background: var(--deep); color: rgba(255,255,255,.92);
  font-family: 'DM Sans', sans-serif; font-size: .85rem; line-height: 1.65;
  padding: .85rem 1rem; border-radius: 12px;
  box-shadow: 0 12px 40px rgba(13,45,69,.35);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
  z-index: 9999; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent;
}
.res-desc-tooltip.visible { opacity: 1; pointer-events: auto; }
.res-desc-tooltip::after {
  content: ''; position: absolute; left: var(--arrow-left, 50%); transform: translateX(-50%);
  border: 7px solid transparent;
}
.res-desc-tooltip[data-side="above"]::after { top: 100%; border-top-color: var(--deep); }
.res-desc-tooltip[data-side="below"]::after { bottom: 100%; border-bottom-color: var(--deep); }

.res-card__footer {
  padding: .7rem 1.15rem .9rem; margin-top: auto;
  border-top: 1px solid var(--pale); display: flex; flex-direction: column; gap: .35rem;
}
.res-card__contact {
  display: flex; align-items: center; gap: .45rem;
  font-family: 'DM Sans', sans-serif; font-size: .88rem;
  color: var(--warm-gray) !important; text-decoration: none; overflow: hidden;
}
.res-card__contact i { color: var(--main) !important; flex-shrink: 0; width: 13px; text-align: center; }
.res-card__contact span { color: var(--warm-gray) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.res-card__contact:hover span { color: var(--main) !important; text-decoration: underline; }

.res-card__actions { margin-top: .3rem !important; display: flex !important; gap: .5rem !important; }
.res-card__cta {
  flex: 1 !important; display: flex !important; align-items: center !important; justify-content: center !important; gap: .4rem !important;
  padding: .5rem !important; border-radius: 50px !important; background: var(--main) !important; color: #fff !important;
  font-family: 'DM Sans', sans-serif !important; font-weight: 600 !important; font-size: .9rem !important;
  letter-spacing: .03em !important; text-decoration: none !important; transition: background var(--tr) !important;
  border: none !important; cursor: pointer !important; box-shadow: none !important; outline: none !important;
  line-height: 1.4 !important;
}
.res-card__cta:hover { background: var(--deep) !important; color: #fff !important; text-decoration: none !important; }

.res-card__bm-btn {
  position: relative !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  width: 38px !important; height: 38px !important; flex-shrink: 0 !important;
  border-radius: 50% !important; border: 2px solid var(--light) !important;
  background: #fff !important; color: var(--main) !important;
  font-size: .9rem !important; cursor: pointer !important;
  transition: all var(--tr) !important; padding: 0 !important;
  box-shadow: none !important; outline: none !important; line-height: 1 !important;
}
.res-card__bm-btn:hover { background: var(--pale) !important; border-color: var(--main) !important; color: var(--main) !important; }
.res-card__bm-btn.bookmarked { background: #629c51 !important; border-color: #629c51 !important; color: #fff !important; }
.res-card__bm-btn:focus, .res-card__bm-btn:active { outline: none !important; box-shadow: none !important; }

.res-card__list-btn {
  position: relative !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  width: 38px !important; height: 38px !important; flex-shrink: 0 !important;
  border-radius: 50% !important; border: 2px solid var(--light) !important;
  background: #fff !important; color: var(--main) !important;
  font-size: .85rem !important; cursor: pointer !important;
  transition: all var(--tr) !important; padding: 0 !important;
  box-shadow: none !important; outline: none !important; line-height: 1 !important;
}
.res-card__list-btn:hover { background: var(--pale) !important; border-color: var(--main) !important; color: var(--main) !important; }
.res-card__list-btn:focus, .res-card__list-btn:active { outline: none !important; box-shadow: none !important; }

.res-card__bm-btn:hover .bm-tooltip,
.res-card__list-btn:hover .bm-tooltip { opacity: 1 !important; }

/* Empty state */
.res-empty { padding: 4rem 2rem; text-align: center; font-family: 'DM Sans', sans-serif; color: var(--warm-gray); grid-column: 1/-1; display: flex; flex-direction: column; align-items: center; }
.res-empty i { font-size: 2.8rem; color: var(--light); margin-bottom: .7rem; }
.rec-empty { padding: 4rem 2rem; text-align: center; font-family: 'DM Sans', sans-serif; color: var(--warm-gray); display: flex; flex-direction: column; align-items: center; }
.rec-empty i { font-size: 2.8rem; color: var(--light); margin-bottom: .7rem; }

/* Pagination */
.res-pagination { margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; align-items: center; font-family: 'DM Sans', sans-serif; }
.res-pg-btn {
  min-width: 38px; height: 38px; border: 2px solid var(--light); background: #fff;
  color: var(--mid) !important; border-radius: 50px; font-size: .92rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 .7rem; transition: all var(--tr);
}
.res-pg-btn:hover, .res-pg-btn.active { background: var(--main); border-color: var(--main); color: #fff !important; }
.res-pg-btn:disabled { opacity: .4; cursor: default; }

/* ══════════════════════════════════════════════════════
   RESOURCE DETAIL MODAL
   Targets both .hsc-modal-box and .modal-box since pages
   use different naming conventions for this element.
══════════════════════════════════════════════════════ */
#resDetailModal.modal-overlay {
  position: fixed !important; inset: 0 !important; z-index: 9999 !important;
  background: rgba(13,45,69,.55) !important; backdrop-filter: blur(4px) !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  opacity: 0 !important; pointer-events: none !important; transition: opacity .25s !important;
  padding: 1rem !important; overflow: hidden !important;
}
#resDetailModal.modal-overlay.active { opacity: 1 !important; pointer-events: auto !important; }
#resDetailModal .hsc-modal-box,
#resDetailModal .modal-box {
  background: #fff !important; border-radius: 20px !important; width: 100% !important; max-width: 600px !important;
  box-shadow: 0 24px 80px rgba(13,45,69,.25) !important; overflow: hidden !important;
  transform: translateY(24px) scale(.97) !important;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1) !important;
  max-height: 90vh !important; overflow-y: auto !important;
  margin: 0 !important; float: none !important; position: relative !important;
}
#resDetailModal.modal-overlay.active .hsc-modal-box,
#resDetailModal.modal-overlay.active .modal-box { transform: translateY(0) scale(1) !important; }
#resDetailModal .hsc-modal-header,
#resDetailModal .modal-header {
  background: linear-gradient(135deg, var(--deep) 0%, var(--mid) 100%);
  padding: 1.5rem 4rem 1.25rem 1.75rem !important; position: relative !important;
  border-bottom: none !important; border-radius: 0 !important; display: block !important;
  transition: background .25s ease !important;
}
#resDetailModal .hsc-modal-header h3,
#resDetailModal .modal-header h3 {
  font-family: 'Playfair Display', serif !important; font-size: 1.5rem !important;
  color: #fff !important; margin: 0 0 .4rem !important; padding: 0 !important;
  border: none !important; line-height: 1.3 !important;
}
#resDetailModal .hsc-modal-close,
#resDetailModal .modal-close {
  position: absolute !important; top: 1rem !important; right: 1rem !important;
  background: rgba(255,255,255,.18) !important; border: none !important; color: #fff !important;
  width: 30px !important; height: 30px !important; border-radius: 50% !important; cursor: pointer !important;
  font-size: .85rem !important; display: flex !important; align-items: center !important; justify-content: center !important;
  transition: background var(--tr) !important; padding: 0 !important; line-height: 1 !important;
  box-shadow: none !important; opacity: 1 !important;
}
#resDetailModal .hsc-modal-close:hover,
#resDetailModal .modal-close:hover { background: rgba(255,255,255,.35) !important; }
#resDetailModal .hsc-modal-body,
#resDetailModal .modal-body { padding: 1.5rem 1.75rem !important; }

.res-detail-section { margin-bottom: 1.1rem; }
.res-detail-section:last-child { margin-bottom: 0; }
.res-detail-label {
  font-family: 'DM Sans', sans-serif; font-size: .78rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--mid); margin-bottom: .35rem;
  display: flex; align-items: center; gap: .4rem;
}
.res-detail-label i { color: var(--main); font-size: .78rem; }
.res-detail-value { font-family: 'DM Sans', sans-serif; font-size: 1.18rem; color: var(--text-dark); line-height: 1.7; }
.res-detail-divider { height: 1px; background: var(--pale); margin: 1.1rem 0; }
.res-detail-contact-row {
  display: flex; align-items: center; gap: .55rem; padding: .3rem 0;
  font-family: 'DM Sans', sans-serif; font-size: 1.18rem; color: var(--text-dark); text-decoration: none;
}
.res-detail-contact-row i { color: var(--main); flex-shrink: 0; width: 16px; text-align: center; }
a.res-detail-contact-row:hover { color: var(--main) !important; text-decoration: underline; }
.res-detail-actions { display: flex; gap: .65rem; margin-top: 1.4rem; flex-wrap: wrap; align-items: center; }
.res-detail-actions .res-card__cta { flex: 1; min-width: 140px; }
.res-detail-actions .res-card__bm-btn,
.res-detail-actions .res-card__list-btn { width: 44px !important; height: 44px !important; }
.res-detail-type-badge {
  display: inline-block;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28); border-radius: 50px;
  padding: .22rem .75rem; font-family: 'DM Sans', sans-serif; font-size: .78rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.9);
}
.res-detail-logo-wrap { padding: .75rem .75rem 1.5rem; display: flex; align-items: left; }
.res-detail-logo {
  max-height: 64px; max-width: 180px; width: auto; object-fit: contain;
  border-radius: 8px; filter: drop-shadow(0 1px 4px rgba(0,0,0,.12));
}
.res-detail-updated-pill {
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28); border-radius: 50px;
  padding: .22rem .75rem; font-family: 'DM Sans', sans-serif; font-size: .78rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.9);
}
.res-detail-updated-pill i { font-size: .68rem; }
.res-detail-updated-pill--fresh { color: rgba(255,255,255,.9); }
.res-detail-updated-pill--stale { color: rgba(255,255,255,.65); }

/* ══════════════════════════════════════════════════════
   RESPONSIVE — FILTER BAR
══════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .res-filter-bar { flex-direction: column; align-items: stretch; gap: .75rem; padding: .85rem 1rem; }

  .res-filter-bar__left {
    display: grid; grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto; gap: .6rem; width: 100%; align-items: start;
  }
  .res-search-wrap { grid-column: 1 / -1; width: 100%; }
  #resourceSearch { width: 100%; box-sizing: border-box; }

  .filter-dropdown-wrap {
    min-width: 0; width: 100%; flex-direction: column; align-items: flex-start; gap: .25rem;
  }
  .filter-dropdown-wrap label {
    font-size: .75rem; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; color: var(--mid); margin: 0;
  }
  .filter-dropdown-btn { width: 100%; box-sizing: border-box; font-size: .85rem; min-width: 0; padding: .38rem 2rem .38rem .75rem; }

  #catResetBtn, #countyResetBtn { display: none !important; }

  .res-filter-bar__right { display: flex; flex-direction: column; align-items: stretch; gap: .5rem; width: 100%; }
  .res-filter-bar__right-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
  .res-sort-select { flex: 1; font-size: .88rem; width: 100%; }
  .res-suggest-btn { width: 100%; justify-content: center; padding: .55rem 1rem; font-size: .9rem; }
}

@media (max-width: 480px) {
  .res-filter-bar { padding: .75rem; }
  .filter-dropdown-btn { font-size: .82rem; }
  .res-count-label { font-size: .82rem; }
  .res-pg-btn { min-width: 34px; height: 34px; font-size: .85rem; padding: 0 .55rem; }
}
