/* หน้าที่: โครงหน้าและเมนูสำหรับอุปกรณ์พกพา */
/* Mobile/tablet application shell. Desktop layout remains unchanged. */
.mobile-app-label,.mobile-menu-head,.mobile-nav-scrim{display:none}

@media (max-width:1100px){
  :root{--app-safe-bottom:max(10px,env(safe-area-inset-bottom));--app-dock-height:76px}
  html{scroll-padding-top:86px;scroll-behavior:smooth}
  body.friendly-body{padding-bottom:calc(var(--app-dock-height) + var(--app-safe-bottom) + 10px);background:#f4f7fc;overscroll-behavior-y:none;-webkit-tap-highlight-color:transparent}
  button,a,input,select,textarea{touch-action:manipulation}
  button,a{min-height:44px}
  input,select,textarea{font-size:16px!important}

  .site-header{position:fixed;top:0;left:0;right:0;padding:max(8px,env(safe-area-inset-top)) 12px 0;z-index:70;pointer-events:none}
  .nav-shell{height:62px;max-width:760px;margin:auto;padding:7px 8px 7px 10px;border:1px solid rgba(255,255,255,.92);border-radius:20px;background:rgba(255,255,255,.97);box-shadow:0 12px 36px rgba(32,54,97,.13);backdrop-filter:none!important;pointer-events:auto}
  .brand{gap:9px}.brand img{width:44px;height:44px;border-radius:14px}.brand strong{font-size:13px;letter-spacing:.05em}.brand small{font-size:7px;letter-spacing:.28em}
  .mobile-app-label{display:flex;align-items:center;gap:6px;margin-left:auto;margin-right:7px;padding:6px 8px;border-radius:999px;background:#eef4ff;color:#4e67a1;font:700 7px 'Prompt',sans-serif;letter-spacing:.08em}
  .mobile-app-label i{width:6px;height:6px;border-radius:50%;background:#20b987;box-shadow:0 0 0 4px rgba(32,185,135,.12)}
  .nav-toggle{display:grid!important;place-items:center;width:44px;height:44px;border-radius:14px;background:linear-gradient(145deg,#f6f9ff,#e9f1ff);color:#1761d2;border:0}

  .mobile-nav-scrim{display:block;position:fixed;z-index:68;inset:0;width:100%;height:100%;border:0;background:rgba(10,19,39,.42);backdrop-filter:blur(3px);opacity:0;visibility:hidden;pointer-events:none;transition:.25s}
  body.nav-open{overflow:hidden}body.nav-open .mobile-nav-scrim{opacity:1;visibility:visible;pointer-events:auto}
  .nav-links{display:flex!important;flex-direction:column!important;align-items:stretch!important;position:fixed!important;z-index:69;top:auto!important;left:12px!important;right:12px!important;bottom:calc(var(--app-dock-height) + var(--app-safe-bottom) + 13px)!important;max-width:620px;max-height:min(72dvh,610px);margin:0 auto;padding:14px!important;border:1px solid rgba(255,255,255,.9)!important;border-radius:28px!important;background:rgba(255,255,255,.97)!important;box-shadow:0 30px 80px rgba(13,27,57,.3)!important;backdrop-filter:blur(24px);overflow:auto;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(28px) scale(.98);transition:.25s!important}
  .nav-links.open{opacity:1;visibility:visible;pointer-events:auto;transform:none}
  .mobile-menu-head{display:flex;align-items:center;justify-content:space-between;padding:4px 4px 12px;border-bottom:1px solid #edf1f6;margin-bottom:7px}
  .mobile-menu-head>span{display:flex;flex-direction:column}.mobile-menu-head small{font:700 8px 'Prompt',sans-serif;letter-spacing:.13em;color:#6880aa}.mobile-menu-head strong{font:700 20px 'Prompt',sans-serif;color:#13203a}
  .mobile-menu-head button{display:grid;place-items:center;width:42px;height:42px;border:0;border-radius:14px;background:#f0f4fa;color:#52647e}
  .nav-links>a,.nav-dropdown>button{display:flex!important;min-height:50px;padding:0 14px!important;border-radius:15px!important;font-size:13px!important;color:#27364e!important}
  .nav-links>a i,.nav-dropdown>button>i:first-child{width:32px;height:32px;border-radius:10px;background:#edf3ff;color:#2362d0;display:grid;place-items:center}
  .nav-links>a.active{background:#edf4ff!important;color:#155eef!important}
  .nav-links .nav-contact{background:linear-gradient(135deg,#14213d,#263758)!important;color:#fff!important}.nav-links .nav-contact i{background:rgba(255,255,255,.13)!important;color:#fff!important}
  .nav-dropdown{width:100%}.dropdown-panel{display:none!important;position:static!important;width:100%!important;max-height:250px;overflow:auto;margin:4px 0 8px;padding:6px!important;border-radius:17px!important;background:#f5f7fb!important;box-shadow:none!important;opacity:1!important;visibility:visible!important;transform:none!important}
  .nav-dropdown.mobile-open .dropdown-panel{display:grid!important}.dropdown-panel a{min-height:54px;padding:6px 8px!important;border-radius:12px}.dropdown-panel img{width:38px;height:38px;border-radius:11px}

  .mobile-dock{display:grid!important;grid-template-columns:repeat(5,1fr);position:fixed;z-index:71;left:10px;right:10px;bottom:var(--app-safe-bottom);width:auto;max-width:620px;height:var(--app-dock-height);margin:auto;padding:7px 8px;border:1px solid rgba(255,255,255,.95);border-radius:25px;background:rgba(255,255,255,.94);box-shadow:0 15px 45px rgba(24,43,82,.2);backdrop-filter:blur(22px) saturate(1.3)}
  .mobile-dock a,.mobile-dock button{min-width:0;min-height:58px;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#7d899b;font:600 8px 'Prompt',sans-serif;cursor:pointer}
  .mobile-dock a i{font-size:17px}.mobile-dock a.active{color:#155eef}.mobile-dock a.active:after{content:"";width:16px;height:3px;border-radius:999px;background:#155eef}
  .mobile-dock .dock-primary{align-self:end;width:62px;height:62px;min-height:62px;margin:0 auto 13px;border-radius:21px;background:linear-gradient(145deg,#1766ef,#7853ea);color:#fff;box-shadow:0 13px 28px rgba(64,81,222,.35);transform:translateY(-6px)}
  .dock-primary i{font-size:19px}.dock-primary span{font-size:8px;font-weight:700}

  .site-footer{padding-bottom:calc(110px + var(--app-safe-bottom))}
  .toast-stack{left:12px!important;right:12px!important;bottom:calc(var(--app-dock-height) + var(--app-safe-bottom) + 16px)!important}.toast-item{justify-content:center;border-radius:16px!important}

  .fg2-hero,.venue-hero{padding-top:94px!important}
  .fg2-experience-console,.venue-card,.food-card,.room-card,.pr-card,.panel{border-color:rgba(105,126,165,.13)!important;box-shadow:0 14px 40px rgba(35,57,99,.09)!important}
  .fg2-button,.venue-actions>*{min-height:50px}.fg2-quick-actions>a{min-height:75px}
  .section,.menu-section,.room-section,.pr-section{padding-left:16px!important;padding-right:16px!important}
  .section-heading{gap:12px}.section-heading h2{font-size:clamp(28px,7vw,38px)!important}.kicker{letter-spacing:.12em}
  .menu-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x mandatory;padding:3px 2px 8px;scrollbar-width:none}.menu-tabs button{flex:0 0 auto;min-height:42px;scroll-snap-align:start}
  .food-grid,.room-grid{scroll-snap-type:x mandatory}.food-card,.room-card{scroll-snap-align:start}

  dialog.booking-modal,dialog.admin-modal{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:transparent;overflow:hidden}
  dialog.booking-modal[open],dialog.admin-modal[open]{display:flex;align-items:flex-end;justify-content:center}
  dialog::backdrop{background:rgba(7,15,33,.58);backdrop-filter:blur(4px)}
  .booking-box,.admin-modal-box{position:relative;width:100%!important;max-width:680px;max-height:92dvh;margin:0!important;padding:30px 20px calc(24px + env(safe-area-inset-bottom))!important;border-radius:30px 30px 0 0!important;overflow:auto;background:#fff;box-shadow:0 -24px 70px rgba(9,22,50,.28)}
  .booking-box:before,.admin-modal-box:before{content:"";position:absolute;top:9px;left:50%;width:42px;height:5px;border-radius:999px;background:#dbe2ec;transform:translateX(-50%)}
  .modal-close{top:20px!important;right:17px!important;width:42px!important;height:42px!important;border-radius:14px!important}
  .form-grid{gap:13px!important}.form-grid label>span{font-size:11px}.form-grid input,.form-grid select,.form-grid textarea{min-height:50px;border-radius:14px!important}

  .dashboard-topbar{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.91);backdrop-filter:blur(20px);border-bottom:1px solid rgba(213,222,235,.75)}
  .dashboard-content{padding-bottom:100px!important}.dashboard-sidebar{width:min(88vw,340px);border-radius:0 28px 28px 0;overflow:hidden}.dash-nav a{min-height:48px;border-radius:13px}.sidebar-user{padding-bottom:calc(14px + env(safe-area-inset-bottom))}
  .module-toolbar select,.filter-bar select{min-height:46px}.module-actions button,.primary-dash-button,.logout-button,.view-site{min-height:44px}
  .branch-table,.permission-table,.log-table{overflow-x:auto}.table-row,.permission-row,.log-row{min-width:720px}
}

@media (min-width:601px) and (max-width:1100px){
  body.friendly-body{padding-bottom:calc(var(--app-dock-height) + 18px)}
  .nav-shell{height:66px}.mobile-dock{bottom:12px}
  .fg2-hero{padding-left:28px!important;padding-right:28px!important}.fg2-hero-copy{max-width:680px}
  .fg2-venue-bento{grid-template-columns:repeat(2,minmax(0,1fr))!important}.fg2-venue-tile{grid-column:auto!important;min-height:320px!important}.fg2-venue-tile:last-child{grid-column:1/-1!important}
  .fg2-care,.fg2-venues{padding-left:28px!important;padding-right:28px!important}
  .venue-hero{padding-left:34px!important;padding-right:34px!important}.venue-hero-logo img{width:min(40vw,300px)!important}
  .food-grid,.room-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.pr-section .pr-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .auth-page{min-height:100dvh}.auth-visual{min-height:390px!important;padding-left:48px!important}.auth-form{max-width:620px;margin-left:auto!important;margin-right:auto!important}
  .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.module-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media (max-width:600px){
  .mobile-app-label{display:none}.nav-shell{border-radius:19px}
  .fg2-hero{padding-left:14px!important;padding-right:14px!important}.fg2-welcome-bar{padding:0 3px}.fg2-hero-copy h1{font-size:clamp(38px,11vw,46px)!important;line-height:1.08}.fg2-hero-copy>p{font-size:13px!important}
  .fg2-hero-actions{display:grid!important;grid-template-columns:1fr 52px}.fg2-button-primary{width:100%}.fg2-trust-row{align-items:flex-start}.fg2-feature-visual{min-height:390px!important}
  .fg2-venues,.fg2-care{padding-left:14px!important;padding-right:14px!important}.fg2-section-head,.fg2-care-head{align-items:center!important}.fg2-section-head>p{display:none}.fg2-section-icon{width:44px!important;height:44px!important;border-radius:14px!important}.fg2-section-head h2,.fg2-care-head h2{font-size:27px!important}
  .fg2-venue-tile{border-radius:24px!important}.fg2-tonight-copy,.fg2-app{padding-left:18px!important;padding-right:18px!important}
  .venue-hero{padding-left:20px!important;padding-right:20px!important;border-radius:0 0 34px 34px}.venue-hero h1{font-size:clamp(36px,10vw,45px)!important}.venue-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:9px!important}.venue-actions>*{padding:0 10px!important;font-size:11px!important}.venue-info-row span{width:100%;min-height:44px;padding:10px 12px;border-radius:13px;background:rgba(255,255,255,.58)}
  .atmosphere-main,.ambient-art{min-height:360px!important;border-radius:24px!important}.atmosphere-side{gap:10px}.atmosphere-side>div{border-radius:19px!important}
  .food-grid,.room-grid{display:grid!important;grid-auto-flow:column;grid-auto-columns:86vw;grid-template-columns:none!important;overflow-x:auto;padding:3px 2px 18px;margin-right:-16px;scrollbar-width:none}.food-card,.room-card{min-width:0}
  .pr-section .pr-grid{gap:10px!important}.pr-card{border-radius:18px!important}.pr-card>div:last-child strong{font-size:13px}.pr-card>div:last-child span{font-size:9px}
  .pr-pagination{position:sticky;bottom:calc(var(--app-dock-height) + var(--app-safe-bottom) + 8px);z-index:5;width:max-content;max-width:100%;margin:20px auto 0;padding:6px;border:1px solid #e2e8f1;border-radius:18px;background:rgba(255,255,255,.93);box-shadow:0 12px 32px rgba(26,46,86,.16);backdrop-filter:blur(16px)}
  .pr-pagination button{min-height:42px;border-radius:13px!important}
  .auth-visual{min-height:300px!important;padding:28px 22px 78px!important}.auth-message{margin-top:30px!important}.auth-message h1{font-size:34px!important}.auth-form-side{padding:0 12px 28px!important}.auth-form{margin-top:-54px!important;padding:28px 20px!important;border-radius:28px!important;box-shadow:0 20px 55px rgba(21,38,76,.18)}.auth-form-logo{display:none}.input-wrap{min-height:54px;border-radius:15px!important}.login-button{min-height:54px;border-radius:16px!important}
  .input-wrap input{min-height:44px}.remember input{width:20px!important;height:20px!important;accent-color:#155eef}
  .dashboard-content{padding-left:10px!important;padding-right:10px!important}.stat-grid{grid-template-columns:1fr 1fr!important}.stat-grid article{min-width:0}.stat-grid article small{display:none}.module-header{gap:10px}.module-header>div{min-width:0}.module-header h1{font-size:19px!important}.module-header p{font-size:9px}.module-card-grid{grid-template-columns:1fr!important}.module-item{border-radius:18px!important}
  .poster-detail-dialog[open]{display:flex;align-items:flex-end;width:100vw!important;max-height:none!important;height:100dvh;margin:0;border-radius:0!important;background:transparent!important}.poster-detail-dialog .poster-detail-shell{display:block!important;width:100%;max-height:92dvh!important;margin-top:auto;border-radius:28px 28px 0 0;background:#fff;overflow:auto}.poster-detail-image{min-height:auto!important;aspect-ratio:16/9}.poster-detail-copy{padding:22px 18px calc(24px + env(safe-area-inset-bottom))!important}
}

@media (prefers-reduced-motion:reduce){.nav-links,.mobile-nav-scrim,.mobile-dock .dock-primary{transition:none!important}}
