/**
 * LADIGI Cruise Category UX - Production Stylesheet
 * Scoped strictly to: .tax-product_cat, .cruise-filter-console-wrapper
 * Tone màu chủ đạo: #2469b4 (Xanh biển du lịch Hạ Long)
 */

:root {
    --travel-navy: #2469b4;
    --travel-navy-dark: #1a4f89;
    --travel-blue: #2469b4;
    --travel-blue-light: #eaf2fa;
    --travel-red: #c62828;
    --travel-star: #eab308;
    --travel-bg: #f5f7fa;
    --travel-card-bg: #ffffff;
    --travel-border: #dde3ea;
    --travel-border-focus: #2469b4;
    --travel-text-title: #111827;
    --travel-text-body: #374151;
    --travel-text-muted: #6b7280;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-card: 8px;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 8px 24px rgba(36, 105, 180, 0.12);
    --transition: all 0.2s ease-in-out;
}

/* ==========================================================================
   0. THU GỌN KHOẢNG CÁCH PHÍA TRÊN (BREADCRUMBS -> HỘP BỘ LỌC)
   ========================================================================== */
.tax-product_cat .shop-page-title.page-title {
    margin-bottom: 0 !important;
    min-height: auto !important;
}

.tax-product_cat .page-title-inner {
    min-height: auto !important;
    padding-top: 8px !important;
    padding-bottom: 4px !important;
}

.tax-product_cat .page-title h1.shop-page-title {
    margin-bottom: 2px !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
}

.tax-product_cat .woocommerce-breadcrumb {
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
}

.tax-product_cat .category-page-row {
    padding-top: 4px !important;
}

/* ==========================================================================
   1. BẢNG ĐIỀU KHIỂN BỘ LỌC ĐA CHIỀU (MULTI-FACETED FILTER CONSOLE) - COMPACT
   ========================================================================== */
.cruise-filter-console-wrapper {
    margin: 4px 0 12px 0 !important;
    width: 100%;
}

.cruise-filter-console {
    background: #ffffff;
    border: 1px solid var(--travel-border);
    border-radius: var(--radius-card);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 12px 16px 10px 16px;
}

.filter-console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--travel-border);
    padding-bottom: 6px;
    margin-bottom: 8px;
}

.filter-console-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--travel-navy);
    margin: 0;
}

.filter-console-subtitle {
    font-size: 12px;
    color: var(--travel-text-muted);
    display: block;
    margin-top: 1px;
}

.btn-adv-text-mobile {
    display: none;
}

.btn-toggle-advanced-filters {
    display: none;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid var(--travel-border);
    color: var(--travel-navy);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    height: 26px;
}

.btn-toggle-advanced-filters:hover {
    background: var(--travel-blue-light);
}

.active-count-badge {
    background: var(--travel-navy);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.toggle-arrow {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.btn-toggle-advanced-filters[aria-expanded="true"] .toggle-arrow {
    transform: rotate(180deg);
}

.advanced-filters-collapse {
    display: block;
}

.filter-group-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.filter-group-row:last-of-type {
    margin-bottom: 8px;
}

.filter-label {
    min-width: 105px;
    width: 105px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--travel-text-title);
    padding-top: 0;
    white-space: nowrap;
}

.filter-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    flex: 1;
}

/* Button Filter Items */
.filter-pill {
    background: #ffffff;
    color: var(--travel-text-body);
    border: 1px solid var(--travel-border);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.3;
    min-height: 28px;
    height: 28px;
    user-select: none;
    font-family: inherit;
    outline: none;
}

.filter-pill:hover {
    border-color: var(--travel-navy);
    background: #f8fafc;
    color: var(--travel-navy);
}

.filter-pill.active {
    background: var(--travel-navy);
    color: #ffffff !important;
    border-color: var(--travel-navy);
    font-weight: 600;
}

.filter-pill .pill-badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 600;
}

.filter-pill.active .pill-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Active Filter Chips & Control Bar */
.filter-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid var(--travel-border);
    flex-wrap: wrap;
    gap: 8px;
    min-height: 32px;
}

.filter-left-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.active-filter-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.active-chips-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--travel-text-muted);
}

.chip-tag {
    background: #f1f5f9;
    color: var(--travel-navy);
    border: 1px solid var(--travel-border);
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
}

