/* 공통 지역 지도 · 레이블 및 말풍선 */

/* 공통 지역 지도 · 도형 및 상태 */
.shared_map {
  position: relative;
  width: 100%;
  aspect-ratio: 555 / 515;
}
/* 페이지별 지도 크기 */
.shared_map.map_img {
  width: min(528px, 100%);
  aspect-ratio: 528 / 494;
  margin: 0 auto;
  flex-shrink: 0;
}
.shared_map.region_map {
  width: min(560px, 100%);
  aspect-ratio: 563 / 527;
}
.shared_map .shared_map_svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.shared_map .shared_map_shapes {
  filter: none;
}
.shared_map .shared_map_region path {
  stroke: #fff;
  stroke-width: 1;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.shared_map .shared_map_surface {
  fill: #ecf3f4;
  transition: fill 0.2s;
}
.shared_map .shared_map_detail {
  display: none;
  pointer-events: none;
}
.shared_map_centers .shared_map_region[data-center] .shared_map_surface {
  fill: #b8e6fe;
  cursor: pointer;
}
.shared_map_centers .shared_map_region.is_hover .shared_map_surface {
  fill: #3eb5f3;
}
.shared_map_centers
  .shared_map_region[data-center="경북광역"]
  .shared_map_surface {
  fill: #ace534;
  cursor: default;
}
.shared_map_centers .center_map_pin[data-center="경북광역"] {
  cursor: default;
}
.shared_map_centers .shared_map_region:focus:not(:focus-visible),
.shared_map_centers .center_map_pin:focus:not(:focus-visible) {
  outline: none;
}
.shared_map_counselors .shared_map_region .shared_map_surface {
  cursor: default;
}
.shared_map_counselors #andong .shared_map_surface {
  fill: #b8e6fe;
  cursor: pointer;
}
.shared_map_counselors #sangju .shared_map_surface {
  fill: #b8e6fe;
  cursor: pointer;
}
.shared_map_counselors #mungyeong .shared_map_surface {
  fill: #b8e6fe;
  cursor: pointer;
}
.shared_map_counselors #cheongsong .shared_map_surface {
  fill: #b8e6fe;
  cursor: pointer;
}
.shared_map_counselors #yeongyang .shared_map_surface {
  fill: #b8e6fe;
  cursor: pointer;
}
.shared_map_counselors #yeongdeok .shared_map_surface {
  fill: #b8e6fe;
  cursor: pointer;
}
.shared_map_counselors #cheongdo .shared_map_surface {
  fill: #b8e6fe;
  cursor: pointer;
}
.shared_map_counselors #goryeong .shared_map_surface {
  fill: #b8e6fe;
  cursor: pointer;
}
.shared_map_counselors #seongju .shared_map_surface {
  fill: #b8e6fe;
  cursor: pointer;
}
.shared_map_counselors #yecheon .shared_map_surface {
  fill: #b8e6fe;
  cursor: pointer;
}
.shared_map_counselors #bonghwa .shared_map_surface {
  fill: #b8e6fe;
  cursor: pointer;
}
.shared_map_counselors #uiseong .shared_map_surface {
  fill: #b8e6fe;
  cursor: pointer;
}
.shared_map_counselors #uljin .shared_map_surface {
  fill: #b8e6fe;
  cursor: pointer;
}
.shared_map_counselors #ulleung .shared_map_surface {
  fill: #b8e6fe;
  cursor: pointer;
}
.shared_map_counselors .shared_map_region.is_on .shared_map_surface {
  fill: #3eb5f3 !important;
}

/* 공통 지역 지도 · 이름 및 연락처 */
.shared_map_svg svg {
  filter: none;
}
.shared_map .center_map_label {
  position: absolute;
  transform: translateX(-50%);
  font-family: var(--font-st2), sans-serif;
  font-size: 16px;
  color: #4599a6;
  white-space: nowrap;
  pointer-events: none;
}

.shared_map .center_map_label.is_on {
  color: #effafc;
}

