/* ==========================================================
   H-01 홈 전용: 지도 위 바텀시트(1·2·3단계) · 떠 있는 버튼 · 지도 칩
   단계 높이는 home.js가 정함 (180 / 285 / 화면 높이에 맞춘 최대값)
   ========================================================== */
.home-root > nav { z-index: 10; }

/* 지도 시트 */
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; height: 180px; display: flex; flex-direction: column; border-radius: 26px 26px 0 0; background: #FFFFFF; box-shadow: 0 -1px 0 rgba(11, 11, 15, 0.07); touch-action: none; will-change: height; }
.sheet.snap { transition: height .42s cubic-bezier(.22, 1, .36, 1); }
.sheet .s0, .sheet .s1, .sheet .s2 { display: none; }
.sheet[data-s="0"] .s0, .sheet[data-s="1"] .s1, .sheet[data-s="2"] .s2 { display: flex; }
.sheet[data-s="2"] .slist { touch-action: pan-y; }

/* 시트 위에 떠 있는 버튼 (이 지역 재검색 · AI 추천) */
.float { position: absolute; z-index: 4; bottom: calc(var(--sh, 180px) + 12px); }
.home-root.snap .float { transition: bottom .42s cubic-bezier(.22, 1, .36, 1); }
.home-root:not([data-s="1"]) #research { display: none !important; }
.home-root[data-s="0"] .sic-l, .home-root:not([data-s="0"]) .sic-r { display: none !important; }

/* 지도 위 칩 · 필터 적용 표시 */
.mapchip { background: #FFFFFF; box-shadow: 0 3px 10px rgba(11, 11, 15, 0.10); }
.mapchip[aria-pressed="true"] { background: #1F4FE0; }
#filterBtn[data-on]::after { content: ""; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 4px; background: #1F4FE0; border: 2px solid #FFFFFF; }

/* AI 추천 · 필터 시트는 거의 전체 높이 */
#aiSheet .msheet, #filterSheet .msheet { height: calc(100% - 58px); }

@media (prefers-reduced-motion: reduce) {
  .sheet.snap, .home-root.snap .float { transition: none !important; }
}
@media (max-width: 430px) {
  #app > .home-root { height: 100vh !important; height: 100dvh !important; min-height: 0 !important; }
}
