/*
 * GTC venue and organizer pages.
 * Loads after gtc-events-list.css. The list, day headings, rows and sidebar
 * come from the List view styles; this file adds the header block and hides
 * the plugin pieces the header replaces.
 *
 * Every rule starts at the view container so it outranks the plugin's
 * .tribe-common rules and touches nothing outside these two pages.
 */

/* ---------- Plugin pieces the new header replaces ---------- */

.tribe-events-view.gtc-events-vo .gtc-events-list__intro,
.tribe-events-view.gtc-events-vo .tribe-events-header__title,
.tribe-events-view.gtc-events-vo .tribe-events-header__breadcrumbs,
.tribe-events-view.gtc-events-vo .tribe-events-back,
.tribe-events-view.gtc-events-vo .tribe-events-c-top-bar,
.tribe-events-view.gtc-events-vo .tribe-events-pro-venue__meta,
.tribe-events-view.gtc-events-vo .tribe-events-pro-organizer__meta {
	display: none !important;
}

/* ---------- Header block ---------- */

.tribe-events-view.gtc-events-vo .gtc-vo {
	display: flex;
	flex-direction: column;
	gap: 20px;
	/* The plugin's header is a flex row; take a full line of it. */
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	grid-column: 1 / -1;
	margin: 0 0 32px;
	font-family: Inter, system-ui, sans-serif;
	color: #101828;
}

.tribe-events-view.gtc-events-vo .gtc-vo__back {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	font-size: 14px;
	font-weight: 700;
	color: #166DFC;
	text-decoration: none;
}
.tribe-events-view.gtc-events-vo .gtc-vo__back:hover { color: #0B4FC4; text-decoration: underline; }

.tribe-events-view.gtc-events-vo .gtc-vo__hero {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	overflow: hidden;
	border: 1px solid #E4E7EC;
	border-radius: 12px;
	background: #F4F7FB;
}

.tribe-events-view.gtc-events-vo .gtc-vo__body {
	flex: 1 1 420px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 32px;
}

.tribe-events-view.gtc-events-vo .gtc-vo__kicker {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #166DFC;
}

.tribe-events-view.gtc-events-vo .gtc-vo__title {
	margin: 0;
	font-family: Inter, system-ui, sans-serif;
	font-size: clamp(30px, 4vw, 44px);
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #101828;
	overflow-wrap: anywhere;
}

.tribe-events-view.gtc-events-vo .gtc-vo__address {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	font-size: 17px;
	line-height: 1.5;
	color: #344054;
}
.tribe-events-view.gtc-events-vo .gtc-vo__address .gtc-vo__icon {
	flex-shrink: 0;
	margin-top: 3px;
	color: #166DFC;
}

.tribe-events-view.gtc-events-vo .gtc-vo__desc {
	max-width: 640px;
	font-family: 'Source Serif 4', Georgia, serif;
	font-size: 17px;
	line-height: 1.55;
	color: #475467;
}
.tribe-events-view.gtc-events-vo .gtc-vo__desc > * { margin: 0 0 0.75em; }
.tribe-events-view.gtc-events-vo .gtc-vo__desc > :last-child { margin-bottom: 0; }
.tribe-events-view.gtc-events-vo .gtc-vo__desc a { color: #166DFC; }
.tribe-events-view.gtc-events-vo .gtc-vo__desc img { max-width: 100%; height: auto; }

.tribe-events-view.gtc-events-vo .gtc-vo__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tribe-events-view.gtc-events-vo .gtc-vo__cats a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0 12px;
	border: 1px solid #D0D5DD;
	border-radius: 999px;
	background: #FFFFFF;
	font-size: 13px;
	font-weight: 600;
	color: #344054;
	text-decoration: none;
}
.tribe-events-view.gtc-events-vo .gtc-vo__cats a:hover { border-color: #166DFC; color: #166DFC; }

.tribe-events-view.gtc-events-vo .gtc-vo__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 4px;
}

/* Buttons: reset the theme's pink button/link styles. */
.tribe-events-view.gtc-events-vo .gtc-vo__btn,
.tribe-events-view.gtc-events-vo .gtc-vo__btn:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid #D0D5DD;
	border-radius: 10px;
	background: #FFFFFF;
	box-shadow: none;
	font-family: Inter, system-ui, sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	color: #101828;
	text-decoration: none;
	white-space: nowrap;
}
.tribe-events-view.gtc-events-vo .gtc-vo__btn:hover,
.tribe-events-view.gtc-events-vo .gtc-vo__btn:focus-visible {
	border-color: #101828;
	background: #FFFFFF;
	color: #101828;
}
.tribe-events-view.gtc-events-vo .gtc-vo__btn--primary,
.tribe-events-view.gtc-events-vo .gtc-vo__btn--primary:visited {
	border-color: #166DFC;
	background: #166DFC;
	color: #FFFFFF;
}
.tribe-events-view.gtc-events-vo .gtc-vo__btn--primary:hover,
.tribe-events-view.gtc-events-vo .gtc-vo__btn--primary:focus-visible {
	border-color: #0B4FC4;
	background: #0B4FC4;
	color: #FFFFFF;
}

