@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* body {
    background-image: url("../images/banner-01.jpg");
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: cover;
    font-family: "Poppins", sans-serif;
    margin-top: 150px !important;
} */
body {
    margin: 0;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../images/banner-01.webp") no-repeat center center;
    background-size: cover;
    z-index: -1;
}

.logo img {
    margin-right: 1rem;
    max-height: 60px;
    height: clamp(40px, 10vw, 150px);

}

.blog-item .picture {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin: 0;
    flex-shrink: 0;
}

.page-container {
    position: fixed;
    display: flex;
    justify-content: space-between;
    top: 0;
    left: 0;
    padding: 0.5rem 1rem;
    width: 100%;
    z-index: 1000;
    background: #ffffffc1;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.page-container-ticket {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 0;
    display: flex;
    justify-content: center;

}


.logo {
    display: flex;
    align-items: center;
    margin: auto 0;


}


ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.icon-home a {

    font-size: 2rem;
    font-size: clamp(1.2rem, 2vw + 1rem, 2rem);
    white-space: nowrap;
    color: #262262;
    text-shadow: 2px 1px 5px rgba(0, 0, 0, 0.34);
    text-decoration: none;
    font-weight: bold;
    text-align: center;
}



.icon-head {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    /* background-color: #25537b50; */
    border-radius: 20px 20px;
    overflow: visible;
}

.icon-head li {
    /* margin: 0 0.5rem; */
    position: relative;
    overflow: visible;

}

