/* ==========================================================================
   ROTEIRO (seção .journey)
   Navegado pelo visitante — botões dos dias, anterior/próxima, swipe e setas
   do teclado — e nunca pela rolagem da página. Nada aqui é sticky ou fixed:
   a página rola de forma nativa e o Safari do iPhone mantém as barras
   translúcidas. As etapas ficam empilhadas na mesma célula do grid, então a
   altura é sempre a da etapa mais longa: nada corta nem sobrepõe, em
   qualquer tamanho de tela.
   ========================================================================== */

.journey .journey-stage {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: clamp(620px, 90svh, 880px);
  padding-block: clamp(26px, 4svh, 44px) clamp(22px, 3.5svh, 36px);
  touch-action: pan-y;
}

.journey .chapter-image {
  filter: saturate(.82);
}

.journey .chapter-image[data-image="istambul-1"] {
  filter: brightness(0.78) saturate(0.85);
}

.journey .journey-shade {
  background:
    linear-gradient(90deg, rgba(18, 11, 7, 0.78) 0%, rgba(20, 12, 8, 0.55) 46%, rgba(22, 14, 10, 0.22) 100%),
    linear-gradient(0deg, rgba(20, 12, 8, 0.85) 0%, rgba(20, 12, 8, 0.30) 24%, transparent 48%, rgba(18, 11, 7, 0.25) 100%);
}

/* Sobreposição uniforme reforçada na imagem de Istambul 1 (só no fundo de tela
   cheia do desktop; no celular a etapa 1 usa o degradê simples do banner). */
@media(min-width:801px) {
  .journey:has(#etapa-1.active) .journey-shade {
    background:
      linear-gradient(90deg, rgba(14, 8, 5, 0.85) 0%, rgba(16, 9, 6, 0.65) 48%, rgba(18, 11, 7, 0.30) 100%),
      linear-gradient(0deg, rgba(16, 9, 6, 0.85) 0%, transparent 45%, rgba(16, 9, 6, 0.30) 100%);
  }
}

.journey .chapter-top {
  position: relative;
  z-index: 2;
  padding-top: 0;
  font-size: 12px;
  letter-spacing: .16em;
  font-weight: 500;
  color: #ead4bf;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.journey .chapter-panels {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  align-content: center;
  min-height: 0;
  padding-block: clamp(22px, 5svh, 56px);
}

.journey .chapter-panel {
  grid-area: 1 / 1;
  align-self: start;
  width: min(100%, 720px);
  max-width: none;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .35s ease, transform .6s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .6s;
}

.journey .chapter-panel.active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .45s ease .1s, transform .6s cubic-bezier(.16, 1, .3, 1) .1s, visibility 0s;
}

