/*
 * Páginas de trajeto (ex.: Aeroporto do Porto → Braga). Só carrega nestas páginas.
 * Cores do tema: azul-marinho var(--color-navy) e dourado var(--color-gold).
 */

/* Topo: foto do destino (mais leve no telemóvel) */
.opo-hero.opo-tr-hero {
  background:
    linear-gradient(90deg, rgba(4, 12, 28, .82), rgba(12, 24, 40, .6) 45%, rgba(4, 12, 28, .2)),
    var(--opo-tr-hero, url('../images/hero/hero.webp')) center / cover no-repeat;
}

@media (max-width: 767px) {
  .opo-hero.opo-tr-hero {
    background:
      linear-gradient(180deg, rgba(4, 12, 28, .78), rgba(4, 12, 28, .62)),
      var(--opo-tr-hero-mobile, var(--opo-tr-hero, url('../images/hero/hero.webp'))) center / cover no-repeat;
  }
}

.opo-tr-hero .opo-hero-title {
  font-size: clamp(32px, 4.2vw, 52px);
}

/* Preço · distância · tempo */
.opo-tr-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.opo-tr-facts li {
  display: grid;
  gap: 2px;
  min-width: 128px;
  padding: 12px 16px;
  color: var(--color-white);
  background: rgba(6, 21, 43, .55);
  border: 1px solid rgba(214, 161, 28, .35);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.opo-tr-fact-label {
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.opo-tr-facts strong {
  color: var(--color-gold);
  font-size: 24px;
  font-weight: var(--font-weight-extrabold);
  line-height: 1.15;
}

.opo-tr-fact-sub {
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
}

/* Secções */
.opo-tr-section {
  padding: 64px var(--content-padding);
  background: var(--color-white);
}

.opo-tr-section-alt {
  background: #f5f7fa;
}

.opo-tr-container {
  width: min(100%, 1100px);
  margin-inline: auto;
}

.opo-tr-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 48px;
}

/* Preços por viatura */
.opo-tr-prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.opo-tr-price-card {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 22px;
  text-align: center;
  background: var(--color-white);
  border: 1px solid #e3e9f1;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(4, 12, 28, .06);
}

.opo-tr-price-card img {
  width: 100%;
  max-width: 220px;
  height: 110px;
  margin: 0 auto 6px;
  object-fit: contain;
}

.opo-tr-price-card h3 {
  margin: 0;
  color: var(--color-navy);
  font-size: 20px;
  font-weight: var(--font-weight-extrabold);
}

.opo-tr-pax {
  margin: 0;
  color: #5b6a80;
  font-size: 14px;
}

.opo-tr-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 8px 0 0;
  color: var(--color-navy);
}

.opo-tr-price span {
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
}

.opo-tr-price strong {
  color: var(--color-gold);
  font-size: 30px;
  font-weight: var(--font-weight-extrabold);
}

.opo-tr-note {
  margin: 18px 0 0;
  color: #5b6a80;
  font-size: 14px;
  line-height: 1.6;
}

/* Botões */
.opo-tr-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 22px;
  color: var(--color-navy);
  font-size: 15px;
  font-weight: var(--font-weight-bold);
  text-decoration: none;
  background: var(--color-gold);
  border-radius: 999px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.opo-tr-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(214, 161, 28, .3);
}

.opo-tr-button-ghost {
  color: var(--color-navy);
  background: transparent;
  border: 2px solid var(--color-navy);
}

.opo-tr-button-ghost:hover {
  box-shadow: 0 10px 22px rgba(6, 21, 43, .12);
}

.opo-tr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Incluído e texto */
.opo-tr-included {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.opo-tr-included li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.5;
}

.opo-tr-included i {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  color: var(--color-navy);
  font-size: 12px;
  background: var(--color-gold);
  border-radius: 50%;
}

.opo-tr-text {
  margin: 0 0 14px;
  color: #3b4a60;
  font-size: 16px;
  line-height: 1.7;
}

.opo-tr-text a {
  color: var(--color-navy);
  font-weight: var(--font-weight-bold);
  text-decoration: underline;
  text-decoration-color: var(--color-gold);
  text-underline-offset: 3px;
}

.opo-tr-blog {
  padding: 14px 16px;
  background: var(--color-white);
  border-left: 3px solid var(--color-gold);
  border-radius: 8px;
}

