/* Styles pour les annonces Ubiflow */

/* Layout Grid */
.ubiflow-annonces.ubiflow-layout-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.ubiflow-annonces.ubiflow-layout-grid .ubiflow-grid-item {
    padding: 15px;
    box-sizing: border-box;
}

.ubiflow-annonces.ubiflow-cols-2 .ubiflow-grid-item {
    width: 50%;
}

.ubiflow-annonces.ubiflow-cols-3 .ubiflow-grid-item {
    width: 33.33%;
}

.ubiflow-annonces.ubiflow-cols-4 .ubiflow-grid-item {
    width: 25%;
}

@media (max-width: 992px) {

    .ubiflow-annonces.ubiflow-cols-3 .ubiflow-grid-item,
    .ubiflow-annonces.ubiflow-cols-4 .ubiflow-grid-item {
        width: 50%;
    }
}

@media (max-width: 576px) {
    .ubiflow-annonces.ubiflow-layout-grid .ubiflow-grid-item {
        width: 100%;
    }
}

/* Layout List */
.ubiflow-annonces.ubiflow-layout-list .ubiflow-list-item {
    margin-bottom: 30px;
}

.ubiflow-annonces.ubiflow-layout-list .ubiflow-annonce-link {
    display: flex;
    flex-wrap: wrap;
}

.ubiflow-annonces.ubiflow-layout-list .ubiflow-annonce-thumbnail {
    width: 30%;
    flex: 0 0 30%;
}

.ubiflow-annonces.ubiflow-layout-list .ubiflow-annonce-content {
    width: 70%;
    flex: 0 0 70%;
    padding-left: 20px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .ubiflow-annonces.ubiflow-layout-list .ubiflow-annonce-link {
        flex-direction: column;
    }

    .ubiflow-annonces.ubiflow-layout-list .ubiflow-annonce-thumbnail,
    .ubiflow-annonces.ubiflow-layout-list .ubiflow-annonce-content {
        width: 100%;
        flex: 0 0 100%;
    }

    .ubiflow-annonces.ubiflow-layout-list .ubiflow-annonce-content {
        padding-left: 0;
        padding-top: 15px;
    }
}

/* Style des éléments */
.ubiflow-annonce-item {
    transition: all 0.3s ease;
}

.ubiflow-annonce-link {
    display: block;
    color: inherit;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ubiflow-annonce-link:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.ubiflow-annonce-thumbnail {
    position: relative;
    padding-top: 66%;
    overflow: hidden;
}

.ubiflow-thumbnail-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ubiflow-no-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    color: #999;
}

.ubiflow-badge-type {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    font-size: 0.75rem;
    border-radius: 3px;
}

.ubiflow-annonce-content {
    padding: 15px;
}

.ubiflow-annonce-title {
    margin: 0 0 5px;
    font-size: 1.1rem;
    font-weight: 600;
}

.ubiflow-annonce-ref {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.ubiflow-annonce-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.ubiflow-meta-item {
    margin-right: 15px;
    margin-bottom: 5px;
}

.ubiflow-ville {
    color: #555;
}

.ubiflow-details .ubiflow-surface {
    margin-right: 5px;
}

.ubiflow-annonce-prix {
    font-weight: 700;
    font-size: 1.2rem;
    color: #007bff;
}

.ubiflow-annonce-description-excerpt {
    margin-bottom: 15px;
    color: #666;
    font-size: 0.9rem;
}

/* Template standard */
.ubiflow-annonce-standard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ubiflow-annonce-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.ubiflow-annonce-titre {
    margin: 0 0 10px;
}

.ubiflow-annonce-ref {
    color: #666;
}

.ubiflow-annonce-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px 30px;
}

.ubiflow-annonce-photos-col {
    flex: 0 0 60%;
    max-width: 60%;
    padding: 0 15px;
    box-sizing: border-box;
}

.ubiflow-annonce-details-col {
    flex: 0 0 40%;
    max-width: 40%;
    padding: 0 15px;
    box-sizing: border-box;
}

