/* SB Parks — Navy palette ported from the Listable/Customify settings. */
:root {
	--sbp-navy: #001f63;
	--sbp-button: #000144;
	--sbp-slate: #4a5463;
	--sbp-text: #3d3d3d;
	--sbp-title: #333333;
	--sbp-muted: #86898c;
	--sbp-field: #848484;
	--sbp-band: #e9e9e9;
	--sbp-footer: #00133f;
	--sbp-border: rgba(0, 0, 0, 0.075);
	--sbp-header-h: 60px;
	--sbp-font: "Open Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	padding-top: var(--sbp-header-h);
	font-family: var(--sbp-font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--sbp-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--sbp-navy); text-decoration: none; }
a:hover { color: var(--sbp-slate); }
img { max-width: 100%; height: auto; }
button { font: inherit; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 1000; background: #fff; padding: 8px 12px; top: 4px; left: 4px; }

/* Header */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
	display: flex; align-items: center;
	height: var(--sbp-header-h);
	padding: 0 30px;
	background: #fff;
	box-shadow: rgba(0, 0, 0, 0.25) 0 0 2px 0;
}
.site-title { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.27; }
.site-title a { color: var(--sbp-title); }
.header-search {
	display: flex; align-items: center;
	height: var(--sbp-header-h);
	margin-left: 30px; padding-left: 18px;
	position: relative;
}
.header-search::before {
	content: ""; position: absolute; left: 0; top: 14px; bottom: 14px;
	border-left: 1px solid rgba(0, 0, 0, 0.1);
}
.header-search__field {
	width: 220px; border: 0; outline: 0; background: transparent;
	font: 300 16px/24px var(--sbp-font); color: var(--sbp-text);
	-webkit-appearance: none; appearance: none;
}
.header-search__field::placeholder { color: #999; opacity: 1; }
.header-search__button { border: 0; background: none; padding: 6px; color: #333; cursor: pointer; display: flex; }
.site-nav { margin-left: auto; }
.site-nav__menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; font-size: 14.95px; }
.site-nav__menu a { color: var(--sbp-navy); }
.site-nav__menu .current-menu-item > a { color: var(--sbp-slate); }

/* Footer */
.site-footer {
	background: var(--sbp-footer); color: #fff;
	padding: 50px 30px 60px;
	font-weight: 300; font-size: 14px; text-align: center;
}
.site-footer__inner { max-width: 1000px; margin: 0 auto; }
.footer-menu { list-style: none; margin: 10px 0 0; padding: 0; display: flex; justify-content: center; gap: 20px; }
.footer-menu a { color: #c1c1c1; }

/* Directory (front page, /tags/, search) */
.directory__list { width: 50%; min-height: calc(100vh - var(--sbp-header-h)); }
.directory__map {
	position: fixed; top: var(--sbp-header-h); right: 0; bottom: 0; width: 50%;
	background: #eae4d5;
}
.park-map--directory { width: 100%; height: 100%; }
.has-directory .site-footer { width: 50%; }
.directory__filters {
	display: flex; align-items: center; gap: 12px;
	height: 85px; padding: 0 30px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.09);
	font-size: 15px;
}
.directory__filter-label { color: var(--sbp-muted); }
.directory__filter {
	min-width: 220px; height: 38px; padding: 0 34px 0 12px;
	font: 400 15px var(--sbp-font); color: var(--sbp-text);
	border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 4px; background: #fff
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23848484'/%3E%3C/svg%3E") no-repeat right 12px center;
	-webkit-appearance: none; appearance: none; cursor: pointer;
}
.directory__count { margin-left: auto; color: var(--sbp-muted); }
.directory__heading { margin: 25px 30px 0; font-size: 24px; font-weight: 300; color: var(--sbp-navy); }
.directory__empty { padding: 20px 30px; color: var(--sbp-muted); }
.card-grid {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
	padding: 20px 30px 0 0;
}
.card-grid__item { display: block; padding: 0 0 30px 30px; }
.card-grid__item[hidden] { display: none; }
.park-card {
	position: relative; overflow: hidden;
	aspect-ratio: 5 / 3;
	border-radius: 6px; background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
	transition: box-shadow 0.2s, transform 0.2s;
}
.card-grid__item:hover .park-card, .card-grid__item.is-active .park-card { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); transform: translateY(-2px); }
.park-card__image {
	position: absolute; inset: 0;
	background: rgba(0, 0, 0, 0.075) center / cover no-repeat;
}
.park-card__content {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 40px 16px 14px;
	background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
}
.park-card__title { margin: 0; font-size: 24px; font-weight: 400; line-height: 1.33; color: #fff; }

/* Map pins & popups */
.sbp-pin { width: 48px; height: 59px; }
.sbp-pin svg { display: block; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35)); }
.sbp-pin.is-active svg .sbp-pin__body { fill: var(--sbp-navy); }
.sbp-pin.is-active svg .sbp-pin__dot { fill: #fff; }
.sbp-cluster { width: 48px; height: 59px; position: relative; }
.sbp-cluster span {
	position: absolute; top: 12px; left: 0; right: 0; text-align: center;
	font: 700 14px/22px var(--sbp-font); color: var(--sbp-navy);
}
.leaflet-container { font-family: var(--sbp-font); }
.sbp-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: 6px; overflow: hidden; }
.sbp-popup .leaflet-popup-content { margin: 0; width: 260px !important; }
.sbp-popup__card { display: block; position: relative; height: 156px; background: rgba(0, 0, 0, 0.075) center / cover no-repeat; }
.sbp-popup__title {
	position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
	padding: 30px 14px 10px; color: #fff; font-size: 18px; font-weight: 400; line-height: 1.3;
	background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
}

