/* RaviElson Travel Times — wg Figmy, node 1392:2779
   Tokeny: TURKUS #175864, LIMONKA #c0eb00, WHITE 2 #fffdfa, BEŻ light #f5ece1 */

.rtt {
	--rtt-turkus: #175864;
	--rtt-limonka: #c0eb00;
	--rtt-white: #fffdfa;
	--rtt-bez-light: #f5ece1;
	--rtt-turkus-3: #10404a;
	/* Kolor kreski wokół zakładek i nad panelem — BEŻ 2 z Figmy. */
	--rtt-line: #bca791;

	width: 100%;
	max-width: 1338px;
	margin: 0 auto;
	padding: 0 20px;
	font-family: "Alexandria", sans-serif;
	color: var(--rtt-turkus);
}

.rtt *,
.rtt *::before,
.rtt *::after {
	box-sizing: border-box;
}

/* ── Zakładki kategorii ── */

/* Pasek zakładek: pozioma linia bazowa z obwódką aktywnej zakładki (wg Figmy).
   Linia po bokach tworzona przez ::before i ::after, pod nieaktywnymi zakładkami
   przez ich border-bottom, a aktywna zakładka ma tylko obwódkę z 3 stron bez tła. */
/* Zakładki zawsze w jednej linii — gdy się nie mieszczą, pasek przewija się
   w bok zamiast łamać na dwa rzędy (uwaga z 28.09).
   padding-bottom robi miejsce na 1px, o który aktywna zakładka schodzi poniżej
   kreski; bez tego overflow by go obciął. */
.rtt__tabs {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-end;
	gap: 0;
	padding: 0 56px 1px;
	margin-bottom: 0;
	position: relative;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: thin;
	scrollbar-color: var(--rtt-line) transparent;
	-webkit-overflow-scrolling: touch;
}

.rtt__tabs::-webkit-scrollbar {
	height: 4px;
}

.rtt__tabs::-webkit-scrollbar-thumb {
	background: var(--rtt-line);
	border-radius: 2px;
}

.rtt__tabs::-webkit-scrollbar-track {
	background: transparent;
}

.rtt__tabs::before {
	content: "";
	display: block;
	flex: 0 0 56px;
	margin-left: -56px;
	height: 0;
	border-bottom: 1px solid var(--rtt-line);
	align-self: flex-end;
}

.rtt__tabs::after {
	content: "";
	display: block;
	flex: 1 1 auto;
	margin-right: -56px;
	height: 0;
	border-bottom: 1px solid var(--rtt-line);
	align-self: flex-end;
}

.rtt button.rtt__tab {
	appearance: none !important;
	-webkit-appearance: none !important;
	/* Nie zwężamy i nie łamiemy etykiet — pasek ma się przewijać, nie zawijać. */
	flex: 0 0 auto;
	white-space: nowrap;
	border: 1px solid transparent !important;
	border-bottom: 1px solid var(--rtt-line) !important;
	background: transparent !important;
	margin: 0 !important;
	padding: 16px 20px !important;
	font-family: "Alexandria", sans-serif !important;
	font-weight: 400 !important;
	font-size: 16px !important;
	line-height: 1.6 !important;
	color: var(--rtt-turkus-3) !important;
	cursor: pointer;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-shadow: none !important;
	transition: color 0.2s ease;
	position: relative;
}

.rtt button.rtt__tab:hover {
	background: transparent !important;
	color: var(--rtt-turkus) !important;
}

/* Aktywna zakładka: same linie, bez wypełnienia (node 1392:2783).
   Kreska z trzech stron, dół otwarty. Tło to ten sam beż co panel niżej —
   w Figmie #f5ece1, praktycznie kolor strony, więc czyta się jak brak tła,
   ale bez szwu na styku z panelem.
   margin-bottom: -1px wsuwa zakładkę na kreskę panelu i ją przykrywa. */
.rtt button.rtt__tab.is-active {
	background: var(--rtt-bez-light) !important;
	border-top: 1px solid var(--rtt-line) !important;
	border-left: 1px solid var(--rtt-line) !important;
	border-right: 1px solid var(--rtt-line) !important;
	border-bottom: none !important;
	color: var(--rtt-turkus) !important;
	font-weight: 400 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	position: relative;
	z-index: 1;
	margin-bottom: -1px !important;
	padding-bottom: 17px !important;
}

/* ── Panel ── */

.rtt__panel {
	display: none;
}

/* To panel niesie poziomą kreskę, którą widać po obu stronach aktywnej
   zakładki (node 1392:2797). Zakładka przykrywa ją na swoim odcinku. */
