/* Styles pour les réseaux sociaux */
/* Styles pour la section Suivez-nous */
.sg-social-buttons .sg-social-btn.tiktok {
    background-color: #000000;
    color: #ffffff;
}

.sg-social-buttons .sg-social-btn.threads {
    background-color: #000000;
    color: #ffffff;
}

.sg-social-buttons .sg-social-btn.tiktok:hover {
    background-color: #ff0050;
    color: #ffffff;
}

.sg-social-buttons .sg-social-btn.threads:hover {
    background-color: #000000;
    color: #ffffff;
    opacity: 0.9;
}

/* Styles pour la section Réseaux sociaux */
.social-links .instagram i,
.social-links .threads i {
    color: #000000;
    background-color: #ffffff;
    border-radius: 50%;
    padding: 5px;
}

.social-links .instagram:hover i {
    color: #e4405f;
}

.social-links .threads:hover i {
    color: #000000;
    opacity: 0.8;
}

/* Styles pour la pagination du portail */
.sg-pagination {
    margin-top: 2rem;
    padding: 1rem 0;
    border-top: 1px solid #e9ecef;
}

.sg-pagination .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    gap: 0.25rem;
}

.sg-pagination .page-item {
    margin: 0;
}

.sg-pagination .page-link {
    color: var(--sg-primary, #2c5aa0);
    background-color: transparent;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    min-width: 2.5rem;
    text-align: center;
}

.sg-pagination .page-link:hover {
    background-color: var(--sg-primary, #2c5aa0);
    border-color: var(--sg-primary, #2c5aa0);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(44, 90, 160, 0.2);
}

.sg-pagination .page-item.active .page-link {
    background-color: var(--sg-primary, #2c5aa0);
    border-color: var(--sg-primary, #2c5aa0);
    color: white;
    font-weight: 600;
}

.sg-pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

.sg-pagination .page-item.disabled .page-link:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    transform: none;
    box-shadow: none;
}

/* Styles pour les contrôles de pagination */
.sg-pagination .page-item:first-child .page-link,
.sg-pagination .page-item:last-child .page-link {
    font-weight: 600;
}

.sg-pagination .page-item:first-child .page-link::before {
    content: "‹";
    font-size: 1.1rem;
}

.sg-pagination .page-item:last-child .page-link::after {
    content: "›";
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sg-pagination .pagination {
        gap: 0.125rem;
    }
    
    .sg-pagination .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.8rem;
        min-width: 2rem;
    }
    
    /* Masquer certains numéros de page sur mobile */
    .sg-pagination .page-item:not(.active):not(:first-child):not(:last-child):not(:nth-child(2)):not(:nth-last-child(2)) {
        display: none;
    }
}

/* Grille des biens du portail */
.sg-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    transition: opacity 0.3s ease-in-out;
}

.sg-properties-grid.loading {
    opacity: 0.6;
}

/* Prix en overlay sur l'image du bien */
.sg-property-image {
    position: relative;
}

.sg-property-price-overlay {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Adresse + caractéristiques sur une seule ligne */
.sg-property-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.sg-property-meta .sg-property-location {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.sg-property-meta .sg-property-features {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Indicateur de résultats */
.sg-pagination-info {
    text-align: center;
    margin-bottom: 1rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.sg-pagination-info strong {
    color: var(--sg-primary, #2c5aa0);
    font-weight: 600;
}
