/**
 * Recent Properties Grid Styles
 * 
 * Clean, modern grid matching Shield Theme design
 * Responsive: 3 columns desktop, 1 column mobile
 * 
 * @package Sokna
 * @since 1.0.0
 */

/* Section Container */
.section-recent-properties {
    padding: 80px 0;
    background: #F8FAFC;
}

.section-recent-properties .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Header */
.section-recent-properties .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-recent-properties .section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 12px 0;
}

.section-recent-properties .section-subtitle {
    font-size: 18px;
    color: #64748B;
    margin: 0;
}

/* Properties Grid */
.sokna-properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Property Card */
.sokna-property-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sokna-property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #00AEEF;
}

.sokna-property-card .property-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Property Image (Background-Image Method for Sharp Quality) */
.sokna-property-card .property-card-img {
    position: relative;
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px 16px 0 0; /* Match Shield Theme radius */
    display: block;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.sokna-property-card:hover .property-card-img {
    transform: scale(1.05);
}

/* Status Badge (Top Left) */
.sokna-property-card .property-status-badge {
    position: absolute;
    top: 16px;
    inset-inline-start: 16px;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.sokna-property-card .property-status-badge .status-label {
    display: block;
}

/* Sold/Rented Badge */
.sokna-status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 0, 0, 0.8);
    color: #fff;
    padding: 5px 12px;
    font-weight: bold;
    font-size: 12px;
    border-radius: 4px;
    z-index: 5;
    text-transform: uppercase;
}

[dir="rtl"] .sokna-status-badge {
    left: auto;
    right: 10px;
}

/* Price Badge (Top Right) */
.sokna-property-card .property-price-badge {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    background: rgba(0, 174, 239, 0.95);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.sokna-property-card .property-price-badge .price-value {
    display: block;
}

/* Property Content */
.sokna-property-card .property-content {
    padding: 24px;
}

.sokna-property-card .property-title {
    font-size: 20px;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sokna-property-card .property-location {
    font-size: 14px;
    color: #64748B;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sokna-property-card .property-location i {
    font-size: 16px;
    color: #00AEEF;
}

/* Property Meta */
.sokna-property-card .property-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid #E2E8F0;
}

.sokna-property-card .property-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #64748B;
}

.sokna-property-card .property-meta .meta-item i {
    font-size: 18px;
    color: #00AEEF;
}

.sokna-property-card .property-meta .meta-value {
    font-weight: 600;
    color: #1E293B;
}

/* Section Footer */
.section-recent-properties .section-footer {
    text-align: center;
    margin-top: 40px;
}

.sokna-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 40px;
    background: #00AEEF;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sokna-btn-primary:hover {
    background: #008cc0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.3);
}

/* No Results */
.section-recent-properties .no-results {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #64748B;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .sokna-properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .section-recent-properties {
        padding: 60px 0;
    }
    
    .section-recent-properties .section-title {
        font-size: 28px;
    }
    
    .section-recent-properties .section-subtitle {
        font-size: 16px;
    }
    
    .sokna-properties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sokna-property-card .property-content {
        padding: 20px;
    }
    
    .sokna-btn-primary {
        width: 100%;
        padding: 0 20px;
    }
}

/* RTL Support */
[dir="rtl"] .sokna-property-card .property-price-badge {
    inset-inline-end: auto;
    inset-inline-start: 16px;
}

