.ue-directory,
.ue-event-page,
.ue-venue-page,
.ue-event-sidebar {
	--ue-ink: #171717;
	--ue-muted: #666;
	--ue-line: #e3e3e3;
	--ue-accent: #e31d3b;
	--ue-soft: #f5f5f5;
}

.ue-filters {
	display: grid;
	grid-template-columns: 1.35fr repeat(4, minmax(130px, 1fr)) auto;
	gap: 14px;
	align-items: end;
	padding: 22px;
	margin: 0 0 22px;
	background: var(--ue-soft);
	border-top: 4px solid var(--ue-ink);
}

.ue-filter label {
	display: block;
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.ue-filter input,
.ue-filter select {
	width: 100%;
	height: 46px;
	padding: 0 12px;
	border: 1px solid #cfcfcf;
	border-radius: 0;
	background: #fff;
	color: var(--ue-ink);
	font: inherit;
}

.ue-filter-date {
	display: none;
}

.ue-filters:has(#ue_when option[value="date"]:checked) .ue-filter-date {
	display: block;
}

.ue-filter-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 46px;
}

.ue-plugin-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 20px;
	border: 0;
	border-radius: 0;
	background: var(--ue-accent);
	color: #fff !important;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .03em;
	text-decoration: none !important;
	text-transform: uppercase;
	cursor: pointer;
}

.ue-plugin-button:hover,
.ue-plugin-button:focus {
	background: #b7132d;
	color: #fff;
}

.ue-clear {
	color: var(--ue-ink);
	font-size: 13px;
	font-weight: 700;
}

.ue-results-summary {
	margin: 0 0 18px;
	color: var(--ue-muted);
	font-size: 14px;
}

.ue-event-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.ue-event-card {
	overflow: hidden;
	border: 1px solid var(--ue-line);
	background: #fff;
}

.ue-card-image {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #222;
}

.ue-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s ease;
}

.ue-card-image:hover img {
	transform: scale(1.03);
}

.ue-image-placeholder,
.ue-single-placeholder {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #171717, #3a3a3a);
}

.ue-image-placeholder::after,
.ue-single-placeholder::after {
	position: absolute;
	top: 50%;
	left: 50%;
	color: rgba(255, 255, 255, .72);
	content: "Urbanista Events";
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	transform: translate(-50%, -50%);
	white-space: nowrap;
}

.ue-date-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	flex-direction: column;
	min-width: 54px;
	padding: 8px 7px;
	background: #fff;
	color: #111;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
}

.ue-date-badge strong {
	font-size: 24px;
	line-height: 1.05;
}

.ue-card-body {
	padding: 18px;
}

.ue-card-type {
	margin-bottom: 8px;
	color: var(--ue-accent);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ue-card-title {
	margin: 0 0 12px;
	font-size: 22px;
	line-height: 1.15;
}

.ue-card-title a {
	color: var(--ue-ink);
	text-decoration: none;
}

.ue-card-meta {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-bottom: 17px;
	color: var(--ue-muted);
	font-size: 14px;
}

.ue-card-meta a {
	color: inherit;
}

.ue-card-link {
	color: var(--ue-ink);
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
	text-transform: uppercase;
}

.ue-card-link span {
	color: var(--ue-accent);
}

.ue-empty {
	padding: 50px 20px;
	background: var(--ue-soft);
	text-align: center;
}

.ue-empty h3 {
	margin: 0 0 8px;
}

.ue-pagination {
	margin-top: 34px;
}

.ue-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ue-pagination a,
.ue-pagination span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 11px;
	border: 1px solid var(--ue-line);
	color: var(--ue-ink);
	text-decoration: none;
}

.ue-pagination .current {
	border-color: var(--ue-ink);
	background: var(--ue-ink);
	color: #fff;
}

.ue-single-event {
	display: grid;
	gap: 22px;
	margin: 0 0 30px;
}

.ue-single-hero {
	width: 100%;
	aspect-ratio: 16 / 8;
	overflow: hidden;
	background: #222;
}

.ue-single-hero img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ue-event-toolbar {
	display: flex;
	gap: 12px;
	align-items: stretch;
	justify-content: space-between;
}

.ue-event-pills {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: nowrap;
	gap: 8px;
	min-width: 0;
}

.ue-event-pill {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	min-height: 52px;
	padding: 8px 13px;
	border: 1px solid var(--ue-line);
	border-radius: 999px;
	background: #fff;
	line-height: 1.15;
}

