/*
Theme Name: Sushi Lover
Theme URI: http://example.com/sushi-lover
Author: Your Name
Description: Premium dark-themed Japanese dining website.
Version: 7.7 (Order Modal Mobile Size Fix)
*/

/* --- 1. VARIABLES & RESET --- */
:root {
    /* PRIMARY THEME: Midnight Blue & Muted Gold */
    --bg-dark: #020C17; 
    --bg-darker: #01060D; 
    --bg-light: #F5F5F0; 
    
    /* ACCENT: Muted Gold/Bronze */
    --accent: #C28B47; 
    --accent-hover: #D49D56;
    --secondary-accent: #405948; 

    --text-dark: #1e293b;
    --text-light: #f1f5f9;
    --text-gray: #94A3B8;
    
    /* FONTS */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    --transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-sans);
    overflow-x: hidden;
    overflow-anchor: none;
}

/* Subtle Wave Pattern Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at 50% 100%, rgba(255,255,255,0.03) 10%, transparent 10.5%),
                      radial-gradient(circle at 50% 100%, rgba(255,255,255,0.03) 10%, transparent 10.5%);
    background-size: 40px 20px;
    background-position: 0 0, 20px 10px;
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; }
p { font-weight: 300; line-height: 1.8; opacity: 0.9; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* --- UTILITIES --- */
.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.text-accent { color: var(--accent); }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* Primary Button (Gold) */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 3px;
    position: relative;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
    text-align: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: var(--accent);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before { width: 100%; }
.btn:hover { color: white; }

