/* GIS 모달 CSS */

/* 모달 */
.gis-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 999999;
}

.gis-modal-overlay.active {
	display: flex;
}

body.gis-modal-open {
	overflow: hidden;
}

/* 모달 컨테이너 */
.gis-modal {
	position: relative;
	width: 80vw;
	height: 75vh;
	max-width: 1200px;
	max-height: 900px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.gis-modal-header {
	padding: 14px;
	display: flex;
	height: 7px;
	justify-content: space-between;
	align-items: center;
	background-color: #212f3c;
}

.gis-modal-title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
	letter-spacing: 0.5px;
}

.gis-modal-close {
	background: none;
	border: none;
	font-size: 23px;
	color: #ffffff;
	cursor: pointer;
	padding: 0;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gis-modal-content {
	flex: 1;
	overflow-y: auto;
	padding: 5px;
	color: #333;
	background-color: #ffffff;
	font-size: 13px;
	line-height: 1.6;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.gis-modal-content h4 {
	margin: 15px 0 10px 0;
	font-size: 15px;
	font-weight: 600;
	color: #0e2a45;
}

.gis-modal-content h5 {
	margin: 12px 0 8px 0;
	font-size: 13px;
	font-weight: 600;
	color: #446eff;
}

.gis-modal-content p {
	margin: 8px 0;
	font-size: 13px;
	color: #555;
}

.gis-modal-content ul,
.gis-modal-content ol {
	margin: 10px 0;
	padding-left: 20px;
	font-size: 13px;
	color: #555;
}

.gis-modal-content li {
	margin: 5px 0;
	line-height: 1.5;
}

.gis-modal-content hr {
	border: none;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	margin: 15px 0;
}

.gis-modal-content strong {
	color: #0e2a45;
	font-weight: 600;
}

.gis-modal-content em {
	color: #446eff;
}

/* 모달 버튼 스타일 */
.gis-modal-button {
	padding: 8px 16px;
	margin: 5px;
	border: 1px solid #ddd;
	background-color: #ffffff;
	color: #555;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	border-radius: 4px;
	transition: all 0.2s ease;
	outline: none;
}

/* 모달 버튼 그룹 */
.gis-modal-button-group {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* 스크롤바 스타일 */
.gis-modal-content::-webkit-scrollbar {
	width: 8px;
}

.gis-modal-content::-webkit-scrollbar-track {
	background: transparent;
}

.gis-modal-content::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.2);
	border-radius: 4px;
}

.gis-modal-content::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 0, 0, 0.3);
}

.gis-modal-scroll-top {
	position: absolute;
	bottom: 20px;
	right: 20px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #ffffff;
	border: 1px solid #e0e0e0;
	color: #333333;
	font-size: 18px;
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	transition: all 0.2s ease;
	z-index: 100;
}

.gis-modal-scroll-top:hover {
	background-color: #f8f9fa;
}

.gis-modal-scroll-top.show {
	display: flex;
}

.scroll-top-arrow {
	display: inline-block;
	font-weight: bold;
}

/* 노트북 화면 */
@media (max-height: 900px) {
	.gis-modal {
		height: 81vh;
	}
}

@media (max-height: 700px) {
	.gis-modal {
		height: 95vh;
		max-height: none;
	}

	.gis-modal-content {
		padding: 5px;
	}
}

/* 반응형 - 작은 화면 (1200px 이하) */
@media (max-width: 1200px) {
	.gis-modal {
		width: 90vw;
		max-width: none;
	}
}

/* (900px 이하) */
@media (max-width: 900px) {
	.gis-modal {
		width: 95vw;
		height: 90vh;
		max-height: none;
	}

	.gis-modal-header {
		padding: 12px 15px;
	}

	.gis-modal-title {
		font-size: 18px;
	}

	.gis-modal-content {
		padding: 5px;
	}
}

/* (600px 이하) */
@media (max-width: 600px) {
	.gis-modal {
		width: 98vw;
		height: 95vh;
	}

	.gis-modal-header {
		padding: 10px 12px;
	}

	.gis-modal-title {
		font-size: 16px;
	}

	.gis-modal-close {
		width: 32px;
		height: 32px;
		font-size: 24px;
	}

	.gis-modal-content {
		padding: 5px;
		-webkit-overflow-scrolling: touch;
	}
}

/* 반응형 - 모바일 (480px 이하) */
@media (max-width: 480px) {
	.gis-modal {
		width: 100vw;
		height: 100vh;
	}

	.gis-modal-header {
		padding: 10px 15px;
		min-height: auto;
		height: 25px;
	}

	.gis-modal-title {
		font-size: 16px;
		line-height: 1.3;
	}

	.gis-modal-close {
		width: 36px;
		height: 36px;
	}

	.gis-modal-content {
		padding: 5px;
		-webkit-overflow-scrolling: touch;
	}
}