/* HomerentAI custom CSS (migrated from Simple Custom CSS and JS) */

/* --- ID 124: hivepress - searchbar --- */
/* === HomerentAI - Barre de recherche ListingHive (style Airbnb) === */

/* Formulaire global */
.hp-form--listing-search {
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  padding: 10px 10px 10px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

/* Zone des champs */
.hp-form--listing-search .hp-form__fields {
  display: flex;
  flex: 1;
  align-items: stretch;
}

/* Chaque bloc champ */
.hp-form--listing-search .hp-form__field {
  flex: 1;
  padding: 8px 22px;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(148, 163, 184, 0.28);
  position: relative;
}

/* Pas de bordure sur le dernier champ (ici : Dates) */
.hp-form--listing-search .hp-form__field:last-of-type {
  border-right: none;
}

/* Labels "Localisation / Dates..." */
.hp-form--listing-search .hp-form__label,
.hp-form--listing-search .hp-field__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin: 0 0 4px;
}

/* Inputs & selects propres */
.hp-form--listing-search input[type="text"],
.hp-form--listing-search input[type="number"],
.hp-form--listing-search select {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
  color: #111827;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-form--listing-search input:focus,
.hp-form--listing-search select:focus {
  outline: none;
  box-shadow: none;
}

/* Location field: prevent text overflow + smooth fade */
.hp-form--listing-search .hp-form__field--location,
.hp-form--listing-search .hp-form__field:first-child{
  position: relative;
}
.hp-form--listing-search .hp-form__field--location input,
.hp-form--listing-search .hp-form__field:first-child input{
  padding-right: 28px;
}
.hp-form--listing-search .hp-form__field--location::after,
.hp-form--listing-search .hp-form__field:first-child::after{
  content:"";
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  width:36px;
  height:28px;
  background:linear-gradient(90deg, rgba(255,255,255,0) 0%, #fff 70%);
  pointer-events:none;
}

/* === Masquer le filtre Prix / nuit dans la barre de recherche === */
/* Le slider restera dispo sur la page des filtres d'annonces. */
.hp-form--listing-search .hp-form__field--number-range {
  display: none;
}

/* --- BOUTON RECHERCHER --- */
.hp-form--listing-search .hp-form__footer {
  margin-left: 10px;
}

.hp-form--listing-search .hp-form__button {
  border-radius: 999px;
  height: 56px;
  padding: 0 26px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  background: linear-gradient(135deg, #16a085, #1abc9c);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: 0 12px 26px rgba(22, 160, 133, 0.45);
  cursor: pointer;
  transition:
    transform 0.08s ease-out,
    box-shadow 0.08s ease-out,
    background 0.15s ease-out;
}

.hp-form--listing-search .hp-form__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(22, 160, 133, 0.55);
  background: linear-gradient(135deg, #149174, #1abc9c);
}

.hp-form--listing-search .hp-form__button:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(22, 160, 133, 0.4);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
  .hp-form--listing-search {
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
    padding: 16px;
    gap: 12px;
  }

  .hp-form--listing-search .hp-form__fields {
    flex-direction: column;
    gap: 8px;
  }

  .hp-form--listing-search .hp-form__field {
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    padding: 6px 4px 10px;
  }

  .hp-form--listing-search .hp-form__field:last-of-type {
    border-bottom: none;
  }

  .hp-form--listing-search .hp-form__footer {
    margin-left: 0;
  }

  .hp-form--listing-search .hp-form__button {
    width: 100%;
  }
}
