/* ===================================================================
   제주 웰리스 — 섹션 스타일
   유리(글래스) 효과는 HERO와 층별 카드 오버레이 두 곳에서만 쓴다.
   =================================================================== */

/* ================= HERO =================
   외관 조감도가 세로 이미지(1042×1334)라 전면 배경으로 깔면
   데스크톱에서 건물이 잘린다. 좌: 텍스트 / 우: 이미지 분할로 간다. */

.hero { position: relative; padding-top: var(--nav-h); }
.hero__grid { display: grid; }

/* 패럴랙스가 이미지를 1.06 배 키우므로 프레임 밖으로 나가지 않게 잘라준다.
   (전에는 진입 애니메이션이 transform 을 덮어써서 이 문제가 가려져 있었다) */
.hero__figure { position: relative; order: -1; overflow: hidden; }
.hero__figure img { width: 100%; height: 52vh; min-height: 300px; object-fit: cover; object-position: center 22%; }
/* 모바일에서는 이미지 하단이 텍스트로 자연스럽게 이어지도록 */
.hero__figure::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 32%;
  background: linear-gradient(to bottom, rgba(239,233,226,0), var(--paper));
}

.hero__body { padding: clamp(28px, 5vw, 56px) var(--gutter) clamp(48px, 7vw, 72px); }

.hero__eyebrow {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(14px, 1.6vw, 17px); color: var(--clay); letter-spacing: .04em;
}
.hero__title {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(46px, 8.4vw, 92px);
  font-weight: 500; line-height: 1.02; letter-spacing: .01em;
}
.hero__title-ko {
  display: block; margin-top: 12px;
  font-family: var(--font-body); font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 600; letter-spacing: -.02em;
}
.hero__addr {
  margin-top: 20px; display: flex; align-items: center; gap: 9px;
  font-size: clamp(14px, 1.5vw, 16px); color: var(--stone);
}
.hero__addr::before { content: ""; width: 26px; height: 1px; background: var(--sand); flex: none; }

.hero__copy { margin-top: 26px; max-width: 40ch; font-size: clamp(15px, 1.6vw, 17.5px); color: var(--stone); }

/* 유리 카드 — 허용 지점 1 */
.hero__facts {
  margin-top: clamp(30px, 4vw, 44px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink-08);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 3px;
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
  box-shadow: 0 18px 44px -22px rgba(33,33,29,.35);
}
.hero__fact { background: rgba(239,233,226,.72); padding: 15px 14px; }
.hero__fact dt { font-size: 12px; color: var(--stone); }
.hero__fact dd {
  margin: 3px 0 0; font-size: clamp(15px, 1.35vw, 18px); font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
  white-space: nowrap;            /* 숫자와 단위가 갈라지지 않게 */
}
.hero__fact dd small { font-size: .66em; font-weight: 500; color: var(--stone); margin-left: 2px; }

