/* ==========================================================================
   Footer
   Shared footer, mini footer, and shared disclaimer styles.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Legacy/full footer
   -------------------------------------------------------------------------- */

.site-footer {
	background: #111;
	color: #ccc;
	padding: 3rem 0 1.5rem;
	font-size: 0.9rem;
}

.site-footer a {
	color: #ccc;
	text-decoration: none;
}

.site-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 2rem;
}

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

.footer-links li {
	margin-bottom: 0.5rem;
}

.footer-bottom {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid #333;
	text-align: center;
	font-size: 0.85rem;
	color: #999;
}

/* --------------------------------------------------------------------------
   Footer wrapper
   Default/landing/static pages use a constrained footer card.
   Map/listings pages override this below to full-width/flush.
   -------------------------------------------------------------------------- */

.site-footer-wrap {
	width: 100%;
	margin-top: auto;
	padding: 0 1rem;
}

.site-footer-wrap__inner {
	width: 100%;
	max-width: 1150px;
	margin: 0 auto;
	padding: 0;
	background: #111;
	border-radius: 1.5rem 1.5rem 0 0;
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   Shared disclaimer
   One disclaimer element is rendered in the layout.
   CSS changes presentation by page + viewport.
   -------------------------------------------------------------------------- */

.site-disclaimer {
	box-sizing: border-box;
	margin: 25px 0 0;
	padding: 0 0 1rem;
	text-align: center;
	color: #7b746d;
	font-size: 0.82rem;
	line-height: 1.6;
}

.site-disclaimer strong {
	color: #5f574f;
	font-weight: 700;
}

/* Backward compatibility while markup still includes both classes. */
.landing-disclaimer {
	box-sizing: border-box;
}

/* Map/explore desktop: hide the disclaimer if it is only intended for mobile. */
@media (min-width: 992px) {
	body.is-explore-page .site-disclaimer,
	body.listings-page .site-disclaimer {
		display: none;
	}
}

/* Map/explore mobile: present the same disclaimer as the compact mobile note. */
@media (max-width: 991.98px) {
	body.is-explore-page .site-disclaimer,
	body.listings-page .site-disclaimer {
		display: block;
		margin: 0;
		padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
		border-top: 1px solid rgba(15, 23, 42, .1);
		background: var(--bs-body-bg);
		color: #64748b;
		font-size: .74rem;
		line-height: 1.45;
		text-align: left;
	}

	body.is-explore-page .site-disclaimer strong,
	body.listings-page .site-disclaimer strong {
		color: #334155;
		font-weight: 700;
	}
}

/* --------------------------------------------------------------------------
   Mini footer
   -------------------------------------------------------------------------- */

.site-footer-mini {
	margin: 0;
	padding: 0;
	background: transparent;
	border-radius: 0;
}

.site-footer-mini__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.1rem 1.5rem;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.9rem;
	line-height: 1.4;
}

.site-footer-mini__left {
	white-space: nowrap;
	color: rgba(255, 255, 255, 0.82);
}

.site-footer-mini__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0;
}

.site-footer-mini__nav a {
	position: relative;
	padding: 0 1rem;
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
	white-space: nowrap;
}

.site-footer-mini__nav a:hover {
	color: #fff;
	text-decoration: none;
}

.site-footer-mini__nav a + a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 1px;
	height: 1rem;
	background: rgba(255, 255, 255, 0.18);
	transform: translateY(-50%);
}

/* --------------------------------------------------------------------------
   Responsive mini footer
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
	.site-footer-mini {
		/*padding: 1rem;*/
		border-radius: 1.25rem 1.25rem 0 0;
	}

	.site-footer-mini__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.site-footer-mini__left {
		white-space: normal;
	}

	.site-footer-mini__nav {
		justify-content: flex-start;
		margin-left: -1rem;
	}
}

@media (max-width: 575.98px) {
	.site-footer-mini {
		padding: 0.95rem 0.75rem;
		border-radius: 1rem 1rem 0 0;
	}

	.site-footer-mini__inner {
		font-size: 0.82rem;
	}

	.site-footer-mini__nav a {
		padding: 0.2rem 0.75rem;
	}

	.site-footer-mini__nav a + a::before {
		height: 0.85rem;
	}
}

/* --------------------------------------------------------------------------
   Map/listings footer
   Full-width and flush instead of constrained/card-like.
   -------------------------------------------------------------------------- */

body.is-explore-page .site-footer-wrap,
body.listings-page .site-footer-wrap {
	width: 100%;
	margin: 0;
	padding: 0 !important;
}

body.is-explore-page .site-footer-wrap__inner,
body.listings-page .site-footer-wrap__inner {
	width: 100%;
	max-width: none;
	margin: 0;
	border-radius: 0;
}

body.is-explore-page .site-footer-mini,
body.listings-page .site-footer-mini {
	margin: 0;
	padding: 0;
	border-radius: 0;
}

body.is-explore-page .site-footer-mini__inner,
body.listings-page .site-footer-mini__inner {
	padding: 1.1rem 1.5rem calc(1.1rem + env(safe-area-inset-bottom));
}

@media (max-width: 575.98px) {
	.site-disclaimer,
	.landing-disclaimer {
		margin: 0;
		padding: 0.7rem 1rem;
		font-size: 0.72rem;
		line-height: 1.35;
		text-align: left;
		color: #64748b;
		border-top: 1px solid rgba(15, 23, 42, 0.08);
		background: #fff;
	}

		.site-disclaimer strong,
		.landing-disclaimer strong {
			color: #334155;
			font-weight: 800;
		}

	.site-footer-wrap {
		padding: 0;
	}

	.site-footer-wrap__inner {
		max-width: none;
		border-radius: 0;
	}

	.site-footer-mini {
		padding: 0;
		border-radius: 0;
	}

	.site-footer-mini__inner {
		gap: 0.65rem;
		padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
		font-size: 0.72rem;
		line-height: 1.25;
	}

	.site-footer-mini__left {
		font-size: 0.72rem;
		line-height: 1.25;
		white-space: normal;
	}

	.site-footer-mini__nav {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 0.2rem 0;
		margin-left: 0;
		padding-left: 3.25rem; /* leaves room for Guide button */
	}

		.site-footer-mini__nav a {
			padding: 0.08rem 0.42rem;
			font-size: 0.7rem;
			line-height: 1.2;
		}

			.site-footer-mini__nav a + a::before {
				height: 0.62rem;
			}
}