/* Secondary Button */
.btn-secondary {
    border: 1px solid #ffffff;
    color: #ffffff;
    margin-top: 15px; 
}
.btn-secondary::before { background: #ffffff; }
.btn-secondary:hover { color: var(--bg-dark); }

/* Japanese Character Decoration */
.jp-deco {
    writing-mode: vertical-rl;
    font-family: var(--font-serif);
    position: absolute;
    opacity: 0.1;
    font-size: 6rem;
    z-index: 0;
    pointer-events: none;
    font-weight: 700;
}

/* =========================================
   1. 基础布局 (DESKTOP DEFAULT)
   ========================================= */
.premium-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 10px 30px;
    background: rgba(2, 12, 23, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap; /* 电脑端不换行 */
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Logo */
.header-logo a {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

/* 公告栏 (电脑端样式) */
.announcement-bar {
    flex: 1; /* 占满中间空间 */
    min-width: 0; /* 防止撑破 */
    max-width: 600px;
    margin: 0 20px;
    height: 34px;
    background: rgba(194, 139, 71, 0.15);
    border: 1px solid rgba(194, 139, 71, 0.3);
    border-radius: 50px;
    display: flex; align-items: center; overflow: hidden;
}

/* 滚动动画 */
.marquee-wrapper { width: 100%; overflow: hidden; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.marquee-track { display: flex; white-space: nowrap; animation: marqueeScroll 20s linear infinite; }
.marquee-item { margin-right: 40px; color: var(--accent); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* 右侧菜单组 */
.header-actions-group { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.nav-right { display: flex; gap: 20px; }
.nav-right a { color: rgba(255,255,255,0.9); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; text-decoration: none; }
.btn-header-cta { background: transparent; border: 1px solid var(--accent); color: var(--accent); padding: 8px 20px; text-transform: uppercase; cursor: pointer; }

/* 辅助显示类 */
.mobile-only { display: none !important; }
.desktop-only { display: flex !important; }

/* =========================================
   2. 手机端适配 (关键部分)
   ========================================= */
@media (max-width: 1100px) {
    /* 1. 允许容器换行 */
    .header-container {
        flex-wrap: wrap; 
        gap: 10px;
    }

    /* 2. 隐藏电脑端菜单，显示汉堡按钮 */
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
    
    /* 3. 汉堡按钮样式 */
    .menu-toggle { font-size: 1.5rem; color: white; padding: 10px; cursor: pointer; }

    /* 4. 【核心】公告栏强制排到最后一行，并占满宽度 */
    .announcement-bar {
        order: 99;       /* 强制排最后 */
        width: 100%;     /* 占满全宽 */
        max-width: 100%; /* 解除电脑端限制 */
        flex: 0 0 100%;  /* 强制不弹性收缩 */
        margin: 5px 0 0 0; /* 去掉左右margin */
        background: rgba(0,0,0,0.4);
    }
}

/* =========================================
   3. 手机全屏菜单 (新版)
   ========================================= */
#overlay-mobile-menu {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(2, 6, 23, 0.99); z-index: 9999;
    
    /* 默认彻底隐藏 */
    display: none; 
    
    flex-direction: column; align-items: center; justify-content: center;
}

/* 激活类 (由 JS 添加) */
#overlay-mobile-menu.open {
    display: flex !important;
    animation: menuFadeIn 0.2s ease-out;
}

@keyframes menuFadeIn { from { opacity: 0; } to { opacity: 1; } }

.mobile-links { display: flex; flex-direction: column; gap: 30px; text-align: center; }
.mobile-link-item { font-family: var(--font-serif); font-size: 2rem; color: white; text-decoration: none; }
.close-menu { position: absolute; top: 20px; right: 20px; font-size: 3rem; color: #64748b; background: transparent; border: none; cursor: pointer; }

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    height: 100svh;
    min-height: 600px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    position: relative;
    padding-top: 80px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 6rem;
    position: relative;
    z-index: 2;
    align-items: flex-start; 
}

.hero-text h1 {
    font-size: 5.5rem;
    line-height: 0.95;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUps 1s forwards 0.5s;
}

.hero-text .subtitle {
    font-size: 1.1rem;
    letter-spacing: 4px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUps 1s forwards 0.2s;
}

.hero-btns-container { display: flex; flex-direction: column; gap: 15px; margin-top: 30px; }

.hero-image { position: relative; height: 100%; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); animation: slowZoom 20s infinite alternate; }

.scroll-line {
    position: absolute; bottom: 0; left: 6rem; width: 1px; height: 100px;
    background: rgba(255,255,255,0.2); overflow: hidden;
}
.scroll-line::after {
    content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
    background: var(--accent); animation: scrollDown 2s infinite;
}

/* This targets the specific classes used in your PHP code */
/* --- PHILOSOPHY / EXPERIENCE SECTION (CROSSFADE TEXT) --- */
.philosophy-section {
    padding: 6rem 2rem;
    background-color: var(--bg-dark);
}

/* Header */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 3rem; color: white; margin-bottom: 1rem; }
.section-header .divider { width: 50px; height: 2px; background: var(--accent); margin: 0 auto; }

/* FLEX CONTAINER */
.sushi-bento-grid {
    display: flex;
    gap: 20px;
    height: 500px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* CARD STYLING */
.sushi-bento-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    
    /* Background */
    background-size: cover; 
    background-position: center;
    background-color: #0F172A; 
    
    cursor: pointer;
    
    /* FLEX ANIMATION */
    flex: 1; 
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s;
    border: 1px solid #000;
}

/* HOVER STATE: Expand */
.sushi-bento-card:hover {
    flex: 3; 
    border-color: var(--accent);
}

/* ----------------------------------------------
   1. INACTIVE LABEL (Visible by Default)
---------------------------------------------- */
.bento-label {
    position: absolute;
    /* Center Vertically and Horizontally */
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    
    width: 100%;
    padding: 20px; /* Add some breathing room */
    text-align: center;
    z-index: 2;
    
    /* THE IMPROVEMENT: Subtle radial gradient backdrop */
    /* Creates a soft dark spot behind the text for readability */
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 70%);
    
    opacity: 1;
    transition: all 0.4s ease;
}

.bento-label h3 {
    color: #ffffff;
    /* Slightly larger and bolder for impact */
    font-size: 2rem; 
    font-weight: 700;
    font-family: var(--font-serif);
    text-transform: uppercase;
    /* Wider letter spacing for a premium feel */
    letter-spacing: 3px; 
    /* Tight line height for vertical stacking */
    line-height: 1.1; 
    
    /* THE IMPROVEMENT: Multi-layered text shadow for depth */
    text-shadow: 
        0 2px 4px rgba(0,0,0,0.8),   /* Close, hard shadow */
        0 8px 16px rgba(0,0,0,0.6);  /* Wider, soft shadow */
    
    margin: 0;
}

/* HIDE Inactive Label on Hover */
.sushi-bento-card:hover .bento-label {
    opacity: 0;
    /* Push it up slightly and scale down when fading out */
    transform: translate(-50%, -70%) scale(0.9); 
}


/* ----------------------------------------------
   2. ACTIVE CONTENT (Hidden by Default)
---------------------------------------------- */

/* Overlay */
.bento-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
    opacity: 0; 
    transition: opacity 0.5s ease;
}