.hero__cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn--solid { background: var(--forest); color: var(--paper); }
.btn--solid:hover { background: #263029; }
.btn--ghost { border-color: var(--ink-14); color: var(--ink); }
.btn--ghost:hover { border-color: var(--clay); color: var(--clay); }
.btn--clay { background: var(--clay); color: #fff; }
.btn--clay:hover { background: #8a6b58; }
.btn svg { width: 16px; height: 16px; flex: none; }

@media (min-width: 900px) {
  .hero { min-height: 100svh; display: flex; align-items: stretch; }
  /* stretch 여야 우측 이미지가 화면 높이를 꽉 채운다. 텍스트는 본문에서 세로 중앙 정렬. */
  .hero__grid { flex: 1; grid-template-columns: 1.12fr minmax(360px, .74fr); align-items: stretch; }
  .hero__body { display: flex; flex-direction: column; justify-content: center; }
  .hero__figure { order: 0; height: 100%; }
  .hero__figure img { height: 100%; min-height: 520px; object-position: center 30%; }
  .hero__figure::after { display: none; }
  .hero__body {
    padding-block: clamp(60px, 7vw, 96px);
    padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
    padding-right: clamp(32px, 4vw, 64px);
  }
  .hero__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* HERO 진입 연출 — 페이지 로드 시 한 번만 */
@media (prefers-reduced-motion: no-preference) {
  .hero__body > * { opacity: 0; transform: translateY(16px); animation: heroIn .8s cubic-bezier(.22,.68,.32,1) forwards; }
  .hero__body > *:nth-child(1) { animation-delay: .05s; }
  .hero__body > *:nth-child(2) { animation-delay: .13s; }
  .hero__body > *:nth-child(3) { animation-delay: .21s; }
  .hero__body > *:nth-child(4) { animation-delay: .29s; }
  .hero__body > *:nth-child(5) { animation-delay: .37s; }
  .hero__body > *:nth-child(6) { animation-delay: .45s; }
  @keyframes heroIn { to { opacity: 1; transform: none; } }
}

/* ================= INTRO ================= */

.intro__statement {
  font-size: clamp(23px, 3.6vw, 40px);
  font-weight: 600; line-height: 1.42; letter-spacing: -.025em;
  /* 20ch 로 묶어 두면 "목적형 / 상업시설" 처럼 한 낱말 덩어리가 갈라진다.
     keep-all 이라 넘치는 줄은 그대로 삐져나오기까지 한다. */
  max-width: 32ch;
  text-wrap: balance;
}
.intro__statement em { font-style: normal; color: var(--clay); }
.intro__note { margin-top: 28px; max-width: 74ch; color: var(--stone); font-size: clamp(15px, 1.5vw, 17px); text-wrap: balance; }

.intro__grid { margin-top: clamp(44px, 6vw, 72px); display: grid; gap: 1px; background: var(--ink-08); }
@media (min-width: 760px) { .intro__grid { grid-template-columns: repeat(3, 1fr); } }
.intro__cell { background: var(--paper); padding: 28px 26px 30px; }
.intro__cell h3 { font-size: 17.5px; }
.intro__cell p { margin-top: 10px; font-size: 14.5px; color: var(--stone); }
.intro__cell .num {
  display: block; font-family: var(--font-display); font-style: italic;
  font-size: 15px; color: var(--clay); margin-bottom: 12px;
}

/* ================= CONCEPT ================= */

.flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: clamp(36px, 4vw, 52px); }
.flow__item {
  font-family: var(--font-display); font-size: clamp(15px, 2vw, 21px);
  letter-spacing: .07em; font-weight: 500;
}
.flow__sep { color: var(--clay); font-size: 13px; }
.flow__item:last-of-type { color: var(--clay); }

.conceptgrid { display: grid; gap: 20px; }
@media (min-width: 760px) { .conceptgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .conceptgrid { grid-template-columns: repeat(4, 1fr); } }
.conceptcard { border-top: 2px solid var(--ink); padding-top: 18px; }
.conceptcard h3 { font-size: 17px; }
.conceptcard p { margin-top: 9px; font-size: 14.5px; color: var(--stone); }

/* ================= FLOORS (중심 섹션) ================= */

.floors__grid { display: grid; gap: clamp(20px, 3vw, 36px); }
@media (min-width: 1000px) { .floors__grid { grid-template-columns: 240px 1fr; align-items: start; } }
/* 도면이 주인공인 섹션이라 본문 폭보다 넓게 쓴다 */
@media (min-width: 1240px) { #floors > .wrap { max-width: 1440px; } }

/* 층 선택 — 데스크톱은 실제 건물처럼 6F가 위, B1F가 아래 */
.stack { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.stack::-webkit-scrollbar { display: none; }
.stack__btn {
  flex: 0 0 auto; cursor: pointer;
  display: flex; align-items: baseline; gap: 8px;
  padding: 11px 16px; border: 1px solid var(--ink-14); border-radius: 2px;
  background: transparent; text-align: left; white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.stack__btn:hover { border-color: var(--clay); }
.stack__btn[aria-selected="true"] { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.stack__f { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: .03em; }
.stack__use { font-size: 12.5px; color: var(--stone); }
.stack__btn[aria-selected="true"] .stack__use { color: var(--sand); }

@media (min-width: 1000px) {
  .stack { flex-direction: column; gap: 5px; overflow: visible; position: sticky; top: calc(var(--nav-h) + 24px); }
  /* 라벨이 한 줄인 층과 두 줄인 층이 섞여 있다. 높이를 고정해 칸을 맞춘다. */
  .stack__btn {
    display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 10px;
    padding: 14px 18px; white-space: normal; min-height: 68px;
  }
  .stack__use { font-size: 12.5px; line-height: 1.45; }
}

/* 층 상세 패널 */
.floorpanel[hidden] { display: none; }
.floorpanel__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin-bottom: 20px; }
.floorpanel__f { font-family: var(--font-display); font-size: clamp(34px, 5vw, 52px); font-weight: 500; line-height: 1; }
.floorpanel__area { font-size: clamp(15px, 1.7vw, 18px); font-weight: 600; font-variant-numeric: tabular-nums; }
.floorpanel__area small { font-weight: 500; color: var(--stone); font-size: .8em; margin-left: 4px; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.tags li {
  padding: 6px 13px; border-radius: 999px;
  background: rgba(154,122,101,.12); color: #7d6151;
  font-size: 13px; font-weight: 500;
}

/* 한 줄에 들어가면 그대로 두고, 넘칠 때는 줄 길이를 고르게 나눈다.
   pretty 는 마지막 한 단어만 챙기므로 두 줄짜리 문단에서는 balance 가 낫다. */
.floorpanel__desc { max-width: 60ch; color: var(--stone); font-size: 15.5px; margin-bottom: 22px; text-wrap: balance; }

/* 평면도 프레임 — 층마다 원본 비율이 1.19~2.52로 제각각이라
   고정 비율을 주지 않고 프레임 안에서 contain 시킨다. */
/* 층마다 원본 비율이 1.19~2.52로 제각각이다. 높이를 제한하면 세로형 도면이
   프레임 안에서 작게 눌린다. 폭을 꽉 채우고 높이는 원본 비율대로 둔다. */
.plan { position: relative; background: #F6F2ED; border: 1px solid var(--ink-08); border-radius: 3px; padding: 12px; }
.plan img { width: 100%; height: auto; }

/* 유리 오버레이 — 허용 지점 2 */
.plan__badge {
  position: absolute; left: 22px; top: 22px;
  padding: 9px 15px; border-radius: 2px;
  background: rgba(239,233,226,.62);
  border: 1px solid rgba(255,255,255,.6);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  box-shadow: 0 8px 22px -12px rgba(33,33,29,.4);
}
.plan__none {
  display: grid; place-items: center; min-height: 220px;
  color: var(--stone); font-size: 14.5px; text-align: center;
}
/* 면책·단서 문구 — 정보로서 필요하지만 읽는 흐름을 끊지 않게 작고 흐리게 둔다 */
.plan__cap { margin-top: 12px; font-size: 11.5px; line-height: 1.65; color: rgba(103,94,92,.62); }

/* ================= LOCATION ================= */

.loc__grid { display: grid; gap: 26px; }
@media (min-width: 940px) { .loc__grid { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.loc__map img { width: 100%; border: 1px solid var(--ink-08); border-radius: 3px; }
.loc__map figcaption { margin-top: 10px; font-size: 12.5px; color: var(--stone); }
.loc__maps { display: grid; gap: 18px; }

.times { display: grid; gap: 1px; background: var(--ink-08); border: 1px solid var(--ink-08); border-radius: 3px; overflow: hidden; }
.times__row { background: var(--paper); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; }
.times__label { font-size: 15px; font-weight: 500; }
.times__val { font-family: var(--font-display); font-size: 25px; font-weight: 600; color: var(--clay); font-variant-numeric: tabular-nums; }
.times__val small { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--stone); margin-left: 3px; }

/* ================= OVERVIEW ================= */

.spec { border-top: 2px solid var(--ink); }
.spec tr { border-bottom: 1px solid var(--ink-08); }
.spec th, .spec td { padding: 15px 4px; text-align: left; vertical-align: top; font-size: 15px; }
.spec th { width: 132px; font-weight: 500; color: var(--stone); }
.spec td { font-weight: 500; font-variant-numeric: tabular-nums; }
@media (min-width: 700px) { .spec th { width: 190px; } .spec th, .spec td { padding: 17px 6px; font-size: 15.5px; } }

.floortable { margin-top: clamp(40px, 5vw, 60px); overflow-x: auto; }
.floortable table { min-width: 520px; border-top: 2px solid var(--ink); }
.floortable th, .floortable td { padding: 14px 12px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--ink-08); }
.floortable thead th { font-size: 13px; color: var(--stone); font-weight: 500; }
.floortable td:first-child { font-family: var(--font-display); font-size: 17px; font-weight: 600; width: 74px; }
.floortable td:nth-child(2) { font-variant-numeric: tabular-nums; white-space: nowrap; }
.floortable tfoot td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--ink); }

/* ================= RETURN ================= */

.bars { display: grid; gap: 14px; margin-bottom: 30px; }
.bar__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.bar__name { font-size: 15px; font-weight: 600; }
.bar__cond { font-size: 12.5px; color: var(--stone); font-weight: 400; margin-left: 7px; }
.bar__num { font-variant-numeric: tabular-nums; font-size: 14.5px; color: var(--stone); white-space: nowrap; }
.bar__num b { font-family: var(--font-display); font-size: 21px; color: var(--ink); margin-right: 6px; }

.bar__track { height: 42px; background: rgba(33,33,29,.05); border-radius: 2px; overflow: hidden; }
.bar__fill { height: 100%; width: var(--w); background: var(--sand); border-radius: 2px; }
.bar--hl .bar__fill { background: var(--clay); }
.bar--top .bar__fill { background: var(--forest); }
.bar--top .bar__num b { color: var(--forest); }

@media (prefers-reduced-motion: no-preference) {
  .bar__fill { width: 0; transition: width 1.1s cubic-bezier(.22,.68,.32,1); }
  .is-in .bar__fill, .bars.is-in .bar__fill { width: var(--w); }
}

/* 각주 두 줄은 접거나 축소하지 않는다. 막대와 같은 화면에 둔다. */
/* 수익 비교 각주는 반드시 같은 화면에 남기되(브리프 §4-1), 크기만 낮춘다.
   접거나 숨기지 않는다. */
.returnnote {
  border-left: 2px solid rgba(210,196,185,.55); padding-left: 16px;
  font-size: 11.5px; line-height: 1.7; color: rgba(103,94,92,.62);
}
.returnnote p + p { margin-top: 7px; }

/* ================= PROCESS ================= */

.steps { display: grid; gap: 1px; background: rgba(255,255,255,.14); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--forest); padding: 26px 22px 30px; }
.step__n {
  font-family: var(--font-display); font-size: 13px; font-style: italic;
  color: var(--sand); letter-spacing: .08em;
}
.step h3 { margin-top: 14px; font-size: 17.5px; }
.step p { margin-top: 9px; font-size: 14px; color: rgba(239,233,226,.68); }

/* ================= PARTNER ================= */

.partner__logos { border: 1px solid var(--ink-08); border-radius: 3px; padding: clamp(16px, 3vw, 32px); background: #fff; }
.partner__note {
  margin-top: 20px; font-size: 11.5px; line-height: 1.7; color: rgba(103,94,92,.62);
  border-left: 2px solid rgba(210,196,185,.55); padding-left: 16px;
}

/* ================= CONTACT ================= */

.contact__grid { display: grid; gap: clamp(32px, 4vw, 56px); }
@media (min-width: 940px) { .contact__grid { grid-template-columns: .9fr 1.1fr; align-items: start; } }

.contact__ch { display: grid; gap: 1px; background: rgba(255,255,255,.14); border-radius: 3px; overflow: hidden; }
/* 대표전화·카카오톡에는 부제가 있고 이메일에는 없어 행 높이가 어긋난다. 높이를 맞춘다. */
.contact__row {
  background: var(--forest); padding: 18px 20px; min-height: 90px;
  display: flex; align-items: center; gap: 16px; text-decoration: none;
}
.ch__k { font-size: 12.5px; color: var(--paper-55); min-width: 62px; flex: none; }
.ch__v { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ch__v small { display: block; font-size: 12.5px; font-weight: 400; color: var(--paper-55); margin-top: 2px; }
.contact__cta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }

/* 폼 */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; color: var(--sand); }
.field label .req { color: var(--clay); margin-left: 3px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18); border-radius: 2px;
  color: var(--paper); font: inherit; font-size: 15.5px;
  transition: border-color .2s ease, background .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(239,233,226,.34); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--sand); background: rgba(255,255,255,.1); }
.field textarea { resize: vertical; min-height: 108px; }
@media (min-width: 560px) { .form__two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } }

.agree { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--sand); line-height: 1.6; }
.agree input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--clay); }
.agree a { color: var(--paper); text-underline-offset: 3px; }

