/* ======================================================
   RECHERCHER — SUGGESTIONS
====================================================== */

.search-input-wrap-home {
  z-index: 100 !important;
}

.search-suggestions-panel {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: calc(100% + 8px) !important;
  z-index: 200 !important;
  padding: 14px !important;
  border-radius: 22px !important;
  background: #fff !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14) !important;
}

.search-suggestions-panel[hidden] {
  display: none !important;
}

.search-suggestions-title {
  margin-bottom: 10px !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.search-suggestions-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.search-suggestion-item {
  min-height: 42px !important;
  padding: 0 12px !important;
  border-radius: 14px !important;
  background: #f8fafc !important;
  color: #111827 !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  font-size: 14px !important;
  font-weight: 850 !important;
}

.search-suggestion-item:hover,
.search-suggestion-item:focus {
  background: #eef4ff !important;
  color: #1d4ed8 !important;
  text-decoration: none !important;
}

/* ======================================================
   RECHERCHER — ICÔNE DEVANT SUGGESTIONS
====================================================== */

.search-suggestion-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 46px !important;
  padding: 0 12px !important;
}

.search-suggestion-item::before {
  content: "" !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border-radius: 999px !important;
  background: #eef4fb !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
}

.search-suggestion-item span {
  min-width: 0 !important;
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
}
/* ======================================================
   RECHERCHER — SUGGESTIONS AVEC ICÔNE CATÉGORIE
====================================================== */

.search-suggestion-item {
  min-height: 46px !important;
  padding: 0 12px !important;
  border-radius: 14px !important;
  background: #f8fafc !important;
  color: #111827 !important;
  text-decoration: none !important;

  display: flex !important;
  align-items: center !important;
  gap: 10px !important;

  font-size: 14px !important;
  font-weight: 850 !important;
}

.search-suggestion-icon {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  border-radius: 999px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: #eef4fb !important;
  overflow: hidden !important;
}

.search-suggestion-icon img {
  width: 30px !important;
  height: 30px !important;
  object-fit: contain !important;
  display: block !important;
}

