:root {
    /* Tone màu StayEasy */
    --primary-color: #2563eb; /* Xanh Royal */
    --primary-hover: #1d4ed8; 
    --secondary-color: #f43f5e; /* Đỏ San Hô */
    --secondary-hover: #e11d48;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
}

body {
    background-color: var(--bg-light);
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    font-size: 14px;
    -webkit-font-smoothing: antialiased; /* Giúp font chữ sắc nét hơn trên màn hình */
}

h1 { font-size: 1.8rem; } h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; } h4 { font-size: 1.1rem; } h5 { font-size: 1rem; }

/* =========================================
   FIX LỖI VIỀN XANH KHI CLICK (FOCUS)
   ========================================= */
input:focus, select:focus, textarea:focus, button:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Tùy chỉnh dropdown (select) để nhìn mượt hơn */
select {
    cursor: pointer;
}
select option {
    background: #fff;
    color: var(--text-dark);
    padding: 10px;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar-custom {
    background-color: transparent !important;
    position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important;
    z-index: 9999 !important;
    box-shadow: none !important; padding-top: 15px;
    transition: all 0.3s ease-in-out;
}
.navbar-custom .navbar-brand {
    color: white !important; text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px;
}
.navbar-custom .nav-link {
    color: white !important; text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    font-weight: 600;
}
.navbar-custom .nav-link:hover { color: #cbd5e1 !important; transform: translateY(-1px); }

.btn-nav-login {
    background: rgba(255,255,255,0.15); color: white;
    border-radius: 8px; padding: 8px 18px; font-weight: bold;
    backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.2);
}
.btn-nav-login:hover { background: rgba(255,255,255,0.25); }

.btn-nav-register {
    background: var(--primary-color); color: white;
    border-radius: 8px; padding: 8px 18px; font-weight: bold;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}
.btn-nav-register:hover { background: var(--primary-hover); transform: translateY(-1px); }

/* =================================================================
   LỚP ĐẶC TRỊ KHẮC PHỤC LỖI: BIẾN NAVBAR THÀNH THANH TRẮNG CHỮ ĐEN KHI CUỘN 
   ================================================================= */
.navbar-custom.navbar-scrolled {
    background-color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08) !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* Ép logo chữ thương hiệu chuyển sang màu đen tinh tế tương phản cao */
.navbar-custom.navbar-scrolled .navbar-brand {
    color: #0f172a !important;
    text-shadow: none !important;
}

/* Ép các mục menu chữ chuyển sang màu đen thanh lịch giống ảnh mẫu */
.navbar-custom.navbar-scrolled .nav-link {
    color: #0f172a !important;
    text-shadow: none !important;
}

.navbar-custom.navbar-scrolled .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Ép nút Đăng nhập đổi tông nền tối dịu khi cuộn trên nền trắng */
.navbar-custom.navbar-scrolled .btn-nav-login {
    background: rgba(15, 23, 42, 0.05) !important;
    color: #0f172a !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
}

.navbar-custom.navbar-scrolled .btn-nav-login:hover {
    background: rgba(15, 23, 42, 0.1) !important;
}

/* Đồng bộ nút Toggler trên mobile đổi màu */
.navbar-custom.navbar-scrolled .navbar-toggler {
    color: #0f172a !important;
    border-color: #334155 !important;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.2) 100%),
                url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?q=80&w=1920&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    padding: 140px 0 80px 0; margin-bottom: 0px; min-height: 550px; position: relative;
}
@media (max-width: 767.98px) {
   .hero-section {
      background-attachment: scroll;
   }
}

/* TABS TÌM KIẾM */
.search-tabs {
    display: flex; gap: 15px; margin-bottom: 20px;
}
.search-tabs .tab-item {
    color: white; font-weight: 600; cursor: pointer;
    padding: 10px 16px; border-radius: 8px; transition: 0.3s;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
}
.search-tabs .tab-item:hover { background: rgba(255,255,255,0.15); }
.search-tabs .tab-item.active { 
    background: var(--primary-color); 
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.search-bar-container {
    background: white;
    border-radius: 16px; 
    padding: 12px;
    display: flex; align-items: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
/* Hiệu ứng thanh tìm kiếm phát sáng nhẹ khi click vào nhập liệu */
.search-bar-container:focus-within {
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

.search-input-group {
    display: flex; align-items: center; padding: 5px 15px;
    border-right: 1px solid #e2e8f0; flex: 1;
    transition: background 0.2s; border-radius: 8px;
}
.search-input-group:hover { background: #f8fafc; }
.search-input-group:last-child { border-right: none; }
.search-input-group i { color: var(--primary-color); font-size: 1.3rem; margin-right: 12px; }
.search-input-group input, .search-input-group select {
    border: none; outline: none; width: 100%; font-size: 14px; color: var(--text-dark); background: transparent; font-weight: 500;
}
.search-input-group input::placeholder { color: #94a3b8; font-weight: normal; }
.search-label { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; font-weight: 600; }

.btn-search-hero {
    background-color: var(--secondary-color); color: white;
    border: none; border-radius: 12px; 
    width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; cursor: pointer; transition: 0.3s;
    box-shadow: 0 4px 10px rgba(244, 63, 94, 0.3);
}
.btn-search-hero:hover { background-color: var(--secondary-hover); transform: scale(1.05); }

/* =========================================
   ROOM CARD
   ========================================= */
.room-card { 
    position: relative; border-radius: 16px; transition: all 0.3s ease; 
    background: #fff; border: 1px solid #f1f5f9; height: 100%; display: flex; flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}
.room-card:hover { 
    transform: translateY(-6px); 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important; 
}
.room-card .card-img-top { 
    width: 100%; height: 200px !important; object-fit: cover !important; border-radius: 16px 16px 0 0; 
}
.badge-type {
    position: absolute; top: 12px; left: 12px;
    background-color: var(--primary-color); color: white; padding: 5px 12px; 
    border-radius: 8px; font-weight: 600; font-size: 12px; z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-primary-custom {
    background-color: var(--primary-color); border-color: var(--primary-color);
    color: white; border-radius: 10px; font-weight: 600; padding: 8px 0;
}
.btn-primary-custom:hover { background-color: var(--primary-hover); color: white; }

/* =========================================
   TRANG CHI TIẾT SẢN PHẨM (DETAIL PAGE)
   ========================================= */
.gallery-container { border-radius: 16px; overflow: hidden; }
.img-main { width: 100%; height: 410px; object-fit: cover; cursor: pointer; transition: 0.3s; }
.img-sub { width: 100%; height: 200px; object-fit: cover; cursor: pointer; transition: 0.3s; }
.img-main:hover, .img-sub:hover { filter: brightness(0.85); }

.booking-card {
    border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    background: #fff; position: sticky; top: 90px; 
}
.price-display { color: var(--secondary-color); font-weight: 800; font-size: 1.6rem; }
.btn-booking-submit {
    background-color: var(--primary-color); border: none; color: white; font-weight: bold; border-radius: 10px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.btn-booking-submit:hover { background-color: var(--primary-hover); color: white; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4); }

/* =========================================
   DASHBOARD ADMIN CHUYÊN NGHIỆP TỪNG CENTIMET
   ========================================= */
.admin-navbar { 
    background-color: #0f172a !important; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    padding: 15px 0;
}
.admin-navbar .navbar-brand { font-size: 1.4rem; font-weight: 800; color: #fff; letter-spacing: 0.5px; }

/* Thẻ thống kê Gradient */
.admin-stat-card-1 { 
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%); 
    color: white; border: none; border-radius: 16px;
    box-shadow: 0 10px 25px rgba(37,99,235,0.3);
}
.admin-stat-card-2 { 
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); 
    color: white; border: none; border-radius: 16px;
    box-shadow: 0 10px 25px rgba(245,158,11,0.3);
}

/* Khu vực Tabs hiện đại */
.admin-tabs { border-bottom: none; margin-bottom: 20px; }
.admin-tabs .nav-link { 
    color: #5b7599; font-weight: 600; border-radius: 10px; 
    margin-right: 10px; padding: 10px 24px; transition: 0.3s;
    border: 1px solid transparent; background: transparent;
}
.admin-tabs .nav-link:hover { background: #f1f5f9; color: #0f172a; }
.admin-tabs .nav-link.active { 
    background: #2563eb; color: white; 
    box-shadow: 0 6px 15px rgba(37,99,235,0.3); border-color: #2563eb;
}
.admin-tabs .nav-link.tab-danger.active { 
    background: #f43f5e; color: white;
    box-shadow: 0 6px 15px rgba(244,63,94,0.3); border-color: #f43f5e;
}

/* Bảng dữ liệu (Table) Xịn xò */
.admin-table-card { 
    border: none; box-shadow: 0 10px 35px rgba(0,0,0,0.06); 
    border-radius: 16px; overflow: hidden; background: #fff;
}
.table-custom { margin-bottom: 0; }
.table-custom thead th { 
    background-color: #f8fafc; color: #64748b; font-weight: 700; 
    text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px; 
    border-bottom: 1px solid #e2e8f0; padding: 18px 20px; border-top: none;
}
.table-custom tbody td { 
    padding: 16px 20px; border-bottom: 1px solid #f1f5f9; 
    vertical-align: middle; color: #334155; font-weight: 500;
}
.table-custom tbody tr:hover { background-color: #f8fafc; }

/* Badge và Nút thao tác trong bảng */
.badge-soft-primary { background: rgba(37,99,235,0.1); color: #2563eb; padding: 6px 12px; border-radius: 8px; font-weight: 700; }
.badge-soft-warning { background: rgba(245,158,11,0.1); color: #d97706; padding: 6px 12px; border-radius: 8px; font-weight: 700; }
.badge-soft-success { background: rgba(16,185,129,0.1); color: #059669; padding: 6px 12px; border-radius: 8px; font-weight: 700; }
.badge-soft-danger { background: rgba(244,63,94,0.1); color: #e11d48; padding: 6px 12px; border-radius: 8px; font-weight: 700; }

.btn-action { 
    width: 32px; height: 32px; padding: 0; border-radius: 8px; 
    display: inline-flex; align-items: center; justify-content: center; 
    background: #f1f5f9; color: #64748b; border: none; transition: 0.2s;
    margin-right: 5px;
}
.btn-action:hover { transform: scale(1.1); }
.btn-edit-act:hover { background: #2563eb; color: white; }
.btn-del-act:hover { background: #f43f5e; color: white; }
.btn-accept-act:hover { background: #10b981; color: white; }

/* =========================================
   TRANG KHÁM PHÁ (EXPLORE PAGE)
   ========================================= */
.explore-hero {
    background: linear-gradient(rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.7)),
                url('https://images.unsplash.com/photo-1559592413-7cec4d0cae2b?q=80&w=1920&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    height: 500px;
    margin-bottom: 50px;
}
@media (max-width: 767.98px) {
   .explore-hero {
      background-attachment: scroll;
   }
}

/* Thẻ Điểm đến */
.destination-card {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    height: 280px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.destination-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.destination-card:hover img { transform: scale(1.08); }
.destination-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    padding: 40px 20px 20px; color: white; pointer-events: none;
}

/* Thẻ Phong cách du lịch */
.category-card {
    background: white; border-radius: 16px; padding: 25px 15px;
    text-align: center; transition: all 0.3s ease;
    border: 1px solid #f1f5f9; cursor: pointer;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37,99,235,0.1);
    border-color: rgba(37,99,235,0.3);
}
.category-icon {
    width: 65px; height: 65px; background: rgba(37,99,235,0.1);
    color: var(--primary-color); border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin-bottom: 15px; transition: 0.3s;
}
.category-card:hover .category-icon {
    background: var(--primary-color); color: white;
}

/* Banner Khuyến mãi */
.promo-banner {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #fda4af 100%);
    border-radius: 20px; color: white; padding: 40px;
    position: relative; overflow: hidden; box-shadow: 0 15px 30px rgba(244,63,94,0.3);
}
.promo-banner::after {
    content: "\F13E"; /* Icon máy bay của Bootstrap */
    font-family: "bootstrap-icons"; position: absolute;
    right: -20px; bottom: -40px; font-size: 12rem; opacity: 0.1; transform: rotate(-15deg);
}

/* =========================================
   TỐI ƯU GIAO DIỆN MOBILE (ĐIỆN THOẠI & TABLET)
   ========================================= */
@media (max-width: 768px) {
    /* Kéo dài khung tìm kiếm và xếp dọc các thành phần */
    .search-bar-container {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }

    /* Sửa các ô nhập liệu: Bỏ vạch kẻ dọc, thêm vạch kẻ nang */
    .search-input-group {
        border-right: none !important;
        border-bottom: 1px solid #f1f5f9;
        padding: 12px 0;
        width: 100%;
    }
    
    /* Bỏ vạch ngang ở ô nhập liệu cuối cùng */
    .search-input-group:nth-of-type(3) {
        border-bottom: none;
        padding-bottom: 5px;
    }

    /* Phóng to nút Tìm kiếm bằng 100% chiều ngang */
    .search-bar-container .px-2 {
        width: 100%;
        padding: 0 !important;
        margin-top: 10px;
    }
    .btn-search-hero {
        width: 100%;
        border-radius: 12px;
        height: 48px;
    }

    /* Fix ô Ngày tháng bị tràn: Chia tỷ lệ cho 2 ô */
    .date-input-custom {
        width: 46% !important;
        font-size: 13px;
    }

    /* Xử lý khung Tabs bị đè nhau: Cho phép vuốt ngang */
    .search-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start !important;
        padding-bottom: 8px;
    }
    
    /* Làm đẹp thanh cuộn ngang của Tabs */
    .search-tabs::-webkit-scrollbar {
        height: 3px;
    }
    .search-tabs::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.4);
        border-radius: 10px;
    }
    
    /* Thu nhỏ chữ tiêu đề trên Mobile cho cân đối */
    .hero-section h1 {
        font-size: 1.8rem !important;
    }
}
/* =========================================
   TAB THÀNH PHỐ (STYLE TRAVELOKA)
   ========================================= */
.city-tabs-container {
    border-bottom: 1px solid #e2e8f0;
}
.city-tabs {
    gap: 12px;
}
.city-tabs .nav-link {
    color: #64748b;
    background: #f8fafc;
    border-radius: 20px;
    padding: 6px 20px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid #cbd5e1;
}
.city-tabs .nav-link:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.city-tabs .nav-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(37,99,235,0.3);
}

/* Tinh chỉnh thanh cuộn ngang cho Tab */
.city-tabs::-webkit-scrollbar {
    height: 4px;
}
.city-tabs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
/* =========================================
   BANNER QUẢNG CÁO & PHÂN TRANG (PAGINATION)
   ========================================= */
.promo-banner-small {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    border-radius: 20px;
    height: 120px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    color: white;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
}
.promo-banner-small::after {
    content: "\F3F3"; /* Icon hộp quà */
    font-family: "bootstrap-icons";
    position: absolute;
    right: 20px;
    font-size: 8rem;
    opacity: 0.1;
    transform: rotate(15deg);
}
.page-item.active .page-link {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}
.page-link {
    color: var(--text-dark);
    font-weight: 600;
    border-radius: 8px;
    margin: 0 3px;
    border: 1px solid #e2e8f0;
}
.page-link:hover {
    background-color: #f1f5f9;
}
.badge-soft-primary {
    background-color: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border: none;
    padding: 5px 12px;
    font-weight: 600;
}
.badge-soft-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: none;
    padding: 5px 12px;
    font-weight: 600;
}
.admin-table-card {
    border-radius: 12px;
    overflow: hidden;
}
/* Làm mượt thanh phân trang */
.pagination .page-link {
    border: 1px solid #edf2f7;
    color: #4a5568;
    margin: 0 2px;
    border-radius: 6px !important;
}
.pagination .page-item.active .page-link {
    background-color: #2563eb;
    border-color: #2563eb;
}
/* =========================================
   ADMIN DASHBOARD SAAS STYLE
   ========================================= */
.tracking-wider { letter-spacing: 0.05em; }
.tracking-tight { letter-spacing: -0.03em; }
.cursor-pointer { cursor: pointer; }

/* Menu Trái */
#adminSidebarMenu .nav-link {
    color: #64748b;
    transition: all 0.3s ease;
}
#adminSidebarMenu .nav-link:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}
#adminSidebarMenu .nav-link.active {
    background-color: rgba(37, 99, 235, 0.1) !important;
    color: var(--primary-color) !important;
}

/* Các thẻ Badge mềm */
.badge-soft-primary { background-color: rgba(37, 99, 235, 0.1); color: #2563eb; padding: 6px 12px; font-weight: 700; border-radius: 6px;}
.badge-soft-success { background-color: rgba(16, 185, 129, 0.1); color: #10b981; padding: 6px 12px; font-weight: 700; border-radius: 6px;}
.badge-soft-warning { background-color: rgba(245, 158, 11, 0.1); color: #d97706; padding: 6px 12px; font-weight: 700; border-radius: 6px;}
.badge-soft-danger { background-color: rgba(244, 63, 94, 0.1); color: #e11d48; padding: 6px 12px; font-weight: 700; border-radius: 6px;}

/* Bảng sọc ngang mờ */
.table-striped-custom tbody tr:nth-of-type(odd) {
    background-color: rgba(248, 250, 252, 0.5);
}
.table-custom td {
    padding: 16px 10px;
    color: #334155;
}

/* Phân trang Admin */
.pagination .page-link {
    border: none;
    color: #475569;
    font-weight: 600;
}
.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
}
/* Hiệu ứng nổi Card khi đưa chuột vào */
.room-card-hover {
    transition: all 0.3s ease-in-out;
    border: 1px solid transparent !important;
}

/* Đổ bóng màu xanh nhạt và nảy thẻ lên */
.room-card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15) !important; 
    border-color: rgba(37, 99, 235, 0.2) !important; 
    z-index: 2;
}

/* Hiệu ứng zoom ảnh mượt mà bên trong thẻ */
.room-card-hover .position-relative {
    overflow: hidden; /* Giữ ảnh không bị tràn ra ngoài viền bo góc */
}

.room-card-hover img.card-img-top {
    transition: transform 0.5s ease;
}

.room-card-hover:hover img.card-img-top {
    transform: scale(1.08); /* Phóng to ảnh lên 8% */
}

/* =========================================================
   TỐI ƯU THU NHỎ KÍCH THƯỚC CỤM AVATAR VÀ CHỮ DROPDOWN USER
   ========================================================= */
.navbar-custom .user-dropdown img {
    width: 28px !important;
    height: 28px !important;
}
.navbar-custom .user-dropdown span {
    font-size: 13px !important;
    font-weight: 600 !important;
}
.navbar-custom .user-dropdown .dropdown-toggle {
    padding: 6px 12px !important;
}

/* Thu nhỏ kích thước thanh chuyển trang (phân trang) */
.pagination .page-link {
    padding: 6px 11px !important;
    font-size: 12px !important;
}

/* =========================================================
   BỔ SUNG KHẮC PHỤC TRIỆT ĐỂ LỖI MENU 3 GẠCH TRÊN MOBILE
   ========================================================= */
@media (max-width: 991.98px) {
    /* Ép toàn bộ khối menu đổ xuống luôn có nền trắng đục và bo góc đổ bóng rõ ràng */
    .navbar-custom .navbar-collapse {
        background-color: #ffffff !important;
        border-radius: 14px !important;
        padding: 20px !important;
        margin-top: 12px !important;
        box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15) !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
        /* Làm mượt animation mở/đóng */
        transition: opacity 0.25s ease, transform 0.25s ease !important;
        transform-origin: top center;
    }

    /* Trạng thái đang collapse: mờ dần + thu lên nhẹ, không bị khựng */
    .navbar-custom .navbar-collapse.collapsing {
        opacity: 0 !important;
        transform: scaleY(0.95) !important;
        transition: opacity 0.2s ease, transform 0.2s ease, height 0.2s ease !important;
    }

    /* Trạng thái đã mở hoàn toàn */
    .navbar-custom .navbar-collapse.show {
        opacity: 1 !important;
        transform: scaleY(1) !important;
    }

    /* Ép tất cả chữ menu điều hướng hiển thị màu xám đậm tương phản nét căng */
    .navbar-custom .navbar-collapse .nav-link {
        color: #334155 !important;
        text-shadow: none !important;
        padding: 10px 12px !important;
        font-weight: 600 !important;
        text-align: left !important;
    }

    /* Hiệu ứng hover chạm mục chọn đổi tông nền sáng chữ xanh Royal */
    .navbar-custom .navbar-collapse .nav-link:hover {
        color: var(--primary-color) !important;
        background-color: #f8fafc !important;
        border-radius: 8px !important;
    }

    /* Đổi chữ Quản trị viên sang tông cam sẫm tương phản rõ nét trên nền trắng */
    .navbar-custom .navbar-collapse .nav-link.text-warning {
        color: #ea580c !important;
    }

    /* Định hình hàng dọc co giãn đối xứng cho cụm nút Đăng nhập / Đăng ký */
    .navbar-custom .navbar-collapse .navbar-nav.align-items-center {
        align-items: stretch !important;
        gap: 10px !important;
        margin-top: 10px !important;
        padding: 0 12px !important;
    }

    /* Nút Đăng nhập chuyển sang viền xám nền trong trên di động */
    .navbar-custom .navbar-collapse .btn-nav-login {
        background: #f1f5f9 !important;
        color: #0f172a !important;
        border: 1px solid #cbd5e1 !important;
        text-align: center !important;
        box-shadow: none !important;
    }
    .navbar-custom .navbar-collapse .btn-nav-login:hover {
        background: #e2e8f0 !important;
    }

    /* Căn giữa nút Đăng ký màu trắng chữ nổi */
    .navbar-custom .navbar-collapse .btn-nav-register {
        text-align: center !important;
        color: #ffffff !important;
    }
    
    /* Fix riêng màu chữ hover cho 2 nút Đăng nhập / Đăng ký trên mobile không bị hóa xanh */
    .navbar-custom.navbar-scrolled .nav-link.btn-nav-login:hover,
    .navbar-custom .navbar-collapse .nav-link.btn-nav-login:hover {
        color: #0f172a !important;
    }
    .navbar-custom.navbar-scrolled .nav-link.btn-nav-register:hover,
    .navbar-custom .navbar-collapse .nav-link.btn-nav-register:hover {
        color: #ffffff !important;
    }
}

/* Ép riêng nút Đăng nhập khi hover giữ màu chữ trắng tinh khi cuộn xuống trên PC */
@media (min-width: 992px) {
    .navbar-custom.navbar-scrolled .nav-link.btn-nav-login:hover {
        background: rgb(25, 73, 186) !important;
        color: #ffffff !important; 
    }
    .navbar-custom.navbar-scrolled .nav-link.btn-nav-register:hover {
        color: #ffffff !important; 
    }
}

/* =========================================================
   MOBILE NAVBAR: Hiệu ứng mượt mà khi mở/đóng menu
   ========================================================= */
@media (max-width: 991.98px) {
    /* Cải thiện hiệu ứng collapse mượt mà */
    .navbar-custom .navbar-collapse {
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        overflow: hidden !important;
    }
    .navbar-custom .navbar-collapse:not(.show):not(.collapsing) {
        max-height: 0 !important;
        opacity: 0 !important;
    }
    .navbar-custom .navbar-collapse.show {
        max-height: 500px !important;
        opacity: 1 !important;
    }
    .navbar-custom .navbar-collapse.collapsing {
        max-height: 500px !important;
        opacity: 0.5 !important;
        height: auto !important;
    }

    /* Nút toggler mượt hơn */
    .navbar-toggler {
        transition: transform 0.3s ease !important;
        border: none !important;
        padding: 6px 10px !important;
    }
    .navbar-toggler:focus { box-shadow: none !important; }
}

/* =========================================================
   DETAIL PAGE MOBILE: Booking card lên trước, review xuống sau
   ========================================================= */
@media (max-width: 991.98px) {
    /* Đảo thứ tự: booking card lên trên, review section xuống dưới */
    .col-lg-8 { order: 2 !important; }
    .col-lg-4 { order: 1 !important; }

    /* Booking card không sticky trên mobile, tự nhiên theo luồng */
    .booking-card {
        position: static !important;
        top: auto !important;
        margin-bottom: 24px !important;
    }

    /* Giá tiền màu xanh trên mobile */
    #dtlPrice {
        color: var(--primary-color) !important;
    }

    /* Gallery mobile: ảnh chính full width, ảnh phụ cuộn ngang */
    .gallery-container .col-md-6:last-child .row {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 8px !important;
        padding-bottom: 4px !important;
    }
    .gallery-container .col-md-6:last-child .col-6 {
        flex: 0 0 auto !important;
        width: 160px !important;
    }
    .gallery-container .img-sub {
        height: 120px !important;
        width: 160px !important;
        border-radius: 10px !important;
    }
}

/* =========================================================
   MỚI: SỬA LỖI TRÀN LỊCH VÀ MẤT SỐ 1 TRÊN THANH PHÂN TRANG MOBILE
   ========================================================= */
@media (max-width: 767.98px) {
    /* 1. Sửa lỗi vuốt phân trang không thấy số 1: Hủy flex ép căn giữa, cho đẩy sát lề trái */
    #hotelSectionBlock .d-flex.justify-content-center,
    #homestaySectionBlock .d-flex.justify-content-center,
    #resortSectionBlock .d-flex.justify-content-center {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important; /* Vuốt ngang mượt mà */
        white-space: nowrap !important;
        padding: 10px 5px !important;
        text-align: center !important;
    }

    .pagination {
        display: inline-flex !important; /* Xếp thành một hàng ngang dài liên tục */
        justify-content: flex-start !important; /* Luôn xuất phát từ số 1 bên trái */
        padding-left: 0 !important;
        margin: 0 auto !important;
    }
}

/* =========================================================
   BỘ LỊCH CHỌN NGÀY — FLATPICKR PHIÊN BẢN HOÀN CHỈNH
   ========================================================= */

/* Khung lịch tổng thể */
.flatpickr-calendar {
    background: #ffffff !important;
    border: none !important;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.14), 0 4px 16px rgba(15, 23, 42, 0.06) !important;
    border-radius: 20px !important;
    padding: 16px 12px 12px !important;
    font-family: inherit !important;
}

/* Desktop: mở rộng lịch 2 tháng để không bị cắt cột CN */
@media (min-width: 768px) {
    .flatpickr-calendar.multiMonth {
        width: auto !important;
        overflow: visible !important;
    }
    .flatpickr-rContainer {
        overflow: visible !important;
    }
    /* Thu nhỏ nhẹ ô ngày để 2 tháng vừa khung, không bị cắt cột CN */
    .flatpickr-days {
        width: 490px !important;
    }
    .dayContainer {
        width: 245px !important;
        min-width: 245px !important;
        max-width: 245px !important;
    }
    .flatpickr-day {
        max-width: 35px !important;
        height: 34px !important;
    }
}

/* Thanh điều hướng tháng */
.flatpickr-months {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 4px 12px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    margin-bottom: 8px !important;
}

/* Mỗi ô tháng — căn giữa header */
.flatpickr-months .flatpickr-month {
    flex: 1 !important;
    overflow: visible !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Header "Tháng X YYYY" — 1 hàng ngang, căn giữa */
.flatpickr-current-month {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    padding: 0 !important;
    width: 100% !important;
    position: static !important;
    height: auto !important;
}

/* Dropdown chọn Tháng */
.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #121927 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid #2563eb !important;
    cursor: pointer !important;
    padding: 2px 4px !important;
    border-radius: 0 !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    flex-shrink: 0 !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}
.flatpickr-current-month .flatpickr-monthDropdown-months:hover {
    background: transparent !important;
    color: #2563eb !important;
}

/* Triệt tiêu hover đen mờ từ flatpickr default CSS trên container tháng */
.flatpickr-months .flatpickr-month:hover,
.flatpickr-current-month:hover,
.flatpickr-current-month .flatpickr-monthDropdown-months:hover,
.flatpickr-current-month .flatpickr-monthDropdown-months option:hover {
    background: transparent !important;
    background-color: transparent !important;
}
.flatpickr-current-month .flatpickr-monthDropdown-months:focus {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Năm: tĩnh, không highlight khi hover/click */
.flatpickr-current-month .numInputWrapper {
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    pointer-events: none !important;
}
.flatpickr-current-month input.cur-year {
    font-family: inherit !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #273045 !important;
    background: transparent !important;
    border: none !important;
    padding: 2px 0 !important;
    outline: none !important;
    width: 48px !important;
    text-align: left !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    pointer-events: none !important;
    cursor: default !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}
/* Ẩn mũi tên tăng giảm năm */
.flatpickr-current-month .numInputWrapper span {
    display: none !important;
}

/* Nút mũi tên < > chuyển tháng */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 64px !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    fill: #475569 !important;
    padding: 6px !important;
    flex-shrink: 0 !important;
    transition: background 0.18s, fill 0.18s !important;
}
.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    background: #eff6ff !important;
    fill: #2563eb !important;
}

/* Hàng Thứ (T2 T3...) */
.flatpickr-weekdays {
    margin-bottom: 2px !important;
}
span.flatpickr-weekday {
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}

/* Ô ngày — căn giữa số hoàn hảo bằng flex */
.flatpickr-day {
    font-family: inherit !important;
    color: #1e293b !important;
    font-weight: 500 !important;
    font-size: 13.5px !important;
    border-radius: 8px !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    height: 36px !important;
    transition: background 0.15s, color 0.15s !important;
}
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #cbd5e1 !important;
    font-weight: 400 !important;
}

/* Ngày quá khứ: mờ nhạt, không cho bấm */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: #d1d5db !important;
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    background: transparent !important;
    text-decoration: line-through !important;
}

/* Hover ngày thường */
.flatpickr-day:hover:not(.selected):not(.startRange):not(.endRange):not(.flatpickr-disabled) {
    background: #f1f5f9 !important;
    color: #2563eb !important;
    border-radius: 8px !important;
}

/* Ngày bắt đầu & kết thúc */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.30) !important;
    font-weight: 700 !important;
}

/* Khoảng giữa 2 ngày — xanh nhạt, chữ đen dễ đọc */
.flatpickr-day.inRange {
    background: #dbeafe !important;
    border-color: transparent !important;
    color: #1e293b !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-weight: 500 !important;
}

/* Ngày hôm nay */
.flatpickr-day.today:not(.selected):not(.startRange):not(.endRange) {
    border-bottom: 2px solid #2563eb !important;
    color: #2563eb !important;
    font-weight: 700 !important;
    background: transparent !important;
}

/* =========================================================
   MOBILE: Full width, ô ngày vuông vừa tay, có đường kẻ chia
   ========================================================= */
@media (max-width: 767.98px) {
    .flatpickr-calendar {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: calc(100vw - 20px) !important;
        max-width: 400px !important;
        border-radius: 16px !important;
        padding: 12px 8px 10px !important;
    }

    /* Đường kẻ ngang chia phần header và lưới ngày */
    .flatpickr-days {
        border-top: 1px solid #e2e8f0 !important;
        padding-top: 8px !important;
        width: 100% !important;
        min-width: unset !important;
        max-width: 100% !important;
    }

    .dayContainer {
        width: 100% !important;
        min-width: unset !important;
        max-width: 100% !important;
    }

    /* Ô ngày: vuông nhẹ, to dễ bấm */
    .flatpickr-day {
        max-width: 42px !important;
        height: 42px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }

    /* Giữ khoảng inRange phẳng */
    .flatpickr-day.inRange {
        border-radius: 0 !important;
    }

    /* Start/End vẫn bo góc */
    .flatpickr-day.startRange,
    .flatpickr-day.endRange {
        border-radius: 10px !important;
    }

    .flatpickr-current-month {
        width: 100% !important;
        left: auto !important;
    }
    .flatpickr-current-month .flatpickr-monthDropdown-months,
    .flatpickr-current-month input.cur-year {
        font-size: 14px !important;
    }
    span.flatpickr-weekday {
        font-size: 11px !important;
    }
}

/* =========================================================
   ADMIN PREMIUM UI — TOAST, SKELETON, CARD, CHART, FEED
   ========================================================= */

/* Toast Notification System (thay thế alert) */
.toast-container-custom {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast-custom {
    pointer-events: auto;
    background: #fff;
    border-radius: 12px;
    padding: 14px 18px;
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15), 0 4px 8px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid #2563eb;
    animation: toastSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: right center;
}
.toast-custom.toast-success { border-left-color: #10b981; }
.toast-custom.toast-error { border-left-color: #f43f5e; }
.toast-custom.toast-warning { border-left-color: #f59e0b; }
.toast-custom .toast-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.toast-custom.toast-success .toast-icon { background: rgba(16,185,129,0.12); color: #10b981; }
.toast-custom.toast-error .toast-icon { background: rgba(244,63,94,0.12); color: #f43f5e; }
.toast-custom.toast-warning .toast-icon { background: rgba(245,158,11,0.12); color: #f59e0b; }
.toast-custom.toast-info .toast-icon { background: rgba(37,99,235,0.12); color: #2563eb; }
.toast-custom .toast-content {
    flex: 1;
    font-size: 13.5px;
    color: #0f172a;
    font-weight: 600;
    line-height: 1.4;
}
.toast-custom .toast-content small {
    display: block;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
    font-size: 12px;
}
.toast-custom .toast-close {
    background: transparent; border: none;
    color: #94a3b8; cursor: pointer;
    padding: 4px; font-size: 1rem;
    transition: color 0.2s;
}
.toast-custom .toast-close:hover { color: #0f172a; }
.toast-custom.toast-fade-out {
    animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(100%) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastSlideOut {
    to { opacity: 0; transform: translateX(120%) scale(0.85); }
}

/* Skeleton loader cho table */
.skeleton-row td {
    padding: 18px 20px !important;
}
.skeleton-box {
    display: inline-block;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    border-radius: 6px;
    animation: skeletonShimmer 1.4s ease infinite;
    height: 14px;
    width: 100%;
}
.skeleton-circle {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s ease infinite;
}
@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Stat card hover sang trọng */
.admin-stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9 !important;
}
.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
}

/* Mini trend indicator */
.trend-indicator {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; font-weight: 700;
    padding: 3px 8px; border-radius: 6px;
}
.trend-up { background: rgba(16,185,129,0.1); color: #059669; }
.trend-down { background: rgba(244,63,94,0.1); color: #e11d48; }
.trend-flat { background: rgba(100,116,139,0.1); color: #475569; }

/* Sidebar fixes — active state có dấu vạch xanh bên trái */
#adminSidebarMenu .nav-link.active {
    position: relative;
    font-weight: 700;
}
#adminSidebarMenu .nav-link.active::before {
    content: '';
    position: absolute;
    left: -12px; top: 20%; bottom: 20%;
    width: 4px;
    background: var(--primary-color);
    border-radius: 0 4px 4px 0;
}
.admin-sidebar {
    box-shadow: 2px 0 12px rgba(15, 23, 42, 0.04);
}

/* Tabel row click: cursor pointer cho hàng có actions */
.table-clickable tbody tr { cursor: pointer; }

/* Filter chip group cho bookings */
.filter-chip-group {
    display: flex; gap: 8px; flex-wrap: wrap;
}
.filter-chip {
    background: #f1f5f9; color: #475569;
    padding: 6px 14px; border-radius: 20px;
    font-size: 12.5px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
    border: 1px solid transparent;
    white-space: nowrap;
}
.filter-chip:hover { background: #e2e8f0; color: #0f172a; }
.filter-chip.active {
    background: var(--primary-color); color: #fff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}
.filter-chip .chip-count {
    margin-left: 6px;
    background: rgba(255,255,255,0.25);
    padding: 1px 7px; border-radius: 10px;
    font-size: 11px;
}
.filter-chip:not(.active) .chip-count {
    background: rgba(15,23,42,0.08);
    color: #475569;
}

/* Activity Feed */
.activity-feed-card {
    max-height: 420px;
    overflow-y: auto;
}
.activity-feed-card::-webkit-scrollbar { width: 6px; }
.activity-feed-card::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.activity-item {
    display: flex; gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: #f8fafc; }
.activity-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.activity-content { flex: 1; min-width: 0; }
.activity-title {
    font-weight: 600; color: #0f172a;
    font-size: 13.5px; line-height: 1.4;
}
.activity-meta {
    font-size: 11.5px; color: #94a3b8;
    margin-top: 2px;
}

/* Top room list */
.top-room-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}
.top-room-item:last-child { border-bottom: none; }
.top-room-item:hover { background: #f8fafc; }
.top-room-rank {
    width: 28px; height: 28px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px;
    flex-shrink: 0;
}
.rank-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }
.rank-2 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #fff; }
.rank-3 { background: linear-gradient(135deg, #fb923c, #ea580c); color: #fff; }
.rank-other { background: #f1f5f9; color: #64748b; }

.top-room-img {
    width: 44px; height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Chart card */
.chart-card-body {
    height: 320px;
    position: relative;
}

/* Empty state đẹp */
.empty-state {
    padding: 60px 20px;
    text-align: center;
}
.empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 16px;
    display: block;
}
.empty-state h6 {
    color: #475569;
    font-weight: 700;
    margin-bottom: 6px;
}
.empty-state p {
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 0;
}

/* Detail booking modal — info row */
.booking-detail-row {
    display: flex; justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 14px;
}
.booking-detail-row:last-child { border-bottom: none; }
.booking-detail-row .label {
    color: #64748b; font-weight: 600;
}
.booking-detail-row .value {
    color: #0f172a; font-weight: 700;
    text-align: right;
}

/* Custom confirm modal */
.confirm-modal-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 2rem;
}
.confirm-modal-icon.icon-danger {
    background: rgba(244,63,94,0.1); color: #f43f5e;
}
.confirm-modal-icon.icon-warning {
    background: rgba(245,158,11,0.1); color: #f59e0b;
}
.confirm-modal-icon.icon-success {
    background: rgba(16,185,129,0.1); color: #10b981;
}

/* Search input nâng cấp với icon */
.search-input-wrap {
    position: relative;
}
.search-input-wrap .search-icon {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}
.search-input-wrap input {
    padding-left: 36px !important;
}

/* Quick action button hover */
.btn-quick-action {
    transition: all 0.2s;
    border-radius: 10px !important;
}
.btn-quick-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

/* Period selector cho chart */
.period-selector {
    display: inline-flex;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 4px;
    gap: 2px;
}
.period-selector button {
    background: transparent;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}
.period-selector button.active {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

/* Status dot indicator */
.status-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}
.status-dot.dot-success { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.18); }
.status-dot.dot-warning { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.18); }
.status-dot.dot-danger { background: #f43f5e; box-shadow: 0 0 0 3px rgba(244,63,94,0.18); }

/* Customer avatar bubble */
.customer-avatar-bubble {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
    text-transform: uppercase;
    flex-shrink: 0;
}
.customer-avatar-bubble.bubble-warning { background: linear-gradient(135deg, #f59e0b, #d97706); }
.customer-avatar-bubble.bubble-success { background: linear-gradient(135deg, #10b981, #059669); }
.customer-avatar-bubble.bubble-danger { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.customer-avatar-bubble.bubble-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

/* Fade in animation cho tab content */
.tab-pane.fade.show.active {
    animation: tabFadeIn 0.35s ease;
}
@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile responsive cho admin */
@media (max-width: 991.98px) {
    .toast-container-custom {
        top: 12px; right: 12px; left: 12px;
    }
    .toast-custom { min-width: unset; max-width: 100%; }
    .admin-sidebar { width: 240px !important; }
    .filter-chip-group { padding-bottom: 4px; overflow-x: auto; flex-wrap: nowrap; }
}

/* ===== CITY FILTER BAR ===== */
.city-filter-bar { background: white; border-bottom: 1px solid #e2e8f0; }
.city-filter-bar .nav-link {
   background: none; border: none; padding: 16px 20px; font-size: 14px;
   font-weight: 600; color: #64748b; cursor: pointer; position: relative;
   transition: color 0.2s; white-space: nowrap; border-radius: 0;
}
.city-filter-bar .nav-link:hover { color: #2563eb; background: none; }
.city-filter-bar .nav-link.active { color: #2563eb; background: none; }
.city-filter-bar .nav-link.active::after {
   content: ''; position: absolute; bottom: -1px; left: 0;
   width: 100%; height: 2px;
   background: linear-gradient(90deg, #2563eb, #60a5fa); border-radius: 2px;
}

/* ===== BANNER VÙNG MIỀN ===== */
.region-card {
   position: relative; height: 220px; border-radius: 20px; overflow: hidden;
   background-size: cover; background-position: center;
   cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.region-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.region-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,52,120,0.88) 0%, rgba(0,0,0,0.08) 60%); }
.region-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 22px; color: white; }
.region-icon { font-size: 28px; margin-bottom: 4px; line-height: 1; }
.region-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.region-sub { font-size: 12px; opacity: 0.8; margin-bottom: 10px; }
.region-btn {
   display: inline-flex; align-items: center; gap: 6px;
   background: rgba(255,255,255,0.2); backdrop-filter: blur(6px);
   border: 1px solid rgba(255,255,255,0.35); border-radius: 50px;
   padding: 5px 14px; font-size: 12px; font-weight: 700; color: white;
}
.region-card:hover .region-btn { background: rgba(255,255,255,0.35); }

/* ===== KHÁM PHÁ ĐIỀU GÌ ===== */
.explore-tab-nav { display: flex; border-bottom: 2px solid #e2e8f0; }
.explore-tab-btn {
   background: none; border: none; padding: 12px 24px; font-size: 15px;
   font-weight: 600; color: #64748b; cursor: pointer; position: relative;
   transition: color 0.2s; white-space: nowrap;
}
.explore-tab-btn:hover { color: #2563eb; }
.explore-tab-btn.active { color: #2563eb; }
.explore-tab-btn.active::after {
   content: ''; position: absolute; bottom: -2px; left: 0;
   width: 100%; height: 2px; background: #2563eb; border-radius: 2px;
}
.explore-tab-content { display: none; animation: fadeInTab 0.25s ease; }
.explore-tab-content.active { display: block; }
@keyframes fadeInTab { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
.explore-link-col {
   display: flex; flex-direction: column; gap: 14px;
   padding: 20px 16px; border-right: 1px solid #e2e8f0;
}
.explore-link-col:last-child { border-right: none; }
.explore-link-col a { color: #334155; font-size: 14px; text-decoration: none; transition: color 0.2s; }
.explore-link-col a:hover { color: #2563eb; text-decoration: underline; }

/* ===== EXPLORE PAGE ENHANCEMENTS ===== */

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Scroll-triggered reveal animations */
.reveal-on-scroll {
   opacity: 0;
   transform: translateY(40px);
   transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-on-scroll.is-visible {
   opacity: 1;
   transform: translateY(0);
}

/* Reveal left/right variants */
.reveal-left {
   transform: translateX(-50px);
}
.reveal-right {
   transform: translateX(50px);
}
.reveal-left.is-visible,
.reveal-right.is-visible {
   transform: translateX(0);
}

/* Scale reveal for cards */
.reveal-scale {
   transform: scale(0.92);
   opacity: 0;
}
.reveal-scale.is-visible {
   transform: scale(1);
   opacity: 1;
}

/* Floating particles in hero */
.floating-particles {
   position: absolute;
   inset: 0;
   overflow: hidden;
   pointer-events: none;
}
.floating-particle {
   position: absolute;
   width: 6px;
   height: 6px;
   background: rgba(255,255,255,0.3);
   border-radius: 50%;
   animation: floatParticle linear infinite;
}
@keyframes floatParticle {
   0% { transform: translateY(100%) translateX(0) rotate(0deg); opacity: 0; }
   10% { opacity: 0.6; }
   90% { opacity: 0.6; }
   100% { transform: translateY(-120%) translateX(30px) rotate(360deg); opacity: 0; }
}

/* Counter animation */
.stat-counter {
   display: inline-block;
}

/* Enhanced card hover - lift + glow */
.hover-lift-glow {
   transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hover-lift-glow:hover {
   transform: translateY(-10px);
   box-shadow: 0 25px 50px rgba(37, 99, 235, 0.18), 0 0 0 1px rgba(37, 99, 235, 0.15);
}

/* Staggered animation delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Glassmorphism header on scroll */
.navbar-glass {
   background: rgba(255, 255, 255, 0.72) !important;
   backdrop-filter: blur(12px);
   -webkit-backdrop-filter: blur(12px);
   border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

/* Smooth image zoom container */
.img-zoom-container {
   overflow: hidden;
   border-radius: inherit;
}
.img-zoom-container img {
   transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-zoom-container:hover img {
   transform: scale(1.08);
}

/* Text gradient animation */
.text-gradient-animate {
   background: linear-gradient(90deg, #2563eb, #8b5cf6, #2563eb);
   background-size: 200% auto;
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
   animation: gradientFlow 3s linear infinite;
}
@keyframes gradientFlow {
   0% { background-position: 0% center; }
   100% { background-position: 200% center; }
}

/* Pulse dot indicator */
.pulse-ring {
   position: absolute;
   width: 8px;
   height: 8px;
   border-radius: 50%;
   animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
   0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5); }
   70% { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); }
   100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

/* Smooth tag hover */
.tag-smooth {
   position: relative;
   overflow: hidden;
}
.tag-smooth::before {
   content: '';
   position: absolute;
   inset: 0;
   background: linear-gradient(135deg, #2563eb, #8b5cf6);
   opacity: 0;
   transition: opacity 0.3s;
   z-index: -1;
   border-radius: inherit;
}
.tag-smooth:hover::before {
   opacity: 1;
}
.tag-smooth:hover {
   color: white !important;
   border-color: transparent !important;
}

/* ===== PROVINCE CARDS ===== */
.province-card {
   position: relative; height: 160px; border-radius: 16px; overflow: hidden;
   background-size: cover; background-position: center;
   cursor: pointer; transition: all 0.3s ease;
}
.province-card:hover {
   transform: translateY(-4px);
   box-shadow: 0 16px 32px rgba(0,0,0,0.15);
}
.province-overlay {
   position: absolute; inset: 0;
   background: linear-gradient(to top, rgba(15,23,42,0.85) 0%, rgba(0,0,0,0.15) 60%);
}
.province-content {
   position: absolute; bottom: 0; left: 0; right: 0;
   padding: 16px 18px; color: white;
}
.province-title {
   font-size: 1.05rem; font-weight: 700; margin-bottom: 6px;
}
.province-btn {
   display: inline-flex; align-items: center; gap: 4px;
   font-size: 11.5px; font-weight: 600; opacity: 0.85;
}
.province-card:hover .province-btn {
   opacity: 1;
}

/* =========================================
   FOOTER CHUNG
   ========================================= */
.footer-custom {
   margin-top: auto !important;
   background-color: #1e293b;
   color: #cbd5e1;
   padding: 60px 0 30px;
}
.footer-custom h5 {
   color: white;
   font-weight: bold;
   margin-bottom: 20px;
}
.footer-custom a {
   color: #cbd5e1;
   text-decoration: none;
   transition: color 0.3s;
   display: block;
   margin-bottom: 10px;
}
.footer-custom a:hover {
   color: #60a5fa;
}
.footer-bottom {
   border-top: 1px solid #334155;
   padding-top: 20px;
   margin-top: 40px;
   text-align: center;
}