.home-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: var(--site-header-height);
	padding: 0;
	background: rgba(7, 10, 10, 0.94);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(214, 200, 171, 0.08);
	box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
	z-index: 60;
}

.home-header .home-shell,
.home-header .home-container {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(1rem, 2vw, 2.4rem);
	height: 100%;
	min-height: var(--site-header-height);
}

.home-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0;
	color: var(--stg-home-text);
	text-decoration: none;
}

.home-logo__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.7rem;
	height: 2.7rem;
	border-radius: 999px;
	border: 1px solid rgba(198, 91, 49, 0.45);
	color: var(--stg-home-primary);
	font-size: 1.15rem;
	background: rgba(255, 255, 255, 0.02);
}

.home-logo__wordmark {
	display: flex;
	flex-direction: column;
	gap: 0.06rem;
	line-height: 1;
}

.home-logo__wordmark strong {
	font-family: var(--stg-font-display);
	font-size: 1.7rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.home-logo__wordmark span {
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--stg-home-text-soft);
}

.home-header__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(1rem, 1.8vw, 1.65rem);
	min-width: 0;
	padding-inline: 0.5rem;
}

.home-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.85rem;
}

.home-header__signin {
	white-space: nowrap;
}

.home-hero {
	padding-top: clamp(1.3rem, 2vw, 1.9rem);
	padding-bottom: clamp(1.7rem, 3.4vw, 2.8rem);
}

.home-hero .home-container {
	display: grid;
	grid-template-columns: minmax(17rem, 0.78fr) minmax(24rem, 1.22fr);
	gap: clamp(1.5rem, 2.3vw, 2.3rem);
	align-items: stretch;
}

.home-hero__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1.25rem;
	padding: 0.45rem 0;
}

.home-hero__content .home-eyebrow {
	color: #cfbf9f;
}

.home-hero__content .home-eyebrow::before {
	background: var(--stg-home-primary);
	box-shadow: 0 0 0 0.28rem rgba(198, 91, 49, 0.14);
}

.home-hero__title {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	max-width: 8ch;
}

.home-hero__title-main {
	font-size: var(--stg-home-title-size);
	line-height: 0.94;
}

.home-hero__copy {
	max-width: 28rem;
	font-size: var(--stg-home-lead-size);
}

.home-filters {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(11rem, 1fr) minmax(10.5rem, auto) auto;
	gap: 0.8rem;
	max-width: 48rem;
	align-items: stretch;
}

.home-filters > .home-button {
	min-height: var(--stg-home-control-height);
}

.home-filters__action {
	padding-inline: 1rem;
}

.home-filters .home-button[disabled] {
	cursor: wait;
	opacity: 0.75;
}

.home-hero__status {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.68rem 0.92rem;
	width: fit-content;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(214, 200, 171, 0.12);
	font-size: 0.88rem;
	color: var(--stg-home-text-soft);
}

.home-hero__status i {
	color: var(--stg-home-text);
}

.home-hero__map {
	position: relative;
	display: flex;
	align-items: stretch;
}

.home-map-shell {
	width: 100%;
}

.home-map-canvas-wrap {
	position: relative;
	min-height: 32rem;
	border-radius: var(--stg-home-radius-xl);
	overflow: hidden;
	border: 1px solid rgba(214, 200, 171, 0.14);
	box-shadow: var(--stg-home-shadow-panel);
	background:
		radial-gradient(circle at 14% 78%, rgba(164, 92, 51, 0.16), transparent 14%),
		radial-gradient(circle at 78% 18%, rgba(147, 198, 110, 0.11), transparent 16%),
		linear-gradient(180deg, rgba(7, 10, 10, 0.12), rgba(7, 10, 10, 0.54)),
		linear-gradient(135deg, #161a1a, #0d1010 52%, #131716);
}

.home-map-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: #111717;
}

.home-map-preview {
	position: absolute;
	right: clamp(1rem, 2vw, 1.5rem);
	top: clamp(1rem, 2vw, 1.5rem);
	width: min(18.75rem, 34%);
}

.home-map-results {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	margin-top: 0.9rem;
	padding: 1rem 1rem 1.1rem;
	border-radius: var(--stg-home-radius-lg);
}

.home-map-results__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.8rem;
}

.home-map-results__title {
	font-size: clamp(1.1rem, 1.5vw, 1.35rem);
}

.home-map-results__summary {
	color: var(--stg-home-text-soft);
	font-size: 0.9rem;
}

.home-map-results__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
}

.home-map-results__empty {
	color: var(--stg-home-text-soft);
}

.home-map-results__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	min-height: 100%;
	padding: 0.95rem;
	text-align: left;
	border-radius: var(--stg-home-radius-md);
	border: 1px solid rgba(214, 200, 171, 0.12);
	background: rgba(255, 255, 255, 0.03);
	color: var(--stg-home-text);
	transition:
		border-color 140ms ease,
		background-color 140ms ease,
		transform 140ms ease;
}

.home-map-results__item:hover,
.home-map-results__item.is-selected {
	border-color: rgba(198, 91, 49, 0.42);
	background: rgba(255, 255, 255, 0.06);
}

.home-map-results__item:focus-visible {
	outline: 3px solid rgba(242, 234, 219, 0.92);
	outline-offset: 2px;
	border-color: rgba(242, 234, 219, 0.52);
}

.home-map-results__item.is-selected {
	box-shadow: 0 0 0 1px rgba(198, 91, 49, 0.26);
}

.home-map-results__name {
	font-size: 1rem;
	font-weight: 700;
}

.home-map-results__category {
	color: #d8b36f;
	font-size: 0.95rem;
}