.search-suggestion-icon-empty {
  color: #94a3b8 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

.search-suggestion-text {
  min-width: 0 !important;
  flex: 1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
/* ======================================================
   RECHERCHER — FIX DOUBLE ICÔNE SUGGESTIONS
====================================================== */

.search-suggestion-item::before,
.search-suggestion-item::after {
  content: none !important;
  display: none !important;
}

/* On garde uniquement l’icône catégorie générée par le JS */
.search-suggestion-icon {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  border-radius: 999px !important;
  background: transparent !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  overflow: visible !important;
}

.search-suggestion-icon img {
  width: 30px !important;
  height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  object-fit: contain !important;
  display: block !important;
}

.search-suggestion-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* ======================================================
   NOVTINIS — RECHERCHER STABILISATION 2026-05
   Safe overrides : overflow, suggestions, cards, mobile.
====================================================== */

.search-app {
  overflow-x: hidden !important;
}

.search-results-section,
.search-panel-top {
  width: 100% !important;
}

.search-suggestion-item::before,
.search-suggestion-item::after {
  content: none !important;
  display: none !important;
}

.search-suggestion-text {
  min-width: 0 !important;
}

.search-card-photo img {
  background: #e5e7eb !important;
}

.search-card-title-row h3 {
  overflow-wrap: anywhere !important;
}

.search-card-description {
  overflow-wrap: anywhere !important;
}

@media (max-width: 420px) {
  .search-results-section {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .search-card-title-row {
    gap: 10px !important;
  }
}

/* ======================================================
   FIX FINAL RECHERCHER — SUPPRESSION DOUBLE ÉTOILES
   Cause : le rendu PHP utilise déjà un SVG dans .search-star,
   donc on désactive l'étoile CSS ::after héritée de l'ancien style.
====================================================== */

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

.search-card .search-stars .search-star {
  width: 25px !important;
  height: 25px !important;
  flex: 0 0 25px !important;
  padding: 0 !important;
  border-radius: 7px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  box-shadow: none !important;
}

.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 svg {
  width: 14px !important;
  height: 14px !important;
  display: block !important;
  flex: 0 0 auto !important;
}

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

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

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

.search-card .search-stars .search-star.is-full svg path,
.search-card .search-stars .search-star.is-half svg path {
  fill: #ffffff !important;
}

.search-card .search-stars .search-star.is-empty svg path {
  fill: #cfd5dc !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;
}

/* ======================================================
   STABLE 1 PATCH — CATEGORIES RECHERCHE CLIQUABLES
====================================================== */
.search-home-cat,
.search-home-cat .search-home-cat-icon,
.search-home-cat .search-home-cat-icon img,
.search-home-cat span {
  pointer-events: auto !important;
  cursor: pointer !important;
}
.search-home-cat {
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* ======================================================
   NOVTINIS — RECHERCHER CATEGORIES COMPACTES
   Version compacte pour éviter les grosses icônes en haut.
   À laisser tout en bas du fichier pour écraser les anciens styles.
====================================================== */

.search-panel-top.has-categories {
  padding-top: 0 !important;
}

.search-home-categories {
  max-width: 520px !important;
  margin: 0 auto !important;
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  padding: 8px 2px 10px !important;
  align-items: center !important;
}

.search-home-categories::-webkit-scrollbar {
  display: none !important;
}

.search-home-cat,
.search-home-cat:link,
.search-home-cat:visited,
.search-home-cat:hover,
.search-home-cat:focus,
.search-home-cat:active {
  flex: 0 0 auto !important;
  min-width: 0 !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04) !important;
  color: #475569 !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
}

.search-home-cat.is-active,
.search-home-cat.is-active:link,
.search-home-cat.is-active:visited {
  border-color: transparent !important;
  color: #fff !important;
  background: linear-gradient(135deg, #ff7a18 0%, #ff3d5a 100%) !important;
  box-shadow: 0 8px 18px rgba(255, 90, 95, 0.20) !important;
}

.search-home-cat span {
  color: inherit !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

.search-home-cat-icon {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}

.search-home-cat-icon img {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  object-fit: contain !important;
  display: block !important;
}

.search-home-cat-dot {
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  border-radius: 999px !important;
  background: #cbd5e1 !important;
  display: block !important;
}

.search-home-cat.is-active .search-home-cat-dot {
  background: rgba(255,255,255,0.9) !important;
}

.search-input-wrap.search-input-wrap-home {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}


/* NOVTINIS V4.52E2H52C — Badge Mise en avant + filtres MVP */
.search-card.is-visibility-featured-h51 {
  position: relative;
  border: 1px solid rgba(255, 122, 0, 0.30);
  box-shadow:
    0 12px 26px rgba(255, 122, 0, 0.10),
    0 10px 22px rgba(15, 23, 42, 0.06);
}

.search-card.is-visibility-featured-h51::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff7a00 0%, #ff4b3e 100%);
}

.search-inline-featured-h51 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.12);
  border: 1px solid rgba(255, 122, 0, 0.22);
  color: #ef5b18;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.search-filters-results .search-filter[data-filter="featured"] {
  color: #ef5b18;
}

.search-filters-results .search-filter[data-filter="featured"].is-active {
  color: #fff;
}

@media (max-width: 420px) {
  .search-inline-featured-h51 {
    min-height: 21px;
    padding: 0 8px;
    font-size: 10px;
  }
}

/* NOVTINIS V4.52E2H52D — Badge Mis en avant soigné */
.search-card.is-visibility-featured-h51 {
  border-color: rgba(255, 122, 0, 0.22) !important;
  box-shadow:
    0 10px 22px rgba(15, 23, 42, 0.05),
    0 8px 18px rgba(255, 122, 0, 0.07) !important;
}

.search-card.is-visibility-featured-h51::before {
  top: 18px !important;
  bottom: 18px !important;
  width: 2px !important;
  background: linear-gradient(180deg, rgba(255,122,0,.9), rgba(255,75,62,.85)) !important;
}

.search-card-photo-strip {
  position: relative;
}

.search-featured-corner-h52d {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 122, 0, 0.24);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
  color: #334155;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.search-featured-corner-h52d::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7a00, #ff4b3e);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.14);
}

@media (max-width: 420px) {
  .search-featured-corner-h52d {
    left: 10px;
    top: 10px;
    min-height: 22px;
    padding: 0 9px;
    font-size: 10px;
  }
}

/* NOVTINIS V4.52E2H60 — Affichage public Offres / Offres */
.search-offer-corner-h60 {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.94);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.search-offer-corner-h60.is-eclair {
  background: rgba(239, 68, 68, 0.96);
}

.search-offer-corner-h60.is-pro\6d o {
  background: rgba(16, 185, 129, 0.96);
}

.search-card.is-visibility-featured-h51 .search-offer-corner-h60 {
  top: 44px;
}

.search-card[data-offer="1"] .search-card-category::after {
  content: "Offre";
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.10);
  color: #047857;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.search-filters-results .search-filter[data-filter="offer"] {
  color: #047857;
}

