/* SmartInvest Templates CSS */

/* Template Carousel */
.smartinvest-template-carousel .smartinvest-carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin: 20px 0;
}

.smartinvest-template-carousel .smartinvest-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
    padding: 10px 0;
}

.smartinvest-template-carousel .smartinvest-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 300px;
    max-width: 400px;
}

.smartinvest-carousel-prev,
.smartinvest-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.3s ease;
}

.smartinvest-carousel-prev:hover,
.smartinvest-carousel-next:hover {
    background: rgba(0,0,0,0.9);
}

.smartinvest-carousel-prev {
    left: 10px;
}

.smartinvest-carousel-next {
    right: 10px;
}

/* Template List */
.smartinvest-template-list .smartinvest-grid {
    display: block;
}

.smartinvest-template-list .smartinvest-card {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.smartinvest-template-list .smartinvest-card:hover {
    transform: translateY(-5px);
}

.smartinvest-template-list .smartinvest-card-image {
    flex: 0 0 250px;
    height: 200px;
}

.smartinvest-template-list .smartinvest-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.smartinvest-template-list .smartinvest-card-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.smartinvest-template-list .smartinvest-card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #333;
}

.smartinvest-template-list .smartinvest-card-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.smartinvest-template-list .smartinvest-card-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #007cba;
    margin-bottom: 10px;
}

.smartinvest-template-list .smartinvest-card-desc {
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Template Grid amélioré */
.smartinvest-template-grid .smartinvest-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.smartinvest-template-grid .smartinvest-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Responsive pour tous les templates */
@media (max-width: 768px) {
    .smartinvest-template-carousel .smartinvest-card {
        flex: 0 0 calc(50% - 10px);
        min-width: 250px;
    }
    
    .smartinvest-template-list .smartinvest-card {
        flex-direction: column;
    }
    
    .smartinvest-template-list .smartinvest-card-image {
        flex: none;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .smartinvest-template-carousel .smartinvest-card {
        flex: 0 0 calc(100% - 20px);
        min-width: 280px;
    }
    
    .smartinvest-carousel-prev,
    .smartinvest-carousel-next {
        padding: 10px 15px;
        font-size: 1.2rem;
    }
}

/* ===== TEMPLATES POUR DÉTAIL DE PROPRIÉTÉ ===== */

/* Template Modern (défaut) - utilise les styles par défaut */

/* Template Classic */
.smartinvest-template-classic .si-top-section {
    flex-direction: column;
    text-align: center;
}

.smartinvest-template-classic .si-info-column {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
}

.smartinvest-template-classic .si-property-title {
    font-family: 'Times New Roman', serif;
    font-size: 2.5rem;
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.smartinvest-template-classic .si-main-photo {
    border: 5px solid #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.smartinvest-template-classic .si-transaction-badge {
    background: linear-gradient(45deg, #007cba, #0056b3);
    box-shadow: 0 4px 15px rgba(0,124,186,0.3);
}

/* Template Minimal */
.smartinvest-template-minimal {
    background: #fff;
    box-shadow: none;
}

.smartinvest-template-minimal .si-top-section {
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.smartinvest-template-minimal .si-info-column {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.smartinvest-template-minimal .si-property-title {
    font-weight: 300;
    font-size: 2.8rem;
    color: #333;
    margin-bottom: 30px;
}

.smartinvest-template-minimal .si-price-display {
    background: transparent;
    color: #000;
    font-size: 2.2rem;
    font-weight: 300;
    padding: 0;
    text-align: left;
}

.smartinvest-template-minimal .si-main-photo {
    border-radius: 0;
    box-shadow: none;
}

.smartinvest-template-minimal .si-contact-column {
    background: #f8f9fa;
    border-left: 4px solid #007cba;
}

/* Template Magazine */
.smartinvest-template-magazine .si-top-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.smartinvest-template-magazine .si-info-column {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.smartinvest-template-magazine .si-property-title {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.smartinvest-template-magazine .si-location,
.smartinvest-template-magazine .si-rooms-display {
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.1);
}

.smartinvest-template-magazine .si-price-display {
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 2.5rem;
    border: 2px solid rgba(255,255,255,0.3);
}

.smartinvest-template-magazine .si-transaction-badge {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.smartinvest-template-magazine .si-main-photo {
    border: 3px solid white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* Responsive pour templates de détail */
@media (max-width: 768px) {
    .smartinvest-template-classic .si-top-section,
    .smartinvest-template-magazine .si-top-section {
        flex-direction: column;
        padding: 20px;
    }
    
    .smartinvest-template-minimal .si-property-title {
        font-size: 2.2rem;
    }
    
    .smartinvest-template-magazine .si-property-title {
        font-size: 2.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.smartinvest-card {
    animation: fadeInUp 0.6s ease forwards;
}

.smartinvest-card:nth-child(2) {
    animation-delay: 0.1s;
}

.smartinvest-card:nth-child(3) {
    animation-delay: 0.2s;
}

.smartinvest-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Animation pour les templates de détail */
.smartinvest-property-detail {
    animation: fadeInUp 0.8s ease forwards;
}

.smartinvest-property-detail .si-top-section {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

.smartinvest-property-detail .si-gallery-section {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.4s;
}

.smartinvest-property-detail .si-bottom-section {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.6s;
}
