/*
=======================================================================
 NOVTINIS — PAGE RECHERCHER
 Fichier : search-listings.css
=======================================================================
*/

/* Hide Astra on search page template */
body.page-template-page-rechercher header:not(.search-header),
body.page-template-page-rechercher .site-header,
body.page-template-page-rechercher .site-footer,
body.page-template-page-rechercher .ast-builder-grid-row-container,
body.page-template-page-rechercher .ast-primary-header-bar,
body.page-template-page-rechercher .ast-desktop-header-content,
body.page-template-page-rechercher .ast-mobile-header-wrap,
body.page-template-page-rechercher .main-header-bar-wrap {
  display: none !important;
}

body.page-template-page-rechercher,
body.page-template-page-rechercher .site,
body.page-template-page-rechercher .site-content,
body.page-template-page-rechercher #content,
body.page-template-page-rechercher .content-area,
body.page-template-page-rechercher .ast-container,
body.page-template-page-rechercher .site-main,
body.page-template-page-rechercher article,
body.page-template-page-rechercher .entry-content {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

body.page-template-page-rechercher {
  background: #f4f6f8 !important;
}

.search-app {
  min-height: 100vh;
  padding-bottom: 108px;
  background:
    radial-gradient(circle at 50% -8%, rgba(40, 120, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #f4f8fd 0%, #eef4fb 100%);
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Noto Sans Khmer", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.search-app *,
.search-app *::before,
.search-app *::after {
  box-sizing: border-box;
}

.search-header {
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 14px 18px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
}

.search-back {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #fff;
  color: #111827 !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: calc(28px + var(--nt-km-font-boost, 0px));
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.search-kicker {
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: #eaf3ff;
  color: #2878ff;
  font-size: calc(12px + var(--nt-km-font-boost, 0px));
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.search-header h1 {
  margin: 10px 0 0;
  color: #111827;
  font-size: calc(clamp(42px, 12vw, 58px) + var(--nt-km-font-boost, 0px));
  line-height: 0.94;
  font-weight: 950;
  letter-spacing: -0.065em;
}

.search-header p {
  margin: 10px 0 0;
  color: #667085;
  font-size: calc(16px + var(--nt-km-font-boost, 0px));
  line-height: 1.35;
  font-weight: 780;
}

.search-panel-top {
  position: sticky;
  top: 0;
  z-index: 50;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 14px 14px;
  background: rgba(244, 248, 253, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.search-input-wrap {
  position: relative;
}

.search-input-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: #98a2b3;
  font-size: calc(22px + var(--nt-km-font-boost, 0px));
  font-weight: 900;
  pointer-events: none;
}

#searchListingInput {
  width: 100%;
  height: 56px;
  padding: 0 16px 0 50px;
  border-radius: 22px;
  border: 1px solid rgba(226, 235, 245, 0.95);
  background: #fff;
  color: #111827;
  font-size: calc(15px + var(--nt-km-font-boost, 0px));
  font-weight: 760;
  outline: none;
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.92);
  appearance: none;
}

#searchListingInput:focus {
  border-color: rgba(40, 120, 255, 0.36);
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.08),
    0 0 0 4px rgba(40, 120, 255, 0.10);
}

.search-categories,
.search-filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 12px 0 0;
}

.search-categories::-webkit-scrollbar,
.search-filters::-webkit-scrollbar {
  display: none;
}

.search-cat,
.search-filter {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid #e6edf6;
  background: #fff;
  color: #374151;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: calc(13px + var(--nt-km-font-boost, 0px));
  line-height: 1;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
  white-space: nowrap;
}

.search-cat.is-active,
.search-filter.is-active {
  border-color: transparent;
  color: #fff !important;
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,0.28), transparent 28%),
    linear-gradient(135deg, #ff7a00 0%, #ff4b3e 52%, #ff2d55 100%);
  box-shadow:
    0 12px 24px rgba(255, 45, 85, 0.20),
    0 6px 14px rgba(255, 122, 0, 0.12);
}

.search-results-section {
  max-width: 520px;
  margin: 0 auto;
  padding: 18px 14px 34px;
}

.search-results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.search-results-head h2 {
  margin: 0;
  color: #111827;
  font-size: calc(26px + var(--nt-km-font-boost, 0px));
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.search-results-head span {
  display: block;
  margin-top: 6px;
  color: #667085;
  font-size: calc(13px + var(--nt-km-font-boost, 0px));
  font-weight: 760;
}

.search-sort-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #e6edf6;
  border-radius: 999px;
  background: #fff;
  color: #2878ff;
  font-size: calc(12px + var(--nt-km-font-boost, 0px));
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  cursor: pointer;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.search-card {
  min-width: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  color: inherit;
  text-decoration: none !important;
  box-shadow:
    0 14px 32px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.90);
  position: relative;
}

.search-card.is-boosted {
  box-shadow:
    0 16px 34px rgba(255, 122, 0, 0.16),
    0 0 0 1px rgba(255, 122, 0, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.90);
}

.search-card-image {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #e2e8f0;
}

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

.search-card-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 36%;
  background: linear-gradient(
    to top,
    rgba(5, 12, 24, 0.88) 0%,
    rgba(5, 12, 24, 0.58) 52%,
    rgba(5, 12, 24, 0.00) 100%
  );
}

.search-pro\6d o-badge {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 0 0 16px 0;
  display: inline-flex;
  align-items: center;
  background: #ff4b3e;
  color: #fff;
  font-size: calc(12px + var(--nt-km-font-boost, 0px));
  line-height: 1;
  font-weight: 950;
}

.search-verified-badge {
  position: absolute;
  right: 9px;
  bottom: 10px;
  z-index: 6;
  width: 23px;
  height: 23px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-size: calc(13px + var(--nt-km-font-boost, 0px));
  font-weight: 950;
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.26);
}

