/* ======================================================
   NOVTINIS — SEARCH RATING HALF-STARS FIX
   Corrige 4.5 = 4 étoiles + 1 demi-étoile sur /rechercher/
====================================================== */

.search-card .search-stars {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  line-height: 1 !important;
}

.search-card .search-stars .search-star {
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 28px !important;
  overflow: hidden !important;
  background: #eef1f4 !important;
  box-shadow: none !important;
}

.search-card .search-stars .search-star svg {
  width: 15px !important;
  height: 15px !important;
  display: block !important;
}

.search-card .search-stars .search-star.is-full {
  background: linear-gradient(135deg, #ff7a00, #ff2d55) !important;
}

.search-card .search-stars .search-star.is-half {
  background: linear-gradient(90deg, #ff7a00 50%, #eef1f4 50%) !important;
}

.search-card .search-stars .search-star.is-empty {
  background: #eef1f4 !important;
}

@media (max-width: 390px) {
  .search-card .search-stars {
    gap: 3px !important;
  }

  .search-card .search-stars .search-star {
    width: 26px !important;
    height: 26px !important;
    flex-basis: 26px !important;
    border-radius: 8px !important;
  }

  .search-card .search-stars .search-star svg {
    width: 14px !important;
    height: 14px !important;
  }
}

/* Pas de fausse note par défaut sur la recherche */
.search-no-rating {
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4ff;
  color: #2563eb;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
}

/* ======================================================
   FIX FINAL RECHERCHER — SUPPRESSION DOUBLE ÉTOILES
   Sécurité si ce fichier est chargé après search-listings.css.
====================================================== */

.search-card .search-stars .search-star::before,
.search-card .search-stars .search-star::after {
  content: none !important;
  display: none !important;
}

.search-card .search-stars .search-star {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
}

.search-card .search-stars .search-star svg {
  display: block !important;
}


/* ======================================================
   PATCH V2 — /RECHERCHE/ DOUBLE ÉTOILES
   Le rendu PHP contient déjà un SVG dans .search-star.
   On désactive tous les anciens pseudo-éléments étoile, même si un vieux bloc CSS reste chargé.
====================================================== */

body .search-stars > span::before,
body .search-stars > span::after,
body .search-stars .search-star::before,
body .search-stars .search-star::after {
  content: none !important;
  display: none !important;
}

body .search-stars .search-star {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  overflow: hidden !important;
}

body .search-stars .search-star svg {
  display: block !important;
  width: 14px !important;
  height: 14px !important;
}
