/* =========================================================
   HARU 감염병 지도
   style.css
========================================================= */


/* =========================================================
   1. 기본
========================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    "Noto Sans KR",
    "Noto Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;

  color: #1f2937;

  background: #eef2f6;

  overflow: hidden;
}

button,
select {
  font-family: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

svg {
  display: block;
}


/* =========================================================
   2. 전체 앱
========================================================= */

.app-shell {
  width: 100%;
  height: 100vh;

  display: flex;
  flex-direction: column;

  background: #eef2f6;
}


/* =========================================================
   3. 상단 헤더
========================================================= */

.topbar {
  height: 58px;
  min-height: 58px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding:
    0 18px;

  background: #111827;

  border-bottom:
    1px solid #273244;

  color: #ffffff;

  z-index: 1000;
}


.brand-area {
  display: flex;
  align-items: center;

  gap: 10px;

  min-width: 0;
}


.brand-mark {
  width: 32px;
  height: 32px;

  flex: 0 0 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;

  background: #1f2937;

  border:
    1px solid #374151;

  color: #ffffff;

  font-size: 13px;

  font-weight: 900;

  box-shadow:
    inset 0 0 0 1px
    rgba(255, 255, 255, 0.03);
}


.brand-copy {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 2px;
}


.brand-title {
  overflow: hidden;

  white-space: nowrap;
  text-overflow: ellipsis;

  font-size: 15px;

  line-height: 1.05;

  font-weight: 900;

  letter-spacing:
    -0.3px;
}


.brand-subtitle {
  color: #8f9bab;

  font-size: 7px;

  line-height: 1;

  letter-spacing:
    1.1px;

  font-weight: 600;
}


.topbar-right {
  display: flex;
  align-items: center;

  gap: 14px;
}


.reference-header {
  display: flex;
  align-items: center;

  gap: 5px;

  color: #d4dae3;

  font-size: 9px;
}


.reference-header-label {
  color: #7e8999;

  font-size: 8px;
}


.reference-header-divider {
  color: #586375;
}


.reference-header strong {
  color: #dfe4eb;

  font-size: 9px;

  font-weight: 800;
}


.source-badge {
  display: flex;
  align-items: center;

  gap: 6px;

  height: 28px;

  padding:
    0 10px;

  border:
    1px solid #364152;

  border-radius: 7px;

  background: #1a2331;

  color: #cdd5df;

  font-size: 8px;

  font-weight: 700;
}


.source-dot {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #c9d1dc;

  box-shadow:
    0 0 0 3px
    rgba(255, 255, 255, 0.05);
}


/* =========================================================
   4. 메인 레이아웃
========================================================= */

.main-layout {
  flex: 1;

  min-height: 0;

  width: 100%;

  display: flex;
}


/* =========================================================
   5. 왼쪽 사이드바
========================================================= */

.sidebar {
  width: 318px;
  min-width: 318px;

  height: 100%;

  padding:
    11px;

  background:
    #f3f5f8;

  border-right:
    1px solid #d9dfe7;

  overflow-y: auto;

  overflow-x: hidden;

  scrollbar-width: thin;

  scrollbar-color:
    #c8cfd8 transparent;

  z-index: 200;
}


.sidebar::-webkit-scrollbar {
  width: 5px;
}


.sidebar::-webkit-scrollbar-thumb {
  background: #c8cfd8;

  border-radius:
    999px;
}


.sidebar::-webkit-scrollbar-track {
  background:
    transparent;
}


.sidebar-section {
  width: 100%;

  margin-bottom: 10px;
}


.section-heading {
  margin:
    0 0 6px;

  color: #4a5564;

  font-size: 10px;

  font-weight: 900;

  letter-spacing:
    -0.1px;
}


/* =========================================================
   6. 감염병 메뉴
========================================================= */

.disease-menu {
  width: 100%;

  padding:
    5px;

  border-radius: 8px;

  background:
    #171f2c;

  border:
    1px solid #263243;

  box-shadow:
    0 5px 15px
    rgba(
      15,
      23,
      42,
      0.14
    );
}


.disease-menu-button {
  width: 100%;

  height: 29px;

  display: flex;
  align-items: center;

  gap: 8px;

  padding:
    0 8px;

  border: 0;

  border-radius: 5px;

  background:
    transparent;

  color: #d0d7e1;

  text-align: left;

  font-size: 9px;

  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.1s ease;
}


