/* ====== Properties Section Styles ====== */

/* Main Container */
.modern-properties-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9f6f0 0%, #ffffff 50%, #fdfcf8 100%);
    position: relative;
    overflow: hidden;
}

.modern-properties-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.8" fill="%23bfa76a" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.modern-properties-section .container {
    position: relative;
    z-index: 2;
}

/* Properties Grid Layout */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Modern Property Card */
.modern-property-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(191, 167, 106, 0.1);
    position: relative;
}

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

/* Property Image Wrapper */
.property-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

/* Property Status Badge */
.property-status {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #5e936c 0%, #5e936c 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 2px 10px rgba(191, 167, 106, 0.3);
}

/* Property Overlay */
.property-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-property-card:hover .property-overlay {
    opacity: 1;
}

/* Overlay Actions */
.overlay-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: #5e936c;
    color: white;
    transform: scale(1.1);
}

.action-btn i {
    font-size: 18px;
}

/* Property Info */
.property-info {
    padding: 24px;
}

.property-title {
    font-family: "Museo Moderno", sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #23262f;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Property Location */
.property-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.property-location i {
    color: #5e936c;
    font-size: 16px;
}

/* Property Features */
.property-features {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
}

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

.feature-item i {
    color: #5e936c;
    font-size: 16px;
}

.property-price {
    color: #23262f;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Property Footer */
.property-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
}

.view-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #5e936c 0%, #5e936c 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.view-details-btn:hover {
    background: linear-gradient(135deg, #5e936c 0%, #5e936c 100%);
    transform: translateX(4px);
    color: white;
    text-decoration: none;
}

.view-details-btn i {
    transition: transform 0.3s ease;
}

.view-details-btn:hover i {
    transform: translateX(4px);
}

/* Modern View All Button */
.btn-view-all-modern {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #5e936c 0%, #5e936c 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);  
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-view-all-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    transition: left 0.6s ease;
}

.btn-view-all-modern:hover::before {
    left: 100%;
}

.btn-view-all-modern:hover {
    background: linear-gradient(135deg, #5e936c 0%, #5e936c 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(191, 167, 106, 0.4);
    color: white;
    text-decoration: none;
}

.btn-view-all-modern i:first-child {
    font-size: 20px;
}

.btn-view-all-modern i:last-child {
    transition: transform 0.3s ease;
}

.btn-view-all-modern:hover i:last-child {
    transform: translateX(4px);
}

/* Animation Classes */
.modern-property-card.animate-in {
    opacity: 1 !important;
    transform: translateY(0px) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-properties-section {
        padding: 60px 0;
    }

    .properties-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .modern-property-card {
        max-width: 100%;
        margin: 0 auto;
    }

    .property-image-wrapper {
        height: 200px;
    }

    .property-info {
        padding: 20px;
    }

    .btn-view-all-modern {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .modern-properties-section {
        padding: 40px 0;
    }

    .properties-grid {
        gap: 1rem;
    }

    .property-image-wrapper {
        height: 180px;
    }

    .property-info {
        padding: 16px;
    }

    .property-title {
        font-size: 1.1rem;
    }

    .property-features {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .btn-view-all-modern {
        padding: 12px 24px;
        font-size: 0.9rem;
        gap: 8px;
    }
}
