/* 숨김 토글 전용 */
.sel-hidden {
  display: none !important;
}

/* 사용자 선택/드래그 차단 (PC + 모바일) */
html,
body,
* {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-drag: none !important;
}

/* 캡처 중일 때 툴바·리사이저만 숨김 */
#mapWrapper.capturing .toolbar,
#mapWrapper.capturing .rv-resizer {
  visibility: hidden;
}

/* 지도 전체 영역 기본 */
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#mapWrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#map {
  width: 100%;
  height: 100%;
  cursor: -webkit-grab !important;
  cursor: grab !important;
}

#map:active {
  cursor: -webkit-grabbing !important;
  cursor: grabbing !important;
}

/* 거리재기 활성 시 십자 */
.distance-on #map {
  cursor: crosshair !important;
}

/* 로드뷰 상태에서도 grab 유지 */
.view_roadview #map {
  cursor: -webkit-grab !important;
  cursor: grab !important;
}

/* 버튼 공통 */
.btn-common:hover {
  background: #e9ecef;
}

.btn-primary {
  background: #4caf50;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: #43a047;
}

/* 툴바 */
.toolbar {
  position: fixed;
  top: 60px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.toolbar button {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff 0%, #f8f8f8 100%);
  color: #333;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.toolbar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
  background: linear-gradient(180deg, #fff 0%, #f2f2f2 100%);
}

.toolbar button.active {
  border-color: #007aff;
  color: #007aff;
  background: linear-gradient(180deg, #eaf3ff 0%, #d7e9ff 100%);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15) inset, 0 3px 10px rgba(0, 0, 0, 0.12);
  transform: translateY(1px);
}
#btnSatellite.active,
#btnCoordinate.active,
#btnDistance.active,
#roadviewControl.active,
#btnGroupMST.active {
  background: linear-gradient(145deg,#2c3e50,#34495e);
  color: #f1f1f1;
  border: 1px solid #3d566e;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: all .2s ease;
}


/* 캡처 버튼 (이중원 + 📷 아이콘) */
.capture-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-sizing: border-box;
  font-size: 22px;
  line-height: 1;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, #007aff 0%, #0055b0 80%);
}

.capture-btn:hover {
  transform: scale(1.06);
}

.capture-btn:active {
  transform: scale(0.94);
}



/* 토스트 메시지 */
.toast-msg {
  position: fixed;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  background: rgba(20, 20, 20, 0.9);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 9999;
  opacity: 0;
  transition: opacity .3s, transform .3s;
}

.toast-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(4px);
}



/* 로드뷰가 남은 공간 자동 채우기 */
.view_roadview {
  display: flex;
  flex-direction: row;
}

.view_roadview #mapWrapper {
  flex: 0 0 auto; /* 크기 고정 (리사이저 조정 반영) */
}

.view_roadview #rvWrapper {
  flex: 1 1 auto; /* 남은 공간을 자동으로 채움 */
  width: auto !important;
  height: auto !important;
  display: block !important;
}
.memo-popup:focus {
  outline: 2px solid #007aff;
}
