/* =========================================================
   SEÇÃO PRÓXIMAS VIAGENS — RUMOA TURISMO E EXPEDIÇÕES
   Fidelidade absoluta ao mockup aprovado.
   Layout aberto diretamente no fundo creme.
   ========================================================= */

.upcoming-trips-section {
  position: relative;
  width: 100%;
  margin-top: -3px; /* Sobreposição cirúrgica de 3px para eliminar gap subpixel */
  background: var(--cream);
  color: var(--ink);
  overflow: hidden;
  padding-bottom: 64px;
  z-index: 5;
}

/* Conector orgânico superior: transição contínua da Hero para a seção */
.trips-top-connector {
  position: relative;
  width: 100%;
  height: 52px;
  margin-top: 0;
  line-height: 0;
  overflow: hidden;
  z-index: 2;
}

.trips-top-connector-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Linhas topográficas sutis de fundo idênticas ao mockup */
.trips-topo-bg {
  position: absolute;
  inset: 40px 0 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.42;
  color: var(--green);
}

.trips-topo-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Container de conteúdo */
.trips-container {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 4.5vw 0;
}

/* ---------------------------------------------------------
   CABEÇALHO DA SEÇÃO
   --------------------------------------------------------- */
.trips-header {
  margin-bottom: 34px;
}

.trips-header-left {
  max-width: 720px;
}

.trips-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: #2d472c;
  margin-bottom: 12px;
}

.trips-eyebrow-line {
  display: inline-block;
  width: 36px;
  height: 2.5px;
  background: var(--terracotta);
  border-radius: 2px;
}

.trips-title {
  font-size: clamp(44px, 4.4vw, 68px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.title-dark {
  font-family: 'DM Serif Display', Georgia, serif;
  color: #111b12;
}

.title-script {
  font-family: 'Allura', cursive;
  font-size: 1.25em;
  color: var(--terracotta);
  margin-left: 8px;
  font-weight: 400;
  vertical-align: -0.08em;
  display: inline-block;
}

.trips-lead {
  font-size: 15.5px;
  line-height: 1.6;
  color: #58647a;
  font-weight: 400;
  margin: 0;
  max-width: 620px;
}

.desktop-br {
  display: inline;
}

/* ---------------------------------------------------------
   CONTAINER DE CATEGORIAS / ABAS
   Posicionado entre o cabeçalho e o slider de viagens
   --------------------------------------------------------- */
.trips-categories-nav {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  min-height: 72px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(45, 71, 44, 0.12);
  border-radius: 26px;
  margin-bottom: 40px;
  overflow: hidden;
  box-shadow: 0 4px 20px -4px rgba(22, 36, 23, 0.04);
}

.trip-category-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 20px;
  height: 100%;
  min-height: 72px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 15.5px;
  font-weight: 500;
  color: rgba(22, 36, 23, 0.65);
  transition: color 0.25s ease, background-color 0.25s ease;
  outline: none;
  user-select: none;
  text-align: center;
}

/* Divisor vertical sutil entre as abas */
.trip-category-tab:not(:last-child)::before {
  content: '';
  position: absolute;
  right: 0;
  top: 22%;
  height: 56%;
  width: 1px;
  background: rgba(45, 71, 44, 0.14);
  pointer-events: none;
}

.trip-category-tab .category-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(45, 71, 44, 0.52);
  transition: color 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}

.trip-category-tab .category-icon-svg {
  width: 22px;
  height: 22px;
}

.trip-category-tab .category-tab-label {
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.category-label-desktop {
  display: inline;
}

.category-label-mobile {
  display: none;
}

/* Hover state desktop */
.trip-category-tab:hover {
  background: rgba(255, 255, 255, 0.5);
  color: #162417;
}

.trip-category-tab:hover .category-tab-icon {
  color: var(--green);
}

/* Active state */
.trip-category-tab.is-active {
  color: #162417;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.4);
}

.trip-category-tab.is-active .category-tab-icon {
  color: var(--terracotta);
}

/* Linha inferior ativa: terracota, ~2.5px, 75% da largura da aba */
.category-active-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 2.5px;
  background: var(--terracotta);
  border-radius: 2px 2px 0 0;
  pointer-events: none;
}

