/* dirmelk/amlak/relatedhome/relatedhome-style.css */

.relatedhome-section {
    background-color: #e7ecf5;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.relatedhome-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #0D3B66;
}

.relatedhome-header i {
    font-size: 24px;
}

.relatedhome-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
}

.relatedhome-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.relatedhome-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(13, 59, 102, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.relatedhome-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(13, 59, 102, 0.15);
}

.relatedhome-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.relatedhome-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F7F9FC;
    color: #6C7A89;
}

.relatedhome-no-image i {
    font-size: 48px;
}

.relatedhome-content {
    padding: 15px;
}

.relatedhome-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.relatedhome-badge-sale {
    background: #e8f5e9;
    color: #2e7d32;
}

.relatedhome-badge-rent {
    background: #fff3e0;
    color: #e65100;
}

.relatedhome-badge-mortgage_rent {
    background: #e3f2fd;
    color: #1565c0;
}

.relatedhome-badge-presale {
    background: #f3e5f5;
    color: #6a1b9a;
}

.relatedhome-title {
    font-size: 16px;
    font-weight: bold;
    color: #2C2C2C;
    margin: 8px 0;
    line-height: 1.4;
}

.relatedhome-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6C7A89;
    font-size: 13px;
    margin-bottom: 12px;
}

.relatedhome-location i {
    color: #F4A261;
}

.relatedhome-details {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F7F9FC;
}

.relatedhome-detail-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6C7A89;
    font-size: 13px;
}

.relatedhome-detail-item i {
    color: #0D3B66;
}

.relatedhome-price {
    font-size: 16px;
    font-weight: bold;
    color: #0D3B66;
}

/* Tablet */
@media (max-width: 1024px) {
    .relatedhome-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }
    
    .relatedhome-section {
        padding: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .relatedhome-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 12px;
    }
    
    .relatedhome-section {
        padding: 15px;
    }
    
    .relatedhome-header h3 {
        font-size: 18px;
    }
    
    .relatedhome-image {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .relatedhome-grid {
        grid-template-columns: 1fr;
    }
    
    .relatedhome-image {
        height: 180px;
    }
}