.chip-tag .chip-remove,
.chip-tag .btn-remove {
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1;
}

.chip-tag .chip-remove:hover,
.chip-tag .btn-remove:hover {
    color: var(--travel-red);
}

.filter-stats-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.result-counter {
    font-size: 12px;
    font-weight: 600;
    color: var(--travel-navy);
    background: #f0f7ff;
    border: 1px solid #d0e4fa;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    height: 26px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.btn-reset-filters {
    background: #ffffff;
    border: 1px solid var(--travel-border);
    color: var(--travel-text-muted);
    padding: 3px 10px !important;
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin: 0 !important;
    height: 26px;
    line-height: 18px;
    text-transform: none !important;
}

.btn-reset-filters:hover {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

/* ==========================================================================
   2. THANH SẮP XẾP NHANH (SORTING ROW)
   ========================================================================== */
.cruise-sorting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.sorting-note {
    font-size: 13px;
    color: var(--travel-text-title);
    font-weight: 600;
}

.sorting-select-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sorting-label {
    font-size: 12.5px;
    color: var(--travel-text-muted);
}

.sorting-select {
    padding: 2px 24px 2px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--travel-border);
    background: #ffffff;
    font-size: 12px;
    font-weight: 500;
    color: var(--travel-text-title);
    outline: none;
    cursor: pointer;
    height: 28px;
}
    gap: 10px;
}

.sorting-note {
    font-size: 14px;
    color: var(--travel-text-title);
    font-weight: 600;
}

.sorting-select-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sorting-label {
    font-size: 13px;
    color: var(--travel-text-muted);
}

.sorting-select {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--travel-border);
    background: #ffffff;
    font-size: 13px;
    font-weight: 500;
    color: var(--travel-text-title);
    outline: none;
    cursor: pointer;
}

.sorting-select:focus {
    border-color: var(--travel-navy);
}

/* ==========================================================================
   3. NÂNG CẤP THẺ SẢN PHẨM FLATSOME & WOOCOMMERCE
   ========================================================================== */
.tax-product_cat .products.row .product-small.col {
    margin-bottom: 24px;
}

.tax-product_cat .product-small.box,
.cruise-card {
    background: var(--travel-card-bg) !important;
    border: 1px solid var(--travel-border) !important;
    border-radius: var(--radius-card) !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-card) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    transition: var(--transition) !important;
    position: relative;
}

.tax-product_cat .products.row .product-small.col:hover .product-small.box,
.cruise-card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: var(--shadow-hover) !important;
    transform: translateY(-4px) !important;
}

.tax-product_cat .products.row .product-small.col.is-hidden,
.cruise-card.is-hidden {
    display: none !important;
}

/* Khung ảnh & Badges */
.tax-product_cat .product-small .box-image,
.card-image-box {
    position: relative !important;
    height: 220px !important;
    overflow: hidden !important;
    background: #f1f5f9;
}

.tax-product_cat .product-small .box-image a,
.card-image-box a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.tax-product_cat .product-small .box-image img,
.card-image-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

.tax-product_cat .product-small.col:hover .box-image img,
.cruise-card:hover .card-image-box img {
    transform: scale(1.05) !important;
}

/* Sửa triệt để CSS Hack của nhãn Bữa ăn & Giảm giá */
.tax-product_cat .thongsophong.p-meal_bao_gom,
.badge-floating-meal {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    transform: none !important;
    padding: 0 !important;
    z-index: 3 !important;
    pointer-events: none;
}

.tax-product_cat .thongsophong.p-meal_bao_gom > p,
.badge-floating-meal {
    background: rgba(15, 23, 42, 0.85) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    padding: 2px 8px !important;
    border-radius: var(--radius-sm) !important;
    margin: 0 !important;
}

.tax-product_cat .badge-container {
    top: 10px !important;
    left: 10px !important;
    z-index: 3 !important;
}