.icon-head li a {
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    display: block;
    color: #262262;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.icon-head li a:hover {
    background: linear-gradient(135deg, #4facfeda, #00f1fee9);
    color: #100e2e;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

ul li a {
    display: block;
    text-align: center;
    text-decoration: none;

}

.menu img {
    width: auto;
    height: 70px;
    float: right;
    height: clamp(40px, 10vw, 70px);
}

ul.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.booknow {
    width: 80px;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.booknow:hover {
    transform: scale(1.2);

}

.booknow:active {
    transform: scale(1.1);
}


.icon img {
    max-width: 5rem !important;
    height: auto !important;
    margin: 0;
}

.blog {
    width: 100%;
    margin: 8rem auto 0 auto;
}

.blog-title {
    width: 100%;
    margin: 0;
    text-align: center;
}


.blog-title h3 {
    /* font-family: "DynaPuff", system-ui; */
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    /* font-size: 50px; */
    font-weight: 500;
    /* color: #F4A460; */
    color: #262262;
}

.placeholder {
    display: inline-block;
    width: 100% !important;
    margin: auto 0 !important;
    min-height: 1em;
    vertical-align: middle;
    cursor: wait;
    background-color: #ffffff !important;
    opacity: 1 !important;
}

.blog-con {
    margin: 0 auto;
    width: 80%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Responsive columns */
    gap: 2rem;
    margin-bottom: 2rem;
    box-sizing: border-box;
}

.blog-item .picture {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin: 0;
    flex-shrink: 0;
}


.blog-item {
    height: fit-content;
    background: #ffffffba;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    overflow: hidden;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.blog-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.blog-item h4,
p {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
}

.img-container {
    position: relative;
}

.img-container .more {
    margin: 0;
    position: absolute;
    z-index: 100;
    top: 10px;
    right: 10px;
    background: #2622628e;
    padding: 5px 12px;
    border-radius: 20px;
    line-height: 1;
    color: rgb(255, 255, 255);
    cursor: pointer;

}

.blog-item h4 {
    font-size: 18px;
    margin-top: 10px;
    white-space: nowrap;
    color: #004080;
    text-overflow: ellipsis;
}

.blog-item p {
    position: relative;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.blog-item a {

    padding: 0.5rem auto;
    text-decoration: none;
    text-align: center;
    margin: 0 auto 1rem auto;
}

input[type="text"] {
    width: 100%;

    padding: 10px 12px;

    border: 2px solid #ccc;

    border-radius: 8px;

    font-size: 14px;
    transition: all 0.3s ease;

}

input[type="text"]:focus {
    border-color: #007bff;
    /* ขอบเปลี่ยนสีตอน focus */
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
    /* เพิ่มเงา */
    outline: none;
    /* เอาเส้น outline ฟ้าออก */
}

.date-input:invalid {
    color: #999;
    font-size: 14px;
}

.date-input[readonly] {
    background: #f5f5f5;
    border: none;
    pointer-events: none;
    color: #333;
    font-weight: bold;
}

.counter button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.date-input:valid {
    color: #000;

    font-weight: bold;
}


.wave-text {
    display: flex;
    /* flex-wrap: wrap; ให้ตัวอักษรเด้งแต่ไม่ล้นขอบ */
    justify-content: center;
    text-align: center;
    line-height: 1;
}

.wave-text span {
    display: inline-block;
    font-size: clamp(30px, 8vw, 60px);
    animation: wave 2s ease-in-out infinite;
    text-shadow: 2px 2px #888888;
    margin-bottom: 15px;
}

.wave-text span:nth-child(1) {
    animation-delay: 0s;
}

.wave-text span:nth-child(2) {
    animation-delay: 0.1s;
}

.wave-text span:nth-child(3) {
    animation-delay: 0.2s;
}

.wave-text span:nth-child(4) {
    animation-delay: 0.3s;
}

.wave-text span:nth-child(5) {
    animation-delay: 0.4s;
}

.wave-text span:nth-child(6) {
    animation-delay: 0.5s;
}

.wave-text span:nth-child(7) {
    animation-delay: 0.6s;
}

.wave-text span:nth-child(8) {
    animation-delay: 0.7s;
}

.wave-text span:nth-child(9) {
    animation-delay: 0.8s;
}

.wave-text span:nth-child(10) {
    animation-delay: 0.9s;
}

.wave-text span:nth-child(11) {
    animation-delay: 1s;
}

.wave-text span:nth-child(12) {
    animation-delay: 1.1s;
}

.wave-text span:nth-child(13) {
    animation-delay: 1.2s;
}

.wave-text span:nth-child(14) {
    animation-delay: 1.3s;
}

.wave-text span:nth-child(15) {
    animation-delay: 1.4s;
}

.wave-text span:nth-child(16) {
    animation-delay: 1.5s;
}

@keyframes wave {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}




.grid-container {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 400px);
    gap: 2rem;
}

.tranfer label {
    padding-right: 10px;
    padding-top: 10px;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 15px;
}

.grid-from {
    display: grid;
    gap: 10px;
    grid-template-columns: 300px auto 300px auto;
    /* justify-content: center; */
    width: 100%;

}

.fs-checkbox-wrapper {
    display: inline-block;
    margin-right: 15px;
    /* เว้นช่องระหว่างแต่ละอัน */
}

.fs-checkbox-wrapper p {
    display: inline;
    margin: 0;
}

.fs-select {
    display: inline;
    margin-right: 15px;

}

.tranfer p {
    font-family: "Poppins", sans-serif;
    font-style: normal;
    font-size: 13px;
    margin-bottom: 10px;
    color: #000;
    display: ruby;
}

.tranfer button {
    font-family: "Poppins", sans-serif;
    font-style: normal;
    font-size: 10px;
    margin-top: 20px;
    margin-bottom: 30px;
    padding-top: 5px;
    padding-bottom: 5px;
    color: #fff;
    border: none;
    background-color: #669900;
}

.tranfer button {
    font-family: "Poppins", sans-serif;
    font-style: normal;
    font-size: 10px;
    margin-top: 20px;
    margin-bottom: 30px;
    padding-top: 5px;
    padding-bottom: 5px;
    color: #fff;
    border: none;
    background-color: #669900;
}

.col-button {
    display: flex;
    justify-content: right;

}

.destination h1 {
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    font-weight: 500;
    color: #F4A460;
    margin-top: 3rem;
}

.destination h1 span {
    font-family: "DynaPuff", system-ui !important;
}

.ticket-con {
    width: 100%;
    display: flex;
    flex-direction: row;
    border-radius: 20px;
    /* background-color: rgba(255, 255, 255, 0.881); */
    /* box-shadow: 0px 10px 30px -3px rgba(0, 0, 0, 0.3); */

}

.contactlogo {
    text-align: right;
    padding-top: 40px;
    padding-bottom: 30px;
}

.contactlogo img {
    max-width: 40px;
    padding-right: 15px;
}

.footer {
    width: 80%;
    margin: 0 auto;
    text-align: center;
    padding: 1rem 0;
    color: white;
    font-size: 14px;
}

.Taxi-serv {

    width: 80%;
    padding: 2rem;
    margin: 0 auto 2rem auto;
    position: relative;
    background: #ffffffe6;
    border-radius: 20px;

}

.empty-boat {
    padding: 2rem;
    text-align: center;
    border: 2px dashed #cccccc;
    border-radius: 12px;
    margin-top: 1rem;
}

.hidden {
    display: none !important;
}

.icon-head {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    /* background-color: #25537b50; */
    border-radius: 20px 20px;
    overflow: visible;
}

.icon-head li {
    /* margin: 0 0.5rem; */
    position: relative;
    overflow: visible;

}

.icon-head li a {
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    display: block;
    color: #262262;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.icon-head li a:hover {
    background: linear-gradient(135deg, #4facfeda, #00f1fee9);
    color: #100e2e;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

ul li a {
    display: block;
    text-align: center;
    text-decoration: none;

}

.cart-container {
    position: relative;
    /* ให้ popup อิงตำแหน่งจาก container นี้ */
    display: inline-block;
}

/* popup cart */
.cart-popup {
    position: absolute;
    top: 100%;
    right: 5px;
    width: max-content;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #eef0f5;
    border-radius: 18px;
    padding: 15px;
    box-shadow: 0px 0px 14px 8px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    overflow: hidden;
    font-family: "Poppins";
    font-weight: 400;
    opacity: 1;
    z-index: 100;
    transition: opacity 0.3s ease;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#cartItems {
    overflow-y: auto;
    max-height: 320px;
    min-width: 440px;
    max-width: 440px;
}

/* Total price ค้างด้านล่าง */
.total-price {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #cfcfcf;
    font-weight: 500;
    /* margin-bottom: 12px; */
    /* display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    gap: 10px;*/
}

.total-price .total {
    color: #ff560a;
    font-weight: 600;
    font-size: 20px;
}

.cart-popup::-webkit-scrollbar {
    width: 1px;

}

.cart-popup::-webkit-scrollbar-track {
    background: transparent;

}

.cart-popup::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.083);
    border-radius: 10px;
    border: 1px solid transparent;
}

.cart-popup.hidden {
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.cart-container .badge-cart-itemcount {
    position: absolute;
    top: 6px;
    right: 6px;
    background-color: #ff6a00;
    color: #363636;
    border-radius: 50%;
    z-index: 100;
    user-select: none;
    display: inline-block;
    height: 10px;
    width: 10px;
    line-height: 1;
}

.cart-container .badge-cart-itemcount.none {
    visibility: hidden;
}

.hidden {
    display: none;
}

.cart-item {
    border-bottom: 1px solid #cfcfcf;
    padding: 6px;
    margin: 0 5px;
    text-align: center;
}

.cart-item.empty {
    border-bottom: none;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item .ticket-route {
    color: #e9430e;
}

.cart-item .departure-date,
.cart-item .departure-time,
.cart-item .ticket-price {
    color: #e9430e;
    font-weight: 500;
}

.boat-serv .cart-item {
    border-bottom: 1px solid #ffffff;
    text-align: start;
}

.boat-serv .cart-item:last-child {
    border-bottom: none;
    text-align: start;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer {
    width: 80%;
    margin: 0 auto;
    text-align: center;
    padding: 1rem 0;
    color: white;
    font-size: 14px;
}


.contactlogo {
    text-align: right;
    padding-bottom: 30px;
}

.contactlogo img {
    max-width: 40px;
    padding-right: 15px;
}

.remove-btn {
    background: none;
    border: none;
    color: #262262;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.remove-btn:hover {
    color: #f88282;
}

/* รายละเอียด */
.route {
    font-size: 15px;
    font-weight: bold;
    margin: 8px 0 3px;
}

.datetime,
.passengers {
    margin: 2px 0;
    font-size: 13px;
}

.price {
    margin: 8px 0 0 0;
    text-align: right;
    font-size: 15px;
    font-weight: 600;
}

.btn.btn-close-popup {
    padding: 4px 10px;
    background-color: #f3f3f7d0;
    outline: none;
    border: none;
}

.btn.btn-close-popup i {
    font-size: 16px;
    color: #363636;
}

.btn.btn-close-popup:hover {
    background-color: #e6e6eed0;
}

.btn-confirm:hover {
    background-color: #0056b3;
}

.btn-confirm {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #007BFF;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
}

/* Close button */
.close {
    color: #333;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #0077b6;
}

.cart-popup .btn.btn-checkout {
    height: 46px;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 16px;
    border-radius: 12px;
}

.travel-plan-item h4.item-header {
    font-size: 17px;
    color: #0056b3;
    letter-spacing: 0.2px;
    font-weight: 600;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .cart-popup {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        min-width: 100%;
        border-radius: 0;
        margin-top: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        background-color: #fff;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 768px),
(max-height: 768px) {
    .cart-popup {
        max-height: 100vh;
        min-height: 100vh;
        height: 100vh;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        bottom: 0;
    }
}

@media (max-width: 768px) {
    #cartItems {
        max-height: calc(100vh - 100px);
        min-width: 100%;
        max-width: 100%;
        overflow: auto;
    }
}

.btn.btn-checkout {
    background-color: #ff6a00;
    color: #ffffff;
    padding-left: 20px;
    padding-right: 20px;
    border: none;
    outline: none;
}

.btn.btn-checkout:hover,
.btn.btn-checkout:focus,
.btn.btn-checkout:active {
    background-color: #ff6a00 !important;
    color: #ffffff !important;
    border-color: #ff6a00 !important;
    outline: none !important;
}

.btn.btn-add-cart {
    background-color: #ff6a00;
    color: #fff !important;
    border-color: #f56601;
    padding-right: 38px;
    padding-left: 38px;
}

.btn.btn-add-cart:hover,
.btn.btn-add-cart:focus {
    background-color: #df5e02;
    border-color: #d35902;
}

/* Ticket Card Styles */
.ticket-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 12px;
    cursor: pointer;
    border: 2px solid #d4cfca;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ticket-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ticket-card:hover {
    border-color: #ff7a1b;
    box-shadow: 0 8px 18px rgba(102, 126, 234, 0.15);
}

.ticket-card.selected,
.ticket-card[selected] {
    background: linear-gradient(135deg, #fff4ef 0%, #ffffff 100%);
    border-color: #ff7a1b;
}

.ticket-card.selected::before {
    opacity: 1;
}

.ticket-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.time-display-title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.25px;
    color: #808080;
}

.time-display {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.25px;
    color: #444444;
}

.price-display-title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.25px;
    color: #808080;
}

.ticket-card.selected .time-display {
    color: #ffffff;
}

.ticket-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #808080;
    font-weight: 500;
}

.info-item .badge.badge-duration {
    color: #666666;
    background-color: #ebebeb;
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 500;
    border-radius: 20px;
}

.info-item .arrival-text,
.info-item .arrival-time {
    color: #808080;
}

.ticket-card.selected .info-item {
    color: #ffffffe6;
}

.price-tag {
    font-size: 20px;
    font-weight: 600;
    color: #f56601;
}

.ticket-card.selected .price-tag {
    color: #ffffff;
}

.seats-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.85rem;
    border: 1px solid #fff2ea;
}

.seats-available {
    background-color: #fff2ea;
    color: #f56601;
    border-color: #fcebe2;
}

.seats-limited {
    background-color: #fff3cd;
    color: #856404;
}

.seats-sold {
    background-color: #f8d7da;
    color: #721c24;
}

.ticket-card.selected .seats-badge {
    background-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* Passenger Controls */
.passenger-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.passenger-box .btn-minus,
.passenger-box .btn-plus {
    width: 40px;
    height: 40px;
}

.info-container {
    position: relative;
    display: inline-block;
}

.info-btn {
    cursor: pointer;
    font-weight: 600;
    color: #0077ff;
    padding: 6px 12px;
}


.info-popup {
    position: absolute;
    top: 120%;
    left: 0;
    background: rgb(255, 255, 255);
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    padding: 10px;

    gap: 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
    flex-direction: column;

    text-align: left;

    /* ทำให้เริ่มซ่อนอยู่ */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.info-popup a {
    text-decoration: none;
    color: #1c1b1b;
    font-size: 14px;
    padding: 5px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.info-popup a:hover {
    background: #73b3bc;
}

/* เวลา hover ที่ info-container → popup โผล่ */
.info-container:hover .info-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: #ff4d4f;
    border: none;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 32px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: #d9363e;
}

.boat-bg {
    background: #ffffffe3;
    border: 1px solid #c7c7c7;
    border-radius: 15px;
    padding: 12px 16px;
}

.boat-serv {
    width: 100%;
    padding-right: 2rem;
    margin: 0 auto 2rem auto;
}

.boat-serv h3 {
    color: #006699;
}

.Taxi-serv h3 {
    text-align: left;
    font-size: 1.5rem;
    width: fit-content;
    font-size: 14px;
    margin: 0;
    white-space: nowrap;
}

/* .search-transfer {
    display: flex;
    width: fit-content;
} */

.search-transfer .popup {
    width: max-content;
}

.boat-bg .dropdown-container {
    display: flex;
    position: relative;
    /* width: fit-content; */
    white-space: nowrap;
}

.boat-bg .dropdown-container .select-box {
    display: flex;
    position: relative;
    /* width: fit-content; */
    padding: 5px;
}



.Taxi-serv h2 {
    font-size: 2rem;
    color: #006699;
    margin-bottom: 1rem;


}

.Taxi-serv p {
    margin: 1rem;
}

.search-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: auto auto auto auto;
}

.wheresearch h2 {
    color: #000;
    font-size: 16px;
}


.col-button {
    display: flex;
    justify-content: right;

}

.dropdown-container {
    position: relative;
    flex: 1;
}

.select-box {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    width: 100%;
    /* ยืดเต็ม container */
    box-sizing: border-box;

}

.popup {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    max-height: 150px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    display: none;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);

}

.from-popup::-webkit-scrollbar {
    width: 8px;
}

.from-popup::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 8px;
}

.from-popup::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 8px;
}

.options-list::-webkit-scrollbar {
    width: 8px;
}

.options-list::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 8px;
}

.options-list::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 8px;
}

