* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	display: flex;
	height: 100vh;
	background-color: #1a1a1a;
	color: #fff;
}

/* 사이드바 */
#sidebar {
	width: 300px;
	background-color: #242424;
	border-right: 1px solid #333;
	display: flex;
	flex-direction: column;
	z-index: 1000;
	transition: width 0.3s ease;
	position: relative;
}

	#sidebar.collapsed {
		width: 60px;
	}

#sidebar-toggle-btn {
	position: absolute;
	top: 18px;
	right: -14px;
	width: 28px;
	height: 28px;
	background-color: #e5b35c;
	color: #1a1a1a;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	z-index: 1001;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8rem;
	font-weight: bold;
	box-shadow: 0 2px 6px rgba(0,0,0,0.5);
	transition: background-color 0.2s;
}

	#sidebar-toggle-btn:hover {
		background-color: #fff;
	}

/* 언어 전환 버튼 스타일 */
.lang-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #e5b35c;
	text-decoration: none;
	font-size: 0.75rem;
	font-weight: bold;
	border: 1px solid #e5b35c;
	padding: 3px 8px;
	border-radius: 12px;
	background-color: rgba(229, 179, 92, 0.1);
	white-space: nowrap;
	flex-shrink: 0;
	transition: all 0.2s ease;
}

	.lang-btn:hover {
		background-color: #e5b35c;
		color: #1a1a1a;
	}

.sub-title-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	gap: 8px;
}

/* 사이드바 접혔을 때 숨김 처리 */
#sidebar.collapsed .sidebar-header h2,
#sidebar.collapsed .sidebar-header .sub-title-row,
#sidebar.collapsed .map-select-box,
#sidebar.collapsed .map-spawn-summary,
#sidebar.collapsed .filter-section h3,
#sidebar.collapsed .category-text,
#sidebar.collapsed .category-spawn-badge,
#sidebar.collapsed .category-item input[type="checkbox"] {
	display: none !important;
}

#sidebar.collapsed .category-item {
	justify-content: center;
	padding: 8px 0;
}

#sidebar.collapsed .filter-icon-img {
	margin-right: 0;
	width: 24px;
	height: 24px;
}

.sidebar-header {
	padding: 20px;
	border-bottom: 1px solid #333;
}

	.sidebar-header h2 {
		font-size: 1.05rem;
		margin-bottom: 4px;
		color: #e5b35c;
		line-height: 1.3;
		white-space: nowrap;
	}

	.sidebar-header .sub-title {
		display: block;
		font-size: 0.72rem;
		color: #888;
		font-weight: 500;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

.map-select-box {
	width: 100%;
	padding: 10px;
	background-color: #1a1a1a;
	color: #fff;
	border: 1px solid #444;
	border-radius: 4px;
	font-size: 1rem;
	cursor: pointer;
}

.map-spawn-summary {
	margin-top: 10px;
	padding: 10px 12px;
	background-color: #1a1a1a;
	border: 1px solid #e5b35c;
	border-radius: 6px;
	font-size: 0.85rem;
	color: #ccc;
}

	.map-spawn-summary .summary-title {
		color: #e5b35c;
		font-weight: bold;
		margin-bottom: 6px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		font-size: 0.82rem;
		white-space: nowrap;
	}

	.map-spawn-summary ul {
		list-style: none;
		padding: 0;
		margin: 0;
	}

	.map-spawn-summary li {
		display: flex;
		align-items: center;
		margin-bottom: 4px;
		font-size: 0.85rem;
	}

		.map-spawn-summary li img {
			width: 16px;
			height: 16px;
			margin-right: 6px;
			object-fit: contain;
		}

.filter-section {
	padding: 20px;
	flex: 1;
	overflow-y: auto;
}

	.filter-section h3 {
		font-size: 0.9rem;
		margin-bottom: 15px;
		color: #aaa;
		text-transform: uppercase;
	}

.category-item {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
	padding: 6px 8px;
	border-radius: 4px;
	cursor: pointer;
	user-select: none;
	transition: background-color 0.2s, opacity 0.2s, filter 0.2s;
}

	.category-item:hover {
		background-color: #333;
	}

	.category-item input[type="checkbox"] {
		margin-right: 10px;
		width: 18px;
		height: 18px;
		cursor: pointer;
	}

	.category-item.inactive {
		opacity: 0.35;
		filter: grayscale(80%);
	}

	.category-item.disabled-category {
		opacity: 0.25;
		filter: grayscale(100%);
		cursor: not-allowed;
	}

.filter-icon-img {
	width: 20px;
	height: 20px;
	object-fit: contain;
	margin-right: 8px;
	vertical-align: middle;
}

.category-name {
	font-size: 0.95rem;
	font-weight: 500;
	display: flex;
	align-items: center;
}

#global-category-preview {
	display: none;
	position: fixed;
	z-index: 9999;
	border: 2px solid #e5b35c;
	border-radius: 8px;
	overflow: hidden;
	background-color: #1a1a1a;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.9);
	pointer-events: none;
	max-width: 300px;
}

	#global-category-preview img {
		max-width: 300px;
		max-height: 200px;
		width: auto;
		height: auto;
		object-fit: contain;
		display: block;
		margin: 0 auto;
	}