.tax-product_cat .badge-inner.secondary.on-sale,
.badge-floating-sale {
    background: var(--travel-red) !important;
    border-radius: var(--radius-sm) !important;
    padding: 2px 8px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.badge-port-route {
    position: absolute;
    bottom: 8px;
    left: 10px;
    background: rgba(15, 23, 42, 0.75);
    color: #f8fafc;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    z-index: 2;
}

/* Thân Thẻ Sản Phẩm */
.tax-product_cat .product-small .box-text,
.card-content {
    padding: 16px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.tax-product_cat .product-title a,
.card-title a {
    color: var(--travel-text-title) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 44px !important;
    transition: color 0.2s !important;
}

.tax-product_cat .product-small.col:hover .product-title a,
.cruise-card:hover .card-title a {
    color: var(--travel-navy) !important;
}

/* Spec Chips */
.tax-product_cat .thongtindm.thongtin_day,
.card-spec-chips {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin: 8px 0 !important;
    padding: 0 !important;
}

.tax-product_cat .thongsophong:not(.p-meal_bao_gom),
.spec-chip {
    background: #f8fafc !important;
    border: 1px solid var(--travel-border) !important;
    padding: 2px 6px !important;
    border-radius: var(--radius-sm) !important;
    font-size: 11.5px !important;
    color: var(--travel-text-muted) !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.tax-product_cat .thongsophong:not(.p-meal_bao_gom) img {
    display: none !important; /* Loại bỏ icon webp inline rác */
}

/* Thời lượng tour */
.tax-product_cat .detail_product_duration,
.card-duration-line {
    font-size: 12.5px !important;
    color: var(--travel-navy) !important;
    font-weight: 600 !important;
    margin: 6px 0 10px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.tax-product_cat .detail_product_duration img {
    display: none !important;
}

.tax-product_cat .detail_product_duration > p {
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

/* Tiện ích - Loại bỏ chuỗi icon trùng ID */
.tax-product_cat #right-styletour {
    display: none !important; /* Ẩn chuỗi icon trùng ID vi phạm W3C */
}

/* Khối Giá & CTA */
.tax-product_cat .price-wrapper,
.card-footer {
    margin-top: auto !important;
    border-top: 1px solid var(--travel-border) !important;
    padding-top: 12px !important;
}

.tax-product_cat .price-wrapper .price,
.card-price-row {
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    margin-bottom: 10px !important;
}

.tax-product_cat .price del .amount,
.price-original {
    font-size: 12px !important;
    color: var(--travel-text-muted) !important;
    text-decoration: line-through !important;
}

.tax-product_cat .price ins .amount,
.price-sale {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--travel-red) !important;
    text-decoration: none !important;
}

/* Nút hành động CTA kép */
.cruise-card-actions,
.card-actions {
    display: flex !important;
    gap: 8px !important;
    margin-top: 6px !important;
}

.cruise-btn-detail,
.btn-card-detail,
.btn-action-primary {
    display: none !important;
}

.cruise-btn-consult,
.btn-card-consult,
.btn-action-zalo {
    background: var(--travel-navy) !important;
    color: #ffffff !important;
    border: 1px solid var(--travel-navy) !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
}

.cruise-btn-consult:hover,
.btn-card-consult:hover,
.btn-action-zalo:hover {
    background: var(--travel-navy-dark) !important;
    border-color: var(--travel-navy-dark) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   4. BẢNG BIỂU RESPONSIVE & SEO THU GỌN
   ========================================================================== */
.cruise-table-scroll-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 16px 0 !important;
    border: 1px solid var(--travel-border) !important;
    border-radius: var(--radius-sm) !important;
}

.cruise-table-scroll-wrapper table {
    width: 100% !important;
    border-collapse: collapse !important;
    min-width: 600px !important;
    font-size: 13.5px !important;
    margin: 0 !important;
}

.cruise-table-scroll-wrapper th,
.cruise-table-scroll-wrapper tr:first-child td {
    background: #f1f5f9 !important;
    color: var(--travel-navy) !important;
    font-weight: 700 !important;
    text-align: left !important;
    padding: 10px 14px !important;
    border-bottom: 2px solid var(--travel-border) !important;
}

.cruise-table-scroll-wrapper td {
    padding: 10px 14px !important;
    border-bottom: 1px solid var(--travel-border) !important;
    color: var(--travel-text-body) !important;
}

.cruise-table-scroll-wrapper tr:nth-child(even) td {
    background-color: #fbfcfd !important;
}

.cruise-table-hint,
.table-swipe-hint {
    display: none;
    font-size: 12px;
    color: var(--travel-text-muted);
    font-style: italic;
    margin-bottom: 6px;
}

/* SEO Collapsible */
.cruise-seo-collapsible {
    position: relative;
    max-height: 380px;
    overflow: hidden;
    max-width: 100%;
    transition: max-height 0.4s ease;
}

.cruise-seo-collapsible.is-expanded {
    max-height: none !important;
    overflow: visible;
}

.cruise-seo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
    pointer-events: none;
}

.cruise-seo-collapsible.is-expanded .cruise-seo-overlay {
    display: none;
}

.cruise-seo-toggle-btn-wrap,
.cruise-seo-btn-wrap {
    text-align: center;
    margin-top: 16px;
}

.cruise-seo-toggle-btn,
.btn-seo-toggle {
    background: #ffffff !important;
    border: 1px solid var(--travel-border) !important;
    color: var(--travel-navy) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    padding: 8px 20px !important;
    border-radius: var(--radius-sm) !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    box-shadow: none !important;
}

.cruise-seo-toggle-btn:hover,
.btn-seo-toggle:hover {
    background: #f8fafc !important;
    border-color: var(--travel-navy) !important;
}

/* ==========================================================================
   5. POPUP BÁO GIÁ NHANH & STICKY MOBILE BAR
   ========================================================================== */
.cruise-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cruise-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.cruise-modal-card {
    background: #ffffff;
    border-radius: var(--radius-card);
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
}

.cruise-modal-header {
    background: var(--travel-navy);
    color: #ffffff;
    padding: 16px 20px;
    position: relative;
}

.cruise-modal-header h3 {
    color: #ffffff !important;
    font-size: 16px !important;
    margin: 0 0 4px 0 !important;
    font-weight: 700;
}

.cruise-modal-header p {
    color: #dbeafe;
    font-size: 12.5px;
    margin: 0;
}

.cruise-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.cruise-modal-body {
    padding: 20px;
}

.cruise-form-group {
    margin-bottom: 12px;
}

.cruise-form-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
    color: var(--travel-text-title);
}

.cruise-form-group label .required {
    color: var(--travel-red);
}

.cruise-form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--travel-border);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    outline: none;
    box-sizing: border-box;
}

