/*
Theme Name: Houzez-child
Template: houzez
*/





/* === Bouton toggle (+ / -) pour afficher/masquer la section Superficies === */
.toggle-areas-btn {
    background: none;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    line-height: 24px;
    text-align: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.toggle-areas-btn:hover {
    background: #f5f5f5;
}
/* PEB DANS LE OVERVIEW */



/* RENTED & SOLD */
a.label[href*="/label/rented/"],
a.label[href*="/label/sold/"] {
    text-transform: uppercase;
    background-color: #C9233A !important; /* Rouge */
    color: #ffffff !important;
    font-size: 20px;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
}

/* UNDER OPTION */
a.label[href*="/label/under-option/"] {
    text-transform: uppercase;
    background-color: #32455D !important; /* Bleu */
    color: #ffffff !important;
    font-size: 20px;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
}

/* Aligner les labels (rented / sold / sous-option) à gauche sur les vignettes */
.item-header .labels-wrap {
    justify-content: flex-start !important; /* colle à gauche */
    left: 0;
    right: auto;
    text-align: left;
}

/* Pour éviter qu'ils flottent à droite dans certains templates */
.item-header .labels-wrap a.label {
    margin-left: 10px;
}



/* === PEB DANS LE OVERVIEW  === */
.peb-item .hz-property-overview-icon img {
  height: 30px;
	margin-top: 10px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

li.h-peb-icon img {
  width: 85px;
  height: auto;
}
/* === FIN PEB DANS LE OVERVIEW  === */





/* Titre "Documents" (en <div class="documents-title">) */
.property-description-wrap .documents-title {
  font-size: 18px !important;
  font-weight: 600 !important;
  margin-top: 25px !important;
  margin-bottom: 30px !important;
  display: block;
  padding-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
  clear: both; /* au cas où du contenu précédent flotte */
}

/* La liste juste après le titre */
.property-description-wrap .documents-title + ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.property-description-wrap .documents-title + ul li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.property-description-wrap .documents-title + ul li a::before {
  content: "📄";
  margin-right: 8px;
  font-size: 16px;
  display: inline-block;
}

.property-description-wrap .documents-title + ul li a {
  text-decoration: none;
  color: #333;
}

.property-description-wrap .documents-title + ul li a:hover {
  text-decoration: underline;
  color: #000;
}
/* FIN Titre "Documents" (en <div class="documents-title">) */





/* Overlay #32475d transparent pour Loué + Vendu */
.item-wrap-v5:has(.labels-wrap a[href*="/label/rented/"]),
.item-wrap-v5:has(.labels-wrap a[href*="/label/sold/"]) {
  position: relative;
}

.item-wrap-v5:has(.labels-wrap a[href*="/label/rented/"]) .listing-image-wrap::after,
.item-wrap-v5:has(.labels-wrap a[href*="/label/sold/"]) .listing-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(50, 71, 93, 0.6); /* #32475d transparent */
  z-index: 1;
  pointer-events: none;
}

/* Badge Loué/Vendu au-dessus */
.item-wrap-v5:has(.labels-wrap a[href*="/label/rented/"]) .labels-wrap,
.item-wrap-v5:has(.labels-wrap a[href*="/label/sold/"]) .labels-wrap {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

/* Supprime le lien overlay (Loué + Vendu) */
.item-wrap-v5:has(.labels-wrap a[href*="/label/rented/"]) a.stretched-link,
.item-wrap-v5:has(.labels-wrap a[href*="/label/rented/"]) a.hz-item-link,
.item-wrap-v5:has(.labels-wrap a[href*="/label/sold/"]) a.stretched-link,
.item-wrap-v5:has(.labels-wrap a[href*="/label/sold/"]) a.hz-item-link {
  display: none !important;
}

/* Désactive tous les liens image (Loué + Vendu) */
.item-wrap-v5:has(.labels-wrap a[href*="/label/rented/"]) .listing-image-wrap a,
.item-wrap-v5:has(.labels-wrap a[href*="/label/sold/"]) .listing-image-wrap a {
  pointer-events: none !important;
}

/* Désactive les liens (titre + image) quand le bien est "rented" */
.item-wrap-v5:has(.labels-wrap a[href*="/label/rented/"]) .item-title a,
.item-wrap-v5:has(.labels-wrap a[href*="/label/rented/"]) .item-header > a,
.item-wrap-v5:has(.labels-wrap a[href*="/label/rented/"]) a.hz-item-link,
.item-wrap-v5:has(.labels-wrap a[href*="/label/rented/"]) a.stretched-link {
  pointer-events: none !important;
  cursor: default !important;
}

/* Désactive les liens (titre + image) quand le bien est "Sold" */
.item-wrap-v5:has(.labels-wrap a[href*="/label/sold/"]) .item-title a,
.item-wrap-v5:has(.labels-wrap a[href*="/label/sold/"]) .item-header > a,
.item-wrap-v5:has(.labels-wrap a[href*="/label/sold/"]) a.hz-item-link,
.item-wrap-v5:has(.labels-wrap a[href*="/label/sold/"]) a.stretched-link {
  pointer-events: none !important;
  cursor: default !important;
}

