* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; overscroll-behavior-y: none; }
body { display: flex; flex-direction: column; background: #f1f5f9; }
.mapdisplay-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
  min-height: 120px;
  max-height: 120px;
  padding: 20px 24px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-sizing: border-box;
}
.mapdisplay-header-left { display: flex; align-items: center; flex-shrink: 0; }
.mapdisplay-header .asset-header-brand { display: flex; flex-direction: row; align-items: center; gap: 3px; cursor: pointer; }
.mapdisplay-header .asset-header-brand .asset-logo { display: block; width: auto; height: 78px; object-fit: contain; flex-shrink: 0; }
.mapdisplay-header .asset-header-tagline { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 78px; gap: 2px; margin-left: 0; }
.mapdisplay-header .asset-header-tagline .tagline-sub { font-size: 14.95px; font-weight: 400; color: #64748b; line-height: 1.3; margin: 0; white-space: nowrap; text-align: center; }
.mapdisplay-header .asset-header-tagline .tagline-main { font-size: 26px; font-weight: 700; color: #1e293b; line-height: 1.2; margin: 0; white-space: nowrap; text-align: center; }
.mapdisplay-header-center { flex: 1; display: flex; align-items: center; justify-content: center; min-width: 0; }
.mapdisplay-header-center .mapdisplay-title { font-size: 34px; font-weight: 600; color: #2563eb; margin: 0; line-height: 1.2; text-align: center; text-shadow: 0 0 8px rgba(37, 99, 235, 0.25); }
.mapdisplay-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mapdisplay-header-right a,
.mapdisplay-header-right .mapdisplay-header-btn {
  padding: 11px 21px;
  font-size: 17px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #eff6ff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.mapdisplay-header-right a:hover,
.mapdisplay-header-right .mapdisplay-header-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
  color: #eff6ff;
}
.roadview-zoom-label {
  font-size: 14px;
  color: #475569;
  margin-right: 12px;
  align-self: center;
}
.type-toolbar {
  flex-shrink: 0;
  padding: 10px 20px;
  background: #F3F7FC;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.type-toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.type-toolbar .type-btn {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}
.type-toolbar .type-btn:hover { border-color: #2563eb; color: #2563eb; }
.type-toolbar .type-btn.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.type-toolbar .type-btn.type-btn-school.active { background: #16a34a; border-color: #16a34a; color: #fff; }
.type-toolbar .type-btn.type-btn-school:hover { border-color: #16a34a; color: #16a34a; }
.type-toolbar .type-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.type-toolbar-divider {
  width: 1px;
  height: 24px;
  margin: 0 8px;
  background: #cbd5e1;
  flex-shrink: 0;
}
.type-toolbar-school-group {
  display: inline-flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
}
.type-toolbar-school-group .type-btn-school {
  border-radius: 0;
  border: none;
  border-right: 1px solid #cbd5e1;
}
.type-toolbar-school-group .type-btn-school:last-child {
  border-right: none;
}
.type-toolbar-school-group .type-btn-school:hover { border-color: transparent; }
.type-toolbar-school-group .type-btn-school.active { border-color: transparent; }
.type-toolbar-type-group {
  display: inline-flex;
  flex-wrap: wrap;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
  max-width: 100%;
}
.type-toolbar-type-group .type-btn {
  border-radius: 0;
  border: none;
  border-right: 1px solid #cbd5e1;
  flex: 0 1 auto;
}
.type-toolbar-type-group .type-btn:last-child {
  border-right: none;
}
.type-toolbar-type-group .type-btn:hover { border-color: transparent; }
.type-toolbar-type-group .type-btn.active {
  outline: 1px solid #fff;
  outline-offset: -1px;
}
.mapdisplay-body {
  flex: 1;
  display: flex;
  justify-content: center;
  min-height: 0;
  background: #f1f5f9;
  overflow-y: auto;
  padding-top: 24px;
}
.mapdisplay-left {
  width: 100%;
  max-width: 1000px;
  background: #fff;
  padding: 16px 24px 40px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  align-self: flex-start;
  min-height: 100%;
}
.mapdisplay-map-side {
  flex: 1;
  display: flex;
  min-width: 0;
  min-height: 0;
  align-items: stretch;
}
.mapdisplay-col-resizer {
  flex-shrink: 0;
  width: 6px;
  cursor: col-resize;
  background: #e5e7eb;
  align-self: stretch;
  border-left: 1px solid #cbd5e1;
  border-right: 1px solid #cbd5e1;
  outline: none;
  padding: 0;
  box-sizing: border-box;
}
.mapdisplay-col-resizer:hover,
.mapdisplay-col-resizer:focus-visible {
  background: #bfdbfe;
}
body.map-fullview .mapdisplay-col-resizer {
  display: none !important;
}
body.map-fullview .mapdisplay-map-side {
  flex: 1;
  min-width: 0;
  min-height: 0;
}
.mapdisplay-hidden-area-bundle {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  border: 0 !important;
}
.branch-list-wrap {
  flex-shrink: 0;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}
.branch-list-title-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 10px;
}
.branch-list-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  flex-shrink: 0;
}
.branch-list-count {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}
.branch-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}
#branchAddFieldName.branch-add-name--locked {
  background: #f1f5f9;
  color: #475569;
  cursor: not-allowed;
}
/* sims_screen.html .btn-widget-action / .btn-apply-now 와 동일 치수·타이포, 내용만 색상 분기 */
.branch-list-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 0 0 auto;
  width: 140px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, border-color 0.15s;
}
.branch-list-btn:active {
  transform: scale(0.97);
}
.branch-list-btn--primary {
  border: none;
  background: #2563eb;
  color: #fff;
}
.branch-list-btn--primary:hover {
  background: #1d4ed8;
}
.branch-list-btn--danger {
  background: #fff;
  color: #b91c1c;
  border: 1px solid #dc2626;
}
.branch-list-btn--danger:hover {
  background: #fef2f2;
}
.branch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(52vh, 640px);
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.branch-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.12s ease;
}
.branch-list-item:last-child {
  border-bottom: none;
}
/* 주로 머무는 곳 */
.branch-list-item--fixed {
  background: #dbeafe;
}
.branch-list-item--fixed:hover {
  background: #bfdbfe;
}
/* 일반 지점: 스트라이프 (고정 행 다음부터 2·4·6… / 3·5·7…) */
.branch-list-item:not(.branch-list-item--fixed):nth-child(even) {
  background: #f8fafc;
}
.branch-list-item:not(.branch-list-item--fixed):nth-child(odd) {
  background: #fff;
}
.branch-list-item:not(.branch-list-item--fixed):hover {
  background: #e2e8f0;
}
.branch-list-item-label {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.branch-list-bus-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  line-height: 0;
}
.branch-list-bus-icon .branch-list-bus-svg {
  display: block;
}
/* 정류소 지정됨: 진한 표시 */
.branch-list-bus-icon--on {
  color: #15803d;
  opacity: 1;
}
/* 정류소 미지정: 흐린 표시 */
.branch-list-bus-icon--off {
  color: #94a3b8;
  opacity: 0.42;
}
.branch-list-kebab {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.branch-list-kebab:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.branch-list-kebab-icon {
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -2px;
}
.branch-kebab-popover {
  position: fixed;
  z-index: 1100;
  min-width: 140px;
  padding: 4px 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}
.branch-kebab-item {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  text-align: left;
  font-size: 14px;
  color: #334155;
  cursor: pointer;
}
.branch-kebab-item:hover {
  background: #f1f5f9;
}
.branch-kebab-item--delete {
  color: #b91c1c;
}

/* 지점 추가 모달 — sims_screen 문자 설정(smsSettingsModal)과 동일 톤·레이아웃 */
#branchAddModalOverlay {
  --sims-modal-header-bg: #dfe1e3;
  --sims-modal-footer-bg: #d9dce0;
  --sims-modal-edge-border: #e2e8f0;
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 2100;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 16px;
  box-sizing: border-box;
}
#branchAddModalOverlay.active {
  display: flex;
}
#branchAddModalOverlay .sims-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(15, 23, 42, 0.18);
  padding: 28px 28px 22px;
  width: 440px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: auto;
}
#branchAddModalOverlay .phone-cfg-modal {
  width: 100%;
  max-width: 400px;
}
#branchAddModalOverlay .sims-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}
#branchAddModalOverlay .phone-cfg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -28px -28px 0 -28px;
  padding: 28px 28px 12px 28px;
  background: var(--sims-modal-header-bg);
  border-bottom: 1px solid var(--sims-modal-edge-border);
  border-radius: 16px 16px 0 0;
  margin-bottom: 0;
}
#branchAddModalOverlay .phone-cfg-header + .modal-form-row {
  margin-top: 20px;
}
#branchAddModalOverlay .modal-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#branchAddModalOverlay .modal-form-row + .modal-form-row {
  margin-top: 14px;
}
#branchAddModalOverlay .modal-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}
#branchAddModalOverlay .modal-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
}
#branchAddModalOverlay .modal-input:focus {
  border-color: #2563eb;
}
#branchAddModalOverlay .modal-textarea {
  width: 100%;
  min-height: 96px;
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.45;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
}
#branchAddModalOverlay .modal-textarea:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(147, 197, 253, 0.35);
}
#branchAddModalOverlay .phone-cfg-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 20px -28px -22px -28px;
  padding: 14px 28px 22px 28px;
  background: var(--sims-modal-footer-bg);
  border-top: 1px solid var(--sims-modal-edge-border);
  border-radius: 0 0 16px 16px;
}
#branchAddModalOverlay .phone-cfg-footer .btn-cancel {
  padding: 9px 22px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}
