/* ==========================================================================
   TOUR ARCHIVE - STYLES
   ========================================================================== */

/* 0. CSS Variables */
:root {
    --ta-primary:       #ff8f15;
    --ta-text-dark:     #1a1a1a;
    --ta-text-gray:     #666;
    --ta-bg-light:      #f7f8fa;
    --ta-bg-white:      #ffffff;
    --ta-border:        #e8e8e8;
    --ta-radius-lg:     14px;
    --ta-radius-md:     8px;
    --ta-shadow:        0 2px 16px rgba(0,0,0,0.07);
    --ta-shadow-hover:  0 8px 32px rgba(0,0,0,0.13);
}

/* ==========================================================================
   1. Page wrapper
   ========================================================================== */
.qb-tour-archive {
    background-color: var(--ta-bg-light);
    /* Xóa padding/margin Flatsome thêm giữa menu và hero */
    padding-top: 0 !important;
    margin-top:  0 !important;
}

/* ==========================================================================
   2. Hero Banner Slider - Premium
   ========================================================================== */
.ta-hero-wrap {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

@media (min-width: 992px) {
    .ta-hero-wrap {
        height: 500px;
    }
}

.ta-hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ta-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 4s ease-out;
    transform: scale(1.05);
    will-change: opacity, transform;
}

.ta-hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.ta-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.7) 100%
    );
    z-index: 2;
}

.ta-hero-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    color: #fff;
}

.ta-hero-content-box {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ta-hero-breadcrumb {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.45);
    padding: 8px 20px;
    border-radius: 30px;
}

.ta-hero-breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ta-hero-breadcrumb a:hover { color: var(--ta-primary); }
.ta-bc-sep { opacity: 0.6; font-size: 0.85rem; }

.ta-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

@media (max-width: 767px) {
    .ta-hero-title {
        font-size: 2.2rem;
    }
}

.ta-hero-tagline {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
    margin: 0 0 36px;
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

@media (max-width: 767px) {
    .ta-hero-tagline {
        font-size: 1rem;
        margin-bottom: 24px;
    }
}

.ta-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.ta-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 40px;
    padding: 10px 20px;
    font-size: 0.95rem;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.ta-stat-chip:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

.ta-stat-icon { 
    font-size: 1.1rem;
    color: var(--ta-primary);
}

.ta-slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 5;
    pointer-events: none;
}

.ta-slider-arrow {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1.2rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ta-slider-arrow:hover { 
    background: #fff; 
    color: var(--ta-primary);
    transform: scale(1.1);
}

@media (max-width: 767px) {
    .ta-slider-controls { display: none; }
}

.ta-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.ta-dot-btn {
    width: 12px;
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.ta-dot-btn.active,
.ta-dot-btn:hover {
    background: #fff;
    width: 32px;
}

/* ==========================================================================
   3. Main content section (sidebar + grid)
   ========================================================================== */
.ta-main-content-section {
    padding: 40px 0;
}

/* -- Sidebar -- */
.ta-sidebar {
    padding: 0 15px;
    margin-bottom: 30px;
}

.ta-sidebar .bg {
    background: transparent;
    position: sticky;
    top: 100px;
}

.aside-content.aside-cate,
.aside-item.filter-type {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.aside-content.filter-group {
    background: transparent;
    border: none;
    margin-bottom: 0;
}

.title-head, .aside-title {
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    border-bottom: 1px solid #ebebeb;
    background: #fdfdfd;
    position: relative;
    text-transform: capitalize;
    margin: 0;
}

.nav-category {
    padding: 10px 0;
}

.nav-category ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-category .nav-item {
    position: relative;
}

.nav-category .nav-link {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-category .nav-item.active .nav-link,
.nav-category .nav-link:hover {
    color: var(--ta-primary);
}

.nav-category .nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--ta-primary);
}

/* Filters */
.filter-group ul {
    list-style: none;
    margin: 0;
    padding: 15px;
}

.filter-item {
    margin-bottom: 12px;
}

.filter-item:last-child {
    margin-bottom: 0;
}

.filter-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    margin: 0;
}

.filter-item input[type="checkbox"] {
    display: none;
}

.filter-item i.fa {
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    border-radius: 3px;
    display: inline-block;
    margin-right: 10px;
    position: relative;
    background: #fff;
    flex-shrink: 0;
}

.filter-item input[type="checkbox"]:checked + i.fa {
    background: var(--ta-primary);
    border-color: var(--ta-primary);
}

.filter-item input[type="checkbox"]:checked + i.fa::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* -- Main grid area -- */
.ta-main-grid {
    padding: 0 15px;
}

.ta-grid-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}

