
/* =========================================================
   SAYAKA BUFFET - RESPONSIVE PACK
   Optimized for Laptop / Tablet / Samsung Android / iPhone
   Does not change the desktop design; mobile/tablet rules
   override only where necessary.
   ========================================================= */

:root {
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 82px;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-x: none;
}

img,
video,
iframe {
    max-width: 100%;
}

img {
    height: auto;
}

button,
a,
input,
select,
textarea {
    touch-action: manipulation;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* Better anchor position under fixed header */
.page-section,
#home,
[id] {
    scroll-margin-top: 82px;
}

/* Tablet / small laptop */
@media (max-width: 1100px) {
    .nav-container {
        max-width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }

    .nav-menu {
        gap: 14px;
    }

    .nav-menu li {
        font-size: 13px;
    }

    .btn-gold {
        padding-left: 18px;
        padding-right: 18px;
    }

    .page-section {
        width: 100%;
        max-width: 100%;
        padding-left: clamp(18px, 4vw, 40px);
        padding-right: clamp(18px, 4vw, 40px);
    }

    .buffet-grid,
    .alacarte-two-cols {
        width: 100%;
    }
}

/* Samsung / iPhone / tablets */
@media (max-width: 768px) {
    :root {
        --mobile-gutter: 16px;
    }

    header {
        padding-top: calc(8px + var(--safe-top));
        padding-bottom: 8px;
    }

    .nav-container {
        min-height: 54px;
        padding-left: max(var(--mobile-gutter), var(--safe-left));
        padding-right: max(var(--mobile-gutter), var(--safe-right));
        gap: 8px;
    }

    .nav-brand {
        min-width: 0;
        max-width: calc(100% - 112px);
    }

    .nav-logo-img {
        height: 42px;
        max-width: 150px;
        object-fit: contain;
        margin-right: 6px;
    }

    .nav-brand-text {
        display: none;
    }

    .nav-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        padding: 0;
        flex: 0 0 46px;
        border-radius: 10px;
    }

    header .btn-gold {
        width: auto;
        min-height: 44px;
        margin: 0;
        padding: 10px 13px;
        font-size: 12px;
        letter-spacing: .7px;
        border-radius: 8px;
        flex: 0 0 auto;
    }

    /* Use the dedicated full-screen mobile menu. */
    header .nav-menu {
        display: none !important;
    }

    .mobile-menu-overlay {
        padding-top: var(--safe-top);
        padding-bottom: var(--safe-bottom);
    }

    .mobile-menu {
        width: min(100%, 430px);
        max-width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .mobile-menu-header {
        padding:
            max(14px, var(--safe-top))
            max(16px, var(--safe-right))
            14px
            max(16px, var(--safe-left));
        min-height: 70px;
    }

    .mobile-menu-logo {
        height: 42px;
        width: auto;
    }

    .mobile-menu-close {
        width: 48px;
        height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
    }

    .mobile-menu-list {
        padding: 10px max(18px, var(--safe-right)) 18px max(18px, var(--safe-left));
        gap: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-menu-list li {
        min-height: 58px;
        display: flex;
        align-items: center;
        padding: 14px 6px;
        font-size: 17px;
    }

    .mobile-menu-cta {
        padding:
            14px
            max(18px, var(--safe-right))
            max(18px, calc(14px + var(--safe-bottom)))
            max(18px, var(--safe-left));
        background: rgba(11,17,32,.96);
    }

    .mobile-cta {
        min-height: 50px;
        padding: 14px 18px;
        font-size: 15px;
    }

    main {
        margin-top: 72px;
    }

    .page-section {
        width: 100%;
        max-width: 100%;
        padding: 58px var(--mobile-gutter);
    }

    .section-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        line-height: 1.15;
    }

    .section-title::after {
        margin-top: 12px;
    }

    /* Hero: avoid cropped content on portrait phones */
    .hero {
        min-height: min(760px, calc(100svh - 72px));
        height: auto;
        padding:
            64px
            max(var(--mobile-gutter), var(--safe-right))
            54px
            max(var(--mobile-gutter), var(--safe-left));
        background-position: center center;
        background-attachment: scroll;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        width: 100%;
        max-width: 620px;
        padding: 0;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 9vw, 3.2rem);
        line-height: 1.08;
        overflow-wrap: anywhere;
    }

    .hero-content p {
        font-size: clamp(.95rem, 4vw, 1.2rem);
        line-height: 1.55;
    }

    /* About */
    .about-container {
        width: 100%;
        flex-direction: column;
        gap: 28px;
    }

    .about-image-container,
    .about-image-wrapper {
        width: 100%;
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Menu tabs become easy-to-tap and scroll horizontally */
    .menu-main-header {
        margin-bottom: 34px;
    }

    .menu-section-badge {
        font-size: .72rem;
        letter-spacing: 1.5px;
    }

    .menu-subtitle-main {
        font-size: .98rem;
        line-height: 1.65;
    }

    /* Bộ lọc thực đơn: responsive thật trên điện thoại, không tràn ngang */
    .menu-tab-nav {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 520px;
        margin: 0 auto 30px;
        gap: 10px;
        padding: 4px 0 8px;
        overflow: visible;
    }

    .menu-tab-btn {
        width: 100%;
        min-height: 48px;
        padding: 11px 14px;
        font-size: .82rem;
        line-height: 1.25;
        white-space: normal;
        justify-content: center;
        text-align: center;
    }

    /* Touch device không giữ trạng thái :hover sau khi chạm */
    .buffet-card:hover .buffet-overlay-view,
    .alacarte-item-card:hover .buffet-overlay-view {
        opacity: 0 !important;
    }

    .buffet-card:hover .buffet-img-wrap img,
    .alacarte-item-card:hover .combo-img-wrap img {
        transform: none !important;
        filter: brightness(1) !important;
    }

    .buffet-img-wrap img,
    .combo-img-wrap img {
        filter: brightness(1) !important;
    }

    .sub-section-header {
        margin-bottom: 24px;
    }

    .sub-section-title {
        font-size: clamp(1.45rem, 6vw, 2rem);
    }

    .buffet-grid {
        grid-template-columns: 1fr !important;
        gap: 22px;
    }

    .buffet-card,
    .buffet-card-featured {
        width: 100%;
        max-width: 620px;
        margin-left: auto !important;
        margin-right: auto !important;
        grid-column: 1 !important;
    }

    .buffet-img-wrap {
        aspect-ratio: 16 / 10;
        height: auto;
    }

    .buffet-img-wrap img,
    .combo-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .buffet-banner-badge {
        left: 8px;
        right: 8px;
        max-width: calc(100% - 16px);
        font-size: .68rem;
        line-height: 1.25;
        padding: 7px 9px;
        white-space: normal;
        text-align: center;
    }

    /* Combo: nhãn vàng nhỏ gọn như ảnh mẫu, chỉ ôm phần tên + giá */
    .combo-banner-tag {
        left: 8px !important;
        right: auto !important;
        width: fit-content !important;
        max-width: calc(100% - 16px) !important;
        font-size: .68rem;
        line-height: 1.25;
        padding: 5px 9px;
        white-space: nowrap !important;
        text-align: center;
    }

    /* Combo banner chỉ là nhãn ở phía trên, không được phủ toàn bộ ảnh.
       Trước đây có cả bottom: 8px nên top + bottom cùng tồn tại,
       khiến background vàng kéo dài hết chiều cao ảnh trên mobile. */
    .combo-banner-tag {
        top: 8px !important;
        bottom: auto !important;
        height: auto !important;
        min-height: 0 !important;
        width: auto !important;
    }

    .buffet-overlay-view {
        font-size: .75rem;
        padding: 6px 9px;
    }

    .buffet-card-info {
        padding: 12px 8px 4px;
    }

    .buffet-title {
        font-size: 1.2rem;
    }

    .buffet-price-tag {
        font-size: .95rem;
    }

    /* A la carte */
    .alacarte-two-cols {
        grid-template-columns: 1fr !important;
        gap: 34px;
    }

    .alacarte-col-header h4 {
        font-size: 1.45rem;
    }

    .alacarte-cards-list {
        gap: 18px;
    }

    .alacarte-item-info {
        padding: 10px 4px;
    }

    /* Branches */
    .branch-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .branch-img-box {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .branch-content {
        padding: 18px 16px;
    }

    .branch-title {
        font-size: 1.25rem;
    }

    .branch-address {
        font-size: .9rem;
        margin-bottom: 18px;
    }

    .branch-footer {
        flex-wrap: wrap;
    }

    .btn-branch-book {
        min-height: 42px;
        padding: 9px 15px;
    }

    /* Forms: iOS Safari won't zoom when text is >= 16px */
    input,
    select,
    textarea {
        min-height: 48px;
        padding: 12px 14px;
        margin-bottom: 16px;
        font-size: 16px !important;
        border-radius: 8px;
    }

    textarea {
        min-height: 120px;
    }

    #booking .btn-gold {
        min-height: 50px;
        width: 100% !important;
        max-width: 620px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Footer */
    footer {
        padding:
            48px
            max(18px, var(--safe-right))
            max(24px, calc(24px + var(--safe-bottom)))
            max(18px, var(--safe-left));
        margin-top: 30px;
    }

    .footer-container {
        display: flex;
        flex-direction: column;
        gap: 28px;
        padding-bottom: 30px;
    }

    .footer-col {
        width: 100%;
    }

    .footer-col h4 {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding-top: 20px;
    }

    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 18px;
    }

    .feedback-input-group {
        width: 100%;
    }

    .feedback-input-group input {
        min-width: 0;
        margin-bottom: 0;
    }

    .btn-send-feedback {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
    }

    /* Floating buttons: keep them above iPhone home indicator */
    .floating-buttons {
        right: max(10px, var(--safe-right));
        bottom: max(14px, calc(14px + var(--safe-bottom)));
        gap: 8px;
    }

    .float-btn {
        width: 46px;
        height: 46px;
        font-size: 20px;
        border-width: 1.5px;
    }

    .zalo-letter {
        width: 27px;
        height: 27px;
        border-width: 2px;
        font-size: 18px;
    }

    .side-nav-dots {
        display: none !important;
    }

    /* Modal fits phones and respects the keyboard/notch */
    .booking-overlay {
        align-items: flex-start;
        overflow-y: auto;
        padding:
            max(18px, var(--safe-top))
            max(12px, var(--safe-right))
            max(18px, var(--safe-bottom))
            max(12px, var(--safe-left));
    }

    .booking-card {
        width: 100%;
        margin: 10px auto;
        max-height: calc(100svh - 28px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .booking-info .info-row {
        gap: 8px;
    }

    /* Success screen */
    .booking-success-page {
        min-height: calc(100svh - 72px);
        padding:
            20px
            max(12px, var(--safe-right))
            max(20px, var(--safe-bottom))
            max(12px, var(--safe-left));
    }

    .booking-success-card {
        width: 100%;
        max-height: calc(100svh - 36px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Small phones: 320-430px */
@media (max-width: 430px) {
    .nav-container {
        padding-left: max(10px, var(--safe-left));
        padding-right: max(10px, var(--safe-right));
    }

    .nav-brand {
        max-width: calc(100% - 104px);
    }

    .nav-logo-img {
        height: 38px;
        max-width: 125px;
    }

    .nav-toggle {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    header .btn-gold {
        min-height: 42px;
        padding: 9px 10px;
        font-size: 10.5px;
    }

    main {
        margin-top: 68px;
    }

    .page-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .hero {
        min-height: calc(100svh - 68px);
        padding-top: 48px;
        padding-bottom: 42px;
    }

    .hero-content h1 {
        font-size: clamp(1.8rem, 9.2vw, 2.5rem);
    }

    .hero-content p {
        font-size: .92rem;
    }

    .menu-tab-btn {
        font-size: .76rem;
        padding: 10px 13px;
    }

    .buffet-frame,
    .combo-frame {
        padding: 5px;
    }

    .buffet-price-tag span,
    .alacarte-price-tag span {
        font-size: 1.05rem;
    }

    .branch-footer {
        align-items: stretch;
    }

    .branch-phone,
    .btn-branch-book {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .footer-hours-text {
        gap: 12px;
        align-items: flex-start;
    }

    .floating-buttons {
        right: max(8px, var(--safe-right));
    }

    .float-btn {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .zalo-letter {
        width: 24px;
        height: 24px;
        font-size: 16px;
    }

    .booking-card {
        padding: 20px 14px;
        border-radius: 16px;
    }

    .booking-info .info-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .booking-info .value {
        width: 100%;
        text-align: left;
        overflow-wrap: anywhere;
    }
}

/* Very narrow devices */
@media (max-width: 360px) {
    .nav-logo-img {
        height: 35px;
        max-width: 110px;
    }

    header .btn-gold {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 9.5px;
    }

    .nav-toggle {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .page-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-content h1 {
        font-size: 1.7rem;
    }

    .menu-tab-btn {
        padding-left: 11px;
        padding-right: 11px;
    }
}

/* Landscape phones */
@media (max-height: 520px) and (orientation: landscape) and (max-width: 900px) {
    .hero {
        min-height: 520px;
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .mobile-menu-list li {
        min-height: 46px;
        padding-top: 9px;
        padding-bottom: 9px;
    }
}

/* Touch devices: remove hover-only movement that can feel sticky */
@media (hover: none) and (pointer: coarse) {
    .buffet-card:hover,
    .alacarte-item-card:hover,
    .branch-card:hover {
        transform: none;
    }

    .buffet-card:active,
    .alacarte-item-card:active,
    .branch-card:active {
        transform: scale(.995);
    }

    .btn-gold:active,
    .btn-branch-book:active,
    .menu-tab-btn:active,
    .float-btn:active {
        transform: scale(.98);
    }
}

/* Accessibility / battery friendly */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Prevent long text/addresses from breaking the layout */
.branch-address,
.footer-contact-item,
.booking-info,
.bs-info,
.drink-name,
.menu-subtitle-main {
    overflow-wrap: anywhere;
}


/* =========================================================
   MOBILE UX FINAL PASS
   - Native scrolling: no section hijacking on touch
   - Fixed/safe-area header
   - Reliable hamburger overlay
   - One branch card per row
   - Large touch targets and iOS form sizing
   ========================================================= */

html {
    scroll-padding-top: 88px;
}

body {
    overflow-x: hidden;
    overscroll-behavior-y: auto;
}

@media (max-width: 768px) {
    header {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 3000;
        box-sizing: border-box;
        padding-top: calc(8px + var(--safe-top));
        padding-bottom: 8px;
    }

    .nav-container {
        width: 100%;
        min-height: 54px;
        box-sizing: border-box;
    }

    .nav-toggle {
        position: relative;
        z-index: 3002;
        flex-shrink: 0;
        border: 1px solid rgba(212,175,55,.18);
    }

    header .btn-gold {
        position: relative;
        z-index: 3002;
        min-width: 98px;
        min-height: 44px;
        padding: 10px 11px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        line-height: 1.1;
    }

    main {
        margin-top: 72px !important;
    }

    /* Never let the reveal animation make a whole mobile section look dark. */
    .page-section,
    .page-section.visible {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Dedicated mobile menu: full height, safe-area aware, internally scrollable. */
    .mobile-menu-overlay {
        position: fixed !important;
        inset: 0 !important;
        width: 100%;
        height: 100dvh;
        min-height: 100svh;
        box-sizing: border-box;
        padding: 0;
        overflow: hidden;
        z-index: 4000;
        background: rgba(0,0,0,.72);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }

    .mobile-menu-overlay.open {
        display: block;
    }

    .mobile-menu {
        width: min(100%, 430px);
        height: 100%;
        min-height: 100%;
        box-sizing: border-box;
        margin-left: auto;
        padding-top: var(--safe-top);
        padding-bottom: var(--safe-bottom);
        overflow: hidden;
    }

    .mobile-menu-header {
        min-height: 68px;
        box-sizing: border-box;
        padding: 12px max(16px, var(--safe-right)) 12px max(16px, var(--safe-left));
        flex-shrink: 0;
    }

    .mobile-menu-close {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        font-size: 30px;
    }

    .mobile-menu-list {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding: 8px max(18px, var(--safe-right)) 8px max(18px, var(--safe-left));
        gap: 0;
    }

    .mobile-menu-list li {
        min-height: 56px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        padding: 14px 6px;
        font-size: 17px;
    }

    .mobile-menu-cta {
        flex-shrink: 0;
        margin-top: 0;
        padding: 14px max(18px, var(--safe-right)) max(14px, var(--safe-bottom)) max(18px, var(--safe-left));
    }

    .mobile-cta {
        width: 100%;
        min-height: 52px;
        margin: 0;
        font-size: 15px;
    }

    /* Branch filters: two columns make every option easy to hit with a thumb. */
    .branch-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        margin-bottom: 28px;
    }

    .filter-btn {
        width: 100%;
        min-height: 48px;
        box-sizing: border-box;
        padding: 10px 8px;
        font-size: .76rem;
        letter-spacing: .45px;
        white-space: normal;
        line-height: 1.15;
    }

    /* Exactly one branch card per row on phones. */
    .branch-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 18px;
        width: 100%;
    }

    .branch-card {
        width: 100%;
        min-width: 0;
        margin: 0;
        border-radius: 16px;
        box-sizing: border-box;
    }

    .branch-img-box {
        width: 100%;
        aspect-ratio: 16 / 10;
        height: auto;
    }

    .branch-content {
        padding: 17px 15px 16px;
    }

    .branch-title {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 11px;
    }

    .branch-address {
        font-size: .88rem;
        line-height: 1.55;
        margin-bottom: 17px;
    }

    .branch-footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
        width: 100%;
    }

    .branch-phone,
    .btn-branch-book {
        min-height: 44px;
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }

    /* iOS Safari: 16px prevents automatic input zoom. */
    #booking > div {
        width: 100% !important;
        max-width: 800px !important;
        box-sizing: border-box;
        padding: 24px 16px !important;
        border-width: 2px !important;
        border-radius: 16px !important;
    }

    #booking form > div {
        gap: 0 !important;
        margin-top: 0 !important;
    }

    #booking form > div > div {
        flex: 1 1 100% !important;
        width: 100%;
        min-width: 0;
    }

    #booking label {
        display: block;
        font-size: .9rem;
        margin-bottom: 7px !important;
    }

    #booking input,
    #booking select,
    #booking textarea {
        width: 100%;
        min-height: 50px;
        box-sizing: border-box;
        margin-bottom: 16px;
        padding: 13px 14px;
        font-size: 16px !important;
        line-height: 1.35;
        -webkit-appearance: none;
        appearance: none;
    }

    #booking textarea {
        min-height: 118px;
        resize: vertical;
    }

    #booking .btn-gold {
        min-height: 52px;
        width: 100% !important;
        margin-top: 8px !important;
        font-size: 1rem !important;
    }

    /* Floating contact stack stays clear of the iPhone home indicator. */
    .floating-buttons {
        right: max(10px, var(--safe-right));
        bottom: max(14px, calc(14px + var(--safe-bottom)));
        gap: 8px;
        z-index: 3500;
    }

    .float-btn {
        width: 46px;
        height: 46px;
        min-width: 46px;
        min-height: 46px;
    }

    /* Keep the floating buttons out of the way while the hamburger is open. */
    body.mobile-menu-open .floating-buttons {
        display: none;
    }
}

@media (max-width: 360px) {
    .nav-container {
        padding-left: max(8px, var(--safe-left));
        padding-right: max(8px, var(--safe-right));
        gap: 5px;
    }

    .nav-logo-img {
        height: 36px;
        max-width: 116px;
    }

    .nav-toggle {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    header .btn-gold {
        min-width: 92px;
        min-height: 40px;
        padding: 8px 8px;
        font-size: 10px;
    }

    main {
        margin-top: 66px !important;
    }

    .branch-filters {
        gap: 8px;
    }

    .filter-btn {
        min-height: 46px;
        font-size: .7rem;
    }

    .branch-footer {
        grid-template-columns: 1fr;
    }
}

@media (orientation: landscape) and (max-width: 900px) {
    .mobile-menu-list li {
        min-height: 48px;
        padding-top: 9px;
        padding-bottom: 9px;
    }

    .mobile-menu-cta {
        padding-top: 8px;
    }
}


/* ===== MENU MOBILE FIX ===== */
@media (max-width: 480px) {
    .menu-main-header {
        margin-bottom: 28px;
    }

    .menu-tab-nav {
        max-width: 100%;
        gap: 9px;
        margin-bottom: 26px;
    }

    .menu-tab-btn {
        min-height: 50px;
        padding: 10px 12px;
        font-size: .8rem;
        letter-spacing: .2px;
    }

    .buffet-img-wrap {
        aspect-ratio: 16 / 10;
    }

    .buffet-img-wrap img,
    .combo-img-wrap img {
        filter: brightness(1) contrast(1) !important;
    }
}

/* Không dùng hover overlay trên thiết bị cảm ứng */
@media (hover: none), (pointer: coarse) {
    .buffet-card:hover .buffet-overlay-view,
    .alacarte-item-card:hover .buffet-overlay-view {
        opacity: 0 !important;
    }

    .buffet-card:hover .buffet-img-wrap img,
    .alacarte-item-card:hover .combo-img-wrap img {
        transform: none !important;
        filter: brightness(1) contrast(1) !important;
    }
}


/* ===== FIX: COMBO MENU TAG MOBILE ===== */
@media (max-width: 767px) {
    .combo-img-wrap {
        position: relative;
        overflow: hidden;
    }

    .combo-banner-tag {
        position: absolute !important;
        top: 8px !important;
        bottom: auto !important;
        left: 8px !important;
        right: auto !important;
        display: inline-block !important;
        width: fit-content !important;
        max-width: calc(100% - 16px) !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        box-sizing: border-box !important;
        padding: 5px 9px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* =========================================================
   SAYAKA - FORM ỨNG TUYỂN RESPONSIVE ALL DEVICES
   PC / LAPTOP / TABLET / SAMSUNG / IPHONE / OPPO
   ========================================================= */
.job-modal-overlay {
    padding: max(10px, env(safe-area-inset-top))
              max(10px, env(safe-area-inset-right))
              max(10px, env(safe-area-inset-bottom))
              max(10px, env(safe-area-inset-left));
}

.job-modal-box {
    width: min(720px, 100%);
    max-width: 720px;
    max-height: min(92dvh, 900px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.job-modal-box form,
.job-modal-box form > div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.job-modal-box form > div[style*="display: flex"] > div {
    min-width: 0 !important;
    box-sizing: border-box;
}

.job-modal-box input,
.job-modal-box select,
.job-modal-box textarea,
.job-modal-box button {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.job-modal-box input[type="text"],
.job-modal-box input[type="email"],
.job-modal-box input[type="tel"],
.job-modal-box input[type="number"],
.job-modal-box select,
.job-modal-box textarea {
    width: 100%;
    min-height: 46px;
    font-size: 16px;
}

.job-modal-box textarea {
    min-height: 115px;
    resize: vertical;
}

.job-modal-box input[type="file"] {
    width: 100%;
    min-height: 46px;
    padding: 8px !important;
    overflow: hidden;
    font-size: 14px !important;
}

.job-modal-box .btn-gold[type="submit"] {
    width: 100% !important;
    min-height: 52px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .job-modal-overlay {
        align-items: flex-start;
        justify-content: center;
        padding-top: max(8px, env(safe-area-inset-top));
        padding-bottom: max(8px, env(safe-area-inset-bottom));
    }

    .job-modal-box {
        width: 100%;
        max-width: 100%;
        max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom)));
        padding: 22px 14px 18px;
        border-radius: 14px;
    }

    .job-modal-header {
        margin-bottom: 18px;
        padding-bottom: 14px;
    }

    .job-modal-icon {
        width: 46px;
        height: 46px;
        font-size: 1.15rem;
        margin-bottom: 9px;
    }

    .job-modal-title {
        font-size: clamp(1.25rem, 6vw, 1.7rem);
        line-height: 1.2;
        padding-right: 35px;
    }

    .job-modal-subtitle {
        font-size: .82rem;
        line-height: 1.45;
    }

    /* Every multi-column row becomes one column on phones. */
    .job-modal-box form > div[style*="display: flex"] {
        display: block !important;
    }

    .job-modal-box form > div[style*="display: flex"] > div {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin-bottom: 16px;
    }

    .job-modal-box label {
        display: block !important;
        width: 100%;
        margin-bottom: 7px !important;
        font-size: 14px !important;
        line-height: 1.4;
    }

    .job-modal-box input[type="text"],
    .job-modal-box input[type="email"],
    .job-modal-box input[type="tel"],
    .job-modal-box input[type="number"],
    .job-modal-box select,
    .job-modal-box textarea {
        width: 100% !important;
        min-height: 44px;
        padding: 10px 12px;
        font-size: 16px !important;
    }

    .job-modal-box textarea {
        min-height: 105px;
    }

    .job-modal-box input[type="file"] {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 12px !important;
    }

    .job-modal-box .btn-gold[type="submit"] {
        min-height: 50px;
        padding: 12px 10px !important;
        font-size: 14px !important;
        line-height: 1.3;
    }

    /* The close button stays inside the modal and does not cover the title. */
    .job-modal-box .menu-modal-close {
        top: 12px !important;
        right: 10px !important;
        width: 36px !important;
        height: 36px !important;
        z-index: 20;
    }
}

@media (max-width: 375px) {
    .job-modal-box {
        padding: 20px 10px 14px;
    }

    .job-modal-box form > div[style*="display: flex"] > div {
        margin-bottom: 14px;
    }

    .job-modal-box .btn-gold[type="submit"] {
        font-size: 13px !important;
        padding-left: 7px !important;
        padding-right: 7px !important;
    }
}

@supports (-webkit-touch-callout: none) {
    .job-modal-box input,
    .job-modal-box select,
    .job-modal-box textarea {
        font-size: 16px !important;
    }
}


/* ===== FORM ỨNG TUYỂN - NÚT X ĐÓNG RESPONSIVE ===== */
.job-modal-box {
    position: relative;
    overflow-x: hidden;
}

.job-modal-close {
    position: absolute;
    top: 22px;
    right: 18px;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    background: rgba(11, 17, 32, 0.96);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    z-index: 100;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.job-modal-close:hover,
.job-modal-close:focus-visible {
    background: var(--gold);
    color: #0b1120;
    transform: rotate(90deg);
    outline: none;
}

.job-modal-title,
.job-modal-subtitle {
    padding-right: 48px;
}

@media (max-width: 1024px) {
    .job-modal-close {
        top: 20px;
        right: 16px;
        width: 42px;
        height: 42px;
        font-size: 27px;
    }
}

@media (max-width: 767px) {
    .job-modal-overlay {
        padding-left: max(10px, env(safe-area-inset-left));
        padding-right: max(10px, env(safe-area-inset-right));
    }

    .job-modal-box {
        position: relative;
    }

    .job-modal-close {
        top: 18px !important;
        right: 12px !important;
        width: 42px !important;
        height: 42px !important;
        font-size: 27px !important;
    }

    .job-modal-title {
        padding-left: 8px;
        padding-right: 54px !important;
    }

    .job-modal-subtitle {
        padding-left: 8px;
        padding-right: 42px !important;
    }
}

@media (max-width: 480px) {
    .job-modal-close {
        top: 16px !important;
        right: 10px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 25px !important;
    }
}

@media (max-width: 375px) {
    .job-modal-close {
        top: 14px !important;
        right: 8px !important;
        width: 38px !important;
        height: 38px !important;
        font-size: 24px !important;
    }

    .job-modal-title {
        padding-right: 50px !important;
    }
}
