
/* HEADER DESKTOP */
.tx-header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
}

.tx-header-container {
    width: min(94%, 1380px);
    margin: auto;
    pointer-events: auto;
}

.tx-header-bar {
    min-height: 86px;
    padding: 12px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
}

/* LOGO */
.tx-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
}

.tx-logo {
    width: auto;
    height: auto;
    max-width: 240px;
    max-height: 65px;
    object-fit: contain;
    display: block;
}

.tx-logo-placeholder {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: var(--txdl-action);
    color: white;
    font-size: 20px;
    font-weight: 800;
    border-radius: 8px;
}

.tx-brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tx-brand-text strong {
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
}

.tx-brand-text small {
    font-size: 10px;
    letter-spacing: 2px;
    color: #777;
}

/* MENU DESKTOP */
.tx-desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 1;
}

.tx-desktop-nav a {
    padding: 12px 11px;
    color: #303030;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 24px;
    transition: .2s ease;
}

.tx-desktop-nav a:hover,
.tx-desktop-nav .tx-nav-home {
    background: var(--txdl-ice-faint);
    color: var(--txdl-action);
}

/* RIGHT ACTIONS */
.tx-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.tx-lang-select,
.tx-lang-placeholder {
    border: 1px solid #e5e5e5;
    background: #f9f9f9;
    border-radius: 7px;
    padding: 10px 7px;
    font-size: 12px;
    font-weight: 700;
    color: #252525;
}

.tx-call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 19px;
    background: var(--txdl-action);
    color: #fff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .2s;
}

.tx-call-btn:hover {
    color: #fff;
    background: var(--txdl-action-dark);
}

/* MOBILE TOGGLE */
.tx-menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 5px;
    background: var(--txdl-action);
    border: 0;
    border-radius: 5px;
}

.tx-menu-toggle span {
    width: 21px;
    height: 2px;
    background: #fff;
    transition: .2s ease;
}

.tx-menu-toggle.is-active span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.tx-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.tx-menu-toggle.is-active span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

/* MOBILE MENU */
.tx-mobile-menu[hidden] {
    display: none !important;
}

.tx-mobile-menu {
    display: none;
    background: #fff;
    box-shadow: 0 10px 22px rgba(0,0,0,.12);
    overflow-y: auto;
    max-height: calc(100dvh - 70px);
}

.tx-mobile-menu a {
    display: block;
    padding: 15px 22px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    font-weight: 500;
    color: #262626;
}

.tx-mobile-menu a:hover,
.tx-mobile-menu .tx-mobile-home {
    color: #fff;
    background: var(--txdl-action);
}

.tx-mobile-menu .tx-mobile-hotline {
    background: var(--txdl-action);
    color: white;
    font-weight: 700;
    text-align: center;
    margin: 12px;
    border-radius: 6px;
}

/* ACCESSIBILITY */
.tx-skip-link {
    position: fixed;
    left: -9999px;
}

.tx-skip-link:focus {
    left: 12px;
    top: 12px;
    z-index: 9999;
    padding: 12px;
    background: white;
}

/* TABLET */
@media (max-width: 1250px) {
    .tx-desktop-nav {
        display: none;
    }

    .tx-menu-toggle {
        display: flex;
    }

    .tx-mobile-menu:not([hidden]) {
        display: block;
        margin-top: 8px;
        border-radius: 15px;
    }
}

/* MOBILE */
@media (max-width: 767px) {
    .tx-header {
        top: 0;
    }

    .tx-header-container {
        width: 100%;
    }

    .tx-header-bar {
        min-height: 70px;
        padding: 10px 20px;
        border-radius: 0;
        box-shadow: 0 2px 10px rgba(0,0,0,.08);
    }

    .tx-logo {
        max-width: 170px;
        max-height: 48px;
    }

    .tx-brand-text strong {
        font-size: 13px;
    }

    .tx-brand-text small {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .tx-logo-placeholder {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .tx-call-btn {
        display: none;
    }

    .tx-header-actions {
        gap: 8px;
    }

    .tx-mobile-menu:not([hidden]) {
        display: block;
        margin-top: 0;
        border-radius: 0;
    }
}

@media (max-width: 380px) {
    .tx-brand-text strong {
        font-size: 11px;
    }

    .tx-logo {
        max-width: 135px;
    }

    .tx-header-bar {
        padding-inline: 12px;
    }
}


/* LANGUAGE SWITCHER */
.tx-lang-switcher {
    position: relative;
    flex-shrink: 0;
    font-family: 'Roboto', sans-serif;
}

.tx-lang-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    padding: 7px 12px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    color: #303030;
    cursor: pointer;
    transition: .2s ease;
}

.tx-lang-trigger:hover {
    background: #f8f8f8;
}

.tx-lang-flag {
    font-size: 27px;
    line-height: 1;
    white-space: nowrap;
}

.tx-lang-code {
    font-size: 18px;
    font-weight: 700;
}

.tx-lang-arrow {
    transition: transform .2s ease;
}

.tx-lang-trigger[aria-expanded="true"]
.tx-lang-arrow {
    transform: rotate(180deg);
}

/* DROPDOWN */
.tx-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 210px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    z-index: 1100;
}

