.tym-public-routes {
	max-width: 720px;
	margin: 0 auto;
	padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 1.5rem);
	color: #2b1a26;
}

.tym-public-routes__header {
	text-align: center;
	margin-bottom: 1.5rem;
}

.tym-public-routes__eyebrow {
	color: #d81e45;
	font-weight: 800;
	letter-spacing: .14em;
	font-size: .75rem;
	text-transform: uppercase;
	margin: 0;
}

.tym-public-routes h1 {
	font-size: clamp(2rem, 6vw, 3.2rem);
	line-height: 1.02;
	margin: .3rem 0 .6rem;
	color: #2b1a26;
}

.tym-public-routes__header > p:last-child {
	color: #6e5a66;
	max-width: 520px;
	margin: 0 auto;
}

.tym-public-routes__status {
	padding: 1.5rem;
	border: 1px solid #f6dce4;
	background: #fff;
	border-radius: 18px;
	text-align: center;
	color: #6e5a66;
}

.tym-public-routes__layout {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* Carrusel: navegación de rutas y de paradas */
.tym-carousel-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.tym-carousel-nav__label {
	text-align: center;
	min-width: 0;
	flex: 1;
}

.tym-carousel-nav__label strong {
	display: block;
	font-size: 1.15rem;
	color: #2b1a26;
	text-transform: capitalize;
}

.tym-carousel-nav__label span {
	font-size: .85rem;
	color: #6e5a66;
}

.tym-carousel-btn {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	/* padding 0: el botón es un círculo; sin esto hereda el padding global de
	   botón del tema y la flecha queda descentrada. */
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f5385d;
	color: #fff;
	/* Ocultamos el glifo ‹/› del HTML: su "tinta" no está centrada en la caja de
	   la fuente, así que dibujamos el chevron con CSS (abajo) para centrarlo bien. */
	font-size: 0;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 16px -6px rgba(245, 56, 93, .5);
	transition: background .15s ease, transform .15s ease;
}

/* Chevron dibujado con borde rotado: cuadrado simétrico centrado por flex → queda
   centrado vertical y horizontalmente por geometría (sin depender de la fuente). */
.tym-carousel-btn::before {
	content: "";
	display: block;
	width: 9px;
	height: 9px;
	border: solid #fff;
	border-width: 2.5px 2.5px 0 0; /* esquina superior-derecha → apunta a la derecha */
	transform: rotate(45deg);
	margin-left: -2px; /* la punta está a la derecha; compensamos ópticamente */
}

.tym-carousel-btn[data-route-prev]::before,
.tym-carousel-btn[data-stop-prev]::before {
	border-width: 2.5px 0 0 2.5px; /* esquina superior-izquierda → apunta a la izquierda */
	transform: rotate(-45deg);
	margin-left: 0;
	margin-right: -2px;
}

.tym-carousel-btn:hover {
	background: #d81e45;
	transform: scale(1.06);
}

.tym-carousel-btn[hidden] {
	display: none;
}

/* Mapa */
.tym-public-routes__map {
	background: #fff;
	border: 1px solid #f6dce4;
	border-radius: 22px;
	padding: clamp(.5rem, 2vw, 1.25rem);
	overflow: hidden;
}

.tym-public-routes__map svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.tym-map__municipality {
	fill: #fdeef2;
	stroke: #f6dce4;
	stroke-width: 1;
	transition: fill .2s ease;
}

.tym-map__municipality.has-stop {
	fill: #ffd0de;
}

.tym-map__line {
	fill: none;
	stroke: #f5385d;
	stroke-width: 4;
	stroke-dasharray: 8 6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tym-map__touch {
	fill: transparent;
}

.tym-map__point {
	fill: #ff7aa8;
	stroke: #fff;
	stroke-width: 3;
}

.tym-map__marker text {
	fill: #fff;
	font: 700 9px system-ui;
	pointer-events: none;
}

.tym-map__marker {
	cursor: pointer;
	outline: none;
}

.tym-map__marker.is-active .tym-map__point,
.tym-map__marker:focus .tym-map__point {
	fill: #d81e45;
	stroke: #ff9f1c;
	stroke-width: 4;
}

.tym-map__marker.is-cancelled .tym-map__point {
	fill: #b7a6ae;
}

/* Tarjeta de la parada */
.tym-public-routes__detail {
	background: #fff;
	color: #2b1a26;
	border: 1px solid #f6dce4;
	border-radius: 22px;
	padding: clamp(1.3rem, 3vw, 1.8rem);
	box-shadow: 0 18px 40px -20px rgba(43, 26, 38, .25);
}

.tym-public-routes__detail h2 {
	color: #2b1a26;
	font-size: clamp(1.6rem, 4vw, 2.2rem);
	margin: 0 0 .25rem;
}

.tym-stop__date {
	text-transform: capitalize;
	color: #d81e45;
	font-weight: 700;
	margin: 0 0 1rem;
}

.tym-public-routes__detail dl {
	display: grid;
	gap: .9rem;
	margin: 1rem 0;
}

.tym-public-routes__detail dl div {
	border-top: 1px solid #f6dce4;
	padding-top: .7rem;
}

.tym-public-routes__detail dt {
	color: #9a8791;
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.tym-public-routes__detail dd {
	margin: .25rem 0 0;
	color: #2b1a26;
}

.tym-stop__maps {
	display: block;
	background: #f5385d;
	color: #fff !important;
	text-align: center;
	text-decoration: none !important;
	font-weight: 800;
	padding: .9rem 1rem;
	border-radius: 999px;
	margin-top: 1rem;
}

.tym-stop__maps:hover {
	background: #d81e45;
}

.tym-stop__cancelled {
	padding: .85rem;
	background: #fff0f4;
	color: #d81e45;
	border-radius: 12px;
	font-weight: 600;
}

.tym-public-routes [hidden] {
	display: none !important;
}
.tym-stop__empty { color: var(--tym-text-soft, #6e5a66); margin: 0; line-height: 1.6; }