.cruise-form-control:focus {
    border-color: var(--travel-navy);
}

.cruise-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.cruise-btn-submit-zalo {
    background: #059669;
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.cruise-btn-submit-zalo:hover {
    background: #047857;
}

.cruise-btn-call-hotline {
    background: #f8fafc;
    color: var(--travel-navy) !important;
    border: 1px solid var(--travel-border);
    padding: 9px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    text-decoration: none;
}

/* Sticky Mobile Bar */
.cruise-sticky-mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--travel-border);
    z-index: 99999;
    padding: 8px 12px;
    display: flex;
    gap: 8px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}

.cruise-sticky-btn {
    flex: 1;
    padding: 8px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
}

.cruise-sticky-btn.btn-call {
    background: var(--travel-red);
    color: #ffffff !important;
}

.cruise-sticky-btn.btn-zalo {
    background: var(--travel-navy);
    color: #ffffff !important;
}

.cruise-sticky-btn.btn-quote {
    background: #059669;
    color: #ffffff !important;
    border: none;
}

@media (min-width: 769px) {
    .cruise-sticky-mobile-bar {
        display: none !important;
    }
}

/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS (Flatsome Theme Grid Adjustments)
   ========================================================================== */
@media (max-width: 992px) {
    .tax-product_cat .products.row.medium-columns-1 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    .tax-product_cat .products.row .product-small.col {
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 74px !important;
    }

    .cruise-table-hint,
    .table-swipe-hint {
        display: block;
        font-size: 12px;
        color: var(--travel-navy);
        background: #eff6ff;
        padding: 8px 12px;
        border-radius: 4px;
        margin-bottom: 12px;
        border-left: 3px solid var(--travel-navy);
    }

    .btn-adv-text-mobile {
    display: none;
}

.btn-toggle-advanced-filters {
        display: inline-flex !important;
    }

    .btn-adv-text-desktop {
        display: none !important;
    }

    .btn-adv-text-mobile {
        display: inline !important;
    }

    /* 1. Hộp lọc chống tràn tuyệt đối trên di động */
    .cruise-filter-console-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 4px 0 10px 0 !important;
        box-sizing: border-box !important;
    }

    .cruise-filter-console {
        padding: 10px 12px !important;
        border-radius: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* 2. Header & Nút Bộ lọc không vỡ chữ */
    .filter-console-header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 8px !important;
        padding-bottom: 6px !important;
        width: 100% !important;
    }

    .filter-console-header > div:first-child {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .filter-console-title {
        font-size: 13.5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin: 0 !important;
    }

    .filter-console-subtitle {
        font-size: 11px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin-top: 1px !important;
    }

    .btn-toggle-advanced-filters {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        padding: 4px 8px !important;
        height: 28px !important;
        min-height: 28px !important;
        max-height: 28px !important;
        font-size: 11.5px !important;
        border-radius: 5px !important;
        line-height: 1 !important;
    }

    .btn-toggle-advanced-filters .filter-icon {
        width: 12px !important;
        height: 12px !important;
        flex-shrink: 0 !important;
    }

    .btn-toggle-advanced-filters .toggle-arrow {
        font-size: 10px !important;
        margin-left: 2px !important;
    }

    /* 3. Hàng Thời lượng tour cuộn ngang mượt mà bên trong hộp, không tràn viền */
    .filter-group-primary {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-bottom: 6px !important;
        box-sizing: border-box !important;
    }

    .filter-group-primary .filter-label {
        align-self: flex-start !important;
        text-align: left !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #1e293b !important;
        margin-bottom: 4px !important;
        width: auto !important;
        min-width: 0 !important;
        padding: 0 !important;
    }

    .scrollable-pills {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 6px !important;
        padding: 2px 2px 6px 2px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        scrollbar-width: none !important;
    }

    .scrollable-pills::-webkit-scrollbar {
        display: none !important;
    }

    .scrollable-pills .filter-pill {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        font-size: 12px !important;
        padding: 4px 9px !important;
        height: 28px !important;
        min-height: 28px !important;
        border-radius: 5px !important;
    }

    /* 4. Bộ lọc nâng cao khi mở rộng */
    .advanced-filters-collapse {
        display: none;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-top: 8px !important;
        border-top: 1px dashed var(--travel-border) !important;
        margin-top: 6px !important;
    }

    .advanced-filters-collapse.is-open {
        display: block !important;
        animation: fadeIn 0.2s ease-in-out;
    }

    .advanced-filters-collapse .filter-group-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
        margin-bottom: 6px !important;
        gap: 4px !important;
    }

    .advanced-filters-collapse .filter-label {
        font-size: 12px !important;
        font-weight: 700 !important;
        width: auto !important;
        min-width: 0 !important;
        padding: 0 !important;
    }

    .advanced-filters-collapse .filter-pills-wrap {
        width: 100% !important;
        gap: 5px !important;
    }

    .advanced-filters-collapse .filter-pill {
        font-size: 11.5px !important;
        padding: 3px 8px !important;
        height: 26px !important;
        min-height: 26px !important;
    }

    /* 5. Thanh chân hộp lọc */
    .filter-control-bar {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        margin-top: 4px !important;
        padding-top: 6px !important;
        gap: 6px !important;
        box-sizing: border-box !important;
    }

    .filter-left-info {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .result-counter {
        font-size: 11.5px !important;
        height: 26px !important;
        padding: 2px 7px !important;
        white-space: nowrap !important;
    }

    .btn-reset-filters {
        font-size: 11.5px !important;
        height: 26px !important;
        padding: 2px 8px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }

    /* 6. Thanh Sắp xếp phía dưới */
    .cruise-sorting-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        margin-top: 6px !important;
        margin-bottom: 10px !important;
    }

    .sorting-select-wrap {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
    }

    .sorting-select {
        flex: 1 !important;
        margin-left: 8px !important;
    }

    .cruise-form-control {
        font-size: 16px !important; /* Ngăn iOS Safari tự zoom khi focus */
    }

    .cruise-form-row {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .tax-product_cat .card-actions-wrapper,
    .cruise-card .card-actions {
        display: flex !important;
        justify-content: flex-end !important;
    }

    .btn-action-zalo,
    .btn-card-consult {
        min-height: 40px !important;
        font-size: 13px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 6px 14px !important;
    }
}

