/* General */
.rea-archive-wrapper {
    font-family: 'Tajawal', sans-serif;
    background: #f4f6f8;
    padding: 30px 15px;
}

.rea-archive-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Brand Title (Updated) */
.rea-brand-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 25px;
    padding: 15px;
    
    /* الستايل الجديد */
    background: linear-gradient(135deg, #2F2F2F, #3A3A3A);
    color: #FFFFFF;
    border-bottom: 3px solid #C9A24D;
    border-radius: 25px;
    
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Search Bar */
.rea-search-bar {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}
.rea-search-bar select, .rea-search-bar input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-width: 200px;
    flex: 1; 
}
.rea-search-bar button {
    background: #BFA26B; color: #fff; border:none; padding: 10px 25px; border-radius: 6px; cursor: pointer;
    font-weight: bold;
}
.rea-search-bar button:hover { background: #a28856; }

/* Grid */
.rea-apartments-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Card Styling */
.rea-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}
.rea-card:hover { transform: translateY(-5px); }

/* Image Container */
.rea-card-img-link {
    display: block;
    position: relative; 
    width: 100%;
    height: 280px; 
    overflow: hidden; 
}

.rea-card-image {
    width: 100%;
    height: 100%;       
    object-fit: cover;  
    display: block;
}

/* Price Overlay - Fixed at VERY bottom */
.rea-price-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(35, 35, 35, 0.85); 
    color: #fff;
    padding: 8px 15px;
    text-align: right;
    font-weight: bold;
    font-size: 15px;
    z-index: 5;
    box-sizing: border-box;
    line-height: 1.4;
}

/* Badge (Default Gold) */
.rea-badge {
    position: absolute; top: 15px; right: 15px;
    background: #BFA26B; /* Default: Gold */
    color: #fff; padding: 5px 12px;
    border-radius: 20px; font-size: 12px; font-weight: bold;
    z-index: 6;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Badge (Rented: Red) */
.rea-badge.rented {
    background: #e74c3c !important; /* Red */
}

/* Body */
.rea-card-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }

/* Header - Title Aligned Right */
.rea-head { 
    display: flex; 
    justify-content: flex-start; 
    align-items: center; 
    margin-bottom: 15px; 
}
.rea-head h3 { margin: 0; font-size: 16px; color: #333; }

/* Features Icons */
.rea-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.rea-features span {
    font-size: 13px;
    color: #666;
    background: #f9f9f9;
    padding: 5px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.rea-features i { color: #BFA26B; }

.rea-loc { color: #888; font-size: 13px; margin-bottom: 15px; }

/* WhatsApp Button */
.rea-wa-btn {
    margin-top: auto;
    background: #BFA26B; 
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: block;
    transition: background 0.3s;
}
.rea-wa-btn:hover { background: #a28856; color: #fff; }