/* Styles for the classic-theme fallback templates (templates/php/). Themes that wrap
   content in a flex container (Astra, for example) would otherwise shrink the
   template to its intrinsic width. */

.noxx-locations-single,
.noxx-locations-archive {
	width: 100%;
	max-width: 100%;
	flex: 1 1 100%;
	box-sizing: border-box;
}

.noxx-locations-single {
	--noxx-locations-accent: var( --ast-global-color-0, #50b948 );
	--noxx-locations-ink: var( --ast-global-color-1, #253745 );
	--noxx-locations-muted: rgba( 37, 55, 69, 0.66 );
	--noxx-locations-surface: var( --ast-global-color-5, #f0f5fa );
	--noxx-locations-line: rgba( 37, 55, 69, 0.14 );
	--noxx-locations-radius: 16px;
	--noxx-locations-gutter: 64px;
	--noxx-locations-measure: 1400px;
	--noxx-locations-hero-image: none;
}

/* The template draws its own full-bleed bands, so the theme's container, card padding
   and top spacing are all cleared on this one page. Widening the container beats the
   usual 100vw pull-out: 100vw includes the scrollbar and would overflow sideways. */
body.single-noxx_location #content .ast-container {
	max-width: 100%;
	padding: 0;
}

body.single-noxx_location #primary,
body.single-noxx_location .noxx-locations-single,
body.single-noxx_location .noxx-locations-single > article {
	margin: 0;
	padding: 0;
	background: none;
	box-shadow: none;
	border: 0;
}

.noxx-locations-hero,
.noxx-locations-section {
	width: 100%;
	box-sizing: border-box;
}

.noxx-locations-hero__inner,
.noxx-locations-section__inner {
	width: 100%;
	max-width: var( --noxx-locations-measure );
	margin: 0 auto;
	box-sizing: border-box;
}

/* ---------------------------------------------------------------------------
   Hero */
.noxx-locations-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: min( 100svh, 760px );
	padding: var( --noxx-locations-gutter );
	background-color: var( --noxx-locations-ink );
	/* Dark wash first, photograph underneath, so white type stays readable over any image. */
	background-image:
		linear-gradient( to right, rgba( 0, 0, 0, 0.72 ) 0%, rgba( 0, 0, 0, 0.52 ) 55%, rgba( 0, 0, 0, 0.4 ) 100% ),
		var( --noxx-locations-hero-image );
	background-size: cover, cover;
	background-position: center, center;
	background-repeat: no-repeat, no-repeat;
	color: #fff;
}

/* No photograph: a softer wash over the brand colour instead of a near-black band. */
.noxx-locations-hero--plain {
	background-image: linear-gradient( 135deg, rgba( 0, 0, 0, 0.35 ), rgba( 0, 0, 0, 0.05 ) );
}

.noxx-locations-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	max-width: min( var( --noxx-locations-measure ), 100% );
}

.noxx-locations-hero__inner > * {
	max-width: 800px;
}

.noxx-locations-hero__eyebrow {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba( 255, 255, 255, 0.85 );
}

.noxx-locations-hero__title {
	margin: 0;
	color: #fff;
	font-size: clamp( 2.25rem, 5vw, 3.25rem );
	line-height: 1.1;
}

.noxx-locations-hero__intro {
	margin: 0;
	max-width: 46ch;
	font-size: clamp( 1rem, 1.6vw, 1.25rem );
	line-height: 1.55;
	color: rgba( 255, 255, 255, 0.92 );
}

.noxx-locations-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

/* Over a photograph a plain text link disappears, so the back link becomes a solid
   white pill — and follows the same white → black hover as the rest of the buttons. */
.noxx-locations-single .noxx-locations-hero .noxx-locations-back,
.noxx-locations-single .noxx-locations-hero .noxx-locations-back:is( :hover, :focus, :focus-visible, :active ) {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	padding: 10px 22px 10px 18px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: #fff;
	color: var( --noxx-locations-ink );
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: 0 2px 12px rgba( 0, 0, 0, 0.18 );
	transition: background-color 0.15s ease, color 0.15s ease;
}

.noxx-locations-single .noxx-locations-hero .noxx-locations-back:is( :hover, :focus-visible ) {
	background: #111;
	color: #fff;
}

/* The shared stylesheet underlines the label on hover; inside the pill it should not. */
.noxx-locations-single .noxx-locations-hero .noxx-locations-back:is( :hover, :focus-visible ) span {
	text-decoration: none;
}

@media ( hover: hover ) and ( pointer: fine ) {
	.noxx-locations-single .noxx-locations-hero .noxx-locations-back:focus-visible {
		outline: 2px solid #fff;
		outline-offset: 3px;
	}
}

/* ---------------------------------------------------------------------------
   Buttons. Restated for every state: themes ship their own :hover/:focus rules for
   links styled as buttons. */
.noxx-locations-single a.noxx-locations-button,
.noxx-locations-single a.noxx-locations-button:is( :hover, :focus, :focus-visible, :active ) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: none;
	outline: none;
	transform: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.noxx-locations-single a.noxx-locations-button--primary,
.noxx-locations-single a.noxx-locations-button--primary:is( :hover, :focus, :focus-visible, :active ) {
	background: var( --noxx-locations-accent );
	border-color: var( --noxx-locations-accent );
	color: #fff;
}

