/* --------------- EVENTS PAGE ----------------- */
.page-template-events .hero__content {
	height: 60vh;
	gap: 20px;
}

.page-template-events .hero-4.hero-section::before {
	background: linear-gradient(
		360deg,
		rgba(19, 41, 61, 0.95) 31.9%,
		rgba(19, 41, 61, 0) 127.64%
	);
}
.snf-events__results,
.snf-events__actions {
	width: 100%;
	max-width: 1248px;
	padding-inline: 24px;
	margin: 0 auto;
}

.snf-events__container {
	padding-bottom: 80px;
}

.snf-events [hidden] {
	display: none !important;
}

.snf-events .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ------------------------- Category filter ----------------------- */
.snf-events__filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	background: rgba(187, 230, 228, 0.3);
	margin: 0 0 80px;
	padding: 20px 24px;
}

.snf-events__filter,
.snf-event-card__badge {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	padding: 10px 16px;
	background: transparent;
	color: var(--color-night-ride);
	border: 1px solid var(--color-sun-n-fun-blue);
	border-radius: 4px;
	font-family: var(--font-bebas-neue);
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	transition:	background-color 0.2s ease,	border-color 0.2s ease,	color 0.2s ease;
}

.snf-events__filter.is-active,
.snf-events__filter:hover:not(:disabled),
.snf-events__filter:focus-visible {
	background: var(--color-golden-hour);
	border-color: var(--color-golden-hour);
	color: var(--color-night-ride);
}

.snf-events__filter:disabled {
	opacity: 0.55;
	cursor: default;
}

.snf-events__filter:focus-visible {
	outline: 2px solid var(--color-night-ride);
	outline-offset: 2px;
}

/* ------------------------ Results wrapper + loading overlay ------------------------- */
.snf-events__results {
	position: relative;
}

.snf-events__list {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.snf-events__list:focus,
.snf-events__list > *:focus {
	outline: none;
}

.snf-events__loader {
	position: absolute;
	inset: 0;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding-top: 80px;
	background: rgba(255, 255, 255, 0.72);
	border-radius: 6px;
	z-index: 2;
}

.snf-events__loader.is-visible {
	display: flex;
}

.snf-events__spinner {
	width: 34px;
	height: 34px;
	border: 3px solid rgba(19, 41, 61, 0.18);
	border-top-color: var(--color-golden-hour);
	border-radius: 50%;
	animation: snf-events-spin 0.7s linear infinite;
}

@keyframes snf-events-spin {
	to {
		transform: rotate(360deg);
	}
}

.snf-events__empty {
	margin: 0;
	padding: 72px 24px;
	text-align: center;
	font-family: var(--font-montserrat);
	font-size: 30px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--color-golden-hour);
}

/* ------------- Event card ------------- */
.snf-event-card {
	position: relative;
	display: grid;
	/* grid-template-columns: 60px 340px minmax(0, 1fr); */
	grid-template-columns: 60px minmax(0, 1fr);
	gap: 40px;
	align-items: start;
	padding: 40px;
	background:	linear-gradient(0deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),#bbe6e4;
	border-radius: 5px;
	border-bottom: 2px solid transparent;
	transition:background 0.3s ease-in,border 0.3s ease-in;
}

.snf-event-card:hover {
	background: linear-gradient(0deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),#bbe6e4;
	border-color: #3c8beb;
	transition: background 0.3s ease-out, border 0.3s ease-out;
}

.snf-event-card__date {
	--snf-ev-chip-weekday: 18px;
	--snf-ev-chip-day: 44px;
	--snf-ev-chip-month: 44px;
	--snf-ev-chip-month-range: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	color: var(--color-night-ride);
}

.snf-event-card__date--range {
	--snf-ev-chip-weekday: 18px;
	--snf-ev-chip-day: 44px;
	--snf-ev-chip-month: 44px;
}

.snf-event-card__date-weekday {
	font-size: var(--snf-ev-chip-weekday);
	font-weight: 300;
	line-height: 1;
	margin-bottom: 5px;
	font-family: var(--font-bebas-neue);
	text-transform: uppercase;
	white-space: nowrap;
}

.snf-event-card__date-day {
	font-family: var(--font-bebas-neue);
	font-size: var(--snf-ev-chip-day);
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
}

.snf-event-card__date-month {
	font-family: var(--font-bebas-neue);
	font-size: var(--snf-ev-chip-month);
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
}

.snf-event-card__date-month--range {
	font-size: var(--snf-ev-chip-month-range);
}

/* --- Featured image --- */
.snf-event-card__media {
	width: 100%;
	aspect-ratio: 1 / 1.06;
	overflow: hidden;
	border-radius: 5px;
	background: #ffffff;
}

.snf-event-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.snf-event-card__image--placeholder {
	background: #ffffff;
}

.snf-event-card__body {
	min-width: 0;
	position: relative;
}

.snf-event-card__header {
	width: 85%;
}

.snf-event-card__badge {
    display: inline-flex;
    cursor: default;
    font-size: 18px;
    padding: 8px 10px;
    line-height: 0.89;
}

.snf-event-card__title {
	margin: 18px 0 0;
	font-family: var(--font-bebas-neue);
	font-size: 44px;
	font-weight: 500;
	line-height: 1.02;
	text-transform: uppercase;
	color: var(--color-night-ride);
}

.snf-event-card__excerpt {
	margin-top: 16px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--color-night-ride);
}

