.destination-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

/* Header for the card */
.card-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.card-header .badge {
    background-color: #61c0bf;
    color: white;
    padding: 5px 15px;
    font-size: 14px;
    border-radius: 20px;
}

/* Title and Description */
.card-body {
    margin-top: 20px;
}

.card-description {
    font-size: 14px;
    color: #777;
    margin-top: 10px;
}

/* Footer with the explore button */


.explore-btn {
    background-color: #f15a29;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.explore-btn:hover {
    background-color: #e94e1b;
}

/* Make the card responsive for smaller screens */
@media (max-width: 576px) {
    .destination-card {
        padding: 15px;
    }

    .card-title {
        font-size: 24px;
    }

    .explore-btn {
        padding: 10px 25px;
        font-size: 13px;
    }
}

a.service-avatar {
    position: absolute;
    bottom: -16px;
    right: 20px;
    height: 50px;
    width: 50px;
    border: 1px solid #dfdfdf;
    border-radius: 50%;
    z-index: 1;
    overflow: hidden;
    display: block;
}

a.service-avatar img {
    width: 100%;
    /* ทำให้ภาพเต็มกรอบ */
    height: 100%;
    /* ทำให้ภาพเต็มกรอบ */
    object-fit: cover;
    /* ใช้การตัดส่วนเกินของภาพ */
    object-position: center;
    /* ทำให้ภาพอยู่ตรงกลาง */
}

#tour-list {
    display: none;
}

.tour-card {
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Card Image */
.tour-card .card-img-top {
    object-fit: cover;
    height: 200px;
    width: 100%;
}

/* Card Content */
.tour-card .card-body {
    padding: 1rem;
}

.tour-card .card-footer {
    padding-top: 0;
    padding-bottom: 1rem;
}

/* ปรับตำแหน่งปุ่มเพื่อไม่ให้บังแพ็กเกจ */
.tns-controls button {
    background-color: #F5C4B3 !important;
    /* สีพื้นหลังของปุ่ม */
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: background-color 0.3s ease, transform 0.3s ease !important;
    margin-left: -45px !important;
    margin-right: -45px !important;
    /* เพิ่มระยะห่างทางขวา */
    z-index: 10;
    /* ปรับให้ปุ่มอยู่ด้านหน้า */
}

/* เมื่อชี้ไปที่ปุ่ม */
.tns-controls button:hover {
    background-color: #fd501e !important;
}

/* สไตล์ไอคอนภายในปุ่ม */
.tns-controls button i {
    font-size: 18px !important;
    color: white !important;
}

/* Responsive Layout for Different Screen Sizes */
@media (max-width: 1199px) {
    .tour-card {
        width: 23%;
        /* 4 items per row */
    }
}

@media (min-width: 992px) {
    .col-lg-1-7 {
        flex: 0 0 auto;
        width: 14.2857143%;
    }
}

@media (max-width: 991px) {
    .tour-card {
        width: 48%;
        /* 2 items per row */
    }
}

@media (max-width: 767px) {
    .tour-card {
        width: 48%;
        /* Two columns on small screens */
    }

    .tour-card .card-img-top {
        height: 150px;
        /* Adjust height for smaller screens */
    }
}

@media (max-width: 576px) {
    #tour-list {
        display: flex;
    }

    #tour-slider {
        display: none;
    }

    a.service-avatar {
        position: absolute;
        bottom: -12px;
        right: 15px;
        height: 30px;
        width: 30px;
        border: 1px solid #dfdfdf;
        border-radius: 50%;
        z-index: 1;
        overflow: hidden;
        display: block;
    }

    a.service-avatar img {
        width: 100%;
        /* ทำให้ภาพเต็มกรอบ */
        height: 100%;
        /* ทำให้ภาพเต็มกรอบ */
        object-fit: cover;
        /* ใช้การตัดส่วนเกินของภาพ */
        object-position: center;
        /* ทำให้ภาพอยู่ตรงกลาง */
    }


    /* สำหรับมือถือในโหมดแนวตั้ง */
    .tour-card {
        width: 48%;
        /* Two columns on small screens */
        padding: 0.5rem;
    }

    /* ปรับขนาดฟอนต์ภายในการ์ด */
    .tour-card .card-img-top {
        height: 100px;
        /* Adjust height for smaller screens */
        object-fit: cover;
        /* ทำให้ภาพเต็มกรอบ */
    }

    .tour-card .card-body {
        padding: 0.5rem;
        font-size: 11px;
        /* Reduce font size */
    }

    .tour-card .card-title {
        font-size: 12px;
        /* Reduce font size */
        font-weight: bold;
    }

    .tour-card .card-footer h5 {
        font-size: 12px;
        /* Reduce font size */
        font-weight: normal;
    }

    .tour-card .badge {
        font-size: 8px;
        /* Reduce font size */
        padding: 0.2rem 0.3rem;
        border-radius: 6px;
        /* Adjust border radius */
    }

    .tour-card .btn {
        font-size: 10px;
        /* Reduce font size */
        padding: 0.2rem 0.6rem;
        /* Adjust padding */
        border-radius: 3px;
        /* Adjust border radius */
    }

    /* Adjust padding for smaller screens */
    .p-4 {
        padding: 0.5rem !important;
    }

    /* ปรับกรอบ "One Day" */
    .tour-card .card-img-overlay .badge {
        font-size: 10px;
        /* Reduce font size */
        padding: 0.2rem;
        /* Adjust padding */
    }

    .tour-card .card-body h5 a {
        font-size: 11px;
        /* Reduce font size */
    }
}