.option {
    padding: 8px 10px;
    cursor: pointer;
}

.option:hover {
    background: #f0f0f0;
}

.popup .option {
    padding: 10px;
    cursor: pointer;
}

.popup .option:hover {
    background: #f5f5f5;
}

.col-button .btn {
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 20px;
    border-radius: 8px;
    width: auto;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.col-button .btn:hover {
    background-color: #0056b3;
}

.col-button .btn:active {
    background-color: #004080;
    transform: scale(0.96);
}


.search-bar {
    display: flex;
    align-items: center;
    border-radius: 15px 15px 15px 15px;
    /* backdrop-filter: blur(5px); */
    flex-wrap: wrap;
    background-color: rgba(255, 255, 255, 0.882);
    box-shadow: 0px 10px 30px -3px rgba(0, 0, 0, 0.3);
    padding: 10px;
    gap: 10px;

    margin: 0 auto 30px;
    width: 80%;
}

.field {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 150px;
    padding: 0;

}

.field label {
    font-style: italic;
    font-weight: bold;
    margin-bottom: 4px;
}

.field input,
.field select {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    background-color: white;
    color: #333;
    box-sizing: border-box;
}

.Taxi-serv textarea {

    height: 100px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 2px solid #ccc;
    font-size: 14px;
    background-color: white;
}

.Taxi-serv textarea:focus {
    border-color: #0078f8;
    /* ขอบเปลี่ยนสีตอน focus */
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
    /* เพิ่มเงา */
    outline: none;
    /* เอาเส้น outline ฟ้าออก */
}

.btn-confirm {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #007BFF;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-confirm:hover {
    background-color: #0056b3;
}

.date-input {
    font-size: 14px;
    color: #999;
    font-family: "Poppins", sans-serif;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.field-taxi {
    padding: 0 5px;
}

.ticket-con .search-grid {

    padding: 0 5px;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0 5px;
    display: grid;
    gap: 10px;
    grid-template-columns: 40% auto;

}

.your-journey {
    display: flex;
    justify-content: space-evenly;
}

.blog-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 25px !important;
    /* padding: 10px 20px; */
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
}

.blog-btn .icon {
    width: 100%;
    height: 100%;
}

F .blog-title h3.wave-text {
    white-space: nowrap;
}

.go-btn:hover {
    background: #0056b3;
}

.date-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #007bff;
    border-radius: 10px;
    font-size: 16px;
    color: #333;
    background: #f9f9f9;
    transition: all 0.3s ease;
}



