.logement-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.logement-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #666;
}

.logement-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.logement-gallery img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.logement-description {
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background: #2c7be5;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}



/* ===== MODAL ===== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.5);

    display: none;
    justify-content: center;
    align-items: center;

    z-index: 1000;
}

.modal-box {
    background: white;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;

    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.modal-box h3 {
    margin-bottom: 15px;
}

.modal-box textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    resize: vertical;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Boutons */

.btn-cancel {
    background: #ddd;
}

.btn-send {
    background: #c94b4b;
    color: white;
}

.avatar-box {
    width: 100px;
    height: 100px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #f1f1f1;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}


.avatar-img:hover {
    transform: scale(1.05);
}

.logement-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 30px;
}

.logement-left {
    flex: 2;
}

.logement-right {
    flex: 1;
}

.owner-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    position: sticky;
    top: 120px;
}

.owner-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

.premium-badge {
    display: inline-block;
    background: gold;
    color: #333;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 15px;
}

.btn-show-more {
    margin-top: 15px;
    padding: 10px 20px;
    background: #2c7be5;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.extra-gallery {
    display: none;
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.logement-preferences,
.logement-equipements {
    margin-top: 30px;
}

.logement-preferences ul,
.logement-equipements ul {
    list-style: none;
    padding: 0;
}

.logement-preferences li,
.logement-equipements li {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

/* ===== CARROUSEL ===== */

.main-gallery {
    margin-bottom: 30px;

}


.main-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.thumbnail-row {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.thumbnail-row img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.2s ease;
}

.thumbnail-row img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* ===== LIGHTBOX ===== */

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

.publication-date {
    margin-top: 8px;
    color: #888;
    font-size: 0.9rem;
}

.owner-card .btn {
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
}

.owner-card a.btn {
    display: block;
}

.verified-icon {
    color: #4CAF50;
    font-weight: bold;
    margin-left: 5px;
}


/* ===== MOBILE ACTION BAR ===== */


.mobile-action-bar {
    display: none;
}

@media (max-width: 768px) {

    img {
        max-width: 100%;
        height: auto;
    }

    body {
        overflow-x: hidden;
    }

    .mobile-action-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;

        background: white;
        padding: 12px;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.1);

        display: flex;
        gap: 10px;
        z-index: 1500;
    }

    .mobile-action-bar .btn {
        flex: 1;
    }


    .logement-wrapper {
        flex-direction: column;
    }

    .logement-right {
        order: 2;
        width: 100%;
    }

    .logement-left {
        order: 1;
    }

    .owner-card {
        position: relative;
        top: auto;
        margin-top: 30px;
    }

    /* espace pour ne pas cacher la page */

    body {
        padding-bottom: 80px;
    }
    .mobile-action-bar {
        backdrop-filter: blur(6px);
    }


}