.ta-result-count {
    flex: 1;
    font-size: 0.9rem;
    color: var(--ta-text-gray);
    font-weight: 500;
}

.ta-sort-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.ta-sort-icon {
    position: absolute;
    left: 12px;
    color: var(--ta-text-gray);
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
}

#ta-sort-select {
    padding: 8px 14px 8px 34px;
    border: 1px solid var(--ta-border);
    border-radius: var(--ta-radius-md);
    outline: none;
    font-size: 0.9rem;
    color: var(--ta-text-dark);
    cursor: pointer;
    background: var(--ta-bg-white);
    box-shadow: var(--ta-shadow);
    margin-bottom: 0 !important;
    line-height: 1.4;
    vertical-align: middle;
}


/* ==========================================================================
   4. Tour Grid & Cards
   ========================================================================== */
.ta-tour-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ==========================================================================
   4. Tour Grid & Cards (List Style)
   ========================================================================== */
.ta-tour-card.list-style {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ebebeb;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.ta-tour-card.list-style:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.ta-card-inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

/* Left: Image */
.ta-card-left {
    flex: 0 0 35%;
    max-width: 35%;
    position: relative;
}

.product-thumbnail {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.product-thumbnail a.image_thumb {
    display: block;
    height: 100%;
}

.product-thumbnail img.ta-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ta-tour-card.list-style:hover .ta-card-image {
    transform: scale(1.05);
}

.ta-badge-smart {
    position: absolute;
    top: 10px;
    left: 10px;
    background-image: url(//bizweb.dktcdn.net/100/512/250/themes/947170/assets/background-smart.png?1780625175154);
    background-repeat: no-repeat;
    font-size: 12px;
    border-radius: 5px;
    color: #fff;
    height: 24px;
    width: 50px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
}

.ta-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.4);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
}

.ta-wishlist-btn:hover {
    background: var(--ta-primary);
}

/* Right: Content */
.ta-card-right {
    flex: 0 0 65%;
    max-width: 65%;
    display: flex;
}

.ta-card-main-info {
    flex: 0 0 60%;
    max-width: 60%;
    padding-right: 20px;
    padding-left: 20px;
}

.product-variant {
    font-size: 13px;
    color: #99a2bc;
    margin-bottom: 5px;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 10px;
}

.product-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.product-name a:hover {
    color: var(--ta-primary);
}

.product-review {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    font-size: 13px;
}

.product-review .stars {
    color: #ffd700;
}

.product-review .stars i.active {
    color: #ffd700;
}

.product-review .stars i {
    color: #e0e0e0;
}

.product-review .review-count {
    color: #99a2bc;
}

.ta-card-main-info .time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #99a2bc;
    margin-bottom: 5px;
}

.ta-card-main-info .time i {
    color: #99a2bc;
    width: 14px;
    text-align: center;
}

.ta-card-main-info .time b {
    color: #333;
    font-weight: 600;
}

/* Action Area */
.ta-card-action {
    flex: 0 0 40%;
    max-width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-left: 20px;
}

.ta-card-action .start {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #99a2bc;
    margin-bottom: 15px;
    justify-content: flex-end;
}

.ta-card-action .start i {
    color: #99a2bc;
}

.ta-card-action .start b {
    color: #333;
    font-weight: 600;
}

.price-box {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price-box .current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--ta-primary);
}

.price-box .compare-price {
    font-size: 13px;
    color: #99a2bc;
    text-decoration: line-through;
}