.sushi-bento-card:hover .bento-overlay { opacity: 1; }

/* Text Wrapper */
.bento-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%; padding: 30px;
    z-index: 3;
}

/* Title Animation */
.bento-content h3 {
    color: white;
    font-size: 2rem;
    font-family: var(--font-serif);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

/* Description Animation */
.bento-content p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    font-family: var(--font-sans);
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

/* REVEAL Active Content on Hover */
.sushi-bento-card:hover .bento-content h3 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.sushi-bento-card:hover .bento-content p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1024px) {
    /* Tablet: 2x2 Grid */
    .sushi-bento-grid {
        display: grid; 
        flex-direction: initial; 
        height: auto; 
        grid-template-columns: 1fr 1fr;
        gap: 20px; 
    }
    
    /* Make the first card span 2 columns on tablet */
    .sushi-bento-card:first-child {
        grid-column: span 2; 
        aspect-ratio: 2/1;
        height: auto; 
    }
    
    .sushi-bento-card {
        aspect-ratio: 1/1;
        min-height: 300px;
        flex: none !important; 
        width: 100%;
    }
    
    /* Preserve the subtle zoom animation on touch/hover */
    .sushi-bento-card:hover { 
        transform: scale(1.02); 
        flex: none; 
    }
    
    /* 1. FORCE HIDE INACTIVE LABEL (User Request) */
    .bento-label { 
        display: none !important; 
    }
    
    /* 2. ALWAYS SHOW CONTENT OVERLAY */
    .bento-overlay { opacity: 1; }

    /* 3. FIT TEXT TO TABLET SCREEN */
    .bento-content {
        padding: 1.5rem; /* Slightly reduced padding */
    }

    .bento-content h3 { 
        opacity: 1; 
        transform: translateY(0); 
        transition: none; 
        /* Typography Adjustment */
        font-size: 1.5rem; /* Smaller than desktop (2rem) */
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .bento-content p { 
        opacity: 1; 
        transform: translateY(0); 
        transition: none; 
        /* Typography Adjustment */
        font-size: 0.95rem; /* Smaller than desktop */
        line-height: 1.5;
    }
}

@media (max-width: 768px) {
    /* Mobile: Stack vertically */
    .sushi-bento-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .sushi-bento-card:first-child {
        grid-column: span 1;
        aspect-ratio: 16/9;
    }
    
    .sushi-bento-card {
        width: 100%;
        aspect-ratio: 16/9;
        min-height: 250px;
    }

    /* 4. FIT TEXT TO MOBILE SCREEN (User Request) */
    .bento-content {
        padding: 1.2rem; /* Tighter padding for mobile */
    }

    .bento-content h3 {
        font-size: 1.2rem; /* Significantly smaller to fit phone screens */
    }

    .bento-content p {
        font-size: 0.85rem; /* Readable but compact */
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Optional: Limits text to 3 lines if it's too long */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* --- MENU SECTION --- */
.menu-section { 
    padding: 8rem 0; 
    background: var(--bg-dark); 
    position: relative; 
    z-index: 5; /* 提升层级，防止被背景大字遮挡 */
}

/* 确保背景装饰字不会拦截点击 */
.menu-section .jp-deco {
    pointer-events: none !important;
    z-index: 0;
}

/* LOCATION TABS */
.location-tabs {
    display: flex; 
    justify-content: center; 
    gap: 3rem; 
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto;
    padding-bottom: 5px; 
    position: relative;
    z-index: 50; /* 强制置顶，确保在 iPhone 上可点击 */
}

.loc-tab-btn {
    background: none; 
    border: none; 
    color: rgba(255,255,255,0.4);
    font-family: var(--font-sans); 
    font-weight: 500;
    font-size: 1.1rem; 
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    padding-bottom: 15px; 
    transition: var(--transition); 
    position: relative;
    white-space: nowrap;
    touch-action: manipulation; /* 优化触摸响应 */
}

.loc-tab-btn::after { 
    content: ''; 
    position: absolute; 
    bottom: -1px; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background: var(--accent); 
    transition: var(--transition); 
}

.loc-tab-btn:hover { color: white; }
.loc-tab-btn.active { color: white; }
.loc-tab-btn.active::after { width: 100%; }

/* --- 手机端 TABS 强制优化 (变身为大按钮) --- */
@media (max-width: 768px) {
    .location-tabs {
        flex-direction: column; /* 垂直排列 */
        gap: 15px; 
        align-items: center;
        border-bottom: none; /* 移除底部线条 */
        padding-bottom: 0;
    }

    .loc-tab-btn {
        width: 100%;
        max-width: 300px; /* 限制按钮最大宽度 */
        text-align: center;
        padding: 12px 0; /* 增加点击高度 */
        border: 1px solid rgba(255,255,255,0.1); /* 增加边框 */
        border-radius: 4px;
        margin: 0;
    }
    
    /* 手机上移除下划线动画 */
    .loc-tab-btn::after { display: none; }

    /* 手机上激活状态改为背景色 */
    .loc-tab-btn.active {
        background: var(--accent);
        color: white;
        font-weight: 700;
    }
}

.menu-actions-container { display: none; max-width: 900px; margin: 0 auto; animation: fadeInUps 0.6s ease forwards; }
.menu-actions-container.active { display: block; }

.menu-actions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.menu-action-btn {
    border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.02);
    padding: 3rem 2rem; text-align: left; display: flex; align-items: center;
    justify-content: space-between; cursor: pointer; transition: var(--transition);
    text-decoration: none; color: inherit;
    position: relative;
    z-index: 10; /* 确保内容区也可点击 */
}
.menu-action-btn:hover { border-color: var(--accent); transform: translateY(-5px); }
.action-text h4 { font-size: 1.8rem; color: white; margin-bottom: 5px; font-family: var(--font-serif); }
.action-text p { font-size: 0.9rem; color: #94a3b8; letter-spacing: 1px; text-transform: uppercase; }
.action-icon { font-size: 2rem; color: var(--accent); opacity: 0.7; transition: var(--transition); }
.menu-action-btn:hover .action-icon { opacity: 1; transform: translateX(5px); }

/* 手机端菜单内容网格单列显示 */
@media (max-width: 768px) {
    .menu-actions-grid { grid-template-columns: 1fr; }
}
/* --- LOCATIONS SECTION --- */
.locations-section { padding: 8rem 0; background: var(--bg-darker); position: relative; }
.location-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; max-width: 1200px; margin: 0 auto; }

.location-card {
    position: relative; height: 450px; overflow: hidden; cursor: pointer;
    border: 1px solid rgba(255,255,255,0.05); transition: var(--transition);
}
.location-card:hover { border-color: var(--accent); transform: translateY(-5px); }

.location-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); filter: brightness(0.7); }
.location-card:hover .location-img { transform: scale(1.1); filter: brightness(0.9); }

