@charset "UTF-8";
/* 모바일(≤767px) 레이아웃: html.m-layout 하위에만 적용. 높이는 계산 없이 flex로 분배 */
@media only screen and (max-width: 767px) {
  html.m-layout,
  html.m-layout body {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }
  /* body를 화면에 고정해 주소창·인앱 툴바 변화 시 문서 스크롤로 헤더/네비가 밀리지 않게 함 */
  html.m-layout body {
    position: fixed !important;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  html.m-layout .header {
    flex: 0 0 auto;
  }
  html.m-layout .container {
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
  }
  html.m-layout .mapContainer {
    height: 100% !important;
  }
  /* 네비를 문서 흐름에 두고 제스처바·홈 인디케이터 영역만큼 여백 확보 */
  html.m-layout .mobileNav {
    position: relative;
    flex: 0 0 auto;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  /* 바텀시트 높이는 화면이 아니라 지도 영역(.container) 기준 */
  html.m-layout .leftAside.expanded {
    height: 100%;
  }
  html.m-layout .leftAside.collapsed {
    height: 45%;
  }
  html.m-layout .themeTypeSearchWrap.MB {
    height: 100% !important;
  }
  /* 테마복사: 토글 버튼을 시트 위로 띄우기 위해 클리핑을 내부 래퍼로 이동 */
  html.m-layout .leftAside.copyMode {
    overflow: visible;
  }
  /* .leftAside가 flex라 래퍼 폭이 0 → 명시하지 않으면 100vw 패널이 전부 잘림 */
  html.m-layout .leftAside.copyMode .leftPanelWrap {
    border-radius: 3.2rem 3.2rem 0 0;
    width: 100%;
    overflow: hidden;
  }
  /* 접힘(peek): 시트 완전히 숨김. 마커 클릭 등으로 상태 클래스가 붙으면 peek보다 우선 */
  html.m-layout .leftAside.peek:not(.expanded):not(.collapsed):not(.minimized) {
    height: env(safe-area-inset-bottom, 0px);
  }
  html.m-layout .leftAside > .btnSheetToggle {
    position: absolute;
    top: -5.2rem;
    left: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border: 0;
    border-radius: 100px;
    background-color: #fff;
    box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.16);
    opacity: 0.7;
    z-index: 3;
    touch-action: manipulation;
    transition: top 0.3s;
  }
  html.m-layout .leftAside > .btnSheetToggle img {
    width: 2rem;
    transition: transform 0.3s;
  }
  /* 접힘 시 지도 주소바(.map_addArea: bottom 1rem, 높이 3rem) 위로 띄움 */
  html.m-layout .leftAside.peek:not(.expanded):not(.collapsed):not(.minimized) > .btnSheetToggle {
    top: -8.8rem;
  }
  html.m-layout .leftAside.peek:not(.expanded):not(.collapsed):not(.minimized) .btnSheetToggle img {
    transform: rotate(180deg);
  }
}
