/* ================================================================
   RECHERCHE — CSS redesigné selon le style de details_v14.html
   ================================================================ */

:root {
    /* ── Palette issue de details_v14 ── */
    --green-deep:    #1c3d35;
    --green-mid:     #2A5C54;
    --green-light:   #e6f0ee;
    --cream:         #faf7f2;
    --sand:          #f2ece3;
    --terracotta:    #c96b3a;
    --wa-green:      #25D366;
    --text-dark:     #1a1a1a;
    --text-mid:      #555;
    --text-soft:     #888;
    --card-bg:       #ffffff;
    --border-light:  #ede9e2;
    --radius:        16px;
    --radius-sm:     10px;
    --radius-full:   50px;

    /* Compatibilité aliases */
    --primary:       var(--green-mid);
    --primary-dark:  var(--green-deep);
    --white:         #ffffff;
    --neutral-light: var(--cream);
    --shadow-soft:   0 2px 12px rgba(28, 61, 53, 0.07);
    --shadow-medium: 0 8px 28px rgba(28, 61, 53, 0.13);
    --transition:    all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.55;
    overflow-x: hidden;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}


/* ================================================================
   HEADER
   ================================================================ */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    z-index: 1000;
    background: rgba(250, 247, 242, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    gap: 0.75rem;
    height: 64px;
}

.header-left-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--green-mid);
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.mobile-menu-toggle:hover {
    background: var(--green-light);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--green-mid);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--green-deep);
}

/* Barre de recherche */
.mobile-header-search {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.mobile-search-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    line-height: 0;
}

.mobile-search-icon {
    color: var(--text-soft);
    font-size: 0.82rem;
}

.mobile-search-input {
    width: 100%;
    height: 38px;
    padding: 0 1rem 0 2.5rem;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 0.84rem;
    color: var(--text-dark);
    background: var(--card-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mobile-search-input::placeholder { color: var(--text-soft); }

.mobile-search-input:focus {
    outline: none;
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(42, 92, 84, 0.09);
}


/* ================================================================
   MENU MOBILE
   ================================================================ */

.mobile-menu {
    position: fixed;
    top: 0;
    left: -75%;
    width: 75%;
    max-width: 320px;
    height: 100%;
    background: var(--cream);
    z-index: 9999;
    padding: 0;
    transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: 6px 0 30px rgba(28, 61, 53, 0.12);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active { left: 0; }

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 1.4rem 1.2rem;
    border-bottom: 1px solid var(--border-light);
}

.menu-close {
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--text-soft);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.menu-close:hover {
    background: var(--green-light);
    color: var(--green-mid);
}

/* Liste de liens */
.mobile-menu-links {
    list-style: none;
    padding: 1rem 0.8rem;
    flex: 1;
}

.mobile-menu-links li { margin-bottom: 0.2rem; }

.mobile-menu-links a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.78rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-mid);
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
}

.mobile-menu-links a i {
    width: 20px;
    text-align: center;
    color: var(--text-soft);
    font-size: 0.9rem;
    transition: color 0.18s;
}

.mobile-menu-links a:hover {
    background: var(--green-light);
    color: var(--green-mid);
}

.mobile-menu-links a:hover i {
    color: var(--green-mid);
}

/* Actions (boutons publier / membre) */
.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0 1.2rem 1.4rem;
}

.btn-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.72rem 1.2rem;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    border: 1.5px solid var(--border-light);
    color: var(--text-mid);
    background: var(--card-bg);
}

.btn-nav:hover {
    border-color: var(--green-mid);
    color: var(--green-mid);
}

.btn-nav.primary {
    background: var(--green-mid);
    color: #fff;
    border-color: var(--green-mid);
}

.btn-nav.primary:hover {
    background: var(--green-deep);
    border-color: var(--green-deep);
}

/* Pied du menu */
.mobile-menu-footer {
    padding: 1.2rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: center;
}

