/* Carrossel de passeios na home — Swiper isolado (.home-tours-carousel) */

.tours .tours-content {
  width: 100%;
  min-width: 0;
}

.tours .tours-slide-container {
  min-width: 0;
  width: 100%;
  max-width: none !important;
}

.home-tours-carousel {
  width: 100%;
  padding-top: var(--home-content-gap, 3.2rem);
  --home-tours-gap: 20px;
  --home-tours-slide-size: calc((100% - var(--home-tours-gap) * 0.12) / 1.12);
}

@media (min-width: 640px) {
  .home-tours-carousel {
    --home-tours-slide-size: calc((100% - var(--home-tours-gap) * 0.25) / 1.25);
  }
}

@media (min-width: 768px) {
  .home-tours-carousel {
    --home-tours-slide-size: calc((100% - var(--home-tours-gap) * 0.55) / 1.55);
  }
}

@media (min-width: 992px) {
  .home-tours-carousel {
    --home-tours-slide-size: calc((100% - var(--home-tours-gap) * 1.1) / 2.1);
  }
}

@media (min-width: 1200px) {
  .home-tours-carousel {
    --home-tours-gap: 22px;
    --home-tours-slide-size: calc((100% - var(--home-tours-gap) * 1.35) / 2.35);
  }
}

.home-tours-carousel__swiper {
  width: 100%;
  overflow: hidden;
}

.home-tours-carousel__swiper .swiper-wrapper {
  align-items: stretch;
  display: flex;
  flex-wrap: nowrap;
  box-sizing: border-box;
}

.home-tours-carousel__swiper .swiper-slide {
  height: auto;
  display: flex;
  box-sizing: border-box;
  touch-action: pan-y;
  min-width: 0;
}

/* Largura e espaçamento estáveis antes do Swiper inicializar */
.home-tours-carousel__swiper:not(.swiper-initialized) .swiper-slide {
  flex: 0 0 var(--home-tours-slide-size);
  width: var(--home-tours-slide-size);
  max-width: var(--home-tours-slide-size);
  margin-right: var(--home-tours-gap);
}

.home-tours-carousel__swiper:not(.swiper-initialized) .swiper-slide:last-child {
  margin-right: 0;
}

.home-tours-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(8, 66, 176, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, box-shadow;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.home-tours-card:hover {
  transform: translateY(-4px) translateZ(0);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.home-tours-card__media {
  position: relative;
  width: 100%;
  min-height: 16rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8edf5;
  flex-shrink: 0;
  touch-action: pan-y;
}

.home-tours-carousel__swiper:not(.swiper-initialized) .home-tours-card__media {
  min-height: 16rem;
}

.home-tours-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.home-tours-card:hover .home-tours-card__media img {
  transform: scale(1.05) translateZ(0);
}

.home-tours-card__media-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  margin: 0;
  padding: 0.8rem 1.6rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, rgba(8, 66, 176, 0.9) 0%, rgba(8, 66, 176, 0.75) 100%);
  line-height: 1.2;
  letter-spacing: 0.5px;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.home-tours-card__media .transfer-card-destino-pin {
  top: 1rem;
  left: 1rem;
  max-width: calc(100% - 5rem);
  font-size: 1.1rem;
  z-index: 3;
  pointer-events: none;
}

.home-tours-card__media .home-card-favorite-btn {
  z-index: 5;
  pointer-events: auto;
  touch-action: manipulation;
}

.home-tours-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 2rem 2.4rem 2.4rem;
  gap: 1.4rem;
}

.home-tours-card__desc {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.7;
  font-weight: 400;
  color: #4a4a4a;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.7em * 3);
}

.home-tours-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.home-tours-card__meta span {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.45rem;
  font-weight: 500;
  color: #555;
  line-height: 1.5;
}

.home-tours-card__meta i {
  color: #0842b0;
  font-size: 1.4rem;
  opacity: 0.85;
  flex-shrink: 0;
}

.home-tours-card__meta .time-separator {
  color: #0842b0;
  font-weight: 400;
  font-size: 1.2rem;
  opacity: 0.6;
  margin: 0 0.4rem;
  line-height: 1;
}

.home-tours-card__foot {
  margin-top: auto;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(8, 66, 176, 0.08);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.8rem;
}

.home-tours-card__price {
  min-width: 0;
  flex: 1 1 auto;
}

.home-tours-card__price strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: #0842b0;
  line-height: 1.2;
  letter-spacing: -0.6px;
}

.home-tours-card__price small {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.2rem;
  line-height: 1.45;
  font-weight: 400;
  color: #666;
}

.home-tours-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: #0842b0;
  padding: 1rem 2.4rem;
  border-radius: 10px;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.home-tours-card__cta:hover {
  background: #063a9a;
  color: #fff;
}

@media (max-width: 915px) {
  .tours .container {
    padding-right: 0 !important;
  }

  .home-tours-carousel__swiper {
    padding-right: 0.4rem;
  }

  .home-tours-card__foot {
    gap: 1.2rem;
  }

  .home-tours-card__cta {
    padding: 1rem 1.6rem;
  }

  .home-tours-card__desc {
    -webkit-line-clamp: 2;
    min-height: calc(1.7em * 2);
  }

  .home-tours-card__body {
    padding: 1.8rem 2rem 2rem;
  }
}