.location-content {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 3rem;
    background: linear-gradient(to top, #01060D 10%, transparent);
    display: flex; flex-direction: column; justify-content: flex-end; z-index: 2;
}
.location-city { font-size: 2.5rem; font-family: var(--font-serif); color: white; margin-bottom: 0.5rem; }
.location-details { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 1.5rem; transform: translateY(20px); opacity: 0; transition: var(--transition); }
.location-card:hover .location-details { transform: translateY(0); opacity: 1; }
.location-link { color: var(--accent); text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; font-weight: 500; display: inline-flex; align-items: center; gap: 10px; }
.loc-badge { position: absolute; top: 20px; right: 20px; background: rgba(0,0,0,0.5); backdrop-filter: blur(5px); padding: 5px 15px; border: 1px solid rgba(255,255,255,0.2); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; z-index: 2; }

/* --- MODAL STYLES (Global) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(2, 6, 23, 0.85); backdrop-filter: blur(10px); z-index: 9999;
    display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }

.modal-content {
    background: var(--bg-dark); 
    border: 1px solid rgba(255,255,255,0.1); 
    position: relative;
    display: flex; 
    flex-direction: column; 
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8); 
    transform: scale(0.95); 
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content { transform: scale(1); }

.close-modal {
    position: absolute; top: 20px; right: 20px; background: none; border: none;
    color: white; font-size: 2rem; cursor: pointer; z-index: 20; transition: var(--transition);
}
.close-modal:hover { color: var(--accent); transform: rotate(90deg); }

/* =========================================
   LOCATION DETAIL MODAL (FIXED RESPONSIVE)
   ========================================= */

/* 1. DESKTOP DEFAULT (Side-by-Side) */
.modal-content.location-detail {
    width: 95%;
    max-width: 1200px;
    height: 85vh; /* 85% of Viewport Height */
    max-height: 800px;
    display: flex;
    flex-direction: column; /* Main container */
    background: var(--bg-dark);
    border: 1px solid rgba(255,255,255,0.1);
}

.modal-body {
    display: flex; 
    flex-direction: row; /* Desktop: Row */
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent double scrollbars */
}

/* Left: Info Section */
.modal-info {
    flex: 0 0 45%; /* Fixed 45% Width */
    width: 45%;
    display: flex;
    flex-direction: column;
    padding: 3rem;
    overflow-y: auto; /* Internal scrolling */
    background: var(--bg-dark);
    position: relative;
    z-index: 2;
}

/* Right: Map Section */
.modal-map {
    flex: 1; /* Takes remaining space */
    height: 100%;
    background: #000;
    position: relative;
    z-index: 1;
}

.modal-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Typography & Elements */
.modal-info h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.modal-info .modal-tagline {
    color: var(--accent);
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: block;
}

.modal-desc {
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

.detail-row {
    display: flex; align-items: flex-start; gap: 15px;
    padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 1.5rem;
}
.detail-row:last-of-type { border-bottom: none; margin-bottom: 0; }
.detail-row i { color: var(--accent); font-size: 1.1rem; margin-top: 4px; flex-shrink: 0; }
.detail-row h5 { color: #64748b; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.detail-row p, .detail-row a { color: #f1f5f9; font-size: 0.95rem; line-height: 1.4; text-decoration: none; }
.detail-row a:hover { color: var(--accent); }

/* Social Buttons */
.modal-social-btns {
    display: flex; gap: 15px; margin-top: auto; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1);
}
.social-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2);
    color: white; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; text-decoration: none;
}
.social-btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* --- RESPONSIVE FIX (Tablet/Mobile) --- */
/* Switches to Vertical Stack below 1150px */
@media (max-width: 1150px) {

    .modal-content.location-detail {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        border-radius: 0;
        border: none;
    }

    .modal-body {
        display: flex;
        flex-direction: column; /* Vertical Stack */
        width: 100%;
        height: 100%;
        overflow: hidden; /* Main body doesn't scroll, children do */
    }

    /* 1. MAP: Fixed Height, Top */
    .modal-map {
        order: 1; 
        width: 100%;
        
        /* FORCE FIXED HEIGHT - Prevents squashing/overlapping */
        height: 250px; 
        min-height: 250px; 
        max-height: 250px;
        flex: 0 0 250px; /* Rigid sizing */
    }

    /* 2. INFO: Fills remaining space, Scrolls internally */
    .modal-info {
        order: 2; 
        width: 100%;
        
        flex: 1 1 auto; /* Grow to fill space */
        
        overflow-y: auto; /* SCROLL HERE */
        -webkit-overflow-scrolling: touch;
        
        padding: 2rem 1.5rem 4rem 1.5rem; /* Padding for mobile readability */
    }

    /* Typography Adjustments */
    .modal-info h2 { font-size: 2.2rem; }
    .modal-social-btns { flex-wrap: wrap; }
    .social-btn { min-width: 45%; }
}

