/* Estilos para el Shortcode de Hospedajes v2 con Slider */

.shortcode-hospedaje-v2 {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  box-sizing: border-box;
}

.lodging-slider {
  position: relative;
  height: 440px;
  min-height: 440px;
  max-height: 440px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  align-items: start;
  padding: 10px 0;
  overflow: hidden;
  box-sizing: border-box;
}

.lodging-slide {
  grid-area: 1 / 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  box-sizing: border-box;
  min-width: 0;
}

/* Base active state */
.lodging-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  z-index: 2;
}

/* Row Styles (Horizontal Fixed Height Desktop) */
.lodging-row {
  height: 200px;
  min-height: 200px;
  max-height: 200px;
  border-radius: 20px;
  overflow: hidden;
  background: #111622;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
  will-change: transform, opacity;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.lodging-card-link {
  text-decoration: none;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  color: inherit;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.lodging-row:hover {
  background: #161c2b;
  transform: scale(1.015);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.lodging-thumb {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.lodging-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.lodging-row:hover .lodging-thumb img {
  transform: scale(1.1);
}

.lodging-content {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.lodging-content h4 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
  color: #fff;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.lodging-meta-v2 {
  color: #F0C14B;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lodging-meta-v2 i {
  font-size: 0.9rem;
}

.lodging-content .description {
  color: #aeb7c5;
  font-size: 0.95rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

/* Animation triggers */
.lodging-slide.fade-out-left .lodging-row:nth-child(1) {
  animation: animOutLeftV2 1.2s cubic-bezier(0.45, 0, 0.15, 1) forwards !important;
}
.lodging-slide.fade-out-left .lodging-row:nth-child(2) {
  animation: animOutLeftV2 1.2s cubic-bezier(0.45, 0, 0.15, 1) 0.25s forwards !important;
}

.lodging-slide.fade-in-right .lodging-row:nth-child(1) {
  animation: animInRightV2 1.2s cubic-bezier(0.45, 0, 0.15, 1) forwards !important;
}
.lodging-slide.fade-in-right .lodging-row:nth-child(2) {
  animation: animInRightV2 1.2s cubic-bezier(0.45, 0, 0.15, 1) 0.25s forwards !important;
}

@keyframes animOutLeftV2 {
  0% { opacity: 1; transform: translateX(0); filter: blur(0px); }
  100% { opacity: 0; transform: translateX(-120px); filter: blur(4px); }
}

@keyframes animInRightV2 {
  0% { opacity: 0; transform: translateX(120px); filter: blur(4px); }
  100% { opacity: 1; transform: translateX(0); filter: blur(0px); }
}

@media (max-width: 991px) {
  .lodging-card-link {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}

/* Formato Vertical: NO controlar altura (dejar como estaba) */
@media (max-width: 850px) {
  .lodging-card-link {
    grid-template-columns: 1fr;
    height: auto;
  }
  .lodging-thumb {
    height: 200px;
  }
  .lodging-slider {
    min-height: 800px;
    height: auto;
    max-height: none;
  }
  .lodging-row {
    height: auto;
    min-height: 180px;
    max-height: none;
  }
  .lodging-content {
    height: auto;
  }
  .lodging-content .description {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

@media (max-width: 500px) {
  .lodging-thumb {
    height: 150px;
  }

  .lodging-slider {
    min-height: 500px;
    height: auto;
    max-height: none;
  }

  .lodging-content {
    padding: 1rem;
  }

  .lodging-content h4 {
    margin-bottom: 0rem;
  }

  .lodging-meta-v2 {
    margin-bottom: 0.2rem !important;
  }
}
