﻿@media (max-width:780px) {
    .fa-bars {
        font-size: 28px;
        color: #555;
    }

    .rsp {
        display: inline-block
    }

    .desktop {
        display: none
    }

    #partnerPage .partner-hero {
        height: 40vh !important;
        min-height: 350px;
        background-attachment: scroll;
    }

    #partnerPage .partner-hero h1 {
        font-size: 2rem !important;
    }

    #partnerPage .partner-hero p {
        font-size: 1.1rem !important;
    }

    #partnerPage .partner-search-box input {
        height: 50px;
        font-size: 1rem;
    }

    #partnerPage #logo {
        height: 50px;
        width: auto;
        position: relative;
    }

    #partnerPage .logo img {
        height: 100%;
        padding: 0;
        width: auto;
        margin: 0 !important;
    }

    #logo img {
        height: 30px;
        width: auto;
        margin: 10px 0 0 10px
    }

    header nav {
        line-height: 0;
        height: 45px;
        float: right;
        width: auto;
    }

    header nav ul li {
        padding: 10px 15px;
        border-left: solid 1px #ccc;
        height: 29px;
        float: left
    }

    header {
        margin-bottom: 5px;
        padding: 0;
        box-shadow: 0 0 4px #ccc
    }

    .languageSwitcher img {
        padding-top: 3px;
        width: 35px;
    }

    footer .container {
        width: 100%;
        font-size: 12px
    }

    #flagPopup {
        width: 88%;
        right: 0;
        margin-top: -30px
    }

    #flagPopup .arrowUp {
        right: 70px
    }

    footer .container .leftColumn,
    footer .container .rightColumn {
        width: 100%;
        float: left;
        text-align: center;
    }

    footer .container #copyRight {
        width: 100%;
        text-align: center
    }

    footer .container .row {
        margin: auto
    }

    footer #socialNetworkIcons {
        text-align: center
    }

    footer #socialNetworkIcons a {
        width: 35px;
        height: 35px;
        float: none;
        display: inline-block;
        line-height: 35px
    }

    video {
        display: none
    }

    .homePageBanner {
        height: 40vh
    }



    #homePage .header {
        background-color: transparent !important;
        box-shadow: none;
    }

    #homePage #bigLogo {
        width: 170px;
        margin-left: 20px;
    }

    #homePage .homeHeroSearchWrap {
        top: 7%;
        bottom: auto;
    }

    #homePage .homeHero .searchBox {
        /* background: rgba(255, 255, 255, 0.18); */
        /* border: 1px solid rgba(255, 255, 255, 0.35); */
        border-radius: 14px;
        box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
        padding: 20px 18px 10px;
        backdrop-filter: blur(2px);
    }

    #homePage .searchBtn {
        width: 100%;
        background-color: #e70000;
        height: 55px;
        text-align: center;
        border-radius: 4px;
    }

    #homePage .searchBtn * {
        color: #fff;
        position: relative;
        font-size: 1.5rem;
    }

    #homePage .searchBtn i {
        font-size: 2rem;
    }

    #homePage .tabs-cat {
        margin-top: 5%;
        position: absolute;
        width: 100%;
        left: 0;
    }

    #homePage .tabs-cat i {
        font-size: 3.2rem;
        padding-top: 20px;
        line-height: 18px;
    }

    #homePage .tabs-cat li {
        width: 33%;
        float: left;
        background: rgba(255, 255, 255, 0.38);
        border: 1px solid rgba(255, 255, 255, 0.8);
        /*border-radius: 14px;*/
        /*box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);*/
        padding: 14px 10px;
        backdrop-filter: blur(2px);
    }

    #homePage .homeHero {
        position: relative;
        height: 100vh;
        min-height: 520px;
        /* background-position: center; */
        background-size: 380%;
        background-repeat: no-repeat;
        overflow: hidden;
        background-position: 22% 0;
    }

    .searchFormBox .inputBox {
        display: inline-table;
        width: 100%;
        background-color: rgb(255 255 255 / 35%);
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-bottom: 10px;
        border: solid 1px #ffffff;
        border-radius: 4px;
    }

    .searchBox span {
        color: #000;
        font-size: 1.6rem;
    }

    .searchBox input[type='text'],
    .searchBox select {
        height: 50px;
        background: #ffffff00;
        margin-bottom: 5px;
        font-size: 1.5rem;
        color: #e70000 !important;
    }

    .searchFormBox .submitBox {
        padding: 0 !important;
    }

    .searchBox form {
        margin-top: 35px;
        width: 100% !important;
    }

    .tabs-cat .cate-item {
        height: 110px;
    }

    .tabs-cat .cate-item span {
        display: block;
        color: #000;
        height: auto;
        line-height: 8px;
        font-size: 12px;
    }

    .tabs-cat .cate-item span.count {
        font-size: 1.3rem;
    }

    .sales-item .home-sales-text {
        min-height: 125px;
    }

    .sales-item {
        margin-bottom: 20px;
    }

    .rspNav i.fa-bars {
        font-size: 32px;
        margin-top: 10px;
        margin-right: 10px;
        color: #e70000;
    }

    #memberRspIcon {
        font-size: 40px;
        margin-top: 8px;
        color: #e70000;
    }

    .container {
        width: 100%;
    }

    header.header {
        height: 65px !important;
    }

    header.header .header__content .logo img,
    header.header .header__content .logo #logo img {
        max-height: 25px;
        width: auto;
        vertical-align: middle;
        padding-left: 10px;
        padding-top: 5px;
    }

    .search-toolbar {
        background-color: transparent;
    }

    .toolbar-results {
        font-size: 1.6rem;
    }

    .toolbar-sort select {
        height: 35px;
    }

    .drawer-close {
        display: block;
        position: absolute;
        right: 15px;
        top: 15px;
        font-size: 80px;
        color: #333;
        cursor: pointer;
        line-height: 25px;
    }

    .main-cn .sidebar-cn {
        padding-top: 10px;
    }

    .search-sidebar form {
        width: 100%;
    }

    #searchResultPage .search-sidebar .form-search .field-input,
    #searchResultPage .search-sidebar .form-search select {
        font-size: 2rem;
        color: #e70000 !important;
        font-weight: normal;
    }

    .search-sidebar span {
        color: #000 !important;
        font-size: 14px;
    }

    #searchResultPage .widget-sidebar .group-star i,
    #searchResultPage .filter-section .group-star i {
        font-size: 2rem;
    }

    .widget-rate li {
        padding-bottom: 5px;
    }

    .widget-rate .radio-checkbox label:before {
        position: absolute;
        content: '';
        width: 22px;
        height: 21px;
        top: 0px;
        line-height: 14px;
        left: 0;
        cursor: pointer;
        background-color: #f2f2f2;
        border: 1px solid #000000;
        -webkit-border-radius: 2px;
        -moz-border-radius: 2px;
        border-radius: 2px;
        -moz-background-clip: padding;
        -webkit-background-clip: padding-box;
        background-clip: padding-box;
    }

    #searchResultPage .widget-sidebar .title-sidebar,
    #searchResultPage .filter-section-title {
        font-size: 18px;
    }

    .sidebar-cn {
        margin-top: 10px;
    }

    .leftColumn .drawer-header {
        height: 60px;
    }

    .hotel-list {
        padding-top: 0;
    }

    .photoGallery .thumb {
        width: 50%;
    }

    #activitypage .thumbnail-grid {
        gap: 0 !important;
    }

    #activitypage .head-detail {
        transition: padding 0.2s ease;
        padding: 10px 0 !important;
    }

    #activitypage .thumbnail-grid {
        padding-bottom: 0;
    }

    #activitypage .photoGallery {
        margin-bottom: 0;
    }

    .overview-sidebar article {
        padding: 5px 12px;
    }

    .detail-cn>.row>[class*="col-"]:last-child {
        padding-left: 10px;
        padding-right: 10px;
    }

    #checkArrivalContentPage {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .package-card-v2 {
        background: #fff;
        border: 1px solid #eee;
        border-radius: 12px;
        padding: 15px;
        margin-bottom: 20px;
        box-shadow: 0 1px 7px rgba(0, 0, 0, 0.5);
        transition: transform 0.2s, box-shadow 0.2s;
    }

    #packageListRow h5 {
        padding-bottom: 10px;
    }

    #homePage h1 {
        font-size: 24px;
    }

    .payment-form {
        padding: 0 !important;
    }

    .payment-room {
        padding-top: 0;
        margin-top: 10px;
        border-top: none;
    }

    .payment-room .payment-price figure {
        display: block;
        padding-left: 5px;
    }

    .payment-room .payment-price {
        padding: 5px !important;
        margin-top: 5px;
        margin-bottom: 5px;
        border-radius: 0;
    }

    .payment-room .payment-price figure {
        flex: 0 0 120px;
    }

    .payment-room .payment-price .total-trip span {
        line-height: 18px;
    }

    .payment-room .payment-price .total-trip {
        padding: 0 5px;
    }

    .payment-room .payment-price figure img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
    }

    .payment-room .payment-info ul li {
        line-height: 20px;
    }

    .payment-room .row [class*="col-"] {
        padding-right: 0;
    }

    .payment-info h3 {
        font-size: 18px;
    }

    .payment-form h2 {
        padding-top: 5px;
        color: #e70000
    }

    .payment-form {
        background: none;
        border-top: solid 1px #e70000
    }

    #memberCheckoutExperience .custom-checkbox .custom-control-label::before {
        top: 0px;
        width: 20px;
        height: 20px;
        left: -2.7rem;
    }

    #partnerPage .partner-hero .homeHeroSearchWrap {
        height: 30vh;
    }

    #partnerPage .partnerMainText {
        bottom: 0;
    }

    #partnerPage header.header .header__content .logo img {
        max-height: 50px;
    }
}


