
.annonce-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 23px;
    border: 1px solid var(--border, #e5e9e3);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(18, 60, 50, 0.045);
}

.annonce-card h3 {
    margin: 0 0 8px;
    color: var(--green, #123c32);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.annonce-location {
    margin: 0 0 15px;
    color: var(--muted, #718078);
    font-size: 12px;
}

.annonce-loyer {
    margin: 0 0 15px;
    color: var(--green, #123c32);
    font-size: 23px;
    font-weight: 800;
}

.annonce-loyer small {
    color: var(--muted, #718078);
    font-size: 11px;
    font-weight: 500;
}

.annonce-description {
    margin: 0 0 18px;
    color: #64736b;
    font-size: 13px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.annonce-details {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-top: 15px;
    border-top: 1px solid var(--border, #e5e9e3);
}

.annonce-detail {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #53655b;
    font-size: 12px;
}

.annonce-detail strong {
    color: var(--green, #123c32);
}

.annonce-extra {
    margin: 15px 0 0;
    padding-top: 13px;
    border-top: 1px solid var(--border, #e5e9e3);
    color: #64736b;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.annonce-date {
    margin: auto 0 0;
    padding-top: 17px;
    color: #87938c;
    font-size: 10px;
}



/* Médias des annonces : dimensions contrôlées */
.annonce-medias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin: 18px 0;
    overflow: hidden;
}

.annonce-medias img,
.annonce-medias video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 220px;
    min-width: 0;
    object-fit: cover;
    background: #eef1ee;
    border: 1px solid #e1e7e2;
    border-radius: 10px;
}

.annonce-medias video {
    object-fit: contain;
}

.annonce-card {
    min-width: 0;
    overflow: hidden;
}

.annonce-card img {
    max-width: 100%;
}

@media (max-width: 600px) {
    .annonce-medias {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .annonce-medias img,
    .annonce-medias video {
        height: 210px;
    }
}


/* Galerie de médias des annonces immobilières */
.annonce-medias {
    width: 100%;
    max-width: 100%;
    margin: 16px 0;
}

.annonce-galerie-scene {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px;
    overflow: hidden;
    background: #f3f5f3;
    border: 1px solid #e3e8e4;
    border-radius: 10px;
}

.annonce-galerie-contenu {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
}

.annonce-galerie-media {
    display: block;
    width: 100%;
    height: 300px;
    max-width: 100%;
    object-fit: contain;
    background: #e9ede9;
    border-radius: 6px;
}

.annonce-galerie-fleche {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 42px;
    padding: 0;
    border: 1px solid #dce4de;
    border-radius: 7px;
    background: #fff;
    color: #123c32;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.annonce-galerie-fleche:hover {
    background: #123c32;
    color: #fff;
}

.annonce-galerie-fleche:disabled {
    opacity: .45;
    cursor: default;
}

.annonce-galerie-compteur {
    display: block;
    margin-top: 8px;
    color: #5c675f;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 600px) {
    .annonce-galerie-scene {
        grid-template-columns: 32px minmax(0, 1fr) 32px;
        gap: 5px;
        padding: 5px;
    }

    .annonce-galerie-fleche {
        width: 30px;
        height: 38px;
        font-size: 25px;
    }

    .annonce-galerie-media {
        height: 230px;
    }
}

.btn-recherche-principal {
    background: #123c32;
    color: #ffffff;
    border: 1px solid #123c32;
    font-weight: 700;
    min-height: 48px;
    padding: 13px 24px;
    box-shadow: 0 5px 14px rgba(18, 60, 50, 0.15);
}

.btn-recherche-principal:hover {
    background: #1b5949;
}

.btn-toutes-annonces {
    background: #ffffff;
    color: #123c32;
    border: 1px solid #123c32;
    font-weight: 600;
    min-height: 44px;
    padding: 11px 20px;
    margin-top: 8px;
}

.btn-toutes-annonces:hover {
    background: #edf3ef;
}
