/* Single event (child theme tribe-events/single-event.php). Builds on the
   listing single layout in idu-single-listing.css; this file holds only what
   an event needs on top: the image, the calendar + share row, the details
   list and the leftovers from The Events Calendar's own styles. */

.single-tribe_events #tribe-events-content.idu-event-single {
	max-width: none;
	margin: 0;
	padding: 0;
}
.single-tribe_events .tribe-events-single .idu-single-grid,
.idu-event-single .idu-single-grid {
	margin-top: 0;
}

/* The image: one framed picture, the date badge in its corner. */
.idu-event-single .idu-event-media {
	position: relative;
}
.idu-event-single .idu-event-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--idu-listings-radius-lg, 14px);
}
.idu-event-single .idu-event-media .idu-ev-date {
	position: absolute;
	top: 16px;
	left: 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 58px;
	padding: 8px 10px;
	border-radius: 12px;
	background: #fff;
	color: var(--idu-listings-primary-ink, #032b1b);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
	line-height: 1;
	text-align: center;
}
.idu-event-single .idu-event-media .idu-ev-date-day {
	font-size: 22px;
	font-weight: 600;
}
.idu-event-single .idu-event-media .idu-ev-date-month {
	margin-top: 3px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--idu-listings-muted, #6b7280);
}

/* The title card. */
.idu-event-single .idu-single-title {
	max-width: none;
}
.idu-event-single .idu-keyfacts {
	margin-top: var(--idu-spacing-3, 20px);
}
.idu-event-single .idu-keyfact {
	text-decoration: none;
}
.idu-event-single a.idu-keyfact:hover {
	color: var(--idu-listings-accent, #eca002);
}
.idu-event-single .idu-keyfact--flag img,
.idu-event-single .idu-keyfact--flag svg {
	width: 18px;
	height: 13px;
	border-radius: 2px;
}
.idu-event-single .idu-posted-by {
	margin: 14px 0 0;
}

/* Add to calendar and share, side by side under the facts. */
.idu-event-single .idu-event-actions {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 12px;
	margin-top: var(--idu-spacing-3, 20px);
	padding-top: var(--idu-spacing-3, 20px);
	border-top: 1px solid var(--idu-listings-line-4, #eee);
}
.idu-event-single .idu-event-actions .tribe-events.tribe-common {
	margin: 0;
	padding: 0;
}
.idu-event-single .idu-event-actions .tribe-events-c-subscribe-dropdown__container {
	margin: 0;
}
.idu-event-single .idu-event-actions .tribe-events-c-subscribe-dropdown {
	margin: 0;
}
.idu-event-single .idu-event-actions .idu-share--event {
	margin: 0;
	width: 100%;
	justify-content: flex-start;
	flex-wrap: wrap;
}

/* The description panel. */
.idu-event-single .idu-desc {
	padding-top: 0;
	border-top: 0;
}
.idu-event-single .idu-desc p:last-child {
	margin-bottom: 0;
}

/* The details list. */
.idu-event-single .idu-specs li {
	align-items: flex-start;
}
.idu-event-single .idu-spec-value {
	max-width: 62%;
}
.idu-event-single .idu-spec-value a {
	color: var(--idu-listings-ink, #032b1b);
	text-decoration: none;
}
.idu-event-single .idu-spec-value a:hover {
	color: var(--idu-listings-accent, #eca002);
}
.idu-event-single .idu-event-directions {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 500;
	color: var(--idu-listings-accent, #eca002) !important;
}
.idu-event-single .idu-map iframe {
	display: block;
	border-radius: var(--idu-listings-radius, 12px);
}

/* Notices from the plugin (an event that has passed, and so on). */
.idu-event-single .tribe-events-notices {
	margin: 0 0 16px;
	border-radius: var(--idu-listings-radius, 12px);
}

@media (max-width: 899px) {
	.idu-event-single .idu-spec-value {
		max-width: 58%;
	}
}

/* The listing stylesheet styles .idu-share as a small round button (the
   listing share card's buttons carry that class). The event's share ROW
   carries it too, so undo the button look and its gold hover on the row. */
.idu-single .idu-share--event,
.idu-single .idu-share--event:hover {
	display: flex;
	width: 100%;
	height: auto;
	justify-content: flex-start;
	border: 0;
	border-radius: 0;
	background: transparent;
	transform: none;
	cursor: default;
	color: inherit;
}

/* "I will attend" (includes/event-attend.php), next to Add to calendar. */
.idu-event-single .idu-attend {
	display: inline-flex;
	margin: 0;
}
.idu-event-single .idu-attend__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 49px;
	margin: 0;
	padding: 12px 24px;
	border: 1px solid var(--idu-listings-gold, #eca002);
	border-radius: 999px;
	background: var(--idu-listings-gold, #eca002);
	box-shadow: none;
	color: var(--idu-listings-primary-ink, #032b1b);
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}
.idu-event-single .idu-attend__btn:hover,
.idu-event-single .idu-attend__btn:focus {
	background: var(--idu-listings-gold, #eca002);
	color: var(--idu-listings-primary-ink, #032b1b);
	filter: brightness(0.95);
}
.idu-event-single .idu-attend__btn:focus-visible {
	outline: 2px solid var(--idu-listings-primary-ink, #032b1b);
	outline-offset: 2px;
}
.idu-event-single .idu-attend__btn svg {
	display: block;
	flex: 0 0 18px;
}
.idu-event-single .idu-attend__icon {
	display: inline-flex;
}
.idu-event-single .idu-attend__btn .idu-attend__icon--tick,
.idu-event-single .idu-attend__btn .idu-attend__label--on,
.idu-event-single .idu-attend__btn .idu-attend__count {
	display: none;
}

/* Going: green, with the total shown. */
.idu-event-single .idu-attend__btn.is-going,
.idu-event-single .idu-attend__btn.is-going:hover,
.idu-event-single .idu-attend__btn.is-going:focus,
.idu-event-single .idu-attend__btn.is-past {
	border-color: #00a352;
	background: #e8f6ee;
	color: #111;
	filter: none;
}
.idu-event-single .idu-attend__btn.is-going:hover {
	background: #d9f0e3;
}
.idu-event-single .idu-attend__btn.is-going .idu-attend__icon--plus,
.idu-event-single .idu-attend__btn.is-going .idu-attend__label--off {
	display: none;
}
.idu-event-single .idu-attend__btn.is-going .idu-attend__icon--tick,
.idu-event-single .idu-attend__btn.is-going .idu-attend__label--on,
.idu-event-single .idu-attend__btn.is-going .idu-attend__count {
	display: inline-flex;
}
.idu-event-single .idu-attend__btn.is-going .idu-attend__icon--tick,
.idu-event-single .idu-attend__btn.is-past svg {
	color: #00a352;
}
.idu-event-single .idu-attend__btn.is-going .idu-attend__count {
	align-items: center;
	gap: 8px;
	color: #394b41;
	font-weight: 400;
}
.idu-event-single .idu-attend__btn.is-going .idu-attend__count::before {
	content: "";
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
}
.idu-event-single .idu-attend__btn.is-past {
	cursor: default;
}
.idu-event-single .idu-attend__btn[aria-busy="true"] {
	opacity: 0.6;
	pointer-events: none;
}

@media (max-width: 600px) {
	.idu-event-single .idu-event-actions > .idu-attend,
	.idu-event-single .idu-event-actions > .idu-attend .idu-attend__btn {
		width: 100%;
	}
}

/* Phones: Add to calendar full width under I will attend. */
@media (max-width: 600px) {
	.idu-event-single .idu-event-actions > .tribe-events,
	.idu-event-single .idu-event-actions .tribe-events-c-subscribe-dropdown__container,
	.idu-event-single .idu-event-actions .tribe-events-c-subscribe-dropdown,
	.idu-event-single .idu-event-actions .tribe-events-c-subscribe-dropdown__button {
		width: 100%;
	}
	.idu-event-single .idu-event-actions .tribe-events-c-subscribe-dropdown__button {
		display: flex;
		align-items: center;
		justify-content: center;
	}
}