.disease-menu-button:hover {
  background:
    #222c3b;

  color: #ffffff;
}


.disease-menu-button:active {
  transform:
    scale(0.99);
}


.disease-menu-button.active {
  background:
    #3b6ef5;

  color: #ffffff;

  box-shadow:
    0 2px 6px
    rgba(
      59,
      110,
      245,
      0.28
    );
}


.disease-menu-divider {
  height: 24px;

  display: flex;
  align-items: flex-end;

  padding:
    0 8px 5px;

  margin-top: 3px;

  color: #667386;

  border-top:
    1px solid #293547;

  font-size: 7px;

  font-weight: 800;

  letter-spacing:
    0.3px;
}


.menu-icon {
  width: 13px;

  flex: 0 0 13px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  color: #97a3b3;

  font-size: 8px;
}


.corona-icon {
  color: #7d9bff;
}


.influenza-icon {
  color: #ff6464;
}


.rsv-icon {
  color: #ae8aff;
}


.measles-icon {
  color: #ff994e;
}


.pertussis-icon {
  color: #f5d34c;
}


.tuberculosis-icon {
  color: #bc74ed;
}


.malaria-icon {
  color: #54c37b;
}


.je-icon {
  color: #b68b4e;
}


.sfts-icon {
  color: #ff8d49;
}


.mpox-icon {
  color: #c271e9;
}


.mers-icon {
  color: #ff6565;
}


.meningococcal-icon {
  color: #52b6a9;
}


.dengue-icon {
  color: #ea64a0;
}


/* =========================================================
   7. 전국 현황 카드
========================================================= */

.national-card {
  width: 100%;

  min-height: 64px;

  display: flex;
  align-items: center;

  gap: 9px;

  padding:
    9px 10px;

  margin-bottom: 7px;

  border:
    1px solid #dfe5eb;

  border-radius: 8px;

  background:
    #ffffff;

  box-shadow:
    0 2px 5px
    rgba(
      15,
      23,
      42,
      0.035
    );
}


.national-card-icon {
  width: 17px;

  flex: 0 0 17px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 8px;
}


.influenza-card
.national-card-icon {
  color: #ef4444;
}


.corona-card
.national-card-icon {
  color: #2563eb;
}


.neutral-card
.national-card-icon {
  color: #8792a0;
}


.national-card-content {
  min-width: 0;

  flex: 1;
}


.national-card-label {
  margin-bottom: 2px;

  color: #697585;

  font-size: 8px;

  line-height: 1.1;

  font-weight: 700;
}


.national-card-value-row {
  display: flex;
  align-items: baseline;

  gap: 4px;
}


.national-card-value-row strong {
  color: #202938;

  font-size: 21px;

  line-height: 1;

  font-weight: 900;

  letter-spacing:
    -0.5px;
}


.national-card-value-row span {
  color: #87919f;

  font-size: 7px;

  font-weight: 600;
}


.national-card-meta {
  margin-top: 3px;

  color: #a1a9b4;

  font-size: 7px;

  line-height: 1.1;
}


/* =========================================================
   8. 추세
========================================================= */

.trend-heading {
  display: flex;
  align-items: center;

  justify-content: space-between;

  gap: 8px;
}


.trend-legend {
  display: flex;
  align-items: center;

  gap: 7px;

  color: #9099a5;

  font-size: 6px;
}


.trend-legend span {
  display: flex;
  align-items: center;

  gap: 3px;
}


.legend-small {
  width: 5px;
  height: 5px;

  display: inline-block;

  border-radius: 50%;
}


.legend-small.influenza {
  background: #ef4444;
}


.legend-small.corona {
  background: #2563eb;
}


.trend-card {
  width: 100%;

  padding:
    7px 7px 2px;

  border:
    1px solid #dfe5eb;

  border-radius: 8px;

  background:
    #ffffff;

  box-shadow:
    0 2px 5px
    rgba(
      15,
      23,
      42,
      0.025
    );
}


.trend-chart {
  width: 100%;

  height: 120px;
}


/* =========================================================
   9. 기준 정보
========================================================= */

.reference-box {
  width: 100%;

  padding:
    6px 10px;

  border:
    1px solid #dfe5eb;

  border-radius: 8px;

  background:
    #ffffff;
}


.reference-box-row {
  min-height: 23px;

  display: flex;
  align-items: center;

  justify-content: space-between;

  gap: 10px;

  border-bottom:
    1px solid #edf0f3;
}