.snf-event-card__excerpt p {
	margin: 0;
}

.snf-event-card__excerpt p + p {
	margin-top: 0.8em;
}

.snf-event-card__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px 32px;
	margin-top: 15px;
	padding-top: 20px;
	border-top: 1px solid #000000;
}

.snf-event-card__meta {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.snf-event-card__meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 40px;
}

.snf-event-card__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	color: var(--color-night-ride);
}

.snf-event-card__meta-item--time {
	text-transform: uppercase;
}

.snf-event-card__icon {
	flex: 0 0 auto;
	color: var(--color-night-ride);
}

.snf-event-card__promo {
	position: relative;
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 4px;
	padding: 10px 16px;
	background: rgba(251, 171, 26, 0.1);
	border: 2px dashed #fbab1a;
	border-radius: 4px;
	font-size: 18px;
	font-family: var(--font-bebas-neue);
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
	text-align: center;
	color: var(--color-night-ride);
	white-space: nowrap;
	flex-wrap: nowrap;
}

.snf-event-card__promo--copy {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	z-index: 2;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.snf-event-card__promo--copy:hover {
	background: rgba(251, 171, 26, 0.24);
}

.snf-event-card__promo--copy:active {
	transform: scale(0.97);
}

.snf-event-card__promo--copy:focus-visible {
	outline: 2px solid var(--color-night-ride);
	outline-offset: 3px;
}

.snf-event-card__promo-content {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: opacity 0.18s ease;
}

.snf-event-card__promo-feedback {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	opacity: 0;
	transform: translateY(3px);
	transition:	opacity 0.18s ease,	transform 0.18s ease;
	pointer-events: none;
}

.snf-event-card__promo.is-copied,
.snf-event-card__promo.is-copy-failed {
	border-style: solid;
}

.snf-event-card__promo.is-copied {
	background: rgba(251, 171, 26, 0.32);
}

.snf-event-card__promo.is-copy-failed {
	background: rgba(179, 38, 30, 0.08);
	border-color: #b3261e;
	color: #b3261e;
}

.snf-event-card__promo.is-copied .snf-event-card__promo-content,
.snf-event-card__promo.is-copy-failed .snf-event-card__promo-content {
	opacity: 0;
}

.snf-event-card__promo.is-copied .snf-event-card__promo-feedback,
.snf-event-card__promo.is-copy-failed .snf-event-card__promo-feedback {
	opacity: 1;
	transform: none;
}

.snf-event-card__link {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: 5px;
	color: var(--color-golden-hour);
}

.snf-event-card__link-icon {
	position: absolute;
	top: 32px;
	right: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease;
}

.snf-event-card:hover .snf-event-card__link-icon {
	transform: translate(3px, -3px);
}

.snf-event-card__link:focus-visible {
	outline: 2px solid var(--color-night-ride);
	outline-offset: -4px;
}

/* --------------- Load more---------------------- */
.snf-events__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin-top: 40px;
}

#snf-events-load-more:disabled {
	opacity: 0.65;
	cursor: default;
}

/* --------------- Responsive ---------------------- */
@media (max-width: 1200px) {
	.snf-event-card {
		grid-template-columns: 64px 200px minmax(0, 1fr);
		gap: 32px;
		padding: 32px;
	}

	.snf-event-card__meta-row {
		gap: 10px 28px;
	}
}

@media (max-width: 991px) {
	.snf-event-card__date,
    .snf-event-card__link-icon {
		display: none;
	}
	.snf-events {
		padding: 40px 0 72px;
	}

	.snf-event-card {
		grid-template-columns: 1fr;
		gap: 22px 0px;
		padding: 28px;
	}

	.snf-event-card__media {
		grid-column: 2;
		max-width: 100%;
		aspect-ratio: 16 / 10;
	}

	.snf-event-card__body {
		grid-column: 2;
		padding-right: 40px;
	}
}

@media (max-width: 600px) {
	.snf-events {
		padding: 40px 0;
	}
	.snf-event-card {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
		padding: 16px;
	}

	.snf-event-card__date {
		flex-direction: row;
		align-items: baseline;
		justify-content: flex-start;
		gap: 8px;
	}

	.snf-event-card__date-day,
	.snf-event-card__date-month {
		margin-top: 0;
		line-height: 1;
	}

	.snf-event-card__media,
	.snf-event-card__body {
		grid-column: 1;
	}

	.snf-event-card__media {
		max-width: none;
	}

	.snf-event-card__body {
		padding-right: 0;
	}

	.snf-event-card__link-icon {
		top: 18px;
		right: 18px;
	}
	.snf-event-card__badge {
		font-size: 18px;
	}

	.snf-event-card__title {
		margin: 16px 0 0;
		font-size: 24px;
		line-height: 1;
	}

	.snf-event-card__header {
		width: 100%;
	}

	.snf-event-card__excerpt {
		margin-top: 8px;
		font-size: 16px;
	}
	.snf-event-card__footer {
		align-items: flex-start;
		justify-content: flex-start;
		margin-top: 16px;
		padding-top: 16px;
	}

	.snf-event-card__promo {
		font-size: 16px;
	}

	.snf-event-card__meta-row {
		gap: 10px 22px;
	}

	.snf-events__container {
		padding-bottom: 0;
	}

	.snf-event-card__promo {
		white-space: normal;
	}

	.snf-events__filters {
		justify-content: flex-start;
		margin-bottom: 32px;
	}
}
