: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: 14px;
    /* right: 14px; */
    z-index: 1040;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none; /* Firefox */
}
#filterBar::-webkit-scrollbar { display: none; } /* Chrome/Safari */
 
.fav-chip {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    background: #fff;
    border: none;
    border-radius: 20px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.fav-chip.active {
    background: #0d6efd;
    color: #fff;
}
.fav-chip-add {
    color: #0d6efd;
    border: 1.5px dashed #0d6efd;
    background: #fff;
    box-shadow: none;
}
 
/* 역 이름 앞에 붙는 호선 색 점 — 필터용이 아니라 구분용 표시 */
.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호선 청록 (경전철) */
.fav-chip.active .line-dot { box-shadow: 0 0 0 1px #fff; }
 
/* ── 플로팅 등록 버튼: 바텀시트 접힌 높이 바로 위 ── */
.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; } /* 가게 선택 전엔 숨김 — 나머지 상세필드는 항상 보임 */