@charset "UTF-8";

#map {
	height: 500px;
	width: 100%;
	background-color: #ffffff;
	z-index: 1;
	
}
svg.leaflet-zoom-animated{background: radial-gradient(rgba(255, 255, 255, .15) 1.5px, transparent 0) 0 0 / 40px 40px;}
#chart-container {
	position: relative;
	height: 550px;
	width: 100%;
	z-index: 1;
}
		
		/* 지도 새로고침 버튼 스타일 */
.leaflet-control-refresh {
	background-color: #fff;
	border: 2px solid rgba(0,0,0,0.2);
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	color: #333;
}

.leaflet-control-refresh:hover {
	background-color: #f4f4f4;
	border-color: rgba(0,0,0,0.3);
	color: #0066cc;
}

.timeline-play-btn{display: flex; align-items: center; gap:7px; height:40px; padding:0 12px; border:1px solid #dbdbdb; line-height: 1;}
.timeline-play-btn:hover{background: #f2f2f2;}
.timeline-play-btn i{font-size:21px;}
.timeline-play-btn.on{background: #0860ad; color:#fff; border-color:#0860ad}

/* 타임라인 플레이 버튼 아이콘 스타일 */
.icon.i-play {
	position: relative;
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 8px solid currentColor;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	background: none;
	mask: none;
	-webkit-mask: none;
	vertical-align: middle;
	margin-left: 2px; /* 삼각형이 왼쪽으로 치우쳐 보이지 않도록 */
}

.icon.i-pause {
	position: relative;
	display: inline-block;
	width: 12px;
	height: 12px;
	background: none;
	mask: none;
	-webkit-mask: none;
	vertical-align: middle;
}

.icon.i-pause::before,
.icon.i-pause::after {
	content: '';
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 3px;
	height: 12px;
	background-color: currentColor;
	border-radius: 1px;
}

.icon.i-pause::before {
	left: 2px;
}

.icon.i-pause::after {
	right: 2px;
}

.icon.i-stop {
	position: relative;
	display: inline-block;
	width: 12px;
	height: 12px;
	background: currentColor;
	mask: none;
	-webkit-mask: none;
	vertical-align: middle;
	border-radius: 2px;
}

/* 타임라인 컨테이너 스타일 (horizontal_timeline 플러그인 사용) */
.timeline-container {
	padding: 10px;
	background: rgb(255, 255, 255);
	border-radius: 8px;
	transition: all 0.3s ease;
}

.timeline-container:hover {
	background: #f0f2f5;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timeline-year-display {
	font-size: 24px;
	font-weight: bold;
	color: #333;
	transition: all 0.3s ease;
}

/* horizontal_timeline 플러그인 스타일 (기존 스타일 유지하면서 플러그인 기능 지원) */
.js-cd-h-timeline.cd-h-timeline {
	opacity: 1;
	position: relative;
}

.js-cd-h-timeline.cd-h-timeline--loaded {
	opacity: 1;
}

.cd-h-timeline__container {
	position: relative;
	width: 100%;
}

.cd-h-timeline__dates {
	position: relative;
	height: 100px;
	margin: 0 50px;
	overflow: hidden;
	width: calc(100% - 100px);
}

.cd-h-timeline__dates::after,
.cd-h-timeline__dates::before {
	content: '';
	position: absolute;
	z-index: 2;
	top: 0;
	height: 100%;
	width: 20px;
}

.cd-h-timeline__dates::before {
	left: 0;
	background: linear-gradient(to right, #f8f9fa, rgba(248, 249, 250, 0));
}

.cd-h-timeline__dates::after {
	right: 0;
	background: linear-gradient(to left, #f8f9fa, rgba(248, 249, 250, 0));
}

.cd-h-timeline__line {
	position: absolute;
	z-index: 1;
	left: 0;
	top: 49px;
	height: 2px;
	background-color: #ddd;
	transition: transform 0.4s;
	width: 100% !important;
	/* width는 플러그인 JavaScript가 동적으로 설정 */
}

.cd-h-timeline__filling-line {
	position: absolute;
	z-index: 1;
	left: 0;
	top: 0;
	height: 100%;
	width: 0;
	background-color: #0066cc;
	transition: width 0.3s ease;
	transform: none !important; /* scaleX 대신 width 사용 */
}

.cd-h-timeline__date {
	position: absolute;
	bottom: 0;
	z-index: 2;
	text-align: center;
	font-size: 14px;
	padding-bottom: 15px;
	color: #333;
	cursor: pointer;
	user-select: none;
	text-decoration: none;
	white-space: nowrap;
	min-width: 40px;
	/* left는 플러그인 JavaScript가 동적으로 설정 (initTimeline 함수에서) */
}

.cd-h-timeline__date::after {
	content: '';
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: -5px;
	height: 12px;
	width: 12px;
	border-radius: 50%;
	border: 2px solid #ddd;
	background-color: #fff;
	transition: background-color 0.3s, border-color 0.3s;
}

.cd-h-timeline__date:hover::after {
	background-color: #0066cc;
	border-color: #0066cc;
}

.cd-h-timeline__date--selected {
	pointer-events: none;
	font-weight: bold;
	color: #0066cc;
}

.cd-h-timeline__date--selected::after {
	background-color: #0066cc;
	border-color: #0066cc;
}

.cd-h-timeline__date--older-event::after {
	border-color: #0066cc;
}

.cd-h-timeline__navigation {
	position: absolute;
	z-index: 1;
	top: 50%;
	transform: translateY(-50%);
	height: 34px;
	width: 34px;
	border-radius: 50%;
	border: 2px solid #ddd;
	transition: border-color 0.3s;
	cursor: pointer;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cd-h-timeline__navigation::after {
	content: '';
	position: absolute;
	height: 16px;
	width: 16px;
	background: url(/res/lib/cn/horizontal_timeline/img/cd-arrow.svg) no-repeat 0 0;
}

.cd-h-timeline__navigation:hover {
	border-color: #0066cc;
}

.cd-h-timeline__navigation--prev {
	left: 0;
	transform: translateY(-50%) rotate(180deg);
}

.cd-h-timeline__navigation--next {
	right: 0;
}

.cd-h-timeline__navigation--inactive {
	cursor: not-allowed;
	opacity: 0.5;
}

.cd-h-timeline__navigation--inactive::after {
	background-position: 0 -16px;
}

.cd-h-timeline__navigation--inactive:hover {
	border-color: #ddd;
}

/* text-replace 클래스: 텍스트를 숨기고 아이콘만 표시 (원본 플러그인 스타일) */
.text-replace {
	overflow: hidden;
	color: transparent;
	text-indent: 100%;
	white-space: nowrap;
}

.cd-h-timeline__events {
	position: relative;
	width: 100%;
	overflow: hidden;
	transition: height 0.4s;
	min-height: 0;
	display: none; /* 이벤트 영역 숨김 (날짜만 표시) */
}

.cd-h-timeline__events ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cd-h-timeline__event {
	position: absolute;
	z-index: 1;
	width: 100%;
	left: 0;
	top: 0;
	transform: translateX(-100%);
	padding: 1px 5%;
	opacity: 0;
	animation-duration: 0.4s;
	animation-timing-function: ease-in-out;
}

.cd-h-timeline__event--selected {
	position: relative;
	z-index: 2;
	opacity: 1;
	transform: translateX(0);
}

.cd-h-timeline__event--enter-right,
.cd-h-timeline__event--leave-right {
	animation-name: cd-enter-right;
}

.cd-h-timeline__event--enter-left,
.cd-h-timeline__event--leave-left {
	animation-name: cd-enter-left;
}

.cd-h-timeline__event--leave-right,
.cd-h-timeline__event--leave-left {
	animation-direction: reverse;
}

.cd-h-timeline__event-content {
	max-width: 800px;
}

.cd-h-timeline__event-title {
	color: #333;
	font-weight: 700;
	font-size: 18px;
}

.cd-h-timeline__event-date {
	display: block;
	font-style: italic;
	margin: 10px auto;
}

.cd-h-timeline__event-date::before {
	content: '- ';
}

@keyframes cd-enter-right {
	0% {
		opacity: 0;
		transform: translateX(100%);
	}
	100% {
		opacity: 1;
		transform: translateX(0%);
	}
}

@keyframes cd-enter-left {
	0% {
		opacity: 0;
		transform: translateX(-100%);
	}
	100% {
		opacity: 1;
		transform: translateX(0%);
	}
}