.view-detail {
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

.view-detail a {
    display: inline-block;
    text-align: center;
    background: transparent;
    color: var(--ta-primary);
    border: 1px solid var(--ta-primary);
    padding: 8px 25px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.view-detail a:hover {
    background: var(--ta-primary);
    color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .ta-card-right {
        flex-direction: column;
    }

    .ta-card-main-info {
        flex: 1;
        max-width: 100%;
        padding-right: 0;
        padding-bottom: 15px;
        margin-bottom: 15px;
        border-bottom: 1px dashed #e0e0e0;
    }
    
    .ta-card-action {
        flex: 1;
        max-width: 100%;
        padding-left: 0;
        align-items: flex-start;
    }
    
    .ta-card-action .start {
        justify-content: flex-start;
    }
    
    .price-box, .view-detail {
        align-items: flex-start;
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .ta-card-inner {
        flex-direction: column;
    }
    
    .ta-card-left {
        flex: 1;
        max-width: 100%;
        height: 220px;
        margin-bottom: 15px;
    }

    .product-name {
        font-size: 15px;
    }

    .price-box .current-price {
        font-size: 16px;
    }
}

/* ==========================================================================
   5. Trust / SEO / FAQ
   ========================================================================== */
.ta-trust-section,
.ta-seo-section,
.ta-faq-section {
    margin-bottom: 50px;
}

.ta-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    background: var(--ta-bg-white);
    padding: 30px;
    border-radius: var(--ta-radius-lg);
    box-shadow: var(--ta-shadow);
}

.ta-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ta-trust-icon { font-size: 1.8rem; color: var(--ta-primary); }
.ta-trust-icon img { width: 36px; height: 36px; }

.ta-trust-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.ta-trust-desc {
    font-size: 0.87rem;
    color: var(--ta-text-gray);
    margin: 0;
}

.ta-section-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 28px;
    text-align: center;
}

.ta-seo-inner {
    background: var(--ta-bg-white);
    padding: 45px 55px;
    border-radius: var(--ta-radius-lg);
    box-shadow: var(--ta-shadow);
    line-height: 1.8;
    color: var(--ta-text-dark);
    font-size: 1.05rem;
}

/* Typography Enhancements */
.ta-seo-inner > *:first-child {
    margin-top: 0;
}

.ta-seo-inner > *:last-child {
    margin-bottom: 0;
}

.ta-seo-inner h1, 
.ta-seo-inner h2, 
.ta-seo-inner h3, 
.ta-seo-inner h4, 
.ta-seo-inner h5, 
.ta-seo-inner h6 {
    color: #1a1a1a;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 0.8em;
    line-height: 1.35;
}

.ta-seo-inner h1 {
    font-size: 2.2rem;
    margin-bottom: 1em;
}

.ta-seo-inner h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
}

.ta-seo-inner h3 {
    font-size: 1.4rem;
    color: var(--ta-primary);
}

.ta-seo-inner p {
    margin-bottom: 1.4em;
    color: #444;
}

.ta-seo-inner a {
    color: var(--ta-primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--ta-primary);
    transition: all 0.3s ease;
}

.ta-seo-inner a:hover {
    border-bottom-style: solid;
    color: #e67e12;
}

/* Lists styling */
.ta-seo-inner ul,
.ta-seo-inner ol {
    margin-bottom: 1.8em;
    padding-left: 0.5em;
}

.ta-seo-inner li {
    margin-bottom: 0.8em;
    color: #444;
}

.ta-seo-inner ul {
    list-style: none;
}

.ta-seo-inner ul li {
    position: relative;
    padding-left: 2em;
}

.ta-seo-inner ul li::before {
    content: "✓";
    color: #fff;
    background: var(--ta-primary);
    font-size: 0.7rem;
    position: absolute;
    left: 0;
    top: 6px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.ta-seo-inner ol {
    counter-reset: ta-counter;
    list-style: none;
    padding-left: 0;
}

.ta-seo-inner ol li {
    counter-increment: ta-counter;
    position: relative;
    padding-left: 2.5em;
}

.ta-seo-inner ol li::before {
    content: counter(ta-counter) ".";
    color: var(--ta-primary);
    font-weight: 700;
    position: absolute;
    left: 0;
    background: #fff3e0;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    top: 2px;
}

/* Blockquotes */
.ta-seo-inner blockquote {
    margin: 2em 0;
    padding: 1.5em 2em;
    background: #fafafa;
    border-left: 4px solid var(--ta-primary);
    border-radius: 0 var(--ta-radius-md) var(--ta-radius-md) 0;
    font-style: italic;
    color: #555;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.ta-seo-inner blockquote p:last-child {
    margin-bottom: 0;
}

/* Tables styling */
.ta-seo-inner table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    border: 1px solid var(--ta-border);
}

