/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */
.layout_layout1 .ets_mm_megamenu_content {
  background: transparent !important;
}
.layout_layout1 .ets_mm_megamenu_content {
  border: 0px !important;
}
.ets_mm_megamenu {
  margin-top: 0px;
}
.layout_layout1 .mm_menus_li {
  border: 0px !important;
}
.ets_mm_megamenu .container {
  background-color: transparent !important;
}
.ybc-menu-toggle .icon-bar {
  background-color: #fff !important;
}
@media (max-width: 767px) {
  .ets_mm_megamenu .container {
    background-color: transparent !important;
  }
  .ets_mm_megamenu.hook-custom {
    margin-top: 0px !important;
  }
}
.header {
  position: relative !important;
}
.ets_mm_categories {
  list-style: none !important;
}
.ets_mm_block > .h4 {
  text-transform: capitalize;
}
.mm_menus_li > a.ets_mm_url {
  padding: 0px !important;
}
@media (min-width: 1199px) {
  .ets_mm_megamenu.layout_layout1:not(.ybc_vertical_menu) .mm_menus_ul {
    display: flex !important;
    justify-content: space-between !important;
  }
}

/* Par défaut : on peut cacher le bouton bonorder, puis l’afficher quand prix=0 */
.btn-bonorder,
.offreachat-btn {
  display: none;
}

.show-when-request-price {
  display: block !important;
}

/* Cacher les widgets en mode "prix sur demande" */
.hide-when-request-price {
  display: none !important;
}

/* Texte "Prix sur demande" */
.price-on-request {
  margin: 10px 0 14px 0;
  font-weight: 800;
  text-align: center;
  color: #136499; /* adapte si besoin */
}

/* Masqués par défaut : seront affichés si la feature Location est renseignée */
.renting-badge,
.renting-link,
.renting-text-right,
#button_wpcf7-f6-o1,
#ctf-popup-wapper-wpcf7-f6-o1 {
  display: none;
}

/* Prix sur demande */
.price-on-request {
  margin: 10px 0 14px 0;
  font-weight: 800;
  text-align: center;
  color: #136499;
}

/* Masquage/affichage "prix = 0" */
.hide-when-request-price {
  display: none !important;
}
.show-when-request-price {
  display: block !important;
}

/* Par défaut on cache le bouton bonorder (demande offre achat) */
.btn-bonorder,
.offreachat-btn {
  display: none;
}

/* Optionnel: style du texte "Demander une offre" sur listing */
.elementor-widget-text-editor .elementor-widget-container.is-offer-request {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Par défaut: tout est caché */
.renting-badge,
.renting-link,
.renting-text-right,
#button_wpcf7-f6-o1,
#ctf-popup-wapper-wpcf7-f6-o1 {
  display: none;
}

/* Si la fiche produit a une feature Location => on affiche */
html.has-renting .renting-badge {
  display: block;
}

html.has-renting .renting-link {
  display: inline-block;
}

html.has-renting .renting-text-right {
  display: block;
}

html.has-renting #button_wpcf7-f6-o1 {
  display: inline-block;
}

html.has-renting #ctf-popup-wapper-wpcf7-f6-o1 {
  display: block;
}
.brb-renting-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;
  background: #e53935;
  color: #fff;
  font-weight: 800;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  font-family: "Noto Sans";
}

/* Quand un block category n'a qu'un seul lien (catégorie isolée) => style titre */
.ets_mm_block.mm_block_type_category
  .ets_mm_categories
  > li:only-child
  > a.ets_mm_url {
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: px;
  border-bottom: 1px solid #e7e7e7;
  font-size: 16px;
  line-height: 110%;
}
/* Reset listes dans le megamenu */
.ets_mm_megamenu .ets_mm_categories,
.ets_mm_megamenu .mm_blocks_ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Si la "puce" est injectée via pseudo élément (cas le + courant) */
.ets_mm_megamenu .ets_mm_categories li::before,
.ets_mm_megamenu .ets_mm_categories li > a::before,
.ets_mm_megamenu .mm_blocks_ul > li::before {
  content: "" !important;
  display: none !important;
}

/* Si la "puce" est un marker */
.ets_mm_megamenu .ets_mm_categories li::marker,
.ets_mm_megamenu .mm_blocks_ul > li::marker {
  content: "" !important;
}

/* Enlever puces + marges sur les listes "CMS" du megamenu */
.ets_mm_megamenu .ets_mm_block.mm_block_type_cms ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ets_mm_megamenu .ets_mm_block.mm_block_type_cms li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Si la puce est injectée via marker/pseudo-element */
.ets_mm_megamenu .ets_mm_block.mm_block_type_cms li::marker {
  content: "" !important;
}
.ets_mm_megamenu .ets_mm_block.mm_block_type_cms li::before,
.ets_mm_megamenu .ets_mm_block.mm_block_type_cms a::before {
  content: none !important;
  display: none !important;
}
.btpricettc-line {
  display: block;
  width: 100%;
  margin: auto;
  text-align: center;
  color: #2c9ffd;
  margin-bottom: 30px !important;
}