@media (max-width: 900px) {
  .opo-tr-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 767px) {
  .opo-tr-section {
    padding: 48px var(--content-padding);
  }

  .opo-tr-prices {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Cartões em linha: imagem à esquerda, nome e preço à direita */
  .opo-tr-price-card {
    grid-template-columns: 110px minmax(0, 1fr);
    grid-template-areas: "img name" "img pax" "img price";
    column-gap: 14px;
    row-gap: 2px;
    padding: 14px 16px;
    text-align: left;
  }

  .opo-tr-price-card img {
    grid-area: img;
    align-self: center;
    width: 110px;
    height: 70px;
    margin: 0;
  }

  .opo-tr-price-card h3 {
    grid-area: name;
    font-size: 18px;
  }

  .opo-tr-pax {
    grid-area: pax;
    font-size: 13px;
  }

  .opo-tr-price {
    grid-area: price;
    justify-content: flex-start;
    margin-top: 2px;
  }

  .opo-tr-price strong {
    font-size: 24px;
  }

  .opo-tr-facts {
    gap: 8px;
  }

  .opo-tr-facts li {
    min-width: 0;
    flex: 1 1 0;
    padding: 9px 10px;
  }

  .opo-tr-fact-label {
    font-size: 10px;
  }

  .opo-tr-facts strong {
    font-size: 19px;
  }

  .opo-tr-fact-sub {
    font-size: 11px;
  }
}

/* =========================================================
   Animações (mesmo estilo do site: entrada com desfoque e deslize)
   ========================================================= */
@keyframes opo-tr-rise {
  from { opacity: 0; transform: translateY(26px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes opo-tr-shine {
  from { transform: translateX(-120%) skewX(-18deg); }
  to { transform: translateX(260%) skewX(-18deg); }
}

html.opo-motion .opo-tr-hero .opo-hero-title,
html.opo-motion .opo-tr-hero .opo-hero-description,
html.opo-motion .opo-tr-facts li {
  animation: opo-tr-rise 1s var(--motion-ease-out, cubic-bezier(.16, 1, .3, 1)) both;
}

html.opo-motion .opo-tr-hero .opo-hero-title { animation-delay: .08s; }
html.opo-motion .opo-tr-hero .opo-hero-description { animation-delay: .22s; }
html.opo-motion .opo-tr-facts li:nth-child(1) { animation-delay: .36s; }
html.opo-motion .opo-tr-facts li:nth-child(2) { animation-delay: .46s; }
html.opo-motion .opo-tr-facts li:nth-child(3) { animation-delay: .56s; }

/* Brilho dourado a passar no preço "desde" */
.opo-tr-facts li:first-child {
  position: relative;
  overflow: hidden;
}

html.opo-motion .opo-tr-facts li:first-child::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  content: '';
  background: linear-gradient(90deg, transparent, rgba(214, 161, 28, .35), transparent);
  pointer-events: none;
  animation: opo-tr-shine 1.4s ease-out 1.1s both;
}

/* Cartões de preço e ligações: elevam-se ao passar o rato */
.opo-tr-price-card {
  transition: transform .45s var(--motion-ease-out, cubic-bezier(.16, 1, .3, 1)), box-shadow .45s ease, border-color .45s ease;
}

.opo-tr-price-card img {
  transition: transform .8s var(--motion-ease-out, cubic-bezier(.16, 1, .3, 1));
}

.opo-tr-price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(214, 161, 28, .55);
  box-shadow: 0 22px 44px rgba(4, 12, 28, .16);
}

.opo-tr-price-card:hover img {
  transform: scale(1.06) translateX(4px);
}

.opo-tr-related a i,
.opo-tr-button i {
  transition: transform .35s var(--motion-ease-out, cubic-bezier(.16, 1, .3, 1));
}

.opo-tr-related a:hover i,
.opo-tr-button:hover i {
  transform: translateX(5px);
}

@media (prefers-reduced-motion: reduce) {
  html.opo-motion .opo-tr-hero .opo-hero-title,
  html.opo-motion .opo-tr-hero .opo-hero-description,
  html.opo-motion .opo-tr-facts li,
  html.opo-motion .opo-tr-facts li:first-child::after {
    animation: none;
  }

  .opo-tr-price-card,
  .opo-tr-price-card img {
    transition: none;
  }
}

/* Listas de ligações (guias e outros destinos) */
.opo-tr-related-title {
  margin: 26px 0 12px;
  color: var(--color-navy);
  font-size: 17px;
  font-weight: var(--font-weight-extrabold, 800);
}

.opo-tr-blog .opo-tr-related-title { margin-top: 10px; }

.opo-tr-related {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.opo-tr-related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: var(--color-navy);
  font-size: 15px;
  font-weight: var(--font-weight-semibold, 600);
  line-height: 1.35;
  text-decoration: none;
  background: var(--color-white);
  border: 1px solid rgba(6, 21, 43, .08);
  border-radius: 10px;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s var(--motion-ease-out, cubic-bezier(.16, 1, .3, 1));
}

.opo-tr-related a i { flex: none; color: var(--color-gold); }

.opo-tr-related a:hover {
  border-color: rgba(214, 161, 28, .6);
  box-shadow: 0 10px 22px rgba(4, 12, 28, .08);
  transform: translateY(-2px);
}