.reference-box-row:last-child {
  border-bottom: 0;
}


.reference-box-row span {
  color: #9099a5;

  font-size: 7px;

  font-weight: 600;
}


.reference-box-row strong {
  color: #46515f;

  font-size: 7px;

  font-weight: 800;

  text-align: right;
}


/* =========================================================
   10. 지역 선택
========================================================= */

.region-select {
  width: 100%;

  height: 34px;

  padding:
    0 10px;

  border:
    1px solid #d7dee6;

  border-radius: 7px;

  background:
    #ffffff;

  color: #364152;

  outline: none;

  font-size: 8px;

  font-weight: 700;

  cursor: pointer;

  appearance: auto;
}


.region-select:hover {
  border-color:
    #b8c1cc;
}


.region-select:focus {
  border-color:
    #6d7d93;

  box-shadow:
    0 0 0 2px
    rgba(
      59,
      110,
      245,
      0.08
    );
}


/* =========================================================
   11. 현재 위치 버튼
========================================================= */

.location-button {
  width: 100%;

  height: 34px;

  border:
    1px solid #d7dee6;

  border-radius: 7px;

  background:
    #ffffff;

  color: #45515f;

  font-size: 8px;

  font-weight: 800;

  cursor: pointer;

  transition:
    background 0.15s ease,
    transform 0.12s ease;
}


.location-button:hover {
  background:
    #f8fafc;
}


.location-button:active {
  transform:
    scale(0.99);
}


/* =========================================================
   12. 사이드바 하단
========================================================= */

.sidebar-footer {
  margin-top: 12px;

  padding:
    9px 3px 2px;

  border-top:
    1px solid #dce2e8;
}


.footer-title {
  margin-bottom: 3px;

  color: #667180;

  font-size: 8px;

  font-weight: 900;
}


.footer-description {
  color: #9ba4b0;

  font-size: 6px;

  line-height: 1.6;
}


/* =========================================================
   13. 오른쪽 지도 영역
========================================================= */

.map-column {
  flex: 1;

  min-width: 0;

  min-height: 0;

  display: flex;

  flex-direction: column;

  background:
    #e8edf2;
}


/* =========================================================
   14. 지도
========================================================= */

.map-container {
  position: relative;

  flex: 1;

  min-height: 0;

  overflow: hidden;

  background:
    #dfe6ed;
}


#map {
  width: 100%;

  height: 100%;
}


/* =========================================================
   15. 지도 타이틀
========================================================= */

.map-floating-title {
  position: absolute;

  top: 11px;
  left: 11px;

  z-index: 20;

  display: flex;
  align-items: center;

  gap: 7px;

  padding:
    7px 10px;

  border:
    1px solid
    rgba(
      215,
      222,
      230,
      0.95
    );

  border-radius: 7px;

  background:
    rgba(
      255,
      255,
      255,
      0.95
    );

  box-shadow:
    0 5px 15px
    rgba(
      15,
      23,
      42,
      0.10
    );

  backdrop-filter:
    blur(8px);
}


.map-floating-icon {
  width: 25px;
  height: 25px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 6px;

  background:
    #111827;

  color:
    #ffffff;

  font-size: 8px;

  font-weight: 900;
}


.map-floating-main {
  color:
    #283341;

  font-size: 10px;

  line-height: 1;

  font-weight: 900;
}


.map-floating-sub {
  margin-top: 2px;

  color:
    #8c96a3;

  font-size: 6px;

  line-height: 1.1;
}


/* =========================================================
   16. 지도 필터
========================================================= */

.map-filter {
  position: absolute;

  top: 11px;
  left: 138px;

  z-index: 20;

  display: flex;
  align-items: center;

  gap: 2px;

  padding:
    3px;

  border:
    1px solid
    rgba(
      215,
      222,
      230,
      0.95
    );

  border-radius: 7px;

  background:
    rgba(
      255,
      255,
      255,
      0.95
    );

  box-shadow:
    0 5px 15px
    rgba(
      15,
      23,
      42,
      0.08
    );

  backdrop-filter:
    blur(8px);

  max-width:
    calc(
      100% - 320px
    );

  overflow-x: auto;

  scrollbar-width: none;
}


.map-filter::-webkit-scrollbar {
  display: none;
}