.noxx-locations-single a.noxx-locations-button--primary:is( :hover, :focus-visible ) {
	background: #111;
	border-color: #111;
}

.noxx-locations-single a.noxx-locations-button--ghost,
.noxx-locations-single a.noxx-locations-button--ghost:is( :hover, :focus, :focus-visible, :active ) {
	background: rgba( 255, 255, 255, 0.12 );
	border-color: rgba( 255, 255, 255, 0.55 );
	color: #fff;
}

.noxx-locations-single a.noxx-locations-button--ghost:is( :hover, :focus-visible ) {
	background: rgba( 255, 255, 255, 0.24 );
	border-color: #fff;
}

@media ( hover: hover ) and ( pointer: fine ) {
	.noxx-locations-single a.noxx-locations-button:focus-visible {
		outline: 2px solid var( --noxx-locations-accent );
		outline-offset: 3px;
	}
}

/* ---------------------------------------------------------------------------
   Sections */
.noxx-locations-section {
	padding: 80px var( --noxx-locations-gutter );
	color: var( --noxx-locations-ink );
}

.noxx-locations-section--alt {
	background: var( --noxx-locations-surface );
}

.noxx-locations-section__title {
	margin: 0 0 24px;
	font-size: clamp( 1.75rem, 3vw, 2.5rem );
	line-height: 1.15;
}

.noxx-locations-split {
	display: grid;
	gap: 48px;
	grid-template-columns: minmax( 0, 1fr );
	align-items: center;
}

@media ( min-width: 860px ) {
	.noxx-locations-split {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}

	/* Second story section mirrors the first, so the two do not read as a stack of the same block. */
	.noxx-locations-split--flip .noxx-locations-split__media {
		order: 2;
	}
}

.noxx-locations-split__body > :first-child {
	margin-top: 0;
}

.noxx-locations-split__body p {
	margin: 0 0 1em;
	line-height: 1.65;
	color: var( --noxx-locations-muted );
	font-size: 1.0625rem;
}

.noxx-locations-split__body p:last-child {
	margin-bottom: 0;
}

.noxx-locations-split__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var( --noxx-locations-radius );
}

.noxx-locations-split__media .noxx-location-map {
	margin: 0;
}

.noxx-locations-split__media .noxx-location-map__map {
	border-radius: var( --noxx-locations-radius );
}

.noxx-locations-split__media .noxx-location-map__links {
	margin-top: 14px;
}

.noxx-locations-single .noxx-location-map__links a,
.noxx-locations-single .noxx-location-map__links a:is( :hover, :focus, :focus-visible, :active ) {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var( --noxx-locations-accent );
	font-weight: 600;
	text-decoration: none;
	box-shadow: none;
}

.noxx-locations-single .noxx-location-map__links a::after {
	content: "→";
	transition: transform 0.15s ease;
}

.noxx-locations-single .noxx-location-map__links a:is( :hover, :focus-visible )::after {
	transform: translateX( 3px );
}

/* ---------------------------------------------------------------------------
   Practical information */
.noxx-locations-facts {
	display: grid;
	gap: 0;
	margin: 0;
}

.noxx-locations-facts__row {
	display: grid;
	grid-template-columns: minmax( 120px, 0.4fr ) minmax( 0, 1fr );
	gap: 8px 24px;
	padding: 18px 0;
	border-top: 1px solid var( --noxx-locations-line );
}

.noxx-locations-facts__row:last-child {
	border-bottom: 1px solid var( --noxx-locations-line );
}

.noxx-locations-facts dt {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var( --noxx-locations-muted );
}

.noxx-locations-facts dd {
	margin: 0;
	font-size: 1.0625rem;
}

.noxx-locations-single .noxx-locations-facts a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid var( --noxx-locations-line );
}

.noxx-locations-single .noxx-locations-facts a:is( :hover, :focus-visible ) {
	color: var( --noxx-locations-accent );
	border-bottom-color: currentColor;
}

.noxx-locations-single .noxx-locations-tags {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.noxx-locations-tags li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 12px;
	border: 1px solid var( --noxx-locations-line );
	border-radius: 999px;
	font-size: 0.9375rem;
}

/* The badge sits in the rounded end of the pill, so that side loses its padding. */
.noxx-locations-tags li.has-icon {
	padding-left: 4px;
}

.noxx-locations-tags__icon {
	display: block;
	width: 26px;
	height: 26px;
	padding: 1px;
	box-sizing: border-box;
	flex: 0 0 auto;
	border-radius: 50%;
}

.noxx-locations-hours {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
}

.noxx-locations-hours li {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	justify-content: space-between;
}

.noxx-locations-hours__day {
	color: var( --noxx-locations-muted );
}

.noxx-locations-hours__time {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

@media ( max-width: 600px ) {
	.noxx-locations-single {
		--noxx-locations-gutter: 24px;
	}

	.noxx-locations-section {
		padding-top: 56px;
		padding-bottom: 56px;
	}

	.noxx-locations-facts__row {
		grid-template-columns: minmax( 0, 1fr );
		gap: 4px;
	}
}

/* ---------------------------------------------------------------------------
   Editor content appended below the template's own sections */
.noxx-locations-single__content > :first-child {
	margin-top: 0;
}

.noxx-locations-single__content:empty {
	display: none;
}
