/* ======================================================
   HIDE ASTRA DEFAULT HEADER / FOOTER ON HOME
====================================================== */
body.home header:not(.app-header),
body.home .site-header,
body.home .site-footer,
body.home .ast-builder-grid-row-container,
body.home .ast-primary-header-bar,
body.home .ast-desktop-header-content,
body.home .ast-mobile-header-wrap,
body.home .main-header-bar-wrap {
  display: none !important;
}

/* ======================================================
   BASE
====================================================== */
body {
  background: #f4f6f8;
}

.home-app {
  display: block;
  min-height: 100vh;
  background: #f4f6f8;
  padding-bottom: 104px;
}

/* ======================================================
   HEADER APP / SEARCH
====================================================== */
.app-header {
  display: block;
  position: sticky;
  top: 0;
  z-index: 1002;
  background: rgba(244, 246, 248, 0.96);
  backdrop-filter: blur(16px);
  padding: 10px 14px 8px;
}

.app-search {
  margin-top: 0;
}

.app-search-wrapper {
  position: relative;
}

.app-search-wrapper input {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 52px;
  padding: 0 16px 0 50px;
  border-radius: 16px;
  border: 1px solid #e6ebf1;
  background: #ffffff;
  box-sizing: border-box;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  outline: none;
  appearance: none;
}

.app-search-wrapper input::placeholder {
  color: transparent;
}

.app-search-wrapper input:focus {
  border-color: #cfd8e3;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
}

.app-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 4;
}

.app-search-icon img,
.app-search-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* ======================================================
   SEARCH ROTATING TEXT
====================================================== */
.app-search-wrapper-rotating {
  position: relative;
}

.app-search-fake-placeholder {
  position: absolute;
  left: 50px;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  z-index: 4;
  opacity: 1;
  transition: opacity 0.18s ease;
  white-space: nowrap;
  overflow: hidden;
}

.app-search-fake-placeholder.is-hidden {
  opacity: 0;
}

.app-search-static-text {
  color: #98a2b3;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
}

.app-search-rotator {
  height: 22px;
  overflow: hidden;
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
}

.app-search-rotator-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.45s ease;
  will-change: transform;
}

.app-search-rotator-item {
  height: 22px;
  line-height: 22px;
  color: #98a2b3;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* ======================================================
   SEARCH PANEL
====================================================== */
.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: none;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  padding: 16px;
  z-index: 20;
}

.search-panel.is-active {
  display: block;
}

.search-block {
  margin-bottom: 18px;
}

.search-block:last-child {
  margin-bottom: 0;
}

.search-block-title {
  font-size: 13px;
  font-weight: 800;
  color: #6b7280;
  margin-bottom: 10px;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.search-tag:hover {
  background: #ffede7;
  color: #ff5a36;
  transform: translateY(-1px);
}

.search-tag-link {
  text-decoration: none;
}

/* ======================================================
   HERO / CATEGORIES
====================================================== */
.home-hero {
  background: #f4f6f8;
  padding: 0 0 8px;
}

.home-categories {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 14px;
  scrollbar-width: none;
}

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

.home-cat {
  flex: 0 0 auto;
  min-width: 84px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: 0;
  padding: 0;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.home-cat,
.home-cat:focus,
.home-cat:active {
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

.home-cat.active {
  background: transparent !important;
}

.home-cat:active {
  transform: scale(0.96);
}

.home-icon {
  width: 84px;
  border-radius: 22px;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.home-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.home-icon svg {
  width: 32px;
  height: 32px;
}

.home-cat span {
  font-size: 13px;
  color: #475569;
  font-weight: 700;
  line-height: 1.2;
}

.home-cat.active span {
  color: #ff7a18;
  font-weight: 900;
  font-size: 15px;
}

/* ======================================================
   SECTION HEADERS
====================================================== */
.home-featured,
.home-section-offers,
.home-section-near {
  padding-top: 28px;
}

.home-section-head {
  padding: 0 14px;
  margin-bottom: 14px;
}

.home-featured h2,
.home-section-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #111827;
}

.home-section-subtitle {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: #6b7280;
}

/* ======================================================
   FILTERS
====================================================== */
.home-filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 14px 6px;
  scrollbar-width: none;
}

.home-filters::-webkit-scrollbar {
  display: none;
}

.home-filter-chip {
  flex: 0 0 auto;
  border: 1px solid #eceff3;
  background: #ffffff;
  color: #374151;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.04);
}

.home-filter-chip.active {
  background: linear-gradient(90deg, #ff5a5f, #ff7a18);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 90, 95, 0.22);
}

.home-filter-chip .count {
  margin-left: 4px;
  font-weight: 500;
  opacity: 0.8;
}

/* ======================================================
   GRID
====================================================== */
.home-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 0 0 14px;
  scrollbar-width: none;
}

.home-grid::-webkit-scrollbar {
  display: none;
}

/* ======================================================
   CARDS
====================================================== */
.home-card {
  position: relative;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.home-card-image {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

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

.home-grid-offers .home-card {
  flex: 0 0 72%;
}

.home-grid-near .home-card,
#listing-container .home-card {
  flex: 0 0 43%;
}

.home-grid-offers .home-card img {
  height: 240px;
}

.home-grid-near .home-card img,
#listing-container .home-card img {
  height: 185px;
}

.home-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 70%;
  background: linear-gradient(
    to top,
    rgba(17, 24, 39, 0.88) 0%,
    rgba(17, 24, 39, 0.58) 55%,
    rgba(17, 24, 39, 0) 100%
  );
}

.home-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: #ff5a36;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 0 0 16px 0;
  z-index: 3;
}

