/* Accesibilidad: sr-only */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Mejor contraste para subtítulo (opcional: no rompe diseño) */
.search-hero .search-hero-content p {
  color: #333;
  margin-bottom: 20px;
}

/* Estadísticas: aria-live ya agregado en Twig; asegurar legibilidad */
.search-stats {
  margin-top: 15px;
  font-size: 14px;
  color: #fff;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/* HERO */
.search-hero {
  background-image: url(/themes/custom/trabajando/images/blue-hero.webp);
  position: relative;
  width: 100%;
  padding: 80px 15px 100px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-position-y: bottom;
}
.search-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  text-align: center;
}
.search-hero h1 {
  font-size: 42px;
  margin-bottom: 8px;
  color: #013e5e
;
}
.search-hero p {
  font-size: 16px;
  margin-bottom: 24px;
}

/* FORMULARIO */
.trabajando-home-job-search-form.job-search-form {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  padding: 8px;
}
.trabajando-home-job-search-form .form-field {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 150px;
  background: #fff;
}
.trabajando-home-job-search-form .form-control {
  width: 100%;
  padding: 12px 12px 12px 38px;
  border: none;
  font-size: 15px;
  border-radius: 0;
  background: inherit;
  box-shadow: unset;
  height: unset;
}
.trabajando-home-job-search-form .search-btn {
  min-width: 120px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.trabajando-home-job-search-form .form-item-ciudad {
  width: 100%;
}

/* ICONOS SVG pseudo-element */
.trabajando-home-job-search-form .form-item-ciudad::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: url('/themes/custom/trabajando/images/icons/svg/location-icon.svg') no-repeat center;
  pointer-events: none;
}
.trabajando-home-job-search-form .form-item-buscar::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: url('/themes/custom/trabajando/images/icons/svg/search-icon.svg') no-repeat center;
  pointer-events: none;
}

/* Estadísticas */
.search-stats {
  margin-top: 15px;
  font-size: 14px;
  color: #333;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.search-stats div {
  margin: 4px 12px;
}

.trabajando-home-job-search-form .form-group {
  margin-bottom: 0;
}

.trabajando-home-job-search-form .select-wrapper:after {
  color: #999;
  font-weight: 100;
  font-size: smaller;
}

/* Description under hero subtitle — subtle, legible */
.search-hero .hero-description {
  margin: 10px auto 20px;
  max-width: 900px;
  color: rgba(255,255,255,0.95);
  font-size: 17px;
  line-height: 1.4;
}

/* enlaces dentro de la descripción */
.search-hero .hero-description a {
  text-decoration: underline;
  font-weight: 600;
}
.search-hero .hero-description a:hover {
  text-decoration: none;
}

@media (min-width: 768px) {
  span.form-item-separator {
    border-right: 1px solid #ddd;
    margin-left: 14px;
  }
}

/* Responsive móvil */
@media (max-width: 767px) {
  .trabajando-home-job-search-form.job-search-form {
    flex-direction: column;
    align-items: stretch;
    background: transparent;
    padding: 0;
  }

  .trabajando-home-job-search-form .form-field {
    display: block;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    margin-right: 0;
    margin-left: 0;
  }
}
.trabajando-home-job-search-form .search-btn {
  width: 100%;
}
