/* Listing catégories / régions — Promo Rabais + UX */
.cr-listing-hero {
  margin: 0 0 1rem;
  padding: 1.1rem 0 0.35rem;
}

.cr-listing-hero__breadcrumb {
  margin-bottom: 0.75rem;
}

.cr-listing-hero__breadcrumb .breadcrumb {
  margin: 0;
  padding: 0;
  list-style: none !important;
  background: transparent;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.cr-listing-hero__breadcrumb .breadcrumb-item {
  list-style: none !important;
  font-size: 0.9rem;
}

.cr-listing-hero__breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  padding-right: 0.5rem;
  color: #94a3b8;
}

.cr-listing-hero__title,
body .cr-listing-hero__title,
.mapinfo .cr-listing-hero__title {
  margin: 0 0 0.65rem !important;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem) !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  color: #1a1a1a !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  max-width: none !important;
}

.cr-listing-hero__lead {
  margin: 0 0 0.9rem;
  max-width: 46rem;
  color: #5b6472 !important;
  font-size: 1rem;
  line-height: 1.5;
}

.cr-listing-hero__lead strong {
  color: #1a1a1a;
}

.cr-listing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.cr-listing-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 1.05rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none !important;
  border: 2px solid transparent;
}

.cr-listing-hero__btn--promo {
  background: #c41230;
  border-color: #c41230;
  color: #fff !important;
}

.cr-listing-hero__btn--promo:hover,
.cr-listing-hero__btn--promo:focus-visible {
  background: #9e0e26;
  border-color: #9e0e26;
  color: #fff !important;
}

.cr-listing-hero__btn--cert {
  background: #0b3d66;
  border-color: #0b3d66;
  color: #fff !important;
}

.cr-listing-hero__btn--cert:hover,
.cr-listing-hero__btn--cert:focus-visible {
  background: #082c4a;
  border-color: #082c4a;
  color: #fff !important;
}

.cr-listing-hero__chips {
  margin: 0;
  font-size: 0.92rem;
  color: #64748b;
}

.cr-listing-hero__chips a {
  color: #c41230;
  font-weight: 600;
  text-decoration: underline;
}

.cr-listing-map {
  margin: 1.5rem 0 1rem;
  padding-top: 0.5rem;
}

.cr-listing-seo {
  margin: 1.75rem 0 1rem;
}

.cr-listing-seo h2 {
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  margin: 0 0 0.65rem !important;
  color: #1a1a1a !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

.cr-listing-seo p {
  color: #4a5565 !important;
  line-height: 1.55;
  max-width: 48rem;
  margin: 0 0 0.85rem;
}

.cr-listing-seo a {
  color: #c41230;
  font-weight: 600;
  text-decoration: underline;
}

/* Annule le gros gap legacy .mapinfo h2 { margin-bottom: 40px } */
.mapinfo .ulo-section__head h2,
.mapinfo .ulo-section h2#ulo-heading {
  margin-bottom: 8px !important;
}

/* Remonter un peu le contenu sous le header fixe */
section.mapsec.cr-listing-mapsec {
  padding-top: 12px !important;
}

/*
 * Mobile / tablette listing :
 * 1) dégagement clair sous le header fixe
 * 2) offres EN PREMIER (coupons visibles tout de suite)
 * 3) hero SEO / certificats juste en dessous
 */
@media (max-width: 991px) {
  section.mapsec.cr-listing-mapsec {
    padding-top: calc(70px + env(safe-area-inset-top, 0px) + 8px) !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    overflow: visible !important;
  }

  .cr-listing-mapsec .mapinfo {
    display: flex;
    flex-direction: column;
    overflow: visible !important;
  }

  /* Coupons d’abord */
  .cr-listing-mapsec .mapinfo > .ulo-section {
    order: -1;
    padding: 8px 0 20px;
    overflow: visible !important;
  }

  .cr-listing-mapsec .mapinfo > .cr-listing-hero {
    order: 0;
    margin: 0.75rem 0 0.5rem;
    padding: 0.35rem 0 0.15rem;
  }

  .cr-listing-hero__breadcrumb {
    margin-bottom: 0.4rem;
  }

  .cr-listing-hero__breadcrumb .breadcrumb-item {
    font-size: 0.8rem;
  }

  .cr-listing-hero__title,
  body .cr-listing-hero__title,
  .mapinfo .cr-listing-hero__title {
    margin: 0 0 0.4rem !important;
    font-size: clamp(1.15rem, 4.5vw, 1.4rem) !important;
    line-height: 1.25 !important;
  }

  .cr-listing-hero__lead {
    display: none;
  }

  .cr-listing-hero__actions {
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .cr-listing-hero__btn {
    min-height: 40px;
    padding: 0.45rem 0.9rem;
    font-size: 0.86rem;
  }

  .cr-listing-hero__btn--promo {
    display: none;
  }

  .cr-listing-hero__chips {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .mapinfo .ulo-section__head h2,
  .mapinfo .ulo-section h2#ulo-heading {
    margin: 0 0 4px !important;
    font-size: clamp(1.2rem, 4.6vw, 1.45rem) !important;
  }

  .ulo-section__head {
    margin-bottom: 8px;
  }

  .ulo-filters {
    margin: 8px 0 12px;
  }

  .ulo-grid {
    overflow: visible !important;
  }
}

@media (max-width: 575px) {
  .cr-listing-hero__btn--cert {
    width: 100%;
  }
}

/* Modal filtre — fiche commerce combinée */
#largeModal .offer-box--merchant .item {
  position: relative;
}

#largeModal .offer-box__multi-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: #14532d;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

#largeModal .view-offer--merchant {
  background: #14532d !important;
  border-color: #14532d !important;
}
