﻿.tour-detail {
    text-align: center;

}

.main-image img {
    width: 100%;
    max-width: 900px;
    height: 500px;
    border-radius: 10px;
}

/* Image gallery layout */
.image-gallery {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2% 0;
    position: relative;
}

.thumbnails-wrapper {
    display: flex;
    gap: 10px;
    overflow: hidden;
    width: 100%;
    margin: 0 15%;
    scrollbar-width: none;
}

.thumbnail {
    flex: 0 0 auto;
    width: 150px;
    height: 90px;
    transition: transform 0.3s ease;
    border-radius: 5px;
}

.img-small {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    cursor: pointer;
}

    .img-small:hover {
        transform: scale(1.1);
    }

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

    .slider-btn:hover {
        background-color: rgba(0, 0, 0, 0.7);
    }

.slider-btn-left {
    left: -10px;
}

.slider-btn-right {
    right: -10px;
}
.blog-single table {
    width: 100%;
    font-size: 14px; /* Kích thước chữ bình thường */
    border-collapse: collapse;
    table-layout: fixed; /* Giúp bảng có kích thước cố định */
    overflow-x: auto; /* Thêm thanh cuộn ngang */
}

    .blog-single table th, .blog-single table td {
        padding: 12px; /* Padding bình thường */
        text-align: left;
        border: 1px solid #ddd;
        word-wrap: break-word; /* Đảm bảo từ không bị vỡ */
    }


.single-comment {
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
}

.sidebar-categories {
    background: rgba(0, 200, 0, 0.2) !important; /* Xanh lá nhạt, độ mờ 20% */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    margin-top: 0px;
}

