.ehdi-search {
  width: 100%;
  margin: 0 auto;
}

/* =========================================
   TYPOGRAPHIE FILTRES + INFOS BIENS
========================================= */
.ehdi-search label,
.ehdi-select,
.ehdi-field input,
.ehdi-card-location,
.ehdi-card-meta,
.ehdi-card-description,
.ehdi-card-agent,
.ehdi-count,
.ehdi-empty,
.ehdi-loading,
.ehdi-error,
.ehdi-no-image {
  font-family: "Inter", Sans-serif !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: var(--e-global-color-secondary) !important;
}

/* =========================================
   BLOC FILTRES
========================================= */
.ehdi-secondary-filters {
  margin: 0 0 30px;
  padding: 24px;
  background: #0d5744;
  border-radius: 24px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}

.ehdi-filters-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
}

.ehdi-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.ehdi-field label {
  display: block;
  margin-bottom: 2px;
}

.ehdi-field input,
.ehdi-select {
  width: 100%;
  height: 48px;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 0 14px;
  background: #fff;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.ehdi-select {
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--e-global-color-secondary) 50%),
    linear-gradient(135deg, var(--e-global-color-secondary) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.ehdi-field input:focus,
.ehdi-select:focus {
  outline: none;
  border-color: var(--e-global-color-text);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

/* =========================================
   CTA
========================================= */
.ehdi-btn,
.ehdi-page-btn {
  background-color: var(--e-global-color-text);
  color: #fff;
  font-family: "Established", Sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  font-style: oblique;
  border-radius: 50px 50px 50px 50px;
  text-align: center !important;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ehdi-btn {
  min-height: 48px;
  padding: 0 22px;
  margin-bottom: 25px !important;
  /* margin-left: 25%; */
  width: 75%;
}

.ehdi-btn-secondary {
  background: transparent;
  color: var(--e-global-color-text);
  border: 1px solid var(--e-global-color-text);
}

.ehdi-btn:hover,
.ehdi-page-btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.ehdi-field-actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* =========================================
   STATUS / MESSAGES
========================================= */
.ehdi-status {
  margin: 10px 0 20px;
}

.ehdi-empty,
.ehdi-error,
.ehdi-loading {
  padding: 18px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

/* =========================================
   GRILLE BIENS
========================================= */
.ehdi-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.ehdi-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

.ehdi-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f3f3f3;
  overflow: hidden;
  flex-shrink: 0;
}

.ehdi-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* fallback si pas d'aspect-ratio supporté */
@supports not (aspect-ratio: 4 / 3) {
  .ehdi-card-image {
    height: 240px;
  }
}

.ehdi-no-image {
  width: 100%;
  height: 100%;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f3f3;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.ehdi-card-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  min-width: 0;
}

.ehdi-card-location {
  line-height: 1.4;
  min-height: 2.8em;
}

.ehdi-card-title {
  margin: 0;
  font-family: "Established", Sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  font-style: oblique;
  color: var(--e-global-color-text);
  line-height: 1.2;
}

.ehdi-card-price {
  font-family: "Established", Sans-serif;
  font-size: 1.15rem;
  font-style: oblique;
  color: var(--e-global-color-text);
  margin: 0 0 2px;
  line-height: 1.2;
  min-height: 1.4em;
}

.ehdi-card-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 2px;
  min-height: 1.6em;
}

.ehdi-card-meta span {
  display: inline-flex;
  align-items: center;
}

.ehdi-card-description {
  line-height: 1.6;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 6.4em;
}

.ehdi-card-agent {
  margin-top: auto;
  padding-top: 8px;
}

.ehdi-card-agent a {
  color: var(--e-global-color-text);
  text-decoration: none;
  word-break: break-word;
}

.ehdi-card-agent a:hover {
  text-decoration: underline;
}

/* =========================================
   PAGINATION
========================================= */
.ehdi-pagination {
  margin-top: 30px;
}

.ehdi-pagination-inner {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.ehdi-page-btn {
  min-width: 46px;
  min-height: 46px;
  padding: 0 16px;
  margin-bottom: 0 !important;
  margin-left: 0;
}

.ehdi-page-btn.is-active {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08) inset;
}

.ehdi-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1400px) {
  .ehdi-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .ehdi-filters-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .ehdi-filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ehdi-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ehdi-btn {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .ehdi-filters-grid {
    grid-template-columns: 1fr;
  }

  .ehdi-cards {
    grid-template-columns: 1fr;
  }

  .ehdi-card-content {
    padding: 18px;
  }

  .ehdi-card-title {
    font-size: 1.25rem;
  }

  .ehdi-btn {
    width: 100%;
    margin-left: 0;
  }
}


label .colorlabel{color:white!important;}

.noUi-target {
    border-radius: 10px;
    border: none;
    background: var(--e-global-color-text);
    height: 6px;
}

.noUi-connect {
    /* background: var(--e-global-color-primary); */
    background: white;
}

.noUi-handle {
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--e-global-color-primary);
    box-shadow: none;
}

.ehdi-range-values {
    margin-top: 8px;
    font-size: 0.9rem;
}