/**
 * move Timetable — display styles (v2)
 *
 * Brand: move purple #aa569d (lead), teal #5bb9c2 (accent).
 * Scoped under .move-tt so nothing here leaks into the rest of the site.
 * Card-row layout. Spaces shown as a small muted counter with a coloured
 * state dot. The activity name is the hero of each row.
 */

.move-tt {
	--mtt-p: #aa569d;
	--mtt-pd: #96487f;
	--mtt-pt: #f7eef4;
	--mtt-t: #5bb9c2;
	--mtt-td: #4aa3ac;
	--mtt-tt: #eaf6f7;
	--mtt-ink: #1d262c;
	--mtt-muted: #788791;
	--mtt-muted2: #aab5ba;
	--mtt-line: #eef0f2;
	--mtt-line2: #e2e7ea;
	--mtt-bg: #f5f6f8;
	--mtt-ok: #1e7a3b;
	--mtt-warn: #b76400;
	--mtt-bad: #b32d2e;
	--mtt-wait: #0f6e78;

	max-width: 1200px;
	margin: 0 auto;
	border-radius: 20px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 10px 40px rgba(29, 38, 44, 0.08), 0 2px 6px rgba(29, 38, 44, 0.05);
	font-family: "Museo Sans", "MuseoSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--mtt-ink);
	line-height: 1.4;
	box-sizing: border-box;
}
.move-tt *,
.move-tt *::before,
.move-tt *::after {
	box-sizing: border-box;
}

/* Header ------------------------------------------------------------------- */
.move-tt__head {
	position: relative;
	overflow: hidden;
	background: linear-gradient(100deg, #96487f 0%, #aa569d 45%, #b969ac 100%);
	padding: 20px 28px;
	color: #fff;
}
.move-tt__head::before {
	content: "";
	position: absolute;
	top: -50%;
	right: -6%;
	width: 380px;
	height: 380px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(91, 185, 194, 0.3), transparent 68%);
	filter: blur(28px);
}
.move-tt__head-inner {
	position: relative;
	z-index: 2;
}
.move-tt__title {
	font-size: 22px;
	font-weight: 900;
	letter-spacing: -0.02em;
	color: #fff;
	margin: 0;
	line-height: 1.05;
}
.move-tt__subtitle {
	font-size: 13px;
	color: #f3dbea;
	margin-top: 4px;
	font-weight: 500;
}

/* Controls ----------------------------------------------------------------- */
.move-tt__controls {
	padding: 18px 28px 8px;
	background: var(--mtt-bg);
}
.move-tt__tabs {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 8px;
	padding-bottom: 14px;
}
.move-tt__tab {
	border: 1px solid var(--mtt-line2);
	background: #fff;
	border-radius: 11px;
	padding: 10px 4px;
	cursor: pointer;
	text-align: center;
	min-width: 0;
	transition: 0.15s;
	font-family: inherit;
}
.move-tt__tab:hover {
	border-color: var(--mtt-p);
	transform: translateY(-1px);
}
.move-tt__tab.is-active {
	background: var(--mtt-p);
	border-color: var(--mtt-p);
	box-shadow: 0 6px 16px rgba(170, 86, 157, 0.3);
}
.move-tt__tab-label {
	display: block;
	font-size: 12.5px;
	font-weight: 900;
	color: var(--mtt-ink);
	line-height: 1.1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.move-tt__tab-sub {
	display: block;
	font-size: 11px;
	color: var(--mtt-muted);
	margin-top: 2px;
	font-weight: 700;
	white-space: nowrap;
}
.move-tt__tab.is-active .move-tt__tab-label {
	color: #fff;
}
.move-tt__tab.is-active .move-tt__tab-sub {
	color: #f3dbea;
}

.move-tt__filters {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}
.move-tt__filter {
	height: 40px;
	border: 1px solid var(--mtt-line2);
	border-radius: 10px;
	background: #fff;
	padding: 0 14px;
	font-size: 14px;
	color: var(--mtt-ink);
	font-family: inherit;
	cursor: pointer;
	min-width: 180px;
	font-weight: 500;
}
.move-tt__filter:hover {
	border-color: var(--mtt-p);
}
.move-tt__count {
	font-size: 13px;
	font-weight: 900;
	color: var(--mtt-pd);
	margin-left: auto;
	white-space: nowrap;
}

/* Body --------------------------------------------------------------------- */
.move-tt__body {
	padding: 4px 28px 28px;
	background: var(--mtt-bg);
	min-height: 220px;
}
.move-tt__day[hidden] {
	display: none;
}

/* Collapsible sections ----------------------------------------------------- */
.move-tt__section {
	margin-bottom: 12px;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--mtt-line);
}
.move-tt__sec-head {
	width: 100%;
	text-align: left;
	border: none;
	cursor: pointer;
	background: #fff;
	padding: 14px 20px;
	display: flex;
	align-items: center;
	gap: 14px;
	font-family: inherit;
	transition: 0.15s;
}
.move-tt__sec-head:hover {
	background: #fafbfc;
}
.move-tt__sec-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: var(--mtt-pt);
	flex: 0 0 auto;
}
.move-tt__sec-ico svg {
	width: 18px;
	height: 18px;
	color: var(--mtt-pd);
}
.move-tt__sec-ico--soon {
	background: var(--mtt-tt);
}
.move-tt__sec-ico--soon svg {
	color: var(--mtt-td);
}
.move-tt__sec-label {
	font-size: 16px;
	font-weight: 900;
	color: var(--mtt-ink);
	letter-spacing: -0.01em;
	flex: 0 0 auto;
}
.move-tt__sec-count {
	font-size: 12.5px;
	color: var(--mtt-muted);
	flex: 0 0 auto;
	font-weight: 700;
}
.move-tt__sec-chev {
	margin-left: auto;
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	transition: transform 0.2s;
}
.move-tt__sec-chev svg {
	width: 20px;
	height: 20px;
	color: #b9c2c7;
}
.move-tt__section.is-open .move-tt__sec-chev {
	transform: rotate(180deg);
}
.move-tt__sec-body {
	border-top: 1px solid var(--mtt-line);
	padding: 10px 12px;
}
.move-tt__sec-body[hidden] {
	display: none;
}
.move-tt__sec-empty {
	padding: 16px;
	font-size: 13.5px;
	color: var(--mtt-muted);
}