/* Focus visible para acessibilidade */
.trip-category-tab:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: -2px;
  border-radius: 22px;
}

/* ---------------------------------------------------------
   ESTADO VAZIO PREMIUM (EXPEDIÇÕES AMÉRICA DO SUL)
   --------------------------------------------------------- */
.trip-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 84px 28px;
  margin: 10px 0 40px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(45, 71, 44, 0.2);
  border-radius: 24px;
  animation: infoBodyFadeIn 0.35s cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
}

.empty-state-compass {
  width: 52px;
  height: 52px;
  color: var(--terracotta);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state-compass svg {
  width: 100%;
  height: 100%;
}

.empty-state-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 400;
  color: #111b12;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.empty-state-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #58647a;
  max-width: 480px;
  margin: 0;
  font-weight: 400;
}

/* ---------------------------------------------------------
   GRID PRINCIPAL
   58-60% Esquerda (Mídia + Miniaturas + Pontos)
   40-42% Direita (Detalhes diretamente no fundo creme)
   --------------------------------------------------------- */
.trips-main-grid {
  display: grid;
  grid-template-columns: 59% 41%;
  gap: 48px;
  align-items: start;
}

/* ---------------------------------------------------------
   COLUNA ESQUERDA (IMAGEM PRINCIPAL + MINIATURAS + PONTOS)
   --------------------------------------------------------- */
.trips-left-col {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Card Principal da Imagem */
.trip-hero-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 400px;
  border-radius: 20px;
  overflow: hidden;
  background: #141f15;
  box-shadow: 0 16px 42px -12px rgba(15, 29, 16, 0.12);
  isolation: isolate;
}

.trip-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.38s ease;
  will-change: transform, opacity;
}

/* Enquadramento individual refinado por arte no Desktop */
.trip-hero-img.img-msc-virtuosa {
  object-position: center 38%;
}

.trip-hero-img.img-cartagena-san-andres {
  object-position: center 48%;
}

.trip-hero-img.img-santiago-chile {
  object-position: center 50%;
}

.trip-hero-img.img-buenos-aires {
  object-position: center 46%;
}

.trip-hero-img.is-animating {
  animation: heroImgFade 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes heroImgFade {
  0% {
    opacity: 0.78;
    transform: scale(0.99);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Gradiente na base da imagem para destacar badge e controles */
.trip-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 26, 16, 0.02) 0%,
    rgba(14, 26, 16, 0) 45%,
    rgba(14, 26, 16, 0.22) 70%,
    rgba(14, 26, 16, 0.74) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Setas de navegação circulares sobre a imagem */
.hero-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 25, 19, 0.46);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #ffffff;
  cursor: pointer;
  z-index: 5;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.hero-nav-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
  transform: translateY(-50%) scale(1.06);
}

.hero-nav-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-nav-arrow svg {
  width: 20px;
  height: 20px;
}

.hero-nav-arrow.arrow-left {
  left: 20px;
}

.hero-nav-arrow.arrow-right {
  right: 20px;
}

/* Badge de localização no canto inferior esquerdo */
.trip-location-badge {
  position: absolute;
  bottom: 22px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  z-index: 5;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.trip-location-badge svg {
  width: 18px;
  height: 18px;
  stroke: var(--terracotta);
  flex-shrink: 0;
}

.location-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.location-line1 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.15;
}

.location-line2 {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.15;
}

/* Contador de slides no canto inferior direito */
.trip-slide-counter {
  position: absolute;
  bottom: 22px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  z-index: 5;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.counter-current {
  font-weight: 700;
}

.counter-dash {
  opacity: 0.6;
  font-size: 13px;
}

.counter-total {
  opacity: 0.78;
}

/* ---------------------------------------------------------
   LINHA DE MINIATURAS (THUMBNAILS)
   4 cartões em grid horizontal logo abaixo da imagem
   --------------------------------------------------------- */
.trip-thumbs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
  width: 100%;
}

.trip-thumb-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7.6;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #141f15;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(15, 29, 16, 0.08);
  transition: border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.trip-thumb-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 29, 16, 0.15);
}