.tx-lang-dropdown[hidden] {
    display: none !important;
}

.tx-lang-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    color: #333333;
    font-size: 16px;
    border-radius: 4px;
    transition: background .2s ease;
}

.tx-lang-option:hover {
    background: #f4f4f4;
    color: var(--txdl-action);
}

.tx-lang-option.is-current {
    background: var(--txdl-ice-soft);
    color: var(--txdl-action);
    font-weight: 600;
}

.tx-lang-option.is-disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* MOBILE */
@media (max-width: 767px) {
    .tx-lang-trigger {
        height: 38px;
        gap: 6px;
        padding: 5px 8px;
    }

    .tx-lang-flag {
        font-size: 22px;
    }

    .tx-lang-code {
        font-size: 14px;
    }

    .tx-lang-dropdown {
        width: 185px;
    }

    .tx-lang-option {
        font-size: 14px;
    }
}


/* LOGO & BRAND NAME */
.tx-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
    min-width: 0;
}

.tx-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tx-brand-logo .tx-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 75px;
    max-height: 66px;
    object-fit: contain;
}

.tx-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.tx-brand-text strong {
    color: var(--txdl-action);
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.tx-brand-text small {
    color: #666666;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 1.3;
}

/* TABLET */
@media (max-width: 1250px) {
    .tx-brand-text strong {
        font-size: 15px;
    }
}

/* MOBILE */
@media (max-width: 767px) {
    .tx-brand {
        gap: 8px;
    }

    .tx-brand-logo .tx-logo {
        max-width: 52px;
        max-height: 48px;
    }

    .tx-brand-text strong {
        font-size: 12px;
        letter-spacing: -.2px;
    }

    .tx-brand-text small {
        font-size: 9px;
        letter-spacing: 1px;
    }
}

/* MOBILE NHỎ */
@media (max-width: 380px) {
    .tx-brand-logo .tx-logo {
        max-width: 43px;
        max-height: 43px;
    }

    .tx-brand-text strong {
        font-size: 11px;
    }

    .tx-brand-text small {
        font-size: 8px;
    }
}


/* Taxi Le Minh: horizontal logo only, keep navigation layout intact. */
.tx-brand { gap: 0; }
.tx-brand-logo { min-width: 0; }
.tx-brand-logo .tx-logo {
    width: auto;
    height: auto;
    max-width: min(235px, 19vw);
    max-height: 75px;
    object-fit: contain;
}
@media (max-width: 1250px) and (min-width: 768px) {
    .tx-brand-logo .tx-logo { max-width: 175px; max-height: 65px; }
}
@media (max-width: 767px) {
    .tx-brand-logo .tx-logo { max-width: min(165px, 42vw); max-height: 54px; }
}
@media (max-width: 380px) {
    .tx-brand-logo .tx-logo { max-width: 135px; max-height: 48px; }
}


/* LE MINH - NAVBAR SHINE EFFECT */
.tx-header .tx-brand-logo {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 12px;
}

.tx-header .tx-brand-logo::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    pointer-events: none;

    background: linear-gradient(
        110deg,
        transparent 25%,
        rgba(255, 255, 255, 0.15) 38%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(185, 221, 233, 0.35) 57%,
        transparent 72%
    );

    transform: translateX(-150%);
    animation: leminh-shine 9s ease-in-out infinite;
}

@keyframes leminh-shine {
    0%, 12% {
        transform: translateX(-150%);
    }

    30%, 100% {
        transform: translateX(150%);
    }
}

/* Tôn trọng cài đặt giảm chuyển động */
@media (prefers-reduced-motion: reduce) {
    .tx-header .tx-brand-logo::after {
        animation: none;
        display: none;
    }
}