.ta-seo-inner th,
.ta-seo-inner td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--ta-border);
    vertical-align: top;
}

.ta-seo-inner thead th,
.ta-seo-inner thead td,
.ta-seo-inner th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #1a1a1a;
}

/* Images */
.ta-seo-inner img {
    max-width: 100%;
    height: auto;
    border-radius: var(--ta-radius-md);
    margin: 2em 0;
    box-shadow: var(--ta-shadow);
    display: block;
}

.ta-seo-inner figure {
    margin: 2em 0;
}

.ta-seo-inner figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--ta-text-gray);
    margin-top: 10px;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ta-seo-inner {
        padding: 28px 24px;
        font-size: 1rem;
    }
    
    .ta-seo-inner h2 {
        font-size: 1.5rem;
    }
    
    .ta-seo-inner h3 {
        font-size: 1.25rem;
    }
    
    .ta-seo-inner table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

.ta-accordion-wrapper { max-width: 780px; margin: 0 auto; }

.ta-accordion-item {
    background: var(--ta-bg-white);
    border-radius: var(--ta-radius-md);
    margin-bottom: 10px;
    box-shadow: var(--ta-shadow);
    overflow: hidden;
}

.ta-accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ta-text-dark);
}

.ta-accordion-icon { transition: transform 0.3s ease; }

.ta-accordion-header[aria-expanded="true"] .ta-accordion-icon {
    transform: rotate(180deg);
}

.ta-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.ta-accordion-body {
    padding: 0 22px 20px;
    color: var(--ta-text-gray);
    line-height: 1.6;
}

/* ==========================================================================
   6. Pagination
   ========================================================================== */
#ta-pagination-container { margin-top: 28px; }

.ta-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.ta-pagination a,
.ta-pagination span.current,
.ta-pagination span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: var(--ta-radius-md);
    background: var(--ta-bg-white);
    border: 1px solid var(--ta-border);
    color: var(--ta-text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.18s;
}

.ta-pagination a:hover {
    border-color: var(--ta-primary);
    color: var(--ta-primary);
}

.ta-pagination span.current {
    background: var(--ta-primary);
    border-color: var(--ta-primary);
    color: #fff;
}

/* ==========================================================================
   7. Reviews Section — Card Slider / Carousel
   ========================================================================== */
.ta-reviews-section {
    background: var(--ta-bg-white);
    padding: 60px 0 50px;
    border-top: 1px solid var(--ta-border);
    overflow: hidden;
}

/* -- Summary Header -- */
.ta-reviews-summary {
    text-align: center;
    margin-bottom: 40px;
}

.ta-reviews-summary .ta-section-title {
    margin-bottom: 16px;
}

.ta-reviews-summary-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ta-reviews-big-score {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.ta-big-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--ta-primary);
    line-height: 1;
}

.ta-big-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ta-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ta-reviews-stars-summary {
    display: flex;
    gap: 4px;
}

.ta-summary-star {
    display: block;
}

.ta-reviews-count-text {
    font-size: 0.92rem;
    color: var(--ta-text-gray);
    margin: 4px 0 0;
}

.ta-reviews-count-text strong {
    color: var(--ta-text-dark);
}

/* -- Slider Wrapper -- */
.ta-reviews-slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

/* -- Slider Track -- */
.ta-reviews-slider {
    overflow: hidden;
    width: 100%;
    border-radius: var(--ta-radius-md);
}

.ta-reviews-track {
    display: flex;
    gap: 20px;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.ta-reviews-track.grabbing {
    cursor: grabbing;
    transition: none;
}

/* -- Review Card -- */
.ta-review-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 0;
    background: var(--ta-bg-white);
    border: 1px solid var(--ta-border);
    border-radius: var(--ta-radius-lg);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.ta-review-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.10);
    border-color: var(--ta-primary);
    transform: translateY(-3px);
}

/* Card Header */
.ta-review-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ta-review-card-avatar-wrap {
    flex-shrink: 0;
}

.ta-review-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ta-border);
}

.ta-review-card-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff8f15, #ffb74d);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

.ta-review-card-meta {
    min-width: 0;
    flex: 1;
}

.ta-review-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ta-text-dark);
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ta-review-card-date {
    font-size: 0.78rem;
    color: var(--ta-text-gray);
}

/* Stars row */
.ta-review-card-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.ta-review-card-score {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ta-text-dark);
    margin-left: 8px;
}

