/* TravelBook Pro Frontend Styles - V2 (Design Match) */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --travel-primary: #8dc63f;
    /* Green Button/Check */
    --travel-dark: #1f2937;
    /* Headings */
    --travel-text: #6b7280;
    /* Body text */
    --travel-orange: #f59e0b;
    /* Stars/Price */
    --travel-cream: #fffaf0;
    /* Section Backgrounds */
    --travel-border: #e5e7eb;
    --travel-white: #ffffff;
}

body.single-travel_package,
body.post-type-archive-travel_package {
    font-family: 'Outfit', sans-serif;
    color: var(--travel-text);
    background-color: #fdfdfd;
    margin: 0;
}

/* Layout */
.travelbook-single-page,
.travelbook-archive-page {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 20px;
}

.travelbook-layout-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Sidebar Left (Archive Filters) */
.travelbook-sidebar-left {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid var(--travel-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-widget .widget-row {
    margin-bottom: 16px;
}

.search-widget label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--travel-dark);
}

.fake-select,
.fake-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--travel-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--travel-dark);
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

.fake-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

.btn-search {
    width: 100%;
    background: #115e59;
    /* Dark Teal */
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

/* Filters */
.filter-widget h4 {
    margin: 0 0 16px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--travel-dark);
    background: #e5e7eb;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
}

.search-tiny input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--travel-border);
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.checkbox-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.checkbox-list li {
    margin-bottom: 8px;
}

.checkbox-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.show-more {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--travel-primary);
    text-decoration: none;
    font-weight: 500;
}

/* Range Slider Mock */
.range-slider-mock {
    padding: 10px 0;
}

.range-track {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    position: relative;
    margin-bottom: 10px;
}

.range-fill {
    height: 100%;
    background: #f59e0b;
    border-radius: 2px;
    position: absolute;
    top: 0;
    left: 0;
}

/* Thumb mock */
.range-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -4px;
    width: 12px;
    height: 12px;
    background: #f59e0b;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.range-values {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #9ca3af;
}

/* Promo Card */
.sidebar-promo-card {
    background: #eff6ff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    text-align: center;
    padding: 24px;
}

.sidebar-promo-card h5 {
    color: #1e3a8a;
    font-size: 18px;
    margin: 10px 0;
    line-height: 1.3;
    font-weight: 700;
}

.promo-badge {
    background: #ffffff;
    color: #1e3a8a;
    font-weight: 700;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 14px;
}


/* Main Content */
.travelbook-main-content {
    flex: 1;
    min-width: 0;
    /* Default order 1 */
}

/* Sidebar Left (Filters) */
.travelbook-sidebar-left {
    width: 300px;
    flex-shrink: 0;
    /* Default order usually after, but if flex-direction is row, order matters. 
       Let's stick to natural flow unless specifically re-ordered.
    */
}