@media (max-width: 600px) {
    .tax-product_cat .products.row.small-columns-1 {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .tax-product_cat .product-small .box-image {
        height: 195px !important;
    }
}

@media (max-width: 480px) {
    .tax-product_cat .card-actions-wrapper,
    .cruise-card .card-actions {
        width: 100% !important;
        display: block !important;
    }

    .btn-action-zalo,
    .btn-card-consult {
        width: 100% !important;
        min-height: 40px !important;
        font-size: 13px !important;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   FLATSOME WOOCOMMERCE PRODUCT CARD LUXURY OTA TRANSFORMATION
   ========================================================================== */
.tax-product_cat #right-styletour {
    display: none !important;
}

.tax-product_cat .star-rating {
    display: none !important;
}

.tax-product_cat .product-small.col {
    margin-bottom: 24px;
}

.tax-product_cat .product-small.col .col-inner {
    background: #ffffff !important;
    border: 1px solid var(--travel-border) !important;
    border-radius: var(--radius-card) !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-card) !important;
    transition: var(--transition) !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    height: 100% !important;
}

.tax-product_cat .product-small.col:hover .col-inner {
    transform: translateY(-3px) !important;
    box-shadow: var(--shadow-hover) !important;
    border-color: #c9dff5 !important;
}

/* Image */
.tax-product_cat .product-small.box {
    width: 100% !important;
}

.tax-product_cat .has-equal-box-heights .box-image,
.tax-product_cat .product-small .box-image,
.tax-product_cat .product-small .image-fade_in_back,
.tax-product_cat .product-small .image-fade_in_back a {
    width: 100% !important;
    height: 220px !important;
    position: relative !important;
    overflow: hidden !important;
    background: #f1f5f9 !important;
    display: block !important;
    padding-top: 0 !important;
}

.tax-product_cat .product-small .box-image img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

.tax-product_cat .product-small.col:hover .box-image img {
    transform: scale(1.05) !important;
}

/* Badges on image */
.tax-product_cat .thongsophong.p-meal_bao_gom {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: rgba(15, 23, 42, 0.85) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    padding: 3px 8px !important;
    border-radius: var(--radius-sm) !important;
    z-index: 5 !important;
    margin: 0 !important;
    transform: none !important;
}

.tax-product_cat .thongsophong.p-meal_bao_gom p {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
}

.tax-product_cat .badge-container {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    margin: 0 !important;
    z-index: 5 !important;
}

.tax-product_cat .badge-circle {
    border-radius: var(--radius-sm) !important;
    height: auto !important;
    width: auto !important;
    padding: 2px 8px !important;
    background: var(--travel-red) !important;
}

.tax-product_cat .badge-inner {
    border-radius: var(--radius-sm) !important;
    height: auto !important;
    width: auto !important;
    padding: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

.badge-port-route {
    position: absolute !important;
    bottom: 8px !important;
    left: 10px !important;
    background: rgba(15, 23, 42, 0.75) !important;
    color: #f8fafc !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    padding: 2px 7px !important;
    border-radius: var(--radius-sm) !important;
    z-index: 5 !important;
}

/* Body / Box text */
.tax-product_cat .box-text {
    padding: 16px !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    text-align: left !important;
}

.tax-product_cat .title-wrapper {
    height: auto !important;
    margin-bottom: 8px !important;
}

.tax-product_cat .product-title {
    height: auto !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 0 6px !important;
    text-align: left !important;
}

.tax-product_cat .product-title a {
    color: var(--travel-navy) !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

.tax-product_cat .product-title a:hover {
    color: var(--travel-navy-dark) !important;
}

.card-star-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 12px;
}

.card-star-rating .stars {
    color: var(--travel-star);
    font-size: 13px;
    letter-spacing: 1px;
}

.card-star-rating .star-label {
    color: var(--travel-text-muted);
    font-weight: 500;
}

/* Price wrapper */
.tax-product_cat .price-wrapper {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

/* Spec chips */
.tax-product_cat .thongtindm {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    margin-bottom: 8px !important;
}

.tax-product_cat .thongsophong:not(.p-meal_bao_gom) {
    font-size: 11.5px !important;
    color: #475569 !important;
    background: #f1f5f9 !important;
    padding: 2px 7px !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.tax-product_cat .thongsophong .span-svg {
    display: none !important;
}

/* Duration */
.tax-product_cat .main_product_duration {
    font-size: 13px !important;
    color: var(--travel-text-body) !important;
    margin-bottom: 10px !important;
}

.tax-product_cat .detail_product_duration {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.tax-product_cat .detail_product_duration img {
    display: none !important;
}

.tax-product_cat .detail_product_duration p {
    margin: 0 !important;
    font-size: 13px !important;
}

.tax-product_cat .detail_product_duration::before {
    content: 'Lịch trình: ';
    font-weight: 600;
    color: var(--travel-text-title);
}

/* Amenities */
.tax-product_cat .card-amenities {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    margin-bottom: 16px !important;
}

.tax-product_cat .amenity-tag {
    font-size: 11px !important;
    color: var(--travel-text-muted) !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    padding: 1px 6px !important;
    border-radius: var(--radius-sm) !important;
}

/* Price */
.tax-product_cat .price {
    margin-top: auto !important;
    padding-top: 10px !important;
    border-top: 1px dashed var(--travel-border) !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 6px !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    color: var(--travel-navy) !important;
}

.tax-product_cat .price del {
    font-size: 13px !important;
    color: var(--travel-text-muted) !important;
    font-weight: 400 !important;
}

.tax-product_cat .price ins {
    text-decoration: none !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    color: var(--travel-navy) !important;
}

.tax-product_cat .price::after {
    content: '/ khách';
    font-size: 11.5px;
    color: var(--travel-text-muted);
    font-weight: 400;
}

/* CTA Button */
.tax-product_cat .card-actions-wrapper {
    margin-top: 12px !important;
    width: 100% !important;
}

.tax-product_cat .btn-card-consult {
    width: 100% !important;
    background: var(--travel-navy) !important;
    color: #ffffff !important;
    border: 1px solid var(--travel-navy) !important;
    padding: 8px 14px !important;
    border-radius: var(--radius-sm) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: var(--transition) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    text-decoration: none !important;
}

.tax-product_cat .btn-card-consult:hover {
    background: var(--travel-navy-dark) !important;
    border-color: var(--travel-navy-dark) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   SEO SECTION & RESPONSIVE TABLES LUXURY STYLING
   ========================================================================== */
.cruise-seo-section {
    background: #ffffff !important;
    border: 1px solid var(--travel-border) !important;
    border-radius: var(--radius-card) !important;
    padding: 28px !important;
    margin: 36px 0 !important;
    box-shadow: var(--shadow-card) !important;
    overflow: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
}

.cruise-seo-section h2 {
    color: var(--travel-navy) !important;
    font-size: 20px !important;
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    border-bottom: 1px solid var(--travel-border) !important;
    padding-bottom: 8px !important;
}

.cruise-seo-collapsible {
    position: relative !important;
    max-height: 380px !important;
    overflow: hidden !important;
    max-width: 100% !important;
    transition: max-height 0.4s ease !important;
}

.cruise-seo-collapsible.is-expanded {
    max-height: none !important;
    overflow: visible !important;
}

.cruise-seo-overlay {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 80px !important;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 100%) !important;
    pointer-events: none !important;
}

.cruise-seo-collapsible.is-expanded .cruise-seo-overlay {
    display: none !important;
}

.cruise-seo-btn-wrap {
    text-align: center !important;
    margin-top: 16px !important;
}

.btn-seo-toggle {
    background: #ffffff !important;
    border: 1px solid var(--travel-border) !important;
    color: var(--travel-navy) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    padding: 8px 20px !important;
    border-radius: var(--radius-sm) !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
}

.btn-seo-toggle:hover {
    background: #f8fafc !important;
    border-color: var(--travel-navy) !important;
}

.table-swipe-hint {
    display: block !important;
    font-size: 12px !important;
    color: var(--travel-navy) !important;
    background: #eff6ff !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    margin-bottom: 12px !important;
    border-left: 3px solid var(--travel-navy) !important;
}

.swipe-hint-badge {
    font-weight: 700 !important;
    color: var(--travel-navy) !important;
    margin-right: 4px !important;
}
