/* ==========================================================================
   독일마을 노이하우스 — 공통 스타일
   컨셉: 포토 퍼스트 + 스크롤 스토리텔링 (CLAUDE.md §5 참고)
   ========================================================================== */

:root {
  --color-bg: #faf5ec;
  --color-bg-alt: #f3ecdf;
  --color-text: #2b2620;
  --color-text-muted: #6b6258;
  --color-accent: #c1592f;
  --color-accent-dark: #a3481f;
  --color-line: #e6dcc8;
  --color-white: #ffffff;

  --font-serif: "Noto Serif KR", serif;
  --font-sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;

  --header-height: 64px;
  --radius: 14px;
  --shadow-soft: 0 8px 24px rgba(43, 38, 32, 0.08);

  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.6em;
}

h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
}

p {
  margin: 0 0 1em;
}

.section {
  padding: 72px 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading p {
  color: var(--color-text-muted);
  max-width: 32em;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 버튼 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-soft), background-color 0.3s var(--ease-soft);
}

.btn:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ---------- 헤더 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(250, 245, 236, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-line);
}

.site-logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40vw;
}

/* 전화번호는 데스크톱에서만 표시(모바일은 눌러 바로 거니까 번호를 보여줄 필요가 없음) */
.phone-mobile-label {
  display: none;
}

@media (max-width: 859px) {
  .site-logo {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.15;
    font-size: 0.82rem;
    max-width: 26vw;
    word-break: keep-all;
  }
  .phone-btn {
    padding: 8px 12px;
    font-size: 0.78rem;
  }
  .phone-number {
    display: none;
  }
  .phone-mobile-label {
    display: inline;
  }
  .header-actions {
    gap: 6px;
  }
  .reserve-btn-mobile {
    display: inline-flex;
  }
}

.site-nav {
  display: none;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

.site-nav a {
  position: relative;
  padding: 4px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-soft);
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-btn {
  padding: 9px 16px;
  font-size: 0.9rem;
}

.reserve-btn-mobile {
  padding: 8px 12px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.mobile-nav {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--color-bg);
  z-index: 99;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-soft), transform 0.3s var(--ease-soft);
  overflow-y: auto;
}

.mobile-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 24px 20px;
}

.mobile-nav li + li {
  border-top: 1px solid var(--color-line);
}

.mobile-nav a {
  display: block;
  padding: 18px 4px;
  font-size: 1.1rem;
  font-family: var(--font-serif);
}

@media (min-width: 860px) {
  .site-nav {
    display: block;
  }
  .nav-toggle {
    display: none;
  }
  .reserve-btn-mobile {
    display: none;
  }
  .mobile-nav {
    display: none;
  }
}

/* ---------- 히어로 ---------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--color-white);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.6s ease;
  animation: kenburns 18s ease-in-out infinite;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

@keyframes kenburns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(20, 16, 10, 0.15) 0%, rgba(20, 16, 10, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 24px 64px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem);
  color: var(--color-white);
  margin-bottom: 0.2em;
}

.hero-content p {
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  opacity: 0.92;
}

/* ---------- 한눈에 보기 ---------- */

.overview {
  background: var(--color-bg-alt);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}

@media (min-width: 640px) {
  .overview-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.overview-item .icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  color: var(--color-accent);
}

.overview-value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  display: block;
}

.overview-label {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ---------- 특징 소개 ---------- */

.feature {
  display: grid;
  gap: 24px;
  align-items: center;
  margin-bottom: 56px;
}

.feature:last-child {
  margin-bottom: 0;
}

.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.feature-media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s var(--ease-soft);
}

.feature-media:hover img {
  transform: scale(1.08);
}

.feature-text h3 {
  font-size: 1.4rem;
}

.feature-text p {
  color: var(--color-text-muted);
}

@media (min-width: 760px) {
  .feature {
    grid-template-columns: 1fr 1fr;
  }
  .feature:nth-child(even) .feature-media {
    order: 2;
  }
}

/* ---------- 객실 카드 그리드 ---------- */

.room-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 640px) {
  .room-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.room-card {
  display: block;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.room-card-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.room-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-soft);
}

.room-card:hover .room-card-media img {
  transform: scale(1.1);
}

.room-card-body {
  padding: 18px 20px 22px;
}

.room-card-body .floor {
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.room-card-body h3 {
  margin: 4px 0 6px;
  font-size: 1.2rem;
}

.room-card-body .capacity {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- 공지사항 미리보기 ---------- */

.notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 720px;
  margin: 0 auto;
}

.notice-list li {
  border-bottom: 1px solid var(--color-line);
}

.notice-list a {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 18px 4px;
}

.notice-date {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  flex-shrink: 0;
  width: 5.5em;
}

.notice-title {
  font-weight: 500;
}

.notice-badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 8px;
  vertical-align: middle;
}

.notice-more {
  text-align: center;
  margin-top: 28px;
}

/* ---------- 오시는 길 ---------- */

