/* RateMyDateNI Events: badges, spots-left row and filter buttons.
   Colours come from the variables below, so they can be overridden in Elementor's Custom CSS. */

:root {
	--rmd-red: #C62F37;
	--rmd-ink: #1F1B1C;
	--rmd-muted: #5B5557;
	--rmd-yellow: #F2C230;
	--rmd-soft: #FAF7F6;
	--rmd-line: #DDD3D1;
	--rmd-dark-panel: #2C2627;
}

/* Badges */
.rmd-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.rmd-badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	padding: 6px 10px;
	border-radius: 999px;
	background: #fff;
	color: var(--rmd-ink);
	white-space: nowrap;
}
.rmd-badge--selling-fast,
.rmd-badge--last-few {
	background: var(--rmd-yellow);
	color: var(--rmd-ink);
}
.rmd-badge--new-event,
.rmd-badge--new-format {
	background: var(--rmd-ink);
	color: #fff;
}
.rmd-badge--sold-out {
	background: #5B5557;
	color: #fff;
}

/* Spots left */
.rmd-spots {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 12px;
	background: var(--rmd-soft);
	color: var(--rmd-ink);
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 14px;
	line-height: 1.3;
}
.rmd-spots--dark {
	background: var(--rmd-dark-panel);
	color: #fff;
}
.rmd-spots__item.is-full {
	opacity: 0.75;
}

/* Filter buttons */
.rmd-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.rmd-filters .rmd-filter {
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid var(--rmd-line);
	background: #fff;
	color: var(--rmd-ink);
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
}
.rmd-filters .rmd-filter:hover {
	border-color: var(--rmd-ink);
	background: #fff;
	color: var(--rmd-ink);
}
.rmd-filters .rmd-filter.is-active {
	background: var(--rmd-ink);
	border-color: var(--rmd-ink);
	color: #fff;
}
.rmd-filters .rmd-filter:focus-visible {
	outline: 2px solid var(--rmd-red);
	outline-offset: 2px;
}

@media (max-width: 767px) {
	/* One swipeable row on phones instead of wrapping onto several lines. */
	.rmd-filters {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
		-webkit-overflow-scrolling: touch;
	}
	.rmd-filters .rmd-filter {
		flex: 0 0 auto;
		white-space: nowrap;
	}
}

/* ------------------------------------------------------------------
   Ready-made cards: [rmd_events_grid] and [rmd_next_up]
   Fonts are inherited from the site so the cards match the theme.
   ------------------------------------------------------------------ */

.rmd-events {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.rmd-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 24px;
}
.rmd-events-empty {
	margin: 0;
	color: var(--rmd-muted);
}

/* Card */
.rmd-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #ECE4E2;
	border-radius: 16px;
	overflow: hidden;
	color: var(--rmd-ink);
	text-align: left;
}
.rmd-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #F3E6E4;
	overflow: hidden;
}
.rmd-card__media .rmd-card__img,
.rmd-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
}
.rmd-card__tag {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #fff;
	color: var(--rmd-ink);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 6px 10px;
	border-radius: 999px;
}
.rmd-card__badges {
	position: absolute;
	top: 12px;
	right: 12px;
	max-width: 60%;
}
.rmd-card__badges .rmd-badges {
	justify-content: flex-end;
}
.rmd-card__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	flex-grow: 1;
	padding: 20px;
}
.rmd-card__head,
.rmd-nextup__head {
	display: flex;
	align-items: center;
	gap: 14px;
}
.rmd-card__heading {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.rmd-card .rmd-card__title {
	margin: 0;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--rmd-ink);
}
.rmd-card .rmd-card__meta {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
	color: var(--rmd-muted);
}
.rmd-card .rmd-card__desc {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: #4A4446;
}
.rmd-card__foot,
.rmd-nextup__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
}

/* Date tile */
.rmd-datetile {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 1px solid #ECE4E2;
	border-radius: 12px;
	line-height: 1;
}
.rmd-datetile__mon {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--rmd-red);
}
.rmd-datetile__day {
	margin-top: 3px;
	font-size: 22px;
	font-weight: 700;
	color: var(--rmd-ink);
}
.rmd-datetile--solid {
	width: 72px;
	height: 72px;
	border: 0;
	background: var(--rmd-red);
}
.rmd-datetile--solid .rmd-datetile__mon,
.rmd-datetile--solid .rmd-datetile__day {
	color: #fff;
}
.rmd-datetile--solid .rmd-datetile__day {
	font-size: 28px;
}

/* Price */
.rmd-price {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.rmd-price__amount {
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
}
.rmd-price__note {
	font-size: 13px;
	color: var(--rmd-muted);
}

/* Button */
a.rmd-btn,
span.rmd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 20px;
	border-radius: 10px;
	background: var(--rmd-red);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important; /* themes often force underlines on links */
	white-space: nowrap;
}
a.rmd-btn:hover,
a.rmd-btn:focus {
	background: #A3252C;
	color: #fff;
	text-decoration: none !important;
}
a.rmd-btn:focus-visible {
	outline: 2px solid var(--rmd-ink);
	outline-offset: 2px;
}
span.rmd-btn.is-disabled {
	background: #E7E1E0;
	color: var(--rmd-muted);
	cursor: default;
}

/* Next up card */
.rmd-nextup {
	display: flex;
	flex-direction: column;
	gap: 18px;
	background: var(--rmd-ink);
	color: #fff;
	border-radius: 18px;
	padding: 28px;
	text-align: left;
}
.rmd-nextup__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.rmd-nextup__label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rmd-yellow);
}
.rmd-nextup .rmd-nextup__title {
	margin: 0;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
}
.rmd-nextup .rmd-nextup__meta {
	margin: 0;
	font-size: 15px;
	color: #D9D2D3;
}
.rmd-nextup .rmd-price__amount {
	font-size: 30px;
	color: #fff;
}
.rmd-nextup .rmd-price__note {
	color: #BDB4B6;
}
.rmd-nextup a.rmd-btn {
	min-height: 50px;
	padding: 0 26px;
	font-size: 16px;
}

@media (max-width: 767px) {
	.rmd-nextup {
		padding: 18px;
		gap: 14px;
	}
	.rmd-datetile--solid {
		width: 60px;
		height: 60px;
	}
	.rmd-datetile--solid .rmd-datetile__day {
		font-size: 24px;
	}
	.rmd-nextup .rmd-nextup__title {
		font-size: 18px;
	}
	.rmd-nextup__foot a.rmd-btn {
		flex-grow: 1;
	}
	.rmd-card__body {
		padding: 16px;
	}
	.rmd-card__foot a.rmd-btn {
		flex-grow: 1;
	}
}
