﻿/* ============================================
   HEADER & FOOTER CSS PROTECTION
   Khôi phục các styles bị travel-tips.min.css ghi đè
   Load file này SAU travel-tips.min.css
   ============================================ */

/* --- HEADER PROTECTION --- */
header,
header *,
header *::before,
header *::after {
    box-sizing: border-box;
    border-width: revert;
    border-color: revert;
    color: revert;
}

header ul,
header ol {
    list-style: revert;
    margin: revert;
    padding: revert;
}

header a {
    text-decoration: none !important;
    color: revert;
}

header img,
header svg {
    display: revert;
    vertical-align: revert;
}

header input,
header button,
header textarea,
header select {
    font: revert;
    margin: revert;
    padding: revert;
    background: revert;
    border: revert;
    color: revert;
    outline: revert;
}

header h1,
header h2,
header h3,
header h4,
header h5,
header h6,
header p {
    margin: revert;
}

header table {
    border-collapse: revert;
    border-spacing: revert;
}

/* --- FOOTER PROTECTION --- */
footer,
footer *,
footer *::before,
footer *::after {
    box-sizing: border-box;
    border-width: revert;
    border-color: revert;
    color: revert;
}

footer ul,
footer ol {
    list-style: revert;
    margin: revert;
    padding: revert;
}

footer a {
    text-decoration: none !important;
    color: revert;
}

footer img,
footer svg {
    display: revert;
    vertical-align: revert;
}

footer input,
footer button,
footer textarea,
footer select {
    font: revert;
    margin: revert;
    padding: revert;
    background: revert;
    border: revert;
    color: revert;
    outline: revert;
}

footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6,
footer p {
    margin: revert;
}

footer table {
    border-collapse: revert;
    border-spacing: revert;
}

/* ============================================
   FOOTER LAYOUT FIXES
   ============================================ */
footer .footer-top,
footer .footer-top .col-md-5 table.awards span.text-bold {
    color: #0069ad !important
}

footer .footer-top .col-md-5 p.mt-20 {
    margin-top: 20px !important;
    margin-bottom: 10px !important
}

footer .footer-top {
    border-top: 1px solid #0567c4 !important;
    border-bottom: 1px solid #0567c4 !important;
    position: relative !important;
    width: 100% !important;
    display: block !important;
    height: auto !important;
}

footer .footer-top .footer-top-bg .row,
footer .footer-top .row {
    display: flex !important;
    justify-content: space-between !important;
    margin: 0 !important
}

footer .footer-top .container {
    position: relative !important;
    z-index: 1 !important
}

footer .footer-top::after,
footer .footer-top:before {
    position: absolute !important;
    content: "" !important;
    bottom: 0 !important;
    top: 0 !important;
    border: none !important
}

footer .footer-top .menu-group {
    margin-bottom: 20px !important;
    display: block !important
}

footer .footer-top .menu-group h5 {
    font-size: 17px !important;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
    white-space: nowrap !important
}

footer .footer-top .menu-group ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

footer .footer-top .menu-group ul li {
    font-size: 14px !important;
    line-height: 1.5384616 !important
}

footer .footer-top .menu-group ul li a {
    font-size: 14px !important
}

footer .footer-top .footer-top-bg {
    height: auto !important;
}

/* Column layout */
footer .footer-top .footer-top-bg>.row>.col-md-4:nth-child(1) {
    max-width: 30% !important;
    flex: 0 0 30% !important;
}

footer .footer-top .footer-top-bg>.row>.col-md-4:nth-child(2) {
    max-width: 32% !important;
    flex: 0 0 32% !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
}

.footer-top-bg {
    padding-bottom: 26px !important;
    padding-top: 15px !important;
}

.footer-top-bg .col-md-4 .menu-group:last-child {
    margin-bottom: 0 !important;
}

.footer-top-bg .menu-group ul {
    margin-bottom: 0 !important;
}

.footer-top-bg>.row>.col-md-4:nth-child(1) {
    width: 30% !important;
    max-width: 30% !important;
    flex: 0 0 30% !important;
}

.footer-top-bg>.row>.col-md-4:nth-child(2) {
    width: 32% !important;
    max-width: 32% !important;
    flex: 0 0 32% !important;
    padding-right: 0 !important;
}

.footer-top-bg>.row>.col-md-4:nth-child(3) {
    width: 38% !important;
    max-width: 38% !important;
    flex: 0 0 38% !important;
    padding-left: 30px !important;
}