.ue-event-pill span {
	margin-bottom: 3px;
	color: var(--ue-muted);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.ue-event-pill strong {
	overflow: hidden;
	font-size: 13px;
	font-weight: 800;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ue-ticket-button {
	flex: 0 0 auto;
	min-height: 52px;
	padding-inline: 24px;
}

.ue-event-alert {
	margin: 0;
	padding: 14px 18px;
	background: #fff2cc;
	border-left: 4px solid #d69d00;
	font-weight: 800;
	text-transform: uppercase;
}

.ue-event-alert-cancelled {
	background: #ffe7e7;
	border-color: #c92727;
}

.ue-event-venue-card {
	display: grid;
	grid-template-columns: minmax(180px, 34%) minmax(0, 1fr);
	overflow: hidden;
	border-top: 4px solid var(--ue-ink);
	background: var(--ue-soft);
}

.ue-event-venue-card-no-image {
	grid-template-columns: minmax(0, 1fr);
}

.ue-event-venue-image {
	display: block;
	min-height: 220px;
	overflow: hidden;
	background: #222;
}

.ue-event-venue-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ue-event-venue-content {
	padding: 24px 26px;
}

.ue-venue-eyebrow {
	display: block;
	margin-bottom: 5px;
	color: var(--ue-accent);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.ue-event-venue-content h2 {
	margin: 0 0 6px;
	font-size: 25px;
	line-height: 1.15;
}

.ue-event-venue-content h2 a {
	color: var(--ue-ink);
	text-decoration: none;
}

.ue-event-venue-address {
	margin: 0 0 18px !important;
	color: var(--ue-muted);
	font-size: 14px;
}

.ue-event-venue-content h3 {
	margin: 18px 0 7px;
	font-size: 15px;
	line-height: 1.3;
}

.ue-event-venue-content p:not(.ue-event-venue-address) {
	margin: 0 0 16px;
	line-height: 1.6;
}

.ue-event-venue-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	margin-top: 17px;
}

.ue-event-venue-links a {
	color: var(--ue-ink);
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
	text-transform: uppercase;
}

.ue-event-venue-links span {
	color: var(--ue-accent);
}

.ue-event-description p {
	margin: 0 0 1.25em;
}

.ue-event-description h3 {
	margin: 1.6em 0 .65em;
	font-size: 1.25em;
	line-height: 1.3;
}

.ue-event-description ul,
.ue-event-description ol {
	margin: 0 0 1.35em 1.3em;
}

.ue-event-description li {
	margin-bottom: .4em;
}

.ue-source {
	clear: both;
	margin-top: 28px;
	padding-top: 14px;
	border-top: 1px solid #e4e4e4;
	color: #777;
	font-size: 12px;
}

.ue-event-sidebar .ue-sidebar-widget {
	box-sizing: border-box;
	margin: 0 0 30px;
	padding: 30px;
	background: #fff;
}

.ue-event-sidebar .widget-title {
	margin: 0 0 20px;
}

.ue-sidebar-search {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
}

.ue-sidebar-search input {
	min-width: 0;
	height: 50px;
	padding: 0 13px;
	border: 1px solid var(--ue-line);
	border-right: 0;
	border-radius: 0;
	background: #fff;
	color: inherit;
	font: inherit;
}

.ue-sidebar-search button {
	min-width: 82px;
	padding: 0 14px;
	border: 0;
	border-radius: 0;
	background: var(--ue-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
}

.ue-sidebar-search button:hover,
.ue-sidebar-search button:focus {
	background: #b7132d;
}

.ue-sidebar-quick-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-top: 15px;
}

.ue-sidebar-quick-links a,
.ue-sidebar-all-events {
	color: var(--ue-ink);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .03em;
	text-decoration: none;
	text-transform: uppercase;
}

.ue-sidebar-quick-links a:hover,
.ue-sidebar-quick-links a:focus,
.ue-sidebar-all-events:hover,
.ue-sidebar-all-events:focus {
	color: var(--ue-accent);
}

.ue-sidebar-events {
	display: grid;
	gap: 16px;
}

.ue-sidebar-event {
	display: grid;
	grid-template-columns: 82px minmax(0, 1fr);
	gap: 13px;
	align-items: start;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--ue-line);
}

.ue-sidebar-event:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.ue-sidebar-event-image {
	display: block;
	width: 82px;
	aspect-ratio: 1;
	overflow: hidden;
	background: #222;
}

.ue-sidebar-event-image img,
.ue-sidebar-event-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ue-sidebar-event-placeholder {
	background: linear-gradient(135deg, #171717, #3a3a3a);
}

.ue-sidebar-event-date {
	display: block;
	margin-bottom: 5px;
	color: var(--ue-accent);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.ue-sidebar-event h4 {
	margin: 0 0 5px;
	font-size: 15px;
	line-height: 1.25;
}

.ue-sidebar-event h4 a {
	color: var(--ue-ink);
	text-decoration: none;
}

.ue-sidebar-event h4 a:hover,
.ue-sidebar-event h4 a:focus {
	color: var(--ue-accent);
}

.ue-sidebar-event-venue {
	color: var(--ue-muted);
	font-size: 11px;
	text-decoration: none;
}

.ue-sidebar-venues {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ue-sidebar-venues li {
	display: flex;
	gap: 12px;
	align-items: baseline;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid var(--ue-line);
}

.ue-sidebar-venues li:first-child {
	padding-top: 0;
}

.ue-sidebar-venues a {
	color: var(--ue-ink);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.ue-sidebar-venues a:hover,
.ue-sidebar-venues a:focus {
	color: var(--ue-accent);
}

.ue-sidebar-venues span {
	flex: 0 0 auto;
	color: var(--ue-muted);
	font-size: 11px;
}

.ue-sidebar-all-events {
	display: inline-block;
	margin-top: 20px;
}

.ue-sidebar-all-events span {
	color: var(--ue-accent);
}

.ue-venue-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	margin-bottom: 24px;
	padding: 16px 18px;
	background: #f5f5f5;
}

.ue-venue-events {
	clear: both;
	margin-top: 42px;
}

.ue-venue-events > h2 {
	margin-bottom: 20px;
}

@media (max-width: 1100px) {
	.ue-filters {
		grid-template-columns: repeat(3, 1fr);
	}

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

@media (max-width: 760px) {
	.ue-event-toolbar {
		flex-direction: column;
	}

	.ue-ticket-button {
		width: 100%;
	}
}

@media (max-width: 680px) {
	.ue-filters {
		grid-template-columns: 1fr;
		padding: 18px;
	}

	.ue-event-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.ue-event-pills {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ue-event-pill strong {
		overflow: visible;
		text-overflow: clip;
		white-space: normal;
	}

	.ue-event-venue-card {
		grid-template-columns: 1fr;
	}

	.ue-event-venue-image {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.ue-event-venue-content {
		padding: 21px;
	}

	.ue-filter-actions {
		justify-content: space-between;
	}
}