.date-input:focus {
    border-color: #0056b3;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
    outline: none;
}

.time-select-wrapper {
    display: flex;
    gap: 10px;
}

.custom-select {
    position: relative;
    width: 100%;
}

.select-display {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 6px 10px;
    background-color: #ffffff;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    text-align: center;

}

.select-display.placeholder {
    color: #999;
    text-align: center;
    cursor: pointer;


}

.options-list {
    position: absolute;
    top: 110%;
    width: 100%;
    left: 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    max-height: 150px;
    overflow-y: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 10;
    text-align: center;

}

.option-item {
    padding: 6px 10px;
    cursor: pointer;
}

.option-item:hover {
    background-color: #007BFF;
    color: #fff;
}

.cart-popup {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wave {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 1442px) {
    .ticket-con {
        flex-direction: column;
        width: 90%;
    }

    .boat-serv {

        padding: 0;

    }
}

@media (max-width: 1026px) {
    .blog {
        margin-top: 11rem;
    }

    .contactlogo {
        text-align: center;
    }

}



@media (max-width: 981px) {
    .ticket-con {
        width: 100%;
    }

    .select-box {
        font-size: 14px;
    }

    .search-bar {
        display: grid;
        grid-template-columns: auto auto;
    }

    .ticked-plan-con p {
        font-size: 14px;
    }


}

@media (max-width: 767px) {
    .search-bar {
        flex-direction: column;
        margin: 0 auto 20px;
    }

    .search-bar .field,
    .search-bar .go-btn {
        width: 100%;
    }

    .search-bar .go-btn {
        margin-top: 10px;
    }

    .ticket-con .search-grid {

        flex-direction: column;
        flex: 1;
        padding: 0 5px;
        display: grid;
        gap: 10px;
        grid-template-columns: auto;
    }
}

@media (max-width: 657px) {

    .search-bar {

        grid-template-columns: auto;
    }


}

@media (max-width:653px) {
    .travel-plan-item {
        width: 100% !important;
    }

    .passenger-box {
        width: 100% !important;
    }

}

@media (max-width: 600px) {
    .blog-con {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .wave-text {
        display: flex;
        flex-wrap: wrap;
    }

    .blog-item {
        aspect-ratio: unset;
        height: auto;
    }

    .blog-item img {
        height: 10rem;
    }

    .blog-item h4,
    .blog-item p,
    .blog-item a {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .icon-head li a {
        font-size: 14px;
    }
}



@media (max-width: 553px) {


    .icon-head li a {
        padding: 8px 8px;
        font-size: 12px;
    }

}

@media (max-width: 400px) {


    .icon-head li a {
        padding: 8px 6px;
        font-size: 11px;
    }
}

@media (max-width: 488px) {
    .Taxi-serv {
        padding: 2rem 0 2rem 0;
        width: 100%;
    }

    .Taxi-serv h2,
    h4 {
        padding: 10px;
    }

    .icon-head li a {
        font-size: 12px;
    }

    .ticked-plan-con p {
        font-size: 13px;
    }

    .icon-head li a {

        padding: 5px 10px;
    }

    .ticket-con .search-grid {
        padding: 2rem;
    }

    .close-btn {
        position: absolute;
        top: 0.6rem;
        right: 0.6rem;
    }

}

.cart-ticket .btn-confirm {
    background: none;
    color: #404040;
    font-weight: 500;
    text-decoration: underline;
    text-underline-position: auto;
}

/* ป้ายประเภทตั๋ว */
.ticket-type {
    background: #fff;
    color: #3c5672;
    padding: 0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
}

.cart-container {
    position: relative;
    /* ให้ popup อิงตำแหน่งจาก container นี้ */
    display: inline-block;
}

.cart-popup::-webkit-scrollbar {
    width: 8px;
}

.cart-popup::-webkit-scrollbar-track {
    background: transparent;
}

.cart-popup::-webkit-scrollbar-thumb {
    background-color: #aaa;
    border-radius: 16px;
    /* ทำให้โค้งมน */
    border: 2px solid transparent;
}

.hidden {
    display: none;
}


/* ปุ่มลบ */
.remove-btn {
    background: none;
    border: none;
    color: #262262;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.remove-btn:hover {
    color: #f88282;
}

/* รายละเอียด */
.route {
    font-size: 15px;
    font-weight: bold;
    margin: 8px 0 3px;
}

.datetime,
.passengers {
    margin: 2px 0;
    font-size: 13px;
}

.price {
    margin: 8px 0 0 0;
    text-align: right;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.container-boatpackage {
    min-height: 500px;
    max-height: 600px;
    overflow-y: auto;
}

.font-size-10 {
    font-size: 10px !important;
}

.font-size-11 {
    font-size: 11px !important;
}

.font-size-12 {
    font-size: 12px !important;
}

.font-size-13 {
    font-size: 13px !important;
}

.font-size-14 {
    font-size: 14px !important;
}

.font-size-15 {
    font-size: 15px !important;
}

.font-size-16 {
    font-size: 16px !important;
}

.font-size-17 {
    font-size: 17px !important;
}

.font-size-18 {
    font-size: 18px !important;
}

.font-size-19 {
    font-size: 19px !important;
}

.font-size-20 {
    font-size: 20px !important;
}

.travel-plan {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.travel-plan-date .date-input {
    /* width: fit-content; */
    padding: 2px;
}

.travel-plan-date {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 5px;
}

.search-transfer label {
    display: flex;
    align-content: center;

}

.travel-plan-item h3 {
    font-size: 18px;
}

.travel-plan-item p {
    margin-left: 0;
    margin-right: 0;
}

.departure-time {
    display: flex;
    gap: 10px;
}

.departure-time label {
    align-content: center;
}

.departure-time .popup {
    width: max-content;
}

.passenger-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.Total-ticked .field-taxi.btn-wrapper {
    width: 70%;
    /* border-top: 1px solid #000; */
    display: flex;
    justify-content: left;
    margin-top: 0;
    padding-top: 5px;

}

.Total-ticked .field-taxi.btn-wrapper button {
    width: fit-content;
    padding: 10px 20px;

}

.Total-ticked {
    display: flex;
    justify-content: space-between;
}

.counter {
    display: flex;
    align-items: center;
    gap: 6px;
}

.counter button {

    border: 0px solid #cbcbcb9e;
    color: #000000b7;
    width: 28px;
    height: 28px;
    border-radius: 15%;
    font-size: 18px;
    cursor: pointer;
    font-weight: bolder;
}

.counter span {
    min-width: 20px;
    text-align: center;
    font-weight: bold;
}


.close {
    float: right;
    font-size: 22px;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#departDate {
    width: 250px;
    padding: 10px 14px;
    font-size: 16px;
    border: 2px solid #007bff;
    border-radius: 8px;
    outline: none;
    transition: 0.2s;
}

#departDate:focus {
    border-color: #0056b3;
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.4);
}

/* ปฏิทิน Flatpickr */
.flatpickr-calendar {
    border-radius: 12px !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    font-family: "Segoe UI", sans-serif;
    font-size: 15px;
}

/* หัวเดือน */
.flatpickr-months .flatpickr-month {
    background: #007bff !important;
    color: white;
    border-radius: 12px 12px 0 0;
}

/* ปุ่มเลื่อนเดือน */
.flatpickr-prev-month,
.flatpickr-next-month {
    color: white !important;
}

/* วัน */
.flatpickr-day {
    border-radius: 50% !important;
    transition: 0.2s;
}

.flatpickr-day:hover {
    background: #007bff;
    color: white;
}

/* วันที่เลือก */
.flatpickr-day.selected {
    background: #007bff !important;
    color: white !important;
    font-weight: bold;
}

/* วันนี้ */
.flatpickr-day.today {
    border: 1px solid #007bff;
}

/* bootstrap */
.modal-content {
    border-radius: 15px !important;
}

.btn {
    border-radius: 12px !important;
}

.modal#boatPackageModal label.form-check-label,
.modal#ferryPackageModal label.form-check-label {
    display: block !important;
    margin-left: 10px !important;
}

.modal#boatPackageModal .form-check-input,
.modal#ferryPackageModal .form-check-input {
    margin-left: -20px !important;
}

.modal.custom-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.custom-modal .modal-content {
    background: #ffffffd8;
    backdrop-filter: blur(10px);
    width: 80%;
    max-width: 850px;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.modal.custom-modal .close {
    position: absolute;
    top: 0;
    right: 10px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 1100;
    transition: color 0.2s ease;
}

.modal.custom-modal .close:hover {
    color: red;
}

.modal.custom-modal .modal-body {
    gap: 20px;
}


.modal.custom-modal .modal-left img {
    width: 100%;
    height: 400px;
    border-radius: 10px;
}

.modal.custom-modal .modal-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive: จอเล็กเปลี่ยนเป็นบน-ล่าง */
@media (max-width: 768px) {
    .modal-railay .modal-body {
        grid-template-columns: 1fr;
    }
}

/* เอฟเฟกต์เปิด */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #333;
}

.hamburger-menu svg {
    stroke: currentColor;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .icon-head {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        width: 100%;
        background: #ffffff;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
        padding: 8px;
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        margin-top: 0;
        border-radius: 0;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }

    .icon-head.active {
        display: grid;
        animation: slideDown 0.3s ease-out;
    }

    .icon-head li {
        width: 100%;
        background-color: #f2f5f7;
    }

    .icon-head li a {
        display: block;
        width: 100%;
        font-size: 15px;
        font-weight: 400;
    }

    .icon-head li a:hover,
    .icon-head li a:active,
    .icon-head li a:focus {
        color: #0056b3;
    }

    .hamburger-menu {
        display: block;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .info-popup {
        left: -118px;
    }
}

/* GO Button Styles */
button#goBtn.btn {
    width: 100%;
    height: auto;
    min-height: 48px;
    padding-left: 12px;
    padding-right: 12px;
}

button#goBtn.btn.spin {
    padding-left: 16px;
    padding-right: 16px;
}

