
/* ============ Search & Filter form ============ */
#wpbdp-search-form-wrapper{
  font-family: var(--ff-body);
}
#wpbdp-search-page > .title,
.wpbdp-search-page .title{
  display: none; /* "Search" heading from the plugin's own template; our page already has one */
}
#wpbdp-search-page > .wpbdp-bar,
.wpbdp-search-page .wpbdp-bar{
  display: none; /* redundant Directory/View All/Manage/Add Listing links, already in nav + hero */
}
#wpbdp-search-form-wrapper form{
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
}
#wpbdp-search-form-wrapper .wpbdp-form-fields{
  display: contents; /* let the individual field divs become direct flex items of the form */
}
#wpbdp-search-form-wrapper .wpbdp-form-field{
  flex: 1 1 220px;
  max-width: 280px;
}

/* Hide the fields that don't make sense as quick filters here */
#wpbdp-search-form-wrapper .wpbdp-form-field-id-2,
#wpbdp-search-form-wrapper .wpbdp-form-field-id-3,
#wpbdp-search-form-wrapper .wpbdp-form-field-id-4,
#wpbdp-search-form-wrapper .wpbdp-form-field-id-5,
#wpbdp-search-form-wrapper .wpbdp-form-field-id-6,
#wpbdp-search-form-wrapper .wpbdp-form-field-id-8,
#wpbdp-search-form-wrapper .wpbdp-form-field-id-9{
  display: none;
}

#wpbdp-search-form-wrapper .wpbdp-search-field-label label{
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 6px;
}
#wpbdp-search-form-wrapper .wpbdp-form-field-id-1 .wpbdp-search-field-label label::after{
  content: '';
}
#wpbdp-search-form-wrapper input[type="text"],
#wpbdp-search-form-wrapper select{
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--ff-body);
  font-size: 14.5px;
  color: var(--charcoal);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#wpbdp-search-form-wrapper input[type="text"]:focus,
#wpbdp-search-form-wrapper select:focus{
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(90, 122, 94, 0.12);
}
#wpbdp-search-form-wrapper input[type="text"]::placeholder{
  color: var(--stone-light, #c5c2bb);
}

#wpbdp-search-form-wrapper p{
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  margin-top: 26px; /* offsets the label height above the input fields, so the button lines up with the inputs themselves */
  flex: 0 0 auto;
}
#wpbdp-search-form-wrapper input.wpbdp-submit.wpbdp-submit{
  appearance: none;
  background: var(--sage) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 100px !important;
  padding: 13px 32px !important;
  height: auto;
  font-family: var(--ff-body);
  font-size: 14.5px;
  font-weight: 600;
  line-height: normal;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
#wpbdp-search-form-wrapper input.wpbdp-submit.wpbdp-submit:hover{
  background: var(--sage-deep) !important;
  transform: translateY(-1px);
}
#wpbdp-search-form-wrapper .reset{
  font-size: 13.5px;
  color: var(--stone);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
}
#wpbdp-search-form-wrapper .reset:hover{
  color: var(--sage-deep);
}

/* Search results heading (shown after a search is submitted) */
.wpbdp-search-page h3{
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 20px;
}

@media (max-width: 700px){
  #wpbdp-search-form-wrapper .wpbdp-form-fields{
    grid-template-columns: 1fr;
  }
}