/* Custom styles for small screens */
@media (max-width: 576px) {
    #tns2>.tns-item {
        padding: 0px 40px 40px 40px !important;
    }

    /* .travel-package-card .card-header h6 {
        font-size: 14px !important;
    }

    .travel-package-card .card-header p {
        font-size: 10px !important;
    }

    .travel-package-card .card-body .list-unstyled li {
        font-size: 7px !important;
    } */
}

.bg-primary-2 {
    backdrop-filter: blur(3px);
    background: rgba(255, 247, 244, 0.8) !important;
}

/* tour */

.quantity-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    max-width: 100%;

}

.age-label {
    font-size: 14px;
    font-weight: 500;
    color: #4a4a4a;
    text-align: center;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.btn-quantity {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #727272;
    background-color: #fff;
    border-radius: 50%;
    font-size: 22px;
    font-weight: bold;
    color: #5e6d77;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.btn-quantity:hover {
    background-color: #f0f0f0;
}

.quantity-controls input {
    width: 70px;
    height: 50px;
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    color: #232323;
    border: 1px solid #727272;
    border-radius: 8px;
    background-color: #fff;
    padding: 0;
}

.tour-details p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.tour-details ul {
    padding-left: 20px;
    list-style-type: disc;
}

.special-price {
    position: relative;
    background-color: transparent;
    /* ใช้พื้นหลังโปร่งใส */
    color: #007bff;
    /* สีข้อความ */
    font-weight: bold;
    border: 2px solid #007bff;
    /* เส้นขอบสีฟ้า */
    border-radius: 50%;
    /* วงกลม */
    text-align: center;
    transition: all 0.3s ease-in-out;
    /* เพิ่มแอนิเมชันลื่นไหล */
}

.special-price:hover {
    background-color: #007bff;
    /* เปลี่ยนพื้นหลังเมื่อ Hover */
    color: #fff;
    /* เปลี่ยนสีข้อความ */
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
    /* เพิ่มเงา */
}

/* ป้ายราคาด้านล่าง */
.special-price::after {
    content: attr(data-price);
    /* แสดงราคาพิเศษ */
    position: absolute;
    bottom: -20px;
    /* ระยะห่างจากวันที่ */
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    background-color: #f8f9fa;
    /* พื้นหลังป้ายราคา */
    color: #007bff;
    /* สีข้อความ */
    padding: 2px 8px;
    border-radius: 5px;
    border: 1px solid #007bff;
    /* เส้นขอบ */
    white-space: nowrap;
    /* ป้องกันการตัดคำ */
    display: none;
    /* ซ่อนป้ายราคาตามค่าเริ่มต้น */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* เพิ่มเงา */
}

/* แสดงป้ายราคาขณะ Hover */
.special-price:hover::after {
    display: block;
}

.calendar-legend {
    display: flex;
    gap: 15px;
    /* ระยะห่างระหว่างรายการ */
    margin-top: 10px;
    /* เพิ่มพื้นที่เหนือ legend */
    font-size: 14px;
    /* ขนาดข้อความ */
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid #5143d9;
    /* ขอบวงกลม */
}

.legend-color-normal {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid #007bff;
    background: transparent;
}

.legend-color.special-price {
    background: #5143d9;
    /* สีของราคาพิเศษ */
}

.legend-color {
    background: transparent;
}

.legend-color-disabled {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    /* ทำให้เป็นวงกลม */
    background-color: #d6d6d6;
    /* สีเทาอ่อนสำหรับวันที่ปิด */
    border: 2px solid #b0b0b0;
    /* ขอบสีเทาเข้ม */
}

.price-display {
    font-size: 1.2em;
    font-weight: bold;
    color: #007bff;
    /* สีสำหรับราคา */
    margin-top: 5px;
}

.rate {
    float: left;
    height: 46px;
    padding: 0 10px;
}

.rate:not(:checked)>input {
    position: absolute;
    /* top: -9999px; */
}

.rate:not(:checked)>label {
    float: right;
    width: 1em;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    font-size: 30px;
    color: #ccc;
}

.rate:not(:checked)>label:before {
    content: '★ ';
}

.rate>input:checked~label {
    color: #ffc700;
}

.rate:not(:checked)>label:hover,
.rate:not(:checked)>label:hover~label {
    color: #deb217;
}

.rate>input:checked+label:hover,
.rate>input:checked+label:hover~label,
.rate>input:checked~label:hover,
.rate>input:checked~label:hover~label,
.rate>label:hover~input:checked~label {
    color: #c59b08;
}

.cursor_pointer {
    cursor: pointer;
}

@media (max-width: 576px) {
    .quantity-selector {
        max-width: 100%;
        padding: 15px;
    }

    .btn-quantity {
        width: 40px;
        /* ลดขนาดปุ่ม */
        height: 40px;
        font-size: 18px;
    }

    .quantity-controls input {
        width: 50px;
        height: 40px;
        font-size: 16px;
    }

    .age-label {
        font-size: 14px;
    }

}

/* Specific styles for the travel package card */
.travel-package-card {
    border-radius: 20px;
    /* Rounded corners */
    overflow: hidden;
    background-color: #fff;
    border: none;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Shadow effect */
}

/* Blur effect on card border */
.travel-package-card::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: rgba(0, 0, 0, 0.1);
    filter: blur(10px);
    /* Apply blur effect */
    z-index: -1;
    border-radius: 20px;
}

