/* 
    List_Responsive.css
    CSS file for responsive styling of inner list pages.
    DỰA TRÊN CÁC THRESHOLD CỦA Plan_Responsive.css
*/

/* =========================================================
   RESPONSIVE THRESHOLDS
========================================================= */

body {
    color: var(--Content-text-primary, #212529);
    font-family: Roboto;
    font-style: normal;
}

@media (max-width: 1600px) {}

/* KHÔNG HIỂN THỊ TRÊN DESKTOP */
.mobile-header-info {
    display: none !important;
}

@media (max-width: 1420px) {}

@media (max-width: 1366px) {}

@media (max-width: 1240px) {}

@media (max-width: 1024px) {}

@media (max-width: 997px) {

    /* OFF CANVAS MENU DOCK STYLES */
    .offcanvas-body {
        padding: 0 16px;
    }

    .mobile-dock-menu {
        display: flex;
        flex-direction: column;
        margin-top: 0;
        border-top: 1px solid #eee;
        padding: 0;
    }

    .mobile-dock-item {
        display: flex;
        align-items: center;
        padding: 12px;
        color: #4D5154;
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        gap: 12px;
    }

    .mobile-dock-item:hover {
        background-color: #f3f4f6;
        border-radius: 8px;
        color: #7008E7;
    }

    .mobile-dock-item svg path {
        transition: stroke 0.2s, fill 0.2s;
    }

    .mobile-dock-item:hover svg path[stroke] {
        stroke: #7008E7;
    }

    .mobile-dock-item:hover svg path[fill] {
        fill: #7008E7;
    }

    .offcanvas-top-widgets {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 16px;
    }
}

@media (max-width: 768px) {

    /* TOUR RESPONSIVE MOBILE */
    .tour-sort-filter__bar {
        flex-direction: row;
        align-items: flex-start;
    }

    .tour-banner {
        flex-direction: column;
        padding: 24px 16px;
        min-height: auto;
        margin: 0;
        border-radius: 0
    }

    .tour-banner__content h1 {
        font-size: 20px;
        line-height: 28px;
    }

    .tour-banner__content p {
        font-size: 14px;
        line-height: 20px;
    }

    .tour-banner__search {
        width: 100%;
        margin-top: 16px;
    }

    /* EVENT RESPONSIVE MOBILE */
    body .tour-banner--event {
        flex-direction: column;
        padding: 24px 16px;
        min-height: auto;
        margin: 0;
        border-radius: 0;
        text-align: left;
    }

    body .tour-banner--event .tour-banner__content {
        align-items: flex-start;
        text-align: left;
    }

    body .tour-banner--event .tour-banner__search {
        width: 100%;
        margin-top: 16px;
    }

    body .event-slider-wrap {
        margin: 24px 0;
        padding-bottom: 72px;
        /* make space for arrows */
    }

    body .event-slider-wrap h2.section-title {
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 16px;
    }

    body .event-slider .custom-slider-viewport {
        overflow: hidden;
        /* Giữ cho viewport cắt những slide tràn ra ngoài, không gây cuộn trang */
    }

    body .event-slider .custom-slider-track {
        padding-bottom: 16px;
        display: flex;
        flex-wrap: nowrap;
    }

    /* Exact Figma Match for Cards */
    body .event-slider .event-item,
    body .event-slider .event-item.is-active {
        width: 85% !important;
        height: auto;
        margin: 0 8px;
        display: flex;
        flex-direction: column;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        background: #fff;
        flex-shrink: 0;
    }

    body .event-slider .event-item__image {
        position: relative;
        height: 172px;
        width: 100%;
        object-fit: cover;
        border-radius: 16px 16px 0 0;
    }

    body .event-slider .event-item__overlay {
        position: relative;
        background: none;
        padding: 16px;
        height: auto;
        justify-content: flex-start;
    }

    body .event-item__title,
    body .is-active .event-item__title {
        color: #212529;
        font-size: 16px;
        font-weight: 500;
        line-height: 24px;
        margin-bottom: 8px;
        -webkit-line-clamp: 1;
    }

    body .event-item__meta {
        color: #212529;
    }

    body .event-item__meta-item {
        color: #212529;
    }

    body .event-item__meta-item img {
        filter: brightness(0.2);
    }

    body .event-item__countdown {
        position: relative;
        bottom: auto;
        right: auto;
        display: flex;
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        margin-top: 12px;
        gap: 8px;
    }

    body .countdown-box {
        border: 1px solid rgba(0, 0, 0, 0.1);
        padding: 4px;
        flex: 1;
        min-width: 0;
        color: #212529;
        backdrop-filter: none;
    }

    body .countdown-box__num {
        color: #212529;
        font-size: 24px;
        line-height: 32px;
    }

    body .countdown-box__label {
        color: #a6a8a9;
    }

    body .event-slider-wrap .slick-prev,
    body .event-slider-wrap .slick-next {
        display: flex !important;
        /* Override display: none */
        top: auto;
        bottom: 0;
        transform: none;
    }

    body .event-slider-wrap .slick-prev {
        left: calc(50% - 56px);
        bottom: -50px;
    }

    body .event-slider-wrap .slick-next {
        right: calc(50% - 56px);
        bottom: -50px;
        left: auto;
    }

    /* Calendar Section */
    body .event-calendar-section {
        margin-bottom: 32px;
    }

    body .calendar-layout-header {
        margin-bottom: 16px;
        flex-wrap: wrap;
        gap: 12px;
    }

    body .calendar-layout-header h3,
    body .calendar-layout-header h2.section-title {
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 0;
    }

    body .calendar-layout-header .btn-view-all {
        padding: 8px 16px;
        background: #F5F3FF;
        border-radius: 999px;
    }

    body .calendar-layout-body {
        flex-direction: column;
        gap: 24px;
    }

    body .calendar-sidebar {
        width: 100%;
        max-width: 100%;
        padding: 16px;
        background: #F5F3FF;
        border-radius: 16px;
    }

    body .cal-day-cell.out-month {
        pointer-events: auto;
        /* Fix bug: allow clicking on out-of-month days in week view */
    }

    body .calendar-events-list {
        width: 100%;
        /* Override JS inline height on mobile */
        display: flex;
        max-height: 450px !important;
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        align-self: stretch;
        padding-bottom: 24px;
        border-radius: 16px;
        flex: unset;
        border: 1px solid var(--Border-border-secondary, #E5E7EB);
    }

    body .event-item-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        position: relative;
        padding: 16px;
        padding-left: 142px;
        /* 16px padding + 110px image + 16px gap */
        border: 1px solid transparent;
        border-bottom: 1px solid #e5e7eb;
        border-radius: 0;
        margin-bottom: 0;
        gap: 0;
    }

    body .event-item-row:last-child {
        border-bottom: none;
    }

    body .event-item-row__img {
        position: absolute;
        left: 16px;
        top: 16px;
        width: 110px;
        height: 72px;
        border-radius: 8px;
        margin: 0;
        object-fit: cover;
    }

    body .event-item-row__date {
        display: flex;
        flex-direction: row;
        align-items: baseline;
        gap: 2px;
        color: #7008e7;
    }

    body .event-item-row__date-num {
        font-size: 14px;
        line-height: 20px;
        font-weight: 500;
        margin: 0;
    }

    body .event-item-row__date-month {
        font-size: 14px;
        line-height: 20px;
        font-weight: 500;
        text-transform: none;
        margin: 0;
    }

    body .event-item-row__date-month::before {
        content: "/";
    }

    body .event-item-row__time {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: 8px;
        font-size: 14px;
        line-height: 20px;
        color: #212529;
        font-weight: 500;
        margin-top: 0;
        margin-bottom: 0;
    }

    body .event-item-row__time::before {
        content: "";
        display: block;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background-color: #212529;
    }

    body .event-item-row__info {
        flex: 0 0 100%;
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin-top: 4px;
    }

    body .event-item-row__title {
        font-size: 16px;
        line-height: 24px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        margin: 0;
        color: #4d179a;
    }

    body .event-item-row__location {
        font-size: 14px;
        line-height: 20px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        margin: 0;
        color: #4d5154;
    }

    body .event-badge {
        flex: 0 0 auto;
        height: 26px;
        padding: 0 12px;
        font-size: 12px;
        line-height: 16px;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: static;
        margin-top: 4px;
    }

    body .festival-section {
        margin-top: 32px;
        padding-bottom: 32px;
    }

    .company-travel__head h2,
    .tour-category-filter__head h2,
    .tour-list__head h2 {
        font-size: 20px;
        line-height: 28px;
    }

    .company-travel__chips,
    .tour-category-filter__chips,
    .tour-list__chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .company-travel__chips::-webkit-scrollbar,
    .tour-list__chips::-webkit-scrollbar {
        display: none;
    }

    .tour-sort-filter__right {
        /* width: 100%; */
        justify-content: flex-start;
    }

    .tour-sort-filter__chips {
        flex-wrap: nowrap;
    }

    .tour-sort-filter__label {
        font-size: 16px;
        white-space: nowrap;
    }

    .company-travel__nav {
        display: none;
    }

    .tour-list__grid {
        --item: 1;
    }

    .tour-list__logo-wrap {
        height: 224px;
    }
}

@media (max-width: 576px) {}

@media (max-width: 465px) {}

@media (max-width: 420px) {}

@media (max-width: 380px) {}

/* =========================================
   MOBILE RESPONSIVE DETAILS
   ========================================= */
@media (max-width: 768px) {
    .detail-container {
        display: flex;
        flex-direction: column;
    }

    #detail-gallery {
        order: -1;
        margin-bottom: 16px;
    }

    /* #detail-title, .mobile-header-info, #group_gioiThieu, .groupVideo, .groupAudio, .groupImage, .groupMap, .groupDanhGia, .room-booking-container, .price-table-container {
        padding-left: 16px;
        padding-right: 16px;
    } */

    #detail-title {
        padding-bottom: 8px !important;
        margin-bottom: 0 !important;
    }

    nav[aria-label="breadcrumb"] {
        padding-left: 16px;
        padding-right: 16px;
        display: none;
    }

    #animated-thumbnails-gallery .gallery-item:not(:first-child) {
        display: none !important;
    }

    #animated-thumbnails-gallery {
        display: block !important;
        height: 250px;
        width: 100%;
        border-radius: 0 !important;
        overflow: hidden;
        padding: 0;
    }

    #detail-gallery {
        margin-bottom: 0 !important;
    }

    #animated-thumbnails-gallery .gallery-item {
        display: block;
        width: 100%;
        height: 100%;
    }

    #animated-thumbnails-gallery .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0 !important;
    }

    .anhDaiDien {
        height: 250px;
        width: 100%;
    }

    .anhDaiDien img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0 !important;
    }

    .mobile-overlay-buttons {
        position: absolute;
        top: 8px;
        left: 8px;
        right: 8px;
        display: flex !important;
        justify-content: space-between;
        z-index: 10;
    }

    .overlay-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.4);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        padding: 8px;
    }

    .mobile-more-menu {
        min-width: 180px;
        border-radius: 12px;
        border: none;
    }

    .mobile-more-menu .dropdown-item {
        padding: 10px 16px;
        border-radius: 8px;
    }

    .mobile-gallery-badge {
        position: absolute;
        bottom: 8px;
        right: 8px;
        background: rgba(0, 0, 0, 0.3);
        color: white;
        padding: 2px 9px;
        border-radius: 32px;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.5px;
        display: flex !important;
        align-items: center;
        gap: 4px;
        z-index: 10;
        cursor: pointer;
    }

    .mobile-gallery-badge svg {
        display: none;
        /* Figma ko có icon trong badge */
    }

    #detail-title .detail-actions-bar {
        display: none !important;
    }

    #detail-title h2 {
        margin-bottom: 0;
        word-break: break-word;
        color: var(--Content-text-primary, #212529);
        font-family: Roboto;
        font-size: 20px;
        font-style: normal;
        font-weight: 500;
        line-height: 28px;
    }

    .mobile-header-info {
        display: flex !important;
        flex-direction: column;
        margin-bottom: 24px;
        gap: 8px;
    }

    .mobile-header-info .header-review {
        display: flex;
        gap: 4px;
        align-items: center;
    }

    .mobile-header-info .rate-badge {
        background: #ede9fe;
        padding: 0 4px;
        border-radius: 8px 8px 8px 0;
        display: inline-flex;
        align-items: center;
        height: 20px;
    }

    .mobile-header-info .rate-score {
        color: var(--plan-trip-700, #7008E7);

        /* Title/Small */
        font-family: Roboto;
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 20px;
        /* 142.857% */
        letter-spacing: 0.1px;
    }

    .mobile-header-info .rate-max {
        color: var(--plan-trip-700, #7008E7);

        /* Title/Small */
        font-family: Roboto;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 20px;
        /* 142.857% */
        letter-spacing: 0.1px;
    }

    .mobile-header-info .review-count {
        color: var(--Content-text-primary, #212529);
        /* Body/Medium */
        font-family: Roboto;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 20px;
        /* 142.857% */
        letter-spacing: 0.25px;
    }

    .mobile-header-info .header-address,
    .mobile-header-info .header-phone {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .mobile-header-info .header-address svg {
        flex-shrink: 0;
        color: #212529;
    }

    .mobile-header-info .header-phone svg {
        flex-shrink: 0;
        color: #1447e6;
    }

    .mobile-header-info .header-address span {
        color: #212529;
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
    }

    .mobile-header-info .header-phone a {
        color: #1447e6;
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
        text-decoration: none;
    }

    .mobile-info-slider-wrapper {
        position: relative;
        width: 100%;
        margin-top: 4px;
    }

    .mobile-info-slider {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-right: 32px;
        /* Extra padding to scroll past the gradient */
        padding-bottom: 4px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .mobile-info-slider::-webkit-scrollbar {
        display: none;
    }

    .info-slide-item {
        display: flex;
        flex-direction: column;
        background: var(--plan-trip-50, #F5F3FF);
        padding: 4px 8px;
        border-radius: 8px;
        min-width: 160px;
        scroll-snap-align: start;
        flex: 1 0 auto;
    }

    .info-slide-item .info-label {
        font-family: Roboto;
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 20px;
        letter-spacing: 0.1px;
        color: var(--Content-text-primary, #212529);
        margin-bottom: 0;
    }

    .info-slide-item .info-value {
        font-family: Roboto;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 20px;
        letter-spacing: 0.25px;
        color: var(--Content-text-primary, #212529);
        margin-bottom: 0;
    }

    .info-slide-item .info-value.text-blue {
        color: var(--State-info, #1447E6);
    }

    .slide-right-gradient {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 48px;
        background: linear-gradient(270deg, #FFFFFF 40%, rgba(255, 255, 255, 0) 100%);
        pointer-events: none;
        border-radius: 0 8px 8px 0;
    }

    #group_thongTin {
        display: none !important;
    }

    .gallery-video.gallery-grid,
    .gallery-list {
        display: flex !important;
        overflow-x: auto;
        flex-wrap: nowrap !important;
        gap: 12px;
        padding-bottom: 12px;
    }

    .gallery-video .gallery-item {
        min-width: 200px;
        flex-shrink: 0;
    }

    .group_main_content #group_gioiThieu>div:not(:last-child),
    .group_main_content>div:not(:last-child) {
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid #E5E7EB;
    }

    .room-card-content {
        padding: 16px;
    }

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

    /* Bottom Sheet Modal Style for Mobile */
    .modal-dialog {
        display: flex !important;
        align-items: flex-end !important;
        min-height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .modal-content {
        border-radius: 20px 20px 0 0 !important;
        border: none !important;
        width: 100% !important;
        margin-bottom: 0 !important;
        padding-bottom: env(safe-area-inset-bottom, 20px) !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15) !important;
    }

    .modal.fade .modal-dialog {
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1) !important;
        transform: translateY(100%) !important;
    }

    .modal.show .modal-dialog {
        transform: translateY(0) !important;
    }

    .modal-backdrop {
        backdrop-filter: blur(2px) !important;
    }

    .tour-category-filter__head {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Mobile Offcanvas Custom Styles (Copied from Plan_Responsive.css) */
#mobileNavOffcanvas {
    width: 350px;
    z-index: 1055;
    border-radius: 16px 0 0 16px;
}

#mobileNavOffcanvas .offcanvas-header {
    border-bottom: 1px solid #eee;
}

#mobileNavOffcanvas .offcanvas-title {
    font-size: 20px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
}

#mobileNavOffcanvas .offcanvas-body {
    display: flex;
    flex-direction: column;
    padding: 0;
}

#mobileNavOffcanvas .offcanvas-top-widgets {
    display: flex;
    gap: 16px;
    padding: 8px;
    justify-content: space-between;
}

#mobileNavOffcanvas .pt-weather-info {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

#mobileNavOffcanvas .pt-weather-temp {
    font-size: 16px;
}

#mobileNavOffcanvas .pt-language-selector {
    display: flex;
    justify-content: flex-end;
}

#mobileNavOffcanvas .language-selector .langDropdown {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

#mobileNavOffcanvas .language-selector .langFlag {
    width: 24px !important;
    height: 18px !important;
    object-fit: cover;
    border-radius: 2px;
}

#mobileNavOffcanvas .language-selector .langText {
    font-weight: 500;
    font-size: 16px;
    color: #212529;
}

#mobileNavOffcanvas .language-selector .langDropdown svg {
    margin-left: auto;
}

#mobileNavOffcanvas .language-selector .langMenu {
    min-width: 160px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

#mobileNavOffcanvas .language-selector .langMenu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #212529;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#mobileNavOffcanvas .language-selector .langMenu .dropdown-item:hover,
#mobileNavOffcanvas .language-selector .langMenu .dropdown-item:focus {
    background-color: #f3f4f6;
    color: #111827;
}

#mobileNavOffcanvas .language-selector .dropdown-item img,
#mobileNavOffcanvas .langMenu img,
.offcanvas-body .langMenu img {
    width: 24px !important;
    height: 18px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    object-fit: cover !important;
    margin-right: 8px !important;
    margin-left: 0 !important;
    border-radius: 2px !important;
    display: inline-block !important;
}

.mobile-dock-menu {
    display: flex;
    flex-direction: column;
    margin-top: 0;
    border-top: 1px solid #eee;
    padding: 8px 0 24px 0;
}

.mobile-dock-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    text-decoration: none;
    color: #212529;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.1px;
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-dock-item:hover,
.mobile-dock-item:active {
    background: #f8f9fa;
}