/* === 데스크탑 '한 화면(무스크롤)' 컴팩트 모드 ===
   ※ 모든 페이지에서 header(상단), footer(하단)는 고정
   ※ 가운데는 배너(메인 이미지)만 보여서 스크롤이 안 생깁니다.
   ※ 모바일에는 적용하지 않고, 데스크탑(1024px↑)에만 적용됩니다.
*/

@media (min-width: 1024px) {
  :root {
    --header-h: 64px; /* 헤더 높이(사이트 헤더가 더 크면 늘려 주세요) */
    --footer-h: 96px; /* 푸터 높이(사이트 푸터가 더 크면 늘려 주세요) */
  }

  /* 컴팩트 모드 켜기: body에 .compact 있을 때만 동작 */
  body.compact,
  html.compact {
    height: 100%;
  }

  body.compact header {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
  }
  body.compact footer {
    position: fixed;
    z-index: 50;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-h);
  }

  /* 헤더/푸터가 고정되므로 배너가 그 사이를 꽉 채우도록 */
  body.compact .main-banner.hero,
  body.compact .main-banner {
    position: relative;
    margin-top: var(--header-h);
    margin-bottom: var(--footer-h);
  }

  /* 배너 이미지를 한 화면에 꽉 차게 */
  body.compact .main-banner.hero img,
  body.compact .main-banner img {
    width: 100%;
    height: calc(100vh - var(--header-h) - var(--footer-h));
    object-fit: cover; /* 여백 없이 꽉 차게 (일부 크롭됨) */
    display: block;
  }

  /* 배너 위 텍스트(타이틀/서브타이틀)는 중앙에 그대로 */
  body.compact .hero-overlay {
    inset: 0;
  }
  body.compact .hero-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 5%;
  }

  /* 본문은 데스크탑에선 숨김(=> 스크롤 자체가 사라짐) */
  body.compact main {
    display: none !important;
  }

  /* 리뷰/폼/갤러리 등 길어지는 요소는 안전하게 숨김(예비) */
  body.compact .tabs,
  body.compact .tab-panel,
  body.compact .reviews-wrap,
  body.compact .gallery-grid,
  body.compact .review-form,
  body.compact .filter-bar,
  body.compact .load-more,
  body.compact .columns-2,
  body.compact details.faq {
    display: none !important;
  }
}
/* === Review form tidy layout === */
.review-form {
  max-width: 1100px;
  margin: 24px auto 40px;
  background: #fff;
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}
.review-form h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 4px 0 18px;
}
.review-form .rf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.review-form .rf-field label {
  display: block;
  font-weight: 700;
  margin: 0 0 8px;
}
.review-form .rf-field input[type='text'],
.review-form .rf-field input[type='date'],
.review-form .rf-field input[type='file'],
.review-form .rf-field select,
.review-form .rf-field textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  background: #fafafa;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.review-form .rf-field textarea {
  background: #fff;
  min-height: 220px;
}
.review-form .rf-field input:focus,
.review-form .rf-field select:focus,
.review-form .rf-field textarea:focus {
  border-color: #86b7ff;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
  background: #fff;
}
.review-form .rf-field input[type='file']::-webkit-file-upload-button {
  padding: 6px 10px;
  margin-right: 10px;
  background: #f1f5f9;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
}
.review-form .rf-hint {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
}
.review-form .rf-span-2 {
  grid-column: 1/-1;
}
.review-form .rf-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}
.review-form .btn-primary {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
}
.review-form .btn-primary:hover {
  background: #1e4fd8;
}
.review-form .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-radius: 10px;
  text-decoration: none;
  background: #f3f4f6;
  color: #111827;
  font-weight: 700;
}
.review-form .btn-ghost:hover {
  background: #e5e7eb;
}
@media (max-width: 900px) {
  .review-form .rf-grid {
    grid-template-columns: 1fr;
  }
  .review-form .rf-actions {
    justify-content: stretch;
  }
  .review-form .btn-primary,
  .review-form .btn-ghost {
    flex: 1;
    justify-content: center;
    text-align: center;
  }
}
