/* -- ✅ Màu thương hiệu Tour --  */
:root {
    /* ===== 🎨 COLOR SYSTEM ===== */
    --bs-primary: #e83e8c;
    /* 🌸 Main Pink */
    --bs-primary-rgb: 232, 62, 140;

    --bs-primary-dark: #c2185b;
    /* darker pink for hover */
    --bs-primary-light: #ffe6f0;
    /* very soft pink background */
    --backgournd-color-session: #fff1f6;
    --backgournd-color-session-null: #fff;

    --bs-secondary: #ff6b6b;
    /* coral-pink accent */
    --bs-secondary-rgb: 255, 107, 107;

    --accent-1: #f06292;
    /* extra accent (mid pink) */
    --accent-2: #ffb6c1;
    /* light pink pastel */
    --accent-3: #ff80ab;
    /* bright playful tone */

    --primary-dark: #9c155a;
    /* deep shade for contrast */
    --primary-light: #fff5f9;
    /* subtle section bg */
    --primary-gradient: linear-gradient(135deg, #e83e8c, #ff6b6b);

    /* ===== 🧭 TEXT COLORS ===== */
    --title-color: #222;
    /* strong title */
    --title-color-rgb: 34, 34, 34;
    --bs-body-color: #555;
    /* readable body text */
    --secondary-body-color: #9b9b9b;
    --muted-color: #999;
    --link-color: var(--bs-primary);
    --link-hover-color: var(--bs-primary-dark);

    /* ===== 🌤️ BACKGROUND ===== */
    --bs-light: #f6f6f6;
    --bs-light-rgb: 246, 246, 246;
    --bs-body-bg: #fffafc;
    /* slightly pinkish white */
    --bs-body-bg-rgb: 255, 250, 252;
    --bg-soft-pink: #fff3f8;
    /* for “favorite tours” section */
    --bg-white: #ffffff;
    --bg-dark: #1c1c1e;

    /* ===== 🩶 BORDER / SHADOW ===== */
    --bs-border-color: #f4f4f4;
    --bs-border-rgb: 221, 221, 221;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);

    /* ===== 🌈 STATE COLORS ===== */
    --success-color: #28a745;
    --success-light: #e8f9ed;
    --warning-color: #ffc107;
    --warning-light: #fff7e1;
    --danger-color: #dc3545;
    --danger-light: #ffe5e9;
    --info-color: #0dcaf0;
    --info-light: #e5f8fc;

    /* ===== ⚫ WHITE / DARK ===== */
    --absolute-dark: #222;
    --absolute-dark-rgb: 34, 34, 34;
    --absolute-white: #fff;
    --absolute-white-rgb: 255, 255, 255;

    /* ===== 🔠 TYPOGRAPHY ===== */
    --bs-body-font-family: "Mulish", "Noto Sans JP", sans-serif;
    --title-font: "Mulish", sans-serif;

    --thin: 100;
    --extra-light: 200;
    --light: 300;
    --regular: 400;
    --medium: 500;
    --semi-bold: 600;
    --bold: 700;
    --extra-bold: 800;
    --dark-color-bold: 900;

    --bs-body-font-size: 0.875rem;
    --bs-body-line-height: 1.5;
    --title-line-height: 1.25;

    --h1_fs: 2rem;
    --h2_fs: 1.75rem;
    --h3_fs: 1.5rem;
    --h4_fs: 1.25rem;
    --h5_fs: 1rem;
    --h6_fs: 0.875rem;

    /* ===== 🧩 COMPONENT UTILITIES ===== */
    --bg-badge: var(--accent-2);
    --btn-radius: 50px;
    --card-radius: 15px;
    --transition-fast: all 0.2s ease-in-out;
    --transition-slow: all 0.4s ease;

    /* ===== 🪄 GRADIENTS & THEMATIC ===== */
    --gradient-pink: linear-gradient(135deg, #e83e8c, #ff6b6b);
    --gradient-soft: linear-gradient(180deg, #fff7fa 0%, #ffe4ee 100%);
    --gradient-dark: linear-gradient(180deg, #1c1c1e, #2b2b2e);
}

.pagination {
    --bs-pagination-active-bg: #e83e8c;
    --bs-pagination-active-border-color: #e83e8c;
}

/* ==== 🌙 TOUR DARK MODE THEME ==== */
[theme="dark"] {
    --bs-primary: #ff4fa3;
    --bs-primary-rgb: 255, 79, 163;
    --bs-primary-dark: #d63384;
    --bs-primary-light: #3a2230;
    --bs-secondary: #ff6b91;
    --bs-secondary-rgb: 255, 107, 145;

    --accent-1: #ff82b3;
    --accent-2: #ff99c8;
    --accent-3: #ff6faf;

    --primary-dark: #b61b70;
    --primary-light: #2c1e2a;
    --primary-gradient: linear-gradient(135deg, #ff4fa3, #ff6b91);

    --title-color: rgba(255, 255, 255, 0.9);
    --title-color-rgb: 255, 255, 255;
    --bs-body-color: #ccd0d3;
    --secondary-body-color: #9ea2a5;
    --muted-color: #7d7f83;
    --link-color: var(--bs-primary);
    --link-hover-color: #ff7cbf;

    --bs-body-bg: #18181a;
    --bs-body-bg-rgb: 24, 24, 26;
    --bs-light: #222;
    --bs-light-rgb: 34, 34, 34;
    --bg-soft-pink: #21161e;
    --bg-white: #1e1e20;
    --bg-dark: #0f0f10;
    --primary-light-bg: #29292b;
    --input-bg: #2d2d2f;

    --bs-border-color: #3f3f41;
    --bs-border-rgb: 63, 63, 65;
    --shadow-color: rgba(0, 0, 0, 0.6);
    --box-shadow: 0 2px 10px rgba(255, 79, 163, 0.15);

    --success-color: #28d17a;
    --success-light: #163329;
    --warning-color: #ffd65b;
    --warning-light: #3a3216;
    --danger-color: #ff5f75;
    --danger-light: #3b1e23;
    --info-color: #4fcaff;
    --info-light: #1d2e36;

    --absolute-dark: #121213;
    --absolute-dark-rgb: 18, 18, 19;
    --absolute-white: rgba(255, 255, 255, 0.85);
    --absolute-white-rgb: 255, 255, 255;

    --bg-badge: #3a3a3a;
    --btn-radius: 50px;
    --card-radius: 15px;

    --gradient-pink: linear-gradient(135deg, #ff4fa3, #ff6b91);
    --gradient-soft: linear-gradient(180deg, #1d1d1f 0%, #26262a 100%);
    --gradient-dark: linear-gradient(180deg, #101012, #1a1a1c);

    --card-bg: #1f1f21;
    --navbar-bg: rgba(24, 24, 26, 0.95);
    --footer-bg: #141415;

    --backgournd-color-session: #1e1e20;
    --backgournd-color-session-null: #1e1e20;
}

/* ==== 🌙 DARK MODE — SECTION COLORS ==== */
[theme="dark"] {
    --background-color-section: #1b1b1d;
    --background-color-section-alt: #202022;
    --background-color-section-soft: #242426;
    --background-color-highlight: #2a1c27;
    --background-color-section-null: transparent;
}
/* 📱 Mobile: Giới hạn tối đa 64px */
@media (max-width: 900px) { /* Đã thêm đơn vị 'px' */
    .header {
        /* Đảm bảo header có chiều cao tối thiểu 64px */
        min-height: 64px; 
        
        /* Đặt 'height' về 'auto' để nội dung linh hoạt không bị cắt */
        height: auto; 
        
        /* Ngăn chặn nội dung thừa tràn ra ngoài header */
        overflow: hidden; 
    }
}

.announcement-color {
    background-color: var(--bs-primary);
    color: #ffffff;
}

.btn-primary {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: var(--absolute-white);
    transition: var(--transition-fast);
}

.btn-primary:hover {
    background: var(--bs-primary-dark);
}

.section-favorite {
    background-color: var(--bg-soft-pink);
}

.card {
    border-radius: var(--card-radius);
    box-shadow: var(--box-shadow);
}

.text-pink {
    color: var(--bs-primary);
}

p:empty {
    -webkit-margin-after: 1rem;
    margin-block-end: 1rem;
}

.card-equal {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.text-clamp-2 {
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -webkit-box;
}

.img-fallback {
    background: #f4f4f4;
    object-fit: cover;
    height: 180px;
}


body {
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- HEADER ---------- */
.navbar {
    padding: 1rem 1.5rem;
}

.navbar-brand span {
    color: var(--bs-primary);
    font-weight: 700;
}

.btn-signup {
    background-color: var(--bs-primary);
    color: #fff;
    border-radius: 50px;
    padding: 6px 16px;
    font-weight: 500;
}

.btn-signup:hover {
    background-color: #d63384;
    color: #fff;
}

/* ---------- HERO ---------- */
.hero {
    background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    min-height: 520px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}
.relative--top-50{
    position: relative;
    top: -50px;
}

/* ---------- FILTER CARD ---------- */
.filter-card {
    position: relative;
    top: -50px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
}

.filter-btn {
    background-color: var(--bs-primary);
    color: #fff;
    width: 100%;
}

.filter-btn:hover {
    background-color: #d63384;
}

/* ---------- DESTINATIONS ---------- */
.section-title {
    font-weight: 600;
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--title-color);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
    .filter-card {
        top: -30px;
        padding: 1rem;
    }

    .hero {
        min-height: 400px;
    }
}

@media (max-width: 767px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .filter-card {
        top: -20px;
        padding: 1rem;
    }

    .navbar {
        padding: 0.75rem 1rem;
    }
}


.footer {
    background-color: #222;
}

.btn-pink {
    background-color: #e83e8c;
    color: white;
    border: none;
}

.btn-pink:hover {
    background-color: #d63384;
    color: white;
}

@media (max-width: 767px) {
    .footer img {
        max-width: 120px;
    }
}


.bg-pink {
    background-color: #e83e8c !important;
}

.text-pink {
    color: #e83e8c !important;
}

.btn-pink {
    background-color: #e83e8c;
    color: #fff;
}

.btn-pink:hover {
    background-color: #d63384;
    color: #fff;
}

.tour-card img {
    height: 200px;
    object-fit: cover;
}

@media (max-width: 767px) {
    .tour-card img {
        height: 160px;
    }
}


/* ==== Popular Destinations – Stable Cards ==== */
.destination-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #eee;
    /* không đổ bóng */
    border-radius: 12px;
    overflow: hidden;
}

.destination-card p:empty {
    -webkit-margin-after: 1rem;
    margin-block-end: 1rem;
}

/* Media box: cố định tỉ lệ, không dùng height cố định để tránh vỡ layout */
.destination-card__media {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 160px;
    max-height: 200px;
    background: #f4f4f4;
    overflow: hidden;
}

.destination-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Khi không có ảnh: thêm .no-image vào .destination-card */
.destination-card.no-image .destination-card__media img {
    display: none;
}

.destination-card.no-image .destination-card__media::after {
    content: "No image available";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: .875rem;
}

/* Body: chỉ padding nội bộ, không dùng để tạo khoảng cách ngoài */
.destination-card__body {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: .75rem .9rem 1rem;
}

/* Title clamp 2 dòng */
.destination-card__title {
    margin: .25rem 0 0;
    font-weight: 600;
    color: var(--title-color, #333);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    /* giữ chiều cao đều khi tiêu đề ngắn */
}

/* Description clamp 2 dòng + giữ chỗ khi trống */
.destination-card__desc {
    color: #666;
    font-size: .9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    /* vẫn cố định chiều cao khi không có mô tả */
}

.destination-card .price {
    margin-top: auto;
    font-weight: 700;
    color: var(--bs-primary, #e83e8c);

    /* Giới hạn 1 dòng */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;

    /* Giữ chiều cao cố định dù có bị ẩn bớt */
    line-height: 1.4;
    min-height: 1.4em;
}


/* Responsive nhỏ hơn vẫn ổn định */
@media (max-width: 767.98px) {
    .destination-card__body {
        padding: .7rem .8rem .9rem;
    }
}

/* ==== Recommended Tours Section Styles ==== */
.recommended-tours-section {
    background-color: #fff;
}

.recommended-tours-section .section-title {
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--title-color, #333);
}

/* ---- Card Layout ---- */
.recommended-tours-section .tour-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* background-color: #fff; */
    /* border: 1px solid #eee; */
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

@media (min-width: 992px) {
    .tour-card {
        max-width: 500px;
    }
}

.recommended-tours-section .tour-card:hover {
    transform: translateY(-2px);
}

/* ---- Media ---- */
.recommended-tours-section .tour-card__media {
    position: relative;
    width: 100%;
    height: 180px;
    /* background: #f4f4f4; */
    overflow: hidden;
}

.recommended-tours-section .tour-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Khi không có ảnh */
.recommended-tours-section .tour-card.no-image .tour-card__media img {
    display: none;
}

.recommended-tours-section .tour-card.no-image .tour-card__media::before {
    content: "No image available";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    background-color: #f4f4f4;
    font-size: 0.875rem;
}

/* ---- Badge ---- */
.recommended-tours-section .tour-card__badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background-color: var(--bs-primary, #e83e8c);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    font-weight: 500;
}

/* ---- Body ---- */
.recommended-tours-section .tour-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
}

/* ---- Title ---- */
.recommended-tours-section .tour-card__title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--title-color, #333);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

/* ---- Description ---- */
.recommended-tours-section .tour-card__desc {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

/* ---- Price (always one line) ---- */
.recommended-tours-section .tour-card__price {
    margin-top: auto;
    font-weight: 700;
    color: var(--bs-primary, #e83e8c);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: 1.4;
    min-height: 1.4em;
}

/* ---- Responsive ---- */
@media (max-width: 767.98px) {
    .recommended-tours-section .tour-card__media {
        height: 160px;
    }
}


/* ---- Card Layout ---- */
.recommended-tours-section .blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* background-color: #fff; */
    /* border: 1px solid #eee; */
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.recommended-tours-section .blog-card:hover {
    transform: translateY(-2px);
}

/* ---- Media ---- */
.recommended-tours-section .blog-card__media {
    position: relative;
    width: 100%;
    height: 180px;
    /* background: #f4f4f4; */
    overflow: hidden;
}

.recommended-tours-section .blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Khi không có ảnh */
.recommended-tours-section .blog-card.no-image .blog-card__media img {
    display: none;
}

.recommended-tours-section .blog-card.no-image .blog-card__media::before {
    content: "No image available";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    background-color: #f4f4f4;
    font-size: 0.875rem;
}

/* ---- Badge ---- */
.recommended-tours-section .blog-card__badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background-color: var(--bs-primary, #e83e8c);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    font-weight: 500;
}

/* ---- Body ---- */
.recommended-tours-section .blog-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
}

/* ---- Title ---- */
.recommended-tours-section .blog-card__title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--title-color, #333);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

/* ---- Description ---- */
.recommended-tours-section .blog-card__desc {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

/* ---- Price (always one line) ---- */
.recommended-tours-section .blog-card__price {
    margin-top: auto;
    font-weight: 700;
    color: var(--bs-primary, #e83e8c);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: 1.4;
    min-height: 1.4em;
}

/* ---- Responsive ---- */
@media (max-width: 767.98px) {
    .recommended-tours-section .blog-card__media {
        height: 160px;
    }
}



/* CSS cho Menu Khi Thu Gọn (Màn hình nhỏ/Mobile - Dưới 992px) */

/* Đảm bảo menu đổ xuống hiển thị các item theo chiều dọc */
#navMenu .navbar-nav {
    display: block !important;
    /* Ghi đè display: flex của Bootstrap */
    width: 100%;
    padding: 0 1rem;
}

/* Các mục dịch vụ (Về chúng tôi, Tour, Hỗ trợ) */
#navMenu .nav-item:not(.dropdown) .nav-link {
    display: block;
    padding: 0.75rem 1rem !important;
    font-weight: bold;
    border-radius: 0.5rem;
}

/* Đảm bảo dropdown ngôn ngữ và nút Login hiển thị 100% chiều rộng */
.mobile-menu-item-lg .nav-link,
.mobile-menu-item-lg .btn {
    width: 100%;
    text-align: left;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    font-weight: bold;
}

/* Riêng nút Sign Up cần căn giữa trong mobile */
.mobile-menu-item-lg:last-child {
    padding: 0.75rem 1rem;
}

/* Ẩn các border phân tách nếu cần thiết, ví dụ: */
#navMenu .nav-item {
    /* border-bottom: 1px solid #eee; */
    -webkit-margin-after: 0.625rem;
    margin-block-end: 0.625rem;
}

#navMenu .nav-item a {
    font-size: 0.875rem;
    padding: 0.375rem 0.625rem;
    display: block;
}

/* Loại bỏ border cho mục cuối cùng và các mục đã phân tách */
.theme-mode-mobile {
    border-top: 1px solid #eee !important;
}

/* CSS cho Desktop (Từ 992px trở lên) */
@media (min-width: 992px) {

    /* Khôi phục kiểu dáng ngang cho Desktop */
    #navMenu .navbar-nav {
        display: flex !important;
        width: auto;
        padding: 0 !important;
        gap: 1.5rem !important;
    }

    /* Đảm bảo các mục mobile ẩn đi */
    .d-lg-none {
        display: none !important;
    }

    /* Đảm bảo các mục desktop hiện ra */
    .d-lg-block {
        display: block !important;
    }

    /* Reset padding và font-weight cho các mục nav trên desktop */
    #navMenu .nav-item .nav-link,
    #navMenu .nav-item .dropdown-toggle {
        padding: 0.5rem 0.5rem !important;
        font-weight: normal;
    }

    /* Đảm bảo nút Sign Up hiển thị đúng kiểu btn */
    .mobile-menu-item-lg .btn {
        width: auto !important;
    }


}


/* ---------- COMPONENT STYLES ---------- */
.btn-primary {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: var(--absolute-white);
    transition: var(--transition-fast);
}

.btn-primary:hover {
    background: var(--bs-primary-dark);
}

.section-favorite {
    background-color: var(--bg-soft-pink);
}

.card {
    border-radius: var(--card-radius);
    box-shadow: var(--box-shadow);
}

.text-pink {
    color: var(--bs-primary);
}

.img-fallback {
    background: var(--bs-border-color);
    object-fit: cover;
    height: 180px;
}

/* ---------- HEADER ---------- */
.navbar {
    padding: 1rem 1.5rem;
    background-color: var(--bg-white);
}

.navbar-brand span {
    color: var(--bs-primary);
    font-weight: 700;
}

.btn-signup {
    background-color: var(--bs-primary);
    color: var(--absolute-white);
    border-radius: var(--btn-radius);
    padding: 6px 16px;
    font-weight: 500;
}

.btn-signup:hover {
    background-color: var(--bs-primary-dark);
}

/* ---------- HERO ---------- */
.hero {
    background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    min-height: 520px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--absolute-white);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(var(--absolute-dark-rgb), 0.35);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

/* ---------- FILTER CARD ---------- */
.filter-card {
    position: relative;
    top: -50px;
    background: var(--bg-white);
    border-radius: var(--card-radius);
    box-shadow: var(--box-shadow);
    padding: 1.25rem;
}

.filter-btn {
    background-color: var(--bs-primary);
    color: var(--absolute-white);
    width: 100%;
}

.filter-btn:hover {
    background-color: var(--bs-primary-dark);
}

/* ---------- DESTINATIONS ---------- */
.section-title {
    font-weight: 600;
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--title-color);
}

/* ---------- FOOTER ---------- */
.footer {
    background-color: var(--bs-primary);
    color: var(--absolute-white);
}
.footer-bottom {
    /* background-color: rgba(249, 249, 249, 0.1); */
    padding-block: 1.375rem;
}

/* ---------- BUTTON VARIANTS ---------- */
.btn-pink {
    background-color: var(--bs-primary);
    color: var(--absolute-white);
    border: none;
}

.btn-pink:hover {
    background-color: var(--bs-primary-dark);
    color: var(--absolute-white);
}

.bg-pink {
    background-color: var(--bs-primary) !important;
}

.text-pink {
    color: var(--bs-primary) !important;
}

/* ---------- CARD STYLES ---------- */
.destination-card,
.tour-card,
.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-white);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--card-radius);
    overflow: hidden;
}

.destination-card__media,
.tour-card__media,
.blog-card__media {
    background: var(--bs-border-color);
}

.destination-card__desc,
.tour-card__desc,
.blog-card__desc {
    color: var(--bs-body-color);
}

.destination-card .price,
.tour-card__price,
.blog-card__price {
    color: var(--bs-primary);
}

.recommended-tours-section {
    background-color: var(--bg-white);
}

/* ---- BADGE ---- */
.recommended-tours-section .tour-card__badge,
.recommended-tours-section .blog-card__badge {
    background-color: var(--bs-primary);
    color: var(--absolute-white);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
    .filter-card {
        top: -30px;
        padding: 1rem;
    }

    .hero {
        min-height: 400px;
    }
}

@media (max-width: 767px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .filter-card {
        top: -20px;
        padding: 1rem;
    }

    .navbar {
        padding: 0.75rem 1rem;
    }

    .footer img {
        max-width: 120px;
    }
}

/* ==== 🌸 VIEW ALL BUTTON – MINIMAL STYLE ==== */
.btn-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 2.25rem;
    padding: 0 1rem;
    border-radius: 50px;
    border: 1px solid var(--bs-primary);
    color: var(--bs-primary);
    background-color: transparent;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.25s ease-in-out;
}

