:root {
    --sheet-peek: 55px;    /* 바텀시트 접힌 상태 높이 */
    --sheet-expanded: 50vh; /* 바텀시트 펼친 상태 높이 */
}

/* 지도 탭 활성화 시 부모의 padding 및 max-width 무효화 */
#foodmap-tab {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}

/* ── 지도: 화면 전체를 채우는 배경 레이어 ── */
#mapArea {
    position: fixed;
    inset: 0;
    background: #e9ecef;
}

 
#filterBar {
    position: fixed;
    top: 14px;
    left: 0px;
    z-index: 1040;

    display: flex;
    gap: 2px;
    padding: 0;

    overflow: visible;
}

/* 필터 버튼 공통 */
#filterBar .dropdown-toggle {
    border-radius: 20px;
    padding: 8px 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 미선택 버튼 */
#filterBar .dropdown-toggle.btn-outline-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

/* 미선택 버튼 hover */
#filterBar .dropdown-toggle.btn-outline-secondary:hover {
    background: #f8f9fa;
    color: #222;
    border-color: #888;
}

/* 선택된 버튼
   Bootstrap btn-primary 색상 그대로 사용 */
#filterBar .dropdown-toggle.btn-primary {
    border: 1px solid rgba(0, 0, 0, 0.2);
}

/* 펼쳐지는 메뉴 */
#filterBar .dropdown-menu {
    margin-top: 6px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 8px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.16);
    min-width: max-content;
    background: #fff;
}

/* 메뉴 항목 */
#filterBar .dropdown-menu .dropdown-item {
    padding: 9px 16px;
    font-size: 14px;
    /* color: #333; */
}

#filterBar .dropdown-menu .dropdown-item:hover {
    background: #f1f3f5;
    color: #111;
}


 

 
/* 역 이름 앞에 붙는 호선 색 점 — 필터용이 아니라 구분용 표시 */
.line-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    flex-shrink: 0;
}
.line-dot.line-1 { background: #F26722; } /* 1호선 주황 */
.line-dot.line-2 { background: #39A935; } /* 2호선 초록 */
.line-dot.line-3 { background: #A5673F; } /* 3호선 갈색 */
.line-dot.line-4 { background: #00A2B5; } /* 4호선 청록 (경전철) */

 
/* ── 플로팅 등록 버튼: 바텀시트 접힌 높이 바로 위 ── */
.fab-register {
    position: fixed;
    right: 16px;
    bottom: calc(var(--sheet-peek) + 16px);
    z-index: 1045;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    transition: bottom .25s ease;
}
body.sheet-expanded .fab-register { display: none; } /* 시트 펼치면 가려지니 숨김 */
 
/* ── 바텀시트: 리스트 영역 ── */
#bottomSheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(70px + env(safe-area-inset-bottom)); /* 0 → 네비바 높이만큼 띄움 + 홈 인디케이터가 있는 기기 고려 */
    height: var(--sheet-peek);
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 1041;
    transition: height .25s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
body.sheet-expanded #bottomSheet { height: var(--sheet-expanded); }
 
#sheetHandle {
    flex-shrink: 0;
    padding: 10px 16px 6px;
    cursor: pointer;
    user-select: none;
}
#sheetHandle .bar {
    width: 40px;
    height: 4px;
    background: #dee2e6;
    border-radius: 2px;
    margin: 0 auto 8px;
}
#sheetHandle .sheet-title {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}
 
#sheetContent {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px 16px;
}
 
.restaurant-card { border-radius: 14px; border: 1px solid #eee; }
.empty-state { text-align: center; padding: 40px 20px; color: #868e96; }
 
/* ── 등록 모달: 칩 버튼(가격대/메뉴/태그) ── */
.chip-group .btn-check + label.btn {
    border-radius: 20px;
    margin: 3px;
    font-size: 14px;
    border: 1px solid #dee2e6;
}
.chip-group .btn-check:checked + label.btn {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}
 
/* ── 등록 모달: 카테고리 그룹 ── */
.category-group { margin-bottom: 10px; }
.category-group-label {
    font-size: 12px;
    font-weight: 700;
    color: #868e96;
    margin-bottom: 4px;
}
.category-check:disabled + label.btn {
    opacity: 0.35;
    pointer-events: none;
}
 
/* ── 등록 모달: 메뉴 입력 행 ── */
.menu-row .menu-name-input { flex: 1; }
 
#searchResults { max-height: 220px; overflow-y: auto; }
#searchResults .list-group-item { cursor: pointer; }
#selectedPlaceBox { display: none; } /* 가게 선택 전엔 숨김 — 나머지 상세필드는 항상 보임 */