.home-map-results__location,
.home-map-results__time,
.home-map-results__distance {
	color: var(--stg-home-text-soft);
	font-size: 0.9rem;
}

.home-live-now .home-container,
.home-categories .home-container,
.home-cta-strip .home-container,
.home-footer .home-container {
	position: relative;
}

.home-truck-rail {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.95rem;
}

.home-truck-rail .home-card__media {
	aspect-ratio: 1.34 / 1;
}

.home-categories-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 0.85rem;
}

.home-cta-strip__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.home-footer {
	padding-top: calc(var(--stg-home-space-2xl) - 0.65rem);
	padding-bottom: var(--stg-home-space-lg);
	border-top: 1px solid rgba(214, 200, 171, 0.08);
	background:
		radial-gradient(circle at right 20%, rgba(72, 81, 62, 0.18), transparent 18%),
		linear-gradient(180deg, rgba(8, 10, 10, 0.85), rgba(9, 11, 11, 0.98));
}

.home-footer__top {
	padding-bottom: 1.2rem;
	border-bottom: 1px solid rgba(214, 200, 171, 0.1);
}

.home-footer__brand-copy {
	max-width: 17rem;
}

.home-footer__social {
	display: flex;
	gap: 0.7rem;
	margin-top: 1rem;
}

.home-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	border: 1px solid rgba(214, 200, 171, 0.16);
	background: rgba(255, 255, 255, 0.03);
}

.home-footer__social a:hover {
	background: rgba(255, 255, 255, 0.08);
}

.home-footer__newsletter-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.65rem;
	margin-top: 0.5rem;
}

.home-footer__newsletter-form .home-filter {
	min-height: var(--stg-home-button-height);
}

.home-footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1rem;
	font-size: 0.92rem;
	color: var(--stg-home-text-muted);
}

@media (max-width: 1200px) {
	.home-filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-truck-rail {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.home-categories-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.home-map-preview {
		width: min(22rem, 48%);
	}

	.home-map-results__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1024px) {
	.home-header {
		height: var(--site-header-height);
	}

	.home-header .home-shell,
	.home-header .home-container {
		gap: 1rem;
	}

	.home-header__nav {
		flex: 1 1 auto;
		min-width: 0;
		justify-content: center;
		gap: 0.8rem 1rem;
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		scrollbar-width: thin;
	}

	.home-hero .home-container {
		grid-template-columns: 1fr;
	}

	.home-map-preview {
		position: relative;
		top: auto;
		right: auto;
		width: min(100%, 22rem);
		margin: 1rem 1rem 0 auto;
	}

	.home-truck-rail {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-cta-strip__grid {
		grid-template-columns: 1fr;
	}

	.home-map-canvas-wrap {
		min-height: 28rem;
	}
}

@media (max-width: 768px) {
	.home-header .home-shell,
	.home-header .home-container {
		grid-template-columns: auto 1fr auto;
		gap: 0.9rem;
	}

	.home-header__nav {
		flex-wrap: nowrap;
		gap: 0.65rem 0.95rem;
		justify-content: flex-start;
	}

	.home-logo__wordmark strong {
		font-size: 1.5rem;
	}

	.home-logo__wordmark span {
		font-size: 0.66rem;
	}

	.home-header__signin {
		display: none;
	}

	.home-header__actions .home-button {
		min-height: 2.8rem;
		padding-inline: 0.95rem;
		font-size: 0.88rem;
	}

	.home-hero__title {
		max-width: none;
	}

	.home-filters {
		grid-template-columns: 1fr;
	}

	.home-truck-rail {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: minmax(16rem, 82vw);
		grid-template-columns: none;
		overflow-x: auto;
		padding-bottom: 0.45rem;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
	}

	.home-truck-rail > * {
		scroll-snap-align: start;
	}

	.home-categories-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-map-preview {
		width: auto;
		margin-left: 1rem;
		margin-right: 1rem;
	}

	.home-map-canvas-wrap {
		min-height: 24rem;
	}

	.home-map-results__list {
		grid-template-columns: 1fr;
	}

	.home-footer__newsletter-form,
	.home-footer__bottom {
		grid-template-columns: 1fr;
		flex-direction: column;
	}
}

@media (max-width: 480px) {
	.home-header .home-shell,
	.home-header .home-container {
		gap: 0.75rem;
	}

	.home-header__nav {
		gap: 0.55rem 0.8rem;
		font-size: 0.88rem;
	}

	.home-logo__mark {
		width: 2.4rem;
		height: 2.4rem;
		font-size: 1rem;
	}

	.home-logo__wordmark strong {
		font-size: 1.3rem;
	}

	.home-header__actions .home-button {
		padding-inline: 0.8rem;
	}

	.home-hero {
		padding-top: 1rem;
	}
}

.admin-header {
	background: rgba(8, 10, 10, 0.94);
}

.admin-header .home-logo__mark {
	border-color: rgba(149, 200, 106, 0.32);
	color: var(--stg-home-live-strong);
}

.admin-header__actions {
	display: flex;
	align-items: center;
	gap: 0.8rem;
}

.admin-header__identity {
	display: inline-flex;
	align-items: center;
	min-height: 3rem;
	padding: 0.65rem 0.95rem;
	border-radius: 999px;
	border: 1px solid rgba(214, 200, 171, 0.12);
	background: rgba(255, 255, 255, 0.03);
	color: var(--stg-home-text-soft);
	font-size: 0.92rem;
}

@media (max-width: 1024px) {
	.admin-header .home-header__nav {
		justify-content: flex-start;
	}

	.admin-header .admin-header__actions {
		width: auto;
		justify-content: flex-end;
	}
}
