/* ===== FEATURED TOURS CARDS ===== */

/* Grid */
.ft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Card */
.ft-card {
  position: relative;
  height: 560px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.ft-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

/* Imagen zoom al hover */
.ft-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  z-index: 0;
}

.ft-card:hover::before {
  transform: scale(1.06);
}

/* Overlay de color */
.ft-overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 74, 71, 0.5);
  z-index: 1;
  transition: background 0.35s ease;
}

.ft-card:hover .ft-overlay {
  background: rgba(42, 74, 71, 0.65);
}

/* Badge precio */
.ft-price-badge {
  position: absolute;
  top: 14px;
  right: 0;
  z-index: 3;
  background: var(--color-5);
  color: var(--color-1);
  padding: 6px 16px 6px 12px;
  border-radius: 4px 0 0 4px;
  font-weight: var(--bold);
  font-size: var(--h6-text);
  line-height: 1.3;
}

.ft-price-per {
  display: block;
  font-size: 10px;
  font-weight: var(--regular);
  opacity: 0.85;
}

.ft-price-consult {
  color: var(--color-1);
  font-size: 12px;
  font-weight: var(--bold);
  text-decoration: underline;
}

/* Cuerpo inferior */
.ft-body {
  position: relative;
  z-index: 2;
  padding: 0 20px 20px;
  color: var(--color-1);
}

/* Preview: siempre visible */
.ft-body-preview {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ft-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-family: "Posterama 2001 W04 Bold";
  text-transform: uppercase;
  line-height: 1.3;
}

.ft-title a {
  color: var(--color-1);
  transition: color 0.3s ease;
}

.ft-title a:hover {
  color: var(--color-4);
}

.ft-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 16px;
}

.ft-location {
  font-size: 14px;
}
.ft-meta-duration {
  font-weight: 400;
  text-transform: uppercase;
}

.ft-meta-item {
  font-size: 15px;
}

/* Info extra: oculta por defecto, visible en hover */
.ft-body-hover {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.45s ease,
    opacity 0.35s ease,
    margin 0.35s ease;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ft-card:hover .ft-body-hover {
  max-height: 200px;
  opacity: 1;
  margin-top: 14px;
}

.ft-places {
  font-size: 14px;
  margin-bottom: 6px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ft-type {
  font-size: 14px;
  margin-bottom: 14px;
}

/* Botones */
.ft-actions {
  display: flex;
  gap: 10px;
}

.ft-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  font-size: 16px;
  font-weight: var(--bold);
  text-align: center;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.ft-btn--outline {
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  color: var(--color-1);
}

.ft-btn--outline:hover {
  background: var(--color-4);
  color: var(--color-1);
}

/* Responsive */
@media (max-width: 992px) {
  .ft-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ft-grid {
    grid-template-columns: 1fr;
  }

  .ft-card {
    height: 380px;
  }
}

.item-tour-featured-page {
  width: 100%;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.item-tour-featured-page:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

/* Imagen */
.wrapper-img-details-tour-featured {
  position: relative;
  flex-shrink: 0;
}

a.img-item-tour-featured-page {
  display: block;
  line-height: 0;
  overflow: hidden;
}

a.img-item-tour-featured-page img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.item-tour-featured-page:hover a.img-item-tour-featured-page img {
  transform: scale(1.05);
}

/* Badge de precio */
.wrapper-price-item-tour-featured {
  position: absolute;
  top: 12px;
  right: 0;
  background: var(--color-5);
  padding: 6px 14px;
  border-radius: 4px 0 0 4px;
  color: var(--color-1);
  font-size: var(--h6-text);
  font-weight: var(--bold);
}

.wrapper-price-item-tour-featured span {
  font-size: var(--p-small-text);
  font-weight: var(--regular);
}

/* Etiquetas (duración, tipo, ubicación) */
.detail-item-img-tour-featured {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(42, 74, 71, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 6px;
  gap: 0;
}

.item-img-detail-tour-featured {
  color: var(--color-1);
  font-size: 11px;
  padding: 0 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.item-img-detail-tour-featured:first-child {
  border-left: none;
}

/* Contenido de la card */
.description-item-tour-featured-page {
  padding: 20px 18px 0;
  background: var(--color-1);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.description-item-tour-featured-page h3 a {
  display: block;
  color: var(--color-3);
  font-size: var(--h6-text);
  font-weight: var(--bold);
  text-transform: uppercase;
  line-height: var(--line-height-1);
  transition: color 0.3s ease;
  margin-bottom: 10px;
  padding: 0;
}

.description-item-tour-featured-page h3 a:hover {
  color: var(--color-4);
}

.description-item-tour-featured-page p {
  color: var(--color-3);
  font-size: var(--p-text);
  margin-bottom: 16px;
  line-height: var(--line-height-1);
  padding: 0;
  flex: 1;
}

/* Botones */
.buttoms-tour-featured-page {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border-top: 1px solid var(--color-7);
  margin-top: auto;
}

.buttoms-tour-featured-page a {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 10px;
  text-align: center;
  font-weight: var(--bold);
  color: var(--color-3);
  text-transform: capitalize;
  font-size: var(--p-text);
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.buttoms-tour-featured-page a:last-child {
  border-left: 1px solid var(--color-7);
}

.buttoms-tour-featured-page a:hover {
  background: var(--color-6);
  color: var(--color-1);
}

/* Responsive */
@media (max-width: 992px) {
  .wrapper-items-tours-featured-page {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .wrapper-items-tours-featured-page {
    grid-template-columns: 1fr;
  }
}
