/**
 * Lodges Showcase Component
 *
 * @package Annecy_Unik_Lodges
 */

.section-lodges-showcase {
  display: flex;
  flex-direction: column;
}

/* ========================================
   LODGE ITEMS
   ======================================== */

.lodges-showcase__item {
  display: flex;
  align-items: stretch;
  min-height: 914px;
}

.lodges-showcase__item--reversed {
  flex-direction: row-reverse;
}

/* Image half */
.lodges-showcase__item-image {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
}

.lodges-showcase__item-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content half */
.lodges-showcase__item-content {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 55px;
  padding: 80px;
}

.lodges-showcase__item-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.1;
}

.lodges-showcase__item-subtitle {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  line-height: 16px;
}

.lodges-showcase__item-desc {
  max-width: 512px;
}

.lodges-showcase__item-desc p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 300;
  line-height: 28px;
}

.lodges-showcase__item-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 10px 0;
  border-bottom: 2px solid;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  line-height: 16px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.lodges-showcase__item-cta:hover {
  opacity: 0.7;
  text-decoration: none;
}

/* ========================================
   VARIANTES TEXTE (clair / foncé)
   ======================================== */

.lodges-showcase__item--light .lodges-showcase__item-title,
.lodges-showcase__item--light .lodges-showcase__item-subtitle,
.lodges-showcase__item--light .lodges-showcase__item-desc p,
.lodges-showcase__item--light .lodges-showcase__item-cta {
  color: #fff;
}

.lodges-showcase__item--light .lodges-showcase__item-cta {
  border-color: #fff;
}

.lodges-showcase__item--dark .lodges-showcase__item-title,
.lodges-showcase__item--dark .lodges-showcase__item-subtitle,
.lodges-showcase__item--dark .lodges-showcase__item-desc p,
.lodges-showcase__item--dark .lodges-showcase__item-cta {
  color: var(--color-dark);
}

.lodges-showcase__item--dark .lodges-showcase__item-cta {
  border-color: var(--color-dark);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .lodges-showcase__intro-text {
    padding-right: 40px;
    gap: 35px;
  }

  .lodges-showcase__intro-media {
    height: 600px;
  }

  .lodges-showcase__item-content {
    padding: 50px 40px;
    gap: 35px;
  }

  .lodges-showcase__item-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .lodges-showcase__intro-container {
    flex-direction: column;
  }

  .lodges-showcase__intro-text {
    flex: 0 0 auto;
    width: 100%;
    padding: 50px 20px;
    gap: 30px;
  }

  .lodges-showcase__intro-media {
    flex: 0 0 auto;
    width: 100%;
    height: 300px;
  }

  .lodges-showcase__intro-title {
    font-size: 24px;
    line-height: 1.3;
  }

  .lodges-showcase__intro-desc p {
    font-size: 16px;
    line-height: 28px;
    max-width: 100%;
  }

  .lodges-showcase__item,
  .lodges-showcase__item--reversed {
    flex-direction: column;
  }

  .lodges-showcase__item-image {
    flex: 0 0 auto;
    width: 100%;
    height: 280px;
  }

  .lodges-showcase__item-content {
    flex: 0 0 auto;
    width: 100%;
    padding: 40px 20px;
    gap: 25px;
  }

  .lodges-showcase__item-title {
    font-size: 28px;
  }

  .lodges-showcase__item-desc p {
    font-size: 16px;
    line-height: 26px;
  }
}
