/* ─── Search Hero ──────────────────────────────────────────────────────── */
.search-hero {
  background: linear-gradient(135deg, var(--emerald-deep) 0%, var(--emerald) 60%, var(--sky) 100%);
  padding: 56px 0 40px;
  color: var(--white);
}
.search-hero h1 { color: var(--white); margin-bottom: 8px; }
.search-hero p { color: rgba(255,255,255,0.72); font-size: 1rem; }

/* ─── Layout ───────────────────────────────────────────────────────────── */
.search-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 32px;
  padding: 40px 0 96px;
  align-items: start;
}

/* ─── Sidebar ──────────────────────────────────────────────────────────── */
.search-sidebar {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: sticky; top: 84px;
  border: 1px solid rgba(0,0,0,0.05);
}
.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.sidebar-header h3 { font-size: 1rem; }
.sidebar-clear {
  font-size: 0.82rem; color: var(--color-danger);
  cursor: pointer; background: none; border: none;
  font-family: 'DM Sans', sans-serif; font-weight: 600;
}

.filter-group { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-group h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 12px;
}

.filter-search {
  width: 100%; padding: 9px 13px;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem;
  margin-bottom: 4px; transition: border-color var(--transition);
}
.filter-search:focus { outline: none; border-color: var(--emerald); }

.radio-group, .check-group { display: flex; flex-direction: column; gap: 8px; }
.radio-group label, .check-group label { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; cursor: pointer; }
.radio-group input, .check-group input { accent-color: var(--emerald); }

.filter-select {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem;
  transition: border-color var(--transition);
}
.filter-select:focus { outline: none; border-color: var(--emerald); }

/* ─── Results ──────────────────────────────────────────────────────────── */
.results-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.results-count { font-size: 0.9rem; color: var(--muted); }
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ─── Pagination ───────────────────────────────────────────────────────── */
.pagination { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.page-btn {
  min-width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1.5px solid #E2E8F0; background: var(--white);
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem; font-weight: 500;
  transition: all var(--transition); color: var(--ink);
}
.page-btn:hover, .page-btn.active {
  background: var(--emerald); color: var(--white);
  border-color: var(--emerald); box-shadow: 0 2px 8px rgba(13,122,85,0.25);
}
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ─── No results ───────────────────────────────────────────────────────── */
.no-results { text-align: center; padding: 72px 24px; }
.no-results-emoji { font-size: 3.5rem; margin-bottom: 16px; }
.no-results h3 { margin-bottom: 10px; }
.no-results p { color: var(--muted); margin-bottom: 24px; }

/* ─── Mobile ───────────────────────────────────────────────────────────── */
.mobile-filter-btn {
  display: none; padding: 10px 20px;
  background: var(--white); border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; font-weight: 500; cursor: pointer; gap: 8px;
}

@media (max-width: 900px) {
  .search-layout { grid-template-columns: 1fr; }
  .search-sidebar {
    display: none; position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 300; overflow-y: auto; border-radius: 0;
  }
  .search-sidebar.open { display: block; }
  .mobile-filter-btn { display: flex; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) { .results-grid { grid-template-columns: 1fr; } }
