/* YTC Suggested Events — base structural styles only.
   Visual styling (exact colors/fonts) to be applied per Figma design system. */

.ytc-suggested-events-block { position: relative; z-index: 99;}
.ytc-suggested-events-block.is-loading { opacity: 0.6; pointer-events: none; }

/* Filter pills */
.ytc-sugg-pills-swiper{
	margin-bottom: 40px;
}
.ytc-sugg-filter-pills{
	border-radius: 99px;
	background: #E8F1F1;
	display: inline-block;
	width: auto;
	padding: 4px;
}
.ytc-sugg-filter-pills > .swiper-slide{
	display: inline-block;
	margin-right: 0 !important;
}
.ytc-sugg-filter-pill {
	white-space: nowrap;
	background: transparent;
	padding: 8px 16px;
	cursor: pointer;
	font-size: 14px;
	color: #71717A;
	line-height: 24px;
	border: 0;
}
.ytc-sugg-filter-pill.is-active {
	background: #fff;
	color: #18304D;
	font-weight: 700;
}

/* Nav arrows — asymmetric per design: outline prev, solid next */
.ytc-sugg-events-nav {
	position: absolute;
	top: -85px;
	right: 0;
	display: flex;
	gap: 8px;
	align-items: center;
}
.ytc-sugg-events-prev,
.ytc-sugg-events-next {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: #61BB46;
	font-size: 24px;
	line-height: 24px;
	border: solid 1px #61BB46;
}
.ytc-sugg-events-prev:hover,
.ytc-sugg-events-next:hover {
	background: #61BB46;
	color: #fff;
}

/* Card — outer (date badges + nested inner card) */
.ytc-sugg-event-card {
	position: relative;
	background: #E8F1F1;
	border-radius: 24px;
	padding: 16px;
	height: auto;
}

.ytc-sugg-event-card__dates {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
	border-bottom: dashed 1px #18304D;
	padding-bottom: 16px;
}
.ytc-sugg-event-card__date {
	display: flex;
	gap: 8px;
	line-height: 1.1;
	align-items: center;
}
.ytc-sugg-event-card__day { 
	font-size: 30px; 
	font-weight: 700; 
}
.ytc-sugg-event-card__month { 
	font-size: 14px;
	color: #18304D;
	line-height: 24px;
	width: min-content;
}
.ytc-sugg-event-card__date-sep {
	color: #18304D;
	font-size: 16px;
	line-height: 24px;
}

.ytc-sugg-event-card__arrow {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #0b1f3a;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-size: 24px;
	line-height: 24px;
}
.ytc-sugg-event-card__arrow:hover{
	background: #61BB46;
	color: #fff;
}
.ytc-sugg-event-card__inner {
	background: #fff;
	border-radius: 24px;
	padding: 24px;
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 172px;
}
.ytc-sugg-event-card__inner-line{
	width: 2px;
	height: 86px;
	background: #61BB46;
}
.ytc-sugg-event-card__logo {
	text-decoration: none;
	display: inline-block;
	width: 88px;
	height: 88px;
	border-radius: 16px;
	overflow: hidden;
	min-width: 88px;
}
.ytc-sugg-event-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.ytc-sugg-event-card__type {
	display: block;
	font-size: 12px;
	color: #888;
	margin-bottom: 4px;
}
.ytc-sugg-event-card__title {
	margin: 0 0 8px;
	font-size: 18px !important;
	line-height: 28px !important;
}
.ytc-sugg-event-card__title a {
	color: inherit;
	text-decoration: none;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ytc-sugg-event-card__location {
	display: inline-flex;
	gap: 4px;
	font-size: 13px;
	color: #6fbf73;
	line-height: 1.2;
}

.ytc-sugg-event-card__db-tag {
	display: inline-block;
	margin-top: 12px;
	background: #6fbf73;
	color: #E8F1F1;
	font-size: 12px;
	text-transform: uppercase;
	padding: 4px 16px;
	border-radius: 999px;
	line-height: 20px;
	font-weight: 700;
}

.ytc-sugg-events-swiper { padding-bottom: 36px; } /* room for pagination dots */
.ytc-sugg-events-swiper .swiper-pagination-bullet-active {
	background: #61BB46; /* placeholder — swap for ICCA Navy token */
}

.ytc-sugg-events-empty { padding: 40px 0; text-align: center; color: #888; }

/* ==========================================================
   GRID LAYOUT — separate from everything above, doesn't touch
   any slider rule, but reuses .ytc-sugg-event-card for cards.
   ========================================================== */

.ytc-sugg-grid-block {
	position: relative;
}
.ytc-sugg-grid-block.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.ytc-sugg-grid-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 24px;
}

/* Top tabs — pill row, active = white pill (matches the filter-pill style already used elsewhere in this plugin) */
.ytc-sugg-grid-tabs {
	display: inline-flex;
	background: #E8F1F1;
	border-radius: 999px;
	padding: 4px;
	gap: 4px;
}
.ytc-sugg-grid-tab {
	background: transparent;
	border: none;
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 400;
	color: #18304D;
	cursor: pointer;
	font-family: Montserrat, MontserratFallback, sans-serif;
	line-height: 24px;
	white-space: nowrap;
}
.ytc-sugg-grid-tab.is-active {
	background: #fff;
	font-weight: 700;
}

/* Filter button + popup */
.ytc-sugg-grid-filter-wrap {
	position: relative;
}
.ytc-sugg-grid-filter-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	color: #18304D;
	cursor: pointer;
}
.ytc-sugg-grid-popup {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: 280px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
	padding: 16px;
	z-index: 30;
}
.ytc-sugg-grid-popup__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 700;
	margin-bottom: 8px;
}
.ytc-sugg-grid-popup__clear-all,
.ytc-sugg-grid-popup__group-clear {
	background: none;
	border: none;
	color: #61BB46;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
}
.ytc-sugg-grid-popup__clear-all:disabled,
.ytc-sugg-grid-popup__group-clear:disabled {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}
.ytc-sugg-grid-popup__count {
	font-size: 12px;
	color: #999;
	margin-bottom: 16px;
}
.ytc-sugg-grid-popup__group-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: #999;
	margin-bottom: 8px;
}
.ytc-sugg-grid-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #18304D;
	padding: 4px 0;
	cursor: pointer;
}