.location-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 760px) {
  .location-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* 카카오맵(다음 로드맵) 퍼가기 위젯 반응형 래퍼: 위젯 자체는 고정 픽셀(640x360)이라 CSS transform으로 축소 */
.map-embed {
  position: relative;
  aspect-ratio: 640 / 360;
  background: var(--color-bg-alt);
}

.map-embed .root_daum_roughmap {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
}

.location-info dl {
  margin: 0;
}

.location-info dt {
  font-weight: 600;
  color: var(--color-accent);
  font-size: 0.85rem;
  margin-top: 18px;
}

.location-info dt:first-child {
  margin-top: 0;
}

.location-info dd {
  margin: 4px 0 0;
}

/* ---------- 푸터 ---------- */

.site-footer {
  background: var(--color-text);
  color: #d8d0c2;
  padding: 48px 20px 32px;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.footer-inner p {
  margin: 0 0 6px;
}

.footer-name {
  font-family: var(--font-serif);
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.footer-sns {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.footer-sns a {
  color: #d8d0c2;
  transition: color 0.3s var(--ease-soft);
}

.footer-sns a:hover {
  color: var(--color-white);
}

.footer-sns svg {
  width: 22px;
  height: 22px;
}

/* ---------- 스크롤 리빌 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-soft), transform 0.6s var(--ease-soft);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger: 카드 그리드/리스트 안 자식 요소 */
.stagger > * {
  transition-delay: calc(var(--i, 0) * 0.15s);
}

/* ---------- 동작 줄이기 ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-slide {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .feature-media:hover img,
  .room-card:hover .room-card-media img {
    transform: none !important;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* JS 미동작 대비: no-js에서도 콘텐츠 항상 보임 (reveal 클래스는 JS가 붙이므로 기본은 보이는 상태) */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   내부 페이지 공통 (객실 상세 / 이용안내 / 오시는 길 / 독일마을 이야기 / 예약하기)
   ========================================================================== */

.page-hero {
  padding: 56px 20px 32px;
  text-align: center;
  background: var(--color-bg-alt);
}

.page-hero p {
  color: var(--color-text-muted);
  max-width: 34em;
  margin: 0 auto;
}

.breadcrumb-back {
  display: inline-block;
  margin-bottom: 40px;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- 객실 상세 ---------- */

.room-detail {
  padding: 64px 0;
  border-top: 1px solid var(--color-line);
}

.room-detail:first-of-type {
  border-top: none;
}

.room-detail-head {
  margin-bottom: 32px;
}

.room-detail-head .floor {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
}

/* 갤러리 */

.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 10;
  margin-bottom: 12px;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s var(--ease-soft);
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gallery-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  width: 76px;
  height: 56px;
  cursor: pointer;
  background: none;
  flex-shrink: 0;
}

.gallery-thumbs button.is-active {
  border-color: var(--color-accent);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 스펙 아이콘 그리드 */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0;
}

@media (min-width: 480px) {
  .spec-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.spec-item {
  text-align: center;
  padding: 16px 8px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
}

.spec-item .icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 8px;
  color: var(--color-accent);
}

.spec-item .spec-value {
  font-weight: 700;
  font-family: var(--font-serif);
}

.spec-item .spec-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* 구조 / 평면도 */

.floorplan-wrap {
  display: grid;
  gap: 24px;
  margin: 32px 0;
}

@media (min-width: 760px) {
  .floorplan-wrap {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.floorplan-svg {
  width: 100%;
  height: auto;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.floorplan-svg text {
  font-family: var(--font-sans);
  fill: var(--color-text);
}

.room-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.room-table th,
.room-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid var(--color-line);
}

.room-table th {
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.8rem;
}

.room-table td:first-child,
.room-table th:first-child {
  text-align: left;
  color: var(--color-text-muted);
}

/* 정책/유의사항 리스트 */

.policy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.policy-list li {
  padding-left: 1.4em;
  position: relative;
}

.policy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.room-cta {
  margin-top: 28px;
}

/* ---------- 독일마을 이야기 ---------- */

.story-section {
  max-width: 760px;
  margin: 0 auto 56px;
}

.story-section h3 {
  font-size: 1.1rem;
  color: var(--color-accent);
  margin-top: 2em;
}

.story-vignette {
  margin: 1.6em 0;
  padding-left: 18px;
  border-left: 3px solid var(--color-line);
}

.story-vignette h4 {
  font-family: var(--font-serif);
  margin: 0 0 0.4em;
  font-size: 1.05rem;
}

/* ---------- 예약하기 ---------- */

.reservation-embed {
  max-width: 720px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.reservation-embed iframe {
  width: 100%;
  height: 900px;
  border: 0;
  display: block;
}

@media (max-width: 600px) {
  .reservation-embed iframe {
    height: 1200px;
  }
}

/* ---------- 아이폰 스타일 뒤로가기 바 (외부 링크 안내 페이지용) ---------- */

.back-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 16px;
  background: rgba(250, 245, 236, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-line);
}

.back-bar a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 1rem;
}

.back-bar a svg {
  width: 20px;
  height: 20px;
}

.travel-cta {
  text-align: center;
  padding: 72px 20px;
  max-width: 560px;
  margin: 0 auto;
}

.travel-cta .icon-circle {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.travel-cta .icon-circle svg {
  width: 34px;
  height: 34px;
}

.travel-cta p {
  color: var(--color-text-muted);
}
