/* Phần Danh sách Bất động sản nổi bật */
.section {
    padding: 80px 10%;
    background: var(--light-bg);
}

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

.section-header h2 {
    font-size: 36px;
    color: var(--primary-red);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-header p {
    color: #666;
    font-size: 16px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.card-content {
    padding: 25px;
}

.card-price {
    color: var(--primary-red);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.card-info {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.btn-outline {
    display: block;
    text-align: center;
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--primary-red);
    color: white;
}

/* Giao diện mô tả ngắn trên thẻ Card */
.card-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;

    /* Hiệu ứng giới hạn văn bản tối đa 3 dòng và thêm dấu 3 chấm */
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================
   HUY HIỆU NGÔI SAO NỔI BẬT (FEATURED BADGE)
   ========================================= */

/* Đảm bảo thẻ card làm gốc tọa độ cho ngôi sao */
.card {
    position: relative; 
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #f39c12; /* Màu vàng cam sang trọng */
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 5; /* Đảm bảo ngôi sao luôn nằm đè lên trên ảnh */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    
    /* Hiệu ứng đập nhẹ nhàng thu hút sự chú ý */
    animation: pulseStar 2s infinite;
}

@keyframes pulseStar {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}