/* ============================================
   PAGE DE RÉSULTATS DE RECHERCHE
   ============================================ */

/* Classe de conteneur avec bordure standard */
.container-bordered {
    background-color: #fff;
    border: 1px solid #d4d4d4;
    border-radius: 10px 10px 10px 10px;
    padding: 20px 9px 10px 10px;
}

/* En-tête de recherche */
.search-results-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0 30px 20px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-header-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.search-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.search-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    margin: 0;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.search-count i {
    font-size: 1.2rem;
}

.search-count strong {
    font-size: 1.3rem;
    font-weight: 700;
}

/* Filtres actifs */
.active-filters {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filters-label {
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0.9;
}

.filters-list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.filter-remove {
    background: transparent;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.filter-remove:hover {
    background: #dc3545;
    color: white;
    transform: rotate(90deg);
}

.clear-all-filters {
    background: rgba(220, 53, 69, 0.9);
    border: none;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.clear-all-filters:hover {
    background: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Wrapper pour résultats + sidebar */
.search-results-wrapper {
    display: flex;
    gap: 20px;
    padding: 20px 30px 20px;
    align-items: flex-start;
    max-width: 1600px;
    margin: 0 auto;
}

/* Conteneur des résultats */
.search-results-container {
    max-width: calc(100% - 320px);
    flex: 1;
}

/* Sidebar Promoteurs vedettes */
.promoters-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.promoters-card {
    background: white;
    border: 1px solid #d4d4d4;
    border-radius: 0.75rem;
    padding: 1.5rem;
    position: sticky;
    top: 96px;
}

.promoters-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.75rem;
}

.promoters-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.promoter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.promoter-item:hover {
    background: #f8f9fa;
    border-color: #667eea;
    transform: translateX(5px);
}

.promoter-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.promoter-info {
    flex: 1;
}

.promoter-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2px;
}

.promoter-properties {
    font-size: 0.875rem;
    color: #6c757d;
}

@media (max-width: 1024px) {
    .search-results-wrapper {
        flex-direction: column;
    }
    
    .search-results-container {
        max-width: 100%;
    }
    
    .promoters-sidebar {
        width: 100%;
    }
    
    .promoters-card {
        position: relative;
        top: 0;
    }
}

/* Header de résultats dans search-results-container */
.search-results-container .search-header-content {
    padding: 0 0 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.search-results-container .search-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.search-results-container .search-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #2c3e50;
}

.search-results-container .search-count {
    margin: 0;
    font-size: 1rem;
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-results-container .search-count i {
    color: #667eea;
}

/* Grille de résultats */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Carte de propriété */
.property-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #d4d4d4;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Image de la propriété */
.property-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

/* Badges sur l'image - Les badges sont positionnés directement par rapport à .property-image */

/* Badge featured en haut à gauche - positionné par rapport à .property-image */
.property-image .featured-badge {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    bottom: auto !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    max-width: fit-content !important;
    max-height: fit-content !important;
    z-index: 2;
}

/* Badge transaction en bas à droite - positionné par rapport à .property-image */
.property-image .property-badge {
    position: absolute !important;
    bottom: 15px !important;
    right: 15px !important;
    top: auto !important;
    left: auto !important;
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    height: auto !important;
    max-width: fit-content !important;
    max-height: fit-content !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.badge-sale {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge-rent {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

/* Styles additionnels pour featured-badge (position définie plus haut) */
.featured-badge {
    background: linear-gradient(135deg, #ffd89b 0%, #ff8a73 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

/* Nombre de photos */
.photos-count {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Bouton favori */
.btn-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-favorite:hover {
    background: white;
    transform: scale(1.1);
}

.btn-favorite i {
    font-size: 1.2rem;
    color: #dc3545;
}

.btn-favorite:hover i {
    font-weight: 900;
}

/* Contenu de la carte */
.property-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

/* Prix en haut - style texte normal */
.property-price-top {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.property-header {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.property-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}

.property-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.property-title a:hover {
    color: #667eea;
}

/* Ancien style de prix - non utilisé maintenant */
.property-price {
    display: none;
}

.price-unit {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
}

/* Localisation */
.property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.95rem;
}

.property-location i {
    color: #667eea;
}

/* Caractéristiques */
.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #555;
}

.property-features i {
    color: #667eea;
    font-size: 0.95rem;
}

/* Description */
.property-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Pied de la carte - REMOVED (footer supprimé du layout)
.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
}

.property-agent {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.9rem;
}

.property-agent i {
    font-size: 1.2rem;
    color: #667eea;
}

.btn-view-details {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.btn-view-details:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
*/

/* Aucun résultat */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results-icon {
    font-size: 5rem;
    color: #ddd;
    margin-bottom: 20px;
}

.no-results h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

.no-results p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    padding: 40px 0 20px;
}

.pagination {
    background: white;
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.pagination-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 50%;
    background: transparent;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination-link:hover {
    background: #f8f9fa;
    color: #667eea;
}

.pagination-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination-prev,
.pagination-next {
    border-radius: 25px;
    padding: 0 18px;
    gap: 8px;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    color: #999;
}

/* Responsive */
@media (max-width: 1200px) {
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .search-title {
        font-size: 1.5rem;
    }

    .search-title-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .property-header {
        flex-direction: column;
        gap: 10px;
    }

    .property-price {
        font-size: 1.2rem;
    }

    .pagination-link {
        min-width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .search-results-header {
        padding: 30px 0 20px;
    }

    .search-title {
        font-size: 1.3rem;
    }

    .filters-list {
        width: 100%;
    }

    .property-features {
        gap: 8px;
    }

    .property-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}