.premium-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  z-index: 3;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.home-card-offers-stack {
  position: absolute;
  left: 10px;
  top: 38px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-offer-stack-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.home-card-overlay-content {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3;
}

.home-card-overlay-content h3 {
  margin: 0 0 7px;
  font-size: 17px;
  line-height: 1.15;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-card-overlay-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.home-card-overlay-meta .home-rating,
.home-card-overlay-meta .home-distance,
.home-card-overlay-meta .home-category-label {
  background: transparent;
  color: #fff;
  padding: 0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.30);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.home-card-overlay-meta .home-rating {
  color: #ffd54a;
}

.home-card-overlay-meta .home-distance {
  display: inline-flex !important;
}

.home-category-label {
  opacity: 0.95;
}

/* ======================================================
   HIDE OLD BLOCKS
====================================================== */
.home-card-content,
.home-card-badges,
.home-meta {
  display: none !important;
}

/* ======================================================
   EMPTY STATE
====================================================== */
.home-empty-state {
  padding: 24px 16px;
  text-align: center;
  opacity: 0.8;
  color: #64748b;
}

/* ======================================================
   CTA
====================================================== */
.home-cta {
  margin-top: 34px;
  padding: 0 14px 56px;
}

.home-cta-box {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.22), transparent 32%),
    radial-gradient(circle at top right, rgba(255,255,255,0.16), transparent 28%),
    linear-gradient(135deg, #0b4fc9 0%, #1d7eff 52%, #45b7ff 100%);
  border-radius: 24px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: 0 18px 36px rgba(29, 104, 255, 0.24);
  position: relative;
  overflow: hidden;
}

.home-cta-box h2,
.home-cta-box p,
.home-cta-box strong {
  position: relative;
  z-index: 1;
  color: #fff;
}

.home-cta-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f3f7ff);
  color: #0f4cc9;
  font-weight: 900;
  text-decoration: none;
}

/* ======================================================
   BOTTOM NAV
====================================================== */
.app-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  height: 78px;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  transform: translateY(0);
  transition: transform 0.28s ease;
}

.app-bottom-link {
  position: relative;
  height: 100%;
  text-decoration: none;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
}

.app-bottom-link.is-active {
  color: #1d4ed8;
}

.app-bottom-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-bottom-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.app-bottom-link-center {
  transform: translateY(-18px);
}

.app-bottom-icon-center {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7a18, #ff3d5a);
  box-shadow: 0 12px 28px rgba(255, 122, 24, 0.28);
}

.app-bottom-icon-center svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

.app-bottom-link-center .app-bottom-label {
  margin-top: -2px;
  color: #0f172a;
  font-weight: 800;
}

/* ======================================================
   MOBILE
====================================================== */
@media (max-width: 480px) {
  .app-header {
    padding: 10px 12px 8px;
  }

  .app-search-wrapper input {
    height: 50px;
    font-size: 14px;
  }

  .app-search-fake-placeholder {
    left: 48px;
    right: 14px;
  }

  .app-search-static-text,
  .app-search-rotator-item {
    font-size: 13px;
  }

  .search-panel {
    padding: 14px;
    border-radius: 18px;
  }

  .search-tag {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .home-grid-offers .home-card {
    flex: 0 0 78%;
  }

  #listing-container .home-card {
    flex: 0 0 56%;
  }

  .home-grid-near .home-card {
    flex: 0 0 44%;
  }

  .home-grid-offers .home-card img {
    height: 220px;
  }

  .home-grid-near .home-card img,
  #listing-container .home-card img {
    height: 220px;
  }

  .home-card-overlay-content h3 {
    font-size: 16px;
  }

  .home-card-overlay-meta .home-rating,
  .home-card-overlay-meta .home-distance,
  .home-card-overlay-meta .home-category-label {
    font-size: 12px;
  }
}

