/* 괘불 지도 (gwaebulMap.jsp / gwaebulMapEn.jsp 전용 — .gwbMap 스코프)
   2026-08-03 디자인 개편(목업 1안 확정 이식): 카드 프레임 + 썸네일 목록 + 전국뷰 2단(지도+패널).
   수정법: RFP/tasks/gwaebulMap/maintenance-guide.md */
.gwbMap .map-wrap { position: relative; }
.gwbMap .pageDesc { color: #666; font-size: 14px; margin: 0 0 14px; }
.gwbMap .hint { color: #a0a6b0; font-size: 12px; white-space: pre-line; }  /* pre-line: GWB_UI.hint 의 \n 을 줄바꿈으로 (2026-08-25) */

/* ── 전국뷰: 카드 + 헤더 + 2단(지도 좌 / 소개 패널 우) ── */
/*.gwbMap #nationalView { background: #fff; border: 1px solid #e7e9ee; border-radius: 14px; box-shadow: 0 2px 10px rgba(20,40,80,.05); overflow: hidden; }*/
.gwbMap .natHead { display: flex; align-items: center; padding: 0 16px; height: 54px; justify-content: center;
  border-bottom: 1px solid #eef0f4; background: #fafbfc;
  font-size: 17px; font-weight: 700; color: var(--navy); }
.gwbMap .natBody { display: flex; align-items: center; justify-content: center; gap: 56px; padding: 26px 30px; }
.gwbMap .natMap { flex: 0 1 auto; min-width: 0; position: relative; }
/* 좌상단 한반도 전체 참고 지도(v1) — 노출 전용, 클릭 통과 (2026-08-20 북한 제외 개편) */
.gwbMap .natInset{position:absolute; top:0; left:0; width:88px; pointer-events:none; border:1px solid #e8e8e8; border-radius:1rem;}
.gwbMap .natMap svg{display:block; height:100%; width:100%; max-width:100%; margin:0 auto; margin-left:2rem;}  /* 박스 크기 고정 — 지도 확대는 JSP svg viewBox 여백 크롭으로 (2026-08-25) */

/* 전국뷰 권역 호버 */
.gwbMap .regionHot { cursor: pointer; transition: filter .2s; }
.gwbMap .regionHot.hov { filter: brightness(.86); }

/* SVG 마커 */
.gwbMap .mk { cursor: pointer; }
.gwbMap .mk circle { transition: r .15s; fill-opacity: 1; }
.gwbMap .mk text { fill: #fff; font-size: 9px; font-weight: 700; text-anchor: middle;
  dominant-baseline: central; pointer-events: none; }
.gwbMap .mk { filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); } /* 상시 그림자 (2026-08-13 확정 — 호버 전용 그림자·흰 테두리는 제거) */

/* 팝업 카드 (호버 표시 / 클릭 고정 + X 닫기) */
.gwbMap #card { position: absolute; z-index: 30; width: 250px; background: #fff; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.18); padding:2rem 1.6rem 1.6rem 1.6rem; word-break:keep-all; display:none;}
.gwbMap #card img {width:100%; height:150px; object-fit:contain; background:#fafafa; border-radius:4px; margin-top:1.5rem;}
.gwbMap #card h3{color:#303030; font-size:14px; font-weight:300; margin:1.5rem 0 .8rem 0; display: flex; align-items: center;}
.gwbMap #card h3 .num{flex:none; min-width:24px; height:24px; border-radius: 50%; color: #fff; font-size:1.4rem; margin-right:.8rem; display:inline-flex; align-items:center; justify-content:center;} /* 제목 번호 배지 — 고분벽화 팝업(.tm-no)과 동일 스타일, 배경색만 권역(마커) 색 인라인 (2026-08-13) */
.gwbMap #card dl { font-size: 12.5px; color: #555; display: grid; grid-template-columns: auto 1fr;
  gap: 2px 8px; margin: 0; }
.gwbMap #card dt{color:#999;}
.gwbMap #card dd{margin:0;}
.gwbMap #card a.more{display:inline-flex; align-items:center; gap:.4rem; margin-top:1rem; font-size:1.4rem; color:#505050; letter-spacing:-0.5px; text-decoration:none; position:relative;}
.gwbMap #card a.more:after{content:"\ea6e"; font-family:'remixicon'; font-size:1.8rem; color:#aaa;}
.gwbMap #card a.more:hover:after{color:#303030;}

.gwbMap #card .cardX{position:absolute; top:0; right:10px; border:0; background:none; color:#aaa; font-size:2.4rem; cursor:pointer; display:flex; align-items:center; justify-content:center;}
/* 카드 꼬리(말머리) — 마커를 가리키는 45° 회전 사각형. 기본 = 카드가 마커 오른쪽(꼬리 왼쪽 가장자리), .tailR = 반전(꼬리 오른쪽). 세로 위치 --tailY 는 showCard 가 마커 중심으로 계산 (2026-08-12) */
.gwbMap #card::after { content: ""; position: absolute; top: var(--tailY, 26px); left: -8px; width: 14px; height: 14px;
  background: #fff; border-left: 1px solid #ccc; border-bottom: 1px solid #ccc; transform: rotate(45deg); }
.gwbMap #card.tailR::after { left: auto; right: -8px; border-left: 0; border-bottom: 0;
  border-right: 1px solid #ccc; border-top: 1px solid #ccc; }
/* 좁은 화면: 카드가 마커 아래(.tailTop=꼬리 위쪽) / 위(.tailBottom=꼬리 아래쪽) — 가로 위치 --tailX 는 showCard 계산 */
.gwbMap #card.tailTop::after { left: var(--tailX, 26px); right: auto; top: -8px;
  border-bottom: 0; border-top: 1px solid #ccc; }
.gwbMap #card.tailBottom::after { left: var(--tailX, 26px); right: auto; top: auto; bottom: -8px;
  border-left: 0; border-top: 0; border-right: 1px solid #ccc; border-bottom: 1px solid #ccc; }
  
  
.gwbMap #nationalView{display:flex; flex-wrap:wrap; gap:6rem; align-items:center; word-break:keep-all;}
.gwbMap .map-area{height:clamp(400px, 44.44vw, 640px); padding:4rem; border-radius:2rem; background:#fff; box-shadow:0 2px 15px rgba(0, 0, 0, .1); box-sizing:border-box; flex:3 1 660px;}

.gwbMap .natMap{width:100%; height:100%; display:flex; align-items:center; justify-content:center;}

.gwbMap .map-info{box-sizing:border-box; flex:2 1 440px;}
.gwbMap .map-info h3{margin:0 0 2.5rem; padding-bottom:1.5rem; border-bottom:1px solid #e8e8e8; font-size:3.2rem; font-weight:300; letter-spacing:-1px;}
.gwbMap .map-info .map-desc{margin-bottom:3.2rem;}
.gwbMap .map-info .map-desc p{color:#505050;}
.gwbMap .map-info .map-desc p.period{margin-bottom:1.5rem; color:#8a919c;}
.gwbMap .map-info .map-desc p > strong{display:block;}

.gwbMap .legend{display:grid; grid-template-columns:repeat(2, 1fr); gap:2rem; margin:0; padding:0; list-style:none; transition: background .15s; cursor:pointer;}
.gwbMap .legend li{position:relative; display:flex; align-items:center; height:64px; padding:0 1.5rem 0 2.5rem; border-radius:1rem; background:#f8f8f8; box-sizing:border-box; overflow:hidden; transition:color .3s ease;}
.gwbMap .legend li > *, .gwbMap .legend li:after{position:relative; z-index:1;}
.gwbMap .legend li:before{content:""; position:absolute; left:0; top:0; width:4px; height:100%; background:#000; transition: width .45s cubic-bezier(.25, .8, .25, 1);}
.gwbMap .legend li:hover:before{width:100%;}
.gwbMap .legend li:after{content:"\ea6e"; font-family:'remixicon'; color:#b9bfc9; font-size:2.4rem; margin-left:auto;}
.gwbMap .legend li:hover:after{color:#fff;}
.gwbMap .legend li[data-region="seoul"]:before{background:#7f88b8;}
.gwbMap .legend li[data-region="gyeonggi"]:before{background:#aab1d0;}
.gwbMap .legend li[data-region="chungcheong"]:before{background:#b3c3b5;}
.gwbMap .legend li[data-region="jeolla"]:before{background:#f0baa1;}
.gwbMap .legend li[data-region="gyeongsang"]:before{background:#cdb8d4;}
.gwbMap .legend li span{font-size:1.8rem; color:#303030;}
.gwbMap .legend li span.count{margin-left:1rem; color:#fff; font-size:1.5rem; background:#000; min-width:32px; min-height:26px; display:inline-flex; justify-content:center; align-items:center; border-radius:1000px; padding:0 0.6rem; font-weight:300;}
.gwbMap .legend li:hover span{color:#fff;}
.gwbMap .legend li[data-region="seoul"] span.count{background:#7f88b8;}
.gwbMap .legend li[data-region="gyeonggi"] span.count{background:#aab1d0;}
.gwbMap .legend li[data-region="chungcheong"] span.count{background:#b3c3b5;}
.gwbMap .legend li[data-region="jeolla"] span.count{background:#f0baa1;}
.gwbMap .legend li[data-region="gyeongsang"] span.count{background:#cdb8d4;}
.gwbMap .legend li[data-region="seoul"]:hover span.count{color:#7f88b8; background:#fff;}
.gwbMap .legend li[data-region="gyeonggi"]:hover span.count{color:#aab1d0; background:#fff;}
.gwbMap .legend li[data-region="chungcheong"]:hover span.count{color:#b3c3b5; background:#fff;}
.gwbMap .legend li[data-region="jeolla"]:hover span.count{color:#f0baa1; background:#fff;}
.gwbMap .legend li[data-region="gyeongsang"]:hover span.count{color:#cdb8d4; background:#fff;}
.gwbMap .legend li span{font-size:1.8rem; color:#303030;}

.gwbMap .map-note{margin-top:2.2rem; color:#909090; font-size:1.5rem;}

.gwbMap #regionView { display: none; }
.gwbMap .regionBody{display: flex; flex-wrap: wrap; gap: 6rem; align-items: flex-start;}
.gwbMap .mapCard,
.gwbMap .listCard{overflow:hidden; height:min(calc(100vh - 260px), 640px);}
.gwbMap .mapCard{flex: 3 1 500px; height: 640px; padding: 4rem; box-sizing: border-box; border-radius: 2rem; background: #fff; box-shadow: 0 2px 15px rgba(0, 0, 0, .1);}
.gwbMap .mapCol{width:100%; height:100%; display:flex; align-items:center; justify-content:center;}
.gwbMap .mapCol svg{width:100%; height:100%;}
.gwbMap .listCard{flex:2 1 350px; display:flex; flex-direction: column;}
.gwbMap .regionTop{display:flex; align-items:center; justify-content:space-between; padding-bottom:1.5rem; border-bottom:1px solid #e8e8e8;}
.gwbMap .regionTop h3{font-size:3.2rem; font-weight:300; letter-spacing:-1px; display:flex; align-items:center; gap:1.2rem;}
.gwbMap .regionTop h3 .regionCount{color:#000; font-size:2.4rem;}
.gwbMap .regionTop #backBtn{display:flex; align-items:center; gap:1rem; height:4.2rem; padding:0 1.8rem 0 .8rem; font-size:1.4rem; color:#505050; border:1px solid #ddd; background:#fff; cursor:pointer; position:relative; transition:background-color 0.2s ease;}
.gwbMap .regionTop #backBtn:hover{background:#f8f8f8;}
.gwbMap .regionTop #backBtn:before{content:"\ea64"; font-family:'remixicon'; font-size:2rem; color:#aaa;}
.gwbMap .regionTop{position:relative;}
.gwbMap .mapCol svg{display:block;}

.gwbMap .listHead{margin:2.5rem 0 1.5rem; color:#505050;}
.gwbMap .listCol{flex:1; overflow-y:auto; list-style:none;}
.gwbMap .listCol li{display:flex; align-items:center; min-height:clamp(5.8rem, 5.5vw, 8.4rem); margin:0 .6rem 1.5rem 0; padding:1.5rem 1.5rem 1.5rem 2rem; box-sizing:border-box; border-radius:1.5rem; background:#f8f8f8; cursor:pointer; position: relative; border:2px solid; border-color:transparent; transition:transform 0.2s ease, border-color 0.2s ease; gap:1rem; word-break:keep-all;}
.gwbMap .listCol li:hover, .gwbMap .listCol li.on{border-color:var(--rc);}
.gwbMap .listCol li .txt{display:flex; align-items:center; gap:1.2rem;}
.gwbMap .listCol li .num{flex:0 0 36px; height:36px; border-radius:1.2rem; color:#fff; font-size:1.6rem; display:flex; align-items:center; justify-content:center;}
.gwbMap .listCol li img.th{width:86px; flex:0 0 86px; height:54px; margin-left:auto; object-fit:cover; border-radius:.8rem;}
.gwbMap .listCol::-webkit-scrollbar{width:6px;}
.gwbMap .listCol::-webkit-scrollbar-thumb {background:#dfdfdf; border-radius:6px;}
.gwbMap .listCol::-webkit-scrollbar-track {background:#fafafa;}
.gwbMap .listCol .info{font-size:1.65rem;}
.gwbMap .listCol .info .meta{font-size:1.4rem; color:#505050; margin-top:.3rem;}



 @media all and (max-width:800px){
	.gwbMap .natBody{flex-direction:column; padding:18px; gap:18px;}
	.gwbMap .natIntro{flex:none; width:100%;}
	.gwbMap .natInset{width:64px;}
	.gwbMap .regionBody{flex-direction: column;}
	.gwbMap .mapCard{flex:none; width:100%; height:min(52vh, 460px);}
	.gwbMap .listCard{width:100%; flex:auto; height:568px;}
 }

@media all and (max-width:440px){
	.gwbMap .legend{grid-template-columns:1fr;}
}
