/*
 * TLSH Events. Colours and fonts follow Astra's global palette
 * (Customizer > Global > Colors), so the events match the rest of the site.
 * Override any of these in Customizer > Additional CSS.
 */
:root {
	--tlsh-accent: var(--ast-global-color-0, #d63c76);
	--tlsh-accent-hover: var(--ast-global-color-1, #b52d60);
	--tlsh-heading: var(--ast-global-color-2, #0E1019);
	--tlsh-text: var(--ast-global-color-3, #34363d);
	--tlsh-surface: var(--ast-global-color-5, #ffffff);
	--tlsh-soft: var(--ast-global-color-4, #f6f3f4);
	--tlsh-line: rgba(0, 0, 0, 0.09);
	--tlsh-radius: 14px;
}

/* ------------------------------------------------------------ Card meta line (UAE + shortcode) */

.tlsh-ev-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin: 6px 0 10px;
	font-size: 0.875em;
	line-height: 1.4;
	color: var(--tlsh-text);
}
.tlsh-ev-meta > span { position: relative; }
.tlsh-ev-meta__when { font-weight: 600; color: var(--tlsh-heading); }
.tlsh-ev-meta__price { color: var(--tlsh-accent); font-weight: 600; }
.tlsh-ev-badge {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 999px;
	font-size: 0.8em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.tlsh-ev-badge--cancelled { background: #fbe7e9; color: #a4222e; }

/* ------------------------------------------------------------ Shortcode grid */

.tlsh-ev-grid {
	display: grid;
	grid-template-columns: repeat(var(--tlsh-cols, 3), minmax(0, 1fr));
	gap: 28px;
}
@media (max-width: 921px) { .tlsh-ev-grid { grid-template-columns: repeat(min(var(--tlsh-cols, 3), 2), minmax(0, 1fr)); } }
@media (max-width: 544px) { .tlsh-ev-grid { grid-template-columns: 1fr; } }

.tlsh-ev-card {
	height: 100%;
	background: var(--tlsh-surface);
	border: 1px solid var(--tlsh-line);
	border-radius: var(--tlsh-radius);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tlsh-ev-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08); }
.tlsh-ev-card.is-cancelled { opacity: 0.6; }
.tlsh-ev-card__link { display: block; height: 100%; color: inherit; text-decoration: none; }
.tlsh-ev-card__link:hover, .tlsh-ev-card__link:focus { color: inherit; }
.tlsh-ev-card__link:focus-visible { outline: 2px solid var(--tlsh-accent); outline-offset: -2px; }

.tlsh-ev-card__media {
	position: relative;
	height: var(--tlsh-img-h, 220px);
	background: var(--tlsh-soft);
}
/* Extra specificity so Elementor's and Astra's "img { height: auto }" can't override it. */
.tlsh-ev-grid .tlsh-ev-card .tlsh-ev-card__media img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	display: block;
	border-radius: 0;
}
.tlsh-ev-date {
	position: absolute;
	left: 14px;
	top: 14px;
	min-width: 54px;
	padding: 7px 8px 6px;
	border-radius: 10px;
	background: var(--tlsh-surface);
	text-align: center;
	line-height: 1;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.tlsh-ev-date__day { display: block; font-size: 1.45em; font-weight: 700; color: var(--tlsh-heading); }
.tlsh-ev-date__month { display: block; margin-top: 3px; font-size: 0.72em; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tlsh-accent); }

.tlsh-ev-card__body { padding: 16px 18px 18px; }
.tlsh-ev-card__title {
	margin: 0;
	font-size: 1.1em;
	line-height: 1.3;
	color: var(--tlsh-heading);
}
.tlsh-ev-card__link:hover .tlsh-ev-card__title { color: var(--tlsh-accent); }
.tlsh-ev-card .tlsh-ev-meta { margin-bottom: 0; }

.tlsh-ev-empty { opacity: 0.75; }

/* ------------------------------------------------------------ Single event */

.tlsh-ev-single-wrap { width: 100%; }
.tlsh-ev-single { max-width: 1140px; margin: 0 auto; padding: 48px 0 72px; }

.tlsh-ev-single__back {
	display: inline-block;
	margin-bottom: 22px;
	font-size: 0.9em;
	text-decoration: none;
	color: var(--tlsh-text);
}
.tlsh-ev-single__back:hover { color: var(--tlsh-accent); }
.tlsh-ev-single__eyebrow {
	margin: 0 0 8px;
	font-size: 0.8em;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tlsh-accent);
}
.tlsh-ev-single__title { margin: 0 0 10px; line-height: 1.12; }
.tlsh-ev-single__when { margin: 0; font-size: 1.15em; color: var(--tlsh-text); }

.tlsh-ev-notice {
	margin: 26px 0 0;
	padding: 14px 18px;
	border-radius: 10px;
	background: var(--tlsh-soft);
}
.tlsh-ev-notice--cancelled { background: #fbe7e9; color: #a4222e; font-weight: 600; }

.tlsh-ev-single__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 48px;
	margin-top: 36px;
	align-items: start;
}
.tlsh-ev-single__image { margin: 0 0 28px; }
.tlsh-ev-single__image img { width: 100%; height: auto; border-radius: var(--tlsh-radius); display: block; }
.tlsh-ev-single__content > *:last-child { margin-bottom: 0; }
.tlsh-ev-single__source { margin-top: 28px; font-size: 0.85em; opacity: 0.75; }

.tlsh-ev-single__aside { position: sticky; top: 32px; }
.tlsh-ev-panel {
	padding: 26px;
	border: 1px solid var(--tlsh-line);
	border-radius: var(--tlsh-radius);
	background: var(--tlsh-surface);
}
.tlsh-ev-panel__row { display: grid; gap: 4px; padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px solid var(--tlsh-line); }
.tlsh-ev-panel__label {
	font-size: 0.75em;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.6;
}
.tlsh-ev-panel__value { line-height: 1.5; }
.tlsh-ev-button {
	display: block;
	padding: 14px 20px;
	border-radius: 999px;
	background: var(--tlsh-accent);
	color: #fff;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s ease;
}
.tlsh-ev-button:hover, .tlsh-ev-button:focus { background: var(--tlsh-accent-hover); color: #fff; }
.tlsh-ev-panel__cal { display: block; margin-top: 14px; font-size: 0.9em; text-align: center; }

.tlsh-ev-single__more { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--tlsh-line); }
.tlsh-ev-single__more h2 { margin: 0 0 24px; }

@media (max-width: 921px) {
	.tlsh-ev-single { padding: 32px 0 56px; }
	.tlsh-ev-single__grid { grid-template-columns: 1fr; gap: 28px; }
	.tlsh-ev-single__aside { position: static; order: -1; }
	.tlsh-ev-single__more { margin-top: 48px; padding-top: 36px; }
}

/* ------------------------------------------------------------ Filters + load more */

.tlsh-ev-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 28px;
}
.tlsh-ev-filter {
	padding: 8px 16px;
	border: 1px solid var(--tlsh-line);
	border-radius: 999px;
	background: var(--tlsh-surface);
	color: var(--tlsh-heading);
	font: inherit;
	font-size: 0.9em;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tlsh-ev-filter:hover { border-color: var(--tlsh-accent); color: var(--tlsh-accent); background: var(--tlsh-surface); }
.tlsh-ev-filter.is-active,
.tlsh-ev-filter.is-active:hover { background: var(--tlsh-accent); border-color: var(--tlsh-accent); color: #fff; }
.tlsh-ev-filter:focus-visible { outline: 2px solid var(--tlsh-accent); outline-offset: 2px; }

.tlsh-ev-list .tlsh-ev-grid { transition: opacity 0.2s ease; }
.tlsh-ev-list.is-loading .tlsh-ev-grid { opacity: 0.5; }

.tlsh-ev-more { margin-top: 36px; text-align: center; }
.tlsh-ev-more__btn {
	display: inline-block;
	border: 0;
	padding: 14px 32px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.tlsh-ev-more__btn[hidden] { display: none; }
.tlsh-ev-more__btn:disabled { opacity: 0.6; cursor: wait; }

/* ------------------------------------------------------------ News cards */

.tlsh-news-card__source {
	margin: 0 0 6px;
	font-size: 0.72em;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tlsh-accent);
}
.tlsh-news-card__excerpt { margin: 8px 0 0; font-size: 0.9em; line-height: 1.5; color: var(--tlsh-text); }
.tlsh-news-card__ext { opacity: 0.6; }
.tlsh-news-card .tlsh-ev-meta__when { font-weight: 500; }
.tlsh-news-source { margin-top: 28px; }
.tlsh-news-source .tlsh-news-source__btn { display: inline-block; padding: 12px 26px; }

/* ------------------------------------------------------------ Venue cards */

.tlsh-ev-card__media.is-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--tlsh-soft), var(--tlsh-surface));
}
.tlsh-venue-card__initial {
	font-size: 4em;
	font-weight: 700;
	line-height: 1;
	color: var(--tlsh-accent);
	opacity: 0.35;
}
.tlsh-ev-single__venue-link { color: inherit; }
