/* 1. Map Container Setup */

/*260731*/
.divpage {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 3%;
  align-items: flex-start;
  justify-content: center;
}

.left-info {
  width: 48%;
  height: auto;
  min-height: 300px;
  max-height: 685px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: flex-start;
  align-items: center;
}

.mapzna { width: 100%; height: auto; min-height: 100px; padding: 0; }

.mapzna ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.mapzna ul li {
  text-align: center;
  width: calc((100% - 20px) / 3);
  height: 50px;
  border: solid 1px #C2C3D6;
  border-radius: 5px;
  font-size: 18px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  cursor:pointer;
}

.mapzna ul li.active { background: #16B8A6; border-color: #16B8A6; border-radius: 5px; color: white; }

/* 위치명 검색 */
.place-search-box {
  width: 100%; display: flex; align-items: center; gap: 10px;
  margin-top: 10px; margin-bottom: -8px;
}
.place-search-box .place-search-label {
  flex: none; font-size: 15px; font-weight: 600; color: #333; white-space: nowrap;
}
.place-search-box .place-search-input {
  flex: 1; height: 44px; padding: 0 12px; box-sizing: border-box;
  border: solid 1px #C2C3D6; border-radius: 5px; font-size: 15px;
}
.place-search-box .place-search-input:focus { outline: none; border-color: #4335A2; }
.place-search-box .place-search-btn {
  height: 44px; padding: 0 20px; border: none; border-radius: 5px;
  background: #16B8A6; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}
.place-search-box .place-search-btn:hover { background: #129b8c; }
.place-search-message { width: 100%; margin: 0 0 -12px; color: #e74c3c; font-size: 14px; min-height: 20px; }

.list-note { width: 100%; margin: 4px 0 -8px; color: #888; font-size: 13px; text-align: right; }

/* 검색으로 찾은 목록 항목 강조 */
.equipmentRow.search-match { background: #FFF3CD; animation: equipmentRowPulse 1.2s ease-in-out 2; }
@keyframes equipmentRowPulse {
  0%, 100% { background-color: #FFF3CD; }
  50% { background-color: #FFE08A; }
}

.mapznb { width: 100%; min-height: 400px; flex: 1; border: solid 1px #C2C3D6;
  border-radius: 5px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
.mapznb .title { text-align: center; font-size: 18px; font-weight: bold; margin: 20px 0px; }

/* Table layout */
.mapznb table { width: 97%; border-collapse: collapse; font-size: 16px; line-height: 24px; text-align: center; }
.mapznb table tr { border-bottom: 1px solid #b4b4b4; }
.equipmentRow { cursor: pointer; }
.place-region-tag { color: #4335A2; font-weight: 600; font-size: 0.92em; }
.place-region-tag[data-region="양구읍"] { color: #C83E30; }
.place-region-tag[data-region="국토정중앙면"] { color: #8E44AD; }
.place-region-tag[data-region="동면"] { color: #276F9E; }
.place-region-tag[data-region="방산면"] { color: #079176; }
.place-region-tag[data-region="해안면"] { color: #F49C11; }
.equipmentRow:hover { background: #F5FCFF; }
.equipmentRow.active { background: #E3FBF7; }
.mapznb table th { background: #F5FCFF; }

/* Vertical borders between table cells */
.mapznb table th,
.mapznb table td { border-right: 1px solid #b4b4b4; padding: 12px; }

/* Remove right border on the last column */
.mapznb table th:last-child,
.mapznb table td:last-child { border-right: none; }
/* NOTE: removed duplicate `.mapznb table td:last-child { text-align:center; }` —
   text-align:center is already set globally on `.mapznb table`, so it was a no-op. */

@media screen and (max-width: 786px) {
  .divpage { flex-direction: column; gap: 20px; width: 100%; }
  .left-info { min-height: 0px; width: 100% !important; }
  .map-container { width: 100% !important; }
  .mapznb { display: none !important; }
  .map-image { width: 80% !important; }
  .mapzna ul li { font-size: 16px; }
}
/*260731*/

/* NOTE: removed the old commented-out `.map-container` rule (dead code, superseded below). */
.map-container {
  position: relative; display: flex; justify-content: center; width: 50%; align-items: center;
  border: 1px solid #C2C3D6; border-radius: 5px; padding: 30px; background: #F8FEFC; }

.map-image { width: 460px; height: auto; display: block; filter: drop-shadow(4px 4px 5px rgba(0, 45, 41, 0.395)); }

@media screen and (min-width: 769px) and (max-width: 1044px) {
  .map-image { width: 360px; }
  .left-info { max-height: 546px; }
  .mapznb table { font-size: 14px; line-height: 1.5; }
}

/* 2. Pin / Pointer Styling */
.pin { position: absolute; width: 26px; height: 26px; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; }

/* Teardrop Pin Shape */
.pin::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: #5091b5;
  border: 1px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
  box-sizing: border-box;
}

/* 소속 읍면동에 따른 마커 기본 배경색 */
.pin[data-region="양구읍"]::before { background-color: #ea8383; }
.pin[data-region="국토정중앙면"]::before { background-color: #8E44AD; }
.pin[data-region="동면"]::before { background-color: #276F9E ; }
.pin[data-region="방산면"]::before { background-color: #079176; }
.pin[data-region="해안면"]::before { background-color: #F49C11 ; }
.pin:hover::before, .pin.pin-highlight::before { background-color: #5091b5; transform: rotate(-45deg) scale(1.1); z-index: 500; }


/* 지역별 마우스오버 강조 색상 (기본색보다 어둡게) */
.pin[data-region="양구읍"]:hover::before, .pin[data-region="양구읍"].pin-highlight::before { background-color:#77a0ba; }
.pin[data-region="국토정중앙면"]:hover::before, .pin[data-region="국토정중앙면"].pin-highlight::before { background-color: #2e77a0; }
.pin[data-region="동면"]:hover::before, .pin[data-region="동면"].pin-highlight::before { background-color: #0B4971; }
.pin[data-region="방산면"]:hover::before, .pin[data-region="방산면"].pin-highlight::before { background-color: #0A6754; }
.pin[data-region="해안면"]:hover::before, .pin[data-region="해안면"].pin-highlight::before { background-color:#cc7676 ; }



/* 목록번호 배지 (기존 흰색 점 대신 표시) */
.pin-number {
  position: relative;
  top: 1px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  z-index: 500;
  pointer-events: none;
  user-select: none;
}

/* Hover Tooltip */
.pin-tooltip {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(4px); background: #2c3e50; 
  color: #fff; padding: 6px 10px; border-radius: 6px; font-size: 12px; white-space: nowrap; 
  opacity: 0; pointer-events: none;  transition: opacity 0.2s ease, transform 0.2s ease; z-index: 20; }
  
.pin-tooltip::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: #2c3e50; }
.pin:hover .pin-tooltip, .pin.pin-highlight .pin-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }
.pin:hover, .pin.pin-highlight { z-index: 500; }
.pin.active .pin-tooltip { opacity: 0; }

/* 위치명 검색으로 찾은 마커 강조 */
.pin.search-match { z-index: 500; }
.pin.search-match::before,
.pin[data-region].search-match:hover::before,
.pin[data-region].search-match.pin-highlight::before {
  background-color: #ff9800;
  box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.35);
  animation: pinSearchPulse 1.2s ease-in-out infinite;
}
.pin.search-match .pin-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }
@keyframes pinSearchPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.35); }
  50% { box-shadow: 0 0 0 9px rgba(255, 152, 0, 0.15); }
}

/* 카카오맵 마커 클릭 시 위쪽에 뜨는 주소 + 대표이미지 정보 오버레이 */
.marker-overlay {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  margin-bottom: 38px;
  background: #ffffff;
  border: 1px solid #C2C3D6;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  padding: 8px;
  width: 180px;
  /* 카카오맵이 오버레이 wrapper에 white-space:nowrap을 상속시키는 경우가 있어 명시적으로 덮어씀 */
  white-space: normal;
  text-align: center;
  font-size: 12px;
}

.marker-overlay-image {
  display: block;
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
}

.marker-overlay::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #ffffff;
}

/* 3. Popup Overlay Styling (Centered Modal for All Screens) */
.popup {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw; max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  background: #ffffff;
  color: black;
  font-size: 14px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 10001;
  cursor: default;
  box-sizing: border-box;
}
.popup h4 { margin: 0 0 10px 0; color: black; font-size: 18px; }
.popup p { margin: 0 0 12px 0; line-height: 1.5; }

/* 4. Backdrop Overlay */
.map-container::after {
  content: '';
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10001;
}
.map-container:has(.pin.active)::after { display: block; }

.pin.active { z-index: 999; }

.album { display: flex; }

.map-btn {
  width: 1em; height: 1em;
  display: inline-block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-dets { height: auto; min-height: fit-content; margin-bottom: 30px; line-height: 1.5; }

.usage-guide {
  background: #F8FEFC;
  border: 1px solid #C2C3D6;
  border-radius: 8px;
  padding: 18px 22px;
}

.usage-guide-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.usage-guide-title-row .usage-guide-title {
  margin: 0;
}

.usage-guide-title {
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: 700;
  color: #158274;
}

/* 가이드 제목 옆에 눈에 띄게 강조하는 안내 문구 배지 */
.usage-guide-highlight {
  display: inline-block;
  background: #FFF3E0;
  border: 1.5px solid #FF8A00;
  color: #D84300;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(255, 138, 0, 0.25);
}

.usage-guide-note {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #555;
}

.usage-guide-list {
  margin: 0;
  padding-left: 20px;
}

.usage-guide-list li {
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.6;
}

.usage-guide-list li:last-child {
  margin-bottom: 0;
}

.usage-guide-period {
  margin: 12px 0 0 0;
  padding: 10px 14px;
  list-style: none;
  background: #EFF9F7;
  border-left: 3px solid #16B8A6;
  border-radius: 4px;
}

.usage-guide-period li {
  position: relative;
  padding-left: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #158274;
  line-height: 1.6;
}

.usage-guide-period li::before {
  content: '*';
  position: absolute;
  left: 0;
}

.usage-guide-period li + li {
  margin-top: 4px;
}

/* 포충기 가이드: 텍스트와 예시 사진을 나란히 배치 */
.usage-guide-body {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.usage-guide-text {
  flex: 1 1 auto;
  min-width: 0;
}

.usage-guide-photo {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.usage-guide-photo-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 1px solid #C2C3D6;
  border-radius: 8px;
  background: #fff;
}

.usage-guide-photo-caption {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

@media screen and (max-width: 786px) {
  .usage-guide-body { flex-direction: column; align-items: center; }
  .usage-guide-photo-img { width: 100%; max-width: 150px; height: auto; aspect-ratio: 1 / 1; }
}

.imgbtnup {margin-bottom: 10px; }
.imgbtndwn {margin-top: 10px;}
.imgbtnup, 
.imgbtndwn{width: 35px; height:auto;}
.imgbtnup:hover,
.imgbtndwn:hover{scale: 1.2; transition: scale 0.2s ease;}
.imgbtnup.album-nav-hidden,
.imgbtndwn.album-nav-hidden { display: none; }
.nwbttn {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  outline: inherit;
}

.eq-map { width: 100%; height: 400px; margin: 16px 0; }

.map-boundary-credit { margin: 4px 0 0 0; font-size: 11px; color: #999; text-align: right; }

#equipmentPopup { display: none; }
#equipmentPopup.active { display: block; }

#equipmentPopup .close-btn { position: absolute; top: 12px; right: 12px; z-index: 20;
  width: 24px; height: 24px; cursor: pointer;}
#equipmentPopup .close-btn:hover { opacity: 0.7; }

/* 지도 + 갤러리를 담는 레이아웃 컨테이너 */
#equipmentPopup .popup-media-layout {min-height: 650px; position: relative; /* map-box2628 오버레이의 기준점 */
  display: flex; gap: 16px; align-items: stretch; /* let both panels share the height of the taller one */ }

/* 왼쪽: 지도 패널 */
#equipmentPopup .popup-map-panel { flex: 1 1 65%; min-width: 0;
  display: flex; flex-direction: column; /* 지도 + 출처 문구를 세로로 쌓기 위함 */}
#equipmentPopup .eq-map {width: 100%; flex: 1 1 auto; min-height: 400px; margin:0 !important;}
#equipmentPopup .map-boundary-credit {flex: 0 0 auto;}

/* 오른쪽: 썸네일 갤러리 패널을 감싸는 바깥 래퍼 (설비 상세위치 라벨 + 갤러리를 세로로 쌓음) */
#equipmentPopup .popup-image-panel-outer {flex: 1 1 35%; min-width: 0;
display: flex; flex-direction: column;}

#equipmentPopup .popup-image-panel {flex: 1 1 auto; min-width: 0; min-height: 400px;
display: flex; flex-direction: column; align-items:center; justify-content:space-between;}

/* 설비 상세위치 설명: 주소 옆이 아니라 사진 패널 위쪽에 눈에 잘 띄게 표시 */
#equipmentPopup .equipment-address-detail {
  flex: 0 0 auto;
  margin: 0 0 10px 0;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 17px;
  color: #D84300;
  background: #FFF3E0;
  border-left: 4px solid #FF8A00;
  border-radius: 4px;
}
#equipmentPopup .equipment-address-detail:empty { display: none; }

/* 등록된 이미지가 없으면 갤러리 패널(라벨 포함)을 숨기고 지도 패널이 전체를 차지하도록 확장 */
#equipmentPopup .popup-media-layout.no-images .popup-image-panel-outer { display: none; }
#equipmentPopup .popup-media-layout.no-images .popup-map-panel { flex: 1 1 100%; }

/*
  확대 이미지 오버레이 레이어
  - 평소엔 완전히 숨겨진 상태 (배경/크기 없음, pointer-events 차단)
  - 활성화되면 popup-media-layout 전체(지도+갤러리)를 덮음
*/
#equipmentPopup .map-box2628 {position: absolute; inset: 0; z-index: 50;
  pointer-events: none; /* 비활성 상태에서 아래 지도/썸네일 클릭 막지 않음 */}

#equipmentPopup .image-viewer {display: none; position: absolute; inset: 0;
  align-items: center; justify-content: center; background: #ffffff; z-index: 50; 
  border-radius:15px; border: solid 1px #2c3e50; height:auto; min-height: 400px;}
#equipmentPopup .image-viewer.active {
  display: flex;
  pointer-events: auto; /* 활성화됐을 때만 클릭 허용 */
}
/* NOTE: dark scrim behind the lightbox. #equipmentPopup is already a fixed, positioned
   element (its own stacking context), so this ::before can safely use position:fixed +
   inset:0 to visually cover the full viewport without escaping the popup's paint order —
   it still only paints where #equipmentPopup itself is allowed to paint (on top of the
   page), it just doesn't get clipped to popup-media-layout's box.
   z-index:40 sits above the popup's own title/address text and .close-btn (z-index:20,
   so they get dimmed too) but below .image-viewer / .map-box2628 (z-index:50) and
   .viewer-close (z-index:60), so the enlarged image and its close button stay on top. */
#equipmentPopup:has(.image-viewer.active)::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 40;
}
#equipmentPopup .viewer-close { position: absolute; top: 12px; right: 12px; z-index: 60;
  width: 24px; height: 24px; color: white; background: #4d4586;  border: none;
  border-radius: 50%; font-size: 16px; cursor: pointer;
  display: flex; align-items:center; justify-content: center;}
#equipmentPopup .viewer-close:hover { background: #000000; }
#equipmentPopup .viewer-img { max-width: 90%; max-height: 90%; object-fit: contain; }

#equipmentPopup .popup-image-panel .album { width: 100%; }

/* NOTE: `--item-h` fixes each thumbnail row to an exact height instead of the old
   `height:auto; max-height:200px`. That's required to show "exactly 3 rows" reliably —
   with height:auto, actual row height depends on each image's aspect ratio, so the ul's
   max-height could cut a 4th image in half instead of hiding it cleanly, or show only
   2.3 rows depending on content. With a fixed row height we can size the list container
   to precisely 3 rows + 2 gaps, and everything past that scrolls. */

/* Desktop / Default vertical scroll setup */
#equipmentPopup .popup-image-panel .album ul {
  --item-h: 170px;
  --gap: 12px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: var(--gap);
  margin: 20px 0;
  padding: 0;
  list-style: none;
  height: calc(var(--item-h) * 3 + var(--gap) * 2); /* 3 items visible */
  overflow-y: auto; /* Changed from hidden to auto to allow scrollBy */
  overflow-x: hidden;
  scroll-behavior: smooth;
  
  /* Hide scrollbar visually while keeping scroll functionality */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}



#equipmentPopup .popup-image-panel .album ul li {
  width: 100%;
 /*height: var(--item-h);*/
  flex: 0 0 var(--item-h); /* don't let flex shrink/grow rows past the fixed height */
  overflow: hidden;
  border-radius: 5px; border: solid 1px #C2C3D6;
}
#equipmentPopup .popup-image-panel .album ul li img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}
/* 선택 강조용 (세로 목록이므로 절대배치 대신 outline만 사용) */
#equipmentPopup .popup-image-panel .album ul li.active { outline: 2px solid #4d4586; }

/* Mobile Adaptations */
@media screen and (max-width: 768px) {
  .popup { width: 90%; padding: 18px; max-height: 85vh;}
  .map-container::after { content: ''; display: none; position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.4); z-index: 10001;}
  .map-container:has(.pin.active)::after { display: block; }

  .pin { position: absolute; width: 20px; height: 20px; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; }
  .pin-number { font-size: 9px; }

  #equipmentPopup .popup-media-layout { flex-direction: column; gap: 14px; }
  /* NOTE: on mobile the album switches to a horizontal row of thumbnails inside a
     fixed-height strip, so the "3 rows" sizing above doesn't apply here — this rule
     overrides flex-direction back to row and lets width (not height) govern how many
     thumbnails show before scrolling. */
  #equipmentPopup .popup-image-panel .album ul {
    flex-direction: row;
    height: auto;
    width: 100%; max-width:64vw;
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-snap-type: x mandatory; /* swipe settles on one image at a time */
  }
  #equipmentPopup .popup-image-panel .album ul li {
    flex: 0 0 80%; /* one image fills the panel width; rest sit off to the side */
    width: 100%; height: 200px; min-width: 250px;
    scroll-snap-align: center; border:solid 1px #0E9587;
  }
  #equipmentPopup .popup-image-panel-outer { flex: 1 1 35%; min-width: 0; }
  #equipmentPopup .popup-image-panel { flex: 1 1 auto; min-width: 0; min-height:200px;
flex-direction: row; }
#equipmentPopup .popup-map-panel{min-height:300px;}
.imgbtnup { margin-bottom: 0px; position: unset; left: 0; margin:5px;}
.imgbtndwn { position: unset; margin-top: 0; bottom: auto; right: 0; margin:5px;}
.imgbtnup,
.imgbtndwn {transform:rotate(-90deg);}
.imgbtnup img,
.imgbtndwn img { width:20px; height: auto;}
}


.map-container {
    position: relative;
}

/* 실제 map-image 위치와 크기는 JS에서 동기화 */
.equipmentMarkerArea {
    position: absolute;
    pointer-events: none;
}

/* 지도 이미지 위 읍면동 영역 마우스오버 강조 (JS가 위치/크기를 이미지에 맞춰 동기화) */
.region-hover-layer {
    position: absolute;
    pointer-events: none;
}

.region-hover-layer .region-hl {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.12s ease;
}

.region-hover-layer .region-hl.on {
    opacity: 1;
}

/* 오버레이가 불투명이라 지도에 원래 있던 읍면동 이름 글자가 가려지므로,
   호버 중인 영역 중심에 대신 띄우는 텍스트 라벨 */
.region-hover-layer .region-hover-name {
    position: absolute;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 6px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.12s ease;
    z-index: 6;
}

.region-hover-layer .region-hover-name.on {
    opacity: 1;
}

/* 지도 이미지 우상단에 표시하는 작은 안내문구 (포충기 화면: 설치순서 기준) */
.map-corner-note {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #555;
    font-size: 12px;
    pointer-events: none;
    z-index: 5;
}

/* top/left는 마커 끝점 기준 */
.equipmentMarkerArea .pin {
    position: absolute;
    transform: translate(-50%, -100%);
    pointer-events: auto;
}





/**
 * region-map-switch.css
 * -----------------------------------------------------------------------
 * Companion stylesheet for region-map-switch.js.
 * Only adds a fade transition for the map image swap — the active-state
 * styling for the region buttons themselves already exists in
 * mappg.css (`.mapzna ul li.active`), so nothing is duplicated here.
 * Does NOT modify fnc_sub.css or mappg.css.
 * -----------------------------------------------------------------------
 */

.map-image {
  transition: opacity 0.15s ease;
}

.map-image-fading {
  opacity: 0;
}

/* 지역 확대지도 위에 표시되는 읍면동 이름 라벨 (region-map-switch.js가 텍스트를 채움) */
.region-map-label {
  position: absolute;
  top: 4%;
  left: 5%;
  display: none;
  padding: 8px 20px;
  background: #6bbac0;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  border-radius: 7px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
}

.region-map-label.on {
  display: block;
}