/**
 * Tour Booking System Styles
 */

/* Main Wrapper */

.widget_shopping_cart_content .cart_list li a.remove {
    pointer-events: all !important;
}

.widget_shopping_cart_content .cart_list li > a:not(.remove) {
    pointer-events: none !important;
    cursor: default !important;
}

.widget_shopping_cart_content .cart_list li .cart-item-title {
    pointer-events: none !important;
    cursor: default !important;
}


.tour-booking-wrapper {
    max-width: 800px;
    margin: 0 auto 40px;
     padding: 20px 15px;
    background: #FEF7E1;
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
        padding-top: 60px;
}

/* Grid Layout for List */
.tour-booking-list-wrapper {
    margin: 0 auto 40px;
}

.tour-booking-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0;
        margin-top: 60px;
}

.tour-booking-grid[data-columns="1"] {
    grid-template-columns: 1fr;
}

.tour-booking-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.tour-booking-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.tour-booking-grid-item {
    width: 100%;
        margin-bottom: 25px;
}

.tour-booking-grid-item .tour-booking-wrapper {
    margin: 0;
    max-width: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tour-booking-grid-item .tour-booking-content {
    flex: 1;
}

/* Thumbnail */
.tour-booking-thumbnail {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 6px;
}

.tour-booking-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.tour-booking-thumbnail:hover img {
    transform: scale(1.05);
}

/* Excerpt */
.tour-booking-excerpt {
    margin: 10px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.tour-booking-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tour-booking-title a:hover {
    color: #007cba;
}



.book-now-btn{
    background: var(--primary-color) !important;
    border-radius: 99px !important;
    color:      var(--fs-color-secondary) !important;
}

/* Header */
.tour-booking-header {
   position: absolute;
    top: -30px;
    left: 20px;
    right: 20px;
    background-image: url(../images/title-background.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    padding-bottom: 20px;
        padding-top: 8px;

}
.tour-booking-title a{
    color: #FEF7E1;
}
.tour-booking-title {
    margin: 0;
    font-size: 25px;
    font-weight: 600;
    text-align: center;
    color: #FEF7E1;
}

/* Tour Types List */
.tour-types-list {
    margin-bottom: 30px;
}

.tour-type-item {
    margin-bottom: 12px;
}

.tour-type-label {
    display: flex;
    align-items: center;
   
    border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}



.tour-type-radio {
    margin: 0;
    margin-right: 15px;
    width: 17px;
    height: 17px;
    cursor: pointer;
}

.tour-type-radio:checked + .tour-type-content {
    font-weight: 600;
}



.tour-type-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.tour-type-name {
    font-size: 14px;
    color: #333;
        font-weight: normal;
}

.tour-type-price {
    font-size: 16px;
    font-weight: 600;
    color: #007cba;
}

/* Options Container */
.tour-options-container {
    margin-bottom: 30px;
}

.tour-option-section {
     border: 1px solid #ddd;
     border-radius: 4px;
     padding: 10px;
    margin-bottom: 20px;
}

.tour-option-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.tour-select {
    width: 100%;
    padding: 0px 15px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.tour-select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

.tour-select option {
    padding: 10px;
}

/* Transport Wrappers */
.phuong-tien-khoi-hanh-wrapper,
.phuong-tien-ket-thuc-wrapper {
    margin-top: 15px;
  
}

/* Booking Actions */
.tour-booking-actions {
    text-align: center;
    margin-top: 30px;
}

.book-now-btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: #007cba;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.book-now-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.book-now-btn:active {
    transform: translateY(0);
}

.book-now-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Loading Overlay */
.tour-booking-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 999;
}

.tour-booking-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Checkout Section */
.tour-checkout-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.tour-checkout-section h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 24px;
    color: #333;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tour-booking-list-wrapper {
    margin: 0 auto 0px;
}
    .tour-booking-header {
 
    top: -36px;
}
    .tour-booking-wrapper {
        padding: 20px;
    }
    
    .tour-booking-title {
        font-size: 22px;
    }
    
    .tour-type-label {
            padding: 7px 7px;
    }
    
    .tour-type-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .tour-type-name {
        font-size: 14px;
    }
    
    .tour-type-price {
        font-size: 16px;
    }
    
    .book-now-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    /* Grid responsive */
    .tour-booking-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .tour-booking-grid[data-columns="3"],
    .tour-booking-grid[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* WooCommerce Integration Styles */
.woocommerce .tour-booking-wrapper {
    margin-bottom: 40px;
}

/* Admin Order Styles */
.tour-booking-info {
    font-size: 13px;
    line-height: 1.6;
}

.tour-booking-info strong {
    color: #333;
}

/* Success/Error Messages */
.tour-booking-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.tour-booking-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tour-booking-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Hide elements */
.hidden {
    display: none !important;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Prevent Flatsome conflicts */
.tour-booking-wrapper .loading {
    pointer-events: none;
}

.tour-booking-loading {
    pointer-events: all !important;
}

/* Checkout Custom Fields */
.tour-booking-checkout-fields {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.tour-booking-checkout-fields h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.tour-booking-checkout-fields .form-row {
    margin-bottom: 15px;
}

.tour-booking-checkout-fields label {
    font-weight: 600;
    color: #555;
}

.tour-booking-checkout-fields input[type="text"],
.tour-booking-checkout-fields input[type="date"],
.tour-booking-checkout-fields input[type="number"],
.tour-booking-checkout-fields textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.tour-booking-checkout-fields input[type="text"]:focus,
.tour-booking-checkout-fields input[type="date"]:focus,
.tour-booking-checkout-fields input[type="number"]:focus,
.tour-booking-checkout-fields textarea:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 1px #007cba;
}

.tour-booking-checkout-fields .required {
    color: #ff0000;
}

/* Flatpickr Customization */
.flatpickr-calendar {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    border: 1px solid #e0e0e0 !important;
}

.flatpickr-day.selected {
    background: #007cba !important;
    border-color: #007cba !important;
}

.flatpickr-day:hover {
    background: #e7f3ff !important;
}

#tour_departure_date_field input {
    cursor: pointer;
    background: #fff;
}

/* Admin Order Display */
.tour-booking-order-info {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #007cba;
}

.tour-booking-order-info h3 {
    margin-top: 0;
    color: #007cba;
}

.tour-booking-order-info p {
    margin: 8px 0;
    line-height: 1.6;
}