/* Card Container */
.tn-card-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tn-card-item:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.tn-card-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.tn-card-content {
    padding: 16px;
}

/* 2. Badges: Chữ màu #edf8fa, Nền màu #47bfd5 */
.tn-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.tn-badge-teal {
    background-color: #47bfd5;
    color: #edf8fa;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* 3. Title */
.tn-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 6px 0;
    line-height: 1.3;
}

.tn-card-title a {
    color: #1a202c;
    text-decoration: none;
}

/* 4. Chi tiết địa điểm */
.tn-card-location-detail {
    color: #718096;
    font-size: 13px;
    margin-bottom: 10px;
}

/* 5. Thông số nhà (Bedrooms, Bathrooms, Floors, sqft) */
.tn-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #4a5568;
    margin-bottom: 12px;
}

.tn-card-specs span {
    display: inline-flex;
    align-items: center;
}

/* 6. Tiện ích: Chữ màu #ffefec, Nền màu #d96842 */
.tn-card-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.tn-amenity-chip {
    background-color: #d96842;
    color: #ffefec;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
}

/* 7. Đường gạch Dash */
.tn-card-divider {
    border-top: 1px dashed #cbd5e0;
    margin: 14px 0;
}

/* 8. Giá & Nút View Detail (#ff5634) */
.tn-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tn-card-price {
    font-size: 13px;
    color: #718096;
}

.tn-card-price .price-amount {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
}

.tn-btn-detail {
    background-color: #ff5634;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.tn-btn-detail:hover {
    background-color: #e04526;
}



/* Layout Danh sách Grid ngoài Trang Chủ */
.tn-card-grid {
    display: grid;
    gap: 24px;
    width: 100%;
    margin: 20px 0;
}

/* 3 cột trên Desktop */
.tn-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* 2 cột */
.tn-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Responsive cho Tablet & Mobile */
@media (max-width: 991px) {
    .tn-grid-cols-3, .tn-grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tn-grid-cols-3, .tn-grid-cols-2 {
        grid-template-columns: 1fr;
    }
}