/* Mobile and tablet responsive */
@media (max-width: 768px) {
    table span {
        margin-left: 0px !important;
        font-size: 11px !important;

    }
    .tour-detail {
        margin: 0;
        padding: 0;
    }

    .main-image img {
        height: 300px;
        max-width: 100%;
    }

    .thumbnails-wrapper {
        gap: 8px;
        margin-left: 0;
        margin-right: 0;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;

    }

    .thumbnail {
        width: 120px;
        height: 80px;
    }

    .slider-btn {
        width: 30px;
        height: 30px;
    }

    .slider-btn-left, .slider-btn-right {
        top: 40%;
    }

    .slider-btn-left{
        left: 1px;
    }

    .slider-btn-right {
        right: 1px;
    }

    .blog-single table {
        width: 100%;
        font-size: 10px; /* Giảm kích thước chữ khi trên điện thoại */
        margin: 0px !important;
    }

        .blog-single table th, .blog-single table td {
            padding: 8px;
            text-align: left;
            border: 1px solid #ddd;
        }

    .blog-single img {
        max-width: 100%;
        height: auto;
        border-radius: 5px;
    }

    .blog-single p {
        font-size: 14px;
    }

    .comment-wrapper {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    table span {
        margin-left: 0px !important;
        font-size: 11px !important;
    }
    .tour-detail h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .breadcrumb {
        display: none;
    }

    .main-image img {
        height: 250px;
    }

    .thumbnails-wrapper {
        gap: 6px;
    }

    .thumbnail {
        width: 100px;
        height: 60px;
    }

    .slider-btn {
        width: 25px;
        height: 25px;
    }

    .blog-single table {
        width: 100%;
        font-size: 10px !important; /* Giảm kích thước chữ khi trên điện thoại */
        margin: 0px !important;
        padding: 0px !important;
    }

        .blog-single table th, .blog-single table td {
            padding: 1px;
        }

    .blog-single img {
        max-width: 100%;
        height: auto;
    }

    .blog-single p {
        font-size: 12px;
    }

    /* Comment Section - for mobile */
    .comment-wrapper {
        padding: 15px;
        background-color: #fff;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .comment-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .comment-content {
        font-size: 14px;
    }

    .single-comment {
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 1px solid rgba(0, 0, 0, 0.5);
        margin-bottom: 15px;
    }

    .avatar-img {
        width: 40px;
        height: 40px;
    }

    .rating .star {
        font-size: 20px;
    }

    .comment-content p {
        font-size: 14px;
    }

    /* Leave a comment form */
    .form-textarea {
        width: 100%;
        height: 100px;
        padding: 10px;
        font-size: 14px;
        border-radius: 5px;
        border: 1px solid #ddd;
        resize: vertical;
    }

    button.btn-primary {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
}

/* Comment Section */
.blog-comment {
    padding: 40px 0;
    margin-top: 0;
}

.comment-wrapper {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.comment-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.comment-items {
    list-style-type: none;
    padding-left: 0;
}

.comment-item {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border: 2px solid #ddd;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

    .comment-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }

.single-comment {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.comment-avatar {
    flex-shrink: 0;
}

.avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex-grow: 1;
}

.avatar-name {
    font-weight: bold;
    font-size: 18px;
    color: #333;
}

.date {
    color: #888;
    font-size: 11px;
}

.rating {
    display: flex;
    flex-direction: row-reverse; /* Hiển thị từ trái sang phải */
    justify-content: left;
}

    .rating input {
        display: none; /* Ẩn radio button */
    }

    .rating label {
        font-size: 24px;
        color: #ccc;
        cursor: pointer;
    }

        .rating input:checked ~ label,
        .rating label:hover,
        .rating label:hover ~ label {
            color: gold; /* Khi chọn hoặc hover, đổi màu vàng */
        }

.star {
    font-size: 17px;
    color: #ddd;
    cursor: pointer;
}

    .star.filled {
        color: #FFD700;
    }

.comment-content p {
    margin: 10px 10px;
    font-size: 16px;
    color: #555;
    word-wrap: break-word; /* Tự động xuống dòng nếu không có khoảng trắng */
    overflow-wrap: break-word; /* Đảm bảo xử lý trường hợp chuỗi dài không có khoảng trắng */
    white-space: normal; /* Cho phép nội dung trong bình luận tự xuống dòng */
    hyphens: auto; /* Tự động ngắt dòng khi cần thiết */
}

/* Reply - Change "Reply" link to horizontal line */
/*.replay {
    display: block;
    width: 100%;
    height: 1px;
    background-color: #ddd;
    margin-top: 10px;
}*/

/* Leave a comment form styles */
.form-textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ddd;
    resize: vertical;
}

    .form-textarea:focus {
        outline: none;
        border-color: #007bff;
    }

button.btn-primary {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    button.btn-primary:hover {
        background-color: #0056b3;
    }

textarea, .single-form button {
    width: 100%;
    margin-top: 10px;
}

textarea {
    min-height: 100px;
}

input[type="radio"] {
    display: none;
}

    input[type="radio"]:checked + label {
        color: #FFD700;
    }

        input[type="radio"]:checked + label ~ label {
            color: #FFD700;
        }

    input[type="radio"]:focus {
        outline: none;
    }


/* Container chứa các nút chuyển đổi */
.tour-toggle-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* Style cho từng nút */
.tour-toggle-btn {
    padding: 12px 25px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    border: 2px solid #ff6f00; /* Đổi viền thành màu cam */
    background-color: #fff;
    color: #ff6f00; /* Đổi màu chữ thành màu cam */
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px 0 0 5px; /* Góc bo tròn trái */
    margin: 0; /* Loại bỏ margin giữa các nút */
}

    .tour-toggle-btn:last-child {
        border-radius: 0 5px 5px 0; /* Góc bo tròn phải */
        border-left: none; /* Loại bỏ viền giữa hai nút */
    }

    /* Nút được chọn (active) */
    .tour-toggle-btn.active {
        background-color: #ff6f00; /* Nút được chọn có nền màu cam */
        color: white; /* Chữ trắng khi nút được chọn */
        border: 2px solid #ff6f00; /* Đảm bảo viền vẫn màu cam */
    }

/* Ẩn/hiện các phần nội dung */
.tour-toggle-section {
    display: none;
    width: 100%; /* Đảm bảo phần nội dung chiếm hết chiều rộng */
    box-sizing: border-box; /* Đảm bảo padding không làm thay đổi kích thước */
}

    .tour-toggle-section.active {
        display: block;
    }

/* Responsive Design cho màn hình nhỏ (Mobile) */
@media (max-width: 768px) {
    .tour-toggle-btn {
        font-size: 14px;
        padding: 10px 20px;
    }

    .tour-toggle-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Responsive Design cho màn hình iPad (Tablet) */
@media (max-width: 1024px) {
    .tour-toggle-btn {
        font-size: 15px;
        padding: 10px 20px;
    }

    .tour-toggle-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Định dạng cho tiêu đề sidebar */
.sidebar-categories .widget-title {
    font-family: 'Roboto', sans-serif !important;
    font-weight: bold;
    font-size: 22px; /* Tăng kích thước tiêu đề */
    color: #ff6600; /* Màu cam cho tiêu đề */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgb(191, 52, 52, 0.50) !important;
}

    .sidebar-categories .widget-title i {
        margin-right: 10px; /* Khoảng cách giữa icon và chữ */
    }

/* Định dạng cho các item trong danh sách */
.sidebar-categories .categories-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

    .sidebar-categories .categories-list li {
        margin-bottom: 15px; /* Khoảng cách giữa các mục */
        display: flex; 
    }

        /* Định dạng cho tiêu đề và nội dung bên trái */
        .sidebar-categories .categories-list li .left-content {
            font-family: 'Roboto', sans-serif !important;
            font-size: 15px;
            color: #ae1212; /* Màu xám đậm cho tiêu đề */
            margin-bottom: 5px;
            font-weight: bold; /* Làm nổi bật tiêu đề */
            line-height: 1.5;
            width: 50%;
        }

        /* Định dạng cho nội dung bên phải (Thông tin tour) */
        .sidebar-categories .categories-list li .right-content {
            font-family: 'Roboto', sans-serif !important;
            font-size: 15px;
            color: #000000; /* Màu đen cho nội dung bên phải */
            line-height: 1.5; /* Cải thiện khoảng cách dòng */
            word-wrap: break-word; /* Cho phép xuống dòng nếu văn bản dài */
            white-space: normal; /* Cho phép văn bản xuống dòng */
            width: 50%;
        }

        /* Định dạng cho giá vé */
        .sidebar-categories .categories-list li .price-content {
            font-family: 'Roboto', sans-serif !important;
            font-size: 15px; /* Tăng kích thước chữ */
            font-weight: bold; /* In đậm giá */
            color: #e74c3c; /* Màu đỏ để nổi bật giá */
            line-height: 1.5;
            width: 50%;
            white-space: normal; /* Cho phép văn bản xuống dòng */
        }

            .sidebar-categories .categories-list li .price-content i {
                margin-right: 8px; /* Khoảng cách giữa icon và giá */
            }

/* Media Queries cho điện thoại */
@media (max-width: 768px) {
    /* Tiêu đề sidebar */
    .sidebar-categories .widget-title {
        font-size: 18px; /* Giảm kích thước tiêu đề */
    }

    /* Nội dung bên trái và phải */
    .sidebar-categories .categories-list li .left-content,
    .sidebar-categories .categories-list li .right-content {
        font-size: 14px !important; /* Giảm font chữ cho điện thoại */
    }

    .sidebar-categories .categories-list li .left-content {
        width: 40%;
    }

    .sidebar-categories .categories-list li .right-content {
        width: 60%;
        justify-content: flex-start;
    }

    /* Giá vé */
    .sidebar-categories .categories-list li .price-content {
        font-size: 18px; /* Giảm kích thước giá cho điện thoại */
        width: 60%;
        padding-left: 0px !important;
    }

    /* Bố cục nội dung */
    .sidebar-categories .categories-list li .right-content {
        /*padding-left: 10px;*/ /* Giảm khoảng cách bên trái */
        display: flex;
        padding-left: 0px !important;
    }
}

/* Media Queries cho iPad (chế độ ngang và dọc) */
@media (max-width: 1024px) {
    /* Tiêu đề sidebar */
    .sidebar-categories .widget-title {
        font-size: 20px; /* Giảm kích thước tiêu đề */
    }

    /* Nội dung bên trái và phải */
    .sidebar-categories .categories-list li .left-content,
    .sidebar-categories .categories-list li .right-content {
        font-size: 18px; /* Giảm font chữ cho iPad */
    }

    .sidebar-categories .categories-list li .left-content{
        width:40%;
    }
    .sidebar-categories .categories-list li .right-content {
        width: 60%;
        text-align: start;
        justify-content: flex-start;
        padding-left: 0px !important;
    }
    /* Giá vé */
    .sidebar-categories .categories-list li .price-content {
        font-size: 19px; /* Giảm kích thước giá cho iPad */
        padding-left: 0px !important;
        width: 60%;
    }

    /* Bố cục nội dung */
    .sidebar-categories .categories-list li .right-content {
        padding-left: 20px; /* Giảm khoảng cách bên trái */
    }
}


    /* Định dạng cho biểu tượng tiền bên cạnh giá */
    .price-content i {
        margin-right: 8px; /* Khoảng cách giữa icon và giá */
    }


@media (max-width: 768px) {
    .row {
        flex-direction: column; /* Đảm bảo các phần tử xếp theo chiều dọc */
    }

    .col-lg-9 {
        order: 2; /* Content vẫn giữ thứ tự sau sidebar */
    }

    .col-lg-3 {
        order: 1; /* Sidebar sẽ nằm giữa slider và content */
    }
}
.book-tour-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background-color: #28a745;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .book-tour-btn:hover {
        background-color: #218838;
    }



    /* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0; /* Khoảng cách từ trên xuống */
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: hidden; /* Ẩn thanh cuộn của modal */
    padding-top: 7%;
}

.modal-content {
    background-color: #f8f9fa;
    margin: auto;
    padding: 30px;
    border-radius: 12px;
    width: 80%;
    max-width: 600px;
    min-height: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    max-height: 80vh; /* Giới hạn chiều cao tối đa của form */
    overflow: hidden; /* Ẩn thanh cuộn của nội dung */
    scroll-behavior: smooth; /* Cuộn mượt mà */
}
.close-icon {
    position: fixed; /* Giữ cố định trên màn hình */
    top: 10px; /* Khoảng cách từ trên xuống */
    right: 10px; /* Luôn sát mép phải */
    font-size: 2.5rem;
    color: greenyellow;
    cursor: pointer;
    z-index: 1001;
}



h3 {
    font-size: 26px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    margin-top: 20px;
}

.form-group label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    display: block;
    margin-bottom: 10px;
}

input[type="number"], input[type="date"], textarea {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
    box-sizing: border-box;
}

textarea {
    height: 120px;
    resize: vertical;
}

span {
    font-size: 14px;
 /*   color: #888;*/
    margin-left: 10px;
}
/* Payment Method Styles */
/* Payment Method Styles */
.payment-methods label{
    margin-bottom: 0px !important;
}
.payment-methods {
    margin-top: 20px;

}

.payment-methods-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0px !important;
}

.payment-option {
    display: flex;
    align-items: center; /* Căn giữa checkbox và label */
    margin: 20px !important;
}

/* Checkbox mặc định */
.payment-method-checkbox {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #007bff;
    background-color: #fff;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
}

    /* Khi checkbox được chọn */
    .payment-method-checkbox:checked {
        background-color: #007bff; /* Màu nền khi checkbox được chọn */
        border-color: #007bff;
    }

    /* Căn giữa nội dung label với checkbox */
    .payment-method-checkbox + .payment-method-label {
        font-size: 16px;
        color: #555;
        display: inline-block;
        vertical-align: middle;
        line-height: 18px;
    }

    /* Màu chữ label khi checkbox được chọn */
    .payment-method-checkbox:checked + .payment-method-label {
        color: #007bff;
    }

/* Các trường bắt buộc */
input[required], textarea[required] {
    border: 1px solid #ccc;
    padding: 10px;
    width: 100%;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 16px;
}

    input[required]:focus, textarea[required]:focus {
        border-color: #007bff;
        outline: none;
    }

/* Hiển thị thông báo lỗi nếu cần */
input:invalid, textarea:invalid {
    border-color: red;
}

/* Các tiêu đề Ghi chú và Ngày dự kiến */
label[for="orderNote"], label[for="expectedDate"] {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

/* Các trường nhập liệu */
input[type="date"], textarea {
    border: 1px solid #ccc;
    padding: 10px;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 16px;
}

    /* Khi focus vào trường nhập liệu */
    input[type="date"]:focus, textarea:focus {
        border-color: #007bff;
        outline: none;
    }


.button-confirm {
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button-confirm:hover {
    background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        padding: 20px;
        /*scroll-behavior: smooth;*/ /* Cuộn mượt mà */
        overflow-y: auto;
    }

    h3 {
        font-size: 22px;
    }

    .form-group label {
        font-size: 14px;
    }

    input[type="number"], input[type="date"], textarea {
        font-size: 14px;
        padding: 12px;
    }

    .payment-methods-label, .payment-method-label {
        font-size: 14px;
    }

    .button-confirm {
        font-size: 16px;
        padding: 12px;
    }
    /*.close-icon {
        top: 120px;*/ /* Điều chỉnh để dấu "X" gần hơn với modal */
        /*right: 40px;*/ /* Điều chỉnh khoảng cách từ phải */
        /*font-size: 25px;*/ /* Giảm kích thước chữ trên điện thoại */
        /*color: greenyellow;
    }*/

    .latest-blog-list li img {
        height: 100px !important;
    }
    .latest-blog-list li span {
        font-size: 10px;
    }

}
/* Điều chỉnh cho màn hình giữa 768px và 1024px (iPad) */
@media (min-width: 769px) and (max-width: 1024px) {
    /*.close-icon {
        top: 20px;*/ /* Đảm bảo nút 'close' vẫn nằm ở vị trí hợp lý */
        /*right: 30px;*/ /* Điều chỉnh khoảng cách từ bên phải */
        /*font-size: 28px;*/ /* Tăng kích thước chữ nếu cần */
    /*}*/
   
        .row {
            flex-direction: column; /* Đảm bảo các phần tử xếp theo chiều dọc */
        }

        .col-lg-9 {
            order: 2; /* Content vẫn giữ thứ tự sau sidebar */
        }

        .col-lg-3 {
            order: 1; /* Sidebar sẽ nằm giữa slider và content */
        }
   
}
.average-rating-details {
    display: flex;
    flex-direction: column; /* Sắp xếp các phần tử theo chiều dọc */
    justify-content: center; /* Căn giữa theo chiều dọc */
    align-items: center; /* Căn giữa theo chiều ngang */
    height: 100%; /* Đảm bảo container có chiều cao để căn giữa */
}
.average-rating-details-2 {
    background-color: #ea5252 !important; /* Màu nền nhẹ nhàng hơn */
    color: white !important; /* Chữ màu trắng */
    font-size: 18px !important; /* Cỡ chữ vừa phải */
    font-weight: 600 !important; /* Chữ đậm vừa phải */
    padding: 15px 15px !important; /* Khoảng cách bên trong hợp lý */
    border-radius: 12px !important; /* Bo góc nhẹ nhàng */
    text-align: center !important; /* Căn giữa chữ */
    display: inline-block !important; /* Hiển thị theo khối */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1) !important; /* Đổ bóng nhẹ */
    width: auto !important; /* Chiều rộng tự động theo nội dung */
    max-width: 100% !important; /* Giới hạn chiều rộng không vượt quá 100% */
    overflow: hidden !important; /* Ẩn phần thừa nếu có */
    white-space: nowrap !important; /* Ngăn không cho chữ bị xuống dòng */
    text-overflow: ellipsis !important; /* Thêm dấu ba chấm nếu nội dung quá dài */
    margin-bottom: 0px !important;
}



   

