.th-event-template {
	--th-event-bg: #2e3e4c;
	--th-event-panel: #374a5a;
	--th-event-accent: #dbc6a1;
	--th-event-text: #ffffff;
	--th-event-muted: rgba(255, 255, 255, 0.72);
	--th-event-line: rgba(219, 198, 161, 0.2);
	background: var(--th-event-bg);
	color: var(--th-event-text);
	font-family: "Conigen", "Helvetica Neue", Arial, sans-serif;
}

.th-event-template *,
.th-event-template *::before,
.th-event-template *::after {
	box-sizing: border-box;
}

.th-event-template__container {
	width: min(1180px, calc(100% - 48px));
	margin-inline: auto;
}

.th-event-template > .th-event-template__container {
	margin-top: 5rem;
	background-image: url("https://trinidadhospitality.com/wp-content/uploads/2025/05/Asset_1.png");
	background-position: top right;
	background-repeat: no-repeat;
	background-size: 500px auto;
}

.th-event-template__breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 40px;
	font-size: 1.2rem;
	line-height: 1.5;
	color: var(--th-event-muted);
}

.th-event-template__breadcrumb a {
	color: var(--th-event-accent);
	text-decoration: none;
}

.th-event-template__header {
	padding: 24px 0 36px;
}

.th-event-template__title {
	margin: 0 0 28px;
	color: var(--th-event-text);
	font-size: clamp(36px, 5vw, 64px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.th-event-template__hero {
	margin: 0;
	width: 100%;
	overflow: hidden;
	border-radius: 20px;
	aspect-ratio: 16 / 9;
	background: #24323d;
}

.th-event-template__hero-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.th-event-template__details {
	padding: 26px 0 34px;
	border-bottom: 1px solid var(--th-event-line);
}

.th-event-template__section-title,
.th-event-related__title {
	margin: 0 0 20px;
	color: var(--th-event-accent);
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 700;
	line-height: 1.2;
}

.th-event-template__detail-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
	width: 100%;
}

.th-event-template__detail {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 1.2rem;
	line-height: 1.55;
}

.th-event-template__detail-icon {
	display: inline-flex;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	color: var(--th-event-accent);
}

.th-event-template__detail-icon svg {
	width: 100%;
	height: 100%;
}

.th-event-template__intro {
	max-width: 100%;
	padding: 42px 0 22px;
	font-family: "Conigen", sans-serif;
	font-size: 1.2rem;
	line-height: 1.75;
	color: var(--th-event-text);
}

.th-event-template__intro p {
	margin: 0 0 20px;
}

.th-event-template__hotel-sections {
	/* Pack location groups into the same three-column rhythm as hotel cards. */
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 54px 30px;
	align-items: start;
	padding-top: 42px;
	padding-bottom: 70px;
}

.th-event-hotels {
	/* PHP sets this from the number of enabled hotels in the state. */
	grid-column: span var(--th-state-columns-desktop, 1);
	min-width: 0;
}

.th-event-hotels__heading-row {
	margin-bottom: 24px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--th-event-line);
}

.th-event-hotels__heading {
	margin: 0;
	text-align: center;
	color: var(--th-event-accent);
	font-size: clamp(23px, 2.7vw, 30px);
	font-weight: 700;
	line-height: 1.2;
}

.th-event-hotels__grid {
	display: grid;
	grid-template-columns: repeat(var(--th-state-columns-desktop, 1), minmax(0, 1fr));
	align-items: stretch;
	gap: 30px;
}

.th-event-hotel-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
}

.th-event-hotel-card__image-wrap {
	overflow: hidden;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #24323d;
}

.th-event-hotel-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.th-event-hotel-card:hover .th-event-hotel-card__image {
	transform: scale(1.025);
}

.th-event-hotel-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--th-event-muted);
}

.th-event-hotel-card__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding-top: 18px;
}

.th-event-hotel-card__title {
	margin: 0 0 12px;
	color: var(--th-event-text);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.35;
}

.th-event-hotel-card__description {
	margin-bottom: 20px;
	font-family: "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.65;
	color: var(--th-event-text);
}

.th-event-hotel-card__description p {
	margin: 0;
}

.th-event-hotel-card__button,
.th-event-template .portfolio-event-card__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 46px;
	margin-top: auto;
	padding: 11px 18px;
	border: 1px solid var(--th-event-accent);
	border-radius: 6px;
	background: var(--th-event-accent);
	color: #121212;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.th-event-hotel-card__button:hover,
.th-event-hotel-card__button:focus,
.th-event-template .portfolio-event-card__button:hover,
.th-event-template .portfolio-event-card__button:focus {
	background: #ffffff;
	border-color: #ffffff;
	color: #121212;
	transform: translateY(-1px);
}

.th-event-related {
	padding: 64px 0 80px;
	background: #2e3e4c;
}

.th-event-template .portfolio-event-card {
	border-color: var(--th-event-line);
	background: var(--th-event-panel);
	color: var(--th-event-text);
}

.th-event-template .portfolio-event-card__title,
.th-event-template .portfolio-event-card__title a,
.th-event-template .portfolio-event-card__detail {
	color: var(--th-event-text);
}

@media (max-width: 1024px) {
	.th-event-template__hotel-sections {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.th-event-hotels {
		grid-column: span var(--th-state-columns-tablet, 1);
	}

	.th-event-hotels__grid {
		grid-template-columns: repeat(var(--th-state-columns-tablet, 1), minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.th-event-template__container {
		width: min(100% - 32px, 1180px);
	}

	.th-event-template__breadcrumb {
		padding-top: 24px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.th-event-template__header {
		padding: 18px 0 24px;
	}

	.th-event-template__title {
		margin-bottom: 20px;
	}

	.th-event-template__details {
		padding: 22px 0 28px;
	}

	.th-event-template__detail-grid,
	.th-event-template__hotel-sections,
	.th-event-hotels__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.th-event-hotels {
		grid-column: span 1;
	}

	.th-event-template__intro {
		padding-top: 30px;
		font-size: 16px;
	}

	.th-event-template__hotel-sections {
		gap: 34px;
		padding-top: 34px;
	}

	.th-event-template__hotel-sections {
		padding-bottom: 52px;
	}

	.th-event-related {
		padding: 48px 0 60px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.th-event-hotel-card__image,
	.th-event-hotel-card__button,
	.th-event-template .portfolio-event-card__button {
		transition: none;
	}
}