.form__submit { margin-top: 4px; }
.form__submit:disabled { opacity: .55; cursor: not-allowed; }

.formstatus { font-size: 14px; min-height: 1.6em; line-height: 1.6; }
.formstatus[data-kind="error"] { color: #E2A98F; }
.formstatus[data-kind="ok"] { color: var(--sand); }
.formstatus[data-kind="pending"] { color: var(--paper-55); }

.form__privacy { font-size: 11.5px; color: rgba(239,233,226,.42); line-height: 1.65; }

/* 층별 설명 — 카탈로그 지면 옆에 작은 글씨로만 있던 내용을 본문 텍스트로 옮겼다 */
.fnotes { display: grid; gap: 11px; margin-bottom: 24px; max-width: 62ch; }
.fnotes li { text-wrap: pretty; }
.fnotes li { position: relative; padding-left: 15px; font-size: 14.5px; color: var(--stone); line-height: 1.7; }
.fnotes li::before { content: ""; position: absolute; left: 0; top: .75em; width: 5px; height: 5px; background: var(--clay); }
.fnotes b { color: var(--ink); font-weight: 600; margin-right: 5px; }

/* 내부 투시도 — 초광각 1장 전면 배치 */
/* ================= 확정안 렌더 슬라이드 =================
   가로 이미지(1.86 ~ 3.18)를 넓은 프레임에서 바꿔가며 보여준다.
   HERO 의 세로 조감도와 달리 여기서는 가로 구도가 살아난다. */
.viewband { margin: clamp(48px, 6vw, 76px) auto 0; max-width: 1440px; padding-inline: var(--gutter); }
.viewband__frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px;
  background: var(--sand);
}
.vslide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s ease; }
.vslide.is-on { opacity: 1; }
.vslide picture { display: block; width: 100%; height: 100%; }
.vslide img { width: 100%; height: 100%; object-fit: cover; }

