/* Mobile layout corrections loaded after legacy component styles. */
.slide {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Trên mobile chỉ giữ hai kênh liên hệ chính để không che nội dung trang. */
@media all and (max-width: 480px) {
    .social-popup a:nth-child(1),
    .social-popup a:nth-child(2),
    .social-popup a:nth-child(3),
    .social-popup a:nth-child(5) {
        display: none;
    }

    .social-popup {
        max-height: none;
    }
}

@media (max-width: 767.98px) {
    /* Footer mobile: tach menu va widget danh gia thanh hai khoi doc. */
    .footer-top .bootstrap-grid > .footer-menu,
    .footer-top .bootstrap-grid > .footer-trip {
        flex: 0 0 100%;
        width: 100% !important;
        max-width: 100%;
        margin-right: 0;
    }

    .footer-top .footer-menu > ul {
        width: 100%;
    }

    .footer-top .footer-trip {
        margin-top: 8px;
    }

    .footer-top .footer-trip-title,
    .footer-top .footer-trip > div {
        max-width: 100%;
    }

    /* Tripadvisor nap CSS rieng voi khung 240px: cho widget phu het cot mobile. */
    .footer-top .footer-trip .TA_cdswritereviewlgvi,
    .footer-top .footer-trip [id^="CDSWIDWRL"],
    .footer-top .footer-trip .widWRL,
    .footer-top .footer-trip .widWRLData,
    .footer-top .footer-trip form {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: none !important;
    }

    .footer-top .footer-trip textarea,
    .footer-top .footer-trip input[type="text"] {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .footer-middle .partner-carousel .partner-slide {
        height: 64px;
        padding: 5px 3px;
    }

    .footer-middle .partner-carousel .partner-slide img {
        max-height: 38px;
    }

    .footer-middle .partner-carousel .tourradar-wordmark {
        font-size: 14px;
    }

    .footer-middle .partner-carousel .tourradar-partner small {
        font-size: 8px;
    }
}

@media (max-width: 767.98px) {
    .tourD {
        max-width: 100%;
        overflow: hidden;
    }

    .tourD-string {
        margin-bottom: 22px;
    }

    .tourD-string > ul.row > li {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .tourD-detail .main-detail {
        max-width: 100%;
        overflow-x: auto;
    }
}

.slide .owl-carousel,
.slide .owl-stage-outer,
.slide-item,
.slide-item picture {
    display: block;
    width: 100%;
    max-width: 100%;
}

/* Owl tự tính tổng chiều rộng stage và từng item bằng inline style. */
.slide .owl-stage,
.slide .owl-item {
    max-width: none;
}

.slide-item img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
}

@media (max-width: 768px) {
    html,
    body,
    #page {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .slide .owl-stage-outer {
        margin: 0;
        padding: 0;
    }

    .search-home #search-form {
        width: auto;
        margin-right: 30px;
        margin-left: 30px;
    }

    .header-inner .lang {
        right: 8px;
        bottom: auto;
        top: 7px;
        height: auto;
        gap: 5px;
        padding: 0;
        margin: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .header-inner .lang a,
    .header-inner .lang a + a {
        display: block;
        margin: 0;
    }

    .header-inner .lang img {
        width: 25px;
        height: 17px;
        object-fit: cover;
        border-radius: 1px;
    }
}

@media (max-width: 375px) {
    .search-home #search-form {
        margin-right: 15px;
        margin-left: 15px;
    }
}

@media (max-width: 480px) {
    .khuyenmai-info {
        padding: 14px 10px;
    }

    .khuyenmai-info h3 {
        margin-bottom: 10px;
    }

    .khuyenmai-info ul {
        display: flex;
        flex-direction: column;
        gap: 5px;
        align-items: stretch;
    }

    .khuyenmai-info ul li,
    .khuyenmai-info ul li:nth-child(1),
    .khuyenmai-info ul li:nth-child(2) {
        width: 100%;
        min-width: 0;
        margin: 0;
        text-align: center;
    }

    .khuyenmai-info ul li p,
    .khuyenmai-info ul li p + p {
        height: auto;
        min-height: 23px;
        margin: 0;
        line-height: 23px;
    }

    .khuyenmai-info ul li:nth-child(1) p:first-child {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .khuyenmai-info ul li:nth-child(1) p:nth-child(2) {
        white-space: nowrap;
    }

    .khuyenmai-info ul li:nth-child(2) p:nth-child(1),
    .khuyenmai-info ul li:nth-child(2) p:nth-child(2) {
        text-align: center;
    }

    .khuyenmai-info ul li:nth-child(2) p:nth-child(2) {
        font-size: 17px;
        line-height: 22px;
        white-space: nowrap;
    }

    .khuyenmai-info ul .clear {
        display: none;
    }

    /* Card thuê xe để chiều cao tự nhiên theo nội dung. */
}