.btn-view-all i {
    font-size: 0.95rem;
    line-height: 1;
    transition: transform 0.25s ease-in-out, color 0.25s ease-in-out;
}

.btn-view-all:hover {
    background-color: var(--bs-primary-light);
    border-color: var(--bs-primary);
    color: var(--bs-primary-dark);
}

.btn-view-all:hover i {
    transform: translateX(3px);
    color: var(--bs-primary-dark);
}

/* ---- DARK MODE ---- */
[theme="dark"] .btn-view-all {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    background-color: transparent;
}

[theme="dark"] .btn-view-all:hover {
    background-color: var(--bs-primary-light);
    color: var(--absolute-white);
    border-color: var(--bs-primary);
}

[theme="dark"] .btn-view-all:hover i {
    color: var(--absolute-white);
}


/* detail page  */

.text-red-primary {
    /* Màu đỏ/hồng cho chữ -> Dùng màu thương hiệu chính */
    color: var(--bs-primary) !important;
}

.bg-red-primary {
    /* Màu nền đỏ/hồng -> Dùng màu thương hiệu chính */
    background-color: var(--bs-primary) !important;
}

.bg-yellow-secondary {
    /* Màu nền vàng -> Dùng màu cảnh báo (Warning) hoặc accent sáng */
    background-color: var(--warning-color) !important;
    /* Ví dụ: #ffc107 */
}