/* Session group ------------------------------------------------------------ */
.move-tt__group {
	background: transparent;
}

/* Hidden layers (kept in markup, suppressed in this design) ---------------- */
.move-tt__thumb {
	display: none;
}
.move-tt__accent {
	display: none;
}
.move-tt__book {
	display: none;
}

/* Session row — DESKTOP card --------------------------------------------- */
.move-tt__row {
	display: grid;
	grid-template-columns: 170px 1fr auto auto;
	grid-template-rows: auto auto;
	grid-template-areas:
		"timewrap name  badge chev"
		"timewrap foot  badge chev";
	align-items: center;
	gap: 4px 22px;
	padding: 16px 20px;
	text-decoration: none;
	color: var(--mtt-ink);
	transition: background 0.12s, border-color 0.12s;
	background: #fff;
	border: 1px solid var(--mtt-line);
	border-radius: 12px;
	margin-bottom: 8px;
}
.move-tt__row:last-child {
	margin-bottom: 0;
}
.move-tt__row:hover,
.move-tt__row:focus {
	background: #fafbfc;
	border-color: var(--mtt-line2);
	text-decoration: none;
}

/* Time + duration (left) */
.move-tt__timewrap {
	grid-area: timewrap;
	display: flex;
	flex-direction: column;
	gap: 5px;
	align-items: flex-start;
	align-self: center;
}
.move-tt__time-range {
	font-size: 18px;
	font-weight: 900;
	color: var(--mtt-ink);
	letter-spacing: -0.02em;
	white-space: nowrap;
	line-height: 1;
}
.move-tt__time-dur {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12.5px;
	color: var(--mtt-muted);
	font-weight: 700;
	white-space: nowrap;
	line-height: 1;
	background: transparent;
	padding: 0;
	border-radius: 0;
	min-width: 0;
}
.move-tt__clock {
	width: 12px;
	height: 12px;
	flex: 0 0 auto;
}

/* Activity name (hero) */
.move-tt__name {
	grid-area: name;
	font-size: 16.5px;
	font-weight: 900;
	color: var(--mtt-ink);
	letter-spacing: -0.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.2;
	align-self: end;
	min-width: 0;
}