.mobile-logout {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--green-mid);
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(42, 92, 84, 0.22);
    transition: background 0.2s, transform 0.2s;
}

.mobile-logout:hover {
    background: var(--green-deep);
    transform: translateY(-2px);
    color: #fff;
}


/* ================================================================
   FILTRES
   ================================================================ */

.filters-section {
    padding: 5.2rem 1rem 0.85rem;
    background: rgba(250, 247, 242, 0.95);
    border-bottom: 1px solid var(--border-light);
}

.filters-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.6rem;
    scrollbar-width: none;
}

.filters-container::-webkit-scrollbar { display: none; }

.filter-rect {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--card-bg);
    border: 1.5px solid var(--border-light);
    color: var(--text-mid);
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, color 0.18s;
}

.filter-rect i {
    font-size: 0.72rem;
    color: var(--text-soft);
}

.filter-rect:hover {
    border-color: var(--green-mid);
    color: var(--green-mid);
}

.filter-rect.active {
    background: var(--green-mid);
    color: #fff;
    border-color: var(--green-mid);
}

.filter-rect.active i { color: rgba(255,255,255,0.8); }

/* Filtre actif avec valeur (not "Tous les filtres") */
.filter-rect.has-value {
    background: var(--white);
    border-color: var(--green-mid);
    color: var(--green-mid);
}

.filter-rect.has-value i {
    color: var(--green-mid);
}

.filter-clear {
    color: var(--text-soft);
    text-decoration: none;
    background: none;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    padding: 0.5rem 0.5rem;
    flex-shrink: 0;
    transition: color 0.18s;
}

.filter-clear:hover { color: var(--terracotta); }


/* ================================================================
   SECTION RÉSULTATS
   ================================================================ */

.results-section {
    padding: 1.2rem 1rem 3rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.results-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1.2rem;
}

.results-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
}

.results-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.results-count {
    font-size: 0.78rem;
    color: var(--text-soft);
    font-weight: 400;
}

.pagination-top {
    font-size: 0.78rem;
    color: var(--text-soft);
    font-weight: 400;
    flex-shrink: 0;
}


/* ================================================================
   GRILLE + CARTES D'ANNONCES
   ================================================================ */

.annonces-grid {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-bottom: 2rem;
}

.annonce-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1.5px solid var(--border-light);
    display: flex;
    flex-direction: column;
    height: 450px;
    transition: box-shadow 0.22s, transform 0.22s;
}

.annonce-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

/* ── Image / Carrousel ── */

.annonce-image {
    height: 250px;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius) var(--radius) 0 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    /* width et flex des slides sont définis dynamiquement par initCarousel() */
    height: 100%;
    transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    /* flex-basis et max-width définis dynamiquement dans initCarousel() */
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Indicateurs (dots) */
.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
    z-index: 3;
}

.carousel-indicator {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}

.carousel-indicator.active {
    background: #fff;
    transform: scale(1.3);
}

/* Bouton favori */
.favorite-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255,255,255,0.92);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
    z-index: 4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    font-size: 0.9rem;
    /* icône par défaut : cœur vide gris */
    color: rgba(80,80,80,0.55);
}

/* Cœur vide → affiché via classe sur le <i> */
.favorite-btn .far.fa-heart  { color: rgba(80,80,80,0.55); }
.favorite-btn .fas.fa-heart  { color: #e53935; }

/* État actif : fond légèrement rosé + cœur rouge */
.favorite-btn.active {
    background: rgba(255,255,255,0.97);
    color: #e53935;
}

.favorite-btn:hover { transform: scale(1.12); background: rgba(255,255,255,0.97); }

/* Badge vérifié — style details_v14 */
.verified-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: linear-gradient(135deg, #2e7d32, #43a047);
    color: #fff;
    padding: 0.28rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 4;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.35);
    letter-spacing: 0.02em;
}