footer .footer-top .col-md-5 {
    width: 40% !important;
    max-width: 40% !important;
    flex: 0 0 40% !important;
    padding-left: 35px !important;
    padding-right: 35px !important;
}

footer .footer-top .col-md-7.footer-top-bg {
    width: 60% !important;
    max-width: 60% !important;
    flex: 0 0 60% !important;
}

/* --- COPYRIGHT SECTION --- */
footer .copyRight,
footer .copyright-footer {
    width: 100% !important;
    display: block !important
}

footer .copyright-footer .copyright-style {
    width: 100% !important;
    display: block !important;
    float: none !important;
    text-align: center !important;
    padding: 20px 15px !important
}

footer .copyright-footer .copyright-style p {
    text-align: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important
}

footer .copyright-footer .copyright-style p img {
    display: inline-block !important;
    margin-left: auto !important;
    margin-right: auto !important
}

footer .copyright-footer .copyright-style>div p {
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important
}

footer .copyright-footer .copyright-style>div a {
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important
}

.content-wrapper footer .copyright-footer .copyright-style,
.page-content footer .copyright-footer .copyright-style,
.travel-tips~footer .copyright-footer .copyright-style,
footer .copyRight .copyRightText {
    text-align: center !important
}

/* ============================================
   FIX: Kết nối với Lữ hành Saigontourist
   Icon và text trên 1 dòng
   ============================================ */
footer .copyright-footer .copyright-style p,
footer .copyRight p {
    display: block !important;
    text-align: center !important;
    margin-bottom: 10px !important;
}

/* Chỉ dùng flex cho paragraph chứa icon mạng xã hội để căn giữa icon với text */
footer .copyright-footer .copyright-style p:has(img[src*="social-fa.gif"]),
footer .copyRight p:has(img[src*="social-fa.gif"]) {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

footer .copyright-footer .copyright-style p a,
footer .copyRight p a {
    display: inline !important;
}

footer .copyright-footer .copyright-style p:has(img[src*="social-fa.gif"]) a,
footer .copyRight p:has(img[src*="social-fa.gif"]) a {
    display: inline-flex !important;
    align-items: center !important;
}

/* Fix Facebook icon inline với text */
footer p a img[src*="social-fa.gif"],
footer .copyright-style p a img[src*="social-fa.gif"] {
    display: inline-block !important;
    vertical-align: middle !important;
    margin-left: 5px !important;
}

/* ============================================
   FIX: Căn giữa hình Đã thông báo Bộ Công Thương
   ============================================ */
footer p a img[src*="dathongbao"],
footer .copyright-footer p a img[src*="dathongbao"],
footer .copyright-style p a img[src*="dathongbao"] {
    display: block !important;
    margin: 10px auto !important;
}

/* Container của hình Đã thông báo cần căn giữa */
footer p:has(a img[src*="dathongbao"]),
footer .copyright-style p:has(a img[src*="dathongbao"]) {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
}

footer p:has(a img[src*="dathongbao"]) a,
footer .copyright-style p:has(a img[src*="dathongbao"]) a {
    display: inline-block !important;
    text-align: center !important;
}

/* ============================================
   FIX: Wap Header Spacing (Logo left, Icons right)
   Chỉ áp dụng cho mobile (max-width: 767px)
   ============================================ */
@media (max-width: 767px) {
    body.wap {
        padding-top: 55px !important;
    }

    .navbar.navbar-default {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        background: #fff !important;
        margin-bottom: 0 !important;
        border: none !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
        height: 55px !important;
    }

    .navbar-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        float: none !important;
        padding: 0 10px !important;
        position: relative !important;
        z-index: 1001 !important;
        height: 55px !important;
    }

    .navbar-brand {
        float: none !important;
        margin: 0 !important;
        padding: 10px 0 !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        flex: 0 1 auto !important;
        max-width: 65% !important;
        overflow: hidden !important;
    }

    .navbar-brand img {
        max-height: 35px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    .nav-right {
        float: none !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 0 auto !important;
        position: static !important;
    }

    .nav-right li {
        float: none !important;
        display: block !important;
        position: static !important;
    }

    .nav-right li a,
    .nav-right li button {
        padding: 10px 8px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        min-height: unset !important;
    }

    .nav-right li i {
        font-size: 20px !important;
        margin: 0 !important;
        color: #333 !important;
    }
}