﻿/* Reset cơ bản */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.destination-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9fafb 0%, #fff7ed 100%);
}

.container {
    max-width: 1263px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.badge-discover {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(to right, #eab308, #f97316);
    color: white;
    border-radius: 50px;
    margin-bottom: 16px;
    font-size: 14px;
}

.title {
    font-size: 40px;
    color: #111827;
    margin-bottom: 16px;
}

.subtitle {
    font-size: 18px;
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid */
.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

/* Card */
.destination-card {
    position: relative;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

    .destination-card:hover {
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    }

    .destination-card img {
        width: 100%;
        height: 100% !important;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .destination-card:hover img {
        transform: scale(1.1);
    }

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
}

/* Badges */
.badge-top {
    position: absolute;
    top: 16px;
    left: 16px;
}

.badge-status {
    padding: 8px 16px;
    border-radius: 50px;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.pink {
    background: linear-gradient(to right, #f43f5e, #fb7185);
}

.blue {
    background: linear-gradient(to right, #3b82f6, #06b6d4);
}

.green {
    background: linear-gradient(to right, #22c55e, #10b981);
}
.purple{
    background: linear-gradient(to right, #4A00E0, #8E2DE2);
}
.yellow{
    background: linear-gradient(to right,  #FFD200,#d3ce96);
}
/* Card Content */
.card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
}

.card-title {
    color: white;
    font-size: 24px;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.destination-card:hover .card-title {
    color: #facc15;
}

.card-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

/* Discover Button inside Card */
.btn-discover {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-discover:hover {
        background: white;
        color: #111827;
    }

/* Footer Action */
.footer-action {
    text-align: center;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: linear-gradient(to right, #eab308, #f97316);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-view-all:hover {
        box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
        transform: scale(1.05);
    }

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 30px;
    }

    .destination-grid {
        grid-template-columns: 1fr;
         
    /* Khoảng cách giữa 2 hàng */
         
    /* Căn giữa chữ */
        grid-template-columns: 1fr 1fr;
        align-items: center; /* Căn giữa theo chiều dọc */
        gap: 15px;           /* Khoảng cách giữa chữ và mũi tên */
        max-width: 500px;    /* Độ rộng tối đa của cụm chữ */
        margin: 20px auto;   /* Căn giữa cụm này ra giữa trang */
    }
    .destination-card{
        height: 200px;
    }
    .card-body{
        padding: 10px;
    }
    .card-title{
        font-size: 16px;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        display: -webkit-box;
        margin-bottom: 3px;
    }
    .card-text{
        font-size:14px;
        -webkit-line-clamp: 2;
    }
}
