/* ==========================================================================
   MyTranslateChat — Recherche de salons
   Champ de recherche sur la page d'accueil et sur « Mes salons ».
   Mobile d'abord : champ pleine largeur, résultats empilés, rien de coupé.
   ========================================================================== */

.room-search {
  margin: 18px 0 6px;
}

.room-search-field {
  position: relative;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid #E4DEF8;
  border-radius: 10px;
  padding: 0 12px;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.room-search-field:focus-within {
  border-color: #6A4BFF;
  box-shadow: 0 0 0 3px rgba(106, 75, 255, .14);
}

.room-search-field .room-search-ico {
  flex: 0 0 auto;
  display: inline-flex;
  color: #8A82A8;
  margin-right: 8px;
}

.room-search-field input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 11px 0;
  font-size: 16px; /* 16px : évite le zoom automatique sur iPhone */
  font-family: inherit;
  color: #0F0F2D;
  outline: none;
}

.room-search-field input::placeholder {
  color: #9C95B5;
}

.room-search-hint {
  margin: 8px 2px 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #6B6588;
}

.room-search-results {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.room-search-results[hidden] {
  display: none;
}

.search-card .room-actions {
  margin-top: 10px;
}

/* Sur l'accueil vitrine, le champ est posé dans le bandeau coloré du hero :
   il doit respirer au-dessus et en dessous, sans toucher les badges. */
.home-body .room-search {
  margin-top: 20px;
  margin-bottom: 16px;
}

.home-body .room-search-field {
  border-color: rgba(255, 255, 255, .5);
  box-shadow: 0 10px 24px -18px rgba(20, 6, 60, .55);
}

.home-body .room-search-hint {
  color: rgba(255, 255, 255, .92);
}

.home-body .room-search-results {
  margin-bottom: 4px;
}

/* Aucun débordement horizontal, quel que soit l'écran. */
.room-search,
.room-search-field,
.room-search-results {
  max-width: 100%;
}

@media (min-width: 768px) {
  .room-search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .room-search-field input {
    padding: 12px 0;
  }
}