#branchAddModalOverlay .phone-cfg-footer .btn-apply {
  padding: 9px 22px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}
#branchAddModalOverlay .phone-cfg-footer .btn-cancel:hover {
  background: #e2e8f0;
}
#branchAddModalOverlay .phone-cfg-footer .btn-apply:hover {
  background: #1d4ed8;
}

/* 지점 추가 — 위치(주소): asset_regi.html 과 동일 패턴 */
#branchAddModalOverlay .branch-add-address-inner {
  width: 100%;
}
#branchAddModalOverlay .branch-add-location-row > .modal-label {
  display: block;
  margin-bottom: 6px;
}
#branchAddModalOverlay .address-method-row {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
}
#branchAddModalOverlay .radio-label {
  font-size: 14px;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#branchAddModalOverlay .address-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
}
#branchAddModalOverlay .address-input-row .form-input {
  flex: 1;
  min-width: 120px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
}
#branchAddModalOverlay .address-input-row .form-input:focus {
  border-color: #2563eb;
}
#branchAddModalOverlay .address-input-row .form-input:read-only {
  background: #f8fafc;
  color: #475569;
}
#branchAddModalOverlay .btn-map-open {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 6px;
  border: 1px solid #2563eb;
  background: #fff;
  color: #2563eb;
  cursor: pointer;
  white-space: nowrap;
}
#branchAddModalOverlay .btn-map-open:hover {
  background: #eff6ff;
}
#branchAddModalOverlay .btn-map-open:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
#branchAddModalOverlay #branchAddLatLngDisplay {
  white-space: pre-line;
}
#branchAddModalOverlay .branch-add-stops-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
}
#branchAddModalOverlay .branch-add-stops-label {
  display: block;
  width: 100%;
}
#branchAddModalOverlay .branch-add-stops-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  width: 100%;
}
#branchAddModalOverlay .branch-add-stops-name-row {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}
/* 선택 버튼 오른쪽 남는 가로 전부 사용 — 이름이 길어도 가능한 만큼 표시, X는 행 오른쪽 */
#branchAddModalOverlay .branch-add-stops-name-cluster {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}
/* 입력창 테두리 없음 — 정류소명만 텍스트처럼 표시 */
#branchAddModalOverlay .branch-add-stops-name-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  font-size: 14px;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: default;
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}
#branchAddModalOverlay .branch-add-stops-name-input:focus {
  outline: none;
  box-shadow: none;
}
#branchAddModalOverlay .branch-add-stops-name-input.branch-add-stops-name--empty {
  color: #94a3b8;
}
#branchAddModalOverlay .branch-add-stops-clear-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 2px;
  width: 26px;
  height: 26px;
  color: #64748b;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  line-height: 0;
}
/* [hidden]은 UA display:none인데 위 규칙의 inline-flex가 덮어써서 반드시 재선언 */
#branchAddModalOverlay .branch-add-stops-clear-btn[hidden] {
  display: none !important;
}
#branchAddModalOverlay .branch-add-stops-clear-icon {
  display: block;
  pointer-events: none;
}
#branchAddModalOverlay .branch-add-stops-clear-btn:hover {
  background: #f1f5f9;
  color: #334155;
}
#branchAddModalOverlay .branch-add-stops-clear-btn:focus-visible {
  outline: 2px solid #94a3b8;
  outline-offset: 1px;
}
#branchAddModalOverlay .branch-add-stops-select-btn {
  flex-shrink: 0;
}