.bg-promo-purple {
    /* Màu nền khuyến mãi/tím -> Dùng màu Info hoặc Accent 1 */
    background-color: var(--info-color) !important;
    /* Ví dụ: #0dcaf0 (Info) */
}

.bg-main-pink {
    /* Màu nền hồng đậm cho khối giá -> Dùng màu thương hiệu chính */
    background-color: var(--bs-primary) !important;
}

.rounded-xl {
    /* Đã giữ nguyên */
    border-radius: 1rem !important;
}

.shadow-xl {
    /* Đổ bóng tối -> Dùng biến shadow color và giá trị bóng có sẵn (hoặc tùy chỉnh) */
    box-shadow: 0 20px 25px -5px var(--shadow-color), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    /* Hoặc dùng biến có sẵn: box-shadow: var(--box-shadow); */
}

.card-tour-info {
    /* Đã giữ nguyên */
    border: none;
}

.buy-now-btn {
    /* Đã giữ nguyên */
    border-radius: var(--btn-radius) !important;
    /* Sử dụng biến cho radius nút */
}

/* ... (Các CSS khác không liên quan đến màu sắc) ... */

/* Style cho khối Liên kết nhanh mới */
.link-list-item {
    list-style: none;
    padding: 1rem 0;
    /* Màu chữ xám trung tính -> Dùng màu thân bài */
    color: var(--bs-body-color);
    /* Đường kẻ phân cách -> Dùng màu viền/border */
    border-bottom: 1px solid var(--bs-border-color);
    /* #f4f4f4 */
    cursor: pointer;
    transition: var(--transition-fast);
}

