/*
Name: 			Properties Custom CSS
Description: 	Extensiones para Real Estate usando variables de skin-real-estate.css
Theme Version:	12.1.0
Note: 			Variables centralizadas en skin-real-estate.css
*/

/* ========================================
   Property Cards - Extending Porto Shop Components
   ======================================== */

.shop .products .property-card {
    transition: var(--transition-smooth);
    border-radius: var(--border-radius3x);
    overflow: hidden;
    box-shadow: var(--shadow-modern);
}

.shop .products .property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-modern-hover);
}

.property-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.property-price-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-200));
    color: var(--light);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2;
}

.property-operation-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.operation-venta { background: #28a745; color: var(--light); }
.operation-alquiler { background: #17a2b8; color: var(--light); }
.operation-temporario { background: #fd7e14; color: var(--light); }

/* ========================================
   Property Features - Using Porto Grid System
   ======================================== */

.property-features {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
    flex-wrap: wrap;
}

.property-features .feature-item {
    font-size: 0.85rem;
    color: var(--default);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.property-features .feature-item i {
    color: var(--primary);
}

/* ========================================
   Filter Sidebar - Using Porto Sidebar Components
   ======================================== */

.filter-sidebar {
    background: var(--light);
    border-radius: var(--border-radius3x);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-modern);
}

.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.filter-badge {
    background: var(--primary);
    color: var(--light);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin: 0.25rem;
}

/* ========================================
   Property Details - Using Porto Gallery
   ======================================== */

.property-gallery {
    border-radius: var(--border-radius2x);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.main-gallery {
    height: 450px;
    position: relative;
    overflow: hidden;
}

.main-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.gallery-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--light);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Extending Porto thumbnail-gallery */
.thumbnail-gallery {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: var(--primary);
    transform: scale(1.05);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   Property Info Card - Using Porto Card Components
   ======================================== */

.property-info-card {
    background: var(--light);
    border-radius: var(--border-radius2x);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.property-price-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin: 1rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.feature-grid .feature-box {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.feature-grid .feature-box:hover {
    background: var(--primary);
    color: var(--light);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.feature-grid .feature-box:hover .feature-icon {
    color: var(--light);
}

/* ========================================
   WhatsApp Button - Brand Colors
   ======================================== */

.btn-whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: var(--light);
}

.btn-whatsapp:hover {
    background: #1da851;
    border-color: #1da851;
    color: var(--light);
}

/* ========================================
   Social Share - Extending Porto Social Components
   ======================================== */

.social-share {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.social-facebook { background: #1877f2; color: var(--light); }
.social-twitter { background: #1da1f2; color: var(--light); }
.social-email { background: #6c757d; color: var(--light); }
.social-copy { background: var(--primary); color: var(--light); }

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 991px) {
    .filter-sidebar {
        position: static !important;
        margin-bottom: 2rem;
    }

    .main-gallery {
        height: 300px;
    }

    .property-price-large {
        font-size: 2rem;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .property-features {
        flex-direction: column;
        gap: 0.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}