.viewband__cap {
  margin-top: 14px; font-size: 13.5px; color: var(--stone);
  max-width: 92ch; line-height: 1.7; text-wrap: pretty; min-height: 3em;
}

/* 인디케이터 — 작고 조용하게 */
.slidedots { position: absolute; z-index: 2; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.slidedots button {
  width: 26px; height: 3px; padding: 0; border: 0; border-radius: 2px; cursor: pointer;
  background: rgba(255,255,255,.45);
  transition: background .3s ease, width .3s ease;
}
.slidedots button[aria-selected="true"] { background: rgba(255,255,255,.95); width: 38px; }
.slidedots button:hover { background: rgba(255,255,255,.72); }

@media (min-width: 900px) {
  .viewband__frame { aspect-ratio: 2.2 / 1; }
  .slidedots { right: 22px; bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) { .vslide { transition: none; } }

/* 층 전환 — 즉시 바뀌면 뚝 끊긴다. 짧게 크로스페이드한다. */
@media (prefers-reduced-motion: no-preference) {
  .floorpanel:not([hidden]) { animation: panelIn .42s cubic-bezier(.22,.68,.32,1) both; }
  @keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* 선택된 층 버튼에 미세한 강조 */
.stack__btn[aria-selected="true"] { box-shadow: 0 8px 22px -12px rgba(46,58,49,.55); }
.stack__btn { transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease; }
@media (hover: hover) { .stack__btn:hover:not([aria-selected="true"]) { transform: translateX(3px); } }

/* HERO 이미지 미세 패럴랙스 (JS 가 컨테이너의 --py 를 갱신) */
.hero__figure img { will-change: transform; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .hero__figure img { transform: translate3d(0, var(--py, 0px), 0) scale(1.06); }
}

/* 도면 프레임에 깊이 */
.plan { box-shadow: 0 24px 60px -40px rgba(33,33,29,.5); }

/* 수익 막대에 결 추가 */
.bar__fill { position: relative; overflow: hidden; }
.bar--top .bar__fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.14) 50%, transparent 70%);
}