/* Tiny Screens */
@media (max-width: 400px) {
    .modal-map { height: 200px; min-height: 200px; flex: 0 0 200px; }
    .modal-info h2 { font-size: 1.8rem; }
}

/* DARK MAP FILTER */
.dark-map-filter,
.dark-map-filter iframe {
    filter: invert(90%) hue-rotate(180deg) contrast(90%) grayscale(20%) !important;
    -webkit-filter: invert(90%) hue-rotate(180deg) contrast(90%) grayscale(20%) !important;
}

/* --- ORDER ONLINE MODAL (GRID LAYOUT FIXED) --- */
.modal-content.order-type { width: 95%; max-width: 1000px; height: 85vh; max-height: 800px; border: 1px solid rgba(194, 139, 71, 0.2); background: #01060D; }

.order-modal-header { padding: 3rem 2rem 2rem; text-align: center; background: linear-gradient(to bottom, #020C17, #01060D); border-bottom: 1px solid rgba(255,255,255,0.05); flex-shrink: 0; }
.order-modal-header h2 { font-size: 2.5rem; color: white; margin-bottom: 10px; letter-spacing: 1px; font-family: var(--font-serif); }
.order-modal-header p { color: #C28B47; font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; }

.order-search-container { padding: 1.5rem 3rem; background: #01060D; display: flex; gap: 15px; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); position: sticky; top: 0; z-index: 10; flex-shrink: 0; }
.zip-search-box { width: 100%; position: relative; flex-grow: 1; }
.zip-input { width: 100%; padding: 15px 20px; padding-right: 45px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); color: white; font-family: var(--font-sans); font-size: 1rem; border-radius: 0; transition: var(--transition); }
.zip-input:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,0.05); }
.search-icon { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--accent); pointer-events: none; }

.location-btn { background: transparent; color: var(--accent); border: 1px solid var(--accent); padding: 15px 25px; font-size: 0.85rem; cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; white-space: nowrap; }
.location-btn:hover { background: var(--accent); color: white; }

.order-list { padding: 3rem; overflow-y: auto; background: #01060D; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; flex-grow: 1; }

/* Order Grid Item */
.order-item { position: relative; background: #020C17; border: 1px solid rgba(255,255,255,0.05); height: 250px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; transition: var(--transition); padding: 2rem; text-decoration: none; }
.order-item.hidden { display: none; }
.order-item:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

/* Order Background Image */
.order-item-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; transition: transform 0.8s ease; z-index: 0; }
.order-item:hover .order-item-bg { transform: scale(1.1); opacity: 0.2; }
.order-gradient { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.95) 10%, rgba(0,0,0,0.2)); z-index: 1; }

