        html, body {
            height: 100%;
            margin: 0;
            padding: 0;
        }
        
        #map { 
            width: 100%; 
            height: 100%;
            position: fixed;
            inset: 0;
            z-index: 0;
        }
        :root {
            --sheet-height-full: 50vh; /* 화면 높이의 절반 */
            --main-bg-color: #f0f4f8;
            --primary-color: #3b82f6;
        }
        
        body {
            font-family: 'Arial', sans-serif;
            background-color: var(--main-bg-color);
            margin: 0;
            padding: 0;
            /* 터치 액션: 가로 스크롤만 허용 (세로 스크롤은 JS가 처리) */
            touch-action: pan-x; 
        }

        /* 0. Search Bar (검색바) */
        #search-container {
            padding: 15px 20px 10px 20px;
            background: transparent; 
            transform: translateX(0%);
            width: 95%;
            z-index: 10;
        }

        #search-input-wrapper {
            display: flex;
            align-items: center;
            background-color: white;
            border-radius: 12px;
            padding: 10px 15px;
        }

        #search-icon {
            color: #6b7280; 
            margin-right: 10px;
            font-size: 1.1em;
        }

        #search-input {
            flex-grow: 1;
            border: none;
            background: transparent;
            font-size: 16px;
            outline: none;
            color: #374151;
        }
        #search-input::placeholder {
            color: #9ca3af; 
        }

        /* 1. Top Category Bar (상단 메뉴바.html) */
        #category-scroller {
            position: sticky; /* 상단 고정 */
            top: 0; /* 검색바가 스크롤된 후 바로 아래 붙음 */
            z-index: 50; /* Bottom Sheet보다 낮게 */
            display: flex; 
            overflow-x: auto; 
            padding: 10px 10px 10px 10px;
            background: transparent; /* 투명 */
            max-width: 100%; 
            
            -ms-overflow-style: none;
            scrollbar-width: none;
        }
        #category-scroller::-webkit-scrollbar {
            display: none;
        }

        .restaurant-button {
            flex-shrink: 0; /* 버튼이 줄어들지 않도록 */
            display: inline-flex;
            align-items: center;
            padding: 8px 15px;
            border: 1px solid #ccc;
            border-radius: 20px;
            background-color: white;
            cursor: pointer;
            font-size: 16px;
            color: #333;
            outline: none;
            transition: background-color 0.2s;
            margin-right: 8px;
        }

        .burger-icon {
            font-size: 1.1em;
            margin-right: 5px;
        }

        .button-text {
            font-weight: bold;
        }

        .restaurant-button:hover {
            background-color: #f0f0f0;
        }

        /* 2. Main Content (더미 콘텐츠) */
        #main-content {
            padding: 20px;
            text-align: center;
        }
        
        .placeholder-box {
            background-color: white;
            border: 1px solid #ddd;
            padding: 20px;
            margin-bottom: 20px;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
            min-height: 200px;
        }

        /* 4. Bottom Sheet */
        .sheet-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 999;
            visibility: hidden;
            opacity: 0;
            transition: opacity 0.3s, visibility 0.3s;
        }

        .bottom-sheet {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            max-height: var(--sheet-height-full); /* 50vh */
            background-color: white;
            border-top-left-radius: 20px;
            border-top-right-radius: 20px;
            box-shadow: 0 -8px 16px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            
            transform: translateY(100%); 
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
        }

        .bottom-sheet.is-dragging {
             transition: none;
        }

        .sheet-overlay.active {
            visibility: visible;
            opacity: 1;
        }

        .sheet-overlay.active .bottom-sheet {
            transform: translateY(0); 
        }

        .sheet-content {
            padding: 20px;
            /* 50vh에 맞추기 위해 높이 100% 사용 */
            height: 100%; 
            overflow-y: auto;
        }
        
        #sheet-drag-handle {
            padding-top: 15px; 
            cursor: grab; 
            user-select: none;
            touch-action: none; 
            position: relative;
            z-index: 10;
        }

        .sheet-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 0 10px 0;
            border-bottom: 1px solid #eee;
            margin-bottom: 15px;
        }

        .handlebar {
            width: 50px;
            height: 5px;
            background-color: #ddd;
            border-radius: 5px;
            margin: 0 auto;
            position: absolute;
            top: 10px;
            left: 50%;
            transform: translateX(-50%);
        }

        .close-button {
            background: none;
            border: none;
            font-size: 1.5em;
            cursor: pointer;
            color: #666;
        }