.link-list-item:hover {
    /* Màu nền khi hover -> Dùng màu sáng nhẹ (Light) */
    background-color: var(--bs-light);
    /* #f6f6f6 */
}

.link-list-item:last-child {
    border-bottom: none;
}

/* CSS cho các icon trải nghiệm trong khối giá */
.card-booking-block .fa-square-check {
    /* Màu trắng cho icon trên nền đậm (ví dụ: nền --bs-primary) */
    color: var(--absolute-white);
    font-size: 1.1em;
}


/* === 1. BIẾN CSS TỪ YÊU CẦU TRƯỚC (Light Mode) === */
:root {
    /* ===== 🎨 COLOR SYSTEM (Tour Pink Theme) ===== */
    --bs-primary: #e83e8c;
    /* 🌸 Main Pink */
    --bs-primary-dark: #c2185b;
    /* darker pink for hover */
    --bs-secondary: #ff6b6b;
    /* coral-pink accent */
    --warning-color: #ffc107;
    /* warning yellow */
    --info-color: #0dcaf0;
    /* info cyan */

    /* ===== 🧭 TEXT COLORS ===== */
    --title-color: #222;
    --bs-body-color: #555;
    --absolute-white: #fff;

    /* ===== 🌤️ BACKGROUND / NEUTRALS ===== */
    --bs-light: #f6f6f6;
    /* Light gray background for soft sections */
    --bs-body-bg: #fffafc;
    /* Main page background */

    /* ===== 🩶 BORDER / SHADOW ===== */
    --bs-border-color: #f4f4f4;
    /* Border color for lines */
    --shadow-color: rgba(0, 0, 0, 0.05);
    --box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);

    /* ===== 🧩 COMPONENT UTILITIES ===== */
    --btn-radius: 50px;
    --card-radius: 15px;
    --transition-fast: all 0.2s ease-in-out;
}

