:root {
    --ts-primary: #ed1c24;
    --ts-secondary: #0b5e8c;
    --ts-bg-light: #eef7fd;
    --ts-text-dark: #333;
    --ts-text-muted: #666;
    --ts-white: #ffffff;
    --ts-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --ts-border: #eeeeee;
}

/* --- Canva Premium UI --- */
.ts-premium-header {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
    /* Reduced from 25px */
    height: 450px;
}

.ts-premium-header.no-gallery .ts-header-main {
    flex: 1;
    /* Take full width */
}

.ts-premium-header.no-gallery .ts-header-gallery {
    display: none;
}

.ts-header-main {
    flex: 8.5;
    /* Wider main image */
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.ts-header-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ts-header-main a.fcb-image,
.ts-gallery-item a.fcb-image {
    display: block;
    width: 100%;
    height: 100%;
}

.ts-header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    /* Darker overlay */
    color: #fff;
    pointer-events: none;
    /* Clicks pass through to the image link below */
}

.ts-header-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.ts-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.ts-badge-featured {
    background: #ffc107;
    color: #000;
}

.ts-badge-discount {
    background: #ff4757;
    color: #fff;
}

.ts-header-location {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 1;
    position: relative;
}

.ts-header-title {
    font-size: 38px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    color: #fff;
    /* Ensure white color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.ts-header-gallery {
    flex: 1.5;
    /* Narrower gallery */
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 10px;
}

.ts-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.ts-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ts-gallery-more {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    z-index: 2;
    /* Ensure it's on top of the image */
    pointer-events: none;
    /* Let clicks pass through to the anchor */
}

