/* =========================================================
   CPE COMMON UI FIXES
   รวม CSS กลางที่ใช้ซ้ำทุกหน้า เพื่อคง UI เดิมให้สม่ำเสมอ
========================================================= */


/* =========================================================
   CPE FINAL BURGER + HEADER BALANCE FIX
   - แก้เส้น burger ซ้อนจาก style.css + inline CSS
   - จัด balance header: logo ซ้าย / burger หรือ login ขวา
   - guest ไม่เห็น sidebar และมีปุ่ม login ขวาบน
========================================================= */

:root{
    --cpe-blue:#2563eb;
    --cpe-blue-soft:#eff6ff;
    --cpe-border:#e5e7eb;
    --cpe-text:#0f172a;
    --cpe-header:76px;
}

/* Header balance */
.header.header-light{
    min-height:var(--cpe-header) !important;
    background:#fff !important;
    border-bottom:1px solid var(--cpe-border) !important;
    box-shadow:0 6px 22px rgba(15,23,42,.06) !important;
    position:sticky !important;
    top:0 !important;
    z-index:5000 !important;
}

.header.header-light .container{
    min-height:var(--cpe-header) !important;
    width:100% !important;
    max-width:1280px !important;
}

.navigation{
    min-height:var(--cpe-header) !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
}

.nav-header{
    min-height:var(--cpe-header) !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:12px !important;
    width:auto !important;
    float:none !important;
}

.nav-brand{
    display:flex !important;
    align-items:center !important;
    margin:0 !important;
    padding:0 !important;
    float:none !important;
    line-height:1 !important;
}

.nav-brand .logo,
.logo{
    display:block !important;
    max-height:42px !important;
    width:auto !important;
    height:auto !important;
}

/* Desktop menu */
.nav-menus-wrapper{
    flex:1 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    background:transparent !important;
    box-shadow:none !important;
}

.nav-menu,
.nav-menu-social{
    display:flex !important;
    align-items:center !important;
    gap:6px !important;
    margin:0 !important;
    padding:0 !important;
    float:none !important;
}

.nav-menu > li,
.nav-menu-social > li{
    display:block !important;
    float:none !important;
    margin:0 !important;
}