/* Sidebar Right (Booking) */
.travelbook-sidebar-right {
    width: 350px;
    /* Slightly wider for booking form */
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

/* Sidebar Widgets Override */
.sidebar-widget {
    background: #fff;
    border: 1px solid #eee;
    /* Softer border */
    box-shadow: none;
    /* Cleaner look */
    margin-bottom: 30px;
}

/* Promo Card in Sidebar */
.sidebar-promo-card {
    background: #fffbeb;
    /* Light cream */
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

.sidebar-promo-card h5 {
    font-size: 20px;
    font-weight: 700;
    color: var(--travel-dark);
    line-height: 1.4;
    margin: 15px 0;
}

.sidebar-promo-card .promo-dates {
    background: #fff;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Top Info Bar */
.tb-top-bar-box {
    background: #fff;
    padding: 24px 30px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
    gap: 30px;
    flex-wrap: wrap;
}

.tb-top-bar-box .tb-info-col {
    display: flex;
    flex-direction: column;
    min-width: 100px;
}

.tb-top-bar-box .label {
    font-size: 13px;
    font-weight: 700;
    color: var(--travel-dark);
    margin-bottom: 4px;
}

.tb-top-bar-box .val {
    font-size: 14px;
    font-weight: 400;
    color: #4b5563;
}

.tb-top-bar-box .price-col .price-val {
    color: #d97706;
    /* Orange */
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.tb-top-bar-box .price-col .price-unit {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
    font-weight: 500;
}

/* Archive Grid System (Keep for Archive Page) */
.travelbook-archive-grid {
    display: grid;
    gap: 30px;
}

/* Style 1: Standard Grid (3 Columns) */
.travelbook-archive-grid.style-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .travelbook-archive-grid.style-1 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .travelbook-archive-grid.style-1 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.travelbook-archive-grid.style-1 .tb-card-item {
    flex-direction: column !important;
    height: auto !important;
}

.travelbook-archive-grid.style-1 .tb-card-thumb {
    width: 100% !important;
    height: 220px !important;
}

.travelbook-archive-grid.style-1 .tb-card-price {
    bottom: 15px;
    left: 15px;
}

/* Style 2: List Layout (1 Column, Horizontal Cards) */
.travelbook-archive-grid.style-2 {
    grid-template-columns: 1fr;
}

.travelbook-archive-grid.style-2 .tb-card-item {
    flex-direction: row;
    height: 240px;
}

.travelbook-archive-grid.style-2 .tb-card-thumb {
    width: 320px;
    height: 100%;
}

.travelbook-archive-grid.style-2 .tb-card-details {
    padding: 24px 30px;
}

/* Responsive fix for List view on mobile */
@media (max-width: 768px) {
    .travelbook-archive-grid.style-2 .tb-card-item {
        flex-direction: column;
        height: auto;
    }

    .travelbook-archive-grid.style-2 .tb-card-thumb {
        width: 100%;
        height: 200px;
    }
}

/* Style 3: Masonry/Compact (2 Columns) */
.travelbook-archive-grid.style-3 {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.travelbook-archive-grid.style-3 .tb-card-item {
    flex-direction: column;
    height: auto;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.travelbook-archive-grid.style-3 .tb-card-thumb {
    width: 100%;
    height: 280px;
    border-radius: 16px;
}

.travelbook-archive-grid.style-3 .tb-card-price {
    top: 20px;
    right: 20px;
    bottom: auto;
    left: auto;
    background: rgba(255, 255, 255, 0.95);
    color: var(--travel-dark);
}

.travelbook-archive-grid.style-3 .tb-card-details {
    padding: 20px 10px;
    border-top: none;
}

.tb-card-item {
    background: #fff;
    border: 1px solid var(--travel-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tb-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.tb-card-thumb {
    position: relative;
    overflow: hidden;
}

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

.tb-card-price {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    color: var(--travel-orange);
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tb-card-price .unit {
    font-weight: 400;
    color: #9ca3af;
    font-size: 12px;
}

.tb-card-details {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tb-card-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.tb-card-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    line-height: 1.4;
}

.tb-card-item .tb-card-title a {
    color: var(--travel-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.tb-card-item .tb-card-title a:hover {
    color: var(--travel-primary);
}

.tb-card-rating {
    margin-bottom: auto;
    /* push action to bottom */
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tb-card-rating .stars {
    color: var(--travel-orange);
}

.tb-card-rating .count {
    color: #9ca3af;
}

.tb-card-action .btn-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--travel-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
}

.tb-card-action .btn-view:hover {
    text-decoration: underline;
}

/* Header Info Bar (Single Page) */
.tb-info-bar {
    /* Kept for fallback, but .tb-top-bar-box now replaces this in single */
    display: none;
}

.btn-book-green {
    background: var(--travel-primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(141, 198, 63, 0.3);
    transition: transform 0.2s;
    text-decoration: none;
}

.btn-book-green:hover {
    transform: translateY(-2px);
    background: #7db335;
}

/* Rating & Title Single */
.tb-rating-line {
    color: var(--travel-orange);
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 600;
}

.tb-title {
    font-size: 32px;
    color: var(--travel-dark);
    margin: 0 0 20px 0;
    font-weight: 700;
    line-height: 1.3;
}

/* Description */
.tb-description {
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 32px;
}

/* Main Image / Slider */
.tb-featured-wrapper {
    margin-bottom: 40px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    /* Ensure bullets/arrows are visible */
}

.tb-featured-slider {
    width: 100%;
    /* Define height or aspect ratio */
    height: 480px;
}

@media (max-width: 768px) {
    .tb-featured-slider {
        height: 300px;
    }
}

.tb-featured-slider .swiper-slide {
    width: 100%;
    height: 100%;
}

.tb-featured-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Featured Image Fallback styling (if not slider) */
.tb-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
}

/* Swiper Nav adjustments */
.tb-featured-slider .swiper-button-next,
.tb-featured-slider .swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

.tb-featured-slider .swiper-button-next:after,
.tb-featured-slider .swiper-button-prev:after {
    font-size: 18px;
    font-weight: 700;
}

.tb-featured-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.tb-featured-slider .swiper-pagination-bullet-active {
    background: #fff;
    opacity: 1;
}

/* .tb-main-image-wrapper img { ... } -- old style removed */

/* Sections */
.tb-section {
    margin-bottom: 40px;
}

.tb-section h3 {
    font-size: 20px;
    color: var(--travel-dark);
    margin-bottom: 16px;
    font-weight: 700;
}

/* Cream Boxes */
/* Cream Boxes (Container) */
.tb-cream-box {
    background: var(--travel-cream);
    /* Use the root var for consistency #fffaf0 */
    border-radius: 20px;
    padding: 35px;
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* If inside a cream box, items shouldn't have their own background unless specified */
.highlights-grid.tb-cream-box {
    background: var(--travel-cream);
    padding: 35px;
}

.highlight-item {
    /* If inside cream box, remove item bg? 
       Design shows items might just be text blocks. 
       Let's keep them transparent if inside cream box. 
    */
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.highlight-item h4 {
    margin: 0 0 8px 0;
    color: var(--travel-dark);
    /* Design might show dark title "Adventure & Nature:" then details */
    font-size: 17px;
    font-weight: 700;
}

.highlight-item p {
    margin: 0;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
}

/* Legacy Highlights Box (if used elsewhere) */
.highlights-box .highlight-row {
    margin-bottom: 20px;
}

.highlights-box h5 {
    margin: 0 0 6px 0;
    color: #d97706;
    font-size: 17px;
    font-weight: 700;
}

.highlights-box p {
    margin: 0;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
}

/* Quote */
/* Quote */
.tb-quote-section,
.tb-quote-box {
    display: flex;
    flex-direction: column;
    /* Quote box in template is simpler */
    gap: 15px;
    margin: 40px 0;
    background: white;
    border-left: 6px solid #d97706;
    padding: 25px 30px;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    position: relative;
}

.quote-icon {
    font-size: 40px;
    color: #d97706;
    line-height: 1;
    font-family: serif;
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 10px;
}

.tb-quote-section blockquote,
.tb-quote-box p {
    margin: 0;
    font-size: 18px;
    font-style: italic;
    color: #374151;
    line-height: 1.6;
    font-family: serif;
    position: relative;
    z-index: 1;
}

.tb-quote-section cite,
.tb-quote-box cite {
    font-size: 14px;
    color: #d97706;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-style: normal;
}

/* Inclusions Grid */
.inc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .inc-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.inc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inc-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.5;
}

/* Green Check */
.inc-list.check li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: #8dc63f;
    /* Green circle */
    border-radius: 50%;
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Grey Cross */
.inc-list.cross li::before {
    content: '✖';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: #9ca3af;
    /* Grey circle */
    border-radius: 50%;
    color: white;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Itinerary Timeline */
.timeline-wrap {
    position: relative;
    padding-left: 0;
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

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

/* Vertical Line connecting badges */
.timeline-item::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 20px;
    bottom: -30px;
    width: 2px;
    background: #e5e7eb;
    /* Hide line for last item */
}

.timeline-item:last-child::after {
    display: none;
}


/* Badge Styles */
.day-badge {
    width: 44px;
    height: 44px;
    background: var(--travel-dark);
    /* Dark circle */
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    z-index: 2;
    border: 4px solid #f0fdf4;
    /* Light green ring if needed, or just cream background offset */
    box-shadow: 0 0 0 4px #fff;
    /* White ring spacing */
}

/* Variant: If background is cream, maybe no white ring?
   Let's stick to simple dark badge with gold text? 
   Design implies: Circle with DAY 01
*/

.day-badge {
    background: #1f5043;
    /* Dark Green from logo/theme */
    width: 50px;
    height: 50px;
    border: none;
    box-shadow: none;
}

.day-badge .day-num {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: #ffd700;
    /* Gold number */
}

.day-badge .day-label {
    font-size: 9px;
    text-transform: uppercase;
    line-height: 1;
    margin-top: 2px;
    color: #fff;
    opacity: 0.8;
}

.day-content {
    padding-top: 0;
    background: transparent;
    /* No box here, container has it */
}

.day-content h4 {
    margin: 0 0 8px 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--travel-dark);
}

.day-content p {
    margin: 0;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
}

/* Video */
.tb-video-wrapper {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tb-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Gallery */
.tb-gallery-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gal-thumb img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.2s;
}

.gal-thumb img:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 900px) {
    .travelbook-layout-grid {
        flex-direction: column;
    }

    .travelbook-sidebar-left,
    .travelbook-sidebar-right {
        width: 100%;
        order: 2;
    }

    .travelbook-main-content {
        order: 1;
    }

    .tb-card-item {
        flex-direction: column;
        height: auto;
    }

    .tb-card-thumb {
        width: 100%;
        height: 200px;
    }

    .inclusions-grid-2 {
        grid-template-columns: 1fr;
    }

    .tb-gallery-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .tb-top-bar-box {
        justify-content: center;
        text-align: center;
    }
}

/* Shortcode Styles */
.tb-shortcode-wrapper {
    margin-bottom: 40px;
}

/* Allow Swiper to work even if we mistakenly inherit grid styles */
.tb-shortcode-wrapper.travelbook-archive-grid.tb-layout-carousel {
    display: block !important;
}

/* Package Card */
.travel-package-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.travel-package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.travel-package-card .tb-thumb {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.travel-package-card .tb-thumb img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.travel-package-card:hover .tb-thumb img {
    transform: scale(1.05);
}

.travel-package-card .tb-price-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-weight: 700;
    color: #1f5043;
    font-size: 15px;
    display: flex;
    gap: 4px;
    align-items: center;
    z-index: 2;
}

.travel-package-card .tb-content {
    padding: 20px !important;
}

.travel-package-card h3 {
    margin: 0 0 10px;
}

.travel-package-card h3 a {
    color: #333;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.4;
    transition: color 0.2s;
}

.travel-package-card h3 a:hover {
    color: #1f5043;
}

.travel-package-card .tb-meta {
    margin-top: 12px;
    color: #777;
    font-size: 13px;
    display: flex;
    gap: 15px;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.travel-package-card .tb-meta i {
    color: #1f5043;
    /* Primary color */
    margin-right: 5px;
}

.travel-package-card .tb-meta span {
    display: flex;
    align-items: center;
}

/* Category Card */
.travel-cat-card {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    height: 300px;
    /* Fixed height for consistency */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.travel-cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.travel-cat-card:hover img {
    transform: scale(1.1);
}

.travel-cat-card .cat-overlay {
    position: absolute !important;
    /* Force override */
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 25px;
    z-index: 2;
}

.travel-cat-card h4 {
    color: #fff;
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.travel-cat-card span {
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    transition: background 0.3s;
}

.travel-cat-card:hover span {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive Grid adjustments */
@media (max-width: 991px) {
    .tb-grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .tb-grid-container {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .travel-cat-card {
        height: 250px;
    }
}

/* --- Mobile Filter Toggle & Sidebar --- */
.btn-filter-toggle {
    display: none;
    /* Hidden by default (Desktop) */
    background: #fff;
    border: 1px solid var(--travel-border);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--travel-dark);
    cursor: pointer;
    font-size: 14px;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-filter-toggle:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Tooltip Styles */
.tb-tooltip-container {
    position: relative;
    display: inline-flex;
    cursor: help;
}

.tb-amenity-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Amenity Fallback */
.tb-amenity-fallback {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
}

.tb-tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #1f2937;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 0;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    /* Position above */
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    pointer-events: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tb-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}

.tb-tooltip-container:hover .tb-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* --- Mobile Filter Drawer (Off-Canvas) --- */
@media (max-width: 900px) {
    .btn-filter-toggle {
        display: inline-flex;
    }

    /* Transform Sidebar into Drawer */
    .travelbook-sidebar-left {
        display: block;
        /* Force block to allow transition */
        position: fixed;
        top: 0;
        left: -320px;
        /* Hidden off-screen */
        width: 300px;
        height: 100vh;
        background: #fff;
        z-index: 9999;
        overflow-y: auto;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 20px;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        margin: 0;
        /* Override */
    }

    .travelbook-sidebar-left.active {
        left: 0;
        /* Slide in */
    }

    /* Optional Overlay */
    .travelbook-sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        display: none;
    }

    .travelbook-sidebar-overlay.active {
        display: block;
    }
}

/* Placeholder Thumbnail */
.tb-placeholder-thumb {
    background: #f3f4f6;
    height: 100%;
    width: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

/* Header Styles (moved from inline) */
.tb-archive-header {
    margin-bottom: 30px;
    position: relative;
}

/* Pagination Fallback styles */
.travelbook-pagination-wrapper h2.screen-reader-text {
    display: none;
}

.travelbook-pagination-wrapper .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.travelbook-pagination-wrapper .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: all 0.2s;
    padding: 0 10px;
    background: #fff;
    line-height: normal;
    /* Fix height centering */
}

/* Specific Style for Next/Prev Text Links */
.travelbook-pagination-wrapper .page-numbers.prev,
.travelbook-pagination-wrapper .page-numbers.next {
    border: none;
    background: transparent;
    width: auto;
    padding: 0 10px;
    font-weight: 600;
    color: #1f2937;
}

.travelbook-pagination-wrapper .page-numbers.current {
    background: #115e59;
    /* Matches theme primary */
    color: #fff;
    border-color: #115e59;
}

.travelbook-pagination-wrapper .page-numbers:hover:not(.current) {
    background: #f3f4f6;
    color: #111;
}

/* Ensure Prev/Next hover doesn't have box background if transparent */
.travelbook-pagination-wrapper .page-numbers.prev:hover,
.travelbook-pagination-wrapper .page-numbers.next:hover {
    background: transparent;
    color: #115e59;
}

.travelbook-pagination-wrapper .page-numbers .btn {
    /* Override bootstrap btn inside if needed to be transparent */
    border: none;
    padding: 0;
    background: transparent;
    color: inherit;
}

.tb-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.tb-subtitle {
    color: #777;
    margin: 5px 0 0;
}

/* Meta Item */
.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Dynamic Grid Columns (Overrides) */
/* Mobile (Default < 768px effectively) */
.travelbook-archive-grid.tb-grid-mobile-1 {
    grid-template-columns: 1fr !important;
}

.travelbook-archive-grid.tb-grid-mobile-2 {
    grid-template-columns: repeat(2, 1fr) !important;
}

.travelbook-archive-grid.tb-grid-mobile-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}

/* Desktop (>= 768px) */
@media (min-width: 768px) {
    .travelbook-archive-grid.tb-grid-desktop-1 {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .travelbook-archive-grid.tb-grid-desktop-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .travelbook-archive-grid.tb-grid-desktop-3 {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .travelbook-archive-grid.tb-grid-desktop-4 {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    .travelbook-archive-grid.tb-grid-desktop-5 {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}