/* Card Header */
.travel-package-card .card-header {
    background-color: #f8f9fa;
    /* Light background color */
}

.travel-package-card .card-header h6 {
    font-size: 20px;
    font-weight: bold;
    color: #2d3a3a;
}

.travel-package-card .card-header p {
    color: #777;
    font-size: 14px;
}

/* Badge for "Popular" */
.travel-package-card .card-header .badge {
    font-size: 14px;
    padding: 5px 15px;
    background-color: #ff5733;
    /* Orange background for the "Popular" badge */
    color: white;
}

/* Card body styling */
.travel-package-card .card-body {
    font-size: 14px;
    line-height: 1.6;
}

.travel-package-card .card-body .bi-check-circle {
    font-size: 16px;
    color: #61c0bf;
}


.travel-package-card .card-body .list-unstyled li {
    font-size: 14px;
    color: #2d3a3a;
}

.travel-package-card .card-body .bi-check-circle {
    color: #61c0bf;
}

/* Icon styling for the suitcase icon */
.travel-package-card .card-header .bi-suitcase {
    color: #ff5733;
    /* Icon color */
}

.travel-package-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.travel-package-card .card-body {
    flex-grow: 1;
}

/* TOUR */
.loader-overlay-tour {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
    font-family: Arial, sans-serif;
}

.loader-overlay-tour.active {
    visibility: visible;
    opacity: 1;
}

.airplane {
    font-size: 50px;
    animation: fly 2s linear infinite;
}

@keyframes fly {
    0% {
        transform: translateX(-200px) translateY(0) rotate(0deg);
    }

    50% {
        transform: translateX(0) translateY(-50px) rotate(15deg);
    }

    100% {
        transform: translateX(200px) translateY(0) rotate(-15deg);
    }
}

.loader-overlay-tour p {
    margin-top: 15px;
    font-size: 18px;
    color: #333;
    font-weight: bold;
}