@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Gowun+Batang:wght@400;700&display=swap");
/* mellow mellow — 메인 스타일 */

@font-face {
  font-family: "Marong";
  src: url("../assets/fonts/marong-gothic.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0021-10FFFF; /* 마롱고딕의 띄어쓰기 폭이 0이라 띄어쓰기는 본문 폰트로 */
}

:root {
  --bg: #F6F5F2;
  --bg-2: #ECEAE5;
  --ink: #26241F;
  --muted: #5F5A52;
  --soft: #8D877D;
  --line: rgba(38, 36, 31, 0.14);

  /* 객실 포인트 색 */
  --p2-tint: #F7E4E0;
  --p2-accent: #C9675C;
  --p4-tint: #ECE6F3;
  --p4-accent: #7A64A8;

  --title: "Cormorant Garamond", "Gowun Batang", serif; /* 멜로우멘션: 우아한 명조 (영어 Cormorant Garamond, 한글 고운바탕) */
  --body: "IBM Plex Sans KR", "Apple SD Gothic Neo", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --hh: 108px; /* 상단 메뉴 높이 (JS가 실제 값으로 바꿔요) */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
.m-only { display: none; }
[hidden] { display: none !important; }
picture { display: contents; } /* 사진 크기별 선택용 틀: 화면 배치에는 영향 없음 */

/* ---------- 상단 메뉴 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(246, 245, 242, 0.97); /* 뒤 흐림(blur)은 움직이는 영상 위에서 버벅여서 뺐어요 */
  border-bottom: 1px solid var(--line);
}
.bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 64px; padding: 0 var(--gutter);
}
.logo { grid-column: 2; }
.logo img { height: 40px; width: auto; }
.book-icon {
  grid-column: 3; justify-self: end;
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-right: -10px;
  color: var(--ink); border-radius: 50%;
  transition: background .2s;
}
.book-icon:hover { background: rgba(38,36,31,.06); }
.book-icon svg { width: 30px; height: 30px; }
.menu {
  display: flex; gap: 44px;
  height: 44px; align-items: center;
  padding: 0 var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 18px; letter-spacing: 0.01em;
}
.menu a { position: relative; z-index: 0; white-space: nowrap; font-family: var(--title); color: var(--ink); }
/* 메뉴 크레파스 칠하기: 메뉴마다 고양이 그림에서 가져온 색 */
.menu a:nth-child(1) { --c: #EE9C92; } /* color studio · 분홍 벽 */
.menu a:nth-child(2) { --c: #C7B3E0; } /* mono studio · 보라색 계단 */
.menu a:nth-child(3) { --c: #FDE488; } /* 게스트 이야기 · 고양이 책 노랑 */
.menu a:nth-child(4) { --c: #9FD3F5; } /* 예약안내 · 스파 물 하늘(조금 진하게) */
.menu a::before {
  content: ""; position: absolute; z-index: -1; left: -6px; right: -6px; bottom: 1px; height: 17px;
  background: var(--c);
  -webkit-mask: url(../assets/img/crayon-mark.svg) center / 100% 100% no-repeat;
          mask: url(../assets/img/crayon-mark.svg) center / 100% 100% no-repeat;
  opacity: 0; transform: scaleX(.2); transform-origin: left center;
  transition: opacity .25s, transform .45s cubic-bezier(.3,.7,.2,1);
}
@media (hover: hover) { .menu a:hover::before { opacity: .6; transform: none; } }
.menu a[aria-current="page"]::before { opacity: 1; transform: none; }

/* ---------- 1. 첫 화면 ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  padding-top: var(--hh);
  overflow: hidden;
}
.hero-media {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  background: var(--bg-2);
}
.hero-video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.14);
  transition: opacity 1.8s ease, transform 3.2s cubic-bezier(.2,.7,.2,1);
}
.hero.is-ready .hero-video { opacity: 1; transform: scale(1); }

/* ---------- 공통 ---------- */
.label {
  margin: 0 0 18px;
  font-size: 12px; letter-spacing: 0.24em; color: var(--muted);
}
.section-head { text-align: center; padding: 0 var(--gutter); }
.section-title { font-family: var(--title); font-size: clamp(30px, 4vw, 48px); line-height: 1.25; }
.more {
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 14px; padding-bottom: 3px; border-bottom: 1px solid currentColor;
}
.more span { transition: transform .25s; }
.more:hover span { transform: translateX(4px); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 2. 소개 ---------- */
.about {
  text-align: center;
  padding: clamp(96px, 14vw, 180px) var(--gutter) clamp(96px, 12vw, 160px);
}
.about-title {
  font-family: var(--title);
  font-size: clamp(28px, 4.2vw, 50px); line-height: 1.3;
  margin-bottom: 36px; word-break: keep-all;
}
.about-desc { margin: 0 auto; max-width: 640px; color: var(--muted); font-size: 16px; line-height: 1.9; word-break: keep-all; }
/* 고양이 그림 3개: 모두 같은 크기의 정사각형 틀, 같은 위쪽 간격 */
.about-cat, .cat-deco {
  width: clamp(120px, 12.8vw, 160px); aspect-ratio: 1 / 1;
  margin: clamp(48px, 6vw, 80px) auto 0;
}
.about-cat img, .cat-deco img { width: 100%; height: 100%; object-fit: contain; }

/* 고양이 그림: 화면에 들어오면 서서히 나타나기 */
.cat-anim { opacity: 0; }
.cat-anim.is-in { animation: cat-fade 1.8s ease forwards; }
@keyframes cat-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 3. 객실 카드 (쌓임) ---------- */
.rooms { padding-bottom: clamp(80px, 10vw, 140px); }
.rooms .section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.stack { padding: 0 var(--gutter); }
.room-card {
  position: sticky; top: calc(var(--hh) + 20px);
  display: grid; grid-template-columns: 38% 1fr;
  height: min(calc(100svh - var(--hh) - 40px), 760px);
  margin-bottom: 28px;
  overflow: hidden;
  transform-origin: 50% 0;
  will-change: transform;
}
.room-card:last-child { margin-bottom: 0; }
.room-p2 { background: var(--p2-tint); --accent: var(--p2-accent); }
.room-p4 { background: var(--p4-tint); --accent: var(--p4-accent); }
.room-text {
  display: flex; flex-direction: column;
  padding: clamp(28px, 3.4vw, 52px);
}
.room-no { font-size: 13px; color: var(--accent); letter-spacing: .08em; }
.room-name { font-family: var(--title); font-size: clamp(40px, 5.6vw, 76px); line-height: 1.1; margin: 18px 0 14px; }
.room-meta { margin: 0; font-size: 14px; color: var(--muted); }
.room-line { margin: 28px 0 0; font-size: 17px; }
.room-tags { margin: 6px 0 0; font-size: 13px; color: var(--soft); }
.room-text .more { margin-top: auto; align-self: flex-start; }
.room-img { overflow: hidden; }
.room-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.room-card:hover .room-img img { transform: scale(1.03); }
.room-card .room-text, .room-card .room-img { transition: opacity .2s linear; }

/* ---------- 4. 사진 축소 연출 ---------- */
.shrink { position: relative; height: 280vh; --p: 0; --q: 0; }
.shrink-stage {
  position: sticky; top: var(--hh);
  height: calc(100vh - var(--hh)); height: calc(100svh - var(--hh));
  overflow: hidden;
}
.gallery-track { position: absolute; inset: 0; }
.shrink .center {
  position: absolute; z-index: 2;
  left: 50%; top: 50%;
  width: var(--cw, 100%); height: var(--ch, 100%);
  transform: translate(-50%, -50%);
}
.shrink .center img { width: 100%; height: 100%; object-fit: cover; }
.shrink .side {
  position: absolute; z-index: 1;
  opacity: var(--q);
  transform: translateY(calc((1 - var(--q)) * 60px));
}
.shrink .side img { width: 100%; height: 100%; object-fit: cover; }
.side.s1 { left: 3%;  top: 4%;    width: 14vw; aspect-ratio: 3/4; }
.side.s2 { right: 4%; top: 2%;    width: 12vw; aspect-ratio: 3/4; }
.side.s3 { left: 5%;  bottom: 10%; width: 11vw; aspect-ratio: 3/4; }
.side.s4 { right: 3%; bottom: 14%; width: 13vw; aspect-ratio: 3/4; }
.shrink-title {
  position: absolute; left: 0; right: 0; z-index: 3;
  top: calc(50% + var(--ch-end, 22vh) / 2 + 22px);
  text-align: center;
  font-family: var(--title); font-size: clamp(26px, 3.2vw, 42px); line-height: 1.25;
  opacity: var(--q); transform: translateY(calc((1 - var(--q)) * 20px));
}

/* ---------- 5. 게스트의 이야기 ---------- */
.stories { padding: clamp(100px, 12vw, 170px) 0; text-align: center; }
.stories .section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.story-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 880px; margin: 0 auto;
  padding: 0 var(--gutter); text-align: left;
}
.story:nth-child(2) { transition-delay: .12s; }
.story:nth-child(3) { transition-delay: .24s; }
.story figure { aspect-ratio: 1/1; overflow: hidden; margin-bottom: 14px; background: var(--bg-2); }
.story figure img { width: 100%; height: 100%; object-fit: cover; }
.story p {
  margin: 8px 0 0; font-size: 13px; line-height: 1.65; color: var(--muted); word-break: keep-all;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.story .story-meta { font-size: 12px; color: var(--soft); }
.sample {
  display: inline-block; font-size: 11px; padding: 2px 8px;
  border: 1px solid var(--line); border-radius: 99px; color: var(--soft);
}
.center-link { margin-top: 48px; }

/* ---------- 6. 예약 ---------- */
.cta {
  position: relative; overflow: hidden;
  min-height: 72svh; display: grid; place-items: center;
  text-align: center; color: #fff;
}
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: rgba(28, 26, 22, 0.42); }
.cta-inner { position: relative; padding: 80px var(--gutter); }
.cta h2 { font-family: var(--title); font-size: clamp(36px, 5vw, 64px); line-height: 1.15; }
.cta p { margin: 14px 0 34px; font-size: 15px; opacity: .9; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 99px;
  background: var(--bg); color: var(--ink); font-size: 15px;
  transition: transform .25s, background .25s;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); background: #fff; }

/* ---------- 하단 ---------- */
.site-footer {
  background: var(--bg-2);
  padding: 48px var(--gutter) 32px;
  font-size: 13px; color: var(--muted);
}
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-mark { width: 64px; height: 64px; }
.foot-logo { height: 36px; width: auto; }
.foot-menu { display: flex; gap: 32px; color: var(--ink); }
.foot-info { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-info span { margin-right: 10px; color: var(--soft); }
.copy { margin: 24px 0 0; font-size: 12px; color: var(--soft); }

/* ---------- 지금 보고 있는 메뉴 ---------- */

/* ---------- 두 개의 공간 (rooms.html) ---------- */
body[data-room="color"] { --accent: var(--p2-accent); --tint: var(--p2-tint); }
body[data-room="mono"] { --accent: var(--p4-accent); --tint: var(--p4-tint); }
.rooms-page { padding-top: calc(var(--hh) + clamp(40px, 6vw, 80px)); padding-bottom: clamp(56px, 7vw, 96px); }
.rd-top {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  padding: 0 var(--gutter); margin-bottom: clamp(24px, 3vw, 36px);
}
.rd-title { font-family: var(--title); font-size: clamp(48px, 7vw, 96px); line-height: 1; }
.rd-title span { font-family: var(--body); font-size: 16px; color: var(--muted); margin-left: 10px; letter-spacing: 0; }
.rd-tabs { display: flex; gap: 28px; font-family: var(--title); font-size: 17px; }
.rd-tabs a { padding-bottom: 6px; border-bottom: 2px solid transparent; color: var(--soft); transition: color .2s, border-color .2s; }
.rd-tabs a:hover { color: var(--ink); }
.rd-tabs a[aria-current] { color: var(--ink); border-color: var(--accent); }
.rd-tabs a span { font-family: var(--body); font-size: 12px; margin-right: 4px; }

.rd-hero { margin: 0 var(--gutter); aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.rd-hero img { width: 100%; height: 100%; object-fit: cover; animation: rd-in 1.4s ease; }
@keyframes rd-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

.rd-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px);
  padding: clamp(56px, 8vw, 112px) var(--gutter);
}
.rd-kicker { margin: 0 0 18px; font-size: 13px; letter-spacing: .06em; color: var(--accent); }
.rd-copy h2 { font-family: var(--title); font-size: clamp(30px, 3.6vw, 46px); line-height: 1.3; margin-bottom: 24px; }
.rd-desc { margin: 0; max-width: 460px; color: var(--muted); line-height: 1.9; word-break: keep-all; }
.rd-spec dl { margin: 0; border-top: 1px solid var(--line); }
.rd-spec dl div {
  display: grid; grid-template-columns: 130px 1fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.rd-spec dt { color: var(--soft); }
.rd-spec dd { margin: 0; text-align: right; word-break: keep-all; }
.rd-note { margin: 18px 0 22px; font-size: 13px; color: var(--soft); }
/* 예약하기: 버튼 틀 없이 마롱체 글씨 + 메뉴와 같은 크레파스 칠하기 */
.crayon-link {
  position: relative; z-index: 0; display: inline-flex; align-items: center; gap: 10px;
  padding: 2px; font-family: var(--title); font-size: 22px; color: var(--ink);
}
.room-color .crayon-link { --c: #EE9C92; }
.room-mono .crayon-link { --c: #C7B3E0; }
.crayon-link svg { width: 24px; height: 24px; flex: none; }
.crayon-link::before {
  content: ""; position: absolute; z-index: -1; left: -8px; right: -8px; bottom: 4px; height: 22px;
  background: var(--c);
  -webkit-mask: url(../assets/img/crayon-mark.svg) center / 100% 100% no-repeat;
          mask: url(../assets/img/crayon-mark.svg) center / 100% 100% no-repeat;
}
.crayon-link .arrow { transition: transform .25s; }
.crayon-link:hover .arrow { transform: translateX(5px); }

.rd-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 2vw, 28px); padding: 0 var(--gutter); }
.rd-col { display: flex; flex-direction: column; gap: clamp(10px, 2vw, 28px); }
.rd-col:nth-child(2) { margin-top: clamp(64px, 12vw, 180px); }
.rd-col img { width: 100%; height: auto; }

.rd-next {
  display: block; text-align: center;
  margin: clamp(80px, 10vw, 140px) var(--gutter) 0;
  padding: clamp(40px, 6vw, 72px) 24px;
  transition: transform .3s;
}
.room-color .rd-next { background: var(--p4-tint); }
.room-mono .rd-next { background: var(--p2-tint); }
.rd-next:hover { transform: translateY(-3px); }
.rd-next span { font-size: 13px; color: var(--muted); }
.rd-next strong { display: block; margin: 10px 0 6px; font-family: var(--title); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1.1; }
.rd-next em { font-style: normal; font-size: 15px; }

/* 객실 페이지: 설명 → 예약하러 가기 → 사진 → 정보 표 */
.rd-intro { grid-template-columns: minmax(0, 720px); }
.rd-copy .crayon-link { margin-top: 30px; }
.rd-spec-after { max-width: 760px; padding: clamp(56px, 7vw, 96px) var(--gutter) 0; }
/* 고양이 예약 링크 */
.rd-guide { margin-top: clamp(80px, 10vw, 140px); }
.rd-guide .section-title { text-align: center; margin-bottom: clamp(32px, 4vw, 48px); }
.rd-guide-refund { padding: 0 var(--gutter); margin-bottom: clamp(48px, 6vw, 80px); }
.rd-guide-refund .rv-refund { max-width: 620px; margin: 0 auto; }
.rd-book { display: block; width: max-content; margin: 0 auto; text-align: center; }
.rd-book .cat-deco { margin-bottom: 16px; }
.rd-book-text { position: relative; z-index: 0; font-family: var(--title); font-size: 22px; color: var(--ink); padding: 0 4px; }
.rd-book-text::before {
  content: ""; position: absolute; z-index: -1; left: -8px; right: -8px; bottom: 2px; height: 20px; background: var(--c, #FDE488);
  -webkit-mask: url(../assets/img/crayon-mark.svg) center / 100% 100% no-repeat;
          mask: url(../assets/img/crayon-mark.svg) center / 100% 100% no-repeat;
}
body[data-room="color"] .rd-book-text { --c: #EE9C92; }
body[data-room="mono"] .rd-book-text { --c: #C7B3E0; }
.page-stories .rd-book-text { --c: #FDE488; }     /* 게스트 이야기: 노랑 */
.page-reservation .rd-book-text { --c: #9FD3F5; } /* 예약안내: 하늘 */
.rd-book:hover .cat-deco img { transform: rotate(-4deg) scale(1.04); }
.rd-book .cat-deco img { transition: transform .3s; }

/* 사진 크게 보기 */
.lightbox { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 19, 16, .94); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox { opacity: 0; transition: opacity .3s ease; }
.lightbox.show { opacity: 1; }
.lightbox img { max-width: calc(100vw - 120px); max-height: calc(100svh - 120px); object-fit: contain; opacity: 0; transform: scale(.98); transition: opacity .3s ease, transform .3s ease; }
.lightbox img.on { opacity: 1; transform: none; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; margin: 0; text-align: center; font-size: 13px; opacity: .8; }

/* ---------- 예약안내 (reservation.html) ---------- */
.rv-page { padding-top: calc(var(--hh) + clamp(40px, 6vw, 80px)); padding-bottom: clamp(56px, 7vw, 96px); }
.rv-top { padding: 0 var(--gutter); margin-bottom: clamp(40px, 6vw, 72px); }
.rv-lead { max-width: 560px; margin: 24px 0 0; font-size: 14px; color: var(--muted); word-break: keep-all; }
.rv-page .crayon-link { --c: #9FD3F5; margin-top: 28px; }

.rv-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px);
  padding: 0 var(--gutter) clamp(64px, 8vw, 112px);
}
.rv-table { margin: 0; border-top: 1px solid var(--line); }
.rv-table div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rv-table dt { color: var(--soft); }
.rv-table dd { margin: 0; text-align: right; word-break: keep-all; }
.rv-table a { border-bottom: 1px solid currentColor; }

.rv-refund { background: #fff; border: 1px solid var(--line); padding: clamp(24px, 3vw, 36px); align-self: start; }
.rv-refund h2, .rv-block h2 { font-family: var(--title); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.3; }
.rv-refund > p { margin: 10px 0 20px; font-size: 13px; color: var(--muted); word-break: keep-all; }
.rv-refund dl { margin: 0; }
.rv-refund dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px dashed var(--line); font-size: 14px; }
.rv-refund dt { color: var(--muted); }
.rv-refund dd { margin: 0; font-family: var(--title); font-size: 16px; }
.rv-refund .no-refund dd { color: #C2452D; }

.rv-blocks { padding: 0 var(--gutter); }
.rv-block {
  display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: clamp(24px, 5vw, 80px);
  padding: clamp(36px, 4vw, 56px) 0; border-top: 1px solid var(--line);
}
.rv-block h2 { position: sticky; top: calc(var(--hh) + 24px); align-self: start; }
.rv-list { list-style: none; margin: 0; padding: 0; }
/* 자주 묻는 질문: 누르면 펼쳐져요 */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-size: 15px; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--soft); font-size: 18px; line-height: 1.4; transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 16px; font-size: 14px; line-height: 1.85; color: var(--muted); word-break: keep-all; }
.faq-list .faq-item:first-child summary { padding-top: 0; }
.rv-list li { display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rv-list li:first-child { padding-top: 0; }
.rv-list .no { font-size: 12px; color: var(--soft); padding-top: 4px; }
.rv-list p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--muted); word-break: keep-all; }
.rv-list strong { color: var(--ink); font-weight: 500; }

/* ---------- 게스트 이야기 (stories.html) ---------- */
.st-page { padding-top: calc(var(--hh) + clamp(40px, 6vw, 80px)); padding-bottom: clamp(56px, 7vw, 96px); }
.st-page .rv-top { margin-bottom: clamp(28px, 4vw, 48px); }
.st-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 0 var(--gutter); margin-bottom: 28px; }
.st-filter { display: flex; gap: 22px; }
.st-filter button {
  position: relative; z-index: 0; border: 0; background: none; padding: 2px; cursor: pointer;
  font-family: var(--title); font-size: 18px; color: var(--soft);
}
.st-filter button[aria-pressed="true"] { color: var(--ink); }
.st-filter button[aria-pressed="true"]::before {
  content: ""; position: absolute; z-index: -1; left: -6px; right: -6px; bottom: 1px; height: 16px; background: #FDE488;
  -webkit-mask: url(../assets/img/crayon-mark.svg) center / 100% 100% no-repeat;
          mask: url(../assets/img/crayon-mark.svg) center / 100% 100% no-repeat;
}
.st-adminbar { display: flex; gap: 8px; }
.st-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  padding: 9px 16px; border-radius: 99px; font: inherit; font-size: 14px;
}
.st-btn.ghost { background: transparent; color: var(--ink); }
.st-btn:disabled { opacity: .5; cursor: wait; }

.st-grid { columns: 3 260px; column-gap: 20px; padding: 0 var(--gutter); }
.st-card { position: relative; break-inside: avoid; margin-bottom: 20px; background: #fff; border: 1px solid var(--line); }
.st-open { display: block; width: 100%; padding: 0 0 18px; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.st-open figure { position: relative; margin-bottom: 16px; background: var(--bg-2); }
.st-open figure img { width: 100%; height: auto; }
.st-count { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 99px; background: rgba(38,36,31,.7); color: #fff; font-size: 12px; }
.st-open .sample { margin: 0 18px 8px; }
.st-text {
  margin: 0 18px; font-size: 14px; line-height: 1.8; color: var(--ink); white-space: pre-line; word-break: keep-all;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.st-meta { margin: 12px 18px 0; font-size: 12px; color: var(--soft); }
.st-card-admin { display: flex; gap: 6px; padding: 0 18px 16px; }
.st-mini { border: 1px solid var(--line); background: var(--bg); border-radius: 99px; padding: 4px 12px; font: inherit; font-size: 12px; cursor: pointer; }
.st-mini.danger { color: #C2452D; }
.st-empty { padding: 40px var(--gutter); text-align: center; color: var(--soft); }
.st-card.st-more { display: none; } /* 서버가 미리 넣은 11번째부터: 화면에선 숨기고 검색 로봇만 읽음 */
.st-pager { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 18px var(--gutter) 8px; }
.st-pg {
  position: relative; z-index: 0; min-width: 36px; height: 36px; padding: 0 6px; border: 0; background: none; cursor: pointer;
  font-family: var(--title); font-size: 17px; color: var(--soft);
}
.st-pg[aria-current="page"] { color: var(--ink); }
.st-pg[aria-current="page"]::before {
  content: ""; position: absolute; z-index: -1; left: 4px; right: 4px; bottom: 7px; height: 14px; background: #FDE488;
  -webkit-mask: url(../assets/img/crayon-mark.svg) center / 100% 100% no-repeat;
          mask: url(../assets/img/crayon-mark.svg) center / 100% 100% no-repeat;
}
.st-arrow { font-size: 22px; color: var(--ink); }
.st-dots { color: var(--soft); font-size: 14px; padding: 0 2px; }
.st-arrow:disabled { opacity: .25; cursor: default; }
.st-admin-link { margin-left: 10px; border: 0; background: none; padding: 0; font: inherit; color: var(--soft); text-decoration: underline; cursor: pointer; }

.st-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100svh - 40px); padding: 0; border: 0; background: var(--bg); color: var(--ink); overflow: auto; }
.st-dialog::backdrop { background: rgba(28, 26, 22, .55); }
.st-dialog { position: fixed; }
.st-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(246,245,242,.92); box-shadow: 0 2px 10px rgba(0,0,0,.12); font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink); }
.st-view-photos { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
.st-view-photos img { flex: 0 0 86%; max-height: 60svh; object-fit: cover; scroll-snap-align: start; }
.st-view-photos img:only-child { flex-basis: 100%; }
.st-view-text { margin: 24px 24px 0; font-size: 15px; line-height: 1.9; white-space: pre-line; word-break: keep-all; }
.st-view .st-meta { margin: 16px 24px 24px; }

.st-form form { display: grid; gap: 16px; padding: 28px 24px 26px; }
.st-form h2 { font-family: var(--title); font-size: 24px; }
.st-form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.st-form input, .st-form select, .st-form textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%;
}
.st-form textarea { resize: vertical; line-height: 1.7; }
.st-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.st-photos-field { display: grid; gap: 10px; font-size: 13px; color: var(--muted); }
.st-photo-list { display: flex; flex-wrap: wrap; gap: 8px; }
.st-photo-list li { position: relative; width: 84px; height: 84px; }
.st-photo-list img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.st-photo-x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }
.st-first { position: absolute; left: 4px; bottom: 4px; padding: 0 6px; border-radius: 99px; background: rgba(255,255,255,.9); font-size: 11px; color: var(--ink); }
.st-file { justify-self: start; display: inline-flex !important; color: var(--ink) !important; font-size: 14px !important; }
.st-hint { margin: 0; font-size: 12px; color: var(--soft); }
.st-error { margin: 0; font-size: 13px; color: #C2452D; }
.st-actions { display: flex; justify-content: flex-end; }

/* ---------- 모바일 ---------- */
@media (max-width: 760px) {
  body { font-size: 14px; }
  .m-only { display: inline; }
  .bar { height: 56px; }
  .logo img { height: 27px; } /* 모바일은 PC 로고의 약 80% 크기 */
  .menu {
    display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between;
    gap: 0; height: 46px; font-size: clamp(14px, 4.3vw, 17px); letter-spacing: 0;
  }
  .menu a::before { left: -4px; right: -4px; bottom: 1px; height: 15px; }

  .rd-top { flex-direction: column; align-items: flex-start; gap: 18px; }
  .lightbox img { max-width: 100vw; max-height: calc(100svh - 140px); }
  .lb-prev, .lb-next { top: auto !important; bottom: 12px; transform: none !important; }
  .rd-hero { aspect-ratio: 4 / 3; }
  .rd-intro { grid-template-columns: 1fr; }
  .rd-spec dl div { grid-template-columns: 104px 1fr; font-size: 13px; }
  .rv-intro { grid-template-columns: 1fr; }
  .rv-table div { grid-template-columns: 104px 1fr; font-size: 13px; }
  .rv-block { grid-template-columns: 1fr; gap: 18px; }
  .rv-block h2 { position: static; }
  .rv-list p { font-size: 14px; }
  .st-grid { columns: 2; column-gap: 10px; }
  .st-card { margin-bottom: 10px; }
  .st-open { padding-bottom: 12px; }
  .st-open figure { margin-bottom: 10px; }
  .st-text { margin: 0 12px; font-size: 12.5px; line-height: 1.65; -webkit-line-clamp: 4; }
  .st-meta { margin: 8px 12px 0; font-size: 11px; }
  .st-open .sample { margin: 0 12px 6px; }
  .st-card-admin { padding: 0 12px 12px; }
  .st-filter { gap: 16px; }
  .st-filter button { font-size: 16px; }
  .st-row { grid-template-columns: 1fr; }

  .hero { height: 100vh; height: 100svh; } /* 핸드폰: 사진이 화면 아래 끝까지 */
  .hero-video { object-position: 50% center; } /* 세로 화면: 욕조와 수전이 가운데 */
  .about-desc br { display: none; }

  .room-card {
    grid-template-columns: 1fr; grid-template-rows: 1fr auto;
    height: calc(100svh - var(--hh) - 32px);
    top: calc(var(--hh) + 16px);
  }
  .room-img { order: -1; }
  .room-text { padding: 24px 22px 26px; }
  .room-name { margin: 8px 0 8px; }
  .room-line { margin-top: 14px; font-size: 15px; }
  .room-text .more { margin-top: 18px; }

  /* 모바일 사진 갤러리: 애니메이션 없이 옆으로 넘기기 */
  .shrink { height: auto; padding: 72px 0 0; }
  .shrink-stage { position: static; height: auto; overflow: visible; display: flex; flex-direction: column-reverse; gap: 24px; }
  .gallery-track {
    position: static; display: flex; gap: 10px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 0 var(--gutter); scroll-padding-inline: var(--gutter);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .gallery-track::-webkit-scrollbar { display: none; }
  .shrink .center, .shrink .side {
    position: static; flex: 0 0 74vw; aspect-ratio: 3/4;
    width: auto; height: auto; transform: none; opacity: 1;
    scroll-snap-align: start;
  }
  .shrink-title { position: static; opacity: 1; transform: none; font-size: 26px; }
  .m-only { display: none; }

  .story-list { gap: 10px; }
  .story figure { margin-bottom: 8px; }
  .story p { font-size: 11.5px; line-height: 1.55; margin-top: 6px; }
  .story .story-meta { font-size: 10.5px; }
  .sample { font-size: 10px; padding: 1px 6px; }

  .foot-top { flex-direction: column; align-items: flex-start; }
  .foot-menu { flex-wrap: wrap; gap: 10px 22px; }
  .foot-info { flex-direction: column; }
}

/* 움직임 줄이기 설정을 켠 사람에게는 애니메이션 없이 */
@media (prefers-reduced-motion: reduce) {
  .cat-anim { opacity: 1 !important; animation: none !important; }
  .reveal, .hero-video { opacity: 1 !important; transform: none !important; transition: none !important; }
  .shrink { height: auto; }
  .shrink-stage { position: relative; top: 0; }
  .shrink .center { width: 32vw; height: calc(32vw * 4 / 3); }
  .shrink .side, .shrink-title { opacity: 1; transform: none; }
}

/* 멜로우멘션: 정사각형 Mell 로고 */
.foot-logo-mell { height: 64px; }
.logo img { height: 46px; }
@media (max-width: 760px) { .logo img { height: 38px; } }
/* 영어 메뉴는 조금 작게 해야 모바일 한 줄에 들어가요 */
@media (max-width: 760px) { .menu { font-size: clamp(12px, 3.5vw, 15px); padding: 0 12px; } }
/* Mell 로고는 흰 바탕을 투명하게 만든 파일을 써요 */

/* ---------- 멜로우멘션 글씨: 우아한 명조 ---------- */
.menu { font-size: 19px; }
.menu a { font-weight: 500; letter-spacing: .02em; }
.menu a::before { bottom: 5px; height: 14px; }            /* 명조는 글씨 아래 여백이 커서 크레파스를 조금 올려요 */
.crayon-link::before { bottom: 8px; }
.rd-book-text::before { bottom: 6px; }
.st-filter button[aria-pressed="true"]::before { bottom: 5px; }
.shrink-title { font-style: italic; font-size: clamp(30px, 3.8vw, 50px); }
.room-name { font-weight: 400; letter-spacing: -.005em; }
.rd-title, .cta h2 { font-weight: 400; }
.about-title, .section-title, .rd-copy h2, .rv-refund h2, .rv-block h2, .st-form h2 { letter-spacing: -.01em; }
.crayon-link, .rd-book-text, .st-filter button { font-weight: 500; }
@media (max-width: 760px) {
  .menu { font-size: clamp(14px, 4.1vw, 17px); }
  .shrink-title { font-size: 30px; }
}

/* 하단 카카오톡 문의: 노란 동그라미 아이콘 + 밑줄 글씨 */
.kakao-link { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.kakao-link .kk-dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #FEE500; flex: none; }
.kakao-link .kk-dot svg { width: 15px; height: 15px; }
.kakao-link span { border-bottom: 1px solid currentColor; }

/* 하단: MELLOW FAMILY (두 숙소) + mellow l.a.b 제작 표시 */
.family { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
.fam-label { font-size: 11px; letter-spacing: .22em; color: var(--soft); margin-right: 6px; }
.fam-item { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.fam-item img { width: 30px; height: 30px; object-fit: contain; }
.fam-item.is-current { color: var(--ink); font-weight: 500; }
a.fam-item:hover { color: var(--ink); }
.fam-dot { color: var(--soft); }
.make-ask { border-bottom: 1px solid currentColor; color: var(--muted); }
.make-ask:hover { color: var(--ink); }
@media (max-width: 760px) { .fam-label { width: 100%; } }

/* MELLOW FAMILY: 각 숙소 이름은 그 숙소 홈페이지의 글씨로 */
.fam-label { font-family: var(--title); font-size: 14px; letter-spacing: .14em; color: var(--muted); }
.fam-item img.fam-word { width: auto; height: 26px; object-fit: contain; }
.fam-mansion { font-family: "Cormorant Garamond", serif; font-size: 18px; font-weight: 500; letter-spacing: .01em; }

/* 상단: 로고 대신 mellow mansion 글씨 (명조) */
.logo-word { font-family: var(--title); font-size: 30px; font-weight: 500; letter-spacing: .02em; color: var(--ink); white-space: nowrap; }
@media (max-width: 760px) { .logo-word { font-size: 24px; } }
/* 메인 소개 아래 Mell 로고 */
.about-mell { aspect-ratio: auto; width: clamp(110px, 11vw, 140px); }
.about-mell img { height: auto; }
/* 하단: Mell 로고 + 한글 이름 */
.foot-name { font-family: "Gowun Batang", serif; font-size: 20px; color: var(--ink); }

/* 상단 왼쪽 Mell 로고 */
.logo-left { grid-column: 1; grid-row: 1; justify-self: start; display: flex; align-items: center; }
.logo-left img { height: 34px; width: auto; }
.bar .logo { grid-row: 1; }
.bar .book-icon { grid-row: 1; }
@media (max-width: 760px) { .logo-left img { height: 28px; } }

/* 상단 왼쪽 Mell 로고: B안 (핸드폰 44px / PC 54px), 막대 높이 62 / 72px */
.logo-left img { height: 54px; }
.bar { height: 72px; }
@media (max-width: 760px) { .logo-left img { height: 44px; } .bar { height: 62px; } }

/* 스크롤 움직임을 그래픽 처리로 부드럽게 */
.hero-media { will-change: transform; transform: translateZ(0); }

/* 터치 화면: 첫 화면 사진은 스크롤과 함께 그대로 올라가요 (떨림 방지) */
@media (hover: none), (pointer: coarse) {
  .hero-media { will-change: auto; transform: none !important; }
}


/* ---------- 오시는 길 (메인) ---------- */
.location { padding: clamp(80px, 10vw, 140px) var(--gutter); }
.location .section-head { margin-bottom: clamp(32px, 4vw, 52px); }
.loc-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 4vw, 56px); max-width: 1100px; margin: 0 auto; align-items: start; }
.loc-map { aspect-ratio: 4 / 3; background: var(--bg-2); overflow: hidden; }
.loc-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.loc-addr { margin: 0; font-family: var(--title); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.45; }
.loc-old { margin: 8px 0 0; font-size: 13px; color: var(--soft); }
.loc-copy { margin-top: 14px; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 14px; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; }
.loc-list { margin: 28px 0 0; border-top: 1px solid var(--line); }
.loc-list div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.loc-list dt { color: var(--soft); }
.loc-list dd { margin: 0; color: var(--muted); line-height: 1.7; word-break: keep-all; }
.loc-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.loc-links a { padding: 10px 16px; border-radius: 99px; background: var(--ink); color: var(--bg); font-size: 14px; text-decoration: none; }
@media (max-width: 760px) {
  .loc-grid { grid-template-columns: 1fr; }
  .loc-map { aspect-ratio: 1 / 1; }
}

/* 소개: mellow 뜻풀이 한 줄 */
.about-def { margin: 0 0 18px; font-family: var(--title); font-size: clamp(14px, 1.5vw, 17px); color: var(--soft); letter-spacing: .01em; word-break: keep-all; }
.about-def em { font-style: italic; font-size: 1.15em; color: var(--muted); }

/* ---------- A mellow time just for us: 사진 8장 모자이크 ---------- */
.moments { padding: clamp(80px, 10vw, 140px) var(--gutter) 0; }
.moments .section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.moments-title { font-style: italic; }
.mo-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 16vw, 230px); grid-auto-flow: dense; gap: clamp(8px, 1vw, 14px); max-width: 1200px; margin: 0 auto; }
.mo-tile { position: relative; display: block; overflow: hidden; background: var(--bg-2); color: #fff; text-decoration: none; }
.mo-tile.w2 { grid-column: span 2; }
.mo-tile.h2 { grid-row: span 2; }
.mo-img { position: absolute; inset: 0; overflow: hidden; }
.mo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.mo-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(to top, rgba(20,18,15,.62), rgba(20,18,15,0)); display: grid; gap: 2px; }
.mo-cap b { font-family: var(--title); font-weight: 500; font-size: clamp(16px, 1.6vw, 20px); }
.mo-cap small { font-size: 12px; opacity: .88; }
@media (hover: hover) { .mo-tile:hover img { transform: scale(1.05); } }
@media (max-width: 760px) {
  .mo-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 132px; gap: 8px; }
  .mo-cap { padding: 28px 10px 9px; }
  .mo-cap b { font-size: 15px; }
  .mo-cap small { font-size: 10.5px; }
}

/* PC: 차분하게 같은 크기 4칸 × 2줄, 설명은 사진 아래 (핸드폰 모자이크는 그대로) */
@media (min-width: 761px) {
  .mo-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: auto; gap: 36px 22px; max-width: 1160px; }
  .mo-tile.w2, .mo-tile.h2 { grid-column: auto; grid-row: auto; }
  .mo-tile { background: none; color: var(--ink); }
  .mo-img { position: relative; inset: auto; display: block; aspect-ratio: 4 / 5; background: var(--bg-2); }
  .mo-cap { position: static; background: none; padding: 14px 2px 0; gap: 4px; }
  .mo-cap b { font-size: 19px; color: var(--ink); }
  .mo-cap small { font-size: 13px; color: var(--muted); opacity: 1; }
}

/* 첫 화면 빠르게: 사진을 받는 동안 회색 대신 같은 사진의 흐릿한 미리보기, 등장도 짧게 */
.hero-media { background: #1E2B3C url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAIQAgAAD/4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADb//gAPTGF2YzYzLjEuMTAyAP/bAEMACAwMDgwOEBAQEBAQExITFBQUExMTExQUFBUVFRkZGRUVFRQUFRUYGBkZGxwbGhoZGhwcHh4eJCQiIioqKzMzPv/EAG0AAQEBAQAAAAAAAAAAAAAAAAUGAwQBAAMBAQAAAAAAAAAAAAAAAAEFAwQCEAABBAECBQQDAQAAAAAAAAABAgMRAAQhMQUyM3FBYRPBUaEScpERAAICAwEBAAAAAAAAAAAAAAEAAhEDQQQTFP/AABEIABYAIAMBIgACEQADEQD/2gAMAwEAAhEDEQA/AIxxoo3g6/7cltBHNVi6hwkaaGT6C9zXCHcwfulxIHi1j15ZOH5oC6CYh1DbQPtqj70iaU6QskpSB5tI9wTKZaICgpOpMTZdCFAHf61pOeQNl78tU1LOGhSlj1jbe0+I4rHV7e4BpWNzr7/NRT1z3FXQ2sAu5mWW29pmxy148FamZkxE/ma9xHkTZV3pj+/i1KS//9k=") center / cover no-repeat; }
.hero-video { transition: opacity .7s ease, transform 2.2s cubic-bezier(.2,.7,.2,1); transform: scale(1.06); }
@media (max-width: 760px) { .hero-media { background-position: 50% center; } }