.map-filter-button {
  height: 25px;

  padding:
    0 8px;

  border: 0;

  border-radius: 5px;

  background:
    transparent;

  color: #6f7a88;

  font-size: 7px;

  font-weight: 800;

  white-space: nowrap;

  cursor: pointer;

  transition:
    background 0.15s ease,
    color 0.15s ease;
}


.map-filter-button:hover {
  color:
    #253041;

  background:
    #f1f4f7;
}


.map-filter-button.active {
  background:
    #3b6ef5;

  color:
    #ffffff;

  box-shadow:
    0 2px 6px
    rgba(
      59,
      110,
      245,
      0.22
    );
}


.disabled-map-filter {
  opacity:
    0.45;
}


/* =========================================================
   17. 지도 현재 위치 버튼
========================================================= */

.map-current-button {
  position: absolute;

  right: 11px;
  bottom: 40px;

  z-index: 20;

  width: 31px;
  height: 31px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border:
    1px solid #d5dce4;

  border-radius: 6px;

  background:
    rgba(
      255,
      255,
      255,
      0.96
    );

  color:
    #536172;

  font-size: 14px;

  cursor: pointer;

  box-shadow:
    0 5px 12px
    rgba(
      15,
      23,
      42,
      0.09
    );

  transition:
    transform 0.12s ease,
    background 0.12s ease;
}


.map-current-button:hover {
  background:
    #ffffff;

  transform:
    translateY(-1px);
}


.map-current-button:active {
  transform:
    scale(0.97);
}


/* =========================================================
   18. 지도 범례
========================================================= */

.map-legend {
  position: absolute;

  left: 11px;
  bottom: 11px;

  z-index: 20;

  display: flex;
  align-items: center;

  flex-wrap: wrap;

  gap: 9px;

  padding:
    6px 8px;

  border:
    1px solid
    rgba(
      215,
      222,
      230,
      0.95
    );

  border-radius: 7px;

  background:
    rgba(
      255,
      255,
      255,
      0.95
    );

  box-shadow:
    0 5px 15px
    rgba(
      15,
      23,
      42,
      0.08
    );

  backdrop-filter:
    blur(8px);
}


.map-legend-item {
  display: flex;
  align-items: center;

  gap: 4px;

  color:
    #64707f;

  font-size: 7px;

  font-weight: 700;
}


.legend-marker {
  width: 8px;
  height: 8px;

  display: inline-block;

  flex: 0 0 8px;

  border-radius: 50%;
}


.influenza-marker {
  background:
    #ef4444;
}


.corona-marker {
  background:
    #2563eb;
}


.other-marker {
  background:
    #8b5cf6;
}


.sigungu-marker {
  background:
    #ffffff;

  border:
    2px solid #555f6d;
}


/* =========================================================
   19. 지도 상태
========================================================= */

.status-message {
  position: absolute;

  left: 50%;
  top: 50%;

  transform:
    translate(
      -50%,
      -50%
    );

  z-index: 100;

  display: none;

  max-width:
    calc(
      100% - 40px
    );

  padding:
    9px 13px;

  border-radius: 7px;

  background:
    rgba(
      17,
      24,
      39,
      0.93
    );

  color:
    #ffffff;

  font-size: 8px;

  line-height: 1.4;

  font-weight: 800;

  text-align: center;

  box-shadow:
    0 8px 25px
    rgba(
      15,
      23,
      42,
      0.15
    );
}


/* =========================================================
   20. 오른쪽 상세 패널
========================================================= */

.map-detail-panel {
  position: absolute;

  top: 62px;
  right: 11px;

  z-index: 20;

  width: 230px;

  max-width:
    calc(
      100% - 22px
    );

  display: block;

  border:
    1px solid
    rgba(
      215,
      222,
      230,
      0.95
    );

  border-radius: 9px;

  background:
    rgba(
      255,
      255,
      255,
      0.96
    );

  box-shadow:
    0 8px 24px
    rgba(
      15,
      23,
      42,
      0.12
    );

  overflow: hidden;

  backdrop-filter:
    blur(10px);
}


.map-detail-panel.visible {
  display:
    block;
}


/* =========================================================
   21. 상세 패널 헤더
========================================================= */

.detail-panel-header {
  display: flex;
  align-items: center;

  justify-content: space-between;

  padding:
    9px 10px;

  background:
    #ffffff;

  border-bottom:
    1px solid #edf0f3;
}