.verified-badge i { font-size: 0.72rem; }

/* Bouton vidéo — style play comme details_v14 */
.video-btn {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(255,255,255,0.88);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-deep);
    cursor: pointer;
    z-index: 4;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: background 0.2s, transform 0.2s;
}

/* Décalage visuel du triangle play vers la droite */
.video-btn i { margin-left: 2px; }

.video-btn:hover { background: rgba(255,255,255,0.98); transform: scale(1.1); }


/* ── Contenu textuel de la carte ── */

.annonce-content {
    padding: 1rem 1rem 0.85rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 200px;
    min-height: 200px;
}

.annonce-info-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.32rem;
    margin-bottom: 0.7rem;
}

.annonce-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.15;
}

.annonce-price-period {
    font-size: 0.78rem;
    color: var(--text-soft);
    font-weight: 400;
    margin-left: 2px;
}

.annonce-location {
    color: var(--text-soft);
    font-size: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    line-height: 1.4;
}

.annonce-location i {
    color: var(--terracotta);
    font-size: 0.76rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Pill de type de propriété */
.property-type {
    display: inline-block;
    background: var(--sand);
    color: var(--terracotta);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.12rem 0.55rem;
    border-radius: 20px;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    border: 1px solid #e8d8ca;
}

.annonce-rooms {
    font-size: 0.8rem;
    color: var(--text-mid);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.annonce-features { display: flex; flex-direction: column; }

.bathroom-info {
    font-size: 0.8rem;
    color: var(--text-soft);
    line-height: 1.4;
}

/* ── Bouton WhatsApp ── */
.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--wa-green);
    color: #fff;
    border: none;
    padding: 0;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    width: 100%;
    height: 46px;
    min-height: 46px;
    margin-top: auto;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.22);
    transition: background 0.2s, box-shadow 0.2s;
    letter-spacing: 0.01em;
}

.btn-contact i { font-size: 1.2rem; }

.btn-contact:hover {
    background: #1da851;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.32);
}


/* ================================================================
   PAGINATION
   ================================================================ */

.pagination-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin: 2rem 0;
}

.pagination-button {
    background: var(--card-bg);
    border: 1.5px solid var(--border-light);
    color: var(--text-mid);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.82rem;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, color 0.18s;
}

.pagination-button:hover {
    border-color: var(--green-mid);
    color: var(--green-mid);
    background: var(--green-light);
}

.pagination-button.active {
    background: var(--green-mid);
    color: #fff;
    border-color: var(--green-mid);
}

.pagination-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pagination-ellipsis {
    color: var(--text-soft);
    font-size: 0.82rem;
    padding: 0 0.2rem;
}


/* ================================================================
   MODALES DE FILTRES — style bottom sheet
   ================================================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 61, 53, 0.35);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--cream);
    width: 100%;
    max-width: 520px;
    border-radius: var(--radius) var(--radius) 0 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Poignée en haut de la feuille */
.modal::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    margin: 0.85rem auto 0;
    flex-shrink: 0;
}

.modal-overlay.active .modal { transform: translateY(0); }

.modal-header {
    padding: 0.9rem 1.2rem 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
}

.modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.modal-reset {
    background: none;
    border: none;
    color: var(--text-soft);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.82rem;
    cursor: pointer;
    transition: color 0.18s;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.modal-reset:hover { color: var(--terracotta); }

.modal-body {
    padding: 1.1rem 1.2rem;
    flex: 1;
    overflow-y: auto;
}

.modal-footer {
    padding: 1rem 1.2rem;
    border-top: 1px solid var(--border-light);
}

.btn-modal-done {
    background: var(--green-mid);
    color: #fff;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
    letter-spacing: 0.01em;
}

.btn-modal-done:hover { background: var(--green-deep); }

/* Options de filtre dans la modale */
.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.filter-option {
    background: var(--card-bg);
    border: 1.5px solid var(--border-light);
    color: var(--text-mid);
    padding: 0.65rem 1.1rem;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, color 0.18s;
    flex: 1;
    min-width: calc(50% - 0.5rem);
    text-align: center;
}

.filter-option:hover { border-color: var(--green-mid); color: var(--green-mid); }

.filter-option.selected {
    background: var(--green-mid);
    color: #fff;
    border-color: var(--green-mid);
}

/* Inputs de prix */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.2rem;
}