/* ======================================================
   DESKTOP
====================================================== */
@media (min-width: 768px) {
  .app-header {
    max-width: 860px;
    margin: 0 auto;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }

  .home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    padding: 0 14px;
  }

  .home-card {
    width: 100%;
    flex: initial !important;
  }

  .app-bottom-nav {
    max-width: 560px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border-radius: 22px 22px 0 0;
  }
}

@media (min-width: 1024px) {
  .app-bottom-nav {
    display: none;
  }
}

/* ======================================================
   BADGES PUBLICS — VERSION CLAIRE
   Boost reste un levier de tri, mais n'est plus affiché.
====================================================== */

.boost-badge {
  display: none !important;
}

.premium-badge {
  display: none !important;
}

.home-card-badge-stack {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  pointer-events: none;
}

.verified-badge,
.selection-badge,
.popular-badge {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(10px);
}

.verified-badge {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.selection-badge {
  background: linear-gradient(135deg, #2878ff, #0f8cab);
}

.popular-badge {
  background: linear-gradient(135deg, #ff7a00, #ff2d55);
}

/* Les cartes boostées restent avantagées visuellement sans badge public */
.home-card.boosted-card {
  box-shadow:
    0 14px 34px rgba(255, 122, 0, 0.16),
    0 0 0 1px rgba(255, 122, 0, 0.14);
}

/* Si carte petite, badges plus compacts */
.home-grid-near .home-card-badge-stack,
#listing-container .home-card-badge-stack {
  top: 8px;
  right: 8px;
  gap: 6px;
}

.home-grid-near .verified-badge,
.home-grid-near .selection-badge,
.home-grid-near .popular-badge,
#listing-container .verified-badge,
#listing-container .selection-badge,
#listing-container .popular-badge {
  min-height: 26px;
  padding: 0 9px;
  font-size: 9px;
}

/* ======================================================
   THUMBNAILS — BADGE VÉRIFIÉ EN ICÔNE SEULE
   Sur les cards accueil, autour de vous, listings
====================================================== */

/* On place les badges en bas, sur la ligne meta */
.home-card-badge-stack {
  position: absolute !important;
  top: auto !important;
  right: 10px !important;
  bottom: 12px !important;
  z-index: 7 !important;

  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  pointer-events: none !important;
}

/* Vérifié : icône seule sur les thumbnails */
.verified-badge {
  width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  padding: 0 !important;
  border-radius: 999px !important;

  background: linear-gradient(135deg, #16a34a, #22c55e) !important;
  color: #fff !important;

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

  font-size: 0 !important;
  line-height: 1 !important;
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.24) !important;
}

/* Remet uniquement le ✓ */
.verified-badge::before {
  content: "✓";
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

/* Sélection / Populaire restent avec texte mais plus compacts */
.selection-badge,
.popular-badge {
  min-height: 22px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

/* Évite que les badges cachent le titre */
.home-card-overlay-content {
  right: 44px !important;
}

/* Les grandes cards offres ont un peu plus de place */
.home-grid-offers .home-card-overlay-content {
  right: 92px !important;
}

/* Sur petites cards, tout est compact */
.home-grid-near .home-card-badge-stack,
#listing-container .home-card-badge-stack {
  right: 9px !important;
  bottom: 12px !important;
  gap: 5px !important;
}

.home-grid-near .verified-badge,
#listing-container .verified-badge {
  width: 21px !important;
  height: 21px !important;
  min-height: 21px !important;
}

.home-grid-near .verified-badge::before,
#listing-container .verified-badge::before {
  font-size: 12px;
}

/* Si tu veux masquer Sélection/Populaire sur thumbnails, décommente ces lignes */
/*
.home-card .selection-badge,
.home-card .popular-badge {
  display: none !important;
}
*/
/* ======================================================
   THUMBNAILS — MASQUER POPULAIRE / SÉLECTION
   Garder uniquement l’icône vérifié sur les cards
====================================================== */

.home-card .selection-badge,
.home-card .popular-badge {
  display: none !important;
}