@media (max-width: 768px) {
    button#goBtn.btn {
        height: 52px;
        width: 100%;
        border-radius: 10px !important;
    }
}

/* Booking Popup Modal Styles - Bootstrap 5 */
/* #bookingPopup .modal-dialog {
    max-width: 1000px;
} */

/* #bookingPopup .modal-title {
    color: #262262;
    font-weight: 600;
} */

#bookingPopup .booking-modal-container {
    min-height: 500px;
}

/* Left Side - Destination Info */
#bookingPopup .booking-info-section {
    /* background: linear-gradient(135deg, #f7f8ff 0%, #d0cfd9 100%); */
    /* color: white; */
    display: flex;
    flex-direction: column;
}

#bookingPopup .destination-image-container {
    overflow: hidden;
    border-radius: 12px;
    max-height: 300px;
}

#bookingPopup .destination-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#bookingPopup #bookingDestinationTitle {
    color: #3f51b5;
    font-weight: 600;
    font-size: 1.5rem;
}

#bookingPopup #bookingDestinationDescription {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Right Side - Booking Form */
#bookingPopup .booking-form-section {
    overflow: hidden;
}

#bookingPopup .form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

#bookingPopup .form-control {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 14px;
    transition: border-color 0.2s;
}

#bookingPopup .form-control:focus {
    border-color: #262262;
    box-shadow: 0 0 0 0.2rem rgba(38, 34, 98, 0.15);
}

