﻿.list-banner {
    background: linear-gradient(135deg, #0f2540 0%, #1c3d5e 60%, #1a4a6e 100%);
    padding: 120px 0 70px;
    color: white;
    position: relative;
    overflow: hidden;
}

    .list-banner::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 500px;
        height: 500px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(243,161,0,0.12) 0%, transparent 70%);
        pointer-events: none;
    }

    .list-banner::after {
        content: '';
        position: absolute;
        bottom: -30px;
        left: 5%;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
        pointer-events: none;
    }

    .list-banner .divider {
        width: 50px;
        height: 3px;
        background: linear-gradient(90deg, #f3a100, #ffd166);
        border-radius: 2px;
        margin: 0 auto 20px;
    }

    .list-banner h1 {
        font-family: 'Playfair Display', serif;
        font-size: 3rem;
        letter-spacing: -0.5px;
    }

    .list-banner .lead {
        color: rgba(255,255,255,0.75);
        font-size: 1.05rem;
    }

.filter-section {
    position: relative;
    top: 0;
    z-index: 900;
    background-color: transparent !important;
}

.heritage-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    min-height: 430px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

    .heritage-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 40px rgba(28,61,94,0.13);
    }

.card-img-wrapper {
    position: relative;
    height: 210px;
    overflow: hidden;
    flex-shrink: 0;
}

    .card-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.heritage-card:hover .card-img-wrapper img {
    transform: scale(1.07);
}

.badge-loai {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(243,161,0,0.92);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.card-img-overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(15,37,64,0.35), transparent);
}

.card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1c3d5e;
    margin-bottom: 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-location {
    font-size: 0.78rem;
    color: #f3a100;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .card-location i {
        font-size: 0.72rem;
    }

.card-text {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; 
    margin-bottom: 0;
    flex-shrink: 0;
}

.card-footer-custom {
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

    .card-footer-custom .btn-detail {
        font-size: 0.78rem;
        font-weight: 700;
        color: #1c3d5e;
        display: flex;
        align-items: center;
        gap: 5px;
        text-decoration: none;
        transition: color 0.2s, gap 0.2s;
    }

        .card-footer-custom .btn-detail:hover {
            color: #f3a100;
            gap: 8px;
        }

@media (min-width: 768px) {
    .heritage-card.d-flex {
        flex-direction: row !important;
        height: 220px;
        min-height: 220px;
    }

        .heritage-card.d-flex .card-img-wrapper {
            width: 300px;
            height: 100%;
            flex-shrink: 0;
            border-radius: 0;
        }

        .heritage-card.d-flex .card-body {
            padding: 22px 28px;
            justify-content: center;
            overflow: hidden;
        }

        .heritage-card.d-flex .card-title {
            font-size: 1.2rem;
            -webkit-line-clamp: 1;
        }

        .heritage-card.d-flex .card-text {
            -webkit-line-clamp: 2;
        }
}

.total-badge {
    background: rgba(28,61,94,0.08);
    color: #1c3d5e;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-back-home {
    background: transparent;
    border: 2px solid #1c3d5e;
    color: #1c3d5e;
    border-radius: 30px;
    padding: 10px 28px;
    font-weight: 700;
    transition: 0.3s;
    font-size: 0.9rem;
}

    .btn-back-home:hover {
        background: #1c3d5e;
        color: white;
    }

.skeleton-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    height: 340px;
}

.skeleton-img {
    height: 210px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}

.skeleton-body {
    padding: 18px 20px;
}

.skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    margin-bottom: 10px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}