.order-info { position: relative; z-index: 2; width: 100%; }
.order-info h4 { font-size: 2rem; color: white; margin-bottom: 5px; font-family: var(--font-serif); }
.order-meta { display: flex; flex-direction: column; gap: 5px; margin-bottom: 1.5rem; }
.order-meta p, .order-meta span { color: #a0aec0; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.order-meta i { color: var(--accent); font-size: 0.8rem; }
.distance-tag { font-size: 0.75rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; display: block; height: 15px; }

/* --- UPDATED ORDER BUTTONS (Pickup & Delivery) --- */

.order-actions {
    display: flex;
    gap: 10px;
    margin-top: auto; /* Pushes buttons to bottom */
    position: relative;
    z-index: 2;
    width: 100%;
}

.order-btn {
    flex: 1; /* Buttons take equal width */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Pickup Button Style */
.btn-pickup {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    backdrop-filter: blur(4px);
}

.btn-pickup:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(194, 139, 71, 0.3);
}

/* Delivery Button Style */
.btn-delivery {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #cbd5e1;
}

.btn-delivery:hover {
    border-color: white;
    color: white;
    background: rgba(255,255,255,0.05);
}

/* Card Hover Effect on Buttons */
/* When card is hovered, make Pickup button pop slightly even if not directly hovered */
.order-item:hover .btn-pickup {
    border-color: var(--accent);
    color: var(--accent);
}
/* But if hovering the button itself, fill it */
.order-item .btn-pickup:hover {
    background: var(--accent);
    color: white;
}

/* Responsive: Stack buttons on very small screens if needed */
@media (max-width: 480px) {
    .order-actions {
        flex-direction: column;
    }
}

.order-item:hover { background: var(--accent); border-color: var(--accent); color: white; }

/* --- UPDATE: PHONE & DISTANCE ROW --- */

.meta-phone-row {
    display: flex;
    justify-content: space-between; /* Pushes Phone left, Distance right */
    align-items: center;
    width: 100%;
    color: #a0aec0;
    font-size: 0.9rem;
}

.meta-phone-row span:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
}