/* === 2. CSS TỪ YÊU CẦU UPDATE (Đã dùng var) === */
.text-red-primary {
    color: var(--bs-primary) !important;
}

.bg-red-primary {
    background-color: var(--bs-primary) !important;
}

.bg-yellow-secondary {
    background-color: var(--warning-color) !important;
}

.bg-promo-purple {
    background-color: var(--info-color) !important;
}

.bg-main-pink {
    background-color: var(--bs-primary) !important;
}

.rounded-card {
    border-radius: var(--card-radius) !important;
}

.shadow-main {
    box-shadow: var(--box-shadow) !important;
}

.buy-now-btn {
    border-radius: var(--btn-radius) !important;
}

/* CSS Giới hạn số dòng và hiển thị dấu ba chấm */
.text-truncate-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === 3. CSS CHO TIMELINE VÀ ACCORDION === */

/* Cấu trúc Timeline chính */
.timeline {
    position: relative;
    padding-left: 30px;
    /* Khoảng cách cho đường kẻ và chấm */
}

/* Đường kẻ dọc nối các ngày */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    height: 100%;
    width: 2px;
    background-color: var(--bs-border-color);
    /* Dùng màu viền nhạt */
}

.timeline-item {
    position: relative;
    margin-bottom: 0;
    /* Bootstrap collapse đã có margin, không cần thêm */
}

/* Chấm tròn thương hiệu */
.timeline-dot {
    position: absolute;
    top: 15px;
    /* Căn chỉnh với tiêu đề ngày */
    left: -26px;
    width: 14px;
    height: 14px;
    background-color: var(--bs-primary);
    border-radius: 50%;
    z-index: 10;
    border: 3px solid var(--bs-body-bg);
    /* Tạo viền ngoài trùng với màu nền body */
    transition: var(--transition-fast);
}

/* Header của mỗi ngày (Cái thanh màu hồng) */
.itinerary-header {
    cursor: pointer;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: var(--absolute-white);
    /* Chữ trắng trên nền hồng */
    background-color: var(--bs-primary);
    /* Nền hồng chính */
    margin-bottom: 0.5rem;
    transition: var(--transition-fast);
    display: flex;
    /* Dùng flex để căn chỉnh nội dung */
    align-items: center;
}

.itinerary-header:hover {
    background-color: var(--bs-primary-dark);
    color: var(--absolute-white);
}

/* Nội dung chi tiết khi mở */
.itinerary-details-content {
    padding: 1.5rem 1rem;
    margin-top: 0.25rem;
    /* Nền xám nhạt theo yêu cầu người dùng */
    /* background-color: var(--bs-light); */
    border-radius: 0 0 8px 8px;
    color: var(--bs-body-color);
}

