/* ============================================================================================
   mobile-menu.css — header + menu mobile kiểu public happyheath (_Header.cshtml, user yêu cầu 15/10/2026).
   Chép các khối .m-topbar / .m-header / .ui-overlay / .nav-drawer trong style.css của happyheath (bỏ phần tìm kiếm,
   giỏ hàng). Khác happyheath:
     • Bảng màu site: navy #0a3347 (nền thanh/drawer head), nhấn vàng #ffc107; biến --sd-* thay bằng giá trị cụ thể.
     • Ngưỡng hiển thị ≤992px — đúng ngưỡng style.css cũ ẩn .header-desktop (`@media (max-width: 992px)`).
     • style.css cũ có `* { padding:0 }`, `a:link/:visited { color:#333 }` → link trong drawer ghi màu với tiền tố.
     • z-index: header dính cũ 99999999 → overlay/drawer đặt cao hơn (dưới popup Xem nhanh 2147483000+).
   ============================================================================================ */
.m-topbar, .m-header { display: none; }
@media (max-width: 992px) {
    .m-topbar { display: flex; }
    .m-header { display: flex; }
    .menu--mobile { display: none !important; }   /* menu netflix cũ (đã bỏ khỏi _Header) — chặn phòng hờ */
}

/* ── Topbar: tên DN (trái) + Bản đồ chỉ đường (phải) ── */
.m-topbar {
    align-items: center; justify-content: space-between; gap: 16px;
    height: 46px; padding: 0 12px 0 16px;
    background: #072636; color: #fff;
    font-size: 13px; line-height: 1.4;
}
.m-topbar .mt-biz {
    display: block; min-width: 0; margin-right: auto;
    font-weight: 500;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.m-topbar .mt-map {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 0; border: 0; background: none; color: #ffc107; cursor: pointer;
    font-size: 13px; white-space: nowrap;
}
.m-topbar .mt-map .fa { font-size: 14px; }
.m-topbar .mt-more {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; padding: 0;
    border: 0; border-radius: 6px;
    background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}
.m-topbar .mt-more[hidden] { display: none; }
.m-topbar .mt-more svg { width: 15px; height: 15px; }
.m-topbar .mt-more[aria-expanded="true"] { transform: rotate(180deg); }
.m-topbar.is-open { height: auto; align-items: flex-start; padding-top: 10px; padding-bottom: 10px; }
.m-topbar.is-open .mt-biz { white-space: normal; overflow: visible; text-overflow: clip; }

/* ── Thanh chính: nền trắng, logo trái — nút menu phải; dính đầu trang khi cuộn ── */
.m-header {
    position: sticky; top: 0; z-index: 1000;
    align-items: center; gap: 6px;
    padding: 6px 6px 6px 12px;
    background: #fff;
    border-bottom: 1px solid #e6eaee;
}
.m-header .mh-logo { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; }
.m-header .mh-logo img { max-height: 70px; max-width: 100%; width: auto; }
.m-header .mh-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 2px; }
.m-header .mh-btn {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    padding: 0; border: 0; border-radius: 6px;
    background: transparent; color: #0a3347; cursor: pointer;
}
.m-header .mh-btn:active { background: rgba(0, 0, 0, .06); }
.m-header .mh-btn svg { width: 26px; height: 26px; }

