/* Properties Component Styles */
.properties-section {
    padding: 80px 0;
    background-color: var(--bg-soft);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 18px;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.property-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.property-image {
    position: relative;
    aspect-ratio: 1 / 1; /* Keep it square */
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.property-price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
}

.property-info {
    padding: 20px;
}

.prop-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.prop-location {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.prop-location i {
    color: var(--primary-color);
    margin-right: 5px;
}

.prop-features {
    display: flex;
    gap: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.prop-features span {
    font-size: 13px;
    color: var(--text-muted);
}

.prop-features i {
    color: var(--primary-color);
    margin-right: 3px;
}

.view-all-wrapper {
    text-align: center;
    margin-top: 50px;
}

.view-all-btn {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition);
}

.view-all-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 layout for tablets */
    }
}

@media (max-width: 768px) {
    .properties-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .properties-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 layout for mobile as requested */
        gap: 15px;
    }
    
    .property-info {
        padding: 12px;
    }
    
    .prop-title {
        font-size: 16px;
    }
    
    .property-price {
        padding: 5px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .properties-grid {
        gap: 10px;
    }
    
    .prop-features {
        display: none; /* Hide features on very small screens to keep layout clean */
    }
}
