/* ============================================
   El Nido Project Detail - Additional Styles
   Extends project-detail.css base styles
   ============================================ */

/* --- Set A: Description + Image/Text row --- */
.elnido-set-a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 80px 0 0;
}
.elnido-set-a__desc {
  max-width: 824px;
  padding: 0 40px;
  font-family: "Montserrat", sans-serif !important;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #666;
  text-align: justify;
}
.elnido-set-a__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 204px;
  width: 100%;
}
.elnido-set-a__img {
  width: 733px;
  height: 733px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.elnido-set-a__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.elnido-set-a__text {
  width: 613px;
  font-family: "Montserrat", sans-serif !important;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #666;
  text-align: justify;
}

/* --- Set B: Full-width showcase image --- */
.elnido-set-b {
  padding: 60px 204px;
}
.elnido-set-b__img {
  width: 100%;
  height: 720px;
  border-radius: 8px;
  overflow: hidden;
}
.elnido-set-b__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Room sections (Garden Room / Terrace Room) --- */
.elnido-room-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 0 204px 80px;
}
.elnido-room-section__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 631px;
  text-align: justify;
}
.elnido-room-section__title {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  color: #003057;
}
.elnido-room-section__desc {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #666;
}

/* Grid: 2-column (Garden Room) */
.elnido-room-section__grid--2col {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: 20px;
  width: 100%;
}
.elnido-room-section__grid--2col .elnido-room-section__item--portrait {
  width: calc((100% - 46px) / 2);
  aspect-ratio: 733 / 991;
  border-radius: 8px;
  overflow: hidden;
}

/* Grid: Complex (Terrace Room) — 2 + 1 full-width + 2 */
.elnido-room-section__grid--complex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: 40px;
  width: 100%;
}
.elnido-room-section__grid--complex .elnido-room-section__item--portrait {
  width: calc((100% - 46px) / 2);
  aspect-ratio: 733 / 991;
  border-radius: 8px;
  overflow: hidden;
}
.elnido-room-section__grid--complex .elnido-room-section__item--wide {
  width: 100%;
  aspect-ratio: 1512 / 743;
  border-radius: 8px;
  overflow: hidden;
}
.elnido-room-section__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   RWD
   ============================================ */

@media (max-width: 1440px) {
  .elnido-set-a__row {
    padding: 0 100px;
  }
  .elnido-set-a__img {
    width: 540px;
    height: 540px;
  }
  .elnido-set-a__text {
    width: 480px;
  }
  .elnido-set-b {
    padding: 60px 100px;
  }
  .elnido-set-b__img {
    height: 540px;
  }
  .elnido-room-section {
    padding: 0 100px 80px;
  }
  .elnido-room-section__copy {
    width: 560px;
  }
}

@media (max-width: 1024px) {
  .elnido-set-a {
    padding: 60px 0 0;
    gap: 32px;
  }
  .elnido-set-a__row {
    padding: 0 40px;
    flex-direction: column;
    gap: 32px;
  }
  .elnido-set-a__img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
  .elnido-set-a__text {
    width: 100%;
  }
  .elnido-set-b {
    padding: 40px 40px;
  }
  .elnido-set-b__img {
    height: 400px;
  }
  .elnido-room-section {
    padding: 0 40px 60px;
    gap: 32px;
  }
  .elnido-room-section__copy {
    width: 100%;
  }
  .elnido-room-section__grid--2col .elnido-room-section__item--portrait,
  .elnido-room-section__grid--complex .elnido-room-section__item--portrait {
    width: calc((100% - 24px) / 2);
  }
  .elnido-room-section__grid--2col {
    row-gap: 16px;
  }
  .elnido-room-section__grid--complex {
    row-gap: 24px;
  }
}

@media (max-width: 768px) {
  .elnido-set-a {
    padding: 24px 0 0;
    gap: 24px;
  }
  .elnido-set-a__desc {
    font-size: 14px;
    padding: 0 20px;
    text-align: left;
  }
  .elnido-set-a__row {
    padding: 0 20px;
  }
  .elnido-set-a__img {
    border-radius: 0;
  }
  .elnido-set-a__text {
    font-size: 14px;
    text-align: left;
  }
  .elnido-set-b {
    padding: 24px 20px;
  }
  .elnido-set-b__img {
    height: auto;
    aspect-ratio: 335 / 200;
    border-radius: 0;
  }
  .elnido-room-section {
    padding: 0 20px 40px;
    gap: 24px;
  }
  .elnido-room-section__title {
    font-size: 14px;
  }
  .elnido-room-section__desc {
    font-size: 14px;
    text-align: left;
  }
  .elnido-room-section__grid--2col,
  .elnido-room-section__grid--complex {
    flex-direction: column;
    row-gap: 12px;
  }
  .elnido-room-section__grid--2col .elnido-room-section__item--portrait,
  .elnido-room-section__grid--complex .elnido-room-section__item--portrait,
  .elnido-room-section__grid--complex .elnido-room-section__item--wide {
    width: 100%;
    aspect-ratio: 335 / 443;
    border-radius: 0;
  }
  .elnido-room-section__grid--complex .elnido-room-section__item--wide {
    aspect-ratio: 335 / 200;
  }
}
