.datetimepicker-custom {
    padding: 0;
}

.datetimepicker-custom:focus {
    border: none;
}

.main-header.header-one .main-menu .navbar-collapse .navigation .active {
    background: var(--primary-color);
}

/* Style for dropdown for login */
.menu-sidebar .dropdown-menu {
    padding: 0;
}

/* Dropdown menu hidden by default */
.dropdown-menu {
    list-style-type: none;
    position: absolute;
    top: 60px; /* Adjust to the correct position */
    right: 0;
}
.menu-sidebar .dropdown-menu {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Thêm box-shadow */
}
.dropdown-menu li {
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-color);
}
/* Loại bỏ đường viền dưới cho mục cuối cùng */
.dropdown-menu li:last-child {
    border-bottom: none; /* Không có đường viền dưới cho mục cuối cùng */
}
.dropdown-menu li:hover {
    background-color: var(--primary-color);
}

/* css tour in page home  */
.block_tours {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* css tourdetail  */
.tour-gallery .gallery-between {
    height: 100%;
    padding-bottom: 10px;
}
.tour-gallery .gallery-item img {
    height: 100%;
    border-radius: 8px;
}

/****************************************
*              PAGE TOURS              *
* ***************************************/
.div_filter_clear {
    display: flex;
    justify-content: end;
}
.clear_filter {
    color: #fff;
    background-color: var(--bs-green);
    border-radius: 8px;
    padding: 2px 20px;
}

.loader {
    margin: auto;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid green;
    border-bottom: 16px solid green;
    width: 120px;
    height: 120px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    display: none;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hidden-content {
    display: none; /* Ẩn nội dung */
}
.equal-block-fix {
    display: flex !important;
    flex-direction: column;
    height: 100%;
}
.equal-content-fix {
    justify-content: space-around;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
}
/****************************************
*              PAGE USER PROFILE        *
* ***************************************/
#card_change_password {
    display: none;
}

/****************************************
*              PAGE CHECKOUT            *
* ***************************************/
.booking-container {
    max-width: 1200px;
    margin: auto;
    padding-top: 20px;
    display: flex;
    gap: 24px;
}

.booking-container {
    .booking__infor {
        background-color: #f6f8fa;
        display: grid;
        grid-template-columns: 1fr 1fr;
        border: none;
        gap: 16px;
        padding: 30px;
    }

    .booking-info {
        flex: 1;
    }

    .booking-summary {
        width: 400px;
    }

    /* Header */
    .booking-header {
        margin-bottom: 30px;
        font-size: 24px;
        font-weight: 700;
    }

    /* Form Styling */

    .booking__infor .form-group label {
        font-weight: 600;
        font-size: 1rem;
    }

    .booking__infor .form-group input {
        width: 100%;
        height: 56px;
        padding: 16px 17px;
        font-size: 1rem;
        border: 0px solid #e2e4e5;
        border-radius: 5px;
    }

    /* Quantity Selector */
    .booking__quantity {
        display: flex;
        gap: 24px;
    }

    .quantity-selector {
        width: 50%;
        display: flex;
        align-items: center;
        border: 1px solid #e2e4e5;
        padding: 20px;
        justify-content: space-between;
        gap: 48px;
    }

    .input__quanlity {
        display: flex;
        gap: 16px;
    }

    .quantity-btn {
        width: 30px;
        height: 30px;
        background-color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-weight: bold;
        border-radius: 5px;
        border: 2px solid #63ab45;
        color: #63ab45;
    }

    .quantity-input {
        padding: 0;
        width: 30px;
        text-align: center;
        border: none;
        font-size: 24px;
        line-height: 1;
        letter-spacing: 0em;
        font-weight: 500;
        color: #63ab45;
    }

    /* Payment Options - Premium Card Design */
    .payment-methods-container {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .payment-option {
        margin-bottom: 0;
        padding: 16px 20px;
        border: 2px solid #e8ecef;
        border-radius: 12px;
        display: flex;
        align-items: center;
        gap: 14px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: #fff;
        position: relative;
    }

    .payment-option:hover {
        border-color: #63ab45;
        background: linear-gradient(135deg, #f0faf0 0%, #fff 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(99, 171, 69, 0.12);
    }

    .payment-option input[type="radio"] {
        display: none;
    }

    .payment-option input[type="radio"]:checked ~ .payment-check {
        opacity: 1;
        transform: scale(1);
    }

    .payment-option:has(input[type="radio"]:checked) {
        border-color: #63ab45;
        background: linear-gradient(135deg, #f0faf0 0%, #e8f5e3 100%);
        box-shadow: 0 4px 16px rgba(99, 171, 69, 0.18);
    }

    .payment-option-icon {
        width: 48px;
        height: 48px;
        border-radius: 10px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        background: #f6f8fa;
        border: 1px solid #eee;
    }

    .payment-option-icon img {
        width: 36px;
        height: 36px;
        object-fit: contain;
    }

    .payment-option img {
        width: 36px;
    }

    .payment-option-info {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-width: 0;
    }

    .payment-option-title {
        font-weight: 600;
        font-size: 1rem;
        color: #1a1a2e;
        line-height: 1.3;
    }

    .payment-option-desc {
        font-size: 0.82rem;
        color: #7a7f87;
        margin-top: 2px;
        line-height: 1.3;
    }

    .payment-check {
        opacity: 0;
        transform: scale(0.6);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        color: #63ab45;
        font-size: 22px;
        flex-shrink: 0;
    }

    /* Bank Transfer Panel */
    .bank-transfer-panel {
        margin-top: 16px;
        border: 2px solid #e3f0fd;
        border-radius: 14px;
        overflow: hidden;
        background: #fff;
        animation: slideDown 0.35s ease;
    }

    @keyframes slideDown {
        from { opacity: 0; max-height: 0; transform: translateY(-8px); }
        to   { opacity: 1; max-height: 400px; transform: translateY(0); }
    }

    .bank-transfer-header {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 20px;
        background: linear-gradient(135deg, #1e88e5, #1565c0);
        color: #fff;
    }

    .bank-transfer-header i {
        font-size: 20px;
    }

    .bank-transfer-header h4 {
        margin: 0;
        font-size: 1rem;
        font-weight: 600;
        color: #fff;
    }

    .bank-transfer-details {
        padding: 16px 20px;
    }

    .bank-detail-row {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 0;
        border-bottom: 1px dashed #eee;
    }

    .bank-detail-row:last-of-type {
        border-bottom: none;
    }

    .bank-label {
        font-weight: 600;
        color: #555;
        min-width: 130px;
        font-size: 0.92rem;
    }

    .bank-value {
        color: #1a1a2e;
        font-weight: 500;
        font-size: 0.95rem;
    }

    .bank-account-number {
        font-family: 'Courier New', monospace;
        font-size: 1.05rem;
        font-weight: 700;
        color: #1565c0;
        letter-spacing: 1px;
    }

    .btn-copy-bank {
        background: #e3f0fd;
        border: none;
        border-radius: 6px;
        padding: 5px 10px;
        color: #1565c0;
        cursor: pointer;
        transition: all 0.2s;
        font-size: 14px;
    }

    .btn-copy-bank:hover {
        background: #1565c0;
        color: #fff;
    }

    .bank-transfer-note {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 14px;
        margin-top: 10px;
        background: #fff8e1;
        border-radius: 8px;
        border-left: 3px solid #ffa726;
    }

    .bank-transfer-note i {
        color: #ffa726;
        font-size: 16px;
        margin-top: 2px;
    }

    .bank-transfer-note span {
        font-size: 0.85rem;
        color: #6d4c00;
        line-height: 1.4;
    }

    .bank-tour-id, .bank-phone-placeholder {
        font-weight: 700;
        color: #1565c0;
    }

    /* Payment Action Buttons */
    .btn-payment-action {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    /* Privacy Agreement */
    .privacy-section {
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 20px;
        background-color: #f9f9f9;
        border-radius: 5px;
        font-size: 1rem;
        color: #333;
        text-align: center;
    }

    .privacy-checkbox {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
        justify-content: center;
    }

    /* Order Summary */
    .order-summary {
        border-top: 1px solid #d6d6d6;
        margin-top: 20px;
        padding-top: 20px;
    }

    .summary-item {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .total-price,
    .total-price-booked,
    .quantity__adults,
    .quantity__children,
    .quantity__adults-booked,
    .quantity__children-booked {
        font-weight: bold;
        font-size: 1.2rem;
    }

    /* Button */
    .booking-btn {
        width: 100%;
        padding: 15px;
        background-color: var(--secondary-color);
        color: white;
        font-weight: 700;
        font-size: 1.1rem;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

    .summary-section {
        padding: 16px;
        box-shadow: 10px 10px 36px rgba(0, 0, 0, 0.08);
        position: sticky;
        top: 50px;
    }
    .order-coupon {
        border-top: 1px solid #d6d6d6;
        margin: 20px 0;
        padding: 20px 0;
        display: flex;
        justify-content: space-between;
        gap: 2px;
        border-bottom: 1px solid #d6d6d6;
    }
    .order-coupon input {
        border-radius: 8px;
        border: 1px solid #e2e4e5;
    }
    .btn-submit-booking.inactive {
        background-color: #f3d5b1;
        cursor: not-allowed;
    }

    /* CSS cho thông báo lỗi */
    .error-message {
        color: red;
        font-size: 0.9em;
        display: none;
        margin-top: 5px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-container {
        flex-direction: column;
    }

    .booking-summary {
        width: 100%;
        margin-top: 20px;
    }
}

.hide {
    display: none !important;
}

.comment-review-wrap .comment-ratting-item .ratting i {
    font-size: 36px;
}
.ratting i.active {
    color: var(--secondary-color);
}

/****************************************
*             DESTINATION               *
* ***************************************/
.tour-title {
    height: 40px;
    line-height: 1.2;
    overflow: hidden; /* Hide any text that overflows */
    text-overflow: ellipsis; /* Display "..." if text overflows */
    white-space: nowrap;
}

/****************************************
*             HANDLE SEARCH            *
* ***************************************/
#search_form .list {
    width: 100%;
    height: 250px;
    overflow-y: auto;
}
/****************************************
*             TOUR BOOKED            *
* ***************************************/
.truncate-3-lines {
    display: -webkit-box; /* Sử dụng Flexbox để xử lý text */
    -webkit-line-clamp: 3; /* Giới hạn số dòng hiển thị */
    -webkit-box-orient: vertical; /* Thiết lập hướng xử lý theo chiều dọc */
    overflow: hidden; /* Ẩn phần nội dung vượt quá */
    text-overflow: ellipsis; /* Thêm dấu ba chấm vào cuối */
    word-break: break-word; /* Đảm bảo từ không bị tràn ra ngoài */
}

/****************************************
*          FLASH SALE BADGE             *
*****************************************/
@keyframes flashPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(255,65,108,0.4); }
    50% { transform: scale(1.05); box-shadow: 0 4px 16px rgba(255,65,108,0.6); }
}

.flash-sale-badge {
    background: linear-gradient(135deg, #ff416c, #ff4b2b) !important;
    color: #fff !important;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(255,65,108,0.4);
    animation: flashPulse 1.5s ease-in-out infinite;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Flash Sale price styling */
.flash-sale-price-original {
    text-decoration: line-through;
    font-size: 0.8em;
    color: #999;
    margin-right: 5px;
}

.flash-sale-price-new {
    color: #e53e3e;
    font-weight: bold;
}

/* Tour detail Flash Sale banner */
.flash-sale-detail-banner {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255,65,108,0.3);
    animation: flashPulse 2s ease-in-out infinite;
}

.flash-sale-detail-banner .flash-icon {
    font-size: 24px;
}

/* Booking page discount breakdown */
.discount-breakdown {
    background: linear-gradient(135deg, #fff5f5, #ffe8e8);
    border: 1px solid #fed7d7;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 10px 0;
}

.discount-breakdown .discount-label {
    color: #e53e3e;
    font-weight: 600;
    font-size: 0.95rem;
}

.discount-breakdown .discount-amount {
    color: #e53e3e;
    font-weight: 700;
    font-size: 1.1rem;
}

.discount-breakdown .savings-badge {
    background: #e53e3e;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