/* Responsive - Mobile Fullscreen */
@media (max-width: 991.98px) {
    #bookingPopup .booking-info-section {
        border-radius: 0;
    }

    #bookingPopup .booking-modal-container {
        flex-direction: column;
    }

    #bookingPopup .destination-image-container {
        max-height: 200px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .blog {
        margin-top: 5.5rem;
    }

    .blog-con {
        width: 90%;
    }
}

/* Swiper Styles for Destination Cards */
.img-container .swiper {
    width: 100%;
    height: 100%;
}

.img-container .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-container .swiper-slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.img-container .swiper-pagination {
    bottom: 10px;
}

.img-container .swiper-pagination-bullet {
    background: white;
    opacity: 0.7;
}

.img-container .swiper-pagination-bullet-active {
    background: white;
    opacity: 1;
}

.img-container .swiper-button-next,
.img-container .swiper-button-prev {
    color: white;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.img-container .swiper-button-next:after,
.img-container .swiper-button-prev:after {
    font-size: 16px;
}

/* Make navigation buttons smaller on mobile */
@media (max-width: 768px) {

    .img-container .swiper-button-next,
    .img-container .swiper-button-prev {
        width: 25px;
        height: 25px;
    }

    .img-container .swiper-button-next:after,
    .img-container .swiper-button-prev:after {
        font-size: 12px;
    }
}

/* Swiper Styles for Modal Images */
.modal-body .swiper {
    width: 100%;
    height: auto;
    max-height: 500px;
    border-radius: 8px;
    overflow: hidden;
}

.modal-body .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body .swiper-slide img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.modal-body .swiper-pagination {
    bottom: 10px;
}

.modal-body .swiper-pagination-bullet {
    background: white;
    opacity: 0.7;
}

.modal-body .swiper-pagination-bullet-active {
    background: white;
    opacity: 1;
}

.modal-body .swiper-button-next,
.modal-body .swiper-button-prev {
    color: white;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.modal-body .swiper-button-next:after,
.modal-body .swiper-button-prev:after {
    font-size: 20px;
}

@media (max-width: 768px) {
    .modal-body .swiper {
        max-height: 300px;
    }

    .modal-body .swiper-slide img {
        max-height: 300px;
    }

    .modal-body .swiper-button-next,
    .modal-body .swiper-button-prev {
        width: 30px;
        height: 30px;
    }

    .modal-body .swiper-button-next:after,
    .modal-body .swiper-button-prev:after {
        font-size: 16px;
    }
}

/* Interactive Search Form Styles */
#bookingPopup .dropdown-container {
    position: relative;
    flex: 1;
}

#bookingPopup .select-box {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    font-size: 16px;
    color: #6f6f6f;
    width: 100%;
    box-sizing: border-box;
}