/* Popup groups: spacing between them, and a scroll cap as a safety net
   for when several groups are expanded at once. */
.ytc-sugg-grid-popup__groups {
	max-height: min(60vh, 480px);
	overflow-y: auto;
	overscroll-behavior: contain;
	margin-right: -8px;
	padding-right: 8px;
}
.ytc-sugg-grid-popup__group + .ytc-sugg-grid-popup__group {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #EEF2F2;
}

/* "View more": terms past the first few stay hidden until expanded. */
.ytc-sugg-grid-checkbox.is-extra {
	display: none;
}
.ytc-sugg-grid-popup__group.is-expanded .ytc-sugg-grid-checkbox.is-extra {
	display: flex;
}
.ytc-sugg-grid-popup__more {
	background: none;
	border: none;
	padding: 4px 0 0;
	color: #61BB46;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.ytc-sugg-grid-popup__more:hover {
	text-decoration: underline;
}

/* Grid of event cards */
.ytc-sugg-grid {
	display: grid;
	grid-template-columns: repeat(var(--ytc-grid-columns, 3), 1fr);
	gap: 24px;
}
.ytc-sugg-grid-item {
	/* .ytc-sugg-event-card (shared with the slider cards) already handles
	   all the internal date/logo/type/title/location/tag styling — this
	   class only exists as a grid-context hook. */
}

/* Load more */
.ytc-sugg-grid-load-more-wrap {
	text-align: center;
	margin-top: 32px;
}
.ytc-sugg-grid-load-more {
	background: #61BB46;
	border: none;
	border-radius: 999px;
	padding: 12px 32px;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	cursor: pointer;
}
.ytc-sugg-grid-load-more:hover {
	background: #4fa63b;
}
.ytc-sugg-grid-load-more:disabled {
	opacity: 0.5;
	cursor: default;
}

@media (max-width: 999px) {
	.ytc-sugg-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 640px) {
	.ytc-sugg-grid {
		grid-template-columns: 1fr;
	}
	.ytc-sugg-grid-popup {
		width: 260px;
	}
}

/* Future/Past toggle — shared by both slider and grid layouts */
.ytc-sugg-time-filter {
	display: none;
	background: #E8F1F1;
	border-radius: 999px;
	padding: 4px;
	gap: 4px;
	margin-bottom: 20px;
}
.ytc-sugg-time-filter__btn {
	background: transparent;
	border: none;
	border-radius: 999px;
	padding: 8px 18px;
	font-size: 14px;
	font-weight: 600;
	color: #18304D;
	cursor: pointer;
}
.ytc-sugg-time-filter__btn.is-active {
	background: #fff;
}