/* Kreskę rysuje pasek zakładek (jego ::before/::after i dolne krawędzie
   nieaktywnych zakładek). Panel jej nie powtarza — inaczej wychodziła
   podwójna linia. */
.rtt__panel.is-active {
	display: block;
	background: var(--rtt-bez-light);
	padding: 40px 56px 0;
}

.rtt .rtt__intro {
	margin: 0 0 40px;
	font-family: "Alexandria", sans-serif;
	font-weight: 700;
	font-size: clamp(18px, 1.8vw, 24px);
	line-height: 1.3;
	color: var(--rtt-turkus);
	text-align: center;
}

.rtt__board {
	position: relative;
	background: var(--rtt-white);
	overflow: hidden;
}

.rtt__cols {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 64px;
	padding: 32px;
}

/* Pionowa kreska między kolumnami — tylko na szerokich ekranach. */
.rtt__cols > .rtt__col + .rtt__col {
	border-left: 1px solid var(--rtt-line);
	padding-left: 64px;
	margin-left: -32px;
}

.rtt__colHead {
	display: flex;
	align-items: center;
	gap: 18px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--rtt-line);
	margin-bottom: 24px;
}

.rtt__colIcon {
	flex: 0 0 auto;
	width: 61px;
	height: 61px;
	border-radius: 50%;
	background: var(--rtt-turkus);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.rtt .rtt__colIcon img {
	width: 32px !important;
	height: 32px !important;
	object-fit: contain !important;
	display: block;
}

.rtt__colTitle {
	font-family: "Alexandria", sans-serif;
	font-weight: 500;
	font-size: clamp(18px, 1.8vw, 24px);
	line-height: 1.3;
	color: var(--rtt-turkus);
}

.rtt ul.rtt__rows {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.rtt li.rtt__row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rtt .rtt__rowIcon {
	flex: 0 0 auto;
	width: 38px !important;
	height: 38px !important;
	object-fit: contain !important;
	display: block;
}

.rtt__rowLabel {
	flex: 0 1 auto;
	font-weight: 300;
	font-size: 16px;
	line-height: 1.6;
	color: var(--rtt-turkus);
}

/* Kropkowany łącznik rozciąga się na całą wolną przestrzeń. */
.rtt__leader {
	flex: 1 1 auto;
	min-width: 20px;
	height: 1px;
	border-bottom: 1px dotted var(--rtt-line);
	transform: translateY(-2px);
}

.rtt__rowTime {
	flex: 0 0 auto;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.6;
	color: var(--rtt-turkus);
	white-space: nowrap;
}

/* Dekoracyjna grafika w prawym dolnym rogu panelu. */
.rtt .rtt__deco {
	position: absolute;
	right: 0;
	bottom: 66px;
	width: 50% !important;
	height: auto !important;
	max-width: 668px;
	z-index: 1;
	pointer-events: none;
	opacity: 0.9;
}

.rtt__note {
	position: relative;
	z-index: 2;
	background: var(--rtt-turkus);
	color: var(--rtt-limonka);
	font-weight: 300;
	font-size: 12px;
	line-height: 1.6;
	text-align: right;
	padding: 20px 32px;
}

@media (max-width: 900px) {
	.rtt__cols {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 24px;
	}

	.rtt__cols > .rtt__col + .rtt__col {
		border-left: none;
		border-top: 1px solid var(--rtt-line);
		padding-left: 0;
		padding-top: 32px;
		margin-left: 0;
	}

	.rtt .rtt__deco {
		display: none;
	}

	.rtt__tabs {
		padding: 0 20px;
		margin-bottom: 28px;
	}

	.rtt__tabs::before {
		flex: 0 0 20px;
		margin-left: -20px;
	}

	.rtt__tabs::after {
		margin-right: -20px;
	}

	.rtt button.rtt__tab {
		padding: 12px 14px !important;
		font-size: 14px !important;
	}
}

@media (max-width: 480px) {
	.rtt__colIcon {
		width: 48px;
		height: 48px;
	}

	.rtt .rtt__rowIcon {
		width: 30px !important;
		height: 30px !important;
	}

	.rtt__rowLabel,
	.rtt__rowTime {
		font-size: 14px;
	}

	.rtt__note {
		text-align: left;
		padding: 16px 20px;
	}
}

/* Zakładka bez wpisanych pozycji — zamiast pustych kolumn krótka informacja. */
.rtt .rtt__empty {
	margin: 0;
	padding: 48px 32px;
	text-align: center;
	font-family: "Alexandria", sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(23, 88, 100, 0.65);
}