#global-preview-desc {
	padding: 8px 12px;
	font-size: 0.85rem;
	color: #ccc;
	background-color: #242424;
	border-top: 1px solid #333;
	text-align: center;
	line-height: 1.4;
	white-space: pre-line;
}

#map-container {
	flex: 1;
	height: 100%;
	position: relative;
	background-color: #111;
}

#map {
	width: 100%;
	height: 100%;
	background: transparent;
}

.map-marker-img {
	width: 20px;
	height: 20px;
	object-fit: contain;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
	cursor: pointer;
}

#coord-overlay {
	position: absolute;
	bottom: 20px;
	left: 20px;
	background-color: rgba(0, 0, 0, 0.85);
	border: 1px solid #e5b35c;
	color: #e5b35c;
	padding: 8px 14px;
	border-radius: 6px;
	font-family: monospace;
	font-size: 0.95rem;
	font-weight: bold;
	z-index: 1000;
	pointer-events: none;
	box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.leaflet-bottom.leaflet-left {
	bottom: 65px !important;
	left: 20px !important;
}

.custom-tooltip-photo {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
}

.custom-tooltip-photo .leaflet-tooltip-pane {
	color: transparent;
}


.custom-tooltip-photo .leaflet-tooltip-tip {
	display: none !important;
}

.hover-photo-frame {
	border: 2px solid #e5b35c;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
	background-color: #000;
	line-height: 0;
}

	.hover-photo-frame img {
		max-width: 320px;
		max-height: 200px;
		width: auto;
		height: auto;
		object-fit: contain;
		display: block;
	}

.transit-tooltip {
	background-color: rgba(24, 24, 24, 0.95) !important;
	border: 1px solid #e5b35c !important;
	color: #e5b35c !important;
	font-size: 0.95rem !important;
	font-weight: bold !important;
	padding: 6px 12px !important;
	border-radius: 6px !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8) !important;
}

.leaflet-popup-content-wrapper {
	background-color: #242424 !important;
	color: #fff !important;
	border: 1px solid #444;
	border-radius: 8px !important;
}

.leaflet-popup-tip {
	background-color: #242424 !important;
}

.modal-backdrop {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.75);
	z-index: 10000;
	justify-content: center;
	align-items: center;
}

.modal-content {
	position: relative;
	width: 600px;
	max-width: 90vw;
	max-height: 85vh;
	background-color: #242424;
	border: 2px solid #e5b35c;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
	overflow-y: auto;
}

.modal-close-btn {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	color: #aaa;
	font-size: 2rem;
	cursor: pointer;
	line-height: 1;
	transition: color 0.2s;
}

	.modal-close-btn:hover {
		color: #e5b35c;
	}

.modal-detail img {
	width: 100%;
	max-height: 360px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 0px;
}

.modal-detail h3 {
	font-size: 1.3rem;
	color: #e5b35c;
	margin-top: 12px;
	margin-bottom: 0px;
}

.modal-detail p {
	font-size: 1rem;
	color: #ccc;
	margin-top: 8px;
	line-height: 1.5;
}

/* 사이드바 하단 저작권 (Copyright) 스타일 */
.sidebar-footer {
	padding: 15px 20px;
	border-top: 1px solid #333;
	font-size: 0.7rem;
	color: #666;
	text-align: center;
	line-height: 1.4;
}

/* 사이드바 접혔을 때 저작권 문구 깔끔하게 숨김 */
#sidebar.collapsed .sidebar-footer {
	display: none !important;
}