.search-filters-results .search-filter[data-filter="offer"].is-active {
  color: #fff;
}

@media (max-width: 420px) {
  .search-offer-corner-h60 {
    right: 10px;
    top: 10px;
    min-height: 22px;
    padding: 0 9px;
    font-size: 10px;
  }

  .search-card.is-visibility-featured-h51 .search-offer-corner-h60 {
    top: 40px;
  }
}

/* NOVTINIS V4.52E2H60B — Badge Offre mieux placé dans la photo */
.search-card-photo {
  position: relative !important;
}

.search-offer-corner-h60 {
  left: 8px !important;
  right: auto !important;
  top: auto !important;
  bottom: 8px !important;
  min-height: 23px !important;
  padding: 0 9px !important;
  max-width: calc(100% - 16px) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: #047857 !important;
  border: 1px solid rgba(16, 185, 129, 0.26) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16) !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  letter-spacing: 0.01em !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.search-offer-corner-h60::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.search-offer-corner-h60.is-eclair {
  color: #b91c1c !important;
  border-color: rgba(239, 68, 68, 0.28) !important;
}

.search-offer-corner-h60.is-eclair::before {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.search-card.is-visibility-featured-h51 .search-offer-corner-h60 {
  top: auto !important;
  bottom: 8px !important;
}

@media (max-width: 420px) {
  .search-offer-corner-h60 {
    left: 7px !important;
    bottom: 7px !important;
    min-height: 22px !important;
    padding: 0 8px !important;
    font-size: 9px !important;
  }
}


/* H62D — Recherche : note réelle + badge vérifié strict */
.search-no-review {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
}


/* ======================================================================
   PUBLICITÉ LOCALE — format public unique
   - encart sponsorisé discret, cohérent avec les cartes de recherche ;
   - une image compacte à droite sur recherche et catégories ;
   - aucune promesse automatique (« Offre spéciale ») : seul le contenu réel
     de la campagne est affiché.
   ====================================================================== */
.nt-search-sponsored-card{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) 104px;
  gap:14px;
  align-items:stretch;
  min-height:146px;
  padding:13px;
  overflow:hidden;
  border:1px solid #d9e4f2;
  border-radius:22px;
  background:linear-gradient(135deg,#f7fbff 0%,#ffffff 72%);
  box-shadow:0 10px 26px rgba(15,23,42,.07);
  color:#0f172a;
  text-decoration:none;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}

.nt-search-sponsored-card::before{
  content:"";
  position:absolute;
  top:0;
  right:0;
  left:0;
  height:3px;
  background:linear-gradient(90deg,#2563eb,#38bdf8);
  opacity:.78;
}

.nt-search-sponsored-card:hover{
  transform:translateY(-1px);
  border-color:#b8d3f2;
  box-shadow:0 15px 32px rgba(15,23,42,.10);
}

.nt-search-sponsored-card:focus-visible{
  outline:3px solid rgba(37,99,235,.36);
  outline-offset:3px;
}

.nt-search-sponsored-card__content{
  position:relative;
  z-index:1;
  display:flex;
  min-width:0;
  flex-direction:column;
  align-items:flex-start;
}

.nt-search-sponsored-card__kicker{
  display:flex;
  align-items:center;
  min-height:22px;
  margin-bottom:7px;
}

.nt-search-sponsored-card__kicker span{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:0 9px;
  border:1px solid #d8e7fb;
  border-radius:999px;
  background:#ffffff;
  color:#2563eb;
  font-size:10px;
  font-weight:900;
  letter-spacing:.10em;
  line-height:1;
  text-transform:uppercase;
}

.nt-search-sponsored-card__title{
  display:-webkit-box;
  overflow:hidden;
  margin:0;
  color:#0f172a;
  font-size:18px;
  font-weight:900;
  letter-spacing:-.025em;
  line-height:1.12;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

.nt-search-sponsored-card__copy{
  display:-webkit-box;
  overflow:hidden;
  margin:7px 0 0;
  color:#536174;
  font-size:13px;
  font-weight:650;
  line-height:1.36;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

.nt-search-sponsored-card__meta{
  display:flex;
  flex-wrap:wrap;
  gap:0;
  margin-top:8px;
  color:#64748b;
  font-size:12px;
  font-weight:800;
  line-height:1.3;
}

.nt-search-sponsored-card__meta span{
  display:inline-flex;
  align-items:center;
}

.nt-search-sponsored-card__meta span + span::before{
  content:"·";
  margin:0 6px;
  color:#9aa8ba;
}

.nt-search-sponsored-card__cta{
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-top:auto;
  padding-top:10px;
  color:#1d63d0;
  font-size:12.5px;
  font-weight:900;
  line-height:1;
}

.nt-search-sponsored-card__cta svg{
  width:14px;
  height:14px;
  fill:none;
  stroke:currentColor;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-width:1.8;
}

.nt-search-sponsored-card__media{
  position:relative;
  min-height:120px;
  overflow:hidden;
  border-radius:16px;
  background:linear-gradient(145deg,#dbeafe,#bfdbfe);
}

.nt-search-sponsored-card__media::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(15,23,42,0) 42%,rgba(15,23,42,.10) 100%);
  pointer-events:none;
}

.nt-search-sponsored-card__media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.nt-search-sponsored-card__media span{
  display:grid;
  width:100%;
  height:100%;
  place-items:center;
  color:#1d4ed8;
  font-size:33px;
  font-weight:950;
  text-transform:uppercase;
}

@media(max-width:430px){
  .nt-search-sponsored-card{
    grid-template-columns:minmax(0,1fr) 92px;
    gap:11px;
    min-height:138px;
    padding:11px;
    border-radius:20px;
  }

  .nt-search-sponsored-card__media{
    min-height:114px;
    border-radius:14px;
  }

  .nt-search-sponsored-card__title{
    font-size:17px;
  }

  .nt-search-sponsored-card__copy{
    font-size:12.5px;
  }
}

/* H120 — recherche cartes 2.2 compactes */
/* Objectif : la mise en avant reste prioritaire, mais ne devient plus une grosse carte spéciale. */

.search-results-grid{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:12px!important;
  padding-bottom:96px!important;
}

/* Carte régulière pour tous, y compris Mis en avant */
.search-card,
.search-card.is-boosted,
.search-card.is-visibility-featured-h51{
  display:block!important;
  width:100%!important;
  border-radius:17px!important;
  overflow:hidden!important;
  background:#fff!important;
  box-shadow:0 10px 24px rgba(15,23,42,.075)!important;
  border:1px solid rgba(226,232,240,.88)!important;
  text-decoration:none!important;
}

.search-card.is-visibility-featured-h51{
  border-color:rgba(255,122,0,.22)!important;
  box-shadow:0 10px 24px rgba(15,23,42,.075), 0 0 0 1px rgba(255,122,0,.07)!important;
}

.search-card.is-visibility-featured-h51::before{
  top:12px!important;
  bottom:12px!important;
  width:2px!important;
}

/* Photos : 2 images pleines + une partie de la 3e */
.search-card-photo-strip{
  display:grid!important;
  grid-auto-flow:column!important;
  grid-auto-columns:calc((100% - 18px) / 2.2)!important;
  gap:9px!important;
  overflow-x:auto!important;
  scrollbar-width:none!important;
  -webkit-overflow-scrolling:touch!important;
  padding:9px 9px 0!important;
  scroll-snap-type:x proximity!important;
}

.search-card-photo-strip::-webkit-scrollbar{
  display:none!important;
}

.search-card-photo{
  height:112px!important;
  border-radius:13px!important;
  overflow:hidden!important;
  background:#e5e7eb!important;
  scroll-snap-align:start!important;
  position:relative!important;
}

.search-card-photo img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
}

/* Badges plus petits, sans faire grandir la carte */
.search-featured-corner-h52d{
  left:7px!important;
  top:7px!important;
  min-height:22px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:950!important;
  box-shadow:0 6px 14px rgba(15,23,42,.12)!important;
}

.search-featured-corner-h52d::before{
  width:6px!important;
  height:6px!important;
  box-shadow:0 0 0 2px rgba(255,122,0,.12)!important;
}

.search-offer-corner-h60{
  left:7px!important;
  right:auto!important;
  bottom:7px!important;
  top:auto!important;
  min-height:21px!important;
  padding:0 8px!important;
  max-width:calc(100% - 14px)!important;
  border-radius:999px!important;
  font-size:9.5px!important;
  line-height:1!important;
  font-weight:950!important;
  box-shadow:0 6px 14px rgba(15,23,42,.12)!important;
}

.search-offer-corner-h60::before{
  width:6px!important;
  height:6px!important;
  flex-basis:6px!important;
  box-shadow:0 0 0 2px rgba(16,185,129,.10)!important;
}

/* Infos compactes */
.search-card-info{
  padding:9px 11px 11px!important;
}

.search-card-title-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:10px!important;
  align-items:start!important;
}

.search-card-title-row h3{
  margin:0!important;
  min-width:0!important;
  color:#111827!important;
  font-size:19px!important;
  line-height:1.08!important;
  font-weight:950!important;
  letter-spacing:-.035em!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}

.search-card-rank{
  color:#111827!important;
}

.search-card-title-row .search-distance{
  padding-top:2px!important;
  color:#111827!important;
  font-size:14px!important;
  line-height:1!important;
  font-weight:850!important;
  white-space:nowrap!important;
}

/* Note + avis sur une ligne compacte */
.search-card-r\61 ting-row{
  margin-top:8px!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  flex-wrap:wrap!important;
}

.search-stars{
  display:inline-flex!important;
  align-items:center!important;
  gap:3px!important;
}

.search-stars span,
.search-star{
  width:21px!important;
  height:21px!important;
  border-radius:6px!important;
  font-size:12px!important;
}

.search-stars svg,
.search-star svg{
  width:11px!important;
  height:11px!important;
}

.search-card-r\61 ting-row strong{
  color:#111827!important;
  font-size:15px!important;
  line-height:1!important;
  font-weight:950!important;
}

.search-card-r\61 ting-row > span:not(.search-stars):not(.search-inline-verified):not(.search-no-review){
  color:#475569!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:800!important;
}

.search-no-review{
  min-height:24px!important;
  padding:0 9px!important;
  font-size:12px!important;
}

/* Ville / statut */
.search-card-details-row{
  margin-top:8px!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  flex-wrap:wrap!important;
  color:#475569!important;
  font-size:13px!important;
  line-height:1.15!important;
  font-weight:800!important;
}

.search-card-details-row span + span::before{
  content:"•"!important;
  margin-right:6px!important;
  color:#cbd5e1!important;
}

.search-card-details-row .is-open{
  color:#16a34a!important;
  font-weight:950!important;
}

.search-card-description{
  margin:7px 0 0!important;
  color:#475569!important;
  font-size:13px!important;
  line-height:1.32!important;
  font-weight:550!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}

/* Footer caché : les infos utiles sont déjà dans la carte */
.search-card-footer{
  display:none!important;
}

/* Ancien layout neutralisé */
.search-card-image,
.search-card-gradient,
.search-card-content,
.search-card-bottom,
.search-pro\6d o-badge,
.search-verified-badge{
  display:none!important;
}

/* Filtres / header un peu plus compacts pour afficher vite les cartes */
.search-results-header{
  margin-bottom:10px!important;
}

.search-filters-results{
  gap:7px!important;
  margin-bottom:12px!important;
  overflow-x:auto!important;
  scrollbar-width:none!important;
}

.search-filters-results::-webkit-scrollbar{
  display:none!important;
}

.search-filter{
  min-height:31px!important;
  padding:0 12px!important;
  font-size:13px!important;
}

/* Mobile fin */
@media(max-width:420px){
  .search-results-grid{
    gap:11px!important;
  }

  .search-card{
    border-radius:16px!important;
  }

  .search-card-photo-strip{
    grid-auto-columns:calc((100% - 16px) / 2.2)!important;
    gap:8px!important;
    padding:8px 8px 0!important;
  }

  .search-card-photo{
    height:104px!important;
    border-radius:12px!important;
  }

  .search-card-info{
    padding:8px 10px 10px!important;
  }

  .search-card-title-row h3{
    font-size:18px!important;
  }

  .search-card-title-row .search-distance{
    font-size:13px!important;
  }

  .search-stars span,
  .search-star{
    width:20px!important;
    height:20px!important;
    border-radius:6px!important;
  }

  .search-card-description{
    font-size:12.5px!important;
    line-height:1.28!important;
  }
}

@media(max-width:350px){
  .search-card-photo-strip{
    grid-auto-columns:calc((100% - 14px) / 2.05)!important;
  }

  .search-card-title-row{
    gap:7px!important;
  }

  .search-card-title-row h3{
    font-size:17px!important;
  }
}


/* H120B — recherche finition cartes compactes */
.search-results-grid{
  gap:12px!important;
  padding-bottom:108px!important;
}

.search-card,
.search-card.is-boosted,
.search-card.is-visibility-featured-h51{
  border-radius:17px!important;
  box-shadow:0 10px 24px rgba(15,23,42,.075)!important;
  border:1px solid rgba(226,232,240,.88)!important;
}

.search-card.is-visibility-featured-h51{
  border-color:rgba(255,122,0,.22)!important;
  box-shadow:0 10px 24px rgba(15,23,42,.075), 0 0 0 1px rgba(255,122,0,.07)!important;
}

.search-card.is-visibility-featured-h51::before{
  top:10px!important;
  bottom:10px!important;
  width:2px!important;
  opacity:.85!important;
}

.search-card-photo-strip{
  grid-auto-columns:calc((100% - 18px) / 2.2)!important;
  gap:8px!important;
  padding:8px 8px 0!important;
  min-height:0!important;
  align-items:start!important;
}

.search-card-photo{
  height:100px!important;
  border-radius:12px!important;
}

.search-card-photo-strip .search-card-photo:only-child{
  width:calc((100vw - 92px) / 2.2)!important;
  max-width:190px!important;
}

.search-card-photo-strip .search-card-photo:nth-child(n+4){
  display:none!important;
}

.search-featured-corner-h52d{
  left:7px!important;
  top:7px!important;
  min-height:20px!important;
  padding:0 7px!important;
  font-size:9.5px!important;
  box-shadow:0 5px 12px rgba(15,23,42,.10)!important;
}

.search-featured-corner-h52d::before{
  width:5px!important;
  height:5px!important;
  box-shadow:0 0 0 2px rgba(255,122,0,.10)!important;
}

.search-offer-corner-h60{
  left:7px!important;
  bottom:7px!important;
  min-height:20px!important;
  padding:0 7px!important;
  font-size:9px!important;
  box-shadow:0 5px 12px rgba(15,23,42,.10)!important;
}

.search-offer-corner-h60::before{
  width:5px!important;
  height:5px!important;
  flex-basis:5px!important;
  box-shadow:0 0 0 2px rgba(16,185,129,.10)!important;
}

.search-card-info{
  padding:8px 10px 10px!important;
}

.search-card-title-row{
  gap:8px!important;
}

.search-card-title-row h3{
  font-size:18px!important;
  line-height:1.08!important;
  letter-spacing:-.032em!important;
  -webkit-line-clamp:2!important;
}

.search-card-title-row .search-distance{
  font-size:13px!important;
  font-weight:800!important;
}

.search-card-r\61 ting-row{
  margin-top:7px!important;
  gap:5px!important;
}

.search-stars{
  gap:2px!important;
}

.search-stars span,
.search-star{
  width:20px!important;
  height:20px!important;
  border-radius:6px!important;
}

.search-card-r\61 ting-row strong{
  font-size:14px!important;
}

.search-card-r\61 ting-row > span:not(.search-stars):not(.search-inline-verified):not(.search-no-review){
  font-size:12.5px!important;
}

.search-card-details-row{
  margin-top:7px!important;
  font-size:12.5px!important;
  line-height:1.12!important;
}

.search-card-description{
  margin-top:6px!important;
  font-size:12.5px!important;
  line-height:1.28!important;
  font-weight:520!important;
  color:#516173!important;
  -webkit-line-clamp:2!important;
}

.search-card.is-visibility-featured-h51 .search-card-info,
.search-card.is-boosted .search-card-info{
  padding-top:8px!important;
  padding-bottom:10px!important;
}

@media(max-width:420px){
  .search-card-photo-strip{
    grid-auto-columns:calc((100% - 16px) / 2.2)!important;
    gap:8px!important;
    padding:8px 8px 0!important;
  }

  .search-card-photo{
    height:96px!important;
  }

  .search-card-title-row h3{
    font-size:17.5px!important;
  }

  .search-card-title-row .search-distance{
    font-size:12.5px!important;
  }

  .search-card-description{
    font-size:12px!important;
  }
}

@media(max-width:350px){
  .search-card-photo{
    height:92px!important;
  }

  .search-card-photo-strip{
    grid-auto-columns:calc((100% - 14px) / 2.05)!important;
  }
}


/* H120C — recherche galerie adaptative */
/* Règle :
   - 1 photo : pleine largeur compacte
   - 2 photos : 2 colonnes propres
   - 3 photos ou plus : 2.2 photos visibles
*/

/* Par défaut : 3 photos ou plus = 2.2 */
.search-card-photo-strip{
  display:grid!important;
  grid-auto-flow:column!important;
  grid-auto-columns:calc((100% - 18px) / 2.2)!important;
  gap:8px!important;
  padding:8px 8px 0!important;
  overflow-x:auto!important;
  scrollbar-width:none!important;
  -webkit-overflow-scrolling:touch!important;
}

.search-card-photo-strip::-webkit-scrollbar{
  display:none!important;
}

.search-card-photo{
  height:100px!important;
  border-radius:12px!important;
}

/* 1 seule photo : pleine largeur, pas de vide à droite */
.search-card-photo-strip:has(.search-card-photo:only-child){
  display:block!important;
  padding:8px 8px 0!important;
  overflow:hidden!important;
}

.search-card-photo-strip:has(.search-card-photo:only-child) .search-card-photo{
  width:100%!important;
  max-width:none!important;
  height:118px!important;
}

/* 2 photos : deux colonnes égales */
.search-card-photo-strip:has(.search-card-photo:nth-child(2):last-child){
  display:grid!important;
  grid-auto-flow:initial!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
  overflow:hidden!important;
}

.search-card-photo-strip:has(.search-card-photo:nth-child(2):last-child) .search-card-photo{
  width:auto!important;
  max-width:none!important;
  height:106px!important;
}

/* 3+ photos : limiter à 3 visibles, 2.2 reste lisible */
.search-card-photo-strip .search-card-photo:nth-child(n+4){
  display:none!important;
}

/* Première carte : fini le grand vide si seulement 1 image */
.search-card:first-child .search-card-photo-strip:has(.search-card-photo:only-child) .search-card-photo,
.search-card.is-visibility-featured-h51:first-child .search-card-photo-strip:has(.search-card-photo:only-child) .search-card-photo{
  height:116px!important;
}

/* Badges adaptés en mode une photo */
.search-card-photo-strip:has(.search-card-photo:only-child) .search-featured-corner-h52d{
  top:8px!important;
  left:8px!important;
}

.search-card-photo-strip:has(.search-card-photo:only-child) .search-offer-corner-h60{
  bottom:8px!important;
  left:8px!important;
}

/* Carte un peu moins haute quand il y a 3 photos, car le strip suffit */
.search-card-photo-strip:not(:has(.search-card-photo:only-child)):not(:has(.search-card-photo:nth-child(2):last-child)) .search-card-photo{
  height:96px!important;
}

/* Mobile */
@media(max-width:420px){
  .search-card-photo-strip:has(.search-card-photo:only-child) .search-card-photo{
    height:112px!important;
  }

  .search-card:first-child .search-card-photo-strip:has(.search-card-photo:only-child) .search-card-photo,
  .search-card.is-visibility-featured-h51:first-child .search-card-photo-strip:has(.search-card-photo:only-child) .search-card-photo{
    height:110px!important;
  }

  .search-card-photo-strip:has(.search-card-photo:nth-child(2):last-child) .search-card-photo{
    height:100px!important;
  }

  .search-card-photo-strip:not(:has(.search-card-photo:only-child)):not(:has(.search-card-photo:nth-child(2):last-child)) .search-card-photo{
    height:94px!important;
  }
}

@media(max-width:350px){
  .search-card-photo-strip:has(.search-card-photo:only-child) .search-card-photo{
    height:106px!important;
  }

  .search-card-photo-strip:has(.search-card-photo:nth-child(2):last-child) .search-card-photo{
    height:94px!important;
  }
}


/* H120D — recherche carte 1 photo équilibrée */
/* Après test réel : 1 photo pleine largeur fait trop bannière.
   Règle finale :
   - 1 photo : 58% largeur, compacte, sans vide gênant
   - 2 photos : deux colonnes
   - 3+ photos : 2.2 photos
*/

/* 1 seule photo : format image large mais pas bannière */
.search-card-photo-strip:has(.search-card-photo:only-child){
  display:flex!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:0!important;
  padding:8px 8px 0!important;
  overflow:hidden!important;
}

.search-card-photo-strip:has(.search-card-photo:only-child) .search-card-photo{
  width:58%!important;
  max-width:235px!important;
  min-width:178px!important;
  height:104px!important;
  border-radius:13px!important;
}

/* Sur la première carte mise en avant, garder la photo compacte */
.search-card:first-child .search-card-photo-strip:has(.search-card-photo:only-child) .search-card-photo,
.search-card.is-visibility-featured-h51:first-child .search-card-photo-strip:has(.search-card-photo:only-child) .search-card-photo{
  width:58%!important;
  height:104px!important;
}

/* 2 photos : rester propre */
.search-card-photo-strip:has(.search-card-photo:nth-child(2):last-child){
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
  padding:8px 8px 0!important;
}

.search-card-photo-strip:has(.search-card-photo:nth-child(2):last-child) .search-card-photo{
  height:100px!important;
}

/* 3+ photos : 2.2 plus compacte */
.search-card-photo-strip:not(:has(.search-card-photo:only-child)):not(:has(.search-card-photo:nth-child(2):last-child)){
  grid-auto-columns:calc((100% - 16px) / 2.2)!important;
  gap:8px!important;
  padding:8px 8px 0!important;
}

.search-card-photo-strip:not(:has(.search-card-photo:only-child)):not(:has(.search-card-photo:nth-child(2):last-child)) .search-card-photo{
  height:96px!important;
}

/* Rapprocher le titre de la photo */
.search-card-info{
  padding-top:7px!important;
}

/* Badges encore un peu plus propres sur la photo seule */
.search-card-photo-strip:has(.search-card-photo:only-child) .search-featured-corner-h52d{
  top:7px!important;
  left:7px!important;
  min-height:19px!important;
  padding:0 7px!important;
  font-size:9px!important;
}

.search-card-photo-strip:has(.search-card-photo:only-child) .search-offer-corner-h60{
  bottom:7px!important;
  left:7px!important;
  min-height:19px!important;
  padding:0 7px!important;
  font-size:8.8px!important;
}

/* Empêcher la première carte d'avoir une hauteur spéciale */
.search-card:first-child,
.search-card.is-visibility-featured-h51:first-child{
  min-height:0!important;
}

/* Mobile */
@media(max-width:420px){
  .search-card-photo-strip:has(.search-card-photo:only-child) .search-card-photo,
  .search-card:first-child .search-card-photo-strip:has(.search-card-photo:only-child) .search-card-photo,
  .search-card.is-visibility-featured-h51:first-child .search-card-photo-strip:has(.search-card-photo:only-child) .search-card-photo{
    width:58%!important;
    max-width:220px!important;
    min-width:170px!important;
    height:100px!important;
  }

  .search-card-photo-strip:has(.search-card-photo:nth-child(2):last-child) .search-card-photo{
    height:96px!important;
  }

  .search-card-photo-strip:not(:has(.search-card-photo:only-child)):not(:has(.search-card-photo:nth-child(2):last-child)) .search-card-photo{
    height:92px!important;
  }
}

@media(max-width:350px){
  .search-card-photo-strip:has(.search-card-photo:only-child) .search-card-photo,
  .search-card:first-child .search-card-photo-strip:has(.search-card-photo:only-child) .search-card-photo,
  .search-card.is-visibility-featured-h51:first-child .search-card-photo-strip:has(.search-card-photo:only-child) .search-card-photo{
    width:60%!important;
    min-width:156px!important;
    height:94px!important;
  }
}

/* Sécurité : le contenu ne passe pas sous la nav */
body{
  padding-bottom:max(92px, env(safe-area-inset-bottom))!important;
}

@media(max-width:560px){
  main,
  #content,
  .site-content,
  .ast-container,
  .entry-content{
    padding-bottom:24px;
  }
}