/* 셀렉트 — 기본 화살표가 어두운 배경에서 안 보여 직접 그린다 */
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23D2C4B9' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 12px;
}
.field select option { background: var(--forest); color: var(--paper); }

/* ================= 이미지 확대 =================
   원본 픽셀이 화면 표시 크기보다 확실히 클 때만 켠다.
   데스크톱에서 평면도는 이미 확대 표시 중(0.53~0.71배)이라 눌러도 얻을 게 없다.
   모바일은 1.66~2.22배로 줄여 보여주므로 확대하면 도면 글자가 실제로 읽힌다. */

.zoomable { cursor: zoom-in; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(24, 26, 23, .96);
  display: grid; grid-template-rows: auto 1fr;
  animation: lbIn .22s ease both;
}
.lightbox[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0 } to { opacity: 1 } }

.lightbox__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px calc(14px + env(safe-area-inset-top));
  color: var(--sand); font-size: 13px;
}
.lightbox__hint { opacity: .72 }
.lightbox__close {
  flex: none; padding: 9px 18px; border-radius: 999px;
  background: transparent; border: 1px solid rgba(255,255,255,.28);
  color: var(--paper); font-size: 13.5px; font-weight: 500; cursor: pointer;
}
.lightbox__close:hover { border-color: var(--sand); }