.price-input-with-currency {
    position: relative;
    flex: 1;
}

.price-input {
    width: 100%;
    padding: 0.72rem 3rem 0.72rem 0.9rem;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--card-bg);
    transition: border-color 0.18s, box-shadow 0.18s;
}

.price-input::placeholder { color: var(--text-soft); }

.price-input:focus {
    outline: none;
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(42, 92, 84, 0.09);
}

.currency-label {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 600;
    pointer-events: none;
    letter-spacing: 0.03em;
}

.price-separator {
    color: var(--text-soft);
    font-weight: 400;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ── Switch devise HTG / USD ──────────────────────────────────────── */

/* Conteneur centré placé sous les inputs min/max */
.price-devise-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0 1.4rem;
}

/* Le pill switch lui-même */
.devise-switch-pill {
    display: inline-flex;
    background: var(--cream);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 2px;
}

.devise-pill {
    padding: 0.3rem 1.3rem;
    border: none;
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-soft);
    background: transparent;
    cursor: pointer;
    transition: background 0.17s, color 0.17s, box-shadow 0.17s;
    letter-spacing: 0.02em;
    line-height: 1.4;
    user-select: none;
}
.devise-pill:hover {
    color: var(--green-mid);
    background: var(--green-light);
}
.devise-pill.active {
    background: var(--green-mid);
    color: #fff;
    box-shadow: 0 2px 8px rgba(42, 92, 84, 0.22);
}

/* Taux de conversion — toujours visible, centré sous le switch */
.taux-affiche {
    font-family: 'Outfit', sans-serif;
    font-size: 0.77rem;
    color: var(--text-soft);
    text-align: center;
    margin: 0;
    line-height: 1.4;
}
.taux-affiche .taux-num {
    font-weight: 700;
    color: var(--green-mid);
}

/* Section de filtre (titres) dans la modale globale */
.filter-section { margin-bottom: 1.8rem; }

.filter-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 0.75rem;
}


/* ================================================================
   UTILITAIRES
   ================================================================ */

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.header-search, .header-actions, .desktop-only { display: none !important; }


/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 480px) {
    .main-header { height: 60px; }

    .filters-section { padding-top: 4.8rem; }

    .filter-rect {
        padding: 0.42rem 0.75rem;
        font-size: 0.75rem;
    }

    .annonce-card   { height: 430px; }
    .annonce-image  { height: 235px; }
    .annonce-content {
        height: 195px;
        min-height: 195px;
        padding: 0.85rem 0.9rem 0.75rem;
    }

    .btn-contact { height: 44px; min-height: 44px; font-size: 0.88rem; }
    .btn-contact i { font-size: 1.1rem; }

    .filter-option { padding: 0.55rem 0.9rem; font-size: 0.82rem; }

    .price-input { padding: 0.6rem 2.6rem 0.6rem 0.75rem; font-size: 0.85rem; }
    .currency-label { font-size: 0.72rem; right: 0.65rem; }
}

@media (max-width: 360px) {
    .main-header { height: 58px; padding: 0 0.8rem; }
    .mobile-menu { left: -82%; width: 82%; }

    .annonce-card   { height: 415px; }
    .annonce-image  { height: 220px; }
    .annonce-content {
        height: 195px;
        min-height: 195px;
        padding: 0.75rem 0.8rem;
    }

    .btn-contact { height: 42px; min-height: 42px; font-size: 0.85rem; }
    .btn-contact i { font-size: 1rem; }
}