.shared_map .center_map_pin {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-st2), sans-serif;
  font-size: 16px;
  line-height: 1.3;
  color: #00598a;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  z-index: 2;
}
.shared_map .center_map_pin img {
  width: 11px;
  height: 15px;
}
.shared_map .center_map_pin.is_hover {
  z-index: 5;
}
.shared_map .center_map_tip {
  --tip-border: #3eb5f3;
  --tip-bg: #fff;
  display: none;
  position: absolute;
  top: auto;
  bottom: calc(100% + 35px);
  left: 80%;
  transform: translateX(-50%);
  min-width: 189px;
  padding: 10px 12px;
  border-radius: 14.5px;
  background: var(--tip-bg);
  border: 3px solid var(--tip-border);
  color: #3eb5f3;
  font-family: var(--font-st1), sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  pointer-events: none;
}
.shared_map .center_map_pin.is_hover .center_map_tip {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.shared_map .center_map_tip strong {
  color: #00598a;
  font-weight: 700;
}
.shared_map .center_map_tip::after {
  content: "";
  position: absolute;
  top: auto;
  bottom: -10px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: var(--tip-bg);
  border: 0;
  border-right: 3px solid var(--tip-border);
  border-bottom: 3px solid var(--tip-border);
  -webkit-mask: none;
  mask: none;
  transform: translateX(-50%) rotate(45deg);
}

/* 메인 지도 필터 */
.main_map_filter .shared_map_region.is_selected .shared_map_surface {
  fill: #3eb5f3;
}
.main_map_filter .shared_map_region[data-center="경북광역"] .shared_map_surface,
.main_map_filter .center_map_pin[data-center="경북광역"] {
  cursor: pointer;
}
.main_map_filter
  .shared_map_region[data-center="경북광역"].is_selected
  .shared_map_surface {
  fill: #3eb5f3;
}
.main_map_filter .center_map_pin.is_selected {
  font-weight: 700;
}
.map_content .map_notice [hidden] {
  display: none !important;
}
.map_content .map_empty {
  padding: 3rem 1rem;
  text-align: center;
  color: #666;
}

/* 메인 지도 선택 및 포커스 */
.main_map_filter {
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.main_map_filter .center_map_pin img {
  -webkit-user-drag: none;
  pointer-events: none;
}
.main_map_filter [data-center]:focus:not(:focus-visible) {
  outline: none;
}
.main_map_filter .center_map_pin:focus-visible {
  outline: 2px solid #00598a;
  outline-offset: 3px;
  border-radius: 3px;
}

/* 게시판 머리 — 지도에서 고른 센터 이름과 그 센터 홈페이지 바로가기 (260911)
   링크는 핀의 data-home 이 채워진 센터에서만 나온다. center.js 참고. */
.map_content .map_list_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid #ddd;
}
.map_content .map_list_tit {
  margin: 0;
  color: #222;
  font-weight: 600;
}
.map_content .map_list_link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #428d8d;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}
.map_content .map_list_link:hover {
  text-decoration: none;
  border-bottom-color: currentColor;
}
.map_content .map_list_link .material-symbols-outlined {
  font-size: 1.1rem;
}
/* display 를 준 요소라 hidden 속성이 먹도록 되돌려 준다 */
.map_content .map_list_head[hidden],
.map_content .map_list_link[hidden] {
  display: none;
}

/* Responsive breakpoints: wide to narrow. */

@media (max-width: 500px) {
  .shared_map .center_map_label,
  .shared_map .center_map_pin {
    font-size: 10px;
  }
  .shared_map .center_map_tip {
    min-width: 146px;
    font-size: 16px;
  }

  .shared_map .center_map_label,
  .shared_map .center_map_pin {
    font-size: 10px;
  }
  .shared_map .center_map_tip {
    min-width: 146px;
    font-size: 16px;
  }
}

/* 텍스트와 아이콘 아래에 끊기지 않는 하나의 밑줄을 표시한다. */
.map_content .map_list_link {
  border-bottom: 1px solid transparent;
  padding-bottom: 0.2rem;
  text-decoration: none;
}
.map_content .map_list_link .material-symbols-outlined {
  text-decoration: none;
}