.trip-thumb-card.is-active {
  border-color: #2d472c;
  box-shadow: 0 4px 14px rgba(45, 71, 44, 0.35);
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.32) 50%,
    rgba(0, 0, 0, 0.88) 100%
  );
  pointer-events: none;
}

.thumb-label {
  position: absolute;
  bottom: 6px;
  left: 4px;
  right: 4px;
  font-size: 9.5px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.15;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

/* ---------------------------------------------------------
   PONTOS INDICADORES CENTRALIZADOS
   --------------------------------------------------------- */
.trip-dots-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.trip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d8cebe;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.trip-dot:hover {
  background: #b5aa97;
}

.trip-dot.is-active {
  background: #2d472c;
  transform: scale(1.15);
}

/* ---------------------------------------------------------
   COLUNA DIREITA (INFORMAÇÕES DIRETO NO FUNDO CREME)
   --------------------------------------------------------- */
.trips-right-col {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 6px;
}

/* Carimbo Postal Vintage e Frase Manuscrita no Canto Superior Direito */
.trip-stamp-wrapper {
  position: absolute;
  top: -12px;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  z-index: 1;
}

.postal-stamp-svg {
  width: 105px;
  height: 60px;
  color: #b5a894;
  opacity: 0.6;
}

.trip-cursive-script {
  font-family: 'Allura', cursive;
  font-size: 26px;
  color: #7b8672;
  transform: rotate(-7deg);
  margin-top: -6px;
  margin-right: 12px;
  line-height: 1;
  white-space: nowrap;
}

.trip-info-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  transition: opacity 380ms ease, transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

.trip-info-body.is-animating {
  animation: infoBodyFade 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes infoBodyFade {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Eyebrow de destino com traço terracota */
.trip-dest-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ink);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.dest-line {
  display: inline-block;
  width: 30px;
  height: 2.5px;
  background: var(--terracotta);
  border-radius: 2px;
}

/* Título e Subtítulo */
.trip-title-serif {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(38px, 3.2vw, 54px);
  font-weight: 400;
  line-height: 1.05;
  color: #111b12;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.trip-subtitle-serif {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(20px, 1.7vw, 28px);
  font-weight: 400;
  color: #203322;
  margin-bottom: 16px;
}

/* Linha com Duração e Roteiro */
.trip-meta-row {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #556275;
}

.meta-item svg {
  width: 17px;
  height: 17px;
  color: #2d472c;
  flex-shrink: 0;
}

/* Descrição do pacote */
.trip-desc-text {
  font-size: 14.5px;
  line-height: 1.62;
  color: #58647a;
  margin: 0 0 24px;
  max-width: 480px;
}

/* 4 Diferenciais com divisores verticais exatamente como no mockup */
.trip-differentials-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(216, 208, 195, 0.85);
  border-bottom: 1px solid rgba(216, 208, 195, 0.85);
  padding: 18px 0;
  margin-bottom: 24px;
}

.diff-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 0 6px;
  position: relative;
}

.diff-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: rgba(216, 208, 195, 0.85);
}

.diff-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d472c;
}

.diff-icon-svg {
  width: 24px;
  height: 24px;
}

.diff-label {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  color: #223223;
}

/* Bloco de Preço */
.trip-price-section {
  margin-bottom: 24px;
}

.price-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #6b778a;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.price-main-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-amount {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(38px, 3.1vw, 48px);
  font-weight: 400;
  color: #111b12;
  line-height: 1;
  letter-spacing: -0.02em;
}

.price-term {
  font-size: 15px;
  font-weight: 400;
  color: #556275;
}

.price-note-text {
  font-size: 12px;
  color: #768395;
  font-style: italic;
  margin-top: 4px;
}

/* Botões de Ação lado a lado */
.trip-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-trip-pill-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #2d472c;
  color: #ffffff;
  border-radius: 999px;
  height: 54px;
  padding: 0 34px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 6px 18px -4px rgba(45, 71, 44, 0.35);
}

.btn-trip-pill-primary:hover {
  background: #223a24;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(45, 71, 44, 0.45);
}

.btn-trip-pill-primary svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.btn-trip-pill-primary:hover svg {
  transform: translateX(3px);
}