.nav-menu > li > a,
.nav-menu-social > li > a{
    min-height:44px !important;
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    padding:0 12px !important;
    border-radius:14px !important;
    color:#1e293b !important;
    font-weight:800 !important;
    font-size:14px !important;
    text-decoration:none !important;
    white-space:nowrap !important;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a{
    background:var(--cpe-blue-soft) !important;
    color:var(--cpe-blue) !important;
}

/* Hamburger: one icon only.
   ต้องใช้ทั้ง :before และ ::before เพราะ template เดิมใช้ .nav-toggle:before */
.nav-toggle{
    width:42px !important;
    height:42px !important;
    min-width:42px !important;

    display:none !important;
    align-items:center !important;
    justify-content:center !important;

    position:relative !important;
    inset:auto !important;
    transform:none !important;

    margin:0 !important;
    padding:0 !important;

    border:1px solid var(--cpe-border) !important;
    border-radius:14px !important;
    background:#fff !important;
    box-shadow:0 8px 20px rgba(15,23,42,.08) !important;

    cursor:pointer !important;
    overflow:hidden !important;

    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
}

.nav-toggle span,
.nav-toggle i,
.nav-toggle em,
.nav-toggle b,
.nav-toggle svg{
    display:none !important;
}

.nav-toggle:before,
.nav-toggle::before{
    content:"\2630" !important;

    display:block !important;

    width:auto !important;
    height:auto !important;

    position:static !important;
    top:auto !important;
    left:auto !important;
    right:auto !important;
    bottom:auto !important;

    margin:0 !important;
    padding:0 !important;

    transform:none !important;

    font-family:Arial, sans-serif !important;
    font-size:26px !important;
    font-weight:700 !important;
    line-height:1 !important;

    color:var(--cpe-blue) !important;
    background:transparent !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;

    opacity:1 !important;
    visibility:visible !important;
}

.nav-toggle:after,
.nav-toggle::after{
    display:none !important;
    content:none !important;
    width:0 !important;
    height:0 !important;
    background:transparent !important;
    box-shadow:none !important;
}

/* Login button top */
.guest-login-top{
    display:none !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;

    min-height:42px !important;
    padding:0 14px !important;

    border-radius:14px !important;
    background:var(--cpe-blue) !important;
    color:#fff !important;

    font-size:14px !important;
    font-weight:900 !important;
    text-decoration:none !important;

    box-shadow:0 10px 24px rgba(37,99,235,.24) !important;
    white-space:nowrap !important;
}

.guest-login-top i{
    color:#fff !important;
    font-size:18px !important;
}

/* Guest mode */
body.is-guest .nav-menus-wrapper{
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
}

body.is-guest .nav-toggle{
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
}

body.is-guest .mobile_nav{
    display:none !important;
}

body.is-guest .nav-header{
    width:100% !important;
    justify-content:space-between !important;
}

body.is-guest .nav-brand{
    order:1 !important;
    margin-right:auto !important;
}

body.is-guest .guest-login-top{
    order:2 !important;
    margin-left:auto !important;
    display:inline-flex !important;
}

/* Logged in */
body.is-login .guest-login-top{
    display:none !important;
}

/* Mobile sidebar */
@media(max-width:991px){

    .header.header-light,
    .header.header-light .container,
    .navigation,
    .nav-header{
        min-height:var(--cpe-header) !important;
        height:var(--cpe-header) !important;
    }

    .header.header-light .container{
        width:100% !important;
        max-width:100% !important;
        padding-left:14px !important;
        padding-right:14px !important;
    }

    .navigation{
        display:block !important;
        position:relative !important;
    }

    .nav-header{
        width:100% !important;
        display:flex !important;
        align-items:center !important;
        justify-content:space-between !important;
        gap:12px !important;
        background:#fff !important;
        z-index:5010 !important;
    }

    body.is-login .nav-brand{
        order:2 !important;
        flex:0 1 auto !important;
        margin-right:auto !important;
    }

    .nav-brand .logo,
    .logo{
        max-height:40px !important;
        max-width:165px !important;
    }

    body.is-login .nav-toggle{
        order:1 !important;
        display:flex !important;
        margin-right:12px !important;
        margin-left:0 !important;
        z-index:5011 !important;
    }

    .mobile_nav{
        display:none !important;
    }

    body.is-login .nav-menus-wrapper{
        position:fixed !important;
        top:var(--cpe-header) !important;
        left:-320px !important;

        width:288px !important;
        max-width:84vw !important;
        height:calc(100vh - var(--cpe-header)) !important;

        display:block !important;
        background:#fff !important;

        padding:18px 16px 24px !important;

        overflow-y:auto !important;
        overflow-x:hidden !important;

        box-shadow:18px 0 45px rgba(15,23,42,.18) !important;
        transition:left .28s ease !important;
        z-index:5008 !important;
    }

    body.is-login.mobile-menu-open .nav-menus-wrapper{
        left:0 !important;
    }

    body.is-login.mobile-menu-open{
        overflow:hidden !important;
    }

    body.is-login.mobile-menu-open::before{
        content:"" !important;
        position:fixed !important;
        left:0 !important;
        right:0 !important;
        top:var(--cpe-header) !important;
        bottom:0 !important;
        background:rgba(15,23,42,.45) !important;
        z-index:5007 !important;
    }

    .nav-menu,
    .nav-menu-social{
        display:block !important;
        width:100% !important;
        margin:0 !important;
        padding:0 !important;
        float:none !important;
    }

    .nav-menu > li,
    .nav-menu-social > li{
        display:block !important;
        width:100% !important;
        margin:0 0 10px 0 !important;
        float:none !important;
    }

    .nav-menu > li > a,
    .nav-menu-social > li > a{
        width:100% !important;
        min-height:48px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:flex-start !important;
        gap:12px !important;
        padding:13px 14px !important;
        border-radius:15px !important;
        color:var(--cpe-text) !important;
        font-size:15px !important;
        font-weight:850 !important;
        white-space:normal !important;
    }

    .nav-menu-social{
        border-top:1px solid var(--cpe-border) !important;
        margin-top:16px !important;
        padding-top:16px !important;
    }
}

@media(max-width:575px){
    .nav-brand .logo,
    .logo{
        max-width:145px !important;
    }

    .guest-login-top span{
        display:none !important;
    }

    .guest-login-top{
        width:42px !important;
        padding:0 !important;
    }
}


/* FINAL LEFT BURGER ALIGN */
@media(max-width:991px){

    body.is-login .nav-header,
    body.is-guest .nav-header{
        justify-content:flex-start !important;
    }

    body.is-login .nav-toggle{
        order:1 !important;
        margin-right:12px !important;
        margin-left:0 !important;
    }

    body.is-login .nav-brand{
        order:2 !important;
        margin-right:auto !important;
    }

    body.is-guest .nav-brand{
        order:1 !important;
        margin-right:auto !important;
    }

    body.is-guest .guest-login-top{
        order:2 !important;
        margin-left:auto !important;
    }
}


/* SIDEBAR CLICK ENABLE FIX */
/* ให้ custom.js เดิมเปิด sidebar ได้ และไม่มี overlay มาบังข้อมูล */
@media(max-width:991px){

    .nav-overlay-panel{
        display:none !important;
        opacity:0 !important;
        pointer-events:none !important;
    }

    body.no-scroll{
        overflow:auto !important;
        height:auto !important;
    }

    .navigation-portrait .nav-menus-wrapper,
    body.is-login .nav-menus-wrapper{
        position:fixed !important;
        top:0 !important;
        left:-400px !important;
        width:290px !important;
        max-width:84vw !important;
        height:100vh !important;
        background:#fff !important;
        overflow-y:auto !important;
        overflow-x:hidden !important;
        z-index:20000 !important;
        pointer-events:auto !important;
    }

    .navigation-portrait .nav-menus-wrapper.nav-menus-wrapper-open,
    body.is-login .nav-menus-wrapper.nav-menus-wrapper-open{
        left:0 !important;
    }

    .nav-menus-wrapper-close-button{
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
    }

    body.mobile-menu-open::before,
    body.is-login.mobile-menu-open::before{
        display:none !important;
        content:none !important;
        pointer-events:none !important;
    }
}

@media(min-width:992px){
    .nav-overlay-panel{
        display:none !important;
    }

    body.no-scroll{
        overflow:auto !important;
        height:auto !important;
    }

    .nav-menus-wrapper,
    .nav-menus-wrapper.nav-menus-wrapper-open{
        position:static !important;
        left:auto !important;
        right:auto !important;
        width:auto !important;
        height:auto !important;
        overflow:visible !important;
        box-shadow:none !important;
        background:transparent !important;
    }
}


/* SIDEBAR AUTO CLOSE FIX */
@media(max-width:991px){

    .navigation-portrait .nav-menus-wrapper:not(.nav-menus-wrapper-open),
    body.is-login .nav-menus-wrapper:not(.nav-menus-wrapper-open){
        left:-400px !important;
    }

    .navigation-portrait .nav-menus-wrapper.nav-menus-wrapper-open,
    body.is-login .nav-menus-wrapper.nav-menus-wrapper-open{
        left:0 !important;
    }

    .nav-overlay-panel{
        display:none !important;
        pointer-events:none !important;
    }

    body.no-scroll{
        overflow:auto !important;
        height:auto !important;
    }
}


/* CLOSE BUTTON CLICK FIX */
@media(max-width:991px){

    .nav-menus-wrapper-close-button{
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;

        position:absolute !important;
        top:14px !important;
        right:14px !important;

        width:32px !important;
        height:32px !important;

        border-radius:50% !important;

        background:#eaf2ff !important;
        color:#3b82f6 !important;

        font-size:18px !important;
        font-weight:900 !important;
        line-height:1 !important;

        cursor:pointer !important;
        pointer-events:auto !important;

        z-index:30050 !important;
    }

    .nav-menus-wrapper{
        pointer-events:auto !important;
    }
}



/* =========================================================
   PROFILE + LOGO UNIFY FIX
   ทำโลโก้และปุ่มโปรไฟล์/ออกจากระบบให้เหมือนกันทุกหน้า
========================================================= */

/* Logo บน header */
.nav-brand{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    float:none !important;
    line-height:1 !important;
}

.nav-brand .logo,
.logo{
    display:block !important;
    width:auto !important;
    height:auto !important;
    max-height:42px !important;
    max-width:180px !important;
    object-fit:contain !important;
    margin:0 !important;
    padding:0 !important;
}

/* กล่องปุ่ม profile / logout */
.profile-actions,
.mobile-profile-actions{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:12px !important;
    flex-wrap:nowrap !important;
}

/* ปุ่ม profile/logout ให้เท่ากันทุกหน้า */
.profile-actions .action-btn,
.mobile-profile-actions .action-btn,
.action-btn.profile-btn,
.action-btn.logout-btn,
.action-btn.cart-btn{
    width:44px !important;
    height:44px !important;
    min-width:44px !important;
    max-width:44px !important;

    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    padding:0 !important;
    margin:0 !important;

    border-radius:14px !important;
    border:1px solid #e5e7eb !important;

    background:#ffffff !important;

    text-decoration:none !important;
    line-height:1 !important;

    box-shadow:0 8px 20px rgba(15,23,42,.08) !important;

    transition:.18s ease !important;
}

/* สี icon */
.profile-actions .profile-btn,
.mobile-profile-actions .profile-btn,
.action-btn.profile-btn{
    color:#2563eb !important;
}

.profile-actions .logout-btn,
.mobile-profile-actions .logout-btn,
.action-btn.logout-btn{
    color:#ef4444 !important;
}

.profile-actions .action-btn i,
.mobile-profile-actions .action-btn i,
.action-btn.profile-btn i,
.action-btn.logout-btn i,
.action-btn.cart-btn i{
    font-size:20px !important;
    line-height:1 !important;
    margin:0 !important;
    padding:0 !important;
}

.profile-actions .profile-btn i,
.mobile-profile-actions .profile-btn i,
.action-btn.profile-btn i{
    color:#2563eb !important;
}

.profile-actions .logout-btn i,
.mobile-profile-actions .logout-btn i,
.action-btn.logout-btn i{
    color:#ef4444 !important;
}

.profile-actions .cart-btn,
.mobile-profile-actions .cart-btn,
.action-btn.cart-btn{
    color:#0ea5e9 !important;
}

.profile-actions .cart-btn i,
.mobile-profile-actions .cart-btn i,
.action-btn.cart-btn i{
    color:#0ea5e9 !important;
}

/* hover */
.profile-actions .profile-btn:hover,
.mobile-profile-actions .profile-btn:hover,
.action-btn.profile-btn:hover{
    background:#2563eb !important;
    border-color:#2563eb !important;
    transform:translateY(-2px);
}

.profile-actions .profile-btn:hover i,
.mobile-profile-actions .profile-btn:hover i,
.action-btn.profile-btn:hover i{
    color:#ffffff !important;
}

.profile-actions .logout-btn:hover,
.mobile-profile-actions .logout-btn:hover,
.action-btn.logout-btn:hover{
    background:#ef4444 !important;
    border-color:#ef4444 !important;
    transform:translateY(-2px);
}

.profile-actions .logout-btn:hover i,
.mobile-profile-actions .logout-btn:hover i,
.action-btn.logout-btn:hover i{
    color:#ffffff !important;
}

.profile-actions .cart-btn:hover,
.mobile-profile-actions .cart-btn:hover,
.action-btn.cart-btn:hover{
    background:#0ea5e9 !important;
    border-color:#0ea5e9 !important;
    transform:translateY(-2px);
}

.profile-actions .cart-btn:hover i,
.mobile-profile-actions .cart-btn:hover i,
.action-btn.cart-btn:hover i{
    color:#ffffff !important;
}

/* sidebar social/profile */
.navigation-portrait .nav-menu-social .profile-actions{
    padding:8px 0 !important;
    border:0 !important;
}

/* mobile header logo */
@media(max-width:991px){

    .nav-brand{
        min-height:76px !important;
        height:76px !important;
        display:flex !important;
        align-items:center !important;
    }

    .nav-brand .logo,
    .logo{
        max-height:40px !important;
        max-width:165px !important;
    }

    .mobile-profile-actions{
        display:flex !important;
        align-items:center !important;
        gap:10px !important;
    }

    .mobile-profile-actions .action-btn{
        width:42px !important;
        height:42px !important;
        min-width:42px !important;
        max-width:42px !important;
        border-radius:14px !important;
    }

    .mobile-profile-actions .action-btn i{
        font-size:19px !important;
    }
}

/* desktop header/logo */
@media(min-width:992px){

    .nav-brand .logo,
    .logo{
        max-height:42px !important;
        max-width:185px !important;
    }

    .nav-menu-social .profile-actions{
        display:flex !important;
    }
}


/* Modal: ซ่อน header ตอน modal เปิด เพื่อไม่ให้ขอบ/เงาเหลื่อมทับ */
body.modal-open .header.header-light{
    display:none !important;
}


/* ===== FORCE PROFILE BUTTON WHITE ===== */

.profile-actions .profile-btn,
.mobile-profile-actions .profile-btn{

    background:#ffffff !important;

    color:#2563eb !important;

    border:1px solid #e5e7eb !important;

    box-shadow:
        0 8px 20px rgba(15,23,42,.08) !important;
}

.profile-actions .profile-btn i,
.mobile-profile-actions .profile-btn i{

    color:#2563eb !important;
}

.profile-actions .profile-btn:hover,
.mobile-profile-actions .profile-btn:hover{

    background:#2563eb !important;

    color:#ffffff !important;
}

.profile-actions .profile-btn:hover i,
.mobile-profile-actions .profile-btn:hover i{

    color:#ffffff !important;
}

/* =========================================================
   CPE GLOBAL TYPOGRAPHY + UI SYSTEM
========================================================= */

html,body{
    font-family:'Prompt',sans-serif !important;
    color:#1e293b !important;
    background:#f8fafc !important;
    font-size:15px !important;
    line-height:1.65 !important;
    font-weight:400 !important;
    letter-spacing:.1px;
}

h1,h2,h3,h4,h5,h6,
.fw-bold,
.fw-semibold,
.card-title,
.modal-title,
.section-title,
.nav-menu > li > a{
    letter-spacing:.2px !important;
}

h1,h2{
    font-weight:800 !important;
    color:#0f172a !important;
}

h3,h4{
    font-weight:700 !important;
    color:#172033 !important;
}

h5,h6{
    font-weight:600 !important;
    color:#1e293b !important;
}

p,span,label,td,th,a,button,input,select,textarea{
    font-family:'Prompt',sans-serif !important;
}

p,td,label,.text-muted{
    font-weight:400 !important;
}

small,.small{
    font-size:13px !important;
    color:#64748b !important;
}

.card,
.modal-content,
.dropdown-menu,
.table,
.form-control,
.select2-container--default .select2-selection--single{
    border-radius:18px !important;
}

.card,
.modal-content{
    border:1px solid #e2e8f0 !important;
    box-shadow:0 10px 30px rgba(15,23,42,.06) !important;
}

.card .card-body,
.modal-body{
    padding:1.2rem !important;
}

.btn{
    border-radius:14px !important;
    font-weight:600 !important;
    letter-spacing:.2px !important;
    transition:all .2s ease !important;
}

.btn:hover{
    transform:translateY(-1px);
}

.btn-primary{
    box-shadow:0 10px 22px rgba(37,99,235,.18) !important;
}

.form-control,
.select2-container--default .select2-selection--single{
    min-height:48px !important;
    border:1px solid #dbe2ea !important;
    box-shadow:none !important;
    font-size:14px !important;
    font-weight:500 !important;
}

.form-control:focus,
.select2-container--default.select2-container--focus .select2-selection--single{
    border-color:#3b82f6 !important;
    box-shadow:0 0 0 4px rgba(59,130,246,.12) !important;
}

.table thead th{
    font-weight:700 !important;
    color:#0f172a !important;
    border-bottom-width:1px !important;
    background:#f8fafc !important;
}

.table tbody td{
    vertical-align:middle !important;
    font-weight:400 !important;
    color:#334155 !important;
}

.badge,
.label{
    border-radius:999px !important;
    font-weight:600 !important;
    padding:.45rem .8rem !important;
}

.modal-header{
    border-bottom:1px solid #eef2f7 !important;
    padding:1rem 1.25rem !important;
}

.modal-title{
    font-size:1rem !important;
    font-weight:700 !important;
}

.booking-wrapes .btn{
    min-width:120px;
}

img{
    image-rendering:auto;
}

@media (max-width:768px){
    html,body{
        font-size:14px !important;
    }

    .card .card-body,
    .modal-body{
        padding:1rem !important;
    }

    .btn{
        min-height:44px !important;
    }
}

/* =========================================================
   CPE DESKTOP NAVBAR BALANCE FIX
   จัด header desktop เป็น 3 โซน: logo ซ้าย / เมนูกลาง / profile ขวา
========================================================= */
@media (min-width: 992px){
    .header.header-light .container{
        max-width: 100% !important;
        padding-left: 34px !important;
        padding-right: 34px !important;
    }

    .navigation.navigation-landscape{
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 260px minmax(0, 1fr) 136px !important;
        align-items: center !important;
        column-gap: 18px !important;
    }

    .navigation-landscape .nav-header,
    .nav-header{
        width: 260px !important;
        min-width: 260px !important;
        justify-content: flex-start !important;
    }

    .navigation-landscape .nav-brand,
    .nav-brand{
        margin-right: 0 !important;
    }

    .navigation-landscape .nav-brand .logo,
    .nav-brand .logo,
    .logo{
        max-height: 42px !important;
        max-width: 210px !important;
    }

    .navigation-landscape .nav-menus-wrapper,
    .nav-menus-wrapper{
        width: 100% !important;
        min-width: 0 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        justify-content: stretch !important;
        gap: 18px !important;
        overflow: visible !important;
    }

    .navigation-landscape .nav-menu:not(.nav-menu-social),
    .nav-menu:not(.nav-menu-social){
        justify-content: center !important;
        gap: 14px !important;
        width: 100% !important;
    }

    .navigation-landscape .nav-menu-social,
    .nav-menu-social{
        justify-content: flex-end !important;
        width: auto !important;
        min-width: 112px !important;
        gap: 10px !important;
    }

    .nav-menu > li > a{
        min-height: 44px !important;
        padding: 0 8px !important;
        gap: 8px !important;
        font-size: 14px !important;
        font-weight: 750 !important;
        line-height: 1 !important;
    }

    .nav-menu > li > a i{
        font-size: 17px !important;
        min-width: 18px !important;
        text-align: center !important;
        margin-right: 4px !important;
    }

    .profile-actions{
        justify-content: flex-end !important;
        gap: 12px !important;
    }

    .profile-actions .action-btn,
    .action-btn.profile-btn,
    .action-btn.logout-btn{
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        border-radius: 15px !important;
    }
}

@media (min-width: 992px) and (max-width: 1280px){
    .header.header-light .container{
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .navigation.navigation-landscape{
        grid-template-columns: 220px minmax(0, 1fr) 122px !important;
        column-gap: 12px !important;
    }

    .navigation-landscape .nav-header,
    .nav-header{
        width: 220px !important;
        min-width: 220px !important;
    }

    .navigation-landscape .nav-brand .logo,
    .nav-brand .logo,
    .logo{
        max-width: 185px !important;
    }

    .navigation-landscape .nav-menu:not(.nav-menu-social),
    .nav-menu:not(.nav-menu-social){
        gap: 8px !important;
    }

    .nav-menu > li > a{
        padding: 0 6px !important;
        font-size: 13.5px !important;
        gap: 6px !important;
    }

    .nav-menu > li > a i{
        font-size: 16px !important;
        margin-right: 3px !important;
    }

    .profile-actions .action-btn,
    .action-btn.profile-btn,
    .action-btn.logout-btn{
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
    }
}


/* =========================================================
   HOME GUEST LOGIN RIGHT FIX
   จัดหน้า home ตอนยังไม่ login ให้ปุ่มเข้าสู่ระบบอยู่ขวาสุดจริง
========================================================= */
@media (min-width: 992px){
    body.is-guest .navigation.navigation-landscape{
        display:flex !important;
        align-items:center !important;
        justify-content:space-between !important;
        width:100% !important;
        grid-template-columns:none !important;
    }

    body.is-guest .navigation-landscape .nav-header,
    body.is-guest .nav-header{
        width:100% !important;
        min-width:0 !important;
        display:flex !important;
        align-items:center !important;
        justify-content:space-between !important;
    }

    body.is-guest .guest-login-top{
        margin-left:auto !important;
        margin-right:0 !important;
    }
}


/* =========================================================
   HEADER USER MENU FIX
   กัน profile/logout/role ซ้อนกัน และดันไปขวาสุด
========================================================= */
@media (min-width: 992px){
    .navigation.navigation-landscape,
    .navigation-landscape{
        display:flex !important;
        align-items:center !important;
        width:100% !important;
    }

    .nav-menu-social,
    .profile_logout,
    .profile-actions,
    .user-menu,
    .header-profile,
    .nav-profile{
        margin-left:auto !important;
        display:flex !important;
        align-items:center !important;
        justify-content:flex-end !important;
        gap:10px !important;
        flex-wrap:nowrap !important;
        white-space:nowrap !important;
        position:relative !important;
        right:auto !important;
        left:auto !important;
        transform:none !important;
        min-width:max-content !important;
        z-index:20 !important;
    }

    .nav-menu-social > li,
    .profile_logout > *,
    .profile-actions > *,
    .user-menu > *,
    .header-profile > *,
    .nav-profile > *{
        flex:0 0 auto !important;
        white-space:nowrap !important;
    }

    .nav-menu-social a,
    .profile_logout a,
    .profile-actions a,
    .user-menu a,
    .header-profile a,
    .nav-profile a,
    .profile_logout button,
    .profile-actions button,
    .user-menu button,
    .header-profile button,
    .nav-profile button{
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        gap:6px !important;
        white-space:nowrap !important;
        flex-shrink:0 !important;
        position:relative !important;
        right:auto !important;
        left:auto !important;
        transform:none !important;
    }

    .nav-menu-social i,
    .profile_logout i,
    .profile-actions i,
    .user-menu i,
    .header-profile i,
    .nav-profile i{
        position:static !important;
        margin:0 !important;
        flex-shrink:0 !important;
    }
}
