body {
	margin: 0;
	padding: 0;
	height: 100%;
	display: flex;
	height: 100vh;
	flex-direction: column;
	background-color: black;
	color: white;
	font-family: Arial, sans-serif;
}
header {
	padding: 10px 20px;
	background-color: #222;
	color: white;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
header h1 {
	margin: 0;
	font-size: 1.5em;
}
nav {
	display: flex;
	gap: 10px;
	align-items: center;
}
button.reset-zoom-btn {
	background-color: #444;
	border: none;
	color: white;
	padding: 6px 12px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 14px;
	transition: background-color 0.2s ease;
}
button.reset-zoom-btn:hover {
	background-color: #666;
}
#openseadragon {
	flex: 1; /* Take remaining height */
	position: relative;
	width: 100%;
	/* min-height: 500px; */
	overflow: hidden;
	background-color: rgb(0, 0, 0);
}
.collapsible {
	background-color: #222;
	color: white;
	cursor: pointer;
	padding: 8px 12px;
	border: none;
	text-align: left;
	outline: none;
	font-size: 14px;
	border-radius: 5px;
}
.collapsible:hover {
	background-color: #333;
}
.content {
	display: none;
	background-color: #111;
	padding: 10px;
	margin-top: 5px;
	border-radius: 4px;
}
.content a {
	color: #0af;
	text-decoration: none;
	display: block;
	margin: 5px 0;
}
footer {
	padding: 16px 20px;
	background-color: #222;
	color: white;
	text-align: center;
	font-size: 0.9em;
	box-shadow: 0 -2px 10px rgba(255, 255, 255, 0.1);
	flex-shrink: 0;
}

footer p {
	margin: 6px 0;
	line-height: 1.4;
}

footer a {
	color: #0af;
	text-decoration: underline;
}

footer a:hover {
	color: #5bf;
}

/* Zoom level display styling */
#zoom-level {
	position: absolute;
	bottom: 10px;
	right: 10px;
	background: rgba(0, 0, 0, 0.5);
	color: white;
	font-size: 14px;
	padding: 4px 8px;
	border-radius: 4px;
	font-family: monospace;
	user-select: none;
	pointer-events: none;
	z-index: 1000;
}
/* Loading spinner styles */
#loading-indicator {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1500;
	display: flex;
	justify-content: center;
	align-items: center;
	background: rgba(0, 0, 0, 0.7);
	padding: 20px;
	border-radius: 8px;
}
.spinner {
	border: 4px solid rgba(255, 255, 255, 0.3);
	border-top: 4px solid white;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	animation: spin 1s linear infinite;
}
@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}
.search-container {
	position: relative;
	margin: 20px auto 10px;
	width: 300px;
	text-align: center;
}

#locationSearch {
	width: 100%;
	padding: 8px 12px;
	border: none;
	border-radius: 6px 6px 0 0; /* top rounded, bottom square */
	font-size: 14px;
	background-color: #333;
	color: white;
	outline: none;
	box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
	box-sizing: border-box;
}

#suggestions {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	box-sizing: border-box;
	background: #111;
	z-index: 999;
	color: rgb(248, 248, 248);
	max-height: 200px;
	overflow-y: auto;
}

#suggestions div {
	padding: 8px 10px;
	cursor: pointer;
	transition: background 0.2s ease;
}

#suggestions div:hover {
	background-color: #333;
}

.map-highlight {
	width: 24px;
	height: 24px;
	background: rgba(0, 170, 255, 0.25);
	border: 2px solid #0af;
	border-radius: 50%;
	box-shadow: 0 0 12px #0af;
	animation: pulse 1.5s ease-in-out forwards;
	transition: all 0.3s ease;
}

@keyframes pulse {
	0% {
		transform: scale(0.8);
		opacity: 1;
	}
	50% {
		transform: scale(2);
		opacity: 0.5;
	}
	100% {
		transform: scale(4);
		opacity: 0;
	}
}

/* Loader styles */
#loader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle, #111 0%, #000 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	transition: opacity 0.6s ease, transform 0.6s ease;
}

#loader .spinner {
	border: 8px solid rgba(255, 255, 255, 0.1);
	border-top: 8px solid rgb(0, 238, 255);
	border-radius: 50%;
	width: 70px;
	height: 70px;
	animation: spin 1s linear infinite, glow 1.5s ease-in-out infinite alternate;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes glow {
	from {
		box-shadow: 0 0 10px rgb(0, 170, 255);
	}
	to {
		box-shadow: 0 0 25px rgb(255, 0, 0), 0 0 35px rgb(0, 170, 255) inset;
	}
}

/* Optional loading text */
#loader .text {
	margin-top: 20px;
	color: rgb(0, 170, 255);
	font-size: 1.4rem;
	font-family: "Segoe UI", sans-serif;
	letter-spacing: 0.2em;
	animation: fadeInUp 1.2s ease forwards;
	opacity: 0;
}

@keyframes fadeInUp {
	from {
		transform: translateY(10px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

body.loaded #loader {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.6s ease;
}

body {
	margin: 0;
	overflow: hidden;
	background-color: #000;
}

body.loaded {
	overflow: auto;
}
#page-content {
	opacity: 0;
	transition: opacity 0.6s ease;
}

body.loaded #page-content {
	opacity: 1;
}
