/* ==========================================================================
   REUSABLE UI COMPONENTS - TIỆM MAY ĐỎ
   Navbar, Mega Dropdown, Mobile Off-canvas Drawer, Footer, Buttons, Booking Modal, FAB
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BUTTONS CHUNG
   -------------------------------------------------------------------------- */
.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 14px 32px;
    border: none;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(138, 24, 26, 0.15);
}

/* --------------------------------------------------------------------------
   2. NAVBAR TRÊN DESKTOP (ĐÃ TÍCH HỢP LOGO SVG THƯƠNG HIỆU)
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
}

.navbar.scrolled {
    background: rgba(252, 251, 250, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Định dạng thẻ bọc và ảnh Logo SVG */
.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

.logo-img {
    height: 38px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: filter 0.3s ease, transform 0.3s ease;
    filter: brightness(0) invert(1);
}

/* Khi cuộn trang: Trả logo về màu đỏ thương hiệu nguyên bản */
.navbar.scrolled .logo-img {
    filter: none;
}

.logo:hover .logo-img {
    transform: scale(1.02);
}

/* Hệ thống Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: #fff;
    margin: 0 20px;
    font-size: 0.88rem;
    letter-spacing: 1.5px;
    font-weight: 400;
    opacity: 0.85;
    position: relative;
    padding-bottom: 2px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    opacity: 0.6;
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: #fff !important;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 40%;
}

.navbar.scrolled .nav-links a {
    color: var(--text-dark) !important;
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
    color: var(--text-dark) !important;
}

/* --------------------------------------------------------------------------
   3. MEGA DROPDOWN DỊCH VỤ (DESKTOP)
   -------------------------------------------------------------------------- */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dropdown-expand { display: none; }

.dropdown-dot {
    width: 5px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
    margin-left: 2px;
}

.nav-dropdown:hover .dropdown-dot,
.dropdown-toggle:hover .dropdown-dot {
    background-color: var(--primary) !important;
    transform: scale(1.4);
    box-shadow: 0 0 8px rgba(138, 24, 26, 0.8);
}

.navbar.scrolled .dropdown-dot {
    background-color: var(--text-dark);
}

.dropdown-mega-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: min(560px, calc(100vw - 32px));
    background: rgba(252, 251, 250, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    padding: 20px;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility 0s .18s;
    z-index: 1010;
    margin-top: 0 !important;
}

@media (min-width: 769px) {
    .nav-dropdown.is-open .dropdown-mega-panel {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
        transition-delay: 0s;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .navbar .nav-content { gap: 14px; }
    .navbar .logo { flex-shrink: 0; }
    .navbar .logo-img { height: 30px; }
    .nav-links > a, .nav-links .dropdown-toggle { margin-inline: 8px; font-size: .78rem; letter-spacing: .8px; white-space: nowrap; }
    .navbar .btn-primary.desktop-only { flex-shrink: 0; padding: 12px 18px; font-size: .72rem; letter-spacing: 1px; white-space: nowrap; }
}

.dropdown-links-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dropdown-item {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px !important;
    margin: 0 !important;
    border-radius: 2px;
    transition: background-color .3s ease, color .3s ease !important;
    text-align: left;
    text-decoration: none;
}

.dropdown-item .item-num {
    font-family: var(--font-serif);
    font-size: 0.8rem;
    font-style: normal;
    color: var(--primary);
    opacity: 0.6;
    margin-top: 2px;
}

.dropdown-item .item-text strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

.dropdown-item .item-text span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-top: 2px;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: var(--bg-sand);
}

.dropdown-item:hover .item-text strong,
.dropdown-item.active .item-text strong {
    color: var(--primary);
}

.dropdown-preview-col {
    position: relative;
    height: 100%;
    min-height: 220px;
    overflow: hidden;
    border-radius: 2px;
}

.preview-img-frame {
    width: 100%;
    height: 100%;
    position: relative;
    background: var(--bg-cream);
    overflow: hidden;
}

.preview-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.25s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.preview-img-frame img.is-switching {
    opacity: 0.25 !important;
    transform: scale(1.04) !important;
}

.preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.25) 0%, transparent 100%);
    pointer-events: none;
}

.dropdown-item::after {
    display: none !important;
}

/* --------------------------------------------------------------------------
   4. QUY TẮC ẨN CÁC PHẦN TỬ MOBILE KHI Ở GIAO DIỆN DESKTOP
   -------------------------------------------------------------------------- */
.mobile-menu-btn,
.btn-mobile-nav-cta,
.mobile-menu-footer {
    display: none !important;
}

/* --------------------------------------------------------------------------
   5. FOOTER & SHOWROOM MAPS (CẤU TRÚC 4 CỘT + HÀNG BẢN ĐỒ 16:9)
   -------------------------------------------------------------------------- */
.brand-col .logo { margin-bottom: 25px; display: inline-block; }
.footer { background: #12110f; color: #e5e0d8; padding: 100px 0 0; font-size: 0.9rem; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.3fr 1fr 1.2fr; gap: 50px; margin-bottom: 50px; }
.footer-col h4 { color: #fff; font-family: var(--font-sans); font-weight: 600; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 30px; position: relative; }
.footer-col h4::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 20px; height: 1px; background: var(--primary); }
.footer p { color: #a19c93; font-weight: 300; line-height: 1.7; margin-bottom: 12px; }
.brand-desc { margin-bottom: 30px !important; }
.work-hours p { margin-bottom: 5px; }
.work-hours .note { font-size: 0.8rem; opacity: 0.7; }
.contact-item { border-top: 1px solid #262421; padding-top: 20px; margin-top: 10px; }
.contact-item a { color: #fff; transition: color 0.3s ease; text-decoration: none; }
.contact-item a:hover { color: var(--primary); }
.footer-links { display: flex; flex-direction: column; gap: 15px; }
.footer-links a { color: #a19c93; font-weight: 300; transition: all 0.3s ease; text-decoration: none; }
.footer-links a:hover { color: #fff; transform: translateX(5px); }
.subscribe-form { display: flex; border-bottom: 1px solid #3d3a35; margin-bottom: 25px; transition: border-color 0.3s ease; }
.subscribe-form:focus-within { border-bottom-color: var(--primary); }
.subscribe-form input { padding: 15px 0; border: none; background: transparent; color: #fff; outline: none; width: 100%; font-family: inherit; font-size: 0.9rem; }
.subscribe-form .btn-primary { background: transparent; padding: 15px 0 15px 20px; color: #fff; letter-spacing: 2px; box-shadow: none; white-space: nowrap; flex-shrink: 0; }
.subscribe-form .btn-primary:hover { color: var(--primary); transform: none; }
.social-links { display: flex; flex-wrap: wrap; gap: 12px; }
.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: #e5e0d8;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.social-links svg { display: block; width: 21px; height: 21px; fill: currentColor; }
.social-links a[aria-label="Zalo"] svg { width: 29px; height: 29px; }
.footer .social-links a:is(:hover, :focus-visible) {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}
.footer-bottom { border-top: 1px solid #262421; padding: 25px 0; background: #0a0a09; }
.fb-inner { display: flex; justify-content: space-between; align-items: center; }
.fb-inner p { margin: 0; font-size: 0.8rem; color: #6e6a62; }
.fb-right strong { color: #a19c93; font-weight: 400; }

/* Cột 2: Thông tin doanh nghiệp */
.business-info-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.88rem;
    line-height: 1.65;
    color: #a19c93;
}

.business-info-block .business-name {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.business-info-block strong {
    color: #f5f2eb;
}

/* Hàng riêng cho 2 cơ sở và bản đồ 16:9 */
.footer-showroom-row {
    margin-top: 50px;
    padding-top: 45px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 70px;
}

.showroom-row-header {
    margin-bottom: 25px;
}

.showroom-sub-tag {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--primary);
    display: block;
    margin-bottom: 6px;
}

.showroom-row-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: #ffffff;
    font-weight: 400;
    margin: 0;
}

.showroom-maps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.showroom-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 2px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.showroom-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.showroom-meta strong {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: #ffffff;
    display: block;
    margin-bottom: 6px;
}

.showroom-meta p {
    font-size: 0.88rem;
    color: #a19c93;
    margin: 0 0 4px;
    line-height: 1.5;
}

.showroom-meta .sr-hotline a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.showroom-map-frame-169 {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: #1a1715;
}

.showroom-map-frame-169 iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* --------------------------------------------------------------------------
   6. FLOATING ACTION BUTTON (FAB) - LIÊN HỆ NHANH CHUẨN CÔNG THÁI HỌC
   -------------------------------------------------------------------------- */
.fab-container { 
    position: fixed; 
    bottom: 35px; 
    right: 35px; 
    z-index: 9999; 
    display: flex; 
    flex-direction: column; 
    align-items: flex-end; 
    gap: 12px; 
}

.fab-btn { 
    width: 56px; 
    height: 56px; 
    border-radius: 50%; 
    background: var(--text-dark, #191614); 
    color: #ffffff; 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    cursor: pointer; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    position: relative; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35); 
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1); 
}

.fab-btn:hover { 
    background: var(--primary, #8b1d24); 
    border-color: var(--primary, #8b1d24);
    transform: translateY(-3px) scale(1.04); 
    box-shadow: 0 15px 30px rgba(139, 29, 36, 0.4); 
}

.fab-icon-chat, 
.fab-icon-close { 
    position: absolute; 
    width: 24px; 
    height: 24px; 
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1); 
}

.fab-icon-close { 
    opacity: 0; 
    transform: rotate(-90deg) scale(0.5); 
}

.fab-icon-chat { 
    opacity: 1; 
    transform: rotate(0) scale(1); 
}

.fab-btn.active { 
    background: var(--primary, #8b1d24); 
    border-color: var(--primary, #8b1d24);
}

.fab-btn.active .fab-icon-chat { 
    opacity: 0; 
    transform: rotate(90deg) scale(0.5); 
}

.fab-btn.active .fab-icon-close { 
    opacity: 1; 
    transform: rotate(0) scale(1); 
}

.fab-menu { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-end; 
    gap: 8px; 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(15px); 
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1); 
}

.fab-menu.active { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

.fab-item { 
    padding: 10px 18px; 
    background: #ffffff; 
    color: var(--text-dark, #1c1917); 
    border: 1px solid var(--border-color, #e6e2da); 
    border-radius: 2px; 
    font-size: 0.8rem; 
    font-family: var(--font-sans, 'Inter', sans-serif); 
    font-weight: 600; 
    letter-spacing: 0.5px; 
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); 
    transition: all 0.25s ease; 
    text-decoration: none; 
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

/* Nút Hotline ở trạng thái bình thường: Chữ đỏ Bordeaux sang trọng */
.fab-item-hotline {
    color: var(--primary, #8b1d24);
    border-color: rgba(139, 29, 36, 0.35);
}

/* Hover chung cho tất cả các nút: Nền đỏ, chữ và icon chuyển màu trắng 100% */
.fab-item:hover,
.fab-item-hotline:hover { 
    background: var(--primary, #8b1d24) !important; 
    color: #ffffff !important; 
    border-color: var(--primary, #8b1d24) !important; 
    transform: translateX(-4px); 
    box-shadow: 0 8px 20px rgba(139, 29, 36, 0.35);
}

.fab-item:hover span,
.fab-item-hotline:hover span {
    color: #ffffff !important;
}

/* ==========================================================================
   7. BOOKING MODAL - CHUẨN ĐỒNG BỘ TOÀN HỆ THỐNG
   ========================================================================== */
.booking-modal-wrapper {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.booking-modal-wrapper.is-open,
.booking-modal-wrapper.active {
    display: flex !important;
}

.booking-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 10, 9, 0.85);
    backdrop-filter: blur(8px);
}

.booking-modal-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1050px;
    max-height: 90vh;
    background: var(--bg-cream);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* NÚT TẮT X: CỐ ĐỊNH Z-INDEX CAO NHẤT */
.booking-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(0, 0, 0, 0.08);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 38px;
    text-align: center;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.booking-modal-close:hover {
    background: var(--primary);
    color: #fff;
}

.booking-modal-body-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    margin: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* CỘT TRÁI: SHOWROOM & THÔNG ĐIỆP */
.booking-modal-body-layout .booking-left {
    background: #191614;
    color: #fff;
    padding: 45px 35px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.booking-modal-body-layout .booking-left .sub-title {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.booking-modal-body-layout .booking-left h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-style: normal;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.25;
}

.booking-modal-wrapper .btn-primary {
    transition: background-color .3s ease, color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.booking-title-line { display: block; }

.booking-modal-body-layout .booking-left p {
    font-size: 0.9rem;
    color: #b8b1a8;
    line-height: 1.7;
    margin-bottom: 25px;
    font-weight: 300;
}

.showroom-selector {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.showroom-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.showroom-item:hover, .showroom-item.active {
    background: rgba(163, 30, 33, 0.2);
    border-color: var(--primary);
}

.showroom-item:focus-within { outline: 2px solid #fff; outline-offset: 3px; }
.booking-sr-only, .showroom-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.showroom-copy { min-width: 0; }

.sr-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    margin-top: 5px;
    flex-shrink: 0;
}

.showroom-item.active .sr-dot {
    background: var(--primary);
}

.showroom-item strong {
    display: block;
    font-size: 0.88rem;
    color: #fff;
    margin-bottom: 2px;
}

.showroom-address { display: block; font-size: .78rem; color: #9e978e; line-height: 1.4; }

/* CỘT PHẢI: LỊCH VÀ KHUNG GIỜ */
.booking-modal-body-layout .booking-right {
    padding: 40px 35px;
    background: var(--bg-cream);
}

.date-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    padding-right: 50px;
    border-bottom: 1px solid var(--border-color);
}

.current-month-label {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: normal;
    color: var(--text-dark);
}

.date-nav-arrows {
    display: flex;
    gap: 8px;
}

.date-nav-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.date-nav-btn:hover {
    border-color: var(--text-dark);
    background: var(--text-dark);
    color: #fff;
}

/* Lưới 21 ngày */
.date-scroll {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 20px !important;
}

.date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 2px;
    border: 1px solid var(--border-color);
    background: #fff;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.25s ease;
    user-select: none;
}

.date-box span:first-child {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.date-box span:last-child {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-dark);
}

.date-box:hover {
    border-color: var(--text-dark);
}

.date-box.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.date-box.active span {
    color: #fff !important;
}

/* Khung giờ */
.field-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.time-pills {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.pill {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 9px 0;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: 2px;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
}

.pill.active {
    background: var(--text-dark);
    border-color: var(--text-dark);
    color: #fff;
}

.booking-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.booking-form .form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    background: #fff;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    border-radius: 2px;
    box-sizing: border-box;
}

.booking-form .form-group { min-width: 0; }
.booking-form .form-group input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.booking-form-status { font-size: .88rem; line-height: 1.65; margin: 16px 0 0; }
.booking-form-status a { color: var(--primary); text-decoration: underline; }
.booking-form-status[data-status="error"] { color: var(--primary); }
.booking-form .btn-submit:disabled { opacity: .6; cursor: wait; }

.btn-submit {
    width: 100%;
    padding: 14px 0;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
}

/* ==========================================================================
   8. MEDIA QUERIES (TABLET & MOBILE RESPONSIVE)
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 992px) {
    .showroom-maps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .booking-modal-body-layout { grid-template-columns: 1fr; }
    .booking-modal-body-layout .booking-left { padding: 30px 25px; }
    .booking-modal-body-layout .booking-right { padding: 30px 20px; }
    .date-scroll { gap: 4px !important; }
    .date-box { padding: 8px 1px; }
    .booking-form .form-row { grid-template-columns: 1fr; }
}

/* Khóa cuộn trang nền khi mở menu mobile */
body.menu-open {
    overflow: hidden !important;
    touch-action: none;
}

@media (max-width: 768px) {
    .desktop-only { 
        display: none !important; 
    }

    /* 1. Thanh Header trên mobile */
    .navbar {
        height: 64px !important;
        padding: 0 !important;
        background: rgba(18, 16, 14, 0.96) !important;
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
    }

    .navbar.scrolled {
        background: rgba(252, 251, 250, 0.98) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .nav-content {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
    }

    .logo {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
    }

    .logo-img {
        height: 32px !important;
    }

    /* 2. Nút Đặt Lịch mini tinh gọn cạnh Menu */
    .btn-mobile-nav-cta {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 6px 12px !important;
        font-family: var(--font-sans);
        font-size: 0.72rem !important;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        background-color: var(--primary, #8b1d24) !important;
        color: #ffffff !important;
        border-radius: 2px;
        text-decoration: none;
        margin-left: auto;
        margin-right: 12px;
        border: none;
        white-space: nowrap;
        cursor: pointer;
        flex-shrink: 0;
    }

    /* 3. NÚT HAMBURGER & DẤU ĐÓNG X ĐÃ SỬA TRIỆT ĐỂ */
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        padding: 0;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 10002 !important; /* Luôn nổi trên nền đen của drawer */
        flex-shrink: 0;
    }

    .mobile-menu-btn span {
        display: block;
        width: 22px;
        height: 2px;
        background-color: #ffffff;
        margin: 3px 0;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        transform-origin: center;
    }

    /* Khi navbar cuộn nhưng MENU ĐANG ĐÓNG: 3 gạch chuyển màu đen */
    .navbar.scrolled .mobile-menu-btn:not(.active) span {
        background-color: var(--text-dark, #1c1a17) !important;
    }

    /* KHI MENU MỞ: Bắt buộc dấu X luôn luôn mang màu trắng tinh khiết sáng rõ */
    .mobile-menu-btn.active span,
    .navbar.scrolled .mobile-menu-btn.active span {
        background-color: #ffffff !important;
        height: 2.5px !important;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }

    /* 4. Menu Drawer phủ kín màn hình (100dvh) */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100dvh;
        background-color: #12100e !important;
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 24px 30px !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 10000;
        box-sizing: border-box;
    }

    .nav-links.active {
        transform: translateX(0) !important;
    }

    .nav-links > a {
        font-family: var(--font-serif);
        font-size: 1.4rem !important;
        font-style: normal;
        color: #ffffff !important;
        padding: 14px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        text-decoration: none;
        display: block;
        margin: 0 !important;
        transition: color 0.2s ease;
    }

    .nav-links > a::after {
        display: none !important;
    }

    .nav-links > a:hover,
    .nav-links > a.active {
        color: var(--primary, #8b1d24) !important;
    }

    .navbar.scrolled .nav-links a {
        color: #ffffff !important;
    }
    .navbar.scrolled .nav-links a:hover,
    .navbar.scrolled .nav-links a.active {
        color: var(--primary, #8b1d24) !important;
    }

    /* 5. MỤC DỊCH VỤ ACCORDION */
    .nav-dropdown {
        position: static;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        align-items: center;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        margin: 0 !important;
        padding: 0 !important;
    }

    .dropdown-toggle {
        font-family: var(--font-serif);
        font-size: 1.4rem !important;
        font-style: normal;
        color: #ffffff !important;
        padding: 14px 0 !important;
        width: auto;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        text-decoration: none;
        margin: 0 !important;
        box-sizing: border-box;
        text-align: left;
    }

    .dropdown-toggle span:not(.dropdown-dot) {
        display: inline-block;
        margin: 0 !important;
        padding: 0 !important;
    }

    .dropdown-toggle .dropdown-dot {
        display: none !important;
    }

    .dropdown-toggle::after { display: none !important; }
    .dropdown-expand { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 2px; color: #fff; background: transparent; cursor: pointer; }
    .dropdown-expand svg { width: 18px; height: 18px; transition: transform .2s ease; }
    .nav-dropdown.is-open .dropdown-expand svg { transform: rotate(180deg); }

    .dropdown-preview-col {
        display: none !important;
    }

    .dropdown-mega-panel {
        grid-column: 1 / -1;
        position: static !important;
        transform: none !important;
        width: 100% !important;
        background: rgba(255, 255, 255, 0.03) !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.35s ease, opacity 0.3s ease;
        display: block !important;
    }

    .nav-dropdown.is-open .dropdown-mega-panel {
        padding: 0 0 10px 10px !important;
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .dropdown-links-col {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .dropdown-item {
        padding: 10px 0 !important;
        display: flex !important;
        align-items: flex-start;
        gap: 12px;
        text-decoration: none;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
        background: transparent !important;
    }

    .dropdown-item .item-num {
        display: block !important;
        font-size: 0.72rem;
        color: #d49a9b;
        font-weight: 600;
        margin-top: 2px;
    }

    .dropdown-item .item-text strong {
        font-size: 0.95rem;
        color: #ffffff;
        font-family: var(--font-sans);
    }

    .dropdown-item:is(.active, :hover, :focus-visible) .item-text strong {
        color: #e6a3a3;
    }

    .dropdown-item .item-text span {
        display: block !important;
        font-size: 0.75rem;
        color: #88827a;
        line-height: 1.4;
        margin-top: 2px;
    }

    /* 6. Cụm Chân Menu VIP trong Drawer */
    .mobile-menu-footer {
        display: flex !important;
        margin-top: auto;
        padding-top: 25px;
        flex-direction: column;
        gap: 16px;
    }

    .mobile-menu-footer .btn-drawer-cta {
        width: 100%;
        padding: 14px 20px;
        text-align: center;
        background-color: var(--primary, #8b1d24);
        color: #ffffff;
        font-family: var(--font-sans);
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 2px;
        text-transform: uppercase;
        border-radius: 2px;
        border: none;
        cursor: pointer;
        display: block;
    }

    .mobile-menu-footer .drawer-contact-info {
        font-size: 0.78rem;
        color: #8c857b;
        line-height: 1.6;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 14px;
    }

    .drawer-contact-info p {
        margin-bottom: 4px;
    }

    .drawer-contact-info a {
        color: #ffffff;
        font-weight: 600;
        text-decoration: none;
    }

    /* Tạm ẩn FAB khi mở drawer để không che chân menu */
    body.menu-open .fab-container {
        display: none !important;
    }

    /* 7. Modal trên Mobile */
    .booking-modal-body-layout {
        grid-template-columns: 1fr;
    }

    .booking-modal-body-layout .booking-left {
        display: flex !important;
        padding: 30px 20px 22px !important;
        gap: 12px;
    }
    
    .booking-modal-body-layout .booking-left .sub-title {
        margin-bottom: 6px !important;
    }

    .booking-modal-body-layout .booking-left h2 {
        font-size: 1.55rem !important;
        margin-bottom: 14px !important;
        line-height: 1.3 !important;
    }


    .booking-modal-body-layout .showroom-selector {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .booking-modal-body-layout .showroom-item {
        padding: 14px 16px !important;
    }

    .booking-modal-body-layout .booking-right {
        padding: 20px;
    }

    .date-nav-header {
        padding-right: 45px;
    }

    .date-scroll {
        gap: 4px !important;
    }

    .date-box {
        padding: 6px 1px;
    }

    .date-box span:last-child {
        font-size: 0.95rem;
    }

    .time-pills {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .booking-form .form-row {
        grid-template-columns: 1fr;
    }

    .booking-modal-close {
        top: 10px;
        right: 10px;
        background: #ffffff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    }

    /* 8. Footer trên Mobile */
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .fb-inner { flex-direction: column; text-align: center; gap: 15px; }

    .footer-showroom-row {
        margin-top: 35px;
        padding-top: 30px;
        margin-bottom: 40px;
    }
    
    .showroom-card {
        padding: 15px;
    }

    .showroom-row-title {
        font-size: 1.2rem;
    }

    /* Tối ưu FAB trên Mobile */
    .fab-container {
        bottom: 22px;
        right: 18px;
    }
    .fab-btn {
        width: 50px;
        height: 50px;
    }
    .fab-icon-chat,
    .fab-icon-close {
        width: 22px;
        height: 22px;
    }
    .fab-item {
        font-size: 0.76rem;
        padding: 8px 14px;
    }
}
