/* ========================================
   LATEST PROPERTIES SECTION
   Premium property cards with elegant design
   ======================================== */

/* Section Container */
.latest-properties-section {
    position: relative;
    background: var(--bg-dark);
    padding: var(--space-3xl) 0;
    overflow: hidden;
}

/* Content Container */
.latest-properties-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 2;
}

/* Section Header */
.latest-properties-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    opacity: 0;
    transform: translateY(30px);
}

.latest-properties-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: var(--font-bold);
    color: var(--text-white);
    margin-bottom: var(--space-md);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.latest-properties-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.125rem);
    color: var(--text-gray);
    font-weight: var(--font-regular);
}

/* Properties Grid - Fixed alignment */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
    align-items: stretch;
}

/* Property Card - Fixed alignment */
.property-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Simple hover effect - border color change */
.property-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

/* Image Container */
.property-image-container {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: var(--bg-darker);
    flex-shrink: 0;
}

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

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

/* Property Badges */
.property-badges {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    right: var(--space-md);
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.badge-featured {
    background: var(--primary-color);
    color: var(--text-white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
}

.badge-size {
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    backdrop-filter: blur(10px);
}

/* Property Content */
.property-content {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-title {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    font-weight: var(--font-semibold);
    color: var(--text-white);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

/* Location with icon */
.property-location {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-gray);
    font-size: clamp(0.813rem, 1.2vw, 0.875rem);
    margin-bottom: var(--space-md);
}

.property-location::before {
    content: '📍';
    font-size: var(--text-sm);
}

/* Property Details */
.property-details {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.property-type {
    color: var(--text-gray);
    font-size: clamp(0.75rem, 1.1vw, 0.813rem);
    display: flex;
    flex-direction: column;
}

.property-type-value {
    color: var(--text-white);
    font-weight: var(--font-medium);
    font-size: clamp(0.875rem, 1.3vw, 0.938rem);
    margin-top: 2px;
}

/* Property Price */
.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: var(--space-md);
}

.property-price {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: var(--font-bold);
    color: var(--text-white);
    line-height: 1.2;
    transition: color 0.3s ease; /* Smooth color transition on hover */
}

.property-price-label {
    display: block;
    font-size: clamp(0.688rem, 1vw, 0.75rem);
    color: var(--text-gray);
    font-weight: var(--font-regular);
    margin-bottom: 4px;
}

/* Contact Button */
.property-contact-btn {
    background: var(--primary-color);
    color: var(--text-white);
    padding: clamp(0.5rem, 1vw, 0.625rem) clamp(0.875rem, 1.5vw, 1rem);
    border-radius: var(--radius-md);
    font-size: clamp(0.813rem, 1.2vw, 0.875rem);
    font-weight: var(--font-semibold);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
}

.property-contact-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* View All Button */
.view-all-cta {
    text-align: center;
    margin-top: var(--space-3xl);
    opacity: 0;
    transform: translateY(30px);
}

.view-all-btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-white);
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    text-transform: capitalize;
    transition: all var(--transition-base);
}

.view-all-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
        color: var(--text-white);

    box-shadow: 0 10px 30px rgba(253, 52, 19, 0.4);
}

/* Animation Classes */
.latest-properties-animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

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

@media (max-width: 768px) {
    .latest-properties-section {
        padding: var(--space-2xl) 0;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .latest-properties-title {
        font-size: 1.5rem;
    }
    
    .property-image-container {
        height: 200px;
    }
    
    .property-details {
        flex-wrap: wrap;
        gap: var(--space-md);
    }
    
    .property-footer {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }
    
    .property-contact-btn {
        width: 100%;
        text-align: center;
    }
}