.meta-phone-row i {
    color: var(--accent);
    font-size: 0.8rem;
}

/* Updated Distance Tag */
.distance-tag {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0; /* Reset margins */
    white-space: nowrap;
    
    /* Optional: Add a background or border to make it distinct */
    /* background: rgba(194, 139, 71, 0.1); */
    /* padding: 2px 6px; */
    /* border-radius: 4px; */
}

/* --- PREMIUM FOOTER STYLES --- */
.sushi-footer {
    background-color: #000000; /* Pitch black for contrast */
    border-top: 1px solid rgba(194, 139, 71, 0.2); /* Subtle gold border */
    padding-top: 5rem;
    color: #94A3B8;
    font-size: 0.95rem;
}

/* Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr; /* Asymmetric columns */
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: white;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Brand Column */
.footer-logo {
    color: white;
    font-size: 1.8rem;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-desc {
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 300px;
}

/* Social Icons */
.footer-socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-3px);
}

/* Links Columns */
.footer-col ul {
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #94A3B8;
    transition: 0.3s;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

/* Newsletter Form */
.footer-form {
    position: relative;
    margin-top: 1.5rem;
}

.footer-form input {
    width: 100%;
    padding: 12px 15px;
    padding-right: 50px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    font-family: var(--font-sans);
}

.footer-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.footer-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: var(--accent);
    border: none;
    color: white;
    width: 40px;
    cursor: pointer;
    transition: 0.3s;
}

.footer-form button:hover {
    background: white;
    color: black;
}

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.legal-links a {
    color: #64748b;
    margin-left: 15px;
}

