/* ===== HERO / SLIDER ===== */
.hero-section {
  margin-top: 20px
}

.hero-frame {
  border-radius: 18px;
  overflow: hidden;
  background: #f5f7fb;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .08);
  padding: 4px
}

.hero-carousel .carousel-item img {
  height: 450px;
  width: 100%;
  object-fit: cover;
  background: #f5f7fb
}

@media (max-width:768px) {
  .hero-carousel .carousel-item img {
    height: 400px
  }
}

.hero-shell {
  max-width: 1500px;
  margin: 0 auto
}

/* ===== TÍTULO GERAL ABAIXO DO SLIDE ===== */
.section-title {
  padding: 1.6rem 0 1.15rem;
  text-align: center
}

.section-title h1 {
  font-weight: 700;
  color: #2b2f36;
  margin-bottom: .25rem
}

.section-title p {
  color: #6b7280;
  margin: 0
}

.title-underline {
  display: inline-block;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: #22c55e;
  margin-top: 12px
}

/* ===== TÍTULO DE CADA AGRUPAMENTO ===== */
.section-header h2 {
  color: #111827;
  font-weight: 700;
  letter-spacing: -.5px;
  margin-bottom: .25rem
}

.section-header .title-underline {
  width: 60px;
  height: 3px;
  border-radius: 4px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  margin-top: 4px
}

.section-header p {
  color: #6b7280;
  margin-top: .5rem
}

/* ===== NOVO CARD (estilo “foto 2”) ===== */
.deal-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  /* sem cantos arredondados */
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(16, 24, 40, .08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.deal-media {
  position: relative;
  background: #eef2f7
}

.deal-media .media-box {
  position: relative;
  width: 100%;
  padding-top: 58%
}

/* proporção próxima à da imagem */
.deal-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

/* faixa escura no rodapé da imagem */
.deal-belt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, .0));
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.deal-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: #16a34a;
  color: #fff;
  font-weight: 800;
  border-radius: 8px;
  padding: .45rem .8rem;
  font-size: .95rem
}

.deal-badge i {
  font-size: .95rem
}

.deal-body {
  padding: 1rem 1rem .25rem
}

.deal-city {
  color: #6b7280;
  font-weight: 600;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem
}

.deal-title {
  font-size: 1.1rem;
  line-height: 1.35;
  font-weight: 800;
  color: #111827;
  margin: 0 0 .35rem
}

.deal-category {
  color: #6b7280;
  font-weight: 600;
  margin-bottom: .75rem
}

.deal-sep {
  border-top: 1px solid #eef2f7;
  margin: .25rem 0 .75rem
}

.deal-meta {
  color: #111827;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem
}

.deal-meta i {
  color: #16a34a
}

.deal-price {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  margin-bottom: .75rem
}

.deal-price .from {
  color: #6b7280
}

.deal-price del {
  color: #ef4444
}

.deal-price .now {
  font-weight: 900;
  font-size: 1.25rem;
  color: #111827
}

.deal-cta {
  padding: 0 1rem 1rem;
  margin-top: auto
}

.deal-cta .btn {
  height: 48px;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 12px
}

/* CARD */
.deal-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}

/* imagem */
.deal-media {
  position: relative;
  flex-shrink: 0;
}

.deal-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.deal-belt {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 10px;
}

.deal-badge {
  background: #22c55e;
  color: #fff;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: .85rem;
}

/* corpo */
.deal-body {
  flex: 1;
  /* ocupa todo o espaço vertical */
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.deal-city {
  color: #6b7280;
  font-size: .85rem;
  margin-bottom: .25rem;
}

.deal-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: .35rem;
  min-height: 48px;
  /* garante altura mínima p/ 2 linhas */
  text-align: center
}

.deal-category {
  color: #6b7280;
  font-size: .85rem;
  margin-bottom: .5rem;
}

.deal-body p {
  font-size: .85rem;
  color: #6b7280;
  margin-top: auto;
  /* empurra p/ baixo */
  min-height: 36px;
  /* altura fixa p/ descrição */
}

/* CTA */
.deal-cta {
  padding: 0 1rem 1rem;
}

.deal-cta .btn {
  border-radius: 10px;
  font-weight: 600;
}


/* wrapper para setas externas */
.carousel-wrap {
  position: relative;
  overflow: visible;
  /* deixa as setas “pra fora” */
}

.carousel-wrap .carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #4bb413;
  background: #45B20C;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
  cursor: pointer;
  z-index: 10;
  /* maior que cards/carousel */
  pointer-events: auto;
}

.carousel-wrap .carousel-arrow i {
  font-size: 18px;
}

.carousel-wrap .carousel-arrow-prev {
  left: -0.75rem;
}

.carousel-wrap .carousel-arrow-next {
  right: -0.75rem;
}

@media (min-width: 768px) {
  .carousel-wrap .carousel-arrow-prev {
    left: -1.5rem;
  }

  .carousel-wrap .carousel-arrow-next {
    right: -1.5rem;
  }
}

.carousel-wrap .carousel-arrow:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
}

.carousel-wrap .carousel-arrow:focus {
  outline: 2px solid #0d6efd40;
}


.equalized:not(.section-products) .card.h-100 {
  height: var(--eq-card-h, auto);
}


/* torna slides “medíveis” sem aparecer na tela */
.carousel-item.__measure {
  display: block !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: 0;
  right: 0;
}

.section-products .card.h-100 {
  height: auto !important;
  min-height: var(--eq-prod-h, var(--eq-card-h, auto));
}

.section-content .card.h-100 {
  height: auto !important;
  min-height: var(--eq-card-h, auto);
}


/* Modo "medição" para slides ocultos (já existe para seção; aqui garantimos o seletor global) */
.carousel-item.__measure {
  display: block !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: 0;
  right: 0;
}

/* Esconde setas por padrão e mostra só no hover (desktop com hover) */
@media (hover: hover) and (pointer: fine) {
  .carousel-wrap .carousel-arrow {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) scale(.95);
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
    pointer-events: none;
    /* evita clique quando ocultas */
  }

  /* Mostra quando o mouse entra no wrapper ou quando algum botão recebe foco (acessibilidade) */
  .carousel-wrap:hover .carousel-arrow,
  .carousel-wrap:focus-within .carousel-arrow {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
    pointer-events: auto;
  }
}

/* Em dispositivos sem hover (mobile/tablet touch), mantenha visível */
@media (hover: none),
(pointer: coarse) {
  .carousel-wrap .carousel-arrow {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}


/* ====== Buscar animado ====== */
/* Estilo do campo */
#buscaGeral {
  font-size: 1rem;
  background-color: transparent;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

#buscaGeral:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
  outline: none;
}

.input-group:focus-within {
  transform: translateY(-1px);
}

/* Placeholder animado */
@keyframes digitaPlaceholder {

  0%,
  20% {
    content: "Buscar atividades para fazer...";
  }

  25%,
  45% {
    content: "Buscar experiências incríveis...";
  }

  50%,
  70% {
    content: "Buscar transportes e ingressos...";
  }

  75%,
  100% {
    content: "Buscar novas aventuras...";
  }
}