@page {
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Base styles */
body {
  color: #666;
  font-family: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji','Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  font-feature-settings: normal;
  line-height: inherit;
  margin: 0;
}

*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: inherit;
  font-weight: inherit;
  color: #333;
  margin: 0;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Timetable Styles */

.timetable-page {
	padding: 10px;
	border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);	
  margin-left: 1rem;
  margin-right: 1rem;
    background-color: white;  
}

@media (max-width: 640px) {
  .map-container {
	display: none;
  }
}

@media (max-width: 768px) {
  .map-container {
	display: none;
  }
}

/*
@media (min-width: 640px) {
  .timetable-page {
    max-width: 640px;
  }
}
*/

@media (min-width: 768px) {
  .timetable-page {
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1024px) {
  .timetable-page {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .timetable-page {
    max-width: 100%;
  }
}

@media (min-width: 1536px) {
  .timetable-page {
    max-width: 1536px;
  }
}

.timetable-page h1 {
  font-size: 1.5rem;
  line-height: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 0.5rem;
  display: flex;
  align-items: center;
}

.timetable-page-title-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* La línea de volver + círculos de línea + tipo de servicio (dentro del
   menú de dirección) ya no se muestra: el botón de volver vive ahora
   junto al título del plan, arriba del todo (ver .botonVolver--mobile-header). */
.timetable-radio-menu > h1 {
  display: none;
}

@media (min-width: 768px) {
  .timetable-page h1 {
    font-size: 2rem;
    line-height: 2rem;
  }
}

.timetable-page h2 {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

@media (min-width: 768px) {
  .timetable-page h2 {
    font-size: 1.5rem;
  }
}

.timetable-page h3 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timetable-page .effective-date {
  margin-top: 0.5rem;
  color: rgb(75 85 99);
}

.timetable-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.timetable-page .hidden {
  display: none;
}

.timetable-page .timetable .timetable-label {
  margin-bottom: 0.5rem;
}

.timetable-page .timetable .timetable-footer {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .timetable-page .timetable .timetable-footer {
    grid-template-columns: 1fr 50% 1fr;
    gap: 1rem;
  }
}

/* Menu Styles */

.timetable-page .timetable-simple-menu {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.timetable-page .timetable-jump-menu {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .timetable-page .timetable-jump-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.timetable-page .timetable-jump-menu a {
  width: 100%;
  margin-bottom: 0.5rem;
}

.timetable-page .timetable-radio-menu {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
/*  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr)); */
  gap: 1rem;
  display: flex;
}

@media (min-width: 768px) {
  .timetable-page .timetable-radio-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.timetable-page .timetable-radio-menu label {
/*  width: 100%; */
  margin-bottom: 0.5rem;
}

.timetable-page .menu-type-radio .timetable {
  display: none;
}

.timetable-page .btn-blue {
  color: rgb(255 255 255);
  padding: 0.75rem 1.5rem;
  background-color: rgb(37 99 235);
  border-radius: 0.375rem;
  justify-content: center;
  align-items: center;
  display: inline-flex;
  cursor: pointer;
  text-decoration: none;
}

.timetable-page .btn-blue:hover {
  background-color: rgb(29 78 216);
  text-decoration: none;
}

.timetable-page .btn-gray {
  color: rgb(75 85 99);
  padding: 0.75rem 1.5rem;
  background-color: rgb(209 213 219);
  border-radius: 0.375rem;
  justify-content: center;
  align-items: center;
  display: inline-flex;
  cursor: pointer;
  text-decoration: none;
}

.timetable-page .btn-gray:hover {
  background-color: rgb(201, 206, 213);
  text-decoration: none;
}

.timetable-page .btn-sm {
  padding: 0.25rem 1rem;
  border-radius: 0.25rem;
}

.timetable-page .timetable {
  margin-bottom: 2.5rem;
}

.timetable-page .timetable .table-vertical .stop-header {
  text-align: center;
  line-height: 1.15;
  font-size: 0.8rem;
}

.timetable-page .timetable .table-vertical {
    display: block;
    height: 386px;
    overflow-y: scroll;
    width: 100%;
}

.timetable-page .timetable .table-vertical thead {
	position: sticky;
    top: 0;
}

.timetable-page .timetable .table-horizontal th {
  line-height: 1.15;
}

.timetable-page .timetable .trip-header {
  text-align: center;
}

.timetable-page .timetable .trip-name {
  display: inline-block;
  font-weight: bold;
}

.timetable-page .timetable .run-footer {
  text-align: center;
}

.timetable-page .timetable .run-footer .continues-from-route,
.timetable-page .timetable .run-footer .continues-as-route {
  font-weight: bold;
}

.timetable-page .timetable .stop-code {
  font-weight: normal;
  padding-top: 0.25rem;
}

.timetable-page .timetable .stop-time {
  text-align: center;
}

.timetable-page .timetable .stop-time.pm {
/*  font-weight: bold; */
}

.timetable-page .timetable a.symbol {
  padding-left: 4px;
  color: #212529;
  text-decoration: none;
}

.timetable-page .timetable .trip-frequency {
  text-align: center;
  font-weight: bold;
}

.timetable-page .timetable .city-row {
  font-size: 1.5rem;
  color: #415d86;
}

.timetable-page .timetable th.city-column {
  font-size: 1.5rem;
  text-align: center;
}

.timetable-page .timetable .table-container {
  overflow-x: hidden;
  margin: 20px 0;
}

/*
.timetable-page .timetable .table-container::-webkit-scrollbar {
  -webkit-appearance: none;
  height: 8px;
}

.timetable-page .timetable .table-container::-webkit-scrollbar-track {
  background-color: rgba(57, 57, 57, 0.2);
  border-radius: 4px;
}

.timetable-page .timetable .table-container::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(156, 156, 156, 0.8);
}
*/

.timetable-page .timetable .table-container table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
  width: 100%;
}

.timetable-page .timetable thead tr {
  background-color: rgb(224, 230, 245);
}

.timetable-page .timetable thead tr,
.timetable-page .timetable thead tr a {
  color: #222222;
}

.timetable-page .timetable th {
  text-align: left;
  font-size: 0.8rem;
}

.timetable-page .timetable td,
.timetable-page .timetable th {
  padding: 0;
}

.timetable-page .timetable table > thead > tr > th,
.timetable-page .timetable table > tbody > tr > th,
.timetable-page .timetable table > tfoot > tr > th,
.timetable-page .timetable table > thead > tr > td,
.timetable-page .timetable table > tbody > tr > td,
.timetable-page .timetable table > tfoot > tr > td {
  padding: 8px;
  line-height: 1.1;
  vertical-align: top;
  border: 1px solid #dddddd;
}

.timetable-page .timetable table > thead > tr > th {
  vertical-align: top;
  border-bottom: 2px solid #dddddd;
}

.timetable-page .timetable table > caption + thead > tr:first-child > th,
.timetable-page .timetable table > colgroup + thead > tr:first-child > th,
.timetable-page .timetable table > thead:first-child > tr:first-child > th,
.timetable-page .timetable table > caption + thead > tr:first-child > td,
.timetable-page .timetable table > colgroup + thead > tr:first-child > td,
.timetable-page .timetable table > thead:first-child > tr:first-child > td {
  border-top: 0;
}

.timetable-page .timetable table > tbody + tbody {
  border-top: 2px solid #dddddd;
}

.timetable-page .timetable table > thead > tr > th,
.timetable-page .timetable table > thead > tr > td {
  border-bottom-width: 2px;
}

.timetable-page .timetable table > tbody > tr:nth-of-type(odd) {
  background-color: #f9f9f9;
}

.timetable-page .timetable table > tbody > tr.highlighted,
.timetable-page .timetable table > tbody > tr.highlighted > th,
.timetable-page .timetable table > tbody .stop-time.highlighted,
.timetable-page .timetable table > thead .stop-header.highlighted {
  background-color: #f8f8b9;
}

.timetable-page .table-horizontal tbody tr th.stop-name-container {
  min-width: 175px;
}

@media screen and (min-width: 768px) {
  .timetable-page .table-horizontal tbody tr th.stop-name-container {
    min-width: 250px;
  }
}

.timetable-page .table-hourly {
  width: auto;
}

.timetable-page .timetable .table-vertical .trip-row .trip-notes {
  text-wrap: nowrap;
}

.timetable-page .route-color-swatch {
  min-width: 29px;
  height: 29px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: -0.1px;
  padding: 0 2px;
  flex-shrink: 0;
  font-weight: bold;
  color: white;
  text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.timetable-page .route-color-swatch-large {
  min-width: 46px;
  height: 46px;
  border-radius: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: bold;
  letter-spacing: -0.2px;
  padding: 0 6px;
  flex-shrink: 0;
  font-weight: bold;
  color: white;
/*  text-shadow: 0 0 4px rgba(0,0,0,0.5); */
}

/* Map Styles */

.timetable-page .map-container {
  position: relative;
}

.timetable-page .map {
  min-height: 350px;
}

@media screen and (min-width: 768px) {
  .timetable-page .map {
    min-height: 450px;
  }
}

.timetable-page .map .maplibregl-popup-content .popup-title {
  margin: 0 20px 5px 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.timetable-page .map .maplibregl-popup-content .popup-label {
  border-bottom: 1px solid #e0e0e0;
  padding-top: 0.5rem;
}

.timetable-page .map .maplibregl-popup-content .route-list {
  margin-bottom: 1rem;
  margin-top: 0.25rem;
}

.timetable-page .map .maplibregl-popup-content .map-route-item {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}

.timetable-page .map .maplibregl-popup-content .map-route-item:hover {
  text-decoration: none;
}

.timetable-page
  .map
  .maplibregl-popup-content
  a.map-route-item
  .underline-hover:hover {
  text-decoration: underline;
}

.timetable-page .map .maplibregl-popup-content .maplibregl-popup-close-button {
  padding: 0 5px;
}

.timetable-page .map .maplibregl-popup-content .upcoming-stops {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  line-height: 1;
  padding-top: 5px;
}

.timetable-page
  .map
  .maplibregl-popup-content
  .upcoming-stops div:nth-child(1) {
  font-weight: bold;
  border-bottom: 1px solid #dddddd;
  padding-bottom: 3px;
  margin-bottom: -3px;
}

.timetable-page
  .map
  .maplibregl-popup-content
  .upcoming-stops div:nth-child(2) {
  font-weight: bold;
  border-bottom: 1px solid #dddddd;
  padding-bottom: 3px;
  margin-bottom: -3px;
}

.timetable-page
  .map
  .maplibregl-popup-content
  .upcoming-stops
  div:nth-child(2n-1) {
  text-align: right;
  font-weight: bold;
}

.timetable-page .map .maplibregl-popup-content .vehicle-updated {
  padding-top: 5px;
  font-size: 10px;
  text-align: right;
}

.timetable-page .map .vehicle-popup .maplibregl-popup-content {
  padding-bottom: 5px;
}

.timetable-page .map-legend {
  padding: 8px 8px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

@media screen and (min-width: 768px) {
  .timetable-page .map-legend {
    padding: 8px 6px;
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 1;
    gap: 8px;
  }
}

.timetable-page .map-legend .legend-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.timetable-page .map-legend .legend-item .legend-icon {
  width: 22px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timetable-page .map-legend .legend-item .legend-text {
  font-size: 12px;
  line-height: 1;
}

.timetable-page .stop-marker {
  background: #ffffff;
  border: 2px solid #3f4a5c;
  border-radius: 50%;
  width: 12px;
  height: 12px;
}

.timetable-page .vehicle-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #d52f3e;
  border: 1px solid #50161c;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.timetable-page .vehicle-marker .vehicle-marker-arrow {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2 160 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  width: 14px;
  height: 14px;
}

.timetable-page .vehicle-marker .vehicle-marker-arrow.no-bearing {
  background-image: url('data:image/svg+xml,<%3Fxml version="1.0" encoding="utf-8"%3F><svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7.8 10a2.2 2.2 0 0 0 4.4 0 2.2 2.2 0 0 0-4.4 0z"/></svg>');
  width: 20px;
  height: 20px;
}

.timetable-page .timetable-alerts {
  margin-bottom: 1.5rem;
}

.timetable-page .timetable-alerts .timetable-alerts-list {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.25rem;
}

@media screen and (min-width: 1024px) {
  .timetable-page .timetable-alerts .timetable-alerts-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.timetable-page .timetable-alert {
  background-color: rgb(224, 230, 245);
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
}

.timetable-page .timetable-alerts .alert-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.timetable-page .timetable-alerts .alert-header .route-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.timetable-page .timetable-alerts .route-color-swatch {
  min-width: 29px;
  height: 29px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: -0.1px;
  padding: 0 2px;
  flex-shrink: 0;
  font-weight: bold;
  color: white;
  text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.timetable-page .timetable-alerts .alert-header .alert-title {
  font-size: 1.25rem;
  font-weight: bold;
}

.timetable-page .timetable-alerts .alert-body {
  margin-top: 0.5rem;
}

.timetable-page .timetable-alerts .alert-body .alert-label {
  margin-top: 0.5rem;
  font-weight: bold;
}

.timetable-page .timetable-alerts .alert-body ul {
  margin: 0.5rem 0;
}

.timetable-page .timetable-alerts .alert-more-info {
  margin-top: 0.75rem;
}

.timetable-page .timetable-alert-empty {
  display: none;
  background-color: rgb(224, 230, 245);
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 16px;
}

@media print {
  body {
    -webkit-print-color-adjust: exact;
    width: 100%;
    margin: 0 auto;
    font-size: 0.8rem;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  p {
    page-break-inside: avoid;
    orphans: 3;
    widows: 3;
  }

  img,
  table {
    max-width: 100%;
  }

  .timetable-page h1 {
    padding-top: 0;
    font-size: 1.5rem;
  }

  .timetable-page .timetable:not(:first-of-type) {
    page-break-before: always;
  }

  .timetable-page .timetable .table-container {
    overflow: auto;
    margin-bottom: 0;
  }

  .timetable-page .timetable table > thead > tr > th,
  .timetable-page .timetable table > tbody > tr > th,
  .timetable-page .timetable table > tfoot > tr > th {
    padding: 3px 5px;
    line-height: 1.3;
  }

  .timetable-page .timetable table > thead > tr > td,
  .timetable-page .timetable table > tbody > tr > td,
  .timetable-page .timetable table > tfoot > tr > td {
    padding: 3px 5px;
    line-height: 1;
  }

  .timetable .table-container {
    overflow: hidden;
  }

  .timetable table {
    page-break-after: auto;
  }

  .timetable tr {
    page-break-inside: avoid;
    page-break-after: auto;
  }

  .timetable td {
    page-break-inside: avoid;
    page-break-after: auto;
  }

  .timetable thead {
    display: table-header-group;
  }

  .timetable tfoot {
    display: table-footer-group;
  }

  .timetable-page .map-legend {
    display: none;
  }
}

/* Stop Filter Styles */

.stop-filter-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.75rem 0;
}

.stop-filter-wrapper .stop-filter {
  margin: 0;
}

.stop-filter__print {
  flex-shrink: 0;
  align-self: center;
  background: none;
  border: 1.5px solid #415d86;
  border-radius: 0.375rem;
  color: #415d86;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  transition: background-color 0.15s, color 0.15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.stop-filter__print:hover {
  background-color: #415d86;
  color: #fff;
}

@media (max-width: 640px) {
  .stop-filter-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  .stop-filter__print {
    align-self: flex-start;
  }
}

@media print {
  .stop-filter-wrapper,
  .stop-filter__print {
    display: none !important;
  }
}

.stop-filter {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  background-color: rgb(224, 230, 245);
  border-radius: 0.625rem;
  padding: 0.75rem 1rem;
}

.stop-filter__group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 300px;
  max-width: 300px;
}

.stop-filter__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #415d86;
}

.stop-filter__select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23415d86' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  border: 1.5px solid #c5d0e8;
  border-radius: 0.375rem;
  color: #222;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.4rem 2rem 0.4rem 0.6rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  max-width: 300px;
}

.stop-filter__select:focus {
  border-color: rgb(37 99 235);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

.stop-filter__select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.stop-filter__select option:disabled {
  color: #aaa;
}

.stop-filter__error {
  font-size: 0.75rem;
  color: #b91c1c;
  font-weight: 600;
  align-self: center;
  padding: 0.25rem 0.5rem;
  background: #fee2e2;
  border-radius: 0.25rem;
  display: none;
}

.stop-filter__error.visible {
  display: block;
}

.stop-filter__reset {
  align-self: flex-end;
  background: none;
  border: 1.5px solid #415d86;
  border-radius: 0.375rem;
  color: #415d86;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  transition: background-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.stop-filter__reset:hover {
  background-color: #415d86;
  color: #fff;
}

@media (max-width: 640px) {
  .stop-filter {
    flex-direction: column;
    align-items: stretch;
  }
  .stop-filter__group {
    width: 100%;
    max-width: 300px;
  }
  .stop-filter__reset {
    align-self: flex-start;
  }
}

/* --- */

.timetable-page h1 .logoHeader {
  height: 80px;
  width: 220px;
  flex-shrink: 0;
  background-image: url('logo.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center left;
}

/* Hide UI controls during html2pdf generation */
body.html2pdf__overlay-enabled .stop-filter-wrapper,
body.html2pdf__overlay-enabled .stop-filter__print {
  display: none !important;
}

.botonVolver {
    background: #003876;
    min-width: 60px;
    height: 60px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    color: white;
    font-size: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 28px 28px;
}

/* El botón volver duplicado usa el mismo estilo que .botonVolver; la
   variante --mobile-header solo se usa como gancho para reducir su
   tamaño en la media query de móvil, más abajo. */


@media (max-width: 740px) {
	/* Oculta la línea de trayecto + día ("Palma - Inca... | Sábado") en móvil */
	.timetable-page .timetable-label {
		display: none;
	}

	.timetable-radio-menu {
		display: flex !important;
		flex-wrap: wrap;
		gap: 0.5rem !important;
	}

	.timetable-radio-menu #direction_name_selector.name_selector {
		flex: 1 1 calc(50% - 0.25rem);
		min-width: 0;
	}

	.timetable-radio-menu label.btn-blue,
	.timetable-radio-menu label.btn-gray {
		width: 100%;
		padding: 0.5rem 0.6rem;
		font-size: 0.8rem;
		line-height: 1.2;
		text-align: center;
		white-space: normal;
	}

	.timetable-page {
		margin-left: 0.1rem;
		margin-right: 0.1rem;
	}

	/* Cabecera: textos más compactos en móvil, con el botón volver
	   duplicado a la izquierda del título/fecha. */
	.timetable-page h1 {
		font-size: 1.1rem;
		line-height: 1.3rem;
		padding-top: 0.5rem;
		padding-bottom: 0.5rem;
		gap: 0.5rem;
		flex-direction: row;
		align-items: center;
	}

	.botonVolver--mobile-header {
		display: flex;
		min-width: 36px;
		height: 36px;
		border-radius: 18px;
		background-size: 18px 18px;
	}

	.timetable-page-title-info {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.15rem;
		min-width: 0;
	}

	.timetable-page h2 {
		font-size: 1rem;
		line-height: 1.3rem;
	}

	.timetable-page .effective-date {
		font-size: 0.85rem;
		margin-top: 0.15rem;
	}

	/* Botón "Volver" más pequeño en móvil */
	.botonVolver {
		min-width: 36px;
		height: 36px;
		border-radius: 18px;
		background-size: 18px 18px;
	}

	/* Círculos de línea (T1/T2/T3...) más pequeños en móvil */
	.timetable-page .route-color-swatch-large {
		min-width: 30px;
		height: 30px;
		border-radius: 15px;
		font-size: 0.8rem;
		padding: 0 4px;
	}

	/* Filtro de origen/destino más compacto en móvil */
	.stop-filter-wrapper {
		margin: 0.4rem 0;
		position: relative;
	}

	.stop-filter {
		padding: 0.5rem 2.1rem 0.5rem 0.6rem;
		gap: 0.4rem;
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: flex-end;
	}

	.stop-filter__group {
		gap: 0.15rem;
		width: 50%;
		max-width: none;
		flex: 1 1 0;
		min-width: 0;
	}

	.stop-filter__label {
		font-size: 0.65rem;
	}

	.stop-filter__select {
		padding: 0.3rem 1.6rem 0.3rem 0.5rem;
		font-size: 0.8rem;
	}

	.stop-filter__reset {
		align-self: flex-end;
		width: 1.9rem;
		height: 1.9rem;
		padding: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 0.9rem;
		flex-shrink: 0;
	}

	.stop-filter__reset-label {
		display: none;
	}

	/* Botón "Imprimir": solo icono, colocado en la esquina de la tarjeta
	   del filtro para que no ocupe una línea entera. */
	.stop-filter__print {
		position: absolute;
		top: 0.4rem;
		right: 0.4rem;
		width: 1.75rem;
		height: 1.75rem;
		padding: 0;
		border-radius: 50%;
		justify-content: center;
		gap: 0;
	}

	.stop-filter__print-label {
		display: none;
	}
}


.terminal {
	background-color: white;
}

/* Ocultar solo el lado del borde que colinda con otra celda "terminal"
   contigua (sin datos), para no perder el borde que cierra la caja del
   horario frente a una celda con datos reales. */
.terminal-no-left-border {
	border-left-color: white;
}

.terminal-no-right-border {
	border-right-color: white;
}



.name_selector {
  display: flex;
  align-items: center;
}



.bikes-col, .bikes-col-header { width: 2rem; min-width: 2rem; max-width: 2rem; padding: 2px; flex-shrink: 0; }
.bikes-col-cell { width: 2rem; min-width: 2rem; max-width: 2rem; text-align: center; padding: 2px; vertical-align: middle; flex-shrink: 0; }
.no-bikes-icon { width: 1.25rem; height: 1.25rem; display: inline-block; fill: currentColor; }

/* Columna trip-notes de ancho fijo (estado sin filtro) */
.trip-header,
.trip-notes { width: 3rem; min-width: 3rem; max-width: 3rem; overflow: hidden; flex-shrink: 0; }
