/* ============================================
   청율산후조리원 - 시설안내 페이지 스타일
   Facilities Page Styles (matching .pen design)
============================================ */

/* ========== 메인 콘텐츠 오프셋 ========== */
main {
  padding-top: var(--header-height);
  background-color: #F7F6F3;
}

/* ========== PC 전용 줄바꿈 ========== */
.pc-br {
  display: inline;
}

/* ========== 인트로 섹션 ========== */
.facilities-intro {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.facilities-intro__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.facilities-intro__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(124, 144, 112, 0.8);
  z-index: 2;
}

.facilities-intro__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 80px 60px;
}

.facilities-intro__text {
  font-family: 'Plus Jakarta Sans', var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: #FFFFFF;
  line-height: 1.8;
  text-align: center;
  margin: 0;
}

/* ========== 시설 소개 섹션 ========== */
.facilities-section {
  background-color: #FFFFFF;
  padding: 100px 80px;
}

.facilities-section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.facility-row {
  display: flex;
  align-items: center;
  gap: 60px;
}

.facility-row--reverse {
  flex-direction: row-reverse;
}

.facility-row__image {
  flex-shrink: 0;
  width: 600px;
  height: 400px;
  border-radius: 0;
  overflow: hidden;
}

.facility-row__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facility-row__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.facility-row__label {
  font-family: 'Plus Jakarta Sans', var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: #7C9070;
  letter-spacing: 2px;
}

.facility-row__title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 600;
  color: #2D2D2D;
  letter-spacing: -0.5px;
  margin: 0;
}

.facility-row__desc {
  font-family: 'Plus Jakarta Sans', var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: #6B6B6B;
  line-height: 1.8;
  margin: 0;
}

/* ========== 갤러리 섹션 ========== */
.gallery-section {
  background-color: #F7F6F3;
  padding: 80px;
}

.gallery-section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* 갤러리 히어로 */
.gallery-hero {
  display: flex;
  gap: 48px;
}

.gallery-hero__image {
  flex-shrink: 0;
  width: 640px;
  height: 420px;
  border-radius: 0;
  overflow: hidden;
}

.gallery-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 20px;
}

.gallery-hero__title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  color: #2D2D2D;
  letter-spacing: -0.5px;
  margin: 0;
}

.gallery-hero__label {
  font-family: 'Plus Jakarta Sans', var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: #7C9070;
  letter-spacing: 2px;
}

.gallery-hero__desc {
  font-family: 'Plus Jakarta Sans', var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: #6B6B6B;
  line-height: 1.8;
  margin: 0;
}

/* 갤러리 썸네일 */
.gallery-thumbs {
  display: flex;
  gap: 24px;
}

.gallery-thumb {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-thumb__image {
  width: 100%;
  height: 180px;
  border-radius: 0;
  overflow: hidden;
}

.gallery-thumb__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-thumb:hover .gallery-thumb__image img {
  transform: scale(1.05);
}

.gallery-thumb.active {
  opacity: 0.7;
}

.gallery-thumb.active .gallery-thumb__image {
  box-shadow: 0 0 0 3px #7C9070;
}

.gallery-thumb__label {
  font-family: 'Plus Jakarta Sans', var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #6B6B6B;
}

.gallery-thumb__desc {
  font-family: 'Plus Jakarta Sans', var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: #9A9A9A;
  line-height: 1.5;
  margin: 0;
}

/* ========== 반응형 - 태블릿 ========== */
@media (max-width: 1024px) {
  .facilities-section {
    padding: 60px 40px;
  }

  .facilities-section__inner {
    gap: 60px;
  }

  .facility-row {
    flex-direction: column;
    gap: 32px;
  }

  .facility-row--reverse {
    flex-direction: column;
  }

  .facility-row__image {
    width: 100%;
    height: 350px;
    order: 1;
  }

  .facility-row__content {
    order: 2;
  }

  .facility-row__title {
    font-size: 28px;
  }

  .gallery-section {
    padding: 60px 40px;
  }

  .gallery-hero {
    flex-direction: column;
    gap: 32px;
  }

  .gallery-hero__image {
    width: 100%;
    height: 350px;
  }

  .gallery-thumbs {
    flex-wrap: wrap;
  }

  .gallery-thumb {
    flex: 1 1 calc(50% - 12px);
    min-width: 200px;
  }
}

/* ========== 반응형 - 모바일 ========== */
@media (max-width: 768px) {
  .pc-br {
    display: none;
  }

  .facilities-intro {
    height: 250px;
  }

  .facilities-intro__content {
    padding: 40px 20px;
  }

  .facilities-intro__text {
    font-size: 14px;
  }

  .facilities-intro__text br {
    display: none;
  }

  .facilities-section {
    padding: 40px 20px;
  }

  .facilities-section__inner {
    gap: 48px;
  }

  .facility-row__image {
    height: 250px;
  }

  .facility-row__title {
    font-size: 24px;
  }

  .facility-row__desc {
    font-size: 14px;
  }

  .facility-row__desc br {
    display: none;
  }

  .gallery-section {
    padding: 40px 20px;
  }

  .gallery-section__inner {
    gap: 40px;
  }

  .gallery-hero__image {
    height: 250px;
  }

  .gallery-hero__title {
    font-size: 24px;
  }

  .gallery-hero__desc br {
    display: none;
  }

  .gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: calc(100% + 8px);
    margin: -4px;
    padding: 4px;
    overflow: hidden;
  }

  .gallery-thumb {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  .gallery-thumb__image {
    height: 100px;
    width: 100%;
  }

  .gallery-thumb__label {
    font-size: 11px;
  }

  .gallery-thumb__desc {
    display: none;
  }
}