@media (max-width: 992px) {

    .ubiflow-annonce-photos-col,
    .ubiflow-annonce-details-col {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
}

.ubiflow-annonce-photo-principale {
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.ubiflow-annonce-photo-principale img {
    width: 100%;
    display: block;
}

.ubiflow-annonce-photos-galerie {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

.ubiflow-annonce-photo-mini {
    flex: 0 0 25%;
    padding: 0 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.ubiflow-annonce-photo-mini img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 3px;
    cursor: pointer;
}

.ubiflow-annonce-no-photo {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    color: #999;
    border-radius: 5px;
}

.ubiflow-annonce-carac {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.ubiflow-annonce-carac h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.ubiflow-annonce-carac-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.ubiflow-annonce-carac-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.ubiflow-annonce-carac-list li:last-child {
    border-bottom: none;
}

.ubiflow-carac-label {
    font-weight: 600;
    margin-right: 5px;
}

.ubiflow-annonce-prix-box {
    background-color: #ebf7ff;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.ubiflow-annonce-prix,
.ubiflow-annonce-loyer-cc {
    margin-bottom: 10px;
}

.ubiflow-prix-label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.ubiflow-prix-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #007bff;
}

.ubiflow-prix-details {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.ubiflow-annonce-dpe {
    margin-bottom: 20px;
}

.ubiflow-annonce-dpe h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.ubiflow-dpe-item {
    margin-bottom: 10px;
}

.ubiflow-dpe-label {
    font-weight: 600;
    margin-right: 10px;
}

.ubiflow-dpe-tag {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    color: white;
    font-weight: 600;
}

.ubiflow-dpe-a {
    background-color: #319834;
}

.ubiflow-dpe-b {
    background-color: #52ae32;
}

.ubiflow-dpe-c {
    background-color: #8abe46;
}

.ubiflow-dpe-d {
    background-color: #dcd81c;
}

.ubiflow-dpe-e {
    background-color: #f9b000;
}

.ubiflow-dpe-f {
    background-color: #ee8023;
}

.ubiflow-dpe-g {
    background-color: #e73629;
}

.ubiflow-annonce-description {
    margin-top: 30px;
}

.ubiflow-annonce-description h3 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Template compact */
.ubiflow-annonce-compact {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

.ubiflow-annonce-compact .ubiflow-annonce-header {
    padding: 10px 15px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 0;
}

.ubiflow-annonce-compact .ubiflow-annonce-header h3 {
    margin: 0 0 5px;
    font-size: 1rem;
}

.ubiflow-annonce-compact .ubiflow-reference {
    font-size: 0.8rem;
    color: #666;
}

.ubiflow-annonce-compact .ubiflow-annonce-body {
    display: flex;
    flex-wrap: wrap;
}

.ubiflow-annonce-compact .ubiflow-annonce-photo {
    flex: 0 0 30%;
    max-width: 30%;
}

.ubiflow-annonce-compact .ubiflow-annonce-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ubiflow-annonce-compact .ubiflow-annonce-infos {
    flex: 0 0 70%;
    max-width: 70%;
    padding: 10px 15px;
    box-sizing: border-box;
}

.ubiflow-annonce-compact .ubiflow-info-item {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.ubiflow-annonce-compact .ubiflow-prix {
    font-weight: 700;
    color: #007bff;
    font-size: 1.1rem;
}

@media (max-width: 576px) {
    .ubiflow-annonce-compact .ubiflow-annonce-photo {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .ubiflow-annonce-compact .ubiflow-annonce-infos {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Contact */
.ubiflow-annonce-contact {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.ubiflow-annonce-contact h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.ubiflow-contact-label {
    font-weight: 600;
    margin-right: 5px;
}



.ubiflow-results-section {
    color: #FFFFFF;
    margin-top: 30px;
}


.fancybox__container {
    z-index: 99999 !important;
}