/* ------------------------------------------------------------------
   site.css — custom additions on top of the HTML5 UP "Story" template
   (top nav, footer nav, photo placeholders, content-page helpers)
   Kept in a separate file so the template's main.css stays untouched.
------------------------------------------------------------------ */

/* ---- Sticky top navigation ---------------------------------------- */
#topnav {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(48, 54, 61, 0.95);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

#topnav .topnav-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.4rem 1.25rem;
	max-width: 72rem;
	margin: 0 auto;
	padding: 0.55rem 1.5rem;
}

#topnav a {
	text-decoration: none;
	border-bottom: none;
}

#topnav .topnav-brand {
	color: #ffffff;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.8rem;
	white-space: nowrap;
}

#topnav .topnav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

#topnav .topnav-links li {
	padding: 0;
	margin: 0;
}

#topnav .topnav-links a {
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 0.3rem 0;
	transition: color 0.2s ease;
}

#topnav .topnav-links a:hover {
	color: #ffffff;
}

#topnav .topnav-links a[aria-current="page"] {
	color: #47d3e5;
}

#topnav .topnav-links a.topnav-book {
	background-color: #47d3e5;
	color: #1a1f24;
	font-weight: 700;
	padding: 0.4rem 0.95rem;
	border-radius: 4px;
	transition: background-color 0.2s ease;
}

#topnav .topnav-links a.topnav-book:hover {
	background-color: #1ebdd1;
	color: #1a1f24;
}

@media screen and (max-width: 480px) {
	#topnav .topnav-inner {
		justify-content: center;
		text-align: center;
	}
	#topnav .topnav-links {
		justify-content: center;
		gap: 0.25rem 0.9rem;
	}
}

/* ---- Footer navigation -------------------------------------------- */
.footer-nav {
	margin: 0 0 1.5rem 0;
}

.footer-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-nav li {
	padding: 0;
}

.footer-nav a {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* ---- Photo grid + placeholders ------------------------------------ */
.photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	gap: 1.25rem;
	margin: 2rem 0;
	text-align: left;
}

.photo-grid figure {
	margin: 0;
}

.photo-grid img {
	display: block;
	width: 100%;
	height: 14rem;
	object-fit: cover;
	border-radius: 6px;
}

.photo-grid figcaption {
	font-size: 0.8rem;
	color: #6f7682;
	padding: 0.5rem 0.15rem 0;
	line-height: 1.4;
}

.img-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 14rem;
	padding: 1.25rem;
	background: #eef1f5;
	color: #7f8896;
	border: 2px dashed #c3cad6;
	border-radius: 6px;
	font-size: 0.8rem;
	line-height: 1.5;
}

.img-placeholder::before {
	content: "\f030"; /* fa-camera */
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	display: block;
	font-size: 1.6rem;
	margin-bottom: 0.5rem;
	width: 100%;
}

/* A single full-width placeholder (e.g. spotlight image slot) */
.image .img-placeholder {
	min-height: 18rem;
	height: 100%;
	border-radius: 0;
}

/* ---- Local area two-panel page ------------------------------------ */

body.area-page {
	height: 100dvh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

#area-wrap {
	flex: 1;
	display: flex;
	min-height: 0;
}

/* Sidebar */
#area-sidebar {
	width: 340px;
	min-width: 240px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #ffffff;
	border-right: 1px solid #dde1e6;
}

#area-sidebar-head {
	padding: 0.9rem 1.1rem 0.65rem;
	border-bottom: 1px solid #dde1e6;
	flex-shrink: 0;
}

#area-sidebar-head h1 {
	font-size: 0.9rem;
	margin: 0 0 0.6rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #30363d;
	border: none;
	padding: 0;
}

/* Filter pills */
#area-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
}

.area-filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.18rem 0.55rem;
	border-radius: 999px;
	border: 1.5px solid var(--cat-color, #888);
	background: transparent;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
	color: #30363d;
	line-height: 1.4;
}

.area-filter-btn .dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--cat-color, #888);
	flex-shrink: 0;
	transition: background 0.15s;
}

.area-filter-btn.active {
	background: var(--cat-color, #888);
	color: #ffffff;
}

.area-filter-btn.active .dot {
	background: rgba(255, 255, 255, 0.7);
}

/* Place list */
#area-list {
	flex: 1;
	overflow-y: auto;
	padding: 0.4rem 0;
}

.area-item {
	padding: 0.7rem 1.1rem;
	border-bottom: 1px solid #f0f2f5;
	cursor: pointer;
	transition: background 0.12s;
	border-left: 3px solid transparent;
}

.area-item:hover {
	background: #f7f9fb;
}

.area-item.active {
	background: #f0fbfd;
	border-left-color: #47d3e5;
}

.area-item-head {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin-bottom: 0.2rem;
}

.area-cat-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	flex-shrink: 0;
}

.area-item-title {
	font-weight: 700;
	font-size: 0.82rem;
	flex: 1;
	color: #1a1f24;
	line-height: 1.3;
}

.area-time-badge {
	font-size: 0.68rem;
	color: #6f7682;
	white-space: nowrap;
	flex-shrink: 0;
}

.area-item-desc {
	font-size: 0.77rem;
	color: #4a5160;
	line-height: 1.45;
	margin: 0 0 0.3rem 1.35rem;
}

.area-item-link {
	display: inline-block;
	font-size: 0.72rem;
	color: #47d3e5;
	text-decoration: none;
	margin-left: 1.35rem;
}

.area-item-link:hover {
	text-decoration: underline;
}

/* Map */
#area-map {
	flex: 1;
	min-width: 0;
}

/* Leaflet map markers */
.map-pin {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2.5px solid rgba(255, 255, 255, 0.92);
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}

.map-pin-home {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #30363d;
	border: 3px solid #ffffff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	line-height: 1;
}

/* Popup */
.area-popup b {
	display: block;
	font-size: 0.85rem;
	margin-bottom: 0.15rem;
}

.area-popup .popup-time {
	font-size: 0.72rem;
	color: #666;
	display: block;
	margin-bottom: 0.3rem;
}

.area-popup p {
	margin: 0 0 0.35rem;
	font-size: 0.78rem;
	max-width: 210px;
	line-height: 1.4;
	color: #333;
}

.area-popup a {
	font-size: 0.75rem;
	color: #47d3e5;
	text-decoration: none;
}

.area-popup a:hover {
	text-decoration: underline;
}

/* Footer inside sidebar */
.area-footer {
	padding: 0.65rem 1.1rem;
	border-top: 1px solid #dde1e6;
	flex-shrink: 0;
}

/* Mobile: map on top, list below */
@media screen and (max-width: 736px) {
	body.area-page {
		height: auto;
		overflow: auto;
	}

	#area-wrap {
		flex-direction: column;
	}

	#area-map {
		height: 58vh;
		min-height: 280px;
		order: -1;
	}

	#area-sidebar {
		width: 100%;
		min-width: 0;
		overflow: visible;
		border-right: none;
		border-top: 1px solid #dde1e6;
	}

	#area-list {
		overflow: visible;
	}
}