/* Single park */
.park-carousel { position: relative; height: 450px; overflow: hidden; background: #f3f3f3; }
.park-carousel__track {
	display: flex; gap: 3px; height: 100%;
	overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none;
}
.park-carousel__track::-webkit-scrollbar { display: none; }
.park-carousel__item { flex: 0 0 auto; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.park-carousel__item img { display: block; height: 100%; width: auto; max-width: none; }
.park-carousel__arrow {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 48px; height: 48px; border-radius: 50%; border: 0;
	background: #fff; color: var(--sbp-navy); cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.park-carousel__arrow--next { right: 30px; }
.park-carousel__arrow--prev { left: 30px; }
.park-carousel__arrow--prev svg { transform: rotate(180deg); }
.park-carousel__arrow[hidden] { display: none; }

.park-layout { background: var(--sbp-band); padding-bottom: 40px; }
.park-layout__inner {
	max-width: 1000px; margin: 0 auto;
	display: grid; grid-template-columns: minmax(0, 603px) 352px; column-gap: 45px;
	grid-template-areas: "header sidebar" "main sidebar";
	align-items: start;
}
.park-header {
	grid-area: header;
	padding: 23px 0 22px;
	background: #fff;
	box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax);
}
.park-breadcrumb { margin-bottom: 12px; font-size: 16px; line-height: 27px; }
.park-breadcrumb a { color: var(--sbp-muted); }
.park-title { margin: 0 0 0 -3px; font-size: 48px; font-weight: 300; line-height: 1.27; color: var(--sbp-navy); hyphens: none; }
.park-main { grid-area: main; padding-top: 40px; }
.park-content {
	background: #fff; padding: 25px 31px 30px; border-radius: 4px;
	line-height: 1.7;
}
.park-content p { margin: 0 0 20px; }
.park-content > :last-child { margin-bottom: 0; }
.park-amenities {
	list-style: none; margin: 30px 0 0; padding: 0 30px;
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px;
}
.park-amenities li { padding: 6px 0; line-height: 27px; }
.park-amenities a { color: var(--sbp-text); text-decoration: underline; font-size: 15px; }
.park-sidebar { grid-area: sidebar; position: relative; z-index: 1; padding-top: 40px; }
.park-box {
	background: #fff; border: 1px solid var(--sbp-border); border-radius: 4px;
	padding: 20px; margin-bottom: 40px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.park-map--single { height: 137px; background: #eae4d5; }
.park-address { margin: 25px 0; font-style: normal; }
.park-directions, .park-phone, .park-website { display: block; color: var(--sbp-field); margin-top: 8px; }
.park-directions:hover, .park-phone:hover, .park-website:hover { color: var(--sbp-navy); }
.park-box--details { padding: 24px; }
.park-hours, .park-acreage { margin-bottom: 30px; }
.park-hours strong, .park-acreage strong { font-weight: 700; }
.park-gallery__head { display: flex; justify-content: space-between; margin-bottom: 12px; }
.park-gallery__all { border: 0; background: none; padding: 0; color: var(--sbp-field); cursor: pointer; }
.park-gallery__all:hover { color: var(--sbp-navy); }
.park-gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.park-gallery__thumb { padding: 0; border: 0; background: #eee; aspect-ratio: 1; cursor: zoom-in; overflow: hidden; }
.park-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

.park-nav { background: #fff; padding: 30px 30px 70px; }
.park-nav__inner { max-width: 1000px; margin: 0 auto; display: flex; justify-content: space-between; }
.park-nav__link {
	position: relative; padding: 6px 18px; font-size: 14px; line-height: 21px;
	color: var(--sbp-field); background: #fff; border-radius: 3px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.park-nav__link--prev::before { content: "\2039"; margin-right: 8px; }
.park-nav__link--next { margin-left: auto; }
.park-nav__link--next::after { content: "\203A"; margin-left: 8px; }

/* Lightbox */
.sbp-lightbox {
	position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, 0.92);
	display: flex; align-items: center; justify-content: center;
}
.sbp-lightbox[hidden] { display: none; }
.sbp-lightbox img { max-width: 90vw; max-height: 86vh; width: auto; height: auto; }
.sbp-lightbox button {
	position: absolute; border: 0; background: none; color: #fff; font-size: 44px; line-height: 1;
	cursor: pointer; padding: 16px;
}
.sbp-lightbox__close { top: 10px; right: 16px; }
.sbp-lightbox__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.sbp-lightbox__next { right: 10px; top: 50%; transform: translateY(-50%); }
.sbp-lightbox__count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #ccc; font-size: 14px; }

/* Plain pages */
.page-plain { background: var(--sbp-band); padding: 50px 30px; min-height: calc(100vh - var(--sbp-header-h) - 140px); }
.page-plain__inner { max-width: 1000px; margin: 0 auto; background: #fff; padding: 30px 40px; border-radius: 4px; line-height: 1.7; }
.page-plain__title { margin: 0 0 20px; font-size: 40px; font-weight: 300; color: var(--sbp-navy); line-height: 1.27; }
.post-summary + .post-summary { margin-top: 30px; }

/* Smaller screens */
@media (max-width: 1060px) {
	.park-layout__inner { grid-template-columns: minmax(0, 1fr) 320px; column-gap: 30px; padding: 0 20px; }
}
@media (max-width: 900px) {
	.directory__list, .has-directory .site-footer { width: 100%; }
	.directory__map { position: relative; top: auto; width: 100%; height: 50vh; order: -1; }
	.directory { display: flex; flex-direction: column; }
	.header-search { display: none; }
	.site-title { font-size: 20px; }
	.park-layout__inner { grid-template-columns: 1fr; grid-template-areas: "header" "main" "sidebar"; }
	.park-title { font-size: 34px; }
	.park-carousel { height: 300px; }
}
@media (max-width: 560px) {
	.card-grid { grid-template-columns: 1fr; padding-right: 20px; }
	.card-grid__item { padding-left: 20px; }
	.directory__filters { padding: 0 20px; height: auto; min-height: 70px; flex-wrap: wrap; }
	.directory__count { margin-left: 0; }
	.site-header { padding: 0 20px; }
}
