/**
 * Styles pour l'affichage frontend du plugin Whise Integration
 */

/* Styles généraux */
.whise-error,
.whise-no-results {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    font-size: 16px;
}

.whise-no-results {
    background: #cff4fc;
    border: 1px solid #b6effb;
    color: #055160;
}

/* Grille des biens */
.whise-estates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

/* Carte de bien */
.whise-estate-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.whise-estate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Image du bien */
.whise-estate-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #f5f5f5;
}

.whise-estate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.whise-estate-card:hover .whise-estate-image img {
    transform: scale(1.05);
}

.whise-estate-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.whise-no-image-placeholder {
    font-size: 64px;
    color: rgba(255, 255, 255, 0.7);
}

.whise-no-image-placeholder .dashicons {
    width: 64px;
    height: 64px;
    font-size: 64px;
}

.whise-estate-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Contenu de la carte */
.whise-estate-content {
    padding: 20px;
}

.whise-estate-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #2c3e50;
    line-height: 1.3;
}

.whise-estate-reference {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 12px;
    font-weight: 500;
}

.whise-estate-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.whise-estate-meta span {
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}

.whise-estate-meta .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    color: #667eea;
}

.whise-estate-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.whise-estate-features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.whise-feature {
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 6px;
}

.whise-feature .dashicons {
    width: 14px;
    height: 14px;
    font-size: 14px;
    color: #667eea;
}

.whise-estate-price {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 15px;
}

.whise-estate-actions {
    display: flex;
    gap: 10px;
}

/* Compteur de résultats */
.whise-estates-count {
    text-align: center;
    padding: 20px;
    font-size: 15px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

/* Boutons */
.whise-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.whise-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.whise-btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.whise-btn-secondary {
    background: #fff;
    color: #667eea;
    border: 2px solid #667eea;
}

.whise-btn-secondary:hover {
    background: #667eea;
    color: #fff;
}

.whise-btn-block {
    display: block;
    width: 100%;
}

/* Bien unique */
.whise-single-estate {
    max-width: 1200px;
    margin: 30px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.whise-single-estate-header {
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.whise-single-estate-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.whise-single-estate-reference {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.whise-single-estate-status {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Galerie d'images */
.whise-single-estate-gallery {
    background: #000;
}

.whise-gallery-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.whise-gallery-thumbnails {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: #222;
}

.whise-gallery-thumbnail {
    flex: 1;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
}

.whise-gallery-thumbnail img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.whise-gallery-thumbnail:hover img {
    transform: scale(1.1);
}

/* Corps du bien unique */
.whise-single-estate-body {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    padding: 30px;
}

.whise-single-estate-main h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.whise-single-estate-description p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.whise-single-estate-features {
    margin-top: 30px;
}

.whise-features-list {
    list-style: none;
    padding: 0;
}

.whise-features-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    color: #555;
}

.whise-features-list li:last-child {
    border-bottom: none;
}

.whise-features-list strong {
    color: #2c3e50;
    display: inline-block;
    min-width: 180px;
}

/* Sidebar */
.whise-single-estate-sidebar > div {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.whise-single-estate-price-box {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.whise-price-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.whise-price-value {
    font-size: 36px;
    font-weight: 700;
}

.whise-single-estate-location-box h4,
.whise-single-estate-contact-box h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #2c3e50;
}

.whise-single-estate-location-box p {
    margin: 8px 0;
    font-size: 14px;
    color: #555;
}

.whise-single-estate-contact-box .whise-btn {
    margin-bottom: 10px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .whise-estates-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .whise-single-estate-body {
        grid-template-columns: 1fr;
    }
    
    .whise-gallery-main img {
        height: 300px;
    }
    
    .whise-single-estate-title {
        font-size: 24px;
    }
    
    .whise-estate-meta {
        flex-direction: column;
        gap: 8px;
    }
}