.lightbox__scroll {
  overflow: auto; -webkit-overflow-scrolling: touch;
  padding: 0 14px calc(20px + env(safe-area-inset-bottom));
}
.lightbox__scroll img {
  display: block; margin: auto;
  max-width: none; width: auto; height: auto;
  background: #fff; border-radius: 2px;
}
body.is-lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) { .lightbox { animation: none } }


/* 층별 섹션은 도면 때문에 칸이 1050px 이상으로 넓다. 설명 문단만 60ch 로 묶어 두면
   한 줄에 들어갈 문장이 억지로 끊겨 잘린 것처럼 보인다. 넓은 화면에서는 칸을 그대로 쓴다. */
@media (min-width: 1100px) {
  .floorpanel__desc { max-width: 100ch; }
  .fnotes { max-width: 100ch; }
}

/* 1F 파사드 — 평면도 아래 보조 이미지 */
.plan__extra { margin-top: 16px; }
.plan__extra img { width: 100%; border-radius: 2px; }
.plan__extra figcaption { margin-top: 10px; font-size: 12.5px; color: var(--stone); }



/* ================= 우측 바로가기 =================
   폼 패널을 통째로 띄우면 화면을 너무 가린다. 작은 아이콘 레일로 둔다. */
.quick { display: none; }

@media (min-width: 1100px) {
  .quick {
    display: flex; flex-direction: column; gap: 1px;
    position: fixed; z-index: 96; right: 16px; top: 50%;
    transform: translateY(-50%);
    background: var(--ink-08);
    border-radius: 3px; overflow: hidden;
    box-shadow: 0 12px 32px -18px rgba(33,33,29,.5);
  }
  .quick__btn {
    width: 54px; padding: 11px 0 9px;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: rgba(255,255,255,.92); border: 0; cursor: pointer;
    color: var(--stone); text-decoration: none;
    font-size: 10.5px; font-weight: 500; letter-spacing: -.01em;
    transition: background .2s ease, color .2s ease;
  }
  .quick__btn svg { width: 17px; height: 17px; }
  .quick__btn:hover { background: var(--forest); color: var(--paper); }
  .quick__btn--top { border-top: 1px solid var(--ink-08); }
}
