/* La tarjeta de viaje · maqueta 18a-18e (Claude Design, 18-09-2026).
   Una plantilla para la home, la categoría y los resultados: resources/views/client/_tarjeta-viaje.blade.php.
   Los valores son los de la maqueta, no aproximaciones. */

.tv {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e6e9ec; border-radius: 14px; overflow: hidden;
  font-family: 'Inter', sans-serif; color: #1f2933;
}
.tv:hover { border-color: #cfd6db; }

/* Foto 16:9. Muchas fotos del catálogo llevan el nombre incrustado abajo: se mira algo más arriba. */
.tv__foto { position: relative; aspect-ratio: 16 / 9; background: #eef1f3; overflow: hidden; }
.tv__foto picture, .tv__foto img { display: block; width: 100%; height: 100%; }
.tv__foto img { object-fit: cover; object-position: center 28%; }

/* La etiqueta: cuántas salidas hay, no cuál. Pegada al borde izquierdo. */
.tv__eti {
  position: absolute; left: 0; bottom: 12px; z-index: 1;
  display: flex; align-items: center; gap: 7px;
  background: rgba(17, 24, 39, .78); color: #fff; border-radius: 0 7px 7px 0;
  padding: 6px 11px 6px 12px; font: 700 11.5px/1 'Open Sans', sans-serif; white-space: nowrap;
}
.tv__eti i { font-size: 9px; color: #ffb066; }
.tv__eti--oferta { background: #ff7300; }
.tv__eti--oferta i { color: #fff; }

.tv__cuerpo { display: flex; flex-direction: column; flex: 1; padding: 15px 16px 16px; }
.tv__tit {
  margin: 0; font: 700 15.5px/1.35 'Poppins', sans-serif; color: #1f2933; min-height: 42px;
}
.tv__tit a, .tv__tit .datatext { color: inherit; text-decoration: none; cursor: pointer; }
/* El enlace del título cubre toda la tarjeta; lo que lleve enlace propio va por encima. */
.tv__tit a::after, .tv__tit .datatext::after { content: ''; position: absolute; inset: 0; z-index: 2; }
.tv:hover .tv__tit a { color: #ff7300; }
.tv__meta { display: block; margin-top: 5px; font-size: 12.5px; line-height: 1.45; color: #52606d; }
.tv__meta a { position: relative; z-index: 3; color: inherit; }
.tv__meta a:hover { color: #ff7300; text-decoration: underline; }

/* El pie de precio: dos columnas, a la misma altura en toda la fila. */
.tv__pie {
  margin-top: auto; padding-top: 13px; border-top: 1px solid #eef1f4;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.tv__precio { flex: none; }
/* La derecha nunca se recorta: crece hasta lo que mide su texto y, si no cabe junto al precio, baja
   entera a otra línea (flex-wrap en el pie). Antonio, 18-09: «que no se corte el número». */
.tv__pie { flex-wrap: wrap; row-gap: 6px; }
.tv__desde {
  display: flex; align-items: baseline; gap: 7px; margin-bottom: 3px;
  font: 600 10px/1 'Open Sans', sans-serif; letter-spacing: .09em; text-transform: uppercase; color: #66737f;
}
.tv__desde s { font: 400 12px/1 'Open Sans', sans-serif; letter-spacing: 0; text-transform: none; color: #66737f; }
.tv__cifra { display: block; font: 700 25px/1 'Poppins', sans-serif; color: #1f2933; }
.tv__cifra--oferta { color: #ff7300; }   /* el único caso en que el precio va en naranja */
.tv__pp { display: block; margin-top: 3px; font: 600 11.5px/1 'Open Sans', sans-serif; color: #52606d; }
.tv__consulta { display: block; font: 700 19px/1.2 'Poppins', sans-serif; color: #1f2933; }
.tv__consulta + .tv__pp { margin-top: 4px; line-height: 1.35; }

.tv__fechas { flex: 1 0 auto; text-align: right; min-width: max-content; }
.tv__salida {
  display: flex; align-items: center; justify-content: flex-end; gap: 6px;
  font: 700 12.5px/1.3 'Open Sans', sans-serif; color: #1f2933; white-space: nowrap;
}
.tv__salida i { font-size: 10px; color: #ff7300; }
/* Sin precio: el WhatsApp. Es un enlace, así que va por encima del ::after del título (z-index 3,
   como los destinos) y con el verde de la marca; el número no se parte en dos líneas. */
.tv__wa { position: relative; z-index: 3; color: #128c7e; text-decoration: none; }
.tv__wa i { font-size: 14px; color: #25d366; }
.tv__wa:hover { color: #075e54; text-decoration: underline; }
.tv__hasta { display: block; margin-top: 4px; font-size: 11.5px; line-height: 1.3; color: #66737f; white-space: nowrap; }

/* La nota bajo cada rejilla: una vez, no por tarjeta. */
.tv-nota { margin: 20px 0 0; font-size: 12.5px; line-height: 1.6; color: #66737f; }

/* ── Horizontal: la lista de resultados ── */
.tv--h { display: grid; grid-template-columns: 260px 1fr; }
.tv--h .tv__foto { aspect-ratio: auto; min-height: 172px; height: 100%; }
.tv--h .tv__cuerpo { padding: 16px 20px 16px; }
.tv--h .tv__ante {
  font: 700 10.5px/1 'Open Sans', sans-serif; letter-spacing: .09em; text-transform: uppercase; color: #66737f;
}
.tv--h .tv__tit { margin-top: 6px; font: 700 18px/1.3 'Poppins', sans-serif; min-height: 0; }
.tv__datos { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12.5px; color: #52606d; }
.tv__datos i { font-size: 10px; color: #66737f; margin-right: 6px; }
.tv--h .tv__pie { padding-top: 12px; }

/* Por debajo de 720 la horizontal pasa a vertical; la estructura del pie no cambia. */
@media (max-width: 719px) {
  .tv--h { grid-template-columns: 1fr; }
  .tv--h .tv__foto { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
  .tv--h .tv__cuerpo { padding: 15px 16px 16px; }
  .tv--h .tv__tit { font-size: 16px; }
}