/* ── 기상특보 구역 행 ─────────────────────────────────────────── */
#branchAddModalOverlay .branch-add-warn-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
}
#branchAddModalOverlay .branch-add-warn-label {
  display: block;
  width: 100%;
}
#branchAddModalOverlay .branch-add-warn-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}
#branchAddModalOverlay .branch-add-warn-name-input {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: #1e293b;
  background: #f8fafc;
}
#branchAddModalOverlay .branch-add-warn-name-input::placeholder {
  color: #94a3b8;
}

/* ── 기상특보 구역 선택 모달 ─────────────────────────────────── */
#warnZoneSelectOverlay {
  --sims-modal-header-bg: #dfe1e3;
  --sims-modal-footer-bg: #d9dce0;
  --sims-modal-edge-border: #e2e8f0;
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 2200;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 16px;
  box-sizing: border-box;
}
#warnZoneSelectOverlay.active {
  display: flex;
}
#warnZoneSelectOverlay .sims-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(15, 23, 42, 0.18);
  padding: 28px 28px 22px;
  width: 440px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: auto;
}
#warnZoneSelectOverlay .phone-cfg-header {
  margin: -28px -28px 16px -28px;
  padding: 14px 28px;
  background: var(--sims-modal-header-bg);
  border-bottom: 1px solid var(--sims-modal-edge-border);
  border-radius: 16px 16px 0 0;
}
#warnZoneSelectOverlay .sims-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}
#warnZoneSelectOverlay .phone-cfg-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 20px -28px -22px -28px;
  padding: 14px 28px 22px 28px;
  background: var(--sims-modal-footer-bg);
  border-top: 1px solid var(--sims-modal-edge-border);
  border-radius: 0 0 16px 16px;
}
#warnZoneSelectOverlay .phone-cfg-footer .btn-cancel {
  padding: 9px 22px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}
#warnZoneSelectOverlay .phone-cfg-footer .btn-cancel:hover {
  background: #e2e8f0;
}
#warnZoneSelectOverlay .warn-zone-select-body {
  padding: 8px 0 4px;
  min-height: 80px;
}
#warnZoneSelectOverlay .warn-zone-select-loading {
  text-align: center;
  color: #64748b;
  font-size: 14px;
  padding: 16px 0;
}
#warnZoneSelectOverlay .warn-zone-select-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#warnZoneSelectOverlay .warn-zone-btn {
  display: block;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
  color: #1e293b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1.4;
}
#warnZoneSelectOverlay .warn-zone-btn:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
}
#warnZoneSelectOverlay .warn-zone-btn-dist {
  font-size: 12px;
  color: #64748b;
  margin-left: 6px;
}