#bookingPopup .select-box:hover {
    border-color: #999;
}

#bookingPopup .btn-date-picker {
    background-color: #ffffff !important;
    border-color: #ccc;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    padding: 10px 12px;
    text-align: left;
}

#bookingPopup .btn-date-picker:hover {
    background-color: #ffffff !important;
    border-color: #999 !important;
    box-shadow: none !important;
}

#bookingPopup .btn-date-picker:focus,
#bookingPopup .btn-date-picker:active {
    outline: none;
    background-color: #ffffff !important;
    border-color: #f1f5f9 !important;
    box-shadow: none !important;
}

#bookingPopup .inner-toggle {
    display: flex;
    align-items: center;
}

#bookingPopup .date-dd-mm {
    display: flex;
    gap: 10px;
    color: #6f6f6f;
}

#bookingPopup .picker-wrapper {
    display: inline-block;
    position: relative;
    width: 100%;
}

/* Date Picker Modal */
.datepicker-modal {
    position: fixed;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 10002;
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    width: auto;
    min-width: 320px;
}

.datepicker-modal.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
    animation: slideUp 0.3s ease;
}

.datepicker-modal.bottom {
    animation: slideDownCalendar 0.3s ease;
}

.datepicker-modal.top {
    animation: slideDownCalendar 0.3s ease;
}

@keyframes slideDownCalendar {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    color: #666;
    transition: all 0.2s;
}

.calendar-header button i {
    color: #0056b3;
}

.calendar-header button:hover {
    color: #FF5A5F;
    transform: scale(1.2);
}

.calendars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 0;
    padding-bottom: 12px;
}

.calendar {
    min-width: 260px;
}

.calendar-title {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 8px;
}

.weekday {
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    padding: 8px 0;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    color: #333;
}

.day:not(.other-month):not(.disabled):hover {
    background: #ffe1e2;
    border-color: #ffcccc;
}

.day.other-month {
    color: #ccc;
    cursor: default;
}

.day.selected {
    background: #FF5A5F;
    color: white;
    font-weight: 600;
    border-color: #FF5A5F;
}