/* Centre (below name on desktop) */
.move-tt__foot {
	grid-area: foot;
	display: flex;
	align-items: center;
	gap: 6px;
	align-self: start;
	min-width: 0;
	margin: 0;
}
.move-tt__centre {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	color: var(--mtt-muted);
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
	line-height: 1;
}
.move-tt__pin {
	width: 12.5px;
	height: 12.5px;
	color: var(--mtt-muted2);
	flex: 0 0 auto;
}
.move-tt__centre-name {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Spaces counter — repurposes the .move-tt__badge classes from PHP ------- */
.move-tt__badge {
	grid-area: badge;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12.5px;
	font-weight: 700;
	padding: 0;
	background: transparent;
	border-radius: 0;
	white-space: nowrap;
	line-height: 1;
	color: var(--mtt-muted);
	margin: 0;
}
.move-tt__badge-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	flex: 0 0 auto;
	background: var(--mtt-muted2);
}
.move-tt__badge--available {
	color: var(--mtt-muted);
	background: transparent;
}
.move-tt__badge--available .move-tt__badge-dot {
	background: var(--mtt-ok);
}
.move-tt__badge--nearly {
	color: var(--mtt-muted);
	background: transparent;
}
.move-tt__badge--nearly .move-tt__badge-dot {
	background: var(--mtt-warn);
}
.move-tt__badge--full {
	color: var(--mtt-bad);
	background: transparent;
	font-weight: 900;
}
.move-tt__badge--full .move-tt__badge-dot {
	background: var(--mtt-bad);
}
.move-tt__badge--waitlist {
	color: var(--mtt-wait);
	background: transparent;
	font-weight: 900;
}
.move-tt__badge--waitlist .move-tt__badge-dot {
	background: var(--mtt-wait);
}

/* Chevron (desktop only) */
.move-tt__chev {
	grid-area: chev;
	width: 15px;
	height: 15px;
	color: #c9d2d6;
	flex: 0 0 auto;
	align-self: center;
}

.move-tt__empty {
	text-align: center;
	padding: 2.5rem 1rem;
	color: var(--mtt-muted);
	font-size: 14px;
}

/* ========================================================================= */
/* MOBILE — stacked card per session (≤ 640px)                                */
/* ========================================================================= */
@media (max-width: 640px) {
	.move-tt__head {
		padding: 18px 16px;
	}
	.move-tt__controls {
		padding: 14px 14px 4px;
	}
	.move-tt__body {
		padding: 4px 14px 18px;
	}
	.move-tt__tabs {
		gap: 5px;
	}
	.move-tt__tab {
		padding: 9px 2px;
		border-radius: 10px;
	}
	.move-tt__tab-label {
		font-size: 11.5px;
	}
	.move-tt__tab-sub {
		font-size: 10.5px;
	}
	.move-tt__filter {
		flex: 1 1 calc(50% - 4px);
		min-width: 0;
		font-size: 13px;
	}
	.move-tt__count {
		flex: 1 1 100%;
		margin-left: 0;
		text-align: left;
		margin-top: 2px;
	}

	.move-tt__sec-head {
		padding: 13px 16px;
	}
	.move-tt__sec-body {
		padding: 10px 12px;
	}

	.move-tt__row {
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-rows: auto auto auto;
		grid-template-areas:
			"timewrap badge"
			"name     name"
			"foot     foot";
		gap: 4px 10px;
		padding: 12px 14px;
	}

	.move-tt__timewrap {
		grid-area: timewrap;
		flex-direction: row;
		align-items: center;
		gap: 8px;
		align-self: center;
	}
	.move-tt__time-range {
		font-size: 15.5px;
	}
	.move-tt__time-dur {
		font-size: 12px;
	}
	.move-tt__clock {
		width: 12px;
		height: 12px;
	}

	.move-tt__name {
		grid-area: name;
		white-space: normal;
		overflow: visible;
		text-overflow: clip;
		font-size: 14.5px;
		line-height: 1.25;
		margin-top: 2px;
		align-self: start;
	}

	.move-tt__badge {
		grid-area: badge;
		justify-self: end;
		font-size: 11.5px;
		align-self: center;
	}
	.move-tt__badge-dot {
		width: 6px;
		height: 6px;
	}

	.move-tt__foot {
		grid-area: foot;
		margin-top: 4px;
		justify-content: flex-start;
	}
	.move-tt__centre {
		font-size: 12px;
		flex: 1 1 auto;
		min-width: 0;
	}
	.move-tt__pin {
		width: 12px;
		height: 12px;
	}

	.move-tt__chev {
		display: none;
	}
}
