/* =========================================================
   p05 입점매장 안내
   ========================================================= */

/* 01 Floor Guide */
.rt-guide { padding: 80px 0; }
.rt-guide__head { padding-bottom: 24px; border-bottom: 1px solid #bdbdba; }
.rt-guide__head .eyebrow { font-size: 16px; }
.rt-guide__head h2 { margin-top: 8px; font-family: var(--font-en); font-weight: 400; font-size: 72px; line-height: 1.3; }
.rt-layout { margin-top: 40px; display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.rt-rail { position: sticky; top: calc(var(--header-h) + 100px); }
.rt-rail__label { font-weight: 600; color: var(--silver); }
.rt-rail__list { margin-top: 16px; border-top: 2px solid var(--text); }
.rt-floor { width: 100%; height: 56px; display: flex; align-items: center; gap: 14px; padding: 0 20px; border-bottom: 1px solid var(--border); text-align: left; transition: background .2s, color .2s; }
.rt-floor b { width: 44px; font-family: var(--font-en); font-weight: 400; font-size: 20px; }
.rt-floor span { color: var(--silver); }
.rt-floor:hover { background: var(--sand); }
.rt-floor.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }
.rt-floor.is-active b { font-weight: 500; }
.rt-floor.is-active span { color: #fff; font-weight: 600; }

.rt-detail { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.rt-detail__title { font-family: var(--font-en); font-weight: 400; font-size: 72px; line-height: 1.3; color: var(--blue); }
.rt-detail__desc { margin-top: 4px; font-size: 18px; color: var(--muted); min-height: 29px; }
.rt-detail.is-changing .rt-anim { opacity: 0; transform: translateY(10px); }
.rt-anim { transition: opacity .3s, transform .3s; }

.plan { position: relative; height: 467px; background: #eeede8; overflow: hidden; }
.plan svg { width: 100%; height: 100%; display: block; }
.plan text { font-family: var(--font-kr); font-size: 16px; }
.plan .en-t { font-family: var(--font-en); font-weight: 500; }
.plan .store { transition: opacity .25s; cursor: pointer; }
.plan .store.is-dim { opacity: .25; }
.plan .pin { transform-box: fill-box; transform-origin: center; transform: scale(var(--pin, 1)); }
.plan .store.is-hl .pin { animation: pinPulse 1s ease-in-out 2; }
@keyframes pinPulse { 50% { transform: scale(calc(var(--pin, 1) * 1.35)); } }
.plan__floor { position: absolute; left: 40px; top: 32px; font-family: var(--font-en); font-weight: 500; font-size: 20px; color: var(--blue); }
.plan__ref { position: absolute; right: 40px; top: 34px; color: var(--silver); }
.plan__note { position: absolute; right: 40px; bottom: 32px; color: var(--silver); }

.rt-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.rt-chip { height: 44px; padding: 0 22px; border: 1px solid var(--border); border-radius: 36px; transition: background .2s, color .2s, border-color .2s; }
.rt-chip:hover, .rt-chip.is-active { border-color: var(--blue); background: var(--blue); color: #fff; }

.rt-cats { display: grid; gap: 8px; }
.rt-cat h3 { font-size: 24px; font-weight: 700; line-height: 1.3; }
.rt-cat ul { margin-top: 14px; }
.rt-store { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--text); }
.rt-store + .rt-store { border-top-color: var(--border); }
.rt-store__name { font-size: 18px; font-weight: 500; }
.rt-store__meta { display: flex; align-items: center; gap: 20px; flex: none; }
.rt-store__phone { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--muted); }
.rt-store__phone .icon { font-size: 16px; }
.rt-store__pin { width: 32px; height: 32px; margin: -6px; display: grid; place-items: center; font-size: 20px; color: var(--blue); border-radius: 50%; transition: background .2s; }
.rt-store__pin:hover { background: var(--sand); }

/* 02 입점매장 목록 */
.rt-dir { padding: 80px 0; background: var(--sand); }
.rt-dir h2 { font-size: 40px; font-weight: 700; line-height: 1.3; }
.rt-dir__sub { margin-top: 8px; color: var(--silver); }
.rt-dir__cols { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.rt-dir__col { background: #fff; padding: 12px 36px; }
.rt-group { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid #e6e4de; }
.rt-group:last-child { border-bottom: 0; }
.rt-group__floor { flex: none; width: 76px; font-family: var(--font-en); font-size: 26px; line-height: 1.6; color: var(--blue); text-align: left; transition: color .2s; }
.rt-group__floor:hover { color: var(--light-blue); }
.rt-group ul { flex: 1; display: grid; gap: 12px; padding-top: 2px; }
.rt-group li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rt-group li b { font-size: 17px; font-weight: 500; }
.rt-tag { flex: none; padding: 3px 12px; border-radius: 20px; background: var(--sand); color: var(--muted); }
.rt-group li b { flex: 1; min-width: 0; }
.rt-tel { flex: none; font-family: var(--font-en); font-size: 15px; color: var(--blue); }
.rt-tel:hover { text-decoration: underline; }
a.rt-store__phone { color: var(--blue); }

/* 03 리테일 공간 소개 */
.rt-space { position: relative; padding: 120px 0; background: url("/assets/img/ecfa5806-8851910e.jpg") center/cover; color: #fff; }
.rt-space::before { content: ""; position: absolute; inset: 0; background: rgba(0,58,93,.94); }
.rt-space .inner { position: relative; }
.rt-space h2 { font-size: 48px; font-weight: 700; line-height: 1.3; }
.rt-space__cols { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rt-space__col { position: relative; height: 520px; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.rt-space__bg { position: absolute !important; z-index: 0 !important; inset: 0; background: center/cover no-repeat; transition: transform .8s; }
.rt-space__col::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(0,26,46,.25) 0, rgba(0,26,46,.35) 45%, rgba(0,26,46,.92) 100%); }
.rt-space__col:hover .rt-space__bg { transform: scale(1.06); }
.rt-space__col > * { position: relative; z-index: 1; }
.rt-space__floor { font-family: var(--font-en); font-weight: 300; font-size: 96px; line-height: 1.3; }
.rt-space__col i { display: block; width: 40px; height: 3px; background: var(--light-blue); }
.rt-space__col p { margin-top: 16px; font-size: 17px; line-height: 1.75; color: rgba(255,255,255,.92); }

/* responsive */
@media (max-width: 1420px) {
  .rt-guide__head h2, .rt-detail__title { font-size: 60px; }
  .rt-space__col { height: 460px; padding: 32px; }
}
@media (max-width: 1023px) {
  .rt-guide, .rt-dir { padding: var(--sec-pad-s) 0; }
  .rt-guide__head h2, .rt-detail__title { font-size: 48px; }
  .rt-layout { grid-template-columns: 1fr; gap: 32px; }
  .rt-rail { position: static; }
  .rt-rail__list { display: flex; overflow-x: auto; scrollbar-width: none; border-top: 0; gap: 8px; }
  .rt-rail__list::-webkit-scrollbar { display: none; }
  .rt-floor { flex: none; width: auto; height: 48px; padding: 0 16px; gap: 8px; border: 1px solid var(--border); }
  .rt-floor b { width: auto; font-size: 18px; }
  .plan { height: auto; aspect-ratio: 972/467; }
  .plan__note { position: static; display: block; padding: 0 0 4px; }
  .rt-dir h2 { font-size: 32px; }
  .rt-dir__cols { grid-template-columns: 1fr; gap: 0; }
  .rt-dir__col:first-child { padding-bottom: 0; }
  .rt-space { padding: 80px 0; }
  .rt-space h2 { font-size: 36px; }
  .rt-space__cols { grid-template-columns: 1fr; }
  .rt-space__col { height: 360px; }
  .rt-space__floor { font-size: 72px; }
}
@media (max-width: 767px) {
  .rt-guide__head h2, .rt-detail__title { font-size: 36px; }
  .rt-detail__desc { font-size: 16px; }
  .plan { aspect-ratio: 4/3; }
  .plan svg { width: 140%; margin-left: -20%; }
  .plan__floor { left: 16px; top: 12px; font-size: 16px; }
  .plan__ref { right: 16px; top: 14px; font-size: 14px; }
  .rt-chip { height: 40px; padding: 0 16px; }
  .rt-cat h3 { font-size: 20px; }
  .rt-store { flex-direction: column; align-items: flex-start; gap: 6px; }
  .rt-store__name { font-size: 17px; }
  .rt-dir h2 { font-size: 24px; }
  .rt-dir__col { padding: 4px 20px; }
  .rt-group { flex-direction: column; gap: 8px; padding: 18px 0; }
  .rt-group__floor { font-size: 22px; }
  .rt-group li b { font-size: 16px; }
  .rt-tag { font-size: 14px; }
  .rt-space { padding: 64px 0; }
  .rt-space h2 { font-size: 26px; }
  .rt-space__cols { margin-top: 32px; gap: 12px; }
  .rt-space__col { height: 300px; padding: 24px; }
  .rt-space__floor { font-size: 56px; }
  .rt-space__col p { font-size: 16px; }
}
.rt-layout > * { min-width: 0; }
@media (max-width: 1023px) {
  .plan svg { position: absolute; inset: 0; height: 100%; }
}
@media (max-width: 767px) {
  .plan svg { width: 140%; left: -20%; margin-left: 0; }
}
@media (max-width: 1023px) {
  .plan__note { position: absolute; left: 16px; right: 16px; bottom: 10px; padding: 0; font-size: 13px; }
}
@media (max-width: 767px) {
  .plan svg { width: 100%; left: 0; }
}

/* 태블릿·모바일: 약도가 줄어드는 만큼 글씨·번호를 키움 (SVG 단위) */
@media (max-width: 1023px) {
}
@media (max-width: 767px) {
}
@media (max-width: 1023px) { .plan__floor { left: 20px; top: 14px; } .plan__ref { right: 20px; top: 16px; font-size: 14px; } }
@media (max-width: 767px) { .plan { aspect-ratio: 3 / 2; } }
@media (max-width: 767px) { .plan__floor, .plan__ref { display: none; } }

/* 피그마 자간 맞춤 (p05) */
.rt-guide__head .eyebrow { letter-spacing: 2px; }
.rt-guide__head h2 { letter-spacing: -0.02em; }
.rt-space__floor { letter-spacing: -0.03em; }

/* 3D 입체 약도 */
.plan { background: linear-gradient(180deg, #f6f6f3 0%, #eeede8 100%); }
.plan .blk { animation: blkIn .7s cubic-bezier(.19, 1, .22, 1) both; animation-delay: var(--d, 0ms); }
@keyframes blkIn { from { opacity: 0; transform: translateY(-28px); } }
.plan .tag { animation: tagIn .5s ease both; animation-delay: .45s; }
@keyframes tagIn { from { opacity: 0; } }
.plan .store .blk-top { transition: fill .25s; }
.plan .store:hover .blk-top, .plan .store.is-hl .blk-top { fill: #9dbbe3; }

/* 3D 약도: 실제 평면도 비율(세로가 김)에 맞춘 높이 */
@media (min-width: 1024px) { .plan { height: 760px; } }
@media (max-width: 1023px) { .plan { height: auto; aspect-ratio: 4 / 3; } }
@media (max-width: 767px) { .plan { aspect-ratio: 4 / 3.2; } .plan svg { width: 100%; left: 0; } }
/* 층을 바꿀 때 약도는 흐려지지 않게 (매장 블록만 움직임) */
.rt-detail.is-changing .plan.rt-anim { opacity: 1; transform: none; }
.plan.rt-anim { transition: none; }
/* 출입구 표시: 바닥에서 퍼지는 원 */
.plan .door-ring { transform-box: fill-box; transform-origin: center; animation: doorRing 1.8s ease-out infinite; }
@keyframes doorRing { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .plan .door-ring, .plan .blk, .plan .tag { animation: none; } }
/* 모바일·타블렛 매장 목록: 긴 매장 이름 때문에 카드가 오른쪽으로 밀려 여백이 없어지던 문제 — 칸을 화면 폭 안에 고정하고 이름은 줄바꿈 */
@media (max-width: 1023px) {
  .rt-dir__cols { grid-template-columns: minmax(0, 1fr); }
  .rt-group ul, .rt-group li { min-width: 0; }
  .rt-group li b { overflow-wrap: anywhere; }
}

/* 리테일 공간 소개 4칸(1F · 2F · 3~7F · B1) — 2026.11.27 B1 추가 */
@media (min-width:1024px){ .rt-space__cols{grid-template-columns:repeat(4,1fr);} .rt-space__col{padding:32px;} .rt-space__floor{font-size:76px;} .rt-space__col p{font-size:16px;} }
