﻿/* P2 tour listing — shared TimKiem + DanhMucTour */
body {
            background-color: #f4f6f8;
        }

        .select2-container--default .select2-search--dropdown .select2-search__field {
            border: 1px solid #aaaaaa8c;
            height: 37px;
            border-radius: 8px;
        }

        .search-input-fix {
            padding-left: 45px !important;
        }

        .filter-block {
            background-color: #ffffff;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
            border: 1px solid #e5e7eb;
            box-shadow: 0 2px 8px rgba(0,0,0,0.02);
        }

        .filter-title {
            font-size: 15px;
            font-weight: 700;
            color: #374151;
            margin-bottom: 12px;
        }

        .filter-item-btn {
            transition: all 0.2s;
            border: 1px solid #e5e7eb;
            background: #f9fafb;
            color: #4b5563;
            padding: 3px 10px;
            border-radius: 30px;
            font-size: 12px;
            font-weight: normal;
            text-decoration: none;
            display: inline-block;
            cursor: pointer;
        }

        @media (min-width: 992px) {
            .sticky-wrapper {
                position: -webkit-sticky;
                position: sticky !important;
                top: 100px;
                height: max-content;
                max-height: calc(100vh - 120px);
                overflow-y: auto;
                scrollbar-width: none;
                -ms-overflow-style: none;
            }

                .sticky-wrapper::-webkit-scrollbar {
                    display: none;
                }
        }

        .mobile-filter-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            z-index: 1045;
            opacity: 0;
            visibility: hidden;
            transition: 0.3s;
        }

            .mobile-filter-overlay.active {
                opacity: 1;
                visibility: visible;
            }

        @media (max-width: 991.98px) {
            #filter-sidebar-col {
                position: fixed;
                top: 0;
                left: -100%;
                width: 320px;
                height: 100vh;
                z-index: 1050;
                background: #f4f6f8;
                overflow-y: auto;
                padding: 20px;
                box-shadow: 5px 0 15px rgba(0,0,0,0.1);
                transition: 0.4s ease;
            }

                #filter-sidebar-col.active {
                    left: 0;
                }
        }

        /* CARD TOUR GIAO DIỆN MỚI */
        .tour-card-gold {
            background: #ffffff;
            border-radius: 12px;
            border: 1px solid #e5e7eb;
            box-shadow: 0 2px 8px rgba(0,0,0,0.02);
            overflow: hidden;
            transition: all 0.3s ease;
            text-decoration: none;
            display: flex;
        }

            .tour-card-gold:hover {
                border-color: #d1d5db;
                box-shadow: 0 8px 20px rgba(0,0,0,0.06);
                transform: translateY(-2px);
            }

        .tour-img-wrap {
            position: relative;
            height: 100%;
            min-height: 240px;
            overflow: hidden;
        }

            .tour-img-wrap img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: transform 0.6s ease;
            }

        .tour-card-gold:hover .tour-img-wrap img {
            transform: scale(1.05);
        }

        .img-location-label {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 40px 15px 12px;
            background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
            color: #fff;
            z-index: 5;
        }

            .img-location-label span {
                font-size: 14px;
                padding-bottom: 4px;
                text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
            }

        .badge-tag {
            position: absolute;
            top: 12px;
            right: 12px;
            color: #ffffff;
            font-size: 11px;
            font-weight: 700;
            padding: 5px 14px;
            border-radius: 50px !important;
            z-index: 10;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        }

        .badge-tag-no-shopping {
            overflow: hidden;
            white-space: nowrap;
            width: auto;
            max-width: max-content;
        }

            .badge-tag-no-shopping::after {
                content: '';
                position: absolute;
                top: 0;
                left: -100%;
                width: 45%;
                height: 100%;
                background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.32) 50%, rgba(255, 255, 255, 0) 100%);
                transform: skewX(-22deg);
                animation: shimmer-sweep 5s ease-in-out infinite;
                pointer-events: none;
            }

        .tour-content-wrap {
            padding: 24px;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .tour-category {
            font-size: 12px;
            font-weight: normal;
            color: #9ca3af;
            text-transform: uppercase;
            margin-bottom: 6px;
            letter-spacing: 0.5px;
        }

        .tour-title {
            font-size: 18px;
            font-weight: 700;
            color: #1f2937;
            line-height: 1.4;
            margin-bottom: 16px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .tour-date-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 16px;
            flex-wrap: wrap;
        }

        .tour-date-label {
            font-size: 13px;
            font-weight: 600;
            color: #6b7280;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .date-pill {
            border: 1px solid #fbd38d;
            border-radius: 26px;
            padding: 2px 8px;
            font-size: 11px;
            font-weight: 600;
            color: var(--vt-primary-dark);
            background: #fffdf5;
            white-space: nowrap;
        }

        .tour-meta-row {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            font-weight: normal;
            color: #6b7280;
            margin-bottom: 8px;
        }

            .tour-meta-row i {
                color: #d1d5db;
                width: 16px;
                text-align: center;
            }

        .tour-footer {
            margin-top: auto;
            border-top: 1px dashed #f0f0f0;
            padding-top: 16px;
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
        }

        .tour-airline img {
            height: 20px;
            object-fit: contain;
            filter: grayscale(10%);
        }

        .tour-price {
            font-size: 22px;
            font-weight: 700;
            color: #e11d48;
        }

        @media (max-width: 767.98px) {
            .tour-img-wrap {
                min-height: 200px;
            }

            .tour-content-wrap {
                padding: 16px;
            }

            .tour-title {
                font-size: 16px;
            }

            .tour-price {
                font-size: 20px;
            }

            .tour-card-gold {
                flex-direction: column;
            }
        }

        /* ================= TÙY CHỈNH THANH TÌM KIẾM LIỀN KHỐI ================= */
        .search-bar-unified {
            background-color: #ffffff;
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.1);
            padding: 8px;
        }

        .search-input-unified {
            border: none !important;
            box-shadow: none !important;
            background: transparent !important;
            height: 48px;
            border-radius: 10px !important;
        }

            .search-input-unified:focus {
                outline: none;
            }

        .search-divider {
            width: 1px;
            height: 28px;
            background-color: #e5e7eb;
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            z-index: 10;
        }

        .search-btn-unified {
            height: 48px;
            border-radius: 8px !important;
            font-size: 15px;
            transition: all 0.3s ease;
        }

        .custom-filter-btn, .custom-sort-select {
            padding: 10px 20px !important;
            border-radius: 10px !important;
            font-size: 14.5px;
            height: 48px;
            border: 1px solid #e5e7eb !important;
            background-color: #ffffff;
            transition: all 0.3s ease;
            box-shadow: 0 2px 6px rgba(0,0,0,0.02) !important;
        }

            .custom-filter-btn:hover, .custom-sort-select:hover {
                border-color: var(--vt-primary) !important;
                box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
                color: var(--vt-primary-dark);
            }

        .custom-filter-btn {
            color: #4b5563;
        }

        .custom-sort-select {
            color: #374151;
            cursor: pointer;
        }

        /* Loader Animation */
        .ajax-loader {
            display: none;
            text-align: center;
            padding: 40px 0;
        }

            .ajax-loader.active {
                display: block;
            }

        .btn:hover {
            box-shadow: var(--md3-shadow-1) !important;
            background-color: #ffeb3b0d !important;
        }

        /* =========================================================
           [ĐÃ FIX] CSS CHO DROPDOWN SELECT2 ĐẸP NHƯ ẢNH THIẾT KẾ
           ========================================================= */
        .select2-container--default .select2-selection--single .select2-selection__arrow {
            display: none !important;
        }

        /* 1. ĐỊNH DẠNG Ô ĐỊA ĐIỂM (ddlDestination) NỀN TRẮNG */
        .select2-wrapper-dest .select2-container--default .select2-selection--single {
            background-color: transparent !important;
            border: none !important;
            height: 48px !important;
            display: flex !important;
            align-items: center !important;
            box-shadow: none !important;
        }

            .select2-wrapper-dest .select2-container--default .select2-selection--single .select2-selection__rendered {
                padding-left: 45px !important;
                color: #212529 !important;
                font-size: 16px !important;
                font-weight: 600 !important;
                width: 100%;
            }

        /* 2. ĐỊNH DẠNG Ô SẮP XẾP (ddlSortType) */
        .select2-wrapper-sort .select2-container--default .select2-selection--single {
            background-color: #ffffff !important;
            border: 1px solid #e5e7eb !important;
            border-radius: 10px !important;
            height: 48px !important;
            display: flex !important;
            align-items: center !important;
            box-shadow: 0 2px 6px rgba(0,0,0,0.02) !important;
            transition: all 0.3s ease !important;
        }

        .select2-wrapper-sort .select2-container--default:hover .select2-selection--single,
        .select2-wrapper-sort .select2-container--default.select2-container--focus .select2-selection--single {
            border-color: var(--vt-primary) !important;
            box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
        }

        .select2-wrapper-sort .select2-container--default .select2-selection--single .select2-selection__rendered {
            padding-left: 20px !important;
            padding-right: 35px !important;
            color: #374151 !important;
            font-size: 14.5px !important;
            font-weight: 600 !important;
            width: 100%;
        }

        .select2-wrapper-sort {
            position: relative;
        }

            .select2-wrapper-sort::after {
                content: '\f0d7';
                font-family: 'Font Awesome 6 Free';
                font-weight: 900;
                position: absolute;
                right: 15px;
                top: 50%;
                transform: translateY(-50%);
                color: #6b7280;
                pointer-events: none;
                z-index: 10;
            }

        /* 3. MENU XỔ XUỐNG CỦA CẢ 2 Ô */
        .custom-tour-dropdown {
            border: 1px solid #e2e8f0 !important;
            border-radius: 8px !important;
            box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
            padding: 0 !important;
            overflow: hidden;
            margin-top: 5px;
        }

            .custom-tour-dropdown .select2-results__option {
                padding: 10px 20px !important;
                font-size: 14.5px !important;
                color: #334155 !important;
                background-color: #fff !important;
                transition: all 0.2s ease !important;
                border-bottom: 1px solid #f8fafc;
            }

                .custom-tour-dropdown .select2-results__option:first-child {
                    background-color: #e2e8f0 !important;
                    font-weight: 600 !important;
                    color: #475569 !important;
                }

            .custom-tour-dropdown .select2-results__option--highlighted[aria-selected] {
                background-color: #f1f5f9 !important;
                color: #1e293b !important;
            }

            .custom-tour-dropdown .select2-results__option[aria-selected="true"] {
                background-color: #eff6ff !important;
                color: #1d4ed8 !important;
                font-weight: 600 !important;
            }

            .custom-tour-dropdown .select2-results__group {
                padding: 16px 20px 6px !important;
                font-size: 13.5px !important;
                color: #94a3b8 !important;
                text-transform: uppercase !important;
                font-weight: 700 !important;
                background-color: #fff !important;
                cursor: default !important;
            }

            /* MỤC CHA (option disabled) — tiêu đề nhóm, không cho đưa chuột/chọn */
            .custom-tour-dropdown .select2-results__option[aria-disabled="true"] {
                font-weight: 700 !important;
                color: darkorange !important;
                background-color: #f8fafc !important;
                text-transform: uppercase;
                font-size: 13px !important;
                letter-spacing: 0.02em;
                padding: 12px 20px 6px !important;
                cursor: default !important;
                pointer-events: none !important;
                border-bottom: 1px solid #eef2f6 !important;
            }

                .custom-tour-dropdown .select2-results__option[aria-disabled="true"].select2-results__option--highlighted {
                    background-color: #f8fafc !important;
                    color: darkorange !important;
                }

            .custom-tour-dropdown .select2-results__options::-webkit-scrollbar {
                width: 6px;
            }

            .custom-tour-dropdown .select2-results__options::-webkit-scrollbar-track {
                background: #f1f5f9;
            }

            .custom-tour-dropdown .select2-results__options::-webkit-scrollbar-thumb {
                background: #cbd5e1;
                border-radius: 4px;
            }

        .destination-select2-option {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }

        .destination-select2-text {
            min-width: 0;
        }

        .select2-container--default .select2-selection--single .select2-selection__rendered .destination-select2-option {
            gap: 8px;
        }

/* DanhMucTour-specific */
            a.filter-item-link:hover {
                background: #fff7ed;
                color: #c2410c;
                border-color: #fb923c;
        /* Loader Animation cho AJAX */
        /* Ẩn mũi tên mặc định của Select2 */
        /* 1. ĐỊNH DẠNG CHO Ô CHỌN ĐỊA ĐIỂM (ddlDestination) NỀN TRẮNG */
                padding-left: 45px !important; /* Lùi vào để không đè icon Location */
        .select2-wrapper-dest .select2-container--default.select2-container--focus .select2-selection--single {
        /* 2. ĐỊNH DẠNG CHO Ô SẮP XẾP (ddlSortType) NHƯ MỘT BUTTON */
            padding-right: 35px !important; /* Chừa chỗ cho icon mũi tên */
        /* Mũi tên Dropdown riêng cho ô Sort */
        /* 3. MENU XỔ XUỐNG CỦA CẢ 2 Ô (Dropdown Popup) */