.tribe-events-view.gtc-events-vo .gtc-vo a:focus-visible {
	outline: 3px solid #166DFC;
	outline-offset: 2px;
}

/* Map or image panel (venue). */
.tribe-events-view.gtc-events-vo .gtc-vo__media {
	position: relative;
	flex: 1 1 380px;
	min-height: 280px;
	background: #DCE6F2;
}
.tribe-events-view.gtc-events-vo .gtc-vo__media iframe,
.tribe-events-view.gtc-events-vo .gtc-vo__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	border: 0;
	border-radius: 0;
	object-fit: cover;
	object-position: 50% 30%;
}

/* Organizer: logo or initials beside the text. */
.tribe-events-view.gtc-events-vo--organizer .gtc-vo__hero {
	align-items: center;
	gap: 24px 32px;
	padding: 32px;
}
.tribe-events-view.gtc-events-vo--organizer .gtc-vo__body { padding: 0; flex-basis: 420px; }
.tribe-events-view.gtc-events-vo .gtc-vo__logo {
	width: 120px;
	height: 120px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 1px solid #E4E7EC;
	border-radius: 16px;
	background: #FFFFFF;
}
.tribe-events-view.gtc-events-vo .gtc-vo__logo img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	padding: 10px;
	box-sizing: border-box;
}
.tribe-events-view.gtc-events-vo .gtc-vo__logo--initials {
	border-color: #166DFC;
	background: #166DFC;
	font-size: 40px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #FFFFFF;
}

/* ---------- "Upcoming at …" heading ---------- */

.tribe-events-view.gtc-events-vo .tribe-events-header__content-title {
	margin: 0 0 8px;
	padding: 0;
}
.tribe-events-view.gtc-events-vo .tribe-events-header__content-title-text {
	margin: 0;
	font-family: Inter, system-ui, sans-serif;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: #101828;
}

/* Sidebar card styles are inline on gtc-events-list (see GTC_Venue_Organizer::CARD_CSS). */

/* ---------- Phones ---------- */

@media (max-width: 599px) {
	.tribe-events-view.gtc-events-vo .gtc-vo__body { padding: 24px 20px; gap: 12px; }
	.tribe-events-view.gtc-events-vo .gtc-vo__address,
	.tribe-events-view.gtc-events-vo .gtc-vo__desc { font-size: 16px; }
	.tribe-events-view.gtc-events-vo .gtc-vo__media { flex-basis: 100%; min-height: 220px; }
	.tribe-events-view.gtc-events-vo .gtc-vo__actions { flex-direction: column; align-items: stretch; }
	.tribe-events-view.gtc-events-vo .gtc-vo__btn { justify-content: center; }
	.tribe-events-view.gtc-events-vo--organizer .gtc-vo__hero { padding: 24px 20px; gap: 16px; }
	.tribe-events-view.gtc-events-vo .gtc-vo__logo { width: 80px; height: 80px; border-radius: 12px; }
	.tribe-events-view.gtc-events-vo .gtc-vo__logo--initials { font-size: 28px; }
	.tribe-events-view.gtc-events-vo .tribe-events-header__content-title-text { font-size: 22px; }
}