/* CSS cho các icon/bullet trong danh sách hoạt động */
.activity-bullet {
    color: var(--bs-primary);
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

/* Style cho khối ảnh lớn trong chi tiết ngày */
.detail-image-block {
    border-radius: 8px;
    overflow: hidden;
    margin: 1rem 0;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.detail-image-block img {
    width: 100%;
    height: auto;
    display: block;
}

/* Tùy chỉnh màu đường kẻ cho Day 1 (mục đang mở) */
.timeline-item.active .timeline-dot {
    border-color: var(--bs-primary-dark);
    background-color: var(--bs-primary-dark);
}

/* Đảm bảo đường kẻ nối xuống chỉ xuất hiện khi Day 1 MỞ */
.timeline-item:not(.active)>.timeline-dot {
    top: 0.75rem;
    /* Căn chỉnh cho chế độ đóng */
    height: 14px;
    width: 14px;
    border: 3px solid var(--bs-body-bg);
    transition: all 0.3s;
}

.timeline-item.active>.timeline-dot {
    top: 1.5rem;
}

/* Tùy chỉnh cho khối Tiêu đề Lịch trình tổng */
.main-itinerary-title {
    color: var(--title-color);
    border-bottom: 1px solid var(--bs-border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

/* Tổng thể card */
.card-booking-block {
    border: none;
    border-radius: 1rem;
}

/* Phần nội dung trắng */
.card-booking-block .bg-white {
    background: var(--bs-primary-light);
    border-top: 3px solid rgba(0, 0, 0, 0.05);
}

/* Nút đặt tour */
.btn-book-tour {
    background: var(--bs-primary-btn);
    color: #fff;
    border: none;
    transition: all 0.25s ease-in-out;
}

.btn-book-tour:hover {
    background: #0056d2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 91, 222, 0.3);
}

/* Icon checklist */
.fa-check-square {
    color: var(--bs-primary);
}

/* Font size cho giá */
.price-header span[itemprop='price'] {
    display: block;
    line-height: 1.1;
} 
.gallery-thumbnails {
  scroll-snap-type: x mandatory;
}

.gallery-thumbnails .thumbnail-square {
  position: relative;
  flex: 0 0 auto;
  width: 90px;
  height: 90px;
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s;
}

.gallery-thumbnails .thumbnail-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* ✅ Giữ đúng tỉ lệ, không méo */
  object-position: center;  /* ✅ Focus vào giữa ảnh */
  transition: transform 0.25s ease;
}

.gallery-thumbnails .thumbnail-square:hover img {
  transform: scale(1.05);
}

.gallery-thumbnails .thumbnail-square:hover {
  box-shadow: 0 0 0 2px var(--bs-primary, #e83e8c);
  transform: translateY(-2px);
} 

.thumbnail-square:hover {
  outline: 2px solid var(--bs-primary, #e83e8c);
  transform: scale(1.05);
  transition: all 0.2s ease;
}

.rich-editor-html-content {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  word-break: break-word;
}

.rich-editor-html-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 1rem auto;
}

.rich-editor-html-content table {
  width: 100%;
  border-collapse: collapse;
}

.rich-editor-html-content table, 
.rich-editor-html-content th, 
.rich-editor-html-content td {
  border: 1px solid #ddd;
  padding: 8px;
}

.rich-editor-html-content h1, 
.rich-editor-html-content h2, 
.rich-editor-html-content h3 {
  font-weight: 600;
  margin-top: 1.5rem;
}

.rich-editor-html-content a {
  color: var(--bs-primary, #007bff);
  text-decoration: underline;
}

.rich-editor-html-content iframe, 
.rich-editor-html-content video {
  max-width: 100%;
  height: auto;
  border: none;
}

.rich-editor-html-content * {
  max-width: 100%;
  overflow-wrap: break-word;
}

.rich-editor-html-content table {
    color: var(--title-color);
    max-width: 100% !important;
}

.rich-editor-html-content table > :not(caption) > * {
    border-width: var(--bs-border-width) 0;
}

.rich-editor-html-content table > :not(caption) > * > * {
    border-width: 0 var(--bs-border-width);
}

.rich-editor-html-content table {
    --bs-table-color: var(--bs-body-color);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--bs-border-color);
    --bs-table-accent-bg: transparent;
    --bs-table-striped-color: var(--bs-body-color);
    --bs-table-striped-bg: rgba(0, 0, 0, 0.05);
    --bs-table-active-color: var(--bs-body-color);
    --bs-table-active-bg: rgba(0, 0, 0, 0.1);
    --bs-table-hover-color: var(--bs-body-color);
    --bs-table-hover-bg: rgba(0, 0, 0, 0.075);
    width: 100%;
    margin-bottom: 1rem;
    color: var(--bs-table-color);
    vertical-align: top;
    border-color: var(--bs-table-border-color);
}

.rich-editor-html-content table > :not(caption) > * > * {
    padding: 0.5rem 0.5rem;
    background-color: var(--bs-table-bg);
    border-bottom-width: var(--bs-border-width);
    box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);
}

.rich-editor-html-content table > tbody {
    vertical-align: inherit;
}

.rich-editor-html-content table > thead {
    vertical-align: bottom;
}

.rich-editor-html-content table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 575px) {
    .rich-editor-html-content table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 767px) {
    .rich-editor-html-content table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 991px) {
    .rich-editor-html-content table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 1199px) {
    .rich-editor-html-content table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 1399px) {
    .rich-editor-html-content table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.card-tour-info ul li {
  line-height: 1.6;
}
.card-tour-info ul li i {
  width: 18px;
  text-align: center;
}


.limit-10-row {
    display: -webkit-box;
    -webkit-line-clamp: 10;   /* ✅ Giới hạn 10 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    line-height: 1.6;         /* dễ đọc hơn */
    max-height: calc(1.6em * 10); /* fallback cho trình duyệt cũ */
}


/* 🔹 Hover để hiện nút */
.tour-card__media:hover .tour-card__actions {
    opacity: 1 !important;
}

/* 🔹 Hiệu ứng khi hover icon */
.tour-card__actions .btn:hover {
    border-color: #dc3545 !important;
    transform: scale(1.05);
    transition: all 0.2s ease;
}
/* 🔘 Nút wishlist/report chung */
.tour-card__actions .btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;               /* tròn tuyệt đối */
    border: 1px solid #e5e7eb;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;                       /* bỏ padding mặc định */
    line-height: 1;                   /* giúp icon không lệch */
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}
.tour-card__actions .btn.wishlist_icon_active i.bi.bi-heart-fill{
    color: white !important;
}

/* ❤️ Icon ở giữa tuyệt đối */
.tour-card__actions .btn i {
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hiệu ứng hover */
.tour-card__actions .btn:hover {
    background-color: #fff6f6;
    border-color: #dc3545;
    transform: scale(1.05);
}
 



/* ===================================================
   FLATPICKR THEME — 100% DÙNG VAR TỪ THEME TEKINO
=================================================== */
body{
    /* ====== VAR MÀU THEO HỆ THỐNG TEKINO ====== */
    --fp-bg: var(--bg-white);
    --fp-bg-dark: var(--bg-dark);

    --fp-text: var(--bs-body-color);
    --fp-text-muted: var(--secondary-body-color);
    --fp-text-strong: var(--title-color);

    --fp-border: var(--bs-border-color);
    --fp-shadow: var(--box-shadow);

    --fp-overlay-bg: rgba(0, 0, 0, 0.55);

    /* Ngày khả dụng */
    --fp-available-bg: var(--bs-primary);
    --fp-available-bg-hover: var(--bs-primary-dark);
    --fp-available-text: var(--absolute-white);
    --fp-available-shadow: rgba(var(--bs-primary-rgb), 0.25);

    /* Ngày disabled */
    --fp-disabled-bg: var(--bs-light);
    --fp-disabled-text: var(--secondary-body-color);

    /* Today */
    --fp-today-border: var(--bs-border-color);
    --fp-today-text: var(--bs-body-color);
}

/* ===================================================
   NGÀY KHẢ DỤNG (AVAILABLE)
=================================================== */
.flatpickr-day.inRange{
    color: var(--absolute-dark) !important;
}
.flatpickr-day{
    color: var(--fp-text) !important;
}
.flatpickr-day.available-highlight {
    background-color: var(--fp-available-bg) !important;
    color: var(--fp-available-text) !important;
    border-radius: 50% !important;
    font-weight: 600 !important;
    box-shadow: 0 0 0 2px var(--fp-available-shadow) !important;
}

.flatpickr-day.available-highlight:hover {
    background-color: var(--fp-available-bg-hover) !important;
}
.flatpickr-day:hover { 
        color: var(--absolute-dark) !important;

}

/* ===================================================
   NGÀY KHÔNG KHẢ DỤNG (DISABLED)
=================================================== */
.flatpickr-day.disabled-day-custom {
    background: var(--fp-disabled-bg) !important;
    opacity: 0.55 !important;
    color: var(--fp-disabled-text) !important;
    cursor: not-allowed !important;
}

.flatpickr-day.disabled-day-custom:hover {
    background: var(--fp-disabled-bg) !important;
    color: var(--fp-disabled-text) !important;
}

/* ===================================================
   TODAY
=================================================== */
.flatpickr-day.today:not(.available-highlight) {
    border: 1px dashed var(--bs-primary) !important;
    color: var(--bs-primary) !important;
}

/* ===================================================
   OVERLAY FULLSCREEN
=================================================== */
.flatpickr-overlay {
    position: fixed;
    inset: 0;
    background: var(--fp-overlay-bg);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* ===================================================
   CALENDAR WRAPPER
=================================================== */
.flatpickr-wrapper {
    background: var(--fp-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--fp-shadow);
    max-width: 360px;
    width: 90%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.flatpickr-calendar.open {
    background-color: var(--fp-bg);
    border: 1px solid var(--fp-border);
}

/* ===================================================
   HEADER (MONTH, YEAR)
=================================================== */
.flatpickr-months,
.flatpickr-current-month {
    background: var(--fp-bg);
    color: var(--fp-text-strong);
}

.flatpickr-current-month input.cur-year,
.flatpickr-current-month .flatpickr-monthDropdown-months {
    color: var(--fp-text);
}

/* Nút prev/next */
.flatpickr-prev-month,
.flatpickr-next-month {
    fill: var(--fp-text-strong);
    color: var(--fp-text-strong);
    opacity: .9;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    opacity: 1;
    background: rgba(var(--bs-primary-rgb), .15);
    border-radius: 6px;
}
.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month{
    color: var(--absolute-dark) !important;
}
/* ===================================================
   WEEKDAYS
=================================================== */
span.flatpickr-weekday {
    color: var(--fp-text-muted) !Important;
}

/* ===================================================
   FOOTER BUTTONS
=================================================== */
.flatpickr-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    border-top: 1px solid var(--fp-border);
    padding-top: 8px;
}

.flatpickr-footer button {
    background: var(--bs-primary);
    color: var(--absolute-white);
    border-radius: var(--btn-radius);
    padding: .45rem .8rem;
    border: none;
    transition: var(--transition-fast);
}

.flatpickr-footer button:hover {
    background: var(--bs-primary-dark);
    box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), .4);
}

/* Clear Button */
.flatpickr-footer button.flatpickr-clear {
    background: transparent;
    color: var(--fp-text-muted);
}

.flatpickr-footer button.flatpickr-clear:hover {
    background: var(--bs-light);
}

/* ================================================
   FLATPICKR DARK MODE — FIX MÀU CHO ĐẸP NHƯ FIGMA
================================================== */
[theme="dark"] .flatpickr-theme-scope .flatpickr-calendar {
    background: var(--absolute-dark) !important;
    border: 1px solid var(--bs-border-color) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6) !important;
}

[theme="dark"] .flatpickr-theme-scope .flatpickr-days,
[theme="dark"] .flatpickr-theme-scope .flatpickr-innerContainer {
    background: var(--absolute-dark) !important;
}

/* ===== Header ===== */
[theme="dark"] .flatpickr-theme-scope .flatpickr-months,
[theme="dark"] .flatpickr-theme-scope .flatpickr-current-month {
    background: var(--absolute-dark);
    color: var(--absolute-white);
    font-weight: 600;
}

[theme="dark"] .flatpickr-theme-scope .flatpickr-current-month input.cur-year,
[theme="dark"] .flatpickr-theme-scope .flatpickr-current-month .flatpickr-monthDropdown-months {
    color: var(--absolute-white) !important;
}

/* Prev/Next icons */
[theme="dark"] .flatpickr-theme-scope .flatpickr-prev-month,
[theme="dark"] .flatpickr-theme-scope .flatpickr-next-month {
    fill: var(--absolute-white);
    color: var(--absolute-white);
    opacity: .8;
}

[theme="dark"] .flatpickr-theme-scope .flatpickr-prev-month:hover,
[theme="dark"] .flatpickr-theme-scope .flatpickr-next-month:hover {
    opacity: 1;
    background: rgba(var(--bs-primary-rgb), .25);
    border-radius: 8px;
}

/* ===== Weekdays ===== */
[theme="dark"] .flatpickr-theme-scope .flatpickr-weekday {
    color: var(--muted-color) !important;
    opacity: .9;
}

/* ===== Normal day ===== */
[theme="dark"] .flatpickr-theme-scope .flatpickr-day {
    color: var(--absolute-white) !important;
}

/* ===== Hover ===== */
[theme="dark"] .flatpickr-theme-scope .flatpickr-day:hover {
    background: rgba(var(--bs-primary-rgb), 0.35) !important;
    border-color: rgba(var(--bs-primary-rgb), 0.35) !important;
}

/* ===== Selected day ===== */
[theme="dark"] .flatpickr-theme-scope .flatpickr-day.selected,
[theme="dark"] .flatpickr-theme-scope .flatpickr-day.startRange,
[theme="dark"] .flatpickr-theme-scope .flatpickr-day.endRange {
    background: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: var(--absolute-white) !important;
}

/* ===== Range highlight ===== */
[theme="dark"] .flatpickr-theme-scope .flatpickr-day.inRange {
    background: rgba(var(--bs-primary-rgb), 0.25) !important;
    color: var(--absolute-white) !important;
}

/* ===== Disabled days ===== */
[theme="dark"] .flatpickr-theme-scope .flatpickr-day.flatpickr-disabled,
[theme="dark"] .flatpickr-theme-scope .flatpickr-day.disabled,
[theme="dark"] .flatpickr-theme-scope .flatpickr-day.notAllowed {
    color: var(--muted-color) !important;
    background: var(--bg-dark) !important;
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* ===== Today ===== */
[theme="dark"] .flatpickr-theme-scope .flatpickr-day.today:not(.selected):not(.startRange):not(.endRange) {
    border: 1px dashed var(--bs-border-color) !important;
    color: var(--absolute-white) !important;
    background: transparent !important;
}

/* ===== Footer ===== */
[theme="dark"] .flatpickr-theme-scope .flatpickr-footer {
    border-top: 1px solid var(--bs-border-color);
}

[theme="dark"] .flatpickr-theme-scope .flatpickr-footer button {
    color: var(--absolute-white) !important;
    background: var(--bs-primary) !important;
}

[theme="dark"] .flatpickr-theme-scope .flatpickr-footer button:hover {
    background: var(--bs-primary-dark) !important;
}

/* Clear button */
[theme="dark"] .flatpickr-theme-scope .flatpickr-footer button.flatpickr-clear {
    background: transparent !important;
    color: var(--muted-color) !important;
}



/* END detail page  */

.badge-new {
    background: #d1fae5;
    color: #065f46;
    font-weight: 600;
}

/* Badge màu theo quy ước */
.badge-priority {
    background-color: #4CAF50;
    color: #fff;
}

/* ưu tiên */
.badge-urgent {
    background-color: #FF0000;
    color: #fff;
}

/* tuyển gấp */
.badge-partner {
    background-color: #fb7328;
    color: #fff;
}


.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

 
/* Tất cả các CSS tùy chỉnh bên dưới được gói trong #tourFinderScope
                để đảm bảo chúng chỉ áp dụng trong phạm vi của thành phần này.
            */
/* Light/dark ready — no hardcode, all using your provided variables */
#tourFinderScope .container {
    /* max-width: 960px; */
}

/* Card chung */
#tourFinderScope .job-section-card {
    background-color: var(--bg-white);
    border: 1px solid var(--bs-border-color);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--box-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition-fast);
}

