/* ================================
   Header
================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 8px 16px 0;
    background: rgba(251, 248, 241, 0.72);
    backdrop-filter: blur(16px);
}

.site-header__container {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    width: min(100%, 1180px);
    min-height: 72px;
    margin-inline: auto;
    padding: 0 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 30px rgba(43, 33, 24, 0.06);
    backdrop-filter: blur(14px);
}

/* ================================
   Logo
================================ */

.site-header__brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    height: 56px;
    margin: 0;
    padding: 0;
    line-height: 1;
    text-decoration: none;
}

.site-header__logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.site-header__logo-img,
.site-header__logo img,
.site-header__brand img,
.site-header__brand .custom-logo {
    display: block;
    width: auto;
    max-width: 132px;
    height: auto;
    max-height: 45px;
    object-fit: contain;
    object-position: left center;
}

/* ================================
   Navigation
================================ */

.site-header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
}

.site-header__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
}

.site-header__menu > li {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.site-header__menu > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--color-brown-900);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 0;
}

/* ================================
   Navigation
================================ */

.site-header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
}

.site-header__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
}

.site-header__menu > li {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.site-header__menu > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    color: var(--color-brown-900);
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color var(--transition-base),
        background-color var(--transition-base),
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

/* Tắt hoàn toàn gạch chân cũ */
.site-header__menu > li > a::after {
    display: none;
    content: none;
}

/* Action khi rê chuột */
.site-header__menu > li > a:hover {
    color: var(--color-olive-700);
    background: rgba(85, 86, 56, 0.08);
    transform: translateY(-1px);
}

/* Không cho WordPress tự active tất cả anchor menu bằng gạch/nền */
.site-header__menu .current-menu-item > a,
.site-header__menu .current-menu-parent > a,
.site-header__menu .current-menu-ancestor > a,
.site-header__menu .current_page_item > a {
    color: var(--color-brown-900);
    background: transparent;
    box-shadow: none;
}

/* Chỉ Trang chủ active nhẹ khi đang ở homepage */
body.home .site-header__menu > li.menu-item-home > a {
    color: var(--color-olive-700);
    background: rgba(85, 86, 56, 0.06);
}

/* Hover vẫn ưu tiên hơn active */
body.home .site-header__menu > li > a:hover {
    color: var(--color-olive-700);
    background: rgba(85, 86, 56, 0.1);
}

.site-header__menu > li > a:hover,
.site-header__menu .current-menu-item > a,
.site-header__menu .current-menu-parent > a,
.site-header__menu .current-menu-ancestor > a {
    color: var(--color-olive-700);
}

/* ================================
   Actions
================================ */

.site-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-width: max-content;
    white-space: nowrap;
}

.site-header__languages {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.site-header__language {
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.site-header__language.is-active {
    color: var(--color-brown-900);
    font-weight: 700;
}

.site-header__booking {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

/* ================================
   Mobile Toggle
================================ */

.site-header__languages--mobile-top {
    display: none;
}

.site-header__toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 0;
    border: 1px solid rgba(43, 33, 24, 0.12);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.site-header__toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--color-brown-900);
    transition: var(--transition-base);
}

.site-header__mobile-panel {
    display: none;
}

/* ================================
   Desktop Compact
================================ */

@media (max-width: 1180px) {
    .site-header__container {
        grid-template-columns: 132px minmax(0, 1fr) auto;
        gap: 18px;
        padding: 0 22px;
    }

    .site-header__brand {
        width: 132px;
        min-width: 132px;
        max-width: 132px;
    }

    .site-header__logo-img,
    .site-header__logo img,
    .site-header__brand img,
    .site-header__brand .custom-logo {
        max-width: 116px;
        max-height: 40px;
    }

    .site-header__menu {
        gap: 17px;
    }

    .site-header__menu > li > a {
        font-size: 13px;
    }

    .site-header__languages,
    .site-header__language {
        font-size: 12px;
    }

    .site-header__booking {
        min-height: 38px;
        padding: 0 16px;
        font-size: 13px;
    }
}

@media (max-width: 1060px) {
    .site-header__container {
        grid-template-columns: 118px minmax(0, 1fr) auto;
        gap: 13px;
        padding: 0 20px;
    }

    .site-header__brand {
        width: 118px;
        min-width: 118px;
        max-width: 118px;
    }

    .site-header__logo-img,
    .site-header__logo img,
    .site-header__brand img,
    .site-header__brand .custom-logo {
        max-width: 104px;
        max-height: 36px;
    }

    .site-header__menu {
        gap: 12px;
    }

    .site-header__menu > li > a {
        font-size: 12.5px;
    }

    .site-header__actions {
        gap: 9px;
    }

    .site-header__booking {
        min-height: 38px;
        padding: 0 14px;
    }
}

/* ================================
   Mobile
================================ */

@media (max-width: 960px) {
    .site-header {
        padding: 8px 12px 0;
    }

    .site-header__container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 64px;
        padding: 0 18px;
    }

    .site-header__brand {
        width: 112px;
        min-width: 112px;
        max-width: 112px;
        height: 48px;
    }

    .site-header__logo {
        justify-content: flex-start;
    }

    .site-header__logo-img,
    .site-header__logo img,
    .site-header__brand img,
    .site-header__brand .custom-logo {
        max-width: 104px;
        max-height: 36px;
    }

    .site-header__nav,
    .site-header__actions {
        display: none;
    }

    .site-header__languages--mobile-top {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-left: auto;
        margin-right: 12px;
        color: var(--color-text-muted);
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
    }

    .site-header__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        margin-left: 0;
    }

    .site-header__mobile-panel {
        display: none;
        padding: 16px 0 24px;
    }

    .site-header.is-mobile-open .site-header__mobile-panel {
        display: block;
    }

    .site-header__mobile-menu {
        display: grid;
        gap: 4px;
        list-style: none;
        margin: 0;
        padding: 16px;
        border-radius: var(--radius-lg);
        background: var(--color-white);
        box-shadow: var(--shadow-soft);
    }

    .site-header__mobile-menu a {
        display: block;
        padding: 12px 8px;
        color: var(--color-brown-900);
        font-weight: 700;
        text-decoration: none;
    }

    .site-header__mobile-actions {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 16px;
        padding: 0 16px;
    }
}

@media (max-width: 420px) {
    .site-header__brand {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
    }

    .site-header__logo-img,
    .site-header__logo img,
    .site-header__brand img,
    .site-header__brand .custom-logo {
        max-width: 94px;
        max-height: 32px;
    }
}