/* On garde uniquement le badge vérifié en icône */
.home-card .verified-badge {
  width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  padding: 0 !important;
  border-radius: 999px !important;

  background: linear-gradient(135deg, #16a34a, #22c55e) !important;
  color: #fff !important;

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

  font-size: 0 !important;
  line-height: 1 !important;
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.24) !important;
}

.home-card .verified-badge::before {
  content: "✓";
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

/* Placement discret en bas à droite, proche de distance/note */
.home-card-badge-stack {
  position: absolute !important;
  top: auto !important;
  right: 10px !important;
  bottom: 12px !important;
  z-index: 7 !important;

  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  pointer-events: none !important;
}

/* Laisse de la place au ✓ sans écraser la ligne distance/note */
.home-card-overlay-content {
  right: 44px !important;
}

/* Offres du moment : un peu plus de marge si besoin */
.home-grid-offers .home-card-overlay-content {
  right: 52px !important;
}

/* ======================================================
   NOVTINIS — HOME FINAL OPTIM
   Accueil / Explorer :
   - thumbnails propres
   - Mise en avant = tri/visibilité, pas badge
   - Sélection = espace éditorial dédié
   - Vérifié = petite icône seulement
====================================================== */

/* Structure app plus cohérente */
.home-app {
  background:
    radial-gradient(circle at 50% -8%, rgba(40, 120, 255, 0.10), transparent 28%),
    linear-gradient(180deg, #f4f8fd 0%, #eef4fb 100%) !important;
  padding-bottom: 120px !important;
  overflow-x: hidden;
}

.app-header {
  max-width: 520px;
  margin: 0 auto;
  border-radius: 0 0 24px 24px;
}

.app-search-wrapper input {
  border-radius: 22px !important;
  height: 56px !important;
  border-color: rgba(226, 235, 245, 0.95) !important;
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.92) !important;
}

/* Sections */
.home-featured,
.home-section-offers,
.home-section-near,
.home-section-selection {
  max-width: 520px;
  margin: 0 auto;
}

.home-section-head {
  padding: 0 16px !important;
}

.home-featured h2,
.home-section-head h2 {
  font-size: 25px !important;
  letter-spacing: -0.045em !important;
  color: #111827 !important;
}

.home-section-subtitle {
  font-size: 14px !important;
  color: #667085 !important;
  font-weight: 650;
}

/* Catégories */
.home-categories {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 14px !important;
}

/* Cards premium */
.home-grid {
  gap: 14px !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

.home-card {
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow:
    0 14px 32px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.90) !important;
}

.home-card-image {
  border-radius: 18px !important;
}

.home-card img {
  border-radius: 18px !important;
}

.home-overlay {
  top: 42% !important;
  background:
    linear-gradient(
      to top,
      rgba(5, 12, 24, 0.90) 0%,
      rgba(5, 12, 24, 0.62) 50%,
      rgba(5, 12, 24, 0.00) 100%
    ) !important;
}

/* Cards tailles */
.home-grid-offers .home-card {
  flex-basis: 76% !important;
}

.home-grid-selection .home-card {
  flex: 0 0 62% !important;
}

.home-grid-near .home-card,
#listing-container .home-card {
  flex-basis: 48% !important;
}

.home-grid-offers .home-card img {
  height: 236px !important;
}

.home-grid-selection .home-card img {
  height: 214px !important;
}

.home-grid-near .home-card img,
#listing-container .home-card img {
  height: 210px !important;
}

/* Meta propre */
.home-card-overlay-content {
  left: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
}

.home-card-overlay-content h3 {
  font-size: 17px !important;
  line-height: 1.1 !important;
  margin-bottom: 8px !important;
}

.home-card-overlay-meta {
  gap: 8px !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  min-width: 0 !important;
}

.home-card-overlay-meta .home-distance,
.home-card-overlay-meta .home-rating,
.home-card-overlay-meta .home-category-label {
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35) !important;
}

.home-category-label {
  max-width: 86px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badges publics : seulement vérifié sur thumbnails */
.home-card .selection-badge,
.home-card .popular-badge,
.boost-badge,
.premium-badge {
  display: none !important;
}

.home-card-badge-stack {
  position: absolute !important;
  top: auto !important;
  right: 10px !important;
  bottom: 12px !important;
  z-index: 8 !important;
  display: flex !important;
  align-items: center !important;
  pointer-events: none !important;
}

.home-card .verified-badge {
  width: 23px !important;
  height: 23px !important;
  min-height: 23px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #16a34a, #22c55e) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0 !important;
  line-height: 1 !important;
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.26) !important;
}

.home-card .verified-badge::before {
  content: "✓";
  font-size: 13px;
  font-weight: 950;
}