.search-card-content {
  position: absolute;
  left: 12px;
  right: 38px;
  bottom: 11px;
  z-index: 4;
}

.search-card-content h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: calc(16px + var(--nt-km-font-boost, 0px));
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.42);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.search-card-meta span {
  color: #fff;
  font-size: calc(11.5px + var(--nt-km-font-boost, 0px));
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.search-r\61 ting {
  color: #ffd54a !important;
}

.search-card-bottom {
  min-height: 48px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.search-card-bottom > span {
  min-width: 0;
  color: #475569;
  font-size: calc(12px + var(--nt-km-font-boost, 0px));
  line-height: 1;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-offer-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.search-offer-icons span {
  width: 25px;
  height: 25px;
  border-radius: 999px;
  background: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: calc(12px + var(--nt-km-font-boost, 0px));
}

.search-empty {
  margin-top: 18px;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  text-align: center;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.search-empty strong,
.search-empty span {
  display: block;
}

.search-empty strong {
  color: #111827;
  font-size: calc(18px + var(--nt-km-font-boost, 0px));
  font-weight: 950;
}

.search-empty span {
  margin-top: 6px;
  color: #667085;
  font-size: calc(14px + var(--nt-km-font-boost, 0px));
  font-weight: 720;
}

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

@media (max-width: 380px) {
  .search-results-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .search-card-image {
    height: 174px;
  }

  .search-card-content h3 {
    font-size: calc(15px + var(--nt-km-font-boost, 0px));
  }

  .search-card-bottom {
    padding-left: 10px;
    padding-right: 10px;
  }

  .search-card-bottom > span {
    max-width: 82px;
  }
}

@media (min-width: 700px) {
  .search-header,
  .search-panel-top,
  .search-results-section {
    max-width: 860px;
  }

  .search-results-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* ======================================================
   FIX TEMPLATE RECHERCHER — body classes WordPress
====================================================== */

body.page-template-page-rechercher-php,
body.page-template-template-rechercher,
body.page-template-page-rechercher {
  background: #f4f6f8 !important;
}

body.page-template-page-rechercher-php header:not(.search-header),
body.page-template-template-rechercher header:not(.search-header),
body.page-template-page-rechercher header:not(.search-header),
body.page-template-page-rechercher-php .site-header,
body.page-template-template-rechercher .site-header,
body.page-template-page-rechercher .site-header,
body.page-template-page-rechercher-php .site-footer,
body.page-template-template-rechercher .site-footer,
body.page-template-page-rechercher .site-footer,
body.page-template-page-rechercher-php .ast-builder-grid-row-container,
body.page-template-template-rechercher .ast-builder-grid-row-container,
body.page-template-page-rechercher .ast-builder-grid-row-container,
body.page-template-page-rechercher-php .ast-primary-header-bar,
body.page-template-template-rechercher .ast-primary-header-bar,
body.page-template-page-rechercher .ast-primary-header-bar,
body.page-template-page-rechercher-php .ast-desktop-header-content,
body.page-template-template-rechercher .ast-desktop-header-content,
body.page-template-page-rechercher .ast-desktop-header-content,
body.page-template-page-rechercher-php .ast-mobile-header-wrap,
body.page-template-template-rechercher .ast-mobile-header-wrap,
body.page-template-page-rechercher .ast-mobile-header-wrap,
body.page-template-page-rechercher-php .main-header-bar-wrap,
body.page-template-template-rechercher .main-header-bar-wrap,
body.page-template-page-rechercher .main-header-bar-wrap {
  display: none !important;
}

body.page-template-page-rechercher-php .site,
body.page-template-page-rechercher-php .site-content,
body.page-template-page-rechercher-php #content,
body.page-template-page-rechercher-php .content-area,
body.page-template-page-rechercher-php .ast-container,
body.page-template-page-rechercher-php .site-main,
body.page-template-page-rechercher-php article,
body.page-template-page-rechercher-php .entry-content,
body.page-template-template-rechercher .site,
body.page-template-template-rechercher .site-content,
body.page-template-template-rechercher #content,
body.page-template-template-rechercher .content-area,
body.page-template-template-rechercher .ast-container,
body.page-template-template-rechercher .site-main,
body.page-template-template-rechercher article,
body.page-template-template-rechercher .entry-content,
body.page-template-page-rechercher .site,
body.page-template-page-rechercher .site-content,
body.page-template-page-rechercher #content,
body.page-template-page-rechercher .content-area,
body.page-template-page-rechercher .ast-container,
body.page-template-page-rechercher .site-main,
body.page-template-page-rechercher article,
body.page-template-page-rechercher .entry-content {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

/* ======================================================
   NOVTINIS — RECHERCHER UX CATEGORY FINAL
   - Titre = catégorie
   - Logo Novtinis
   - Pas de ligne catégories
   - Filtres offres seulement
   - Cards radius 10px
====================================================== */

.search-header {
  padding: 18px 14px 10px !important;
  grid-template-columns: 50px 1fr !important;
  gap: 14px !important;
}

.search-back {
  width: 50px !important;
  height: 50px !important;
}

.search-brand-logo {
  width: auto;
  height: 32px;
  max-width: 148px;
  display: block;
  object-fit: contain;
  margin-bottom: 10px;
}

.search-kicker {
  display: none !important;
}

.search-header h1 {
  margin: 0 !important;
  font-size: calc(clamp(40px, 10vw, 54px) + var(--nt-km-font-boost, 0px)) !important;
  line-height: 0.94 !important;
  letter-spacing: -0.06em !important;
}

.search-header p {
  max-width: 310px;
  margin-top: 10px !important;
  color: #667085 !important;
  font-size: calc(14px + var(--nt-km-font-boost, 0px)) !important;
  line-height: 1.35 !important;
  font-weight: 750 !important;
}

.search-panel-top {
  padding: 0 14px 12px !important;
}

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

.search-input-wrap {
  margin-top: 4px;
}

#searchListingInput {
  height: 54px !important;
  border-radius: 18px !important;
}

.search-filters {
  padding-top: 12px !important;
  gap: 9px !important;
}

.search-filter {
  min-height: 42px !important;
  padding: 0 15px !important;
  border-radius: 999px !important;
  font-size: calc(13px + var(--nt-km-font-boost, 0px)) !important;
}

.search-results-section {
  padding-top: 18px !important;
}

.search-results-head {
  margin-bottom: 14px !important;
  align-items: center !important;
}

.search-results-head h2 {
  font-size: calc(26px + var(--nt-km-font-boost, 0px)) !important;
}

.search-sort-btn {
  min-height: 44px !important;
  padding: 0 15px !important;
  border-radius: 999px !important;
  color: #1d4ed8 !important;
  background: #fff !important;
  font-size: calc(12px + var(--nt-km-font-boost, 0px)) !important;
}

.search-results-grid {
  gap: 12px !important;
}

.search-card {
  border-radius: 10px !important;
  overflow: hidden !important;
}

.search-card-image {
  height: 182px !important;
  border-radius: 10px 10px 0 0 !important;
}

.search-card-image img {
  border-radius: 10px 10px 0 0 !important;
}

.search-card-gradient {
  top: 34% !important;
}

.search-card-content {
  left: 10px !important;
  right: 34px !important;
  bottom: 10px !important;
}

.search-card-content h3 {
  font-size: calc(15.5px + var(--nt-km-font-boost, 0px)) !important;
  line-height: 1.08 !important;
  margin-bottom: 7px !important;
  -webkit-line-clamp: 2 !important;
}

.search-card-meta {
  gap: 6px !important;
}

.search-card-meta span {
  font-size: calc(11px + var(--nt-km-font-boost, 0px)) !important;
}

.search-verified-badge {
  right: 8px !important;
  bottom: 10px !important;
  width: 22px !important;
  height: 22px !important;
}

.search-pro\6d o-badge {
  min-height: 27px !important;
  border-radius: 0 0 12px 0 !important;
}

.search-card-bottom {
  min-height: 45px !important;
  padding: 0 10px !important;
}

.search-card-bottom > span {
  font-size: calc(12px + var(--nt-km-font-boost, 0px)) !important;
}

.search-offer-icons {
  gap: 4px !important;
}

.search-offer-icons span {
  width: 23px !important;
  height: 23px !important;
  font-size: calc(11px + var(--nt-km-font-boost, 0px)) !important;
}

.search-card.is-boosted {
  box-shadow:
    0 14px 28px rgba(255, 122, 0, 0.13),
    0 0 0 1px rgba(255, 122, 0, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.90) !important;
}

@media (max-width: 420px) {
  .search-brand-logo {
    height: 30px;
    max-width: 140px;
  }

  .search-header h1 {
    font-size: calc(44px + var(--nt-km-font-boost, 0px)) !important;
  }

  .search-header p {
    font-size: calc(13.5px + var(--nt-km-font-boost, 0px)) !important;
  }

  .search-card-image {
    height: 172px !important;
  }
}

@media (max-width: 360px) {
  .search-results-grid {
    grid-template-columns: 1fr !important;
  }

  .search-card-image {
    height: 210px !important;
  }
}

/* ======================================================
   NOVTINIS — RECHERCHER LOGO INLINE DISTANCE FINAL
   Logo SVG + catégorie sur la même ligne.
====================================================== */

.search-header {
  padding: 18px 14px 8px !important;
  grid-template-columns: 48px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: start !important;
}

.search-back {
  width: 48px !important;
  height: 48px !important;
}

.search-title-row {
  display: flex !important;
  align-items: baseline !important;
  gap: 12px !important;
  min-width: 0 !important;
  flex-wrap: wrap !important;
}

.search-brand-logo {
  height: 30px !important;
  width: auto !important;
  max-width: 130px !important;
  object-fit: contain !important;
  display: block !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

.search-title-row h1,
.search-header h1 {
  margin: 0 !important;
  min-width: 0 !important;
  color: #111827 !important;
  font-size: calc(clamp(38px, 9.4vw, 48px) + var(--nt-km-font-boost, 0px)) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.06em !important;
  font-weight: 950 !important;
}

.search-header p {
  margin-top: 8px !important;
  max-width: 330px !important;
  font-size: calc(13.5px + var(--nt-km-font-boost, 0px)) !important;
}

.search-panel-top {
  padding-top: 2px !important;
}

/* Plus compact sur petits mobiles */
@media (max-width: 420px) {
  .search-title-row {
    gap: 10px !important;
  }

  .search-brand-logo {
    height: 28px !important;
    max-width: 122px !important;
  }

  .search-title-row h1,
  .search-header h1 {
    font-size: calc(40px + var(--nt-km-font-boost, 0px)) !important;
  }
}

@media (max-width: 360px) {
  .search-brand-logo {
    height: 25px !important;
    max-width: 108px !important;
  }

  .search-title-row h1,
  .search-header h1 {
    font-size: calc(36px + var(--nt-km-font-boost, 0px)) !important;
  }
}

/* Distance : évite l'impression de bug si la localisation n'est pas encore autorisée */
.search-distance {
  white-space: nowrap !important;
}


/* ======================================================
   RECHERCHER DISTANCE FIX
====================================================== */

.search-distance {
  white-space: nowrap !important;
}

/* ======================================================
   NOVTINIS — RECHERCHER LIST STYLE FINAL
   Inspiré des patterns marketplace/review, sans copier Yelp.
   1 commerce par card, photos scrollables 2.2 visibles.
====================================================== */

.search-results-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 18px !important;
}

.search-card {
  display: block !important;
  width: 100% !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow:
    0 14px 32px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.92) !important;
  text-decoration: none !important;
}

.search-card-photo-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 44%);
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 10px 0;
  scroll-snap-type: x proximity;
}

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

.search-card-photo {
  height: 148px;
  border-radius: 14px;
  overflow: hidden;
  background: #e5e7eb;
  scroll-snap-align: start;
}

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

/* Neutralise l'ancien layout image overlay */
.search-card-image,
.search-card-gradient,
.search-card-content,
.search-card-bottom,
.search-pro\6d o-badge,
.search-verified-badge {
  display: none !important;
}

.search-card-info {
  padding: 14px 14px 15px;
}

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

.search-card-title-row h3 {
  margin: 0;
  min-width: 0;
  color: #202124;
  font-size: calc(24px + var(--nt-km-font-boost, 0px));
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.search-card-rank {
  color: #2b2f38;
}

.search-card-title-row .search-distance {
  padding-top: 2px;
  color: #2b2f38;
  font-size: calc(19px + var(--nt-km-font-boost, 0px));
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.search-card-r\61 ting-row {
  margin-top: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

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

.search-stars span {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  color: #fff;
  font-size: calc(15px + var(--nt-km-font-boost, 0px));
  line-height: 1;
  font-weight: 950;
}

.search-stars span.is-filled {
  background: linear-gradient(135deg, #ff7a00 0%, #ff4b3e 100%);
}

.search-card-r\61 ting-row strong {
  color: #2b2f38;
  font-size: calc(19px + var(--nt-km-font-boost, 0px));
  line-height: 1;
  font-weight: 900;
}

.search-card-r\61 ting-row > span:not(.search-stars):not(.search-inline-verified) {
  color: #6b7280;
  font-size: calc(16px + var(--nt-km-font-boost, 0px));
  line-height: 1;
  font-weight: 720;
}

.search-inline-verified {
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: #eafaf0;
  color: #159447;
  font-size: calc(12px + var(--nt-km-font-boost, 0px));
  line-height: 1;
  font-weight: 950;
}

.search-card-details-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  color: #4b5563;
  font-size: calc(15px + var(--nt-km-font-boost, 0px));
  line-height: 1.25;
  font-weight: 760;
}

.search-card-details-row span + span::before {
  content: "•";
  margin-right: 7px;
  color: #9ca3af;
}

.search-card-details-row .is-open {
  color: #e00000;
  font-weight: 900;
}

.search-card-details-row .is-muted {
  color: #6b7280;
}

.search-card-description {
  margin: 10px 0 0;
  color: #4b5563;
  font-size: calc(15px + var(--nt-km-font-boost, 0px));
  line-height: 1.45;
  font-weight: 650;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-card-footer {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search-card-category {
  min-width: 0;
  color: #475569;
  font-size: calc(13px + var(--nt-km-font-boost, 0px));
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-offer-icons {
  display: inline-flex;
  gap: 6px;
  flex: 0 0 auto;
}

.search-offer-icons span {
  width: 29px !important;
  height: 29px !important;
  border-radius: 999px !important;
  background: #f1f5f9 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: calc(13px + var(--nt-km-font-boost, 0px)) !important;
}

.search-card.is-boosted {
  box-shadow:
    0 16px 34px rgba(255, 122, 0, 0.12),
    0 0 0 1px rgba(255, 122, 0, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.92) !important;
}

@media (max-width: 420px) {
  .search-card {
    border-radius: 16px !important;
  }

  .search-card-photo-strip {
    grid-auto-columns: 44%;
    gap: 8px;
    padding: 9px 9px 0;
  }

  .search-card-photo {
    height: 134px;
    border-radius: 12px;
  }

  .search-card-info {
    padding: 13px 13px 14px;
  }

  .search-card-title-row h3 {
    font-size: calc(22px + var(--nt-km-font-boost, 0px));
  }

  .search-card-title-row .search-distance {
    font-size: calc(18px + var(--nt-km-font-boost, 0px));
  }

  .search-stars span {
    width: 23px;
    height: 23px;
    border-radius: 7px;
    font-size: calc(14px + var(--nt-km-font-boost, 0px));
  }

  .search-card-r\61 ting-row strong {
    font-size: calc(18px + var(--nt-km-font-boost, 0px));
  }

  .search-card-r\61 ting-row > span:not(.search-stars):not(.search-inline-verified) {
    font-size: calc(15px + var(--nt-km-font-boost, 0px));
  }

  .search-card-details-row,
  .search-card-description {
    font-size: calc(14px + var(--nt-km-font-boost, 0px));
  }
}

@media (max-width: 360px) {
  .search-card-photo-strip {
    grid-auto-columns: 72%;
  }

  .search-card-title-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .search-card-title-row .search-distance {
    padding-top: 0;
  }
}

@media (min-width: 700px) {
  .search-card-photo-strip {
    grid-auto-columns: 32%;
  }

  .search-card-photo {
    height: 170px;
  }
}
.search-card-photo-strip {
  grid-auto-columns: calc((100% - 10px) / 2.2) !important;
  gap: 10px !important;
}

@media (min-width: 700px) {
  .search-card-photo-strip {
    grid-auto-columns: calc((100% - 10px) / 2.2) !important;
  }
}

@media (max-width: 340px) {
  .search-card-photo-strip {
    grid-auto-columns: 52% !important;
  }
}
/* ======================================================
   RECHERCHER — CORRECTIONS FINALES
====================================================== */

.search-title-row h1,
.search-header h1 {
  font-size: calc(30px + var(--nt-km-font-boost, 0px)) !important;
  line-height: 1 !important;
  letter-spacing: -0.045em !important;
}

.search-card-description {
  font-size: calc(14px + var(--nt-km-font-boost, 0px)) !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  margin: 5px 0 0;
}

.search-card-footer {
  display: none !important;
}

.search-card-info {
  padding-bottom: 16px !important;
}

.search-card-title-row h3 {
  font-size: calc(22px + var(--nt-km-font-boost, 0px)) !important;
}

.search-card-title-row .search-distance {
  font-size: calc(18px + var(--nt-km-font-boost, 0px)) !important;
  font-weight: 400 !important;
}

@media (max-width: 380px) {
  .search-card-title-row h3 {
    font-size: calc(20px + var(--nt-km-font-boost, 0px)) !important;
  }

  .search-card-title-row .search-distance {
    font-size: calc(16px + var(--nt-km-font-boost, 0px)) !important;
  }
}
/* ======================================================
   FIX HEADER RECHERCHER — sans flèche retour
====================================================== */

.search-header {
  display: block !important;
  grid-template-columns: 1fr !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  padding: 22px 18px 12px !important;
}

.search-header-main {
  width: 100% !important;
  min-width: 0 !important;
}

.search-title-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  min-width: 0 !important;
}

.search-brand-logo {
  height: 30px !important;
  width: auto !important;
  max-width: 150px !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  object-fit: contain !important;
}

.search-title-row h1,
.search-header h1 {
  margin: 0 !important;
  font-size: calc(30px + var(--nt-km-font-boost, 0px)) !important;
  line-height: 1 !important;
  letter-spacing: -0.045em !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}

.search-header p {
  max-width: none !important;
  margin: 10px 0 0 !important;
  font-size: calc(14px + var(--nt-km-font-boost, 0px)) !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
}

/* Header Rechercher : alignement logo + titre */
.search-brand-logo {
  padding-bottom: 4px !important;
}

/* Titre moins gras */
.search-title-row h1,
.search-header h1 {
  font-weight: 600 !important;
}
/* ======================================================
   FIX FINAL — BARRE RECHERCHER STYLE HOME
   À mettre tout en bas de search-listings.css
====================================================== */

/* Conteneur sticky propre */
.search-panel-top {
  position: sticky !important;
  top: 0 !important;
  z-index: 60 !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  padding: 0 14px 12px !important;
  background: rgba(244, 248, 253, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

/* Barre de recherche */
.search-home-bar {
  position: relative !important;
  width: 100% !important;
  height: 64px !important;
  border-radius: 24px !important;
  background: #fff !important;
  overflow: hidden !important;
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

/* Input */
.search-home-bar #searchListingInput {
  width: 100% !important;
  height: 64px !important;
  padding: 0 64px 0 74px !important;
  border: 1.8px solid #ff7a00 !important;
  border-radius: 24px !important;
  background: #fff !important;
  color: #111827 !important;
  font-size: calc(14px + var(--nt-km-font-boost, 0px)) !important;
  font-weight: 800 !important;
  outline: none !important;
  box-shadow: none !important;
  appearance: none !important;
}

.search-home-bar #searchListingInput::placeholder {
  color: #98a2b3 !important;
  opacity: 1 !important;
  font-weight: 800 !important;
}

/* Logo Novtinis gauche */
.search-home-logo {
  position: absolute !important;
  left: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 5 !important;
  width: 48px !important;
  height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
}

.search-home-logo img {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  object-fit: contain !important;
  display: block !important;
}

/* Icône recherche droite */
.search-home-action {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 5 !important;
  width: 38px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
}

.search-home-action img {
  width: 38px !important;
  height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  object-fit: contain !important;
  display: block !important;
}

/* Ancienne recherche neutralisée */
.search-input-icon,
.search-categories {
  display: none !important;
}

/* Catégories façon home, visibles seulement sur /rechercher/ */
.search-home-categories {
  display: flex !important;
  gap: 22px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  padding: 14px 4px 4px !important;
  align-items: flex-start !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: 62px !important;
  color: #475569 !important;
  text-decoration: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  font-size: calc(13px + var(--nt-km-font-boost, 0px)) !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

.search-home-cat span {
  text-decoration: none !important;
}

.search-home-cat.is-active,
.search-home-cat.is-active span {
  color: #ff7a00 !important;
  text-decoration: none !important;
}

.search-home-cat-icon {
  width: 46px !important;
  height: 46px !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: 46px !important;
  height: 46px !important;
  max-width: 46px !important;
  max-height: 46px !important;
  object-fit: contain !important;
  display: block !important;
}

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

/* Sur /rechercher/?cat=... : pas de ligne catégories */
.search-panel-top.is-category-page .search-home-categories {
  display: none !important;
}

/* Filtres sous la barre */
.search-filters {
  padding-top: 12px !important;
  gap: 9px !important;
}

/* Ajustement header sans flèche */
.search-header {
  display: block !important;
  grid-template-columns: 1fr !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  padding: 22px 18px 12px !important;
}

.search-title-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
}

.search-brand-logo {
  height: 30px !important;
  max-width: 150px !important;
  padding-bottom: 4px !important;
}

.search-title-row h1,
.search-header h1 {
  font-size: calc(30px + var(--nt-km-font-boost, 0px)) !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

/* ======================================================
   RECHERCHER — BARRE STYLE HOME EXACTE
====================================================== */

.search-panel-top {
  max-width: 520px !important;
  margin: 0 auto !important;
  padding: 0 14px 12px !important;
  background: rgba(244, 248, 253, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

.search-input-wrap.search-input-wrap-home {
  position: relative !important;
  width: 100% !important;
  height: 42px !important;
  margin-bottom: 14px !important;
}

/* Ancienne icône neutralisée */
.search-input-icon {
  display: none !important;
}

/* Input comme home */
.search-input-wrap.search-input-wrap-home #searchListingInput {
  width: 100% !important;
  height: 42px !important;
  padding-left: 72px !important;
  padding-right: 58px !important;
  border: 1px solid #ff7a00 !important;
  border-radius: 10px 22px 22px 10px !important;
  background: #fff !important;
  color: #0f172a !important;
  font-size: calc(14px + var(--nt-km-font-boost, 0px)) !important;
  font-weight: 700 !important;
  outline: none !important;
  box-shadow: none !important;
  appearance: none !important;
}

.search-input-wrap.search-input-wrap-home #searchListingInput::placeholder {
  color: #98a2b3 !important;
  opacity: 1 !important;
  font-weight: 700 !important;
}

/* Logo gauche comme home */
.search-home-logo {
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  z-index: 4 !important;
  overflow: visible !important;
}

.search-home-logo img,
.search-home-logo svg {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
}

/* Icône recherche droite comme home */
.search-home-action-icon {
  position: absolute !important;
  right: 13px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 34px !important;
  height: 34px !important;
  z-index: 5 !important;
  pointer-events: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.search-home-action-icon img {
  width: 34px !important;
  height: 34px !important;
  object-fit: contain !important;
  display: block !important;
}

/* Catégories comme home, sans soulignage */
.search-home-categories {
  display: flex !important;
  gap: 22px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  padding: 10px 4px 4px !important;
  align-items: flex-start !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,
.search-home-cat span {
  text-decoration: none !important;
}

.search-home-cat {
  flex: 0 0 auto !important;
  min-width: 62px !important;
  color: #475569 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  font-size: calc(13px + var(--nt-km-font-boost, 0px)) !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

.search-home-cat.is-active,
.search-home-cat.is-active span {
  color: #ff7a00 !important;
}

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

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

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

/* Sur /rechercher/?cat=... : pas d'icônes catégories */
.search-panel-top.is-category-page .search-home-categories {
  display: none !important;
}

/* Filtres sous la barre */
.search-filters {
  padding-top: 12px !important;
  gap: 9px !important;
}

/* ======================================================
   RECHERCHER — FILTRES SOUS RÉSULTATS
====================================================== */

.search-panel-top .search-filters {
  display: none !important;
}

.search-filters-results {
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  padding: 0 0 14px !important;
  margin-top: -2px !important;
}

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

.search-filter {
  min-height: 22px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  font-size: calc(12px + var(--nt-km-font-boost, 0px)) !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

.search-filter.is-active {
  color: #fff !important;
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,0.28), transparent 28%),
    linear-gradient(135deg, #ff7a00 0%, #ff4b3e 52%, #ff2d55 100%) !important;
}
/* Rechercher : masquer le header uniquement sur mobile */
@media (max-width: 767px) {
  .search-header {
    display: none !important;
  }

  .search-panel-top {
    padding-top: 4px !important;
  }
}
/* Rechercher : badge vérifié compact */
/* Rechercher : badge vérifié compact centré */
.search-inline-verified {
  width: 25px !important;
  min-width: 25px !important;
  height: 25px !important;
  min-height: 25px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: #eafaf0 !important;
  color: #159447 !important;
  font-size: 0 !important;
  line-height: 1 !important;
  overflow: hidden !important;

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

.search-inline-verified::before {
  content: "✓" !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  font-size: calc(15px + var(--nt-km-font-boost, 0px)) !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  color: #159447 !important;
  transform: translateY(-1px);
}
/* Rechercher : étoiles centrées précisément */
.search-stars {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
}

.search-stars span {
  width: 25px !important;
  height: 25px !important;
  padding: 0 !important;
  border-radius: 7px !important;

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

  font-size: 0 !important;
  line-height: 0 !important;
  text-align: center !important;
  overflow: hidden !important;
}

.search-stars span {
  color: transparent !important;
}

.search-stars span::after {
  content: "★" !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 25px !important;
  height: 25px !important;

  color: #fff !important;
  font-size: calc(14px + var(--nt-km-font-boost, 0px)) !important;
  line-height: 1 !important;
  font-weight: 900 !important;

  transform: translateY(-1px) !important;
}

/* Rechercher : barre sous catégories */
.search-home-categories {
  padding-bottom: 12px !important;
}

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

/* ======================================================
   PATCH FINAL RECHERCHER — OPTIMISÉ
   Corrige :
   - barre de recherche cachée
   - conflit search-home-action / search-home-action-icon
   - catégories sans soulignage
   - filtres sous Résultats
   - header masqué uniquement mobile
====================================================== */

/* Header masqué seulement sur mobile */
@media (max-width: 767px) {
  .search-header {
    display: none !important;
  }

  .search-panel-top {
    padding-top: 4px !important;
  }
}

/* Conteneur haut */
.search-panel-top {
  position: sticky !important;
  top: 0 !important;
  z-index: 60 !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  padding: 4px 14px 12px !important;
  background: rgba(244, 248, 253, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

/* Ne jamais masquer le nouveau wrapper */
.search-input-wrap.search-input-wrap-home {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: 42px !important;
  margin: 0 0 14px !important;
}

/* Ancienne icône seulement */
.search-input-icon,
.search-categories {
  display: none !important;
}

/* Barre identique home */
.search-input-wrap.search-input-wrap-home #searchListingInput {
  display: block !important;
  width: 100% !important;
  height: 42px !important;
  padding: 0 58px 0 72px !important;
  border: 1px solid #ff7a00 !important;
  border-radius: 10px 22px 22px 10px !important;
  background: #fff !important;
  color: #0f172a !important;
  font-size: calc(14px + var(--nt-km-font-boost, 0px)) !important;
  font-weight: 700 !important;
  outline: none !important;
  box-shadow: none !important;
  appearance: none !important;
}

.search-input-wrap.search-input-wrap-home #searchListingInput::placeholder {
  color: #98a2b3 !important;
  opacity: 1 !important;
  font-weight: 700 !important;
}

/* Logo gauche */
.search-home-logo {
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 4 !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  overflow: visible !important;
}

.search-home-logo img,
.search-home-logo svg {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
}

/* Icône recherche droite — compatible avec les deux noms de classe */
.search-home-action,
.search-home-action-icon {
  position: absolute !important;
  right: 13px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 5 !important;
  width: 34px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
}

.search-home-action img,
.search-home-action-icon img {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  object-fit: contain !important;
  display: block !important;
}

/* Catégories au-dessus de la barre sur /rechercher/ */
.search-home-categories {
  display: flex !important;
  gap: 22px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  padding: 10px 4px 12px !important;
  align-items: flex-start !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,
.search-home-cat span {
  text-decoration: none !important;
}

.search-home-cat {
  flex: 0 0 auto !important;
  min-width: 62px !important;
  color: #475569 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  font-size: calc(13px + var(--nt-km-font-boost, 0px)) !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

.search-home-cat.is-active,
.search-home-cat.is-active span {
  color: #ff7a00 !important;
}

.search-home-cat-icon {
  width: 46px !important;
  height: 46px !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: 46px !important;
  height: 46px !important;
  max-width: 46px !important;
  max-height: 46px !important;
  object-fit: contain !important;
  display: block !important;
}

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

/* Catégories masquées sur /rechercher/?cat=... */
.search-panel-top.is-category-page .search-home-categories {
  display: none !important;
}

/* Filtres uniquement sous Résultats */
.search-panel-top .search-filters {
  display: none !important;
}

.search-filters-results,
.search-results-section > .search-filters {
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  padding: 0 0 14px !important;
  margin-top: -2px !important;
}

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

.search-filter {
  min-height: 22px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  font-size: calc(12px + var(--nt-km-font-boost, 0px)) !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

/* Badge vérifié compact */
.search-inline-verified {
  width: 25px !important;
  min-width: 25px !important;
  height: 25px !important;
  min-height: 25px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: #eafaf0 !important;
  color: #159447 !important;
  font-size: 0 !important;
  line-height: 1 !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.search-inline-verified::before {
  content: "✓" !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  font-size: calc(15px + var(--nt-km-font-boost, 0px)) !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  color: #159447 !important;
  transform: translateY(-1px) !important;
}

/* Étoiles centrées */
.search-stars {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
}

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

.search-stars span::after {
  content: "★" !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 25px !important;
  height: 25px !important;
  color: #fff !important;
  font-size: calc(14px + var(--nt-km-font-boost, 0px)) !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  transform: translateY(-1px) !important;
}

/* Proximité réelle : lots compacts, chargés au fil du défilement. */
.search-nearby-status{
  margin:14px 16px 4px;
  padding:10px 12px;
  border-radius:12px;
  background:#f1f5f9;
  color:#475569;
  font-size:calc(13px + var(--nt-km-font-boost, 0px));
  font-weight:750;
  text-align:center;
}
.search-nearby-status.is-error{
  background:#fff7ed;
  color:#9a3412;
}
.search-nearby-load-more{
  display:flex;
  justify-content:center;
  padding:18px 16px 30px;
}
.search-nearby-load-more-button{
  appearance:none;
  border:1px solid rgba(15,23,42,.12);
  border-radius:999px;
  padding:12px 18px;
  background:#fff;
  color:#0f172a;
  font:inherit;
  font-size:calc(14px + var(--nt-km-font-boost, 0px));
  font-weight:850;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(15,23,42,.08);
}
.search-nearby-load-more-button[disabled]{
  opacity:.65;
  cursor:wait;
}

/* =====================================================
   RECHERCHE — Proximité : squelette stable, jamais une zone blanche
   Le squelette est présent dans le HTML initial et garde exactement la
   place des cartes pendant le calcul réel de distance.
===================================================== */
.nt-search-nearby-skeleton {
  display: block;
  width: 100%;
  min-height: 292px;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15,23,42,.08);
}

.nt-search-nearby-skeleton-photos {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 44%);
  gap: 10px;
  padding: 10px 10px 0;
}

.nt-search-nearby-skeleton-photos i {
  display: block;
  height: 148px;
  border-radius: 14px;
  background-color: #edf1f5;
  background-image: linear-gradient(100deg, #edf1f5 24%, #f8fafc 46%, #edf1f5 68%);
  background-size: 220% 100%;
  background-position: 100% 0;
  animation: nt-search-nearby-shimmer 1.45s ease-in-out infinite;
  will-change: background-position;
}

.nt-search-nearby-skeleton-body {
  padding: 14px 14px 18px;
}

.nt-search-nearby-skeleton-body i {
  display: block;
  border-radius: 999px;
  background-color: #edf1f5;
  background-image: linear-gradient(100deg, #edf1f5 24%, #f8fafc 46%, #edf1f5 68%);
  background-size: 220% 100%;
  background-position: 100% 0;
  animation: nt-search-nearby-shimmer 1.45s ease-in-out infinite;
  will-change: background-position;
}

/* Reflet doux de chargement : les formes restent fixes, seule la lumière glisse. */
@keyframes nt-search-nearby-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

/* Le chargement demeure parfaitement stable pour les personnes sensibles aux animations. */
@media (prefers-reduced-motion: reduce) {
  .nt-search-nearby-skeleton-photos i,
  .nt-search-nearby-skeleton-body i {
    animation: none;
    background-image: none;
  }
}

.nt-search-nearby-skeleton-title {
  width: 58%;
  height: 22px;
}

.nt-search-nearby-skeleton-line {
  width: 76%;
  height: 13px;
  margin-top: 14px;
}

.nt-search-nearby-skeleton-line-short {
  width: 43%;
  margin-top: 10px;
}

@media (min-width: 768px) {
  .nt-search-nearby-skeleton {
    min-height: 275px;
  }
}

/* =====================================================
   RECHERCHE — Carte commerce : photo pleine largeur
   Une seule photo est rendue dans chaque carte. Le précédent rail,
   conçu pour plusieurs images, gardait un vide à droite. Cette règle
   utilise toute la largeur intérieure sans modifier les badges.
===================================================== */
.search-card.search-card--compact .search-card-photo-strip {
  display: block !important;
  width: 100% !important;
  padding: 10px 10px 0 !important;
  overflow: visible !important;
  scroll-snap-type: none !important;
}

.search-card.search-card--compact .search-card-photo {
  width: 100% !important;
  height: clamp(164px, 37vw, 184px) !important;
  border-radius: 14px !important;
}

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

@media (max-width: 380px) {
  .search-card.search-card--compact .search-card-photo {
    height: 164px !important;
    border-radius: 12px !important;
  }
}


/* =====================================================
   NOVTINIS — EXPLORER DESKTOP (>= 900px)
   Les filtres, le tri et le JavaScript existants sont inchangés.
===================================================== */
.nt-search-desktop-nav { display: none; }

@media (min-width: 900px) {
  body.page-template-page-rechercher-php,
  body.page-template-template-rechercher,
  body.page-template-page-rechercher { background: #f5f8fc !important; }

  .search-app {
    min-height: 100vh;
    padding: 0 0 68px;
    background:
      radial-gradient(circle at 8% 0%, rgba(37,99,235,.09), transparent 22%),
      linear-gradient(180deg, #f8fbff 0%, #f1f6fc 100%);
  }

  .search-header,
  .search-panel-top,
  .search-results-section {
    width: min(100% - 56px, 1220px) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .search-header {
    padding: 22px 0 12px !important;
  }

  .nt-search-desktop-nav {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .nt-search-desktop-brand,
  .nt-search-desktop-brand img { display: block; }
  .nt-search-desktop-brand img { width: 138px; height: auto; max-height: 36px; object-fit: contain; }

  .nt-search-desktop-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    flex: 1 1 auto;
  }

  .nt-search-desktop-nav-links a {
    color: #334155;
    text-decoration: none;
    font-size: calc(14px + var(--nt-km-font-boost, 0px));
    font-weight: 850;
  }

  .nt-search-desktop-nav-links a:hover,
  .nt-search-desktop-nav-links a.is-active { color: #2563eb; }

  .nt-search-desktop-account {
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid #d7e2f0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #123d7d;
    text-decoration: none;
    font-size: calc(13px + var(--nt-km-font-boost, 0px));
    font-weight: 950;
    box-shadow: 0 8px 18px rgba(15,23,42,.05);
  }

  .search-header-main {
    max-width: 720px;
    margin: 66px auto 28px;
    text-align: center;
  }

  .search-title-row { justify-content: center; }
  .search-brand-logo { display: none !important; }

  .search-header h1 {
    margin: 0 !important;
    font-size: calc(clamp(46px, 5vw, 66px) + var(--nt-km-font-boost, 0px)) !important;
    line-height: .95 !important;
    letter-spacing: -.07em !important;
  }

  .search-header p {
    max-width: 560px;
    margin: 14px auto 0 !important;
    font-size: calc(16px + var(--nt-km-font-boost, 0px)) !important;
  }

  .search-panel-top {
    position: sticky !important;
    top: 0;
    z-index: 100;
    padding: 14px 0 18px !important;
    border-bottom: 1px solid rgba(215,226,240,.78);
    background: rgba(248,251,255,.88) !important;
    backdrop-filter: blur(16px);
  }

  .search-input-wrap.search-input-wrap-home { max-width: 820px; margin: 0 auto; }

  .search-input-wrap.search-input-wrap-home #searchListingInput {
    min-height: 62px !important;
    border-radius: 18px !important;
    font-size: calc(16px + var(--nt-km-font-boost, 0px)) !important;
  }

  .nt-search-discovery-controls {
    max-width: 1020px;
    margin: 8px auto 0;
  }

  .search-home-categories,
  .search-categories,
  .search-filters {
    justify-content: center;
    padding-top: 14px !important;
  }

  .search-results-section { padding: 42px 0 42px !important; }
  .search-results-head { margin-bottom: 22px; }
  .search-results-head h2 { font-size: calc(32px + var(--nt-km-font-boost, 0px)) !important; }

  .search-results-grid {
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    gap: 22px !important;
  }

  .search-card { border-radius: 22px !important; transition: transform .18s ease, box-shadow .18s ease; }
  .search-card:hover { transform: translateY(-4px); box-shadow: 0 22px 42px rgba(15,23,42,.14); }
  .search-card-photo-strip { min-height: 244px; }
  .search-card-photo { min-height: 244px; }
  .search-card-photo img { min-height: 244px; }
  .search-card-info { min-height: 212px; padding: 16px !important; }
  .search-card-title-row h3 { font-size: calc(19px + var(--nt-km-font-boost, 0px)) !important; }
  .search-card-description { -webkit-line-clamp: 3; }

  .search-app nav.nt-client-bottom-nav-h145 { display: none !important; }
}

@media (min-width: 900px) and (max-width: 1080px) {
  .search-header,
  .search-panel-top,
  .search-results-section { width: min(100% - 44px, 1220px) !important; }
  .search-results-grid { gap: 16px !important; }
}