/* Tour Link */
.ta-review-card-tour {
    font-size: 0.8rem;
    color: var(--ta-primary);
    font-weight: 500;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.ta-review-card-tour:hover {
    color: #e07800;
    text-decoration: underline;
}

/* Content */
.ta-review-card-content {
    flex: 1;
    min-height: 0;
}

.ta-review-card-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--ta-text-dark);
    margin: 0;
}

.ta-review-readmore {
    background: none;
    border: none;
    color: var(--ta-primary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 6px;
    transition: color 0.2s;
}

.ta-review-readmore:hover {
    color: #e07800;
    text-decoration: underline;
}

/* Card Gallery */
.ta-review-card-gallery {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.ta-review-card-gallery-img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--ta-border);
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.ta-review-card-gallery-img:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* -- Navigation Arrows -- */
.ta-reviews-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--ta-bg-white);
    border: 2px solid var(--ta-border);
    color: var(--ta-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    padding: 0;
}

/* Force SVG icon size inside arrows */
.ta-reviews-arrow svg {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px;
    min-height: 28px;
    display: block;
    flex-shrink: 0;
}

.ta-reviews-arrow:hover {
    background: var(--ta-primary);
    color: #fff;
    border-color: var(--ta-primary);
    box-shadow: 0 6px 24px rgba(255,143,21,0.35);
    transform: translateY(-50%) scale(1.08);
}

.ta-reviews-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.ta-reviews-arrow:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.ta-reviews-arrow-prev {
    left: 2px;
}

.ta-reviews-arrow-next {
    right: 2px;
}

/* -- Compact Pagination -- */
.ta-reviews-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.ta-pager-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--ta-border);
    background: var(--ta-bg-white);
    color: var(--ta-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.ta-pager-btn svg {
    width: 16px !important;
    height: 16px !important;
    display: block;
}

.ta-pager-btn:hover {
    background: var(--ta-primary);
    color: #fff;
    border-color: var(--ta-primary);
    box-shadow: 0 3px 12px rgba(255,143,21,0.25);
}

.ta-pager-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}

.ta-pager-text {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ta-text-dark);
    min-width: 50px;
    text-align: center;
    letter-spacing: 0.02em;
}

.ta-pager-current {
    color: var(--ta-primary);
    font-size: 1.05rem;
}

/* ==========================================================================
   8. Loading overlay
   ========================================================================== */
.ta-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* ==========================================================================
   9. Responsive
   ========================================================================== */
@media screen and (max-width: 991px) {
    .ta-split-layout {
        flex-direction: column;
    }
    .ta-sidebar {
        width: 100%;
        position: static;
    }

    /* Reviews slider: 2 cards on tablet */
    .ta-review-card {
        flex: 0 0 calc(50% - 10px);
    }

    .ta-reviews-slider-wrap {
        padding: 0 56px;
    }

    .ta-reviews-arrow {
        width: 46px;
        height: 46px;
    }

    .ta-reviews-arrow svg {
        width: 24px !important;
        height: 24px !important;
    }
}

@media screen and (max-width: 768px) {
    .ta-hero-section    { height: 260px; }
    .ta-hero-title      { font-size: 1.8rem; }
    .ta-seo-inner       { padding: 20px; }
    .ta-reviews-section { padding: 40px 0; }

    /* Reviews slider: 1 card on mobile, scrollable */
    .ta-review-card {
        flex: 0 0 calc(85vw - 20px);
    }

    .ta-reviews-slider-wrap {
        padding: 0 16px;
    }

    /* Hide big arrow buttons on mobile — use swipe + pager */
    .ta-reviews-arrow {
        display: none;
    }

    .ta-big-number {
        font-size: 2.4rem;
    }

    .ta-big-label {
        font-size: 0.95rem;
    }

    .ta-reviews-pager {
        margin-top: 20px;
    }

    .ta-pager-btn {
        width: 32px;
        height: 32px;
    }
}

/* Thêm hiệu ứng active/selected cho các tuỳ chọn Tour (Departure Point, Time Slot, Package) */
input[type="radio"].peer:checked + div {
    border-color: #f58220 !important;
    background-color: #fff7ed !important;
    color: #f58220 !important;
    border-width: 2px !important;
    font-weight: 700 !important;
}