#tourFinderScope .job-section-card:hover {
    box-shadow: 0 10px 30px var(--shadow-color);
    transform: translateY(-3px);
}

#tourFinderScope .card-title {
    color: var(--title-color);
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

/* --- Thẻ trái --- */
#tourFinderScope .card-cta-line {
    background-color: var(--bs-light);
    border: 1px solid var(--bs-border-color);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

#tourFinderScope .card-description {
    color: var(--bs-body-color);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
    margin-right: 16px;
}

#tourFinderScope .card-button {
    background-color: var(--bs-primary);
    color: var(--absolute-white);
    font-weight: 500;
    border-radius: 8px;
    padding: 10px 20px;
    transition: var(--transition-fast);
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

#tourFinderScope .card-button:hover {
    background-color: var(--bs-primary-dark);
    box-shadow: var(--box-shadow);
    color: var(--absolute-white);
}

/* --- Thẻ phải --- */
#tourFinderScope .search-input-group {
    position: relative;
    margin-top: auto;
}

#tourFinderScope .search-input-group .form-control {
    background-color: var(--bs-light);
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    height: 50px;
    padding-left: 45px;
    padding-right: 55px;
    font-size: 0.95rem;
    color: var(--title-color);
}

#tourFinderScope .search-input-group .form-control::placeholder {
    color: var(--bs-body-color);
}

#tourFinderScope .search-input-group .form-control:focus {
    background-color: var(--absolute-white);
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.25);
}

#tourFinderScope .pin-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-primary);
    font-size: 1.2rem;
    z-index: 3;
}

#tourFinderScope .search-input-group .search-icon-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--bs-primary);
    color: var(--absolute-white);
    border-radius: 8px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: var(--transition-fast);
    border: none;
}

#tourFinderScope .search-input-group .search-icon-btn:hover {
    background-color: var(--bs-primary-dark);
    box-shadow: var(--box-shadow);
} 