.detail-region-name {
  color:
    #202938;

  font-size: 11px;

  line-height: 1;

  font-weight: 900;
}


.detail-region-subtitle {
  margin-top: 3px;

  color:
    #929ba7;

  font-size: 6px;

  line-height: 1.2;
}


/* =========================================================
   22. 상세 패널 본문
========================================================= */

.detail-panel-body {
  padding:
    8px 10px 9px;
}


/* =========================================================
   23. 상세 질병 행
========================================================= */

.detail-disease-row {
  min-height: 27px;

  display: grid;

  grid-template-columns:
    8px
    minmax(0, 1fr)
    auto
    auto;

  align-items: center;

  gap: 5px;

  border-bottom:
    1px solid #edf0f3;
}


.detail-disease-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;
}


.detail-disease-dot.influenza {
  background:
    #ef4444;
}


.detail-disease-dot.corona {
  background:
    #2563eb;
}


.detail-disease-dot.measles {
  background:
    #f97316;
}


.detail-disease-dot.tuberculosis {
  background:
    #a855f7;
}


.detail-disease-dot.malaria {
  background:
    #16a34a;
}


.detail-disease-name {
  min-width: 0;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;

  color:
    #6f7b89;

  font-size: 7px;

  font-weight: 700;
}


.detail-disease-row strong {
  color:
    #283241;

  font-size: 10px;

  font-weight: 900;

  text-align: right;
}


.detail-disease-row > span:last-child {
  color:
    #8f98a4;

  font-size: 6px;

  white-space: nowrap;
}


/* =========================================================
   24. 상세 메타 행
========================================================= */

.detail-meta-row {
  min-height: 23px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 10px;

  border-bottom:
    1px solid #edf0f3;
}


.detail-meta-row:last-child {
  border-bottom: 0;
}


.detail-meta-row span {
  color:
    #9aa3ae;

  font-size: 6px;
}


.detail-meta-row strong {
  color:
    #526070;

  font-size: 6px;

  font-weight: 800;

  text-align: right;
}


/* =========================================================
   25. 시스템 흐름도
========================================================= */

.system-flow-section {
  flex:
    0 0 105px;

  padding:
    7px 9px 8px;

  background:
    #eef2f6;

  border-top:
    1px solid #d9dfe7;
}


.system-flow-title {
  height: 18px;

  display: flex;
  align-items: center;

  gap: 8px;
}


.system-flow-title > span:first-child {
  color:
    #394453;

  font-size: 9px;

  font-weight: 900;
}


.system-flow-description {
  color:
    #9aa3ae;

  font-size: 6px;
}


/* =========================================================
   26. 흐름도
========================================================= */

.system-flow {
  width: 100%;

  height: 73px;

  display: flex;
  align-items: stretch;

  gap: 5px;
}


.flow-card {
  position: relative;

  min-width: 0;

  flex: 1;

  display: flex;
  align-items: center;

  gap: 7px;

  padding:
    7px;

  border:
    1px solid #dfe5eb;

  border-radius: 7px;

  background:
    #ffffff;

  box-shadow:
    0 2px 5px
    rgba(
      15,
      23,
      42,
      0.025
    );
}


.flow-number {
  position: absolute;

  top: 4px;
  right: 5px;

  color:
    #bcc4ce;

  font-size: 6px;

  font-weight: 900;
}


.flow-icon {
  width: 30px;
  height: 30px;

  flex:
    0 0 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 7px;

  font-size: 7px;

  font-weight: 900;
}


.flow-icon.mongo {
  background:
    #eaf8ee;

  color:
    #237a43;
}


.flow-icon.express {
  background:
    #edf5ff;

  color:
    #2563eb;
}


.flow-icon.frontend {
  background:
    #f2efff;

  color:
    #6956d7;
}


.flow-icon.user {
  background:
    #fff3e8;

  color:
    #d97706;
}


.flow-copy {
  min-width: 0;

  display: flex;

  flex-direction: column;

  gap: 2px;
}


.flow-copy strong {
  color:
    #35404d;

  font-size: 7px;

  line-height: 1.1;

  font-weight: 900;
}


.flow-copy span {
  color:
    #687382;

  font-size: 6px;

  line-height: 1.2;
}


.flow-copy small {
  color:
    #9ca5b0;

  font-size: 5px;

  line-height: 1.1;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;
}


