/**
 * Ananda Events Calendar: layout for the List and Photo views.
 *
 * Ported from meditationretreat.org's theme (style.css). Site colors stay in
 * each site's theme, e.g. venue pin colors keyed on .ananda-events-venue--<slug>.
 * The date circle's own styles ride inline with the first circle (includes/date-circle.php).
 *
 * @since 2026-11-23
 */

/* Photo view: title and subtitle first (inline order -1), then Program Leader,
   date, venue, description, cost. */
.tribe-events-pro .tribe-events-pro-photo__event .tribe-events-pro-photo__event-details .ananda-events-program-leaders {
	order: 0;
}

.tribe-events-pro .tribe-events-pro-photo__event .tribe-events-pro-photo__event-details .tribe-events-pro-photo__event-datetime {
	order: 1;
	font-style: italic;
}

.tribe-events-pro .tribe-events-pro-photo__event .tribe-events-pro-photo__event-details .tribe-events-calendar-list__event-venue {
	order: 2;
}

.tribe-events-pro .tribe-events-pro-photo__event .tribe-events-pro-photo__event-details .tribe-events-calendar-list__event-description {
	order: 3;
}

.tribe-events-pro .tribe-events-pro-photo__event .tribe-events-pro-photo__event-details .tribe-events-c-small-cta {
	order: 4;
}

/* List view: title and subtitle (order 2, TEC's title value), Program Leader, then the date. */
.tribe-events .tribe-events-calendar-list__event-header .tribe-events-calendar-list__event-title,
.tribe-events .tribe-events-calendar-list__event-header .tribe-events-pro-photo__event-subtitle {
	order: 2;
}

.tribe-events .tribe-events-calendar-list__event-header .ananda-events-program-leaders {
	order: 5;
}

.tribe-events .tribe-events-calendar-list__event-header .tribe-events-calendar-list__event-datetime-wrapper {
	order: 6;
}

.tribe-events .tribe-events-calendar-list__event-header .tribe-events-pro-photo__event-subtitle {
	font-style: italic;
}

/* Venue: title line only; the street address is left to the event page. */
.tribe-events-calendar-list__event-details .tribe-events-calendar-list__event-venue-address,
.tribe-events-pro-photo__event-details .tribe-events-calendar-list__event-venue-address {
	display: none;
}

.tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-list__event-venue {
	margin-bottom: 3px;
}

/* Descriptions: visible on mobile too, and compact in Photo view. */
.tribe-common .tribe-events-calendar-list__event-description.tribe-common-a11y-hidden {
	display: block !important;
	visibility: visible !important;
}

.tribe-events-pro-photo__event-details .tribe-events-calendar-list__event-description.tribe-common-b2 {
	margin-top: 0;
}

.tribe-events-pro-photo__event-details .tribe-events-calendar-list__event-description.tribe-common-b2 p {
	font-size: 15px;
	margin-top: 0;
}

.tribe-common--breakpoint-medium.tribe-common h3.tribe-events-pro-photo__event-title.tribe-common-h6 {
	font-size: 18px;
}

/* List view: the date circle sits over the bottom-left of the image (Photo view's position). */
.tribe-events-calendar-list__event-featured-image-wrapper .ananda-events-date-circle {
	bottom: 15px;
	left: 15px;
}

/* Mobile: a rule between events. */
@media screen and (max-width: 768px) {
	/* Class doubled on purpose: beats TEC's row styles whatever the load order. */
	.tribe-common-g-row.tribe-events-calendar-list__event-row.tribe-events-calendar-list__event-row {
		padding-bottom: 35px;
		margin-bottom: 15px;
		border-bottom: 1px solid lightgray;
	}

	.tribe-events-pro .tribe-events-pro-photo__event-details-wrapper {
		padding-bottom: 35px;
		margin-bottom: 10px;
		border-bottom: 1px solid lightgray;
	}
}
