/* /viajes/ (nov 2026, 4ª pasada): un tablón de salidas. Usa los tokens de homepage.css (.hp-page).
   Arriba, el título y el filtro por nivel a la vista; debajo, cada viaje como un billete apaisado
   (foto | fecha, nombre, nivel, noches y precio) por orden de fecha, con el mes como separador.
   Todo el billete abre el viaje. Sin índice de meses ni foto de portada: con siete viajes sobran. */
body.catalog-page{padding-bottom:0}
body.catalog-page main{padding-top:0}
body.catalog-page main[tabindex="-1"]:focus{outline:none;box-shadow:none}
body.catalog-page [hidden]{display:none!important}

/* APERTURA: la foto compartida de las landings (.lp-hero, homepage.css). El filtro monta sobre ella. */
.ct-hero{--lp-overlap:64px}
.ct-hero .lp-hero-photo img{object-position:22% 58%}
@media (min-width:720px){.ct-hero .lp-hero-photo img{object-position:62% 58%}}

/* FILTRO: «Todos» a lo ancho y los cuatro niveles dos por dos; en escritorio, una fila fija. */
body.hp-page .ct-list{position:relative;z-index:2;max-width:960px;margin-top:-64px;padding-top:0;padding-bottom:16px}
/* El filtro es una tarjeta de papel que monta sobre la foto, como el buscador de una agencia. */
.ct-filters{display:block;padding:14px 12px 12px;border-radius:4px;background:var(--hp-paper);box-shadow:0 22px 40px -24px rgba(27,27,27,.65)}
.ct-filters-q{margin:0 0 8px;font-family:var(--hp-display);font-size:20px;line-height:1;text-transform:uppercase;text-align:center}
.ct-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:2px solid var(--hp-ink);border-radius:2px;background:var(--hp-paper)}
body.hp-page .ct-chips .hp-chip{border-bottom:2px solid var(--hp-ink)}
body.hp-page .ct-chips .hp-chip:nth-child(even){border-right:2px solid var(--hp-ink)}
body.hp-page .ct-chips .hp-chip:nth-child(odd){border-right:0}
body.hp-page .ct-chips .hp-chip:first-child{grid-column:1/-1;border-right:0;min-height:44px}
body.hp-page .ct-chips .hp-chip:nth-last-child(-n+2){border-bottom:0}
.ct-chip-n,.ct-chips .hp-chip-detail{display:none}
.ct-status{margin:10px 0 0;font-size:14px;color:var(--hp-muted);text-align:center}

