.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);
}

/* Cart Container */
.cart-container {
    position: relative;
    display: inline-block;
}

/* Cart Popup */
.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: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

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

/* Cart Items Container */
#cartItems {
    overflow-y: auto;
    max-height: 320px;
    min-width: 440px;
    max-width: 440px;
}

/* Scrollbar Styling */
.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 Badge */
.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;
}

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

/* Disable animation for cart icon */
.cart-container img,
.icon-head .cart-container img,
.icon-head li.cart-container img {
    transition: none !important;
    transform: none !important;
    animation: none !important;
}

.cart-container a:hover img,
.icon-head .cart-container a:hover img,
.icon-head li.cart-container a:hover img {
    transition: none !important;
    transform: none !important;
    animation: none !important;
}

/* Cart Item */
.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;
}

.empty-cart-text {
    color: #6b6b6b;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}

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

/* Total Price */
.total-price {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #cfcfcf;
    font-weight: 500;
}

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

/* Buttons */
.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;
}

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

/* Travel Plan Item */
.travel-plan-item h4.item-header {
    font-size: 17px;
    color: #0056b3;
}

/* Hidden utility class */
.hidden {
    display: none;
}

/* Mobile Responsive */
@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;
    }

    #cartItems {
        min-width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .cart-popup {
        max-height: 100vh;
        min-height: 100vh;
    }
}

/* Body class when cart is open */
body.cart-open {
    overflow: hidden;
}

/* Additional styling for cart elements */
.passenger-box {
    margin-bottom: 10px;
}

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

.ticked-plan-con {
    width: 100%;
}

.travel-plan-date {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

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

.hamburger-menu svg {
    stroke: currentColor;
}

.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;
}

@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 !important;
    }

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

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


.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;
}

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


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

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

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

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

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

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

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

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

.font-w-500 {
    font-weight: 500;
}

.font-w-600 {
    font-weight: 600;
}