/* -- ✅ 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);
}

/* ==== 🌙 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;
}

/* ---------- 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: 2.5rem;
    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;
}

.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: 2.5rem;
    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;
}

/* ===== Ngày khả dụng ===== */
        .flatpickr-day.available-highlight {
            background-color: #10b981 !important;
            color: #fff !important;
            font-weight: 600 !important;
            border-radius: 50% !important;
            box-shadow: 0 0 0 2px #10b98133;
        }
        .flatpickr-day.available-highlight:hover {
            background-color: #059669 !important;
        }

        /* ===== Ngày không khả dụng (disabled) ===== */
        .flatpickr-day.disabled-day-custom {
            opacity: 0.55 !important; /* rõ hơn mặc định (0.2) */
            color: #aaa !important;
            cursor: not-allowed !important;
            background: #f9fafb !important;
        }
        .flatpickr-day.disabled-day-custom:hover {
            background: #f9fafb !important;
            color: #aaa !important;
        }

        /* Giữ border ngày hôm nay nhưng nhẹ nhàng hơn */
        .flatpickr-day.today:not(.available-highlight) {
            border: 1px dashed #040404 !important;
            color: #555 !important;
        }

.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;
}

/* ❤️ 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);
}

/* === Fullscreen overlay === */
.flatpickr-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* Container của lịch */
.flatpickr-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 360px;
    width: 90%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Footer nút */
.flatpickr-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}


/* END detail page  */