.mapdisplay-left.single-item-lock,
.type-toolbar-type-group.single-item-lock { pointer-events: none; opacity: 0.85; user-select: none; }
.filter-section { margin-bottom: 20px; }
/* 면적 섹션 위 여백 30% 감소: .filter-section 단축 margin 규칙에 덮이지 않도록 id+class로 명시 */
#areaFilterWrap.filter-section { margin-top: -6px; }
.filter-section-title { font-size: 14px; font-weight: 600; color: #334155; margin: 0 0 10px 0; }
.filter-section-title.filter-section-sub { font-size: 13px; margin: 12px 0 6px 0; color: #475569; }
.filter-section .checkbox-list { display: flex; flex-direction: column; gap: 8px; }
.filter-section label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #475569; cursor: pointer; }
.deal-type-group { display: flex; flex-direction: column; gap: 0; }
.deal-type-group .deal-type-row {
  display: flex;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
}
.deal-type-group .deal-type-row:first-child { border-radius: 8px 8px 0 0; }
.deal-type-group .deal-type-row:last-child { border-radius: 0 0 8px 8px; border-top: none; }
.deal-type-group .deal-type-row:only-child { border-radius: 8px; }
.deal-type-group .deal-type-row label {
  flex: 1;
  margin: 0;
  padding: 8px 12px;
  justify-content: center;
  border-right: 1px solid #cbd5e1;
  border-radius: 0;
  min-width: 0;
}
.deal-type-group .deal-type-row label:last-child { border-right: none; }
.deal-type-group .deal-type-row input[type="checkbox"] { display: none; }
.deal-type-group .deal-type-row label:has(input:checked) { background: #2563eb; color: #fff; font-weight: 600; border-color: transparent; }
.filter-section input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.filter-section .range-row { display: flex; gap: 6px; align-items: center; margin-top: 8px; min-width: 0; }
.filter-section .range-row input {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  padding: 8px 6px;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}
.filter-section .range-row input:focus { outline: none; border-color: #2563eb; }
.filter-section .range-row select {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #334155;
}
.filter-section .range-row select:focus { outline: none; border-color: #2563eb; }
.custom-select-wrap { position: relative; flex: 1; min-width: 0; }
.custom-select-wrap select { position: absolute; opacity: 0; pointer-events: none; width: 100%; height: 100%; top: 0; left: 0; margin: 0; }
.custom-select-trigger {
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.custom-select-trigger::after { content: '▼'; font-size: 10px; color: #64748b; }
.custom-select-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 2px;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
}
.custom-select-list.is-open { display: block; }
.custom-select-list-option { padding: 8px 10px; font-size: 13px; cursor: pointer; }
.custom-select-list-option:hover { background: #f1f5f9; }
.price-label-wrap { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.price-label {
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #2563eb;
  border-radius: 6px;
  background: #eff6ff;
  color: #1e293b;
  cursor: pointer;
  flex: 1;
  min-width: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.price-label:hover { border-color: #1d4ed8; background: #dbeafe; }
/* 가격 선택 버튼 모달 */
.price-select-modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.4); z-index: 1500; align-items: center; justify-content: center; }
.price-select-modal-backdrop.is-open { display: flex; }
.price-select-modal-dialog { position: relative; background: #fff; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); padding: 20px; min-width: 320px; max-width: 96vw; }
.price-select-modal-dialog h3 { margin: 0 32px 0 0 0 12px; font-size: 18px; font-weight: 600; color: #1e293b; }
.price-select-modal-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: none; background: transparent; cursor: pointer; font-size: 22px; color: #64748b; border-radius: 6px; padding: 0; display: flex; align-items: center; justify-content: center; }
.price-select-modal-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; margin-top: 16px; }
@media (max-width: 768px) {
  .price-select-modal-grid { grid-template-columns: repeat(5, 1fr); }
}
.price-select-btn { padding: 10px 12px; font-size: 13px; font-weight: 500; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #334155; cursor: pointer; }
.price-select-btn:hover { background: #f1f5f9; border-color: #94a3b8; }
/* 직접 입력 금액 모달 */
.direct-input-modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.4); z-index: 1500; align-items: center; justify-content: center; }
.direct-input-modal-backdrop.is-open { display: flex; }
.direct-input-modal-dialog { position: relative; background: #fff; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); padding: 24px; min-width: 280px; }
.direct-input-modal-dialog h3 { margin: 0 32px 0 0; font-size: 18px; font-weight: 600; color: #1e293b; }
.direct-input-modal-dialog label { display: block; font-size: 14px; font-weight: 500; color: #475569; margin-bottom: 8px; }
.direct-input-modal-dialog input[type="text"],
.direct-input-modal-dialog input[type="number"] { width: 100%; padding: 10px 12px; font-size: 14px; border: 1px solid #cbd5e1; border-radius: 8px; box-sizing: border-box; }
.direct-input-modal-dialog input:focus { outline: none; border-color: #2563eb; }
.direct-input-modal-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 10px; }
.direct-input-modal-actions button { padding: 8px 18px; font-size: 14px; font-weight: 600; border-radius: 8px; cursor: pointer; border: 1px solid #cbd5e1; background: #fff; color: #475569; }
.direct-input-modal-actions button.direct-input-modal-confirm { border: none; background: #2563eb; color: #fff; }
.direct-input-modal-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: none; background: transparent; cursor: pointer; font-size: 22px; color: #64748b; border-radius: 6px; padding: 0; display: flex; align-items: center; justify-content: center; }
/* 지목/용도지역 선택 모달 (asset_regi와 동일 구성) */
.map-purpose-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1500; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.map-purpose-modal-overlay.hidden { display: none; }
.map-purpose-modal-box { background: #fff; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); max-width: 480px; width: 100%; max-height: 80vh; overflow: hidden; display: flex; flex-direction: column; }
.map-purpose-modal-box.map-purpose-modal-box--area { max-width: 624px; }
.map-purpose-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #e2e8f0; gap: 12px; }
.map-purpose-modal-box h4 { margin: 0; font-size: 18px; font-weight: 600; color: #1e293b; flex: 1; }
.map-purpose-modal-close { width: 32px; height: 32px; padding: 0; border: none; border-radius: 6px; background: transparent; color: #64748b; cursor: pointer; font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.map-purpose-modal-close:hover { background: #f1f5f9; color: #1e293b; }
.map-purpose-modal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 16px 20px 20px; overflow-y: auto; }
.map-purpose-modal-grid .map-purpose-modal-btn:first-of-type { grid-column: 1 / -1; }
.map-purpose-modal-section-label { grid-column: 1 / -1; font-size: 13px; font-weight: 600; color: #64748b; margin-top: 10px; padding-top: 4px; }
.map-purpose-modal-section-label:first-child { margin-top: 0; padding-top: 0; }
.map-purpose-modal-btn { display: flex; align-items: center; justify-content: center; padding: 10px 8px; font-size: 13px; border: 1px solid #2563eb; border-radius: 6px; background: #eff6ff; color: #1e293b; cursor: pointer; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-purpose-modal-btn:hover { border-color: #1d4ed8; background: #dbeafe; color: #1e40af; }
.map-purpose-modal-btn.selected { border-color: #1d4ed8; background: #dbeafe; color: #1e40af; font-weight: 600; }
.map-land-purpose-area-purpose-wrap { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e2e8f0; }
.map-purpose-row .map-purpose-label { flex: 1; min-width: 0; }
.filter-section.monthly-rent-range-wrap { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e2e8f0; }
.filter-section .range-row span:not(.price-label) { font-size: 12px; color: #64748b; flex-shrink: 0; }
.filter-section .area-unit-row { margin-bottom: 8px; }
.area-unit-group {
  display: inline-flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
}
.area-unit-group .area-unit-option {
  flex: 1;
  margin: 0;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  border-right: 1px solid #cbd5e1;
  border-radius: 0;
  min-width: 60px;
}
.area-unit-group .area-unit-option:last-child { border-right: none; }
.area-unit-group .area-unit-option input { display: none; cursor: pointer; }
.area-unit-group .area-unit-option:has(input:checked) { background: #2563eb; color: #fff; font-weight: 600; border-color: transparent; }
.filter-section .area-unit-option input { cursor: pointer; }
.mapdisplay-right { flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; }
#roadviewMiniMapWrap.map-wrap-full { flex: 1; width: 100%; min-height: 400px; min-width: 0; position: relative; }
#roadviewMiniMapWrap.map-wrap-full #assetMap { width: 100%; height: 100%; min-height: 400px; }
#roadviewContainer {
  position: absolute;
  inset: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
  background: #000;
  display: none;
  z-index: 900;
}
#roadviewCloseBtn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 910;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  border: none;
  background: rgba(15,23,42,0.75);
  color: #e5e7eb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
#roadviewCloseBtn:hover {
  background: rgba(15,23,42,0.9);
  color: #fff;
}
/* 실사 화면일 때 지도는 좌하단 작은 박스로만 표시. 래퍼로 크기 고정(카카오맵 인라인 스타일 우선 방지) */
.mapdisplay-right.roadview-view #roadviewMiniMapWrap {
  position: fixed;
  left: 50px;
  top: calc(100vh - 300px - 50px);
  width: 400px;
  height: 300px;
  min-height: 0;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(15,23,42,0.35);
  overflow: hidden;
  z-index: 910;
}
.mapdisplay-right.roadview-view #roadviewMiniMapWrap #assetMap {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
}
/* 마커강조: 지도는 JS에서 폴리곤 오버레이로 흐리게 함, 마커는 그 위에 선명하게 유지 */
.map-attribution {
  margin-top: auto;
  padding: 10px 0 0;
  font-size: 11px;
  color: #64748b;
}
.cluster-circle {
  width: var(--asset-marker-size, 52px);
  height: var(--asset-marker-size, 52px);
  border-radius: 50%;
  background: #94a3b8;
  color: #fff;
  font-size: calc(var(--asset-marker-size, 52px) * 0.31);
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  border: none; box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  cursor: pointer;
}
.cluster-circle.cluster-circle-single {
  background: #64748b;
}
/* 환경설정 "마커 모양": 숫자/가격 표시용 cluster 오버레이 */
.cluster-circle.cluster-shape-square,
.cluster-circle-single.cluster-shape-square {
  border-radius: 12px;
}
.cluster-circle.cluster-shape-sharp,
.cluster-circle-single.cluster-shape-sharp {
  border-radius: 0;
}
.cluster-ellipsis-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cluster-ellipsis-icon svg {
  width: 24px;
  height: 8px;
  display: block;
}
.measure-toolbar { display: flex; align-items: center; gap: 10px; }
.measure-toolbar .measure-result { font-size: 13px; color: #475569; }
.measure-toolbar .measure-clear { font-size: 12px; color: #2563eb; cursor: pointer; text-decoration: underline; }
.measure-toolbar .measure-clear:hover { color: #1d4ed8; }
.type-btn.measure-active,
.type-toolbar .type-btn#measureToggle:active {
  background: #fff;
  color: #475569;
  border-width: 3px;
  border-color: #2563eb;
  padding: 6px 12px;
}
.mapdisplay-right { position: relative; }
#assetMap.roadview-select-cursor { cursor: crosshair; }
#roadviewSelectOverlay {
  position: absolute;
  inset: 0;
  z-index: 850;
  display: none;
  cursor: crosshair;
  pointer-events: none; /* 지도 확대/이동 막지 않도록 */
}
#roadview {
  width: 100%;
  height: 100%;
}
.fullscreen-close {
  display: none;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.fullscreen-close:hover { background: #f1f5f9; border-color: #cbd5e1; }
.fullscreen-open {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.fullscreen-open:hover { background: #f1f5f9; border-color: #cbd5e1; }
.map-hybrid-toggle {
  position: absolute;
  top: 7px;
  right: 132px;
  z-index: 1000;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.map-hybrid-toggle:hover { background: #f1f5f9; border-color: #cbd5e1; }
.map-hybrid-toggle:disabled { opacity: 0.5; cursor: not-allowed; }
.map-hybrid-toggle.active { background: #2563eb; border-color: #2563eb; color: #fff; }
/* 읍/면/동 경계 출처(지도 영역 우하단) — 텍스트만 */
.map-emd-boundary-attribution {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 12;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 500;
  color: #334155;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
  max-width: min(280px, calc(100% - 16px));
  text-align: right;
}
body.map-fullview {
  height: 100vh;
  overflow: hidden;
}
body.map-fullview .mapdisplay-header,
body.map-fullview .type-toolbar,
body.map-fullview .mapdisplay-left {
  display: none !important;
}
body.map-fullview .mapdisplay-body {
  flex: 1;
  min-height: 0;
}
body.map-fullview .mapdisplay-right {
  flex: 1;
  min-height: 0;
}
body.map-fullview .fullscreen-open {
  display: none;
}
body.map-fullview .fullscreen-close {
  display: block;
}
/* 모바일 전용: 기본 숨김 */
.mapdisplay-mobile-only { display: none !important; }
.filter-sheet-handle.mapdisplay-mobile-only { display: none !important; }
/* 모바일: 하단 시트(네이버지도 방식) */
@media (max-width: 768px) {
  .mapdisplay-header { display: none !important; }
  .mapdisplay-mobile-only { display: block !important; }
  /* 툴바 1행 높이 기준 고정 (거리재기 2행 시 전체 높이 변해도 위치 유지) */
  .type-toolbar {
    position: relative;
    --map-toolbar-row1-center-y: calc(10px + 17px);
  }
  /* 거리뷰/동심원/거리재기 툴바 줄 우측 "처음으로" (뒤로 버튼과 대칭) */
  .type-toolbar .type-toolbar-first-link.mapdisplay-mobile-only {
    position: absolute;
    right: 10px;
    top: var(--map-toolbar-row1-center-y);
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #fff !important;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .type-toolbar .type-toolbar-first-link.mapdisplay-mobile-only:active {
    background: #1d4ed8;
    border-color: #1d4ed8;
  }
  .filter-sheet-handle.mapdisplay-mobile-only {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 44px;
    padding: 22px 0 8px;
    cursor: grab;
    touch-action: none;
    user-select: none;
    background: #BBF7D0;
    border-bottom: 1px solid #4ADE80;
    border-radius: 12px 12px 0 0;
  }
  .filter-sheet-handle.mapdisplay-mobile-only:active { cursor: grabbing; }
  .filter-sheet-handle-bar {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: #cbd5e1;
    margin-bottom: 6px;
  }
  .filter-sheet-handle-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 44px;
    box-sizing: border-box;
  }
  .filter-sheet-handle-label {
    font-size: 13px;
    color: #334155;
    font-weight: 600;
  }
  .filter-sheet-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(calc(-50% - 15px));
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: none;
    color: #475569;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .filter-sheet-arrow-up { left: 4px; }
  .filter-sheet-arrow-down { right: 4px; left: auto; }
  .filter-sheet-arrow:active { color: #334155; }
  .mapdisplay-left {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-width: none;
    height: 52px;
    max-height: 85vh;
    z-index: 1001;
    transform: none;
    transition: height 0.25s ease-out;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
    border-radius: 12px 12px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overscroll-behavior: none;
    padding: 0;
    background: #BBF7D0;
  }
  .mapdisplay-left.filter-sheet-expanded {
    height: 85vh;
  }
  .mapdisplay-left .filter-sheet-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 16px 24px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    background: #fff;
  }
  .filter-sheet-type-buttons.mapdisplay-mobile-only {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
  }
  .filter-sheet-type-buttons .type-btn {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #e2e8f0;
    color: #475569;
    cursor: pointer;
  }
  .filter-sheet-type-buttons .type-btn:hover { border-color: #16a34a; color: #15803d; }
  .filter-sheet-type-buttons .type-btn.active { background: #16a34a; border-color: #15803d; color: #fff; }
  .mapdisplay-body { margin-left: 0 !important; }
  .mapdisplay-col-resizer {
    display: none !important;
  }
  .mapdisplay-map-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
  }
  .type-toolbar-desktop-only { display: none !important; }
  .type-toolbar #typeToolbarTypeGroup { display: none !important; }
  .type-toolbar-type-group { flex-wrap: wrap; }
  .map-attribution { display: none !important; }
  /* 거리뷰 모드: 실사 화면 세로는 작은 지도 top까지, 가로는 화면 전체 */
  .mapdisplay-right.roadview-view #roadviewContainer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100% !important;
    height: calc(100vh - 300px - 50px) !important;
    border-radius: 0;
  }
  .mapdisplay-right.roadview-view #roadviewMiniMapWrap {
    left: 0 !important;
    width: 100vw !important;
    max-width: 100%;
  }
  .mapdisplay-right.roadview-view .fullscreen-open { display: none !important; }
  .fullscreen-open { display: none !important; }
  .map-back-btn .map-back-arrow { width: 24px; height: 24px; display: block; color: #2563eb; }
  .type-toolbar .type-btn.map-back-btn {
    position: absolute !important;
    left: 10px !important;
    top: var(--map-toolbar-row1-center-y) !important;
    transform: translateY(-50%) !important;
    padding: 0 !important;
    min-width: 0 !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: #2563eb;
  }
  .type-toolbar .type-btn.map-back-btn:hover {
    color: #1d4ed8 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
  }
  .type-toolbar .type-toolbar-right {
    margin-left: 0 !important;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    padding-right: 88px;
    box-sizing: border-box;
  }
  .type-toolbar .type-toolbar-right .measure-toolbar {
    width: 100%;
    flex-basis: 100%;
    margin-top: 4px;
    justify-content: center;
  }
}
.distance-label {
  position: relative; background: #1e293b; color: #fff; padding: 4px 8px; border-radius: 4px;
  font-size: 11px; white-space: nowrap; pointer-events: none;
}
.measure-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: #2563eb; border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  pointer-events: none;
}
.boundary-name-label {
  font-size: 33px; color: #64748b; font-weight: 500;
  opacity: 0.5;
  text-shadow: 0 0 2px #fff, 0 0 4px #fff;
  white-space: nowrap; pointer-events: none;
}
.concentric-circle-label {
  font-size: 11px; font-weight: 600; color: #16a34a;
  background: rgba(255,255,255,0.9); padding: 2px 5px; border-radius: 3px;
  white-space: nowrap; pointer-events: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.popup-btn-concentric {
  font-size: 12px; padding: 4px 10px; border-radius: 4px;
  border: 1px solid #16a34a; background: #fff; color: #16a34a;
  cursor: pointer; font-weight: 500;
}
.popup-btn-concentric:hover { background: #16a34a; color: #fff; }
.marker-tooltip {
  padding: 10px 28px 10px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
  min-width: 280px;
  max-width: 840px;
  position: relative;
}
.marker-tooltip-title { font-weight: bold; margin-bottom: 4px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.marker-tooltip-title-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.marker-tooltip-call-btn { display: none; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid #cbd5e1; background: #fff; color: #2563eb; cursor: pointer; flex-shrink: 0; margin-right: 50px; }
.marker-tooltip-call-btn:hover { background: #eff6ff; }
.marker-tooltip-call-btn:disabled { opacity: 0.4; cursor: not-allowed; }
@media (max-width: 768px) {
  .marker-tooltip-call-btn { display: inline-flex; }
}
.marker-tooltip-body { white-space: pre-line; display: block; }
.marker-tooltip-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: none;
  background: #e2e8f0;
  color: #64748b;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.marker-tooltip-close:hover {
  background: #cbd5e1;
  color: #334155;
}
.marker-tooltip-add-wrap { margin-top: 10px; padding-top: 8px; border-top: 1px solid #e2e8f0; }
.marker-tooltip-add-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
}
.marker-tooltip-add-btn:hover { background: #1d4ed8; }
.marker-tooltip-concentric-wrap { margin-top: 8px; padding-top: 8px; border-top: 1px solid #e2e8f0; display: flex; align-items: center; gap: 8px; }
.marker-tooltip-concentric-btn,
.marker-tooltip-detail-btn,
.marker-tooltip-roadview-btn {
  font-size: 12px; padding: 4px 10px; border-radius: 4px;
  cursor: pointer; font-weight: 500;
}
.marker-tooltip-concentric-btn {
  border: 1px solid #16a34a; background: #fff; color: #16a34a;
}
.marker-tooltip-concentric-btn.active { background: #16a34a; color: #fff; border-color: #16a34a; }
.marker-tooltip-detail-btn,
.marker-tooltip-roadview-btn,
.marker-tooltip-addphoto-btn {
  border: 1px solid #64748b; background: #fff; color: #475569;
}
.marker-tooltip-detail-btn:hover,
.marker-tooltip-roadview-btn:hover,
.marker-tooltip-addphoto-btn:hover { background: #f1f5f9; color: #334155; }
.marker-tooltip-addphoto-btn:disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; }
.marker-tooltip-roadview-btn.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.marker-tooltip-roadview-btn[disabled] {
  opacity: 0.45;
  cursor: default;
}
/* 이미 추천된 매물 마커: 회색 배경 */
.marker-gray-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.marker-gray-wrap img { width: 32px; height: 32px; display: block; pointer-events: none; }
/* 동동이 컨테이너: 방향 표시(.roadview-arrow-wrap)와 동일 102×52로 맞춰 앵커 기준을 같게 함 → 좌우 치우침 없음 */
.roadview-figure-container { width: 102px; height: 52px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
/* 동동이(위치 아이콘): 카카오 스프라이트 figure 16방향. 배꼽·중심이 방향 표시와 맞도록 보정(스프라이트가 37px 프레임 내 왼쪽으로 치우쳐 있음) */
.roadview-figure-wrap { width: 37px; height: 39px; pointer-events: none; background: url(https://t1.daumcdn.net/localimg/localimages/07/2018/pc/roadview_minimap_wk_2018.png) -298px -114px no-repeat; transform: translateY(-10px) translateX(5px); }
/* 드래그 히트 영역: mousedown 수신 후 숨기고, 드래그 아이콘만 표시 */
.roadview-drag-hit { width: 48px; height: 48px; cursor: grab; display: block; }
.roadview-drag-hit:active { cursor: grabbing; }
/* 드래그 중에만 표시되는 아이콘(마우스 따라 이동, 지도는 고정) */
.roadview-drag-icon { width: 37px; height: 39px; pointer-events: none; background: url(https://t1.daumcdn.net/localimg/localimages/07/2018/pc/roadview_minimap_wk_2018.png) -298px -114px no-repeat; }
.roadview-figure-wrap.m0 { background-position: -298px -114px; } .roadview-figure-wrap.m1 { background-position: -335px -114px; } .roadview-figure-wrap.m2 { background-position: -372px -114px; } .roadview-figure-wrap.m3 { background-position: -409px -114px; } .roadview-figure-wrap.m4 { background-position: -446px -114px; } .roadview-figure-wrap.m5 { background-position: -483px -114px; } .roadview-figure-wrap.m6 { background-position: -520px -114px; } .roadview-figure-wrap.m7 { background-position: -557px -114px; } .roadview-figure-wrap.m8 { background-position: -2px -114px; } .roadview-figure-wrap.m9 { background-position: -39px -114px; } .roadview-figure-wrap.m10 { background-position: -76px -114px; } .roadview-figure-wrap.m11 { background-position: -113px -114px; } .roadview-figure-wrap.m12 { background-position: -150px -114px; } .roadview-figure-wrap.m13 { background-position: -187px -114px; } .roadview-figure-wrap.m14 { background-position: -224px -114px; } .roadview-figure-wrap.m15 { background-position: -261px -114px; }
/* 동동이 방향표시: 카카오 스프라이트 angleBack 16방향 */
.roadview-arrow-wrap { width: 102px; height: 52px; pointer-events: none; background: url(https://t1.daumcdn.net/localimg/localimages/07/2018/pc/roadview_minimap_wk_2018.png) -834px -2px no-repeat; }
.roadview-arrow-wrap.m0 { background-position: -834px -2px; } .roadview-arrow-wrap.m1 { background-position: -938px -2px; } .roadview-arrow-wrap.m2 { background-position: -1042px -2px; } .roadview-arrow-wrap.m3 { background-position: -1146px -2px; } .roadview-arrow-wrap.m4 { background-position: -1250px -2px; } .roadview-arrow-wrap.m5 { background-position: -1354px -2px; } .roadview-arrow-wrap.m6 { background-position: -1458px -2px; } .roadview-arrow-wrap.m7 { background-position: -1562px -2px; } .roadview-arrow-wrap.m8 { background-position: -2px -2px; } .roadview-arrow-wrap.m9 { background-position: -106px -2px; } .roadview-arrow-wrap.m10 { background-position: -210px -2px; } .roadview-arrow-wrap.m11 { background-position: -314px -2px; } .roadview-arrow-wrap.m12 { background-position: -418px -2px; } .roadview-arrow-wrap.m13 { background-position: -522px -2px; } .roadview-arrow-wrap.m14 { background-position: -626px -2px; } .roadview-arrow-wrap.m15 { background-position: -730px -2px; }
/* ── 모바일 지점 목록 시트 내부 여백 ── */
@media (max-width: 768px) {
  .mapdisplay-left .branch-list-wrap {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 12px;
  }
  .mapdisplay-left .branch-list .branch-list-item {
    padding-left: 4px;
    padding-right: 4px;
  }
}
/* ── 모바일 전용: 우측 하단 '메인으로' FAB ── */
.mapdisplay-fab-main {
  display: none;
}
@media (max-width: 768px) {
  .mapdisplay-fab-main {
    display: flex;
    position: fixed;
    right: 16px;
    bottom: 24px;
    z-index: 1200;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 24px;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
  }
  .mapdisplay-fab-main:active {
    background: #1d4ed8;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  }
}

/* ═══════════════════════════════════════════════
   지점 그리드 카드 뷰 (공통 — 모바일 3열, PC 5열)
   ═══════════════════════════════════════════════ */
.branch-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-height: none;
  overflow-y: visible;
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 4px 0;
}
.branch-list-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 3px solid #e2e8f0;
  border-bottom: 3px solid #e2e8f0;
  padding: 12px 6px 8px;
  background: #fff;
  cursor: default;
  box-sizing: border-box;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.branch-list-item:last-child {
  border-bottom: 3px solid #e2e8f0;
}
.branch-list-item:hover {
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.12);
  border-color: #93c5fd;
}
.branch-list-item--fixed {
  background: #2563eb !important;
  border-color: #1d4ed8;
  border-width: 3px;
}
.branch-list-item--fixed:hover {
  background: #1d4ed8 !important;
}
.branch-list-item--fixed .branch-card-name {
  color: #fff;
}
.branch-list-item--fixed .branch-card-sub {
  color: #bfdbfe;
}
.branch-list-item--fixed .branch-list-bus-icon--on {
  color: #bfdbfe;
}
.branch-list-item--fixed .branch-list-bus-icon--off {
  color: #93c5fd;
}
.branch-list-item:not(.branch-list-item--fixed):nth-child(even),
.branch-list-item:not(.branch-list-item--fixed):nth-child(odd) {
  background: #fff;
}
.branch-list-item:not(.branch-list-item--fixed):hover {
  background: #f8fafc;
}
.branch-card-name {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  word-break: break-all;
  line-height: 1.4;
  padding: 0 4px;
  width: 100%;
}
.branch-card-sub {
  font-size: 13px;
  font-weight: 400;
  color: #2563eb;
}
.branch-card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
  flex-shrink: 0;
  width: 100%;
}
/* 선택 모드 체크박스 */
.branch-card-checkbox {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #94a3b8;
  background: #fff;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: background 0.12s, border-color 0.12s;
}
.branch-card-checkbox--checked {
  background: #2563eb;
  border-color: #2563eb;
}
.branch-card-checkbox--checked::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(2px, -1px);
  margin: 2px auto 0;
}
.branch-list-item {
  position: relative;
}
.branch-no-primary-hint {
  display: block;
  font-size: 19px;
  font-weight: 600;
  color: #dc2626;
  margin-top: 4px;
}
.branch-list-item--selected {
  border-color: #2563eb !important;
  background: #eff6ff !important;
}
/* + 추가 카드 */
.branch-list-item--add {
  border: 3px dashed #93c5fd;
  background: #f0f7ff !important;
  cursor: pointer;
  justify-content: center;
}
.branch-list-item--add:hover {
  border-color: #2563eb;
  background: #dbeafe !important;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.12);
}
.branch-card-add-icon {
  font-size: 40px;
  font-weight: 300;
  color: #2563eb;
  line-height: 1;
  user-select: none;
}
.branch-card-delete {
  background: none;
  border: none;
  padding: 3px 5px;
  cursor: pointer;
  font-size: 13px;
  border-radius: 6px;
  line-height: 1;
  transition: background 0.12s;
  flex-shrink: 0;
  color: #64748b;
}
.branch-card-delete:hover {
  background: #fee2e2;
}

/* PC: 가로 5열 */
@media (min-width: 769px) {
  .branch-list {
    grid-template-columns: repeat(5, 1fr);
  }
}
