/* ===== Jobs Filter Hero ===== */
.job_listings > form.job_filters{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  padding: 18px 16px;
  margin: 0 0 18px;
  color: #fff;

  /* BACKGROUND IMAGE — change this to your Media Library URL */
  background:
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55)),
    url("https://YOUR-SITE.com/wp-content/uploads/2025/10/jobs-hero.jpg") center/cover no-repeat;
}

/* Layout: stack nicely on mobile, grid on desktop */
.job_listings .job_filters .search_jobs{
  display: grid;
  gap: 12px;
}
@media (min-width: 720px){
  .job_listings .job_filters .search_jobs{
    grid-template-columns: 1fr 1fr auto;  /* keywords | location | submit */
    align-items: end;
  }
}

/* Labels on image */
.job_listings .job_filters label{
  color:#f3f4f6; font-weight:700; margin-bottom:4px; display:block;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}

/* Inputs */
.job_listings .job_filters input[type="text"],
.job_listings .job_filters input[type="search"]{
  width: 100%;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.75);
  color: #111827;
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  transition: box-shadow .15s, border-color .15s;
}
.job_listings .job_filters input[type="text"]:focus,
.job_listings .job_filters input[type="search"]:focus{
  border-color: #C2274B;
  box-shadow: 0 0 0 3px rgba(194,39,75,.25);
}

/* Submit button */
.job_listings .job_filters .search_submit input[type="submit"]{
  appearance: none;
  background: linear-gradient(180deg, #da5a77, #C2274B);
  border: 1px solid #991837;
  color:#fff; font-weight:800;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  transition: filter .15s, transform .05s;
  white-space: nowrap;
}
.job_listings .job_filters .search_submit input[type="submit"]:hover{
  filter: brightness(1.05);
}
.job_listings .job_filters .search_submit input[type="submit"]:active{
  transform: translateY(1px);
}

/* Job type chips (the <ul class="job_types"> under the form) */
.job_listings .job_filters ul.job_types{
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  list-style: none; padding: 8px 0 0; margin: 6px 0 0;
}
.job_listings .job_filters ul.job_types li{
  margin: 0;
}
.job_listings .job_filters ul.job_types label{
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.92);
  color:#111827;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  padding: 6px 10px;
}
.job_listings .job_filters ul.job_types input[type="checkbox"]{
  accent-color: #C2274B;
}

/* Hide the legacy clearfix div */
.job_listings .job_filters .search_jobs > div[style*="clear: both"]{ display:none !important; }

/* RSS link color on image */
.job_listings .job_filters .showing_jobs .rss_link{ color:#fff; text-decoration: underline; }


/* === WP Job Manager — one-row filter bar (robust override) === */

/* Force the container to be a flex row */
.job_listings form.job_filters .search_jobs{
  display: flex !important;              /* beat float/table rules */
  align-items: flex-end;                  /* baseline alignment */
  gap: 12px;
  flex-wrap: wrap;                        /* wrap on narrow screens */
  position: static !important;            /* undo any sticky/fixed from themes */
}

/* Kill floats/legacy widths that lock layout */
.job_listings form.job_filters .search_jobs > div{
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  clear: none !important;
}

/* Inputs share the row */
.job_listings form.job_filters .search_jobs .search_keywords,
.job_listings form.job_filters .search_jobs .search_location{
  flex: 1 1 260px;                        /* grow + min width */
  min-width: 220px;
}

/* Labels above inputs */
.job_listings form.job_filters .search_jobs label{
  display: block;
  margin: 0 0 6px;
  font-weight: 600;
}

/* Make text inputs fill their cells */
.job_listings form.job_filters .search_jobs input[type="text"]{
  width: 100% !important;
  box-sizing: border-box;
  padding: 10px 12px;
}

/* Submit button at the end */
.job_listings form.job_filters .search_jobs .search_submit{
  flex: 0 0 auto;
}
.job_listings form.job_filters .search_jobs .search_submit input[type="submit"]{
  padding: 10px 14px;
  line-height: 1.2;
  cursor: pointer;
}

/* Hide the legacy clearfix div WPJM inserts */
.job_listings form.job_filters .search_jobs > div[style*="clear: both"]{
  display: none !important;
}

/* Stack cleanly on small screens */
@media (max-width: 640px){
  .job_listings form.job_filters .search_jobs{
    flex-direction: column;
    align-items: stretch;
  }
  .job_listings form.job_filters .search_jobs .search_submit input[type="submit"]{
    width: 100%;
  }
}