.flow-arrow {
  width: 18px;

  flex:
    0 0 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  color:
    #84909f;

  font-size: 16px;

  font-weight: 700;
}


/* =========================================================
   27. 시도 질병 마커
========================================================= */

.disease-marker-wrap {
  display: flex;
  align-items: center;
  justify-content: center;

  pointer-events: auto;
}


.disease-marker {
  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background:
    var(--disease-color, #64748b);

  color:
    #ffffff;

  text-align: center;

  border:
    2px solid
    rgba(
      255,
      255,
      255,
      0.90
    );

  box-shadow:
    0 5px 13px
    rgba(
      15,
      23,
      42,
      0.20
    );

  cursor: pointer;

  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}


.disease-marker:hover {
  transform:
    scale(1.08);

  box-shadow:
    0 7px 18px
    rgba(
      15,
      23,
      42,
      0.25
    );
}


.disease-marker-region {
  max-width:
    42px;

  overflow: hidden;

  white-space: nowrap;

  text-overflow: ellipsis;

  margin-bottom: 2px;

  font-size: 7px;

  line-height: 1;

  font-weight: 900;
}


.disease-marker-value {
  font-size: 13px;

  line-height: 1;

  font-weight: 900;

  letter-spacing:
    -0.4px;
}


.disease-marker-unit {
  max-width:
    42px;

  margin-top: 2px;

  overflow: hidden;

  white-space: nowrap;

  text-overflow: ellipsis;

  font-size: 5px;

  line-height: 1;

  opacity:
    0.88;
}


/* =========================================================
   28. 시군구 작은 마커
========================================================= */

.small-map-marker {
  width: 8px;

  height: 8px;

  border-radius: 50%;

  background:
    #ffffff;

  border:
    1.5px solid
    #555f6d;

  box-shadow:
    0 1px 4px
    rgba(
      0,
      0,
      0,
      0.32
    );

  cursor: pointer;

  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}


.small-map-marker:hover {
  transform:
    scale(1.6);

  box-shadow:
    0 2px 7px
    rgba(
      0,
      0,
      0,
      0.42
    );
}


/* =========================================================
   29. 현재 위치 마커
========================================================= */

.current-location-marker {
  position: relative;

  width: 24px;
  height: 24px;
}


.current-location-pulse {
  position: absolute;

  left: 50%;
  top: 50%;

  width: 23px;
  height: 23px;

  transform:
    translate(
      -50%,
      -50%
    );

  border-radius: 50%;

  background:
    rgba(
      37,
      99,
      235,
      0.18
    );

  animation:
    locationPulse 1.8s
    infinite;
}


.current-location-dot {
  position: absolute;

  left: 50%;
  top: 50%;

  width: 11px;
  height: 11px;

  transform:
    translate(
      -50%,
      -50%
    );

  border-radius: 50%;

  background:
    #2563eb;

  border:
    2px solid
    #ffffff;

  box-shadow:
    0 2px 7px
    rgba(
      0,
      0,
      0,
      0.28
    );
}


@keyframes locationPulse {

  0% {
    transform:
      translate(
        -50%,
        -50%
      )
      scale(
        0.70
      );

    opacity:
      0.85;
  }

  70% {
    transform:
      translate(
        -50%,
        -50%
      )
      scale(
        1.45
      );

    opacity:
      0;
  }

  100% {
    transform:
      translate(
        -50%,
        -50%
      )
      scale(
        1.45
      );

    opacity:
      0;
  }

}


/* =========================================================
   30. Naver InfoWindow
========================================================= */

.map-info-window {
  width: 220px;

  padding:
    11px;

  border:
    1px solid #dfe5eb;

  border-radius: 9px;

  background:
    #ffffff;

  box-shadow:
    0 9px 25px
    rgba(
      15,
      23,
      42,
      0.15
    );

  color:
    #1f2937;
}


.info-window-title {
  color:
    #202938;

  font-size: 12px;

  line-height: 1;

  font-weight: 900;
}


.info-window-subtitle {
  margin-top: 3px;
  margin-bottom: 7px;

  color:
    #939ca8;

  font-size: 7px;

  line-height: 1.3;
}


.info-window-main {
  display: grid;

  grid-template-columns:
    7px
    minmax(0, 1fr)
    auto;

  align-items: center;

  gap: 5px;

  padding:
    7px;

  margin-bottom: 6px;

  border-radius: 7px;

  background:
    #f7f9fb;
}


.info-window-main > span:not(.info-window-dot) {
  min-width: 0;

  color:
    #677382;

  font-size: 7px;

  font-weight: 700;
}


.info-window-main > strong {
  color:
    #263140;

  font-size: 12px;

  font-weight: 900;

  white-space: nowrap;
}


.info-window-main > strong small {
  color:
    #8b95a2;

  font-size: 6px;

  font-weight: 700;
}


.info-window-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;
}