.legal-links a:hover { color: white; }
.legal-links .sep { margin-left: 15px; color: #334155; }

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* 2x2 on tablet */
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .sushi-footer { padding-top: 3rem; }
    
    .footer-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    .footer-desc {
        margin: 0 auto 2rem auto;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .legal-links a { margin: 0 10px; }
}

/* --- ANIMATIONS --- */
@keyframes fadeInUps { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollDown { 0% { top: -100%; } 100% { top: 100%; } }
@keyframes slowZoom { from { transform: scale(1.1); } to { transform: scale(1.2); } }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    /* Philosophy Grid Fix Tablet */
    .philosophy-grid { height: auto; grid-template-columns: 1fr 1fr; }
    .philo-card.wide { grid-column: span 2; aspect-ratio: 2/1; }
    .philo-card.tall { aspect-ratio: 1/1; }
    
    nav { padding: 1.5rem 2rem; flex-wrap: nowrap; }
    .nav-links { display: none; } 
    .menu-toggle { display: block; }
}

@media (max-width: 768px) {
    .hero { grid-template-columns: 1fr; }
    .hero-text { padding: 2rem; align-items: center; text-align: center; height: 60vh; }
    .hero-text h1 { font-size: 3.5rem; }
    .hero-image { height: 40vh; }
    
    /* Philosophy Grid Fix Mobile */
    .philosophy-grid { grid-template-columns: 1fr; height: auto; }
    .philo-card.wide, .philo-card.tall { grid-column: span 1; aspect-ratio: 16/9; min-height: 250px; }
    .philo-card h3 { font-size: 1.4rem; }

    /* Mobile Menu */
    .location-tabs { flex-direction: column; gap: 1rem; align-items: center; background: transparent; border: none; padding-bottom: 2rem; }
    .loc-tab-btn { width: auto; text-align: center; padding: 10px 0; white-space: normal; display: inline-block; margin: 0 auto; color: rgba(255,255,255,0.5); background: transparent; padding-left: 0; }
    .loc-tab-btn::after { display: block; content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: var(--accent); transition: var(--transition); transform: translateX(-50%); }
    .loc-tab-btn:hover::after, .loc-tab-btn.active::after { width: 100%; }
    .loc-tab-btn.active { color: white; background: transparent; }
    
    .location-grid, .menu-actions-grid { grid-template-columns: 1fr; }
    .location-card { height: 350px; }
    .location-details { opacity: 1; transform: translateY(0); }
    
    /* MODAL MOBILE FIX - UPDATED */
    /* The structural logic is now handled in the max-width: 1150px query above */
    /* We only need to adjust specific typography or padding here if needed */
    .modal-info h2 { font-size: 2.5rem; }
    .modal-info { padding: 1.5rem; }
    
    /* Order Modal Mobile Fix - INCREASED SIZE */
    .modal-content.order-type { width: 100%; height: 100%; max-height: 100vh; border: none; }
    .order-search-container { flex-direction: column; padding: 1rem 2rem; }
    .location-btn { width: 100%; }
    
    .order-list { 
        grid-template-columns: 1fr; 
        padding: 1.5rem; /* Less padding so card is wider */
        gap: 2rem; 
    }
    
    .order-item { 
        height: 340px; /* INCREASED from 220px to 340px */
        min-height: 340px;
    }
    
    .order-info h4 { font-size: 1.8rem; } /* Slightly bigger title */
    
    .order-modal-header h2 { font-size: 2rem; }
}

/* --- MOBILE TAB CLICK FIX (修复手机点击问题) --- */

/* 1. 提升菜单 Tabs 的层级，确保在装饰背景文字之上 */
.location-tabs {
    position: relative;
    z-index: 50; /* 强制置顶 */
}

/* 2. 确保按钮本身接受点击事件，并增加触摸反馈区域 */
.loc-tab-btn {
    position: relative;
    z-index: 51;
    pointer-events: auto !important; /* 强制开启点击 */
    cursor: pointer;
}

/* 3. 防止背景装饰文字拦截点击 (再次加强) */
.jp-deco {
    pointer-events: none !important;
    z-index: 0;
}

/* 4. 手机端布局微调，防止按钮重叠或挤压 */
@media (max-width: 768px) {
    .location-tabs {
        display: flex;
        flex-direction: column; /* 手机上垂直排列 */
        gap: 15px; /* 增加间距 */
        align-items: center;
        margin-bottom: 2rem;
        position: relative; /* 确保 z-index 生效 */
    }

    .loc-tab-btn {
        width: 80%; /* 增加宽度，更容易点到 */
        max-width: 300px;
        text-align: center;
        padding: 12px 0; /* 增加点击区域高度 */
        display: block; 
    }
    
    /* 激活状态下给一个明显的背景色，让用户知道点到了 */
    .loc-tab-btn.active {
        border-radius: 4px;
    }
}