/* 🔍 Filter Form Layout */
form.row.g-2.mb-4 label {
  font-weight: 600;
}

form.row.g-2.mb-4 .form-select {
  min-height: 44px;
  font-size: 0.95rem;
}

/* On-brand Filter Button */
form.row.g-2.mb-4 .btn {
  min-width: 120px;
  background-color: var(--green-primary);
  color: var(--white);
  border: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

form.row.g-2.mb-4 .btn:hover {
  background-color: var(--green-medium);
  color: var(--white);
}

/* 📄 Pagination Styling */
.pagination .page-link {
  color: var(--green-primary);
  border-radius: 4px;
  margin: 0 3px;
  transition: background-color 0.2s;
}

.pagination .page-link:hover {
  background-color: var(--green-pale-transparent);
}

.pagination .active .page-link {
  background-color: var(--green-primary);
  color: var(--white);
  border-color: var(--green-primary);
}

/* 🔍 Search Filter Layout */
.search-filters {
  background-color: var(--green-pale);
  border: 1px solid var(--green-pale);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.05);
}

.search-filters .form-select,
.search-filters .form-control {
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
}

/* Ensure search-filters buttons also match */
.search-filters .btn {
  background-color: var(--green-medium);
  color: var(--white);
  border: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}

.search-filters .btn:hover {
  background-color: var(--green-primary);
  color: var(--white);
}

/* Pagination spacing */
.pagination {
  margin-top: 2rem;
}

.search-results .card-img-top {
  height: 150px;
  object-fit: cover;
}

/* Live‑search dropdown under the input */
#heroSearchForm #search-results {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.25rem;   /* small gap */
  width: 100%;           /* full width of the form */
  z-index: 1000;
}

#search-results .list-group-item {
  text-align: left;
}

/* Make the live-search dropdown scroll if it’s taller than 300px */
#search-results {
  max-height: 300px;      /* or whatever fits your design */
  overflow-y: auto;
}
