/* =========================================
   1. CẤU HÌNH & VARIABLES (Đồng bộ với Destination)
   ========================================= */
:root {
    --color-primary: #3b82f6; /* Xanh lá Emerald */
    --color-secondary: #3b82f6; /* Xanh dương */
    --color-text-main: #1f2937;
    --color-text-muted: #6b7280;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --container-width: 1280px;
}

.pkg-page-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* =========================================
   2. HEADER BANNER SECTION
   ========================================= */
.page-banner-area {
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5); /* Lớp phủ tối màu */
}
.page-banner-content {
    position: relative;
    z-index: 2;
    color: #fff;
}
.page-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.custom-breadcrumb {
    display: inline-flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 24px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}
.custom-breadcrumb a { color: #e5e7eb; text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.custom-breadcrumb a:hover { color: #fff; }
.custom-breadcrumb span { color: var(--color-primary); font-weight: 700; }

/* =========================================
   3. FILTER BAR WRAPPER
   (Tạo khung nổi để chứa file include của bạn)
   ========================================= */
.filter-bar-container {
    margin-top: -50px; /* Kỹ thuật Negative Margin để kéo lên đè banner */
    position: relative;
    z-index: 10;
    margin-bottom: 4rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1); /* Bóng đổ 3D */
    padding: 1.5rem;
    border: 1px solid #f3f4f6;
}

/* =========================================
   4. PACKAGE GRID & CARDS (Thiết kế mới)
   ========================================= */
.pkg-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}
/* Responsive Columns */
@media (min-width: 768px) { .pkg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pkg-grid { grid-template-columns: repeat(3, 1fr); } }

/* Card Item */
.pkg-item {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.pkg-item:hover {
    transform: translateY(-8px); /* Hiệu ứng bay lên khi hover */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Image Area */
.pkg-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.pkg-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.pkg-item:hover .pkg-img-wrap img { transform: scale(1.1); }

/* Nút Wishlist nổi trên ảnh */
.wishlist-icon {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 36px; height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #9ca3af;
    transition: 0.3s;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.wishlist-icon:hover { color: #ef4444; transform: scale(1.1); }

/* Content Area */
.pkg-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }

/* Price Row */
.pkg-price-row {
    display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 0.5rem;
}
.price-main { font-size: 1.4rem; font-weight: 800; color: var(--color-primary); }
.price-del { font-size: 0.9rem; text-decoration: line-through; color: #9ca3af; margin-bottom: 3px; }

/* Title */
.pkg-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--color-text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Giới hạn 2 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pkg-name a { text-decoration: none; color: inherit; transition: color 0.2s; }
.pkg-name a:hover { color: var(--color-primary); }

/* Location/Destination */
.pkg-location {
    font-size: 0.85rem; color: #6b7280; margin-bottom: 1.2rem;
    display: flex; align-items: center; gap: 5px;
}

/* Meta Footer (Icons) */
.pkg-meta-list {
    margin-top: auto; /* Luôn đẩy xuống đáy card */
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 500;
}
.pkg-meta-item { display: flex; align-items: center; gap: 6px; }
.pkg-meta-item i { color: var(--color-primary); font-size: 1rem; }

/* =========================================
   5. PAGINATION CUSTOMIZATION
   ========================================= */
.pagination-wrap { display: flex; justify-content: center; margin-bottom: 4rem; }
.pagination { display: flex; gap: 0.5rem; list-style: none; padding: 0; }
.page-item .page-link {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 0.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.page-item.active .page-link {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
}
.page-item .page-link:hover { background: #f9fafb; border-color: #d1d5db; }
.page-item.active .page-link:hover { background: #059669; }