/*
 Theme Name:   Travelicious Child
 Theme URI:    http://travelicious.bold-themes.com
 Description:  Travelicious child theme
 Author:       BoldThemes
 Author URI:   http://bold-themes.com
 Template:     travelicious
 Version:      1.0.0
 Tags:         one-column, right-sidebar, custom-menu, featured-images, sticky-post, theme-options, threaded-comments, translation-ready
 Text Domain:  travelicious-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */

/* Ensure child theme CSS loads after parent theme */
.btTourList, .tour_search, .category-filter, .destination-filter, .layout-switcher {
    box-sizing: border-box;
}

/* Search Form */
.btWithSidebar .tour_search .btSearchToursRow .btSearchField {
    max-width: 66.6666% !important;
}
.btWithSidebar .tour_search .btSearchToursRow .btSearchField.btSearchButton {
    max-width: 33.333333% !important;
}
.tour_search .btSearchToursRow .btSearchField button {
    width: 100%;
    padding: 10px;
    background: #F5A623;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}
.tour_search .btSearchToursRow .btSearchField button:hover {
    background: #e69500;
}

/* Category and Destination Filter */
.category-filter.btCategories, .destination-filter.btCategories {
    margin: 20px 0;
}
.btCategories ul.btCategoryList {
    list-style: none;
    padding: 0;
}
.btCategories li.btSingleCategory {
    margin-bottom: 10px;
}
.btCategories label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #333;
}
.btCategories input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #F5A623; /* Màu checkbox */
}

/* Pagination */
.btPagination#bt_bb_tour_pagination {
    display: block !important;
    visibility: visible !important;
    margin-top: 40px;
    text-align: center;
}
.btPagination#bt_bb_tour_pagination ul.page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.btPagination#bt_bb_tour_pagination ul.page-numbers li {
    display: inline-block;
}
.btPagination#bt_bb_tour_pagination ul.page-numbers li .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #ffffff;
    color: #333;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.btPagination#bt_bb_tour_pagination ul.page-numbers li .page-numbers:hover:not(.current) {
    background: #F5A623;
    color: #fff;
    border-color: #F5A623;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.btPagination#bt_bb_tour_pagination ul.page-numbers li .page-numbers.current {
    background: #F5A623;
    color: #fff;
    border-color: #F5A623;
    cursor: default;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.btPagination#bt_bb_tour_pagination ul.page-numbers li .page-numbers.prev,
.btPagination#bt_bb_tour_pagination ul.page-numbers li .page-numbers.next {
    font-weight: 600;
    position: relative;
    padding: 0 20px;
}
.btPagination#bt_bb_tour_pagination ul.page-numbers li .page-numbers.prev::before,
.btPagination#bt_bb_tour_pagination ul.page-numbers li .page-numbers.next::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border: solid #333;
    border-width: 0 2px 2px 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.btPagination#bt_bb_tour_pagination ul.page-numbers li .page-numbers.prev::before {
    left: 10px;
    transform: translateY(-50%) rotate(135deg);
}
.btPagination#bt_bb_tour_pagination ul.page-numbers li .page-numbers.next::after {
    right: 10px;
    transform: translateY(-50%) rotate(-45deg);
}
.btPagination#bt_bb_tour_pagination ul.page-numbers li .page-numbers.prev:hover::before,
.btPagination#bt_bb_tour_pagination ul.page-numbers li .page-numbers.next:hover::after {
    border-color: #fff;
}

/* List/Grid Switcher */
.layout-switcher {
    margin-bottom: 20px;
    text-align: right;
}
.layout-btn {
    display: inline-block;
    padding: 8px 15px;
    margin-left: 10px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.layout-btn:hover,.layout-btn.active {
    background: #F5A623;
    color: #fff;
    border-color: #F5A623;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Tour List Layout */
.btTourList.btListDesignList {
    display: block !important;
}
.btTourList.btListDesignList .btSingleTourBlock {
    width: 100% !important;
    margin-bottom: 20px;
}

/* Tour Grid Layout */
.btTourList.btListDesignGrid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.btTourList.btListDesignGrid .btSingleTourBlock {
    width: calc(33.33% - 13.33px) !important;
    margin-bottom: 20px;
    box-sizing: border-box;
    flex: 0 0 calc(33.33% - 13.33px);
}
.btTourList.btListDesignGrid.btTourListGapLarge .btSingleTourBlock {
    margin-bottom: 20px !important;
}

/* Lazy-load Images */
img[data-loaded="0"] {
    opacity: 0;
    transition: opacity 0.3s;
}
img.bt_src_loaded {
    opacity: 1;
}

/* Loading Indicator */
#bt_listing_loading {
    text-align: center;
    padding: 20px;
    display: none;
    font-size: 16px;
    color: #666;
}
#bt_listing_loading:before {
    content: "Loading...";
}

/* Responsive */
@media (max-width: 768px) {
    .btPagination#bt_bb_tour_pagination ul.page-numbers {
        gap: 8px;
    }
    .btPagination#bt_bb_tour_pagination ul.page-numbers li .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
        padding: 0 10px;
    }
    .btTourList.btListDesignGrid .btSingleTourBlock {
        width: calc(50% - 10px) !important;
        flex: 0 0 calc(50% - 10px);
    }
    .layout-switcher {
        text-align: center;
    }
    .btTourList .layout-switcher .layout-btn {
        margin: 5px;
    }
}
@media (max-width: 480px) {
    .btTourList.btListDesignGrid .btSingleTourBlock {
        width: 100% !important;
        flex: 0 0 100%;
    }
}

/* Related Tours Section - VIVU Style */
/* Related Tours Section - VIVU Style */
.btRelatedToursSection {
    padding: 40px 0;
    background: #fff;
}

.btRelatedToursSection .port {
    max-width: 1200px;
    margin: 0 auto;
}

.btRelatedToursTitle {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.btRelatedToursTitle:after {
    content: '';
    width: 50px;
    height: 3px;
    background: #F5A623;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.btRelatedTours .btTourGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force 3 columns */
    gap: 30px;
}

.btRelatedTours .btTourItem {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.btRelatedTours .btTourItem:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btRelatedTours .btTourItemInner {
    position: relative;
    padding: 15px;
}

.btRelatedTours .btTourDiscountLabel {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #28a745;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 1;
}

.btRelatedTours .btTourThumbnail img {
    border-radius: 8px 8px 0 0;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.btRelatedTours .btTourPrice {
    margin: 10px 0;
    text-align: center;
}

.btRelatedTours .btTourOldPrice {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}

.btRelatedTours .btTourNewPrice {
    font-size: 18px;
    font-weight: 700;
    color: #e74c3c;
}

.btRelatedTours .btTourTitle {
    margin: 10px 0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.btRelatedTours .btTourTitle a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.btRelatedTours .btTourTitle a:hover {
    color: #F5A623;
}

.btRelatedTours .btTourCategories {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 10px;
}

.btRelatedTours .btTourDuration {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
}

.btRelatedTours .btTourDurationIcon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml;utf8,<svg 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"><circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline></svg>') no-repeat center;
    background-size: contain;
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 992px) {
    .btRelatedTours .btTourGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .btRelatedTours .btTourGrid {
        grid-template-columns: 1fr;
    }

    .btRelatedToursTitle {
        font-size: 24px;
    }

    .btRelatedTours .btTourTitle {
        font-size: 16px;
    }

    .btRelatedTours .btTourThumbnail img {
        height: 180px;
    }
}