/* MESES: el nombre del mes entre dos líneas perforadas, como el corte de un billete */
.ct-month{margin-top:26px;scroll-margin-top:calc(var(--home-header-height,78px) + 16px)}
body.hp-page .ct-month-name{display:flex;align-items:baseline;justify-content:center;gap:8px;margin:0 0 12px;font-family:var(--hp-display);font-weight:400;text-transform:uppercase;letter-spacing:0;line-height:1;font-size:24px;color:var(--hp-sea)}
.ct-month-name::before,.ct-month-name::after{content:"";flex:1 1 0;align-self:center;min-width:24px;border-top:2px dashed rgba(15,76,81,.32)}
.ct-month-name::before{margin-right:6px}.ct-month-name::after{margin-left:6px}
body.hp-page .ct-month-name span{font-family:var(--hp-body);font-weight:700;font-size:13px;color:var(--orange-text,#B8411F)}
.ct-month-trips{display:grid;gap:12px}

/* BILLETE: foto a la izquierda, línea perforada con muescas y los datos a la derecha */
.ct-ticket{--photo:112px;position:relative;display:grid;grid-template-columns:var(--photo) minmax(0,1fr);min-height:132px;border-radius:4px;background:var(--hp-ink);color:var(--hp-paper);
  box-shadow:0 16px 30px -24px rgba(27,27,27,.7);scroll-margin-top:calc(var(--home-header-height,78px) + 16px)}
.ct-ticket::before,.ct-ticket::after{content:"";position:absolute;z-index:1;left:calc(var(--photo) - 9px);width:18px;height:18px;border-radius:50%;background:var(--hp-paper)}
.ct-ticket::before{top:-9px}.ct-ticket::after{bottom:-9px}
.ct-ticket:target{outline:3px solid var(--hp-orange);outline-offset:4px}
.ct-ticket:has(.catalog-card-link:focus-visible){outline:3px solid var(--hp-ink);outline-offset:3px}
.ct-photo{position:relative;overflow:hidden;border-radius:4px 0 0 4px;border-right:2px dashed rgba(255,250,231,.4);background:#2a2a27}
.hp-page .ct-photo img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;transition:transform .6s}
.ct-ticket:hover .ct-photo img{transform:scale(1.05)}
.ct-photo-empty{display:grid;place-items:center;height:100%;font-family:var(--hp-display);font-size:40px;color:rgba(255,250,231,.2)}
.ct-tag{position:absolute;left:6px;right:6px;bottom:6px;padding:4px 5px;border-radius:2px;background:var(--hp-paper);color:var(--hp-ink);font-size:12px;font-weight:700;line-height:1.15;text-align:center}
.ct-tag-hot{background:var(--hp-orange)}
.ct-body{display:grid;align-content:center;gap:2px;min-width:0;padding:12px 14px 12px 18px}
.ct-dates{display:flex;flex-wrap:wrap;gap:0 6px;margin:0;padding:0;list-style:none;font-size:13px;font-weight:700;line-height:1.3;color:var(--hp-orange)}
.ct-dates li+li::before{content:"y ";font-weight:500;color:rgba(255,250,231,.7)}
body.hp-page .ct-ticket .ct-name{margin:2px 0 0;font-family:var(--hp-display);font-weight:400;text-transform:uppercase;letter-spacing:0;line-height:.9;font-size:26px;text-wrap:balance}
.ct-ticket:hover .ct-name{text-decoration:underline;text-decoration-color:var(--hp-orange);text-decoration-thickness:3px;text-underline-offset:.08em}
.ct-level{margin:0;font-size:13px;line-height:1.3;color:rgba(255,250,231,.88)}
.ct-foot{display:flex;justify-content:space-between;align-items:flex-end;gap:10px;margin-top:6px;padding-top:7px;border-top:1px solid rgba(255,250,231,.16)}
.ct-length{margin:0;font-size:13px;line-height:1.3;color:rgba(255,250,231,.72)}
.ct-area{display:none}
body.hp-page .ct-price{margin:0 0 0 auto;white-space:nowrap;text-align:right;line-height:1}
.ct-price strong{font-family:var(--hp-display);font-weight:400;font-size:24px}
.ct-price small{display:block;margin-top:3px;font-size:11.5px;font-weight:600;color:rgba(255,250,231,.65)}
.ct-price small:first-child{margin:0 0 3px}
.ct-price del{font-size:12px;color:rgba(255,250,231,.55)}
.ct-price-tbc strong{font-family:var(--hp-body);font-size:14px;font-weight:600}
.ct-offer{margin:4px 0 0;font-size:12px;line-height:1.35;color:var(--hp-orange)}
/* El enlace cubre el billete entero; en móvil no se ve como botón. */
body.hp-page .ct-ticket .catalog-card-link{position:static;min-height:0;padding:0;border:0;background:none;color:inherit;box-shadow:none}
.catalog-card-link::after{content:"";position:absolute;inset:0;z-index:2}
.catalog-card-link:focus-visible{outline:none}
.catalog-card-link span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* VACÍO */
.ct-empty{margin-top:20px;padding:24px 20px;border-radius:4px;background:var(--hp-paper-2);text-align:center}
body.hp-page .ct-empty h2{margin:0 auto;max-width:16ch;font-family:var(--hp-display);font-weight:400;text-transform:uppercase;font-size:clamp(30px,8vw,44px);line-height:.92}
.ct-empty p{margin:12px auto 0;max-width:40ch;font-size:16px}
.ct-empty .hp-ctas{justify-content:center}

/* AYUDA: banda mar */
.ct-help{position:relative;margin-top:48px;background:var(--hp-sea);color:var(--hp-paper);padding-block:48px 56px;text-align:center}
body.hp-page .ct-help .hp-h2{font-size:clamp(36px,8vw,52px)}
.ct-help p{margin:14px auto 0;font-size:17px;line-height:1.4;max-width:40ch;color:rgba(255,250,231,.88)}
.ct-help .hp-ctas{justify-content:center}
body.catalog-page .lst-footer{border-top:0}

@media (min-width:720px){
  .ct-chips{position:sticky;top:calc(var(--home-header-height,78px) + 8px);z-index:20;grid-template-columns:repeat(5,minmax(0,1fr));box-shadow:0 12px 24px -18px rgba(27,27,27,.6)}
  body.hp-page .ct-chips .hp-chip:nth-child(n){grid-column:auto;border-bottom:0;border-right:2px solid var(--hp-ink)}
  body.hp-page .ct-chips .hp-chip:last-child{border-right:0}
  .ct-chips .hp-chip-label{font-size:18px}
  body.hp-page .ct-chips .hp-chip{grid-template-areas:"wave label count";min-height:56px}
  .ct-ticket{--photo:250px;grid-template-columns:var(--photo) minmax(0,1fr) auto;min-height:176px}
  .ct-body{gap:4px;padding:20px 26px}
  .ct-dates{font-size:15px}
  body.hp-page .ct-ticket .ct-name{font-size:38px}
  .ct-level,.ct-length{font-size:15px}
  .ct-area{display:inline}
  .ct-price strong{font-size:30px}
  .ct-price small{display:inline;margin:0;font-size:13px}
  .ct-foot{align-items:baseline}
  .ct-tag{left:10px;right:auto;bottom:auto;top:10px;padding:5px 8px;font-size:13px}
  /* En escritorio el enlace también se ve: botón a la derecha del billete. */
  body.hp-page .ct-ticket .catalog-card-link{align-self:center;margin-right:26px;min-height:48px;padding:12px 20px 10px;background:var(--hp-orange);color:var(--hp-ink)}
  body.hp-page .ct-ticket:hover .catalog-card-link{background:var(--hp-paper)}
  .catalog-card-link span{position:static;width:auto;height:auto;overflow:visible;clip:auto}
  .ct-help-in{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:end;text-align:left}
  .ct-help p{margin-inline:0}
  .ct-help .hp-ctas{justify-content:flex-start}
}

/* Early bird */
.ct-price .eb-was{margin-right:4px;font:400 19px/1 var(--hp-display);color:rgba(255,250,231,.6)}
.ct-offer.eb-line{font-weight:600;font-size:13px}

/* Mobile: a month with two or more visible trips shows them as posters, two per row, like the home.
   Duration and area move to the trip page; prices line up at the bottom; a lone last poster stays half width and centred. */
@media (max-width:719px){
 .ct-month-trips:has(>.ct-ticket:not([hidden])~.ct-ticket:not([hidden])){grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}
 .ct-month-trips:has(>.ct-ticket:not([hidden])~.ct-ticket:not([hidden]))>.ct-ticket{--photo-h:132px;grid-template-columns:minmax(0,1fr);grid-template-rows:var(--photo-h) 1fr;min-height:0;text-align:center}
 .ct-month-trips:has(>.ct-ticket:not([hidden])~.ct-ticket:not([hidden]))>.ct-ticket:nth-last-child(1 of :not([hidden])):nth-child(odd of :not([hidden])){grid-column:1/-1;justify-self:center;width:calc(50% - 5px)}
 .ct-month-trips:has(>.ct-ticket:not([hidden])~.ct-ticket:not([hidden]))>.ct-ticket::before,
 .ct-month-trips:has(>.ct-ticket:not([hidden])~.ct-ticket:not([hidden]))>.ct-ticket::after{top:calc(var(--photo-h) - 9px);bottom:auto;width:16px;height:16px}
 .ct-month-trips:has(>.ct-ticket:not([hidden])~.ct-ticket:not([hidden]))>.ct-ticket::before{left:-8px}
 .ct-month-trips:has(>.ct-ticket:not([hidden])~.ct-ticket:not([hidden]))>.ct-ticket::after{left:auto;right:-8px}
 .ct-month-trips:has(>.ct-ticket:not([hidden])~.ct-ticket:not([hidden])) .ct-photo{border-radius:4px 4px 0 0;border-right:0;border-bottom:2px dashed rgba(255,250,231,.4)}
 .ct-month-trips:has(>.ct-ticket:not([hidden])~.ct-ticket:not([hidden])) .ct-body{display:flex;flex-direction:column;padding:12px 10px 14px}
 .ct-month-trips:has(>.ct-ticket:not([hidden])~.ct-ticket:not([hidden])) .ct-dates{justify-content:center}
 body.hp-page .ct-month-trips:has(>.ct-ticket:not([hidden])~.ct-ticket:not([hidden])) .ct-ticket .ct-name{font-size:23px}
 .ct-month-trips:has(>.ct-ticket:not([hidden])~.ct-ticket:not([hidden])) .ct-length{display:none}
 .ct-month-trips:has(>.ct-ticket:not([hidden])~.ct-ticket:not([hidden])) .ct-foot{order:2;justify-content:center;margin-top:auto}
 .ct-month-trips:has(>.ct-ticket:not([hidden])~.ct-ticket:not([hidden])) .ct-offer{order:1;margin:6px 0 4px}
 body.hp-page .ct-month-trips:has(>.ct-ticket:not([hidden])~.ct-ticket:not([hidden])) .ct-price{margin:0;text-align:center}
}
