/* Theme Header */
@import url('./assets/css/about-bundle.css');
@import url('./assets/css/services-bundle.css');
@import url('./assets/css/tours-bundle.css');
@import url('./assets/css/custom-tours-bundle.css');
@import url('./assets/css/destination-bundle.css');
@import url('./assets/css/blog-bundle.css');
@import url('./assets/css/global-bundle.css');



/* */
@font-face {
    font-family: 'Switzer';
    src: url('./assets/fonts/Switzer-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Switzer';
    src: url('./assets/fonts/Switzer-VariableItalic.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --color-primary: #3B774B;
    /* Dark green */
    --color-text: #2c3e50;
    --color-text-light: #6c757d;
    --color-cta: #EB5F29;
    /* Orange */
    --color-cta-hover: #cb4c19;
    --color-bg-beige: #F0EDE5;
    /* Beige */
    --color-highlight: #DED931;
    /* Yellow */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-text-dark: #1e293b;
    --color-text-muted: #64748b;
    --color-text-lighter: #94a3b8;
    --border-color: #e5e7eb;
    /* Đường line nhạt */
    --font-primary: 'Switzer', sans-serif;

    /* Font Sizes */
    --fs-h1: 48px;
    --fs-h2: 44px;
    --fs-h3: 32px;
    --fs-xl: 22px;
    --fs-lg: 20px;
    --fs-base: 16px;
    --fs-menu: 18px;
    --fs-btn: 15px;
    --fs-sm: 14px;
    --fs-xs: 12px;

    --container-width: 1440px;
}

@media (max-width: 991px) {
    :root {
        --fs-h1: 40px;
        --fs-h2: 36px;
        --fs-h3: 28px;
    }
}

@media (max-width: 768px) {
    :root {
        --fs-h1: 34px;
        --fs-h2: 30px;
        --fs-h3: 24px;
    }
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-primary);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   Destinations Section
   ========================================== */
.destinations-section {
    padding: 40px 0;
    text-align: center;
}

.destinations-header {
    margin-bottom: 40px;
}

.destinations-subtitle {
    color: var(--color-highlight);
    /* Yellow */
    font-size: var(--fs-lg);
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.destinations-title {
    color: var(--color-primary);
    /* Dark green */
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
}

.destinations-carousel {
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

.dest-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-white);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: var(--color-text);
    transition: all 0.3s ease;
}

.dest-slider-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.dest-slider-btn.prev-btn {
    left: 16px;
}

.dest-slider-btn.next-btn {
    right: 16px;
}

.destinations-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
    padding-bottom: 10px;
}

.destinations-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.destination-card {
    flex: 0 0 calc(25% - 15px);
    min-width: 250px;
    scroll-snap-align: start;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1;
}

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

.destinations-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.destinations-pagination .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background-color: transparent;
    cursor: pointer;
}

.destinations-pagination .dot.active {
    background-color: var(--color-cta);
    /* Orange/Red */
    border-color: var(--color-cta);
}

.destinations-action {
    margin-top: 30px;
}

.btn-view-more {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid var(--color-cta);
    color: var(--color-cta);
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-view-more:hover {
    background-color: var(--color-cta);
    color: #fff;
}

@media (max-width: 992px) {
    .destination-card {
        flex: 0 0 calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .destination-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .destination-card {
        flex: 0 0 100%;
    }
}

/* Utility Classes added during Refactoring */
.mt-20 {
    margin-top: 20px !important;
}

.mt-15 {
    margin-top: 15px !important;
}

.mt-30 {
    margin-top: 30px !important;
}

.mb-25 {
    margin-bottom: 25px !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.color-cta {
    color: var(--color-cta) !important;
}

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

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

.hidden-chapter {
    display: none;
}

.alert-primary {
    border-left-color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 25px;
}

/* Hero Slider Background Image Fix */
.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-bg-slide.active {
    opacity: 1;
}

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

/* Tour Wrapper Fixes */
.active-dest-wrapper {
    display: block !important;
}

.hidden-dest-wrapper {
    display: none !important;
}

/* Tour Card Fixes */
.tour-title a,
.sd-tour-title a {
    color: inherit;
    text-decoration: none;
}

.tour-title a:hover,
.sd-tour-title a:hover {
    color: var(--color-primary);
}

.overview-map-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* Blog Pagination Fix */
.pagination-wrap-centered {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.no-articles-msg {
    text-align: center;
    width: 100%;
    grid-column: 1 / -1;
}

/* cta banner fix */
.cta-banner {
    position: relative;
}

.cta-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.cta-banner .container {
    position: relative;
    z-index: 1;
}

/* Search filter form fix */
.search-filter-form {
    display: contents;
}

.hidden-item {
    display: none !important;
}

.apply-filters-btn {
    width: 100%;
    margin-top: 20px;
}

.search-submit-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #666;
}

.search-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-sort-select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
    cursor: pointer;
    color: #555;
}

.search-no-results {
    width: 100%;
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
}

/* Home video fix */
.home-video-box {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.home-video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.inline-flex-btn {
    display: inline-flex !important;
}
/* =========================================
   MOBILE FIXES (Added via Request)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Add breathing room to container */
    .container, .container-fluid {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    /* 2. Scale down massive titles */
    .hero-title {
        font-size: 26px !important;
        line-height: 1.3 !important;
    }
    
    .destinations-title, 
    .tours-title, 
    .custom-tours-title,
    .about-title,
    .prep-title {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }

    /* 3. Stop carousels from bleeding to the exact screen edge */
    .tours-carousel,
    .destinations-carousel,
    .custom-tours-slider {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    /* 4. Pull in the background so it doesn't touch the edges */
    .custom-tours-bg {
        left: 10px !important;
        right: 10px !important;
        border-radius: 16px !important;
    }
    
        .custom-tours-slider {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

        /* Reduce search placeholder text on mobile */
    .search-input {
        font-size: 14px !important;
    }
    .search-input::placeholder {
        font-size: 14px !important;
    }

    /* Ensure hero content doesn't crash into slider buttons on mobile */
    .hero-content {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }
}

/* =========================================
   HIDE BROWSER SCROLLBAR
   ========================================= */
/* Ẩn thanh cuộn cho Chrome, Safari và Opera */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none !important;
}

/* Ẩn thanh cuộn cho Firefox, IE và Edge */
html, body {
    -ms-overflow-style: none !important;  /* IE và Edge */
    scrollbar-width: none !important;     /* Firefox */
}

/* =========================================
   FIX HERO CONTENT OVERLAPPING BUTTONS
   ========================================= */
@media (max-width: 1650px) {
    .hero-slider-nav {
        padding: 0 20px !important;
    }
}
@media (max-width: 768px) {
    .hero-slider-nav {
        padding: 0 10px !important;
    }
    .hero-content {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }
    .hero-nav-btn {
        width: 36px !important;
        height: 36px !important;
    }
}