:root {
  --primary: #69b764;
  --primary-dark: #377843;
  --card-bg: rgba(255,255,255,0.88);
  --border-radius-xl: 1.5rem;
  --shadow-soft: 0 8px 32px 0 rgba(60, 60, 60, 0.11);
  --text-main: #2d3139;
  --text-muted: #9aa1ab;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: #f8fafb;
  color: var(--text-main);
}

#search_filter.modern-filter {
  position: sticky;
  top: 1rem;
  z-index: 100;
  background: var(--card-bg);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.modern-filter-grid {
  display: flex;
  flex-wrap: wrap; 
  justify-content: center; 
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* --- CORRECTION POUR RESTAURER LE STYLE DES FILTRES --- */
.modern-input {
  /* Annule le style par défaut du navigateur sur les menus déroulants */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* Rétablit votre style arrondi */
  padding: 0.85rem 2.5rem 0.85rem 1.2rem; /* Espace à droite pour la nouvelle flèche */
  font-size: 1rem;
  border-radius: 999px !important; /* !important pour forcer le style */
  border: 1.5px solid #e2e4e7;
  background-color: #fff;
  transition: border .2s;
  margin-top: 4px;

  /* Ajoute une flèche personnalisée car 'appearance: none' supprime l'originale */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1em;
  
  /* Dimensionnement pour Flexbox */
  flex: 1 1 200px;
  min-width: 200px;
  box-sizing: border-box;
}

.modern-input:focus {
  border-color: var(--primary);
  outline: none;
}

.modern-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
}

/* --- CORRECTION POUR RESTAURER LE STYLE DES BOUTONS --- */
.modern-btn {
  display: flex;
  align-items: center;
  gap: .5em;
  padding: 0.75em 1.6em;
  border-radius: 999px !important; /* !important pour forcer le style */
  font-weight: 500;
  font-size: 1rem;
  border: none;
  text-decoration: none;
  transition: background .18s, box-shadow .18s, color .18s;
  cursor: pointer;
}

.primary-btn {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 3px 10px 0 rgba(105,183,100,0.15);
}
.primary-btn:hover {
  background: var(--primary-dark);
}
.secondary-btn {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.secondary-btn:hover {
  background: var(--primary);
  color: #fff;
}
.clear-btn {
  background: #f3f5f7;
  color: var(--text-muted);
}
.clear-btn:hover {
  background: #edeef0;
}

/* Le reste du fichier est identique */
.modern-property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.modern-property-card {
  background: var(--card-bg);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 410px;
  transition: transform .15s, box-shadow .18s;
  border: 1.5px solid #eef0f3;
}
.modern-property-card:hover {
  transform: translateY(-6px) scale(1.012);
  box-shadow: 0 8px 32px 0 rgba(60,60,60,0.16);
}

.modern-property-image img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-top-left-radius: var(--border-radius-xl);
  border-top-right-radius: var(--border-radius-xl);
}

.property-city-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #fff;
  color: #377843;
  font-weight: 600;
  font-size: 0.98em;
  padding: 0.38em 1em;
  border-radius: 999px;
  box-shadow: 0 2px 10px 0 rgba(60,60,60,0.09);
  z-index: 2;
  pointer-events: none;
}

.modern-property-info {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  padding: 1rem 1.3rem 0 1.3rem;
  font-size: 1.07rem;
  color: var(--text-muted);
}

.modern-property-info ion-icon {
  font-size: 1.18em;
  vertical-align: middle;
  color: var(--primary);
}

.modern-property-desc {
  flex: 1 1 auto;
  padding: 1.2rem 1.3rem 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.modern-property-desc h3 {
  font-size: 1.18rem;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: var(--primary-dark);
}
.modern-property-desc p {
  font-size: 1rem;
  color: var(--text-main);
  opacity: .87;
  margin: 0 0 0.5rem 0;
}
.modern-property-desc .secondary-btn {
  align-self: flex-start;
}

#map {
  height: 410px;
  margin: 2.2rem 0 0 0;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-soft);
}

/* Responsive (Conserve vos règles originales) */
@media (max-width: 1000px) {
  .modern-property-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .modern-property-grid {
    grid-template-columns: 1fr;
  }
  #search_filter.modern-filter {
    padding: 1.1rem;
  }
}