body {
	background: url("../Images/Atlantic/North Atlantic 1.webp") no-repeat center
		center fixed;
	background-size: cover;
}

/* Routes navigation buttons */
.routes-nav {
	display: flex;
	justify-content: center;
	gap: 20px;
	padding: 30px 20px;
	padding-top: 120px; /* Space for fixed header */
	flex-wrap: wrap;
	position: relative;
	z-index: 100;
}

.route-button {
	display: inline-block;
	padding: 15px 30px;
	background: rgba(18, 52, 86, 0.9);
	color: white;
	text-decoration: none;
	border-radius: 6px;
	font-size: 1.1rem;
	font-weight: bold;
	border: 2px solid darkgoldenrod;
	transition: all 0.3s ease;
	cursor: pointer;
}

.route-button:hover {
	background: rgba(18, 52, 86, 1);
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(184, 134, 11, 0.4);
}

.route-button:active {
	transform: scale(0.98);
}

/* Route section styling */
.route-section {
	padding: 30px 20px;
	padding-top: 120px; /* Space for fixed header */
	padding-bottom: calc(
		100vh - 80px
	); /* Full viewport minus footer - allows content to scroll under header */
	text-align: center;
	position: relative;
	z-index: 100;
	min-height: 100vh;
}

.route-section h1 {
	color: white;
	font-size: 2.5rem;
	margin-bottom: 30px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.route-directory-section {
	padding-left: 24px;
	padding-right: 24px;
}

.route-directory-shell {
	max-width: 900px;
	margin: 0 auto;
	text-align: center;
}

/* Sub-page Back/Next buttons (match Eagle page button layout) */
.route-page-buttons {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 auto 20px;
}

.route-page-buttons .back-button,
.route-page-buttons .nav-button {
	padding: 4px 10px;
	font-size: 0.75rem;
}

.route-directory-intro {
	max-width: 760px;
	margin: 0 auto 36px;
	padding: 16px 22px;
	color: white;
	font-size: 1.05rem;
	line-height: 1.6;
	text-align: center;
	background: rgba(18, 52, 86, 0.45);
	border: 2px solid rgba(184, 134, 11, 0.85);
	border-radius: 12px;
	backdrop-filter: blur(4px);
}

/* Vertical menu on main routes page */
.route-vertical-menu {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: center;
	max-width: 400px;
	margin: 0 auto;
}

.route-menu-item {
	display: block;
	width: 100%;
	padding: 18px 36px;
	text-align: center;
	background: rgba(4, 12, 28, 0.9);
	color: #fff4c6;
	font-size: 1.3rem;
	font-weight: bold;
	text-decoration: none;
	border: 2px solid rgba(184, 134, 11, 0.9);
	border-radius: 10px;
	box-sizing: border-box;
	transition:
		background 0.25s ease,
		transform 0.25s ease,
		box-shadow 0.25s ease;
}

.route-menu-item:hover {
	background: rgba(30, 70, 120, 0.85);
	transform: scale(1.03);
	box-shadow: 0 6px 20px rgba(184, 134, 11, 0.35);
}

/* Single card layout on sub-pages */
.route-subpage-grid {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

.route-subpage-grid .route-directory-card {
	max-width: 420px;
	width: 100%;
}

.route-directory-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	align-items: start;
}

.route-directory-card {
	padding: 24px;
	background: rgba(4, 12, 28, 0.9);
	border: 2px solid rgba(184, 134, 11, 0.9);
	border-radius: 16px;
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(6px);
}

.route-directory-card h2 {
	margin: 0 0 20px;
	font-size: 1.55rem;
	line-height: 1.25;
	text-align: center;
}

.route-directory-card h2 a {
	color: #fff4c6;
	text-decoration: none;
}

.route-directory-card h2 a:hover {
	text-decoration: underline;
}

.route-subsection + .route-subsection {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.route-subsection h3 {
	margin: 0 0 10px;
	color: #f2d27a;
	font-size: 1rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.route-subsection h3 a {
	color: inherit;
	text-decoration: none;
}

.route-subsection h3 a:hover {
	text-decoration: underline;
}

.route-link-stack {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.route-link-stack a {
	display: block;
	padding: 10px 12px;
	color: white;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.18);
	border-radius: 8px;
	transition:
		background 0.25s ease,
		transform 0.25s ease;
}

.route-link-stack a:hover {
	background: rgba(184, 134, 11, 0.3);
	transform: translateX(4px);
}

/* Places dropdown container */
.places-dropdown-container {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 15px;
	margin-bottom: 30px;
	flex-wrap: wrap;
}

.places-label {
	color: white;
	font-size: 1.2rem;
	font-weight: bold;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.places-dropdown {
	padding: 12px 15px;
	font-size: 1rem;
	background: rgba(255, 255, 255, 0.95);
	color: #333;
	border: 2px solid darkgoldenrod;
	border-radius: 6px;
	cursor: pointer;
	min-width: 250px;
	transition: all 0.3s ease;
	font-weight: 500;
}

.places-dropdown:hover {
	background: white;
	box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

.places-dropdown:focus {
	outline: none;
	background: white;
	box-shadow: 0 0 8px rgba(184, 134, 11, 0.6);
}

.places-dropdown option {
	padding: 10px;
	background: white;
	color: #333;
}

/* Place page styling */
.place-page {
	padding: 30px 20px;
	max-width: 1200px;
	margin: 0 auto;
}

.place-header {
	text-align: center;
	margin-bottom: 40px;
	position: relative;
}

.place-header h1 {
	color: white;
	font-size: 2.5rem;
	margin-bottom: 15px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.back-button {
	display: inline-block;
	padding: 6px 14px;
	background: rgba(70, 130, 180, 0.7);
	color: white;
	text-decoration: none;
	border-radius: 4px;
	font-weight: bold;
	transition: all 0.3s ease;
	border: 1px solid rgba(70, 130, 180, 0.9);
	margin: 16px 0 0;
	font-size: 0.85rem;
}

.back-button:hover {
	background: rgba(70, 130, 180, 0.85);
	transform: none;
	box-shadow: none;
}

.header-buttons {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 16px;
	align-items: center;
}

.header-buttons .back-button,
.header-buttons .nav-button {
	margin: 0;
}

.nav-button {
	display: inline-block;
	padding: 6px 14px;
	background: rgba(70, 130, 180, 0.7);
	color: white;
	text-decoration: none;
	border-radius: 4px;
	font-weight: bold;
	transition: all 0.3s ease;
	border: 1px solid rgba(70, 130, 180, 0.9);
	font-size: 0.85rem;
}

.nav-button:hover {
	background: rgba(70, 130, 180, 0.85);
	transform: none;
	box-shadow: none;
}

/* Match Eagle format for header and post-content navigation buttons */
.navigation-footer {
	gap: 10px;
	flex-wrap: nowrap;
}

.header-buttons .back-button,
.header-buttons .nav-button,
.navigation-footer .back-button,
.navigation-footer .nav-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 170px;
	min-height: 28px;
	padding: 4px 8px;
	font-size: 0.72rem;
	line-height: 1.2;
	box-sizing: border-box;
	text-align: center;
	margin: 0;
	flex: 0 0 170px;
}

/* Place content layout */
.place-content {
	display: flex;
	gap: 40px;
	align-items: flex-start;
	flex-wrap: wrap;
}

.place-text {
	flex: 1;
	min-width: 300px;
	background: rgba(255, 255, 255, 0.95);
	padding: 25px;
	border-radius: 8px;
	border: 2px solid rgba(255, 255, 255, 0.8);
}

.place-text h2 {
	color: #123456;
	margin-bottom: 15px;
	font-size: 1.8rem;
}

.place-text p {
	color: #333;
	line-height: 1.6;
	font-size: 1rem;
	margin-bottom: 15px;
}

.place-images {
	flex: 1;
	min-width: 300px;
}

.place-images .gallery-grid {
	gap: 20px;
}

/* Place page two-column layout */
.place-columns {
	display: flex;
	align-items: flex-start;
	gap: 40px;
	padding: 20px;
	max-width: 1400px;
	margin: 0 auto;
}

.place-column-left {
	flex: 0 0 auto;
	width: 45%;
	background: rgba(255, 255, 255, 0.95);
	padding: 25px;
	border-radius: 8px;
	border: 5px solid darkgoldenrod;
	height: fit-content;
}

.place-column-left h2 {
	color: #123456;
	margin-bottom: 15px;
	font-size: 1.8rem;
	margin-top: 0;
}

.place-column-left p {
	color: #333;
	line-height: 1.6;
	font-size: 1rem;
	margin-bottom: 15px;
}

.place-column-right {
	flex: 1;
	min-width: 300px;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	border: 5px solid darkgoldenrod;
	border-radius: 8px;
	padding: 25px;
	background: rgba(255, 255, 255, 0.95);
}

.place-column-right::-webkit-scrollbar {
	width: 8px;
}

.place-column-right::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 10px;
}

.place-column-right::-webkit-scrollbar-thumb {
	background: darkgoldenrod;
	border-radius: 10px;
}

.place-column-right::-webkit-scrollbar-thumb:hover {
	background: #b8860b;
}

/* Mobile responsive for place columns */
@media (max-width: 1100px) {
	.place-columns {
		flex-direction: column;
		gap: 20px;
	}

	.place-column-left {
		width: 100%;
	}

	.place-column-right {
		max-height: none;
	}
}

@media (max-width: 980px) {
	.route-directory-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.route-section h1 {
		font-size: 2rem;
	}

	.route-directory-section {
		padding-left: 16px;
		padding-right: 16px;
	}

	.route-directory-card {
		padding: 18px;
	}
}

@media (max-width: 768px) {
	.routes-nav,
	.route-section,
	.place-page,
	.place-columns {
		padding-left: 12px;
		padding-right: 12px;
	}

	.route-button,
	.nav-button,
	.back-button {
		width: 100%;
		max-width: 360px;
		text-align: center;
	}

	.places-dropdown-container {
		align-items: stretch;
	}

	.places-dropdown {
		min-width: 0;
		width: 100%;
		max-width: 100%;
	}

	.place-column-left,
	.place-column-right,
	.place-text,
	.place-images {
		min-width: 0;
		width: 100%;
	}
}

@media (max-width: 420px) {
	.routes-nav,
	.route-section,
	.place-page,
	.place-columns,
	.place-content {
		padding: 8px;
		margin: 0;
		width: 100%;
		max-width: 100%;
	}

	.place-column-left,
	.place-column-right,
	.place-text,
	.place-images {
		min-width: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;
	}

	.place-columns {
		flex-direction: column;
		gap: 10px;
		align-items: stretch;
	}

	.place-content {
		flex-direction: column;
		gap: 15px;
	}

	.route-button,
	.nav-button,
	.back-button {
		padding: 8px 10px;
		font-size: 0.85rem;
		width: 100%;
		max-width: 100%;
	}

	.places-dropdown {
		min-width: 0;
		width: 100%;
		max-width: 100%;
	}

	.places-label {
		font-size: 1rem;
	}

	.place-page {
		padding: 8px;
	}

	.place-header {
		flex-direction: column;
		gap: 5px;
	}

	.place-header h1 {
		font-size: 1.2rem;
	}
}