/* ── Overlay + drawer ── */
.ui-overlay {
    position: fixed; inset: 0; z-index: 2147482000;
    background: rgba(0, 0, 0, .75);
    opacity: 0; visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
body.drawer-open .ui-overlay { opacity: 1; visibility: visible; }
/* Đang mở drawer: ẩn thanh Hỗ trợ trực tuyến nổi đáy (nếu không nó nằm đè lên thẻ liên hệ cuối drawer). */
body.drawer-open .hs-bar, body.drawer-open .hs-rail { display: none !important; }

.nav-drawer {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 2147482001;
    width: 100%; max-width: 480px;
    background: #fff; color: #333;
    font-family: inherit; text-align: left;
    transform: translateX(-100%); visibility: hidden;
    transition: transform .28s ease, visibility 0s linear .28s;
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
body.drawer-open .nav-drawer {
    transform: translateX(0); visibility: visible;
    transition: transform .28s ease, visibility 0s;
    box-shadow: 2px 0 12px rgba(0, 0, 0, .25);
}
.nav-drawer .nd-head {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    height: 100px; padding: 0 56px;
    background: #0a3347;
}
.nav-drawer .nd-head img { max-height: 64px; max-width: 100%; width: auto; }
.nav-drawer .nd-close {
    position: absolute; top: 8px; right: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0; border: 0; border-radius: 6px;
    background: transparent; color: #fff; cursor: pointer;
}
.nav-drawer .nd-close svg { width: 22px; height: 22px; }

.nav-drawer .nd-menu { margin: 0; padding: 10px 0 8px; list-style: none; }
.nav-drawer .nd-menu li { list-style: none; margin: 0; }
.nav-drawer .nd-menu > li + li { border-top: 1px solid #e8e8e8; }
.nav-drawer .nd-menu a,
.nav-drawer .nd-menu a:link,
.nav-drawer .nd-menu a:visited {
    display: flex; align-items: center;
    min-height: 44px; padding: 4px 20px;
    color: #333; font-size: 14px; line-height: 1.4; text-decoration: none; text-transform: none;
}
.nav-drawer .nd-menu a:hover, .nav-drawer .nd-menu a:active { color: #0a3347; }
.nav-drawer .nd-row { display: flex; align-items: stretch; position: relative; }
.nav-drawer .nd-row > a,
.nav-drawer .nd-row > .nd-row__lbl { flex: 1 1 auto; min-width: 0; position: relative; z-index: 1; }
.nav-drawer .nd-row > .nd-row__lbl {
    display: flex; align-items: center;
    min-height: 44px; padding: 4px 20px;
    color: #333; font-size: 14px; line-height: 1.4;
}
.nav-drawer .nd-toggle {
    flex: 0 0 46px;
    position: relative; z-index: 1;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0; border: 0;
    background: transparent; color: #90a4ae; cursor: pointer;
}
.nav-drawer .nd-toggle svg { width: 16px; height: 16px; transition: transform .25s ease; }
.nav-drawer li.nd-open > .nd-row .nd-toggle svg { transform: rotate(90deg); }
/* Nhánh đang mở: lớp nền bo góc thụt vào (::before — không chiếm layout). */
.nav-drawer li.nd-open > .nd-row::before {
    content: ""; position: absolute; inset: 2px 8px;
    background: #e6eef3; border-radius: 8px;
}

/* Ký hiệu đầu dòng theo cấp: cấp 1 ô vuông · cấp 2+ tam giác. */
.nav-drawer .nd-menu > li > a,
.nav-drawer .nd-menu > li > .nd-row > a,
.nav-drawer .nd-menu > li > .nd-row > .nd-row__lbl { gap: 8px; }
.nav-drawer .nd-menu > li > a::before,
.nav-drawer .nd-menu > li > .nd-row > a::before,
.nav-drawer .nd-menu > li > .nd-row > .nd-row__lbl::before {
    content: ""; flex: 0 0 auto;
    width: 5px; height: 5px;
    background: currentColor; opacity: .55;
}
.nav-drawer .nd-sub { display: none; margin: 0; padding: 0; list-style: none; }
.nav-drawer .nd-sub > li > a,
.nav-drawer .nd-sub > li > a:link,
.nav-drawer .nd-sub > li > a:visited,
.nav-drawer .nd-sub > li > .nd-row > a,
.nav-drawer .nd-sub > li > .nd-row > a:link,
.nav-drawer .nd-sub > li > .nd-row > a:visited { gap: 8px; padding-left: 32px; color: #445; }
.nav-drawer .nd-sub > li > a::before,
.nav-drawer .nd-sub > li > .nd-row > a::before {
    content: ""; flex: 0 0 auto;
    width: 0; height: 0; background: none; border-radius: 0;
    border-left: 4px solid currentColor;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    opacity: .55;
}
.nav-drawer .nd-sub .nd-sub > li > a,
.nav-drawer .nd-sub .nd-sub > li > a:link,
.nav-drawer .nd-sub .nd-sub > li > a:visited,
.nav-drawer .nd-sub .nd-sub > li > .nd-row > a { padding-left: 48px; color: #667; }
.nav-drawer .nd-sub .nd-sub .nd-sub > li > a,
.nav-drawer .nd-sub .nd-sub .nd-sub > li > a:link,
.nav-drawer .nd-sub .nd-sub .nd-sub > li > a:visited { padding-left: 64px; }

/* ── Thẻ liên hệ cuối drawer ── */
.nav-drawer .nd-contact {
    margin: 14px 16px 20px; padding: 16px;
    border: 1px solid #e8e8e8; border-radius: 12px;
    background: #f7fafc;
}
.nav-drawer .nd-contact__biz {
    margin: 0 0 12px; text-transform: uppercase;
    font-size: 13px; font-weight: 700; line-height: 1.45;
    color: #0a3347;
}
.nav-drawer .nd-contact__row { display: flex; gap: 10px; }
.nav-drawer .nd-contact__row + .nd-contact__row { margin-top: 12px; }
.nav-drawer .nd-contact__ico {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 8px;
    background: #fff; border: 1px solid #e8e8e8; color: #0a3347;
}
.nav-drawer .nd-contact__ico svg { width: 16px; height: 16px; }
.nav-drawer .nd-contact__body {
    flex: 1 1 auto; min-width: 0;
    display: flex; flex-direction: column; gap: 2px;
}
.nav-drawer .nd-contact__lbl { font-size: 12px; color: #777; line-height: 1.4; }
.nav-drawer .nd-contact__val,
.nav-drawer a.nd-contact__val:link,
.nav-drawer a.nd-contact__val:visited {
    font-size: 14px; font-weight: 500; line-height: 1.5;
    color: #14202e; text-decoration: none; overflow-wrap: anywhere;
}
.nav-drawer a.nd-contact__val:hover { color: #0a3347; text-decoration: underline; }
.nav-drawer .nd-contact__val--name { font-weight: 700; }
.nav-drawer .nd-contact__val + .nd-contact__val--name { margin-top: 6px; }

/* ── Popup bản đồ chỉ đường (nút ở topbar) — z-index dùng .qv-modal của quickview.css ── */
.map-modal-wrap .modal-content { overflow: hidden; border: 0; border-radius: 12px; }
.map-modal__head { background: #0a3347; color: #fff; padding: 12px 16px; border: 0; }
.map-modal__head .modal-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: #fff; }
.map-modal-wrap iframe { display: block; width: 100%; height: 70vh; max-height: 520px; border: 0; }