/* Laisse de la place au ✓ */
.home-card.verified-card .home-card-overlay-content {
  right: 42px !important;
}

/* Mise en avant : effet très subtil, pas badge */
.home-card.boosted-card {
  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) !important;
}

/* Sélection éditoriale dédiée */
.home-section-selection {
  padding-top: 28px;
}

.home-section-head-selection {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.home-grid-selection {
  display: flex !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}

.home-grid-selection::-webkit-scrollbar {
  display: none;
}

.home-card-selection {
  box-shadow:
    0 18px 38px rgba(255, 122, 0, 0.14),
    0 0 0 1px rgba(255, 122, 0, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.90) !important;
}

.home-selection-chip {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 7;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,0.34), transparent 28%),
    linear-gradient(135deg, #ff7a00 0%, #ff2d55 100%);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(255,45,85,0.26);
}

/* Offers stack plus discret */
.home-card-offers-stack {
  left: 10px !important;
  top: 42px !important;
  gap: 7px !important;
}

.home-offer-stack-icon {
  width: 31px !important;
  height: 31px !important;
  font-size: 14px !important;
  box-shadow: 0 8px 18px rgba(0,0,0,0.22) !important;
}

/* Filtres */
.home-filters {
  max-width: 520px;
  margin: 0 auto;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

/* Nav premium alignée avec autres pages */
/*.app-bottom-nav {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 520px !important;
  height: 94px !important;
  padding: 10px 8px calc(8px + env(safe-area-inset-bottom)) !important;
  border-radius: 28px 28px 0 0 !important;
  border-top: 1px solid rgba(255,255,255,0.12) !important;
  background:
    radial-gradient(circle at 50% -34%, rgba(40, 120, 255, 0.34), transparent 35%),
    linear-gradient(180deg, rgba(16, 29, 51, 0.98), rgba(7, 17, 32, 1)) !important;
  box-shadow:
    0 -18px 42px rgba(0, 0, 0, 0.30),
    inset 0 1px 0 rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}*/

/* ======================================================
   BOTTOM NAV — ANCIEN STYLE CONSERVÉ
====================================================== */

.app-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  height: 78px;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  transform: translateY(0);
  transition: transform 0.28s ease;
}

.app-bottom-link {
  position: relative;
  height: 100%;
  text-decoration: none;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
}

.app-bottom-link.is-active {
  color: #1d4ed8;
}

.app-bottom-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-bottom-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.app-bottom-link-center {
  transform: translateY(-18px);
}

.app-bottom-icon-center {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7a18, #ff3d5a);
  box-shadow: 0 12px 28px rgba(255, 122, 24, 0.28);
}

.app-bottom-icon-center svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

.app-bottom-link-center .app-bottom-label {
  margin-top: -2px;
  color: #0f172a;
  font-weight: 800;
}

/* Desktop */
@media (min-width: 768px) {
  .app-bottom-nav {
    max-width: 560px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border-radius: 22px 22px 0 0;
  }
}

@media (min-width: 1024px) {
  .app-bottom-nav {
    display: none !important;
  }
}

/* Catégories home : enlever le soulignage des liens */
.home-categories a,
.home-cat,
.home-cat span {
  text-decoration: none !important;
}

.home-cat:hover,
.home-cat:focus,
.home-cat:active {
  text-decoration: none !important;
}

.home-cat.active span {
  text-decoration: none !important;
}
.app-search-icon {
  position: absolute;
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
  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;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 4;
  overflow: visible !important;
}

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

.app-search-wrapper input {
  padding-left: 72px !important;
   border-radius: 10px 22px 22px 10px!important;
}


/* Barre recherche : logo gauche + icône droite + contour orange */
.app-search-wrapper input {
  border: 1px solid #ff7a00 !important;
  padding-left: 72px !important;
  padding-right: 58px !important;
  height: 42px!important;
}

.app-search-fake-placeholder {
  left: 62px !important;
  right: 58px !important;
}

.app-search-action-icon {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  z-index: 5;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

/* ======================================================
   HOME — SUGGESTIONS VERTICALES AVEC ICÔNE CATÉGORIE
====================================================== */

#searchSuggestionsList {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.search-tag.home-suggestion-item,
.home-suggestion-item {
  width: 100% !important;
  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;
  justify-content: flex-start !important;
  gap: 10px !important;

  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
  box-shadow: none !important;
}

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

.home-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: transparent !important;
  overflow: visible !important;
}

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

.home-suggestion-text {
  min-width: 0 !important;
  flex: 1 !important;
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

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