@media (max-width: 320px) {
    .mobile-search-input { font-size: 0.75rem; }
    .filter-rect { padding: 0.35rem 0.6rem; font-size: 0.7rem; }
}

/* ==========================================================================
   AUTOCOMPLETE — dropdown de suggestions Elasticsearch
   ========================================================================== */

.kf-suggestions {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid rgba(42, 92, 84, 0.10);
    border-bottom: 1px solid rgba(42, 92, 84, 0.10);
    box-shadow: 0 8px 24px rgba(28, 61, 53, 0.12);
    z-index: 1200;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
    max-height: 340px;
    overflow-y: auto;
    /* Décalé sous le header (60px) */
    margin-top: 60px;
}

.kf-suggestions.active {
    display: block;
    animation: kfSuggestFadeIn 0.14s ease;
}

@keyframes kfSuggestFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.kf-suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.93rem;
    color: var(--text-dark, #1a2e29);
    transition: background 0.15s;
    border-bottom: 1px solid rgba(42, 92, 84, 0.05);
}

.kf-suggestion-item:last-child {
    border-bottom: none;
}

.kf-suggestion-item:hover,
.kf-suggestion-item.focused {
    background: rgba(42, 92, 84, 0.07);
}

.kf-suggestion-icon {
    color: var(--green-mid, #3A7C74);
    font-size: 0.80rem;
    flex-shrink: 0;
    opacity: 0.75;
}

.kf-suggestion-item strong {
    font-weight: 600;
    color: var(--green-dark, #2A5C54);
}

/* Scrollbar discrète */
.kf-suggestions::-webkit-scrollbar { width: 4px; }
.kf-suggestions::-webkit-scrollbar-thumb {
    background: rgba(42, 92, 84, 0.20);
    border-radius: 2px;
}

/* ── Highlight Meilisearch (<mark>) ───────────────────────────────────────── */
.kf-suggestion-item mark {
    background: transparent;
    font-weight: 700;
    color: var(--green-dark, #2A5C54);
}

/* Badge type suggestion (commune / quartier) */
.kf-suggestion-type-badge {
    margin-left: auto;
    font-size: 0.72rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: var(--text-soft, #8a9e97);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

/* ── Skeleton loading ─────────────────────────────────────────────────────── */
@keyframes kf-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}

.skeleton-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1.5px solid var(--border-light);
    overflow: hidden;
    height: 450px;
    display: flex;
    flex-direction: column;
}

.skeleton-img {
    height: 250px;
    width: 100%;
    background: linear-gradient(
        90deg,
        var(--border-light) 0%,
        rgba(42, 92, 84, 0.07) 40%,
        var(--border-light) 80%
    );
    background-size: 600px 100%;
    animation: kf-shimmer 1.6s ease-in-out infinite;
}

.skeleton-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    justify-content: center;
}

.skeleton-line {
    height: 11px;
    border-radius: 6px;
    background: linear-gradient(
        90deg,
        var(--border-light) 0%,
        rgba(42, 92, 84, 0.07) 40%,
        var(--border-light) 80%
    );
    background-size: 600px 100%;
    animation: kf-shimmer 1.6s ease-in-out infinite;
}

/* Stagger léger entre les lignes */
.skeleton-line:nth-child(2) { animation-delay: 0.1s; }
.skeleton-line:nth-child(3) { animation-delay: 0.2s; }
.skeleton-line:nth-child(4) { animation-delay: 0.3s; }

/* Largeurs variées pour l'aspect naturel */
.skeleton-line.w40 { width: 40%; }
.skeleton-line.w45 { width: 45%; }
.skeleton-line.w50 { width: 50%; }
.skeleton-line.w55 { width: 55%; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w65 { width: 65%; }
.skeleton-line.w70 { width: 70%; }
.skeleton-line.w75 { width: 75%; }
.skeleton-line.w80 { width: 80%; }