.btn-trip-pill-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: #1c2b1e;
  border: 1.5px solid #2d472c;
  border-radius: 999px;
  height: 54px;
  padding: 0 26px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease, color 0.25s ease;
}

.btn-trip-pill-whatsapp:hover {
  background: #ffffff;
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: translateY(-2px);
}

.btn-trip-pill-whatsapp svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------
   RODAPÉ DA SEÇÃO (Detalhes editoriais do Mockup)
   --------------------------------------------------------- */
.trips-section-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid rgba(220, 214, 202, 0.6);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: #5c687d;
  text-transform: uppercase;
}

.footer-phrase-left,
.footer-phrase-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-line {
  display: inline-block;
  width: 36px;
  height: 2px;
  background: var(--terracotta);
  border-radius: 1px;
}

.trip-footer-airplane {
  width: 17px;
  height: 17px;
  color: var(--terracotta);
}

/* ---------------------------------------------------------
   RESPONSIVIDADE (Tablets e Mobile)
   --------------------------------------------------------- */
@media (max-width: 1180px) {
  .trips-main-grid {
    grid-template-columns: 56% 44%;
    gap: 36px;
  }

  .trips-categories-nav {
    min-height: 66px;
    border-radius: 22px;
    margin-bottom: 34px;
  }

  .trip-category-tab {
    min-height: 66px;
    padding: 0 14px;
    font-size: 14.5px;
    gap: 10px;
  }

  .trip-category-tab .category-icon-svg {
    width: 20px;
    height: 20px;
  }

  .trip-stamp-wrapper {
    top: -8px;
  }

  .postal-stamp-svg {
    width: 90px;
    height: 52px;
  }

  .trip-cursive-script {
    font-size: 22px;
  }
}

@media (max-width: 960px) {
  .upcoming-trips-section {
    padding-bottom: 48px;
  }

  .trips-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .trips-header {
    margin-bottom: 26px;
  }

  .desktop-br {
    display: none;
  }

  /* Tablet: mantém grid equilibrado com rótulos completos */
  .trips-categories-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-radius: 20px;
    min-height: 64px;
    margin-bottom: 26px;
    overflow: hidden;
  }

  .trip-category-tab {
    min-height: 64px;
    padding: 0 10px;
    font-size: 13px;
    gap: 8px;
  }

  .trip-category-tab:not(:last-child)::before {
    top: 22%;
    height: 56%;
  }

  .category-active-line {
    width: 75%;
    height: 2.5px;
  }

  .trip-empty-state {
    padding: 60px 20px;
    margin: 6px 0 28px;
    border-radius: 20px;
  }

  .empty-state-compass {
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
  }

  .empty-state-title {
    font-size: 25px;
  }

  .empty-state-desc {
    font-size: 14.5px;
  }

  .trips-main-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .trip-hero-card {
    min-height: 280px;
    aspect-ratio: 16 / 10;
  }

  /* No mobile/tablet, thumbs deslizam suavemente se necessário */
  .trip-thumbs-row {
    gap: 10px;
  }

  .thumb-label {
    font-size: 8.5px;
  }

  .trip-stamp-wrapper {
    position: relative;
    top: auto;
    right: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 12px;
  }

  .trip-cursive-script {
    margin-top: 0;
    margin-right: 0;
  }

  .trip-title-serif {
    font-size: 36px;
  }

  .trip-subtitle-serif {
    font-size: 22px;
    margin-bottom: 14px;
  }

  .trip-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .btn-trip-pill-primary,
  .btn-trip-pill-whatsapp {
    width: 100%;
    box-sizing: border-box;
  }

  .trips-section-footer {
    margin-top: 36px;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    letter-spacing: 0.16em;
    font-size: 10px;
  }

  .footer-phrase-left,
  .footer-phrase-right {
    justify-content: center;
  }
}

/* =========================================================
   MOBILE ESPECÍFICO: NAVEGAÇÃO DE CATEGORIAS (<= 767px)
   Grid fixo de 3 colunas, sem scroll horizontal, layout vertical
   ========================================================= */
