/* ==========================================================================
   HEADER & NAVIGATION STYLE (TÁCH RIÊNG CHO HEADER.PHP)
   ================================================================---------- */

.header-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* --- Topbar --- */
.topbar-section {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
    color: #475569;
    padding: 8px 0;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.topbar-left span, .topbar-right span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.topbar-left i { color: #eb1838; }
.topbar-right i { color: #2563eb; }

/* --- Header Chính --- */
.main-header-section {
    background: #ffffff;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}
.main-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}

.logo-area-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sticky-menu-toggle {
    display: flex !important;
    width: 38px;
    height: 38px;
    border: 2px solid #eb1838;
    background: #ffffff;
    color: #eb1838;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
}
.sticky-menu-toggle:hover {
    background: #eb1838;
    color: #ffffff;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.site-logo img {
    max-height: 44px;
    width: auto;
    object-fit: contain;
}

/* Tìm kiếm Desktop */
.header-search-form {
    flex-grow: 1;
    max-width: 380px;
    display: flex;
    position: relative;
    align-items: center;
}
.header-search-form input {
    width: 100%;
    padding: 8px 38px 8px 12px;
    border: 2px solid #eb1838;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    background: #ffffff;

}
.header-search-form button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 36px;
    background: #eb1838;
    border: none;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Các nút tiện ích (Hotline, Đặt lịch, Giỏ hàng, Tài khoản) */
.header-utilities {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.header-hotline-box {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.hotline-icon-circle {
    width: 34px;
    height: 34px;
    background: #fee2e2;
    color: #eb1838;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.hotline-info .label { font-size: 10px; color: #64748b; display: block; }
.hotline-info .phone { font-size: 13px; font-weight: 600; color: #eb1838; display: block; white-space: nowrap; }

.utility-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    transition: 0.2s;
    white-space: nowrap;
}
.utility-btn:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    color: #eb1838;
}
.btn-booking { background: #fefce8; border: 1px solid #facc15; color: #854d0e; }
.btn-booking:hover { background: #facc15; color: #0f172a; }

/* --- Menu Đa Cấp Dưới Header (Desktop) --- */
.nav-menu-section {
    background: #eb1838;
    position: relative;
    z-index: 999;
    overflow: visible !important;
}
.site-navigation {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 42px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: visible !important;
}
.site-navigation li {
    position: relative !important;
    list-style: none !important;
}
.site-navigation > li > a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 8px 14px !important;
    border-radius: 6px !important;
    transition: 0.2s !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: transparent !important;
}
.site-navigation > li > a:hover, 
.site-navigation > li > a.active,
.site-navigation > li:hover > a {
    background: rgba(255, 255, 255, 0.18) !important;
}

/* Cấp 2 */
.site-navigation > li > ul {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
    padding: 6px 0 !important;
    min-width: 210px !important;
    display: none !important;
    list-style: none !important;
    z-index: 9999 !important;
}
.site-navigation > li:hover > ul {
    display: block !important;
}

.site-navigation ul li {
    position: relative !important;
    width: 100% !important;
    list-style: none !important;
}
.site-navigation ul a {
    padding: 9px 15px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    color: #1e293b !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-decoration: none !important;
    background: transparent !important;
    transition: 0.15s !important;
    white-space: nowrap !important;
}
.site-navigation ul a:hover {
    background: #f8fafc !important;
    color: #eb1838 !important;
}

/* Cấp 3 */
.site-navigation ul li > ul {
    position: absolute !important;
    top: 0 !important;
    left: 100% !important;
    margin-top: -6px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
    padding: 6px 0 !important;
    min-width: 210px !important;
    display: none !important;
    list-style: none !important;
    z-index: 10000 !important;
}
.site-navigation ul li:hover > ul {
    display: block !important;
}

/* --- Offcanvas Menu (Mobile Trượt Trái) --- */
.custom-offcanvas-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
}
.custom-offcanvas-drawer {
    position: fixed;
    top: 0; left: -320px; width: 320px; height: 100%;
    background: #ffffff;
    z-index: 2001;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}
.custom-offcanvas-drawer.open {
    left: 0;
}
.offcanvas-header-custom {
    background: #eb1838;
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 15px;
}
.offcanvas-close-btn {
    background: none; border: none; color: #ffffff; font-size: 18px; cursor: pointer;
}
.offcanvas-body-custom {
    padding: 0;
    overflow-y: auto;
    flex-grow: 1;
}
.offcanvas-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
    transition: 0.2s;
}
.offcanvas-menu-item:hover {
    background: #f8fafc;
    color: #eb1838;
    padding-left: 24px;
}
.offcanvas-menu-item.highlight {
    background: #fef2f2;
    color: #eb1838;
}

.offcanvas-tree-menu, .offcanvas-sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.offcanvas-sub-menu {
    display: none;
    background: #f8fafc;
    border-left: 2px solid #e2e8f0;
    margin-left: 15px;
}
.offcanvas-tree-menu li.open > .offcanvas-sub-menu {
    display: block;
}
.offcanvas-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
    transition: 0.2s;
}
.offcanvas-row:hover {
    background: #f8fafc;
}
.offcanvas-link {
    flex-grow: 1;
    padding: 13px 16px;
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
}
.offcanvas-row:hover .offcanvas-link {
    color: #eb1838;
}
.offcanvas-toggle-btn {
    background: transparent;
    border: none;
    width: 40px;
    height: 44px;
    cursor: pointer;
    color: #64748b;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.offcanvas-toggle-btn:hover {
    color: #eb1838;
    background: rgba(235, 24, 56, 0.05);
}
li.open > .offcanvas-row .offcanvas-toggle-btn i {
    transform: rotate(180deg);
}

/* --- Responsive Header --- */
@media screen and (max-width: 1024px) {
    .header-hotline-box { display: none !important; }
}

@media screen and (max-width: 992px) {
    .topbar-section, .nav-menu-section, .header-search-form { display: none !important; }
    .main-header-section { padding: 10px 0 !important; }
    .mobile-search-bar-wrapper {
        display: block !important;
        background: #f1f5f9;
        padding: 8px 12px 10px 12px;
        border-top: 1px solid #e2e8f0;
    }
    .utility-btn span:not(.badge) { display: none !important; }
    .utility-btn { padding: 8px 10px !important; }
    .site-logo img { max-height: 38px !important; }
    .header-utilities { gap: 5px !important; }
}

@media screen and (min-width: 993px) {
    .mobile-search-bar-wrapper { display: none !important; }
}