/* Global styles */

:root {
	--bg: #ffffff;
	--text: #1f2937;
	--muted: #6b7280;
	--primary: #0047ab; /* original site blue */
	--primary-contrast: #ffffff;
	--surface: #f2f2f2; /* match original section bg */
	--surface-2: #f2f2f2; /* match original footer bg */
	--border: #e5e7eb;
	--shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
}

/* dark mode disabled per user preference */

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
	margin: 0;
	padding: 0;
	background-color: var(--bg);
	color: var(--text);
	line-height: 1.6;
}

/* Header styles */

header {
	background-color: var(--primary);
	color: var(--primary-contrast);
	padding: 28px 20px;
	text-align: center;
	box-shadow: var(--shadow);
}

header a {
	color: var(--primary-contrast);
	text-decoration: none;
	display: inline-block;
}

h1 {
	font-size: clamp(1.8rem, 1.2rem + 2vw, 2.4rem);
	margin: 0;
	letter-spacing: -0.02em;
}

h2 {
	font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
	margin: 0;
	font-weight: 600;
}

/* Section styles */

section {
	padding: 20px 24px;
	margin: 20px auto;
	background-color: var(--surface);
	border-radius: 12px;
	box-shadow: var(--shadow);
	border: 1px solid var(--border);
	max-width: min(900px, 92vw);
	transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

section:hover {
	transform: translateY(-2px);
}

h3 {
	font-size: 1.25rem;
	margin: 0 0 10px;
	color: var(--text);
}

p {
	font-size: 1.05rem;
	line-height: 1.7;
	margin: 6px 0 0 0;
}

ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

li {
	font-size: 1rem;
	line-height: 1.6;
	margin: 0 0 10px;
}

/* Article styles */

article {
	margin: 20px 0;
}

h4 {
	font-size: 1.1rem;
	margin: 0 0 10px;
}

em {
	font-style: italic;
}

/* Link styles */

a {
	color: var(--primary);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

a:focus-visible {
	outline: 3px solid rgba(0,71,171,0.35);
	outline-offset: 2px;
}

/* Footer styles */

footer {
	background-color: #f2f2f2;
	padding: 20px;
	text-align: center;
	font-size: 0.8em;
	color: #666;
	border-top: 1px solid #ddd;
}

footer p {
	margin: 0;
}

/* Image styles */

.text-image {
	width: 100%;
	height: auto;
	display: block;
	margin: 10px 0 16px 0;
	border-radius: 10px;
	box-shadow: var(--shadow);
	cursor: zoom-in;
	transition: transform 150ms ease, box-shadow 150ms ease;
}

.text-image:hover {
	transform: scale(1.01);
}


.image-popup {
	display: none;
	position: fixed;
	z-index: 1000;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
	justify-content: center; /* Horizontally centers the content */
	align-items: center;     /* Vertically centers the content */
}

.image-popup-content img {
	max-width: 95%;
	margin: auto;
	display: block;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0,0,0,0.45);
}

/* Image Popup Text */

.image-popup-text {
	color: #fff;
	text-align: center;
	margin-top: 5px;
	font-size: 0.95rem;
}

/* Map Navigation */

.map-navigation {
	position: absolute;
	bottom: 15px;
	padding: 6px 10px;
	background: rgba(255,255,255,0.85);
	box-shadow: 0 0 15px rgba(0,0,0,0.2);
	border-radius: 8px;
	z-index: 1000;
	backdrop-filter: blur(6px);
}
.map-navigation.prev {
	left: 10px;
}
.map-navigation.next {
	right: 10px;
}
.map-navigation a {
	text-decoration: none;
	color: #333;
}
.map-navigation a:hover {
	color: #666;
}

/* Map legend (shared across pages) */

.legend {
	padding: 10px;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: var(--shadow);
	line-height: 1.5;
	font-size: 14px;
	border: 1px solid var(--border);
}

.legend i {
	width: 18px;
	height: 18px;
	float: left;
	margin-right: 8px;
	opacity: 0.7;
	border-radius: 3px;
}

/* Fullscreen map support */
#map:fullscreen,
#map:-webkit-full-screen,
#map:-ms-fullscreen {
	width: 100%;
	height: 100%;
}

.leaflet-control-fullscreen a {
	background: #ffffff;
	color: #333;
	width: 32px;
	height: 32px;
	line-height: 32px;
	text-align: center;
	font-size: 16px;
	border-radius: 4px;
}

.leaflet-control-fullscreen a:hover {
	background: #f4f4f4;
}

/* Responsive tweaks */
@media (min-width: 1024px) {
	section {
		max-width: 960px;
	}
}

@media (max-width: 480px) {
	header {
		padding: 22px 16px;
	}
	section {
		padding: 16px 18px;
		margin: 16px auto;
	}
}