.ts-slider-trigger {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Main Slider Navigation */
.ts-main-slider .swiper-button-next,
.ts-main-slider .swiper-button-prev {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    color: #fff;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.ts-main-slider:hover .swiper-button-next,
.ts-main-slider:hover .swiper-button-prev {
    opacity: 1;
    background: rgba(255, 255, 255, 0.8);
    color: var(--ts-secondary);
}

.ts-main-slider .swiper-button-next:after,
.ts-main-slider .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.ts-main-slider .swiper-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

/* Info Bar */
.ts-info-bar {
    background: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    display: flex;
    gap: 30px;
    margin-top: 10px;
    margin-bottom: 10px;
    /* Reduced from 15px to narrow gap to content */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.ts-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #555;
    font-weight: 500;
    width: 100%;
}

.ts-info-item:last-child {
    max-width: 300px;
}

.ts-info-item svg {
    width: 20px;
    min-width: 20px;
    height: 20px;
    color: var(--ts-secondary);
}

.ts-info-item strong {
    white-space: nowrap;
}

.ts-rating {
    color: #ffc107;
}

/* 2 Columns Layout */
.ts-content-wrapper {
    display: flex;
    gap: 30px;
}

.ts-main-column {
    flex: 7;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.ts-sidebar-column {
    flex: 3;
}

.ts-sticky-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Sidebar Price Card */
.ts-sidebar-card {
    background: #fff;
    box-shadow: var(--ts-shadow);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.ts-sidebar-price {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.ts-side-old-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 5px;
    display: block;
}

.ts-side-new-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--ts-secondary);
}

.ts-price-unit {
    font-size: 14px;
    color: #666;
    font-weight: 400;
    margin-top: 5px;
    display: block;
}

/* Sidebar Form */
.ts-sidebar-form h4 {
    font-size: 14px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.ts-sidebar-form .ts-form-row {
    margin-bottom: 0px;
}

.ts-sidebar-form label {
    font-size: 13px;
    font-weight: 700;
    color: #444;
    margin-bottom: 8px;
    display: block;
}

.ts-sidebar-form input,
.ts-sidebar-form select,
.ts-sidebar-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fdfdfd;
    font-size: 15px;
}

.ts-sidebar-form .ts-submit-btn {
    width: 100%;
    background: #f39c12;
    color: #fff;
    padding: 4px 12px;
    /* Smaller button */
    border: none;
    border-radius: 12px;
    font-size: 16px;
    /* Smaller font */
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.ts-sidebar-form .ts-submit-btn:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
}

/* Trust Badges */
.ts-trust-badges {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.ts-trust-item {
    font-size: 11px;
    color: #999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
}

.ts-trust-item svg {
    width: 16px;
    height: 16px;
}

/* Section Header */


.ts-section-label {
    font-size: 24px;
    font-weight: 800;
    color: var(--ts-secondary);
}

@media (max-width: 1280px) {
    .ts-card .ts-card-footer {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .hs-book-btn {
        width: 100% !important;
    }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .ts-premium-header {
        height: auto;
        flex-direction: column;
    }

    .ts-header-gallery {
        grid-template-rows: none;
        grid-template-columns: repeat(4, 1fr);
        height: auto;
        aspect-ratio: auto;
        gap: 10px;
    }

    .ts-gallery-item {
        aspect-ratio: 1/1;
    }

    .ts-content-wrapper {
        flex-direction: column;
    }

    .ts-header-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .ts-info-bar {
        flex-wrap: wrap;
        gap: 20px;
        padding: 20px;
    }

    .ts-header-title {
        font-size: 20px;
    }

    .ts-main-slider .swiper-slide img {
        height: 250px !important;
    }
}

.ts-slider-wrapper {
    position: relative;
    max-width: 100%;
    margin: 30px auto;
    padding-bottom: 50px;
    /* Space for pagination */
    overflow: hidden;
    background: transparent;
}



.ts-slider-wrapper .swiper-slide {
    display: flex;
    justify-content: center;
    height: auto;
}

.ts-card {
    width: 100%;
    flex: 1;
    /* Fill the swiper-slide */
    background: var(--ts-white);
    display: flex;
    flex-direction: column;
    box-shadow: var(--ts-shadow);
    border: 1px solid var(--ts-border);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    /* height: 100%; removed to use flex: 1 */
}

@media(min-width: 1024px) {
    .ts-card:hover {
        transform: translateY(-5px);
    }
}

.ts-card-img {
    width: 100%;
    height: 190px;
    background-size: cover;
    background-position: center;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.ts-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 15px;
}

.ts-title {
    font-size: 18px;
    color: var(--ts-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
    margin: 0 0 10px;
}

.ts-meta {
    text-align: left;
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
}

.ts-meta-item {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.ts-meta-item {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.ts-meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #000;
}

.ts-meta-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #000;
    margin-left: 0 !important;
    gap: 10px;
}

.ts-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #000;
    opacity: 0.8;
}

.ts-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    margin-top: auto;
}

.ts-price-box {
    display: flex;
    flex-direction: column;
}

.ts-price-box .ts-price-item {
    color: #d0021b;
    font-size: 24px;
    font-weight: bold;
    margin-top: 2px;
    text-align: left;
}

.ts-price-box .ts-origin-price {
    font-size: 14px;
    color: #333;
    font-weight: bold;
    display: flex;
    white-space: nowrap;
    gap: 10px;
}


.ts-price-label {
    font-size: 16px;
    color: #000;
    font-weight: 600;
}

.ts-price-old {
    text-decoration: line-through;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    margin-top: 2px;
}

.ts-price-new {
    color: var(--ts-primary);
    font-size: 22px;
    font-weight: 600;
}

.ts-btn {
    display: inline-block;
    border: 1px solid var(--ts-primary);
    color: var(--ts-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 10px;
    border-radius: 6px;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
}

.ts-btn:hover {
    background: var(--ts-primary);
    color: var(--ts-white);
    box-shadow: 0 4px 10px rgba(237, 28, 36, 0.3);
}

/* Unified Swiper Controls */
.ts-slider-wrapper .swiper-button-next,
.ts-slider-wrapper .swiper-button-prev {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: var(--ts-secondary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    top: calc(50% - 25px);
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    z-index: 10;
}

.ts-slider-wrapper:hover .swiper-button-next,
.ts-slider-wrapper:hover .swiper-button-prev {
    opacity: 1;
    visibility: visible;
}

.ts-slider-wrapper .swiper-button-next:after,
.ts-slider-wrapper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.ts-slider-wrapper .swiper-button-next:hover,
.ts-slider-wrapper .swiper-button-prev:hover {
    background: var(--ts-secondary);
    color: #fff;
    transform: scale(1.1);
}

.ts-slider-wrapper .swiper-pagination {
    bottom: 10px !important;
}

.ts-slider-wrapper .swiper-pagination-bullet {
    background: #fff;
    opacity: 1;
    width: 10px;
    height: 10px;
    margin: 0 4px !important;
    border: 2px solid #ddd;
    transition: all 0.3s;
}

.ts-slider-wrapper .swiper-pagination-bullet-active {
    background: #000;
    border-color: #000;
}

/* View All link */
.ts-view-all-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.ts-view-all-btn {
    display: inline-block;
    border: 2px solid var(--ts-secondary);
    color: var(--ts-secondary);
    padding: 10px 35px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 25px;
    text-decoration: none;
    background: transparent;
    transition: all 0.3s;
}

.ts-view-all-btn:hover {
    background: var(--ts-secondary);
    color: var(--ts-white);
}

/* Archive Grid Support - Responsive 3 Columns */
.travel-grid {
    display: grid !important;
    gap: 20px !important;
    grid-template-columns: repeat(2, 1fr) !important;
    /* 2 columns on mobile */
    margin: 0px auto !important;
    padding: 0px !important;
}

@media (min-width: 992px) {
    .travel-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 25px !important;
        padding: 0px !important;
    }
}

.card-grid-item {
    flex: none !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    max-width: none !important;
    scroll-snap-align: none !important;
}

.card-grid-item .ts-card-img {
    height: 180px !important;
}

/* Single Post Layout */
.ts-single-wrapper {
    margin: 0px auto;
    padding: 0 0px;
}

.ts-single-top {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 576px) {
    .ts-single-top {
        flex-direction: column;
    }

    .ts-price-box .ts-price-item {
        font-size: 17px;
        white-space: nowrap;
    }

    .ts-price-box .ts-origin-price {
        font-size: 13px;
    }

    .hs-book-btn {
        font-size: 13px !important;
        padding: 4px 10px !important;
    }

    .ts-card .ts-card-footer {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .ts-title {
        font-size: 15px !important;
    }

    .ts-card-content {
        padding: 10px !important;
    }
}

@media (max-width: 410px) {
    .ts-meta-item {
        font-size: 13px;
    }
}

.ts-single-left {
    flex: 1 1 500px;
}

.ts-single-right {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
}

.ts-single-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--ts-shadow);
    overflow: hidden;
}

.ts-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

.ts-single-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--ts-secondary);
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.ts-single-right .ts-meta-list {
    margin-bottom: 10px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.ts-single-right .ts-price-box {
    margin-bottom: 25px;
}

.ts-single-right .ts-price-new {
    font-size: 32px;
}

.ts-single-right .ts-btn {
    padding: 15px 40px;
    font-size: 16px;
    text-align: center;
}

.ts-single-content-area {
    line-height: 1.8;
    color: #444;
    font-size: 16px;
}

.ts-single-content-area h2,
.ts-single-content-area h3 {
    color: var(--ts-secondary);
}

.ts-content-card {
    background: #fff;
    padding: 20px 25px;
    /* Reduced padding */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
    /* Reduced margin */
    border: 1px solid #eee;
}

.ts-content-card .ts-section-title {
    margin-top: 0 !important;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 700;
    color: var(--ts-secondary);
    text-transform: uppercase;
}

/* Pagination Styling */
.ts-pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.ts-pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.ts-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--ts-border);
    border-radius: 5px;
    color: var(--ts-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.ts-pagination .page-numbers:hover {
    background: var(--ts-secondary);
    color: #fff;
}

.ts-pagination .page-numbers.current {
    background: var(--ts-primary);
    color: #fff;
    border-color: var(--ts-primary);
}


.hs-book-btn {
    color: var(--ts-primary);
    background: #fff;
    border: 1px solid var(--ts-primary);
    padding: 4px 12px;
    /* Reduced padding from 15px */
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    display: block;
    text-align: center;
    margin: 0 !important;
    white-space: nowrap;
}


.hs-book-btn:hover {
    background: #d0021b;
    color: #fff;
}

.hs-book-btn.large {
    padding: 5px 30px;
    font-size: 18px;
    background: transparent;
    color: #d0021b;
    border: 1.5px solid #d0021b;
}

.hs-book-btn.large:hover {
    background: #d0021b;
    color: #fff;
}

/* Detail Meta Box Styling */
.ts-detail-meta-box div {
    font-size: 16px;
    line-height: 1.6;
}

.ts-detail-meta-box i {
    text-align: center;
}

/* --- Archive Sidebar Layout --- */
.ts-archive-container {
    margin-top: 20px;
    margin-bottom: 80px;
}

.ts-archive-row {
    display: flex;
    gap: 30px;
}

.ts-archive-sidebar {
    flex: 0 0 280px;
    max-width: 280px;
}

.ts-archive-main {
    flex: 1;
}

.ts-sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--ts-shadow);
    border: 1px solid #f0f0f0;
}

.ts-sidebar-title {
    font-size: 16px;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--ts-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ts-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ts-sidebar-list li {
    margin-bottom: 12px;
    margin-left: 0 !important;
    padding: 0;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 8px;
}

.ts-sidebar-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ts-sidebar-list li a {
    color: #555;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: block;
}

.ts-sidebar-list li.active a,
.ts-sidebar-list li a:hover {
    color: var(--ts-secondary);
    font-weight: 700;
}

.ts-sidebar-list li.active a::before {
    margin-right: 8px;
    color: var(--ts-secondary);
}

@media (max-width: 991px) {
    .ts-archive-row {
        flex-direction: column;
    }

    .ts-archive-sidebar {
        flex: none;
        max-width: 100%;
        width: 100%;
        margin-bottom: 30px;
    }

    .ts-sidebar-list {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    .ts-sidebar-list li {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
        margin-left: 5px !important;
    }

    .ts-sidebar-list li a {
        padding: 8px 15px;
        border-radius: 20px;
    }

    .ts-sidebar-list li.active a {
        background: var(--ts-secondary);
        color: #fff !important;
        padding-left: 15px;
    }

    .ts-sidebar-list li.active a::before {
        display: none;
    }
}