@media (min-width:600px) {
    .text-left-md {
        text-align: left !important;
    }
}

/* Member & Order History Responsive */
@media (max-width: 991px) {

    /* Full-screen Member Sidebar Popup */
    .memberSidebarWrap {
        position: fixed;
        top: 0;
        left: -105% !important;
        width: 100% !important;
        height: 100vh !important;
        background: #fff;
        z-index: 10001 !important;
        transition: left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        display: block !important;
        padding-top: 0 !important;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
    }

    html.rspMemberActive .memberSidebarWrap {
        left: 0 !important;
        width: 95% !important;
    }

    /* Mask overlay */
    html.rspMemberActive::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10000 !important;
        backdrop-filter: blur(2px);
    }

    .member-sidebar {
        border-radius: 0 !important;
        box-shadow: none !important;
        margin-bottom: 0 !important;
    }

    .rspMemberActive .member-sidebar {
        margin-top: 65px;
    }

    .rspMemberActive .memberSidebarWrap {
        padding: 0;
    }

    .member-sidebar__close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 24px;
        color: #000;
        z-index: 10;
        cursor: pointer;
        line-height: 1;
        opacity: 0.8;
    }

    .member-sidebar__close:hover {
        opacity: 1;
    }

    /* Adjust sidebar nav for full height on mobile */
    .member-sidebar__nav li a {
        padding: 16px 20px !important;
        font-size: 17px !important;
    }

    /* Order History Cards - Mobile View */
    .oh-table-wrap {
        display: none;
    }

    .oh-card-list {
        display: block;
    }

    .oh-card {
        grid-template-columns: 125px 1fr !important;
        grid-template-areas:
            "img header"
            "img dates"
            "img price"
            "product product"
            "voucher voucher" !important;
        gap: 10px 15px !important;
        padding: 12px !important;
    }

    .oh-card-img {
        aspect-ratio: 4 / 3 !important;
        border-radius: 6px !important;
    }

    .oh-card-header-part {
        border-bottom: none !important;
        padding-bottom: 0 !important;
        align-items: flex-start !important;
    }

    .oh-card-id {
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    .oh-card-status {
        margin-left: auto;
    }

    .oh-card-dates-part {
        flex-direction: column !important;
        gap: 3px !important;
        font-size: 11px !important;
    }

    .oh-card-price-part {
        margin-top: 0 !important;
        padding-top: 0 !important;
        border-top: none !important;
        align-items: flex-end !important;
    }

    .oh-card-qty {
        font-size: 11px !important;
        line-height: 1.2;
    }

    .oh-card-price {
        font-size: 18px !important;
        line-height: 1;
    }

    .oh-card-price .curr {
        font-size: 10px !important;
    }

    .oh-card-product-part {
        padding-top: 10px;
        border-top: 1px solid #f9f9f9;
    }

    .oh-card-title {
        font-size: 15px !important;
        line-height: 1.3 !important;
    }

    .oh-card-pkg {
        font-size: 13px !important;
    }

    .oh-btn-voucher {
        width: 100% !important;
        text-align: center !important;
        padding: 10px !important;
    }
}

/*  Booking Detail Responsive  */
@media (max-width: 768px) {
    .bd-summary {
        flex-direction: column;
    }

    .bd-summary-img {
        width: 100%;
        height: 180px;
    }

    .bd-grid {
        grid-template-columns: 1fr;
    }

    .bd-value {
        text-align: left;
        margin-top: 2px;
        margin-bottom: 10px;
    }
}

/* Unified Auth Page Mobile */
@media (max-width: 991px) {
    .auth-toggle-container {
        display: block;
    }

    .auth-col-register {
        display: none;
    }

    .show-register .auth-col-login {
        display: none;
    }

    .show-register .auth-col-register {
        display: block;
    }
}