@media (max-width: 767px) {
  .trip-hero-card {
    background: var(--cream);
  }

  .trip-hero-card .trip-hero-img {
    object-fit: contain;
    object-position: center center;
  }

  /* Alternância de rótulos: somente labels compactos no mobile */
  .category-label-desktop {
    display: none !important;
  }

  .category-label-mobile {
    display: block !important;
  }

  /* Grid fixo de 3 colunas: 100% largura, sem scroll horizontal */
  .trips-categories-nav {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
    min-height: 82px !important;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(45, 71, 44, 0.12);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden !important;
    padding: 0 !important;
    box-shadow: 0 4px 16px -4px rgba(22, 36, 23, 0.04);
  }

  /* Cada aba: layout vertical (ícone em cima, texto embaixo) */
  .trip-category-tab {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    min-height: 82px !important;
    padding: 10px 4px !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border: none !important;
    background: transparent !important;
    position: relative !important;
  }

  /* Separadores verticais finos e elegantes apenas entre abas 1-2 e 2-3 */
  .trip-category-tab:not(:last-child)::before {
    content: '';
    position: absolute;
    right: 0;
    top: 18%;
    height: 64%;
    width: 1px;
    background: rgba(45, 71, 44, 0.12);
    pointer-events: none;
  }

  /* Ícone sutilmente ajustado */
  .trip-category-tab .category-tab-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(45, 71, 44, 0.45);
    margin-bottom: 0 !important;
    transition: color 0.2s ease;
  }

  .trip-category-tab .category-icon-svg {
    width: 20px !important;
    height: 20px !important;
  }

  .trip-category-tab.is-active .category-tab-icon {
    color: var(--terracotta);
  }

  /* Texto com até 2 linhas, quebra suave e tamanho proporcional */
  .trip-category-tab .category-tab-label {
    font-size: clamp(11px, 3.1vw, 12px) !important;
    font-weight: 500;
    line-height: 1.18 !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: normal;
    color: rgba(22, 36, 23, 0.62);
    max-width: 100%;
    letter-spacing: -0.01em;
  }

  .trip-category-tab.is-active .category-tab-label {
    color: #111b12;
    font-weight: 600;
  }

  /* Linha ativa terracota sutil na base */
  .category-active-line {
    position: absolute;
    bottom: 0;
    left: 16% !important;
    right: 16% !important;
    width: auto !important;
    transform: none !important;
    height: 2px !important;
    background: var(--terracotta);
    border-radius: 999px;
  }
}

@media (max-width: 520px) {

  .trip-empty-state {
    padding: 48px 16px;
    border-radius: 16px;
  }

  .empty-state-title {
    font-size: 22px;
  }

  .empty-state-desc {
    font-size: 13.5px;
  }

  .trips-title {
    font-size: 38px;
  }

  .title-script {
    font-size: 1.18em;
  }

  .trips-lead {
    font-size: 14px;
  }

  .trip-hero-card {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
  }

  .hero-nav-arrow {
    width: 42px;
    height: 42px;
  }

  .hero-nav-arrow.arrow-left {
    left: 12px;
  }

  .hero-nav-arrow.arrow-right {
    right: 12px;
  }

  .trip-location-badge {
    bottom: 14px;
    left: 14px;
    gap: 8px;
  }

  .location-line1 {
    font-size: 9.5px;
  }

  .location-line2 {
    font-size: 8.5px;
  }

  .trip-slide-counter {
    bottom: 14px;
    right: 14px;
    font-size: 13px;
  }

  .trip-thumbs-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .trip-thumb-card {
    border-radius: 8px;
    aspect-ratio: 16 / 9;
  }

  .thumb-label {
    display: none; /* Em telas muito pequenas oculta o texto para evitar poluição */
  }

  .trip-differentials-row {
    padding: 14px 0;
  }

  .diff-label {
    font-size: 9.5px;
  }

  .price-amount {
    font-size: 34px;
  }
}

/* Acessibilidade: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .trip-hero-img,
  .trip-info-body,
  .hero-nav-arrow,
  .trip-thumb-card,
  .trip-dot,
  .btn-trip-pill-primary,
  .btn-trip-pill-whatsapp {
    animation: none !important;
    transition: none !important;
  }
}