.day.disabled {
    color: #ccc;
    cursor: not-allowed;
    background: #f5f5f5;
    opacity: 0.6;
}

.day.today {
    background: #FFE5E5;
    color: #FF5A5F;
    font-weight: 600;
    border-color: #FF5A5F;
    border: 2px solid #FF5A5F;
}

.day.today.disabled {
    background: #e8e8e8;
    color: #999;
    border-color: #ccc;
    font-weight: 500;
}

@media (max-width: 768px) {
    .calendars-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .datepicker-modal {
        min-width: 90vw;
        max-width: 90vw;
    }

    .calendar:nth-child(2) {
        display: none;
    }

    .datepicker-modal.show {
        position: fixed !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        animation: none !important;
    }

    .modal#bookingPopup .modal-content {
        border-radius: 0 !important;
    }
}

/* Ferry Picker Modal Styles */
.ferry-picker-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    pointer-events: none;
    background: rgba(218, 218, 218, 0);
    backdrop-filter: blur(0);
    animation: fadeIn 0.2s ease;
    width: 100%;
    height: 100%;
}

.ferry-picker-overlay.show {
    display: block;
    pointer-events: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ferry-picker-modal {
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    position: fixed;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    display: flex;
    flex-direction: column;
    animation: slideDown 0.3s ease;
    z-index: 10002;
    overflow: hidden;
}

@media (min-width: 769px) {
    .ferry-picker-modal {
        position: fixed;
        bottom: auto;
        top: 0;
        left: 0;
        right: auto;
        width: 600px;
        height: auto;
        max-height: 440px;
        transform: none;
        margin-top: 0;
        border-radius: 16px;
        overflow: hidden;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@media (min-width: 769px) {
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

.ferry-picker-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.ferry-picker-modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.ferry-picker-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ferry-picker-modal-close:hover {
    color: #333;
}

.ferry-picker-modal-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

@media (max-width: 768px) {
    .ferry-picker-modal-content {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }
}

.ferry-picker-modal-section {
    display: flex;
    flex-direction: column;
    padding: 0px 8px;
    margin-bottom: 10px;
    gap: 0;
}

@media (max-width: 768px) {
    .ferry-picker-modal-section {
        padding: 16px 20px;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
}

.ferry-picker-modal-section:last-child {
    margin-bottom: 0;
}

.ferry-picker-modal-section-title {
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 12px;
    letter-spacing: 0.25px;
    display: flex;
    align-items: center;
    gap: 6px;
    position: sticky;
    top: 0;
    background: #f9fafb;
    z-index: 10;
    padding: 12px 0 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .ferry-picker-modal-section-title {
        position: static;
        background: transparent;
        z-index: auto;
        padding: 8px 0;
        border-bottom: none;
        margin-bottom: 12px;
    }
}

.ferry-picker-modal-section-title::before {
    content: '';
    width: 3px;
    height: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.ferry-picker-modal-section-info {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 12px;
    font-weight: 500;
}

.ferry-picker-modal-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.ferry-picker-modal-item {
    padding: 12px 14px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 400;
    color: #374151;
    background: #f9fafb;
    border: 1px solid transparent;
    user-select: none;
}

.ferry-picker-modal-item:hover:not(.disabled) {
    background: #f3f4f6;
    color: #667eea;
    transform: translateX(4px);
}

.ferry-picker-modal-item.selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid #667eea;
    color: #667eea;
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.05);
}

.ferry-picker-modal-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f3f4f6;
    color: #d1d5db;
}

.ferry-picker-modal-item.disabled:hover {
    transform: none;
    background: #f3f4f6;
}

/* Scrollbar styling */
.ferry-picker-modal-content ::-webkit-scrollbar {
    width: 6px;
}

.ferry-picker-modal-content ::-webkit-scrollbar-track {
    background: transparent;
}

.ferry-picker-modal-content ::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.ferry-picker-modal-content ::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

* Scrollbar styling */ .modal-content ::-webkit-scrollbar {
    width: 4px;
}

.modal-content ::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content ::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.modal-content ::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #eeecec;
}

::-webkit-scrollbar-thumb {
    background: #adaeb1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7f8083;
}

button.more-info {
    background: none;
    border: none;
    color: inherit;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    color: #f56601;
}

.btn.btn-book-now {
    background-color: #ff6a00;
    color: #fff !important;
    border-color: #f56601;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.btn.btn-book-now:hover,
.btn.btn-book-now:focus {
    background-color: #df5e02 !important;
    color: #fff !important;
    border-color: #f56601 !important;
}

.card-info {
    line-height: 1.2;
    letter-spacing: 0.2px;
}

.bg-gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Modal content section titles with left border */
.modal-body h5 {
    border-left: 4px solid #667eea;
    padding-left: 12px;
    color: #262262;
    font-weight: 600;
}

/* Make destination modals fullscreen on mobile */
@media (max-width: 768px) {
    .modal-dialog.modal-lg {
        margin: 0;
        max-width: 100%;
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0 !important;
    }

    .modal-dialog.modal-lg .modal-content {
        height: 100vh;
        border-radius: 0 !important;
        border: none;
    }

    .modal-dialog.modal-lg .modal-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 0 !important;
    }

    .modal-dialog.modal-lg .modal-header {
        border-radius: 0 !important;
    }

    .modal-dialog.modal-lg .modal-footer {
        border-radius: 0 !important;
    }
}

.modal .modal-content {
    border: 0;
}