.info-window-row {
  min-height: 22px;

  display: flex;
  align-items: center;

  justify-content: space-between;

  gap: 10px;

  border-bottom:
    1px solid #edf0f3;
}


.info-window-row:last-of-type {
  border-bottom: 0;
}


.info-window-row span {
  color:
    #929ba6;

  font-size: 6px;
}


.info-window-row strong {
  color:
    #4a5664;

  font-size: 6px;

  font-weight: 800;

  text-align: right;
}


.info-window-source {
  margin-top: 7px;

  color:
    #a0a8b2;

  font-size: 5px;

  line-height: 1.4;
}


.sigungu-warning {
  margin-bottom: 6px;

  padding:
    6px 7px;

  border-radius: 6px;

  background:
    #f7f8fa;

  color:
    #858e9a;

  font-size: 6px;

  line-height: 1.5;
}


.info-empty {
  padding:
    7px 0;

  color:
    #9ca5af;

  font-size: 6px;

  text-align: center;
}


/* =========================================================
   31. Naver 지도 기본 UI와 겹침 방지
========================================================= */

.naver-map,
#map {
  -webkit-user-select: none;

  user-select: none;
}


#map img {
  max-width: none;
}


/* =========================================================
   32. 반응형 - 중간
========================================================= */

@media (
  max-width: 1100px
) {

  .sidebar {
    width: 280px;

    min-width: 280px;
  }


  .map-filter {
    left: 125px;
  }


  .map-detail-panel {
    width: 215px;
  }


  .reference-header {
    display: none;
  }

}


/* =========================================================
   33. 반응형 - 태블릿
========================================================= */

@media (
  max-width: 820px
) {

  body {
    overflow: auto;
  }


  .app-shell {
    height: auto;

    min-height: 100vh;
  }


  .topbar {
    position: relative;

    height: 54px;

    min-height: 54px;
  }


  .main-layout {
    display: block;

    height: auto;
  }


  .sidebar {
    width: 100%;

    min-width: 0;

    height: auto;

    border-right: 0;

    border-bottom:
      1px solid #d9dfe7;

    overflow:
      visible;
  }


  .map-column {
    width: 100%;

    height:
      calc(
        100vh - 54px
      );

    min-height:
      600px;
  }


  .system-flow-section {
    min-height: 105px;

    overflow-x: auto;
  }


  .system-flow {
    min-width:
      760px;
  }

}


/* =========================================================
   34. 반응형 - 모바일
========================================================= */

@media (
  max-width: 560px
) {

  .topbar {
    padding:
      0 11px;
  }


  .brand-title {
    font-size: 12px;
  }


  .brand-subtitle {
    font-size: 6px;
  }


  .source-badge {
    display: none;
  }


  .sidebar {
    padding:
      9px;
  }


  .national-card-value-row strong {
    font-size: 20px;
  }


  .map-floating-title {
    top: 8px;
    left: 8px;
  }


  .map-filter {
    left: 112px;

    top: 8px;

    max-width:
      calc(
        100% - 120px
      );
  }


  .map-detail-panel {
    top: 54px;

    right: 8px;

    width: 205px;
  }


  .map-legend {
    left: 8px;

    right: 8px;

    bottom: 8px;

    max-width:
      calc(
        100% - 16px
      );
  }


  .map-current-button {
    right: 8px;

    bottom: 53px;
  }

}


/* =========================================================
   35. 접근성
========================================================= */

button:focus-visible,
select:focus-visible {
  outline:
    2px solid #3b6ef5;

  outline-offset:
    2px;
}


/* =========================================================
   36. 프린트
========================================================= */

@media print {

  body {
    overflow: visible;

    background:
      #ffffff;
  }


  .topbar {
    background:
      #ffffff;

    color:
      #111827;

    border-bottom:
      1px solid #d9dfe7;
  }


  .sidebar {
    border-right:
      1px solid #d9dfe7;
  }

}