.journey .chapter-day {
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.journey .chapter-day span {
  font: 400 clamp(2.2rem, 3.2vw, 3.2rem)/1.1 var(--display);
  letter-spacing: -.02em;
  text-transform: none;
  color: #f6d8ba;
  padding: 0;
  border: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.journey .chapter-day strong {
  font: 600 12.5px/1 var(--body);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fffaf3;
  background: rgba(237, 200, 164, 0.18);
  border: 1px solid rgba(237, 200, 164, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.journey .chapter-panel h3 {
  font-size: clamp(2.6rem, 3.8vw, 3.9rem);
  line-height: 1.08;
  max-width: 740px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.journey .chapter-description {
  max-width: 600px;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.6;
  color: #fdf7f0;
  margin: 12px 0 16px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  text-wrap: pretty;
}

.journey .chapter-stops-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 16px;
  max-width: 620px;
}

.journey .stop-chip {
  display: inline-flex;
  align-items: center;
  font: 500 13px/1.3 var(--body);
  color: #fffaf3;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(237, 200, 164, 0.28);
  padding: 5px 12px;
  border-radius: 999px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
}

.journey .chapter-stops {
  display: none;
}

.journey .chapter-note {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  padding: 8px 14px;
  background: rgba(26, 17, 12, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(237, 200, 164, 0.22);
  border-left: 3px solid #edc8a4;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.journey .chapter-note.is-optional {
  background: linear-gradient(135deg, rgba(42, 26, 17, 0.72) 0%, rgba(26, 17, 12, 0.65) 100%);
  border-color: rgba(237, 200, 164, 0.35);
  border-left-color: #f6d1aa;
}

.journey .chapter-note-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 600 11px/1 var(--body);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #edc8a4;
  white-space: nowrap;
  flex-shrink: 0;
}

.journey .note-tag-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.journey .chapter-note-text {
  margin: 0;
  font: 400 13px/1.4 var(--body);
  color: #f7eee4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Anterior / próxima etapa. Na última etapa, "próxima" leva aos valores. */
.journey .chapter-pager {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: clamp(22px, 4svh, 36px);
}

.journey .chapter-prev,
.journey .chapter-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 4px;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, opacity .25s ease, transform .25s ease;
}

.journey .chapter-prev {
  width: 50px;
  padding: 0;
  border: 1px solid rgba(246, 239, 229, .45);
  background: rgba(20, 12, 8, .35);
  color: var(--cream);
}

.journey .chapter-prev svg.icon {
  transform: rotate(90deg);
}

.journey .chapter-prev:hover:not(:disabled) {
  background: rgba(246, 239, 229, .14);
  border-color: var(--cream);
}

.journey .chapter-prev:disabled {
  opacity: .35;
  cursor: default;
}

.journey .chapter-next {
  gap: 14px;
  padding: 0 24px 0 28px;
  border: 1px solid var(--cream);
  background: var(--cream);
  color: var(--brown);
  font: 600 15px/1 var(--body);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
}

.journey .chapter-next svg.icon {
  width: 18px;
  height: 18px;
  transform: rotate(-90deg);
  transition: transform .25s ease;
}

.journey .chapter-next:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.journey .chapter-next:hover svg.icon {
  transform: rotate(-90deg) translateY(3px);
}

.journey .chapter-next.is-final svg.icon {
  transform: rotate(90deg);
}

.journey .chapter-next.is-final:hover svg.icon {
  transform: rotate(90deg) translateY(-3px);
}

.journey .journey-controls {
  position: relative;
  z-index: 2;
  padding: 0;
}

.journey .journey-progress>span {
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

.journey .day-button>span {
  font-size: 11px;
  letter-spacing: .06em;
  color: #dac5b0;
}

.journey .day-button>strong {
  font-size: 17px;
}

/* Desktop baixo (notebook com barras do navegador): conteúdo mais compacto
   para a seção inteira caber na tela de uma vez. */
@media(min-width:801px) and (max-height:860px) {
  .journey .journey-stage {
    min-height: 0;
    padding-block: 22px 14px;
  }

  .journey .chapter-panels {
    padding-block: 20px;
  }

  .journey .chapter-day {
    margin-bottom: 10px;
  }

  .journey .chapter-day span {
    font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  }

  .journey .chapter-panel h3 {
    font-size: clamp(2.1rem, 3vw, 3rem);
  }

  .journey .chapter-description {
    font-size: 16px;
    margin: 12px 0 14px;
  }

  .journey .chapter-stops {
    gap: 6px;
  }

  .journey .chapter-stops li {
    font-size: 15.5px;
  }

  .journey .chapter-note {
    margin-top: 14px;
    padding: 10px 18px;
  }

  .journey .chapter-note-text {
    font-size: 14px;
  }

  .journey .chapter-pager {
    padding-bottom: 20px;
  }
}

/* Journey Intro: Subtitle and Prominent Explore Button */
.journey-intro .trip-facts-subtitle {
  font: 400 clamp(1.2rem, 1.5vw, 1.45rem)/1.35 var(--display);
  letter-spacing: -.02em;
  color: #f2d1b3;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(232, 211, 189, 0.18);
  max-width: 48ch;
}

.journey-intro .trip-facts {
  margin-top: 20px;
}

.journey-intro-action {
  margin-top: 36px;
  display: flex;
}

.journey-intro-action .journey-explore-btn {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .01em;
  min-height: 58px;
  padding: 16px 36px;
  gap: 16px;
  border-radius: 4px;
  background: var(--cream);
  color: var(--brown);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.journey-intro-action .journey-explore-btn:hover {
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.journey-intro-action .journey-explore-btn svg.icon {
  width: 18px;
  height: 18px;
  transition: transform .25s ease;
}

.journey-intro-action .journey-explore-btn:hover svg.icon {
  transform: translateY(3px);
}

/* Celular e tablet: foto da etapa no topo, dias logo abaixo, texto sobre
   fundo sólido (sem foto atrás, mais legível) e os botões no fim. */
@media(max-width:800px) {
  .journey-intro .trip-facts-subtitle {
    font-size: 16px;
    margin-top: 22px;
    padding-top: 18px;
  }

  .journey-intro-action {
    margin-top: 28px;
  }

  .journey-intro-action .journey-explore-btn {
    width: 100%;
    justify-content: center;
    font-size: 15px;
  }

  .journey .journey-stage {
    min-height: 0;
    padding: 0;
    background: var(--dark);
  }

  .journey .chapter-images {
    position: relative;
    inset: auto;
    order: 0;
    height: clamp(170px, 27svh, 300px);
    overflow: hidden;
  }

  #roteiro-etapas .journey-stage .journey-shade {
    inset: 0 0 auto;
    height: clamp(170px, 27svh, 300px);
    background: linear-gradient(180deg,
      rgba(20, 12, 8, .5) 0%,
      rgba(20, 12, 8, .06) 26%,
      rgba(20, 12, 8, .08) 42%,
      rgba(20, 12, 8, .26) 62%,
      rgba(20, 12, 8, .58) 80%,
      var(--dark) 100%);
  }

  .journey .chapter-top {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    margin-inline: auto;
  }

  .journey .journey-controls {
    order: 1;
    margin-top: -6px;
  }

  .journey .day-nav {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 12px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding: 0;
  }

  .journey .day-nav::-webkit-scrollbar {
    display: none;
  }

  .journey .day-button {
    flex: 0 0 auto;
    min-width: 88px;
    align-items: flex-start;
    text-align: left;
    scroll-snap-align: center;
    min-height: 58px;
  }

  .journey .day-button[aria-current]:before {
    bottom: 0;
    left: 0;
    right: 0;
  }

  /* The active chip's underline and the "01 / 07" counter already show position. */
  .journey .journey-progress {
    display: none;
  }

  .journey .day-nav {
    border-bottom: 1px solid var(--line);
  }

  .journey .chapter-panels {
    order: 2;
    align-content: start;
    padding-block: 20px 18px;
  }

  /* The day chips right above already name the place and the days. */
  .journey .chapter-day {
    display: none;
  }

  .journey .chapter-stops-chips {
    margin-bottom: 12px;
  }

  .journey .chapter-note {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .journey .chapter-panel {
    width: 100%;
    transform: translateY(8px);
  }

  .journey .chapter-pager {
    order: 3;
    padding-bottom: 36px;
  }

  .journey .chapter-next {
    flex: 1;
  }

  .journey .chapter-day span {
    font-size: 32px;
  }

  .journey .chapter-panel h3 {
    font-size: 40px;
  }

  .journey .chapter-description {
    font-size: 16px;
    line-height: 1.65;
    max-width: 540px;
  }

  .journey .chapter-stops li {
    font-size: 16px;
  }

  .journey .chapter-note {
    padding: 13px 16px;
    margin-top: 20px;
  }

  .journey .chapter-note-tag {
    font-size: 11.5px;
  }

  .journey .chapter-note-text {
    font-size: 14.5px;
  }
}

@media(max-width:580px) {
  .journey-intro .trip-facts-subtitle {
    font-size: 15px;
    margin-top: 18px;
    padding-top: 16px;
  }

  .journey-intro-action .journey-explore-btn {
    min-height: 52px;
    font-size: 15px;
    padding: 14px 24px;
  }

  .journey .chapter-top {
    top: 16px;
    font-size: 10px;
  }

  .journey .chapter-day {
    gap: 12px;
    margin-bottom: 12px;
  }

  .journey .chapter-day span {
    font-size: 26px;
  }

  .journey .chapter-day strong {
    font-size: 10.5px;
    padding: 4px 10px;
  }

  .journey .chapter-panel h3 {
    font-size: clamp(2rem, 8.2vw, 2.5rem);
  }

  .journey .chapter-description {
    font-size: 15px;
    line-height: 1.6;
    margin: 14px 0 16px;
  }

  .journey .chapter-stops {
    gap: 8px;
  }

  .journey .chapter-stops li {
    font-size: 14.5px;
    line-height: 1.45;
  }

  .journey .chapter-note {
    padding: 11px 14px;
    margin-top: 15px;
    gap: 5px;
  }

  .journey .chapter-note-tag {
    font-size: 11px;
  }

  .journey .chapter-note-text {
    font-size: 13.5px;
    line-height: 1.5;
  }

  .journey .day-button>span {
    font-size: 10px;
  }

  .journey .day-button>strong {
    font-size: 15px;
  }
}

/* Selos rápidos de tranquilidade na introdução do roteiro */
.journey-quick-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 6px;
  max-width: 100%;
}

.quick-perk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fffaf3;
  background: rgba(255, 250, 243, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(237, 200, 164, 0.38);
  padding: 8px 16px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  max-width: 100%;
  box-sizing: border-box;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.quick-perk svg {
  width: 15px;
  height: 15px;
  color: #f6d1aa;
  flex-shrink: 0;
}

