/* 시안 도구: 시안 안내 · 설명 영상 · 휴대폰 화면으로 보기.
   사이트 본문과 구별되는 중립 색(짙은 회색 단추, 흰 패널)으로 작고 조용하게 둔다. 이름은 모두 tour-로 시작한다.
   사이트 쪽 스타일이 번지지 않게 글자·여백·테두리를 여기서 다시 정한다. */
[data-tour-ui] {
  --t-dark: #2A2A2C; --t-ink: #161616; --t-ink-2: #5E5E62; --t-line: #DDDAD3; --t-wash: #F4F3EF; --t-accent: #FC701C;
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 13px; font-weight: 400; font-style: normal; line-height: 1.5; letter-spacing: -.01em; text-transform: none; text-align: left;
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
[data-tour-ui], [data-tour-ui] *, [data-tour-ui] *::before, [data-tour-ui] *::after { box-sizing: border-box; }
[data-tour-ui] button, [data-tour-ui] a { margin: 0; font: inherit; letter-spacing: inherit; text-transform: none; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
[data-tour-ui] button { appearance: none; border: 0; background: none; padding: 0; color: inherit; min-width: 0; min-height: 0; border-radius: 0; box-shadow: none; }
[data-tour-ui] h2, [data-tour-ui] h3, [data-tour-ui] p, [data-tour-ui] ul, [data-tour-ui] ol, [data-tour-ui] li { margin: 0; padding: 0; list-style: none; font: inherit; letter-spacing: inherit; color: inherit; max-width: none; }
[data-tour-ui] svg { display: block; flex: none; max-width: none; }
[data-tour-ui] :focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
/* .tour-pc = PC(넓은 화면 + 마우스)에서만 보이는 것 */
[data-tour-ui] .tour-pc { display: none !important; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  [data-tour-ui] .tour-pc { display: inline-flex !important; }
}
[data-tour-ui] [hidden][hidden] { display: none !important; }

/* ───────── 시안 띠: 고객 화면은 PC 쪽 맨 위(쪽과 함께 올라간다) · 휴대폰 화면 맨 아래, 관리자는 #tour-slot 안 ─────────
   --tour-bar = 이 띠가 차지하는 높이. 사이트가 첫 화면 높이를 잡을 때 이만큼 뺀다(var(--tour-bar, 0px)).
   PC = 맨 위 띠 32px(띠가 보일 때의 첫 화면만 맞추면 되므로 그대로 32px), 휴대폰 = 아래 띠 40px(아래에 고정하는 요소는 이만큼 올린다). */
.tour-seg { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 12px !important; color: #fff !important; font-size: 12.5px !important; font-weight: 600 !important; line-height: 1 !important; white-space: nowrap; border-radius: 0 !important; }
.tour-seg:hover { background: rgba(255, 255, 255, .13) !important; }
.tour-seg svg { width: 13px; height: 13px; }
.tour-seg[aria-expanded="true"] { background: rgba(255, 255, 255, .13) !important; }
.tour-dock .tour-seg ~ .tour-seg::before { content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 1px; background: rgba(255, 255, 255, .2); }

/* 휴대폰(767px 아래): 화면 맨 아래 40px 띠. 그만큼 본문 아래를 비운다 */
.tour-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; align-items: stretch; height: calc(40px + env(safe-area-inset-bottom, 0px)); padding: 0 8px env(safe-area-inset-bottom, 0px); background: var(--t-dark); color: #fff; }
.tour-name, .tour-dock .tour-wide { display: none !important; }
.tour-segs { flex: 1; display: flex; align-items: stretch; min-width: 0; }
.tour-dock .tour-seg { flex: 1 1 0; height: 40px; font-size: 13px !important; }
/* 영상 단추의 길이 글(2분)은 띠가 좁은 휴대폰에서는 뺀다. 아주 좁으면(접은 폰) 그림과 옆 여백도 줄인다 */
.tour-dur { font-style: normal; }
.tour-dock .tour-dur { display: none; }
.tour-dock .tour-seg-film svg { display: none; }
@media (max-width: 379px) { .tour-dock .tour-seg { padding: 0 4px !important; font-size: 12.5px !important; gap: 4px; } }
html.tour-has-bar { --tour-bar: calc(40px + env(safe-area-inset-bottom, 0px)); }
html.tour-has-bar body { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }

/* 띠가 화면 밖으로 나가면 오른쪽 아래에 뜨는 작은 단추(누르면 「시안 안내」). PC 에서만 */
.tour-fab { position: fixed; right: 16px; bottom: 16px; z-index: 900; display: none !important; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50% !important; background: var(--t-dark) !important; color: #fff !important; box-shadow: 0 0 0 1px rgba(255, 255, 255, .28) !important; }
.tour-fab:hover { background: #000 !important; }
.tour-fab svg { width: 18px; height: 18px; }

@media (min-width: 768px) {
  /* PC: 쪽 맨 위 32px 띠. 고정하지 않는다(사이트 머리글은 그 아래에서 따라온다) */
  html.tour-has-bar { --tour-bar: 32px; }
  html.tour-has-bar body { padding-bottom: 0; }
  .tour-dock { position: relative; left: auto; right: auto; bottom: auto; z-index: auto; align-items: center; justify-content: space-between; gap: 16px; height: 32px; padding: 0 12px 0 24px; font-size: 12.5px; }
  .tour-name { display: block !important; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255, 255, 255, .78); font-size: 12.5px; }
  .tour-segs { flex: none; height: 32px; }
  .tour-dock .tour-wide { display: inline-flex !important; }
  .tour-guide .tour-narrow { display: none; }   /* 넓은 화면은 띠의 「관리자 화면」 단추로 간다 */
  .tour-dock .tour-dur { display: inline; }
  .tour-dock .tour-seg { flex: none; height: 32px; padding: 0 12px !important; font-size: 12.5px !important; font-weight: 500 !important; }
  .tour-dock .tour-seg svg { display: none; }
  .tour-dock .tour-seg ~ .tour-seg::before { top: 9px; bottom: 9px; }
  html.tour-bar-out .tour-fab { display: flex !important; }
}

.tour-slot { display: flex; flex-wrap: wrap; gap: 6px; }
.tour-slot .tour-seg { height: 30px; padding: 0 11px !important; background: var(--t-dark) !important; font-size: 12px !important; border-radius: 15px !important; }
.tour-slot .tour-seg:hover { background: #000 !important; }

/* ───────── 시안 안내 패널 ───────── */
.tour-guide { position: fixed; right: 16px; bottom: 60px; z-index: 910; display: flex; flex-direction: column; width: 388px; max-width: calc(100vw - 32px); max-height: min(700px, calc(100vh - 80px)); overflow: hidden; background: #fff; color: var(--t-ink); border: 1px solid var(--t-line); border-radius: 12px; box-shadow: 0 18px 48px rgba(0, 0, 0, .2); }
.tour-guide.is-admin { right: auto; left: 244px; bottom: 16px; max-height: min(700px, calc(100vh - 32px)); }
.tour-guide.is-top { top: 40px; bottom: auto; max-height: min(700px, calc(100vh - 56px)); }   /* PC 맨 위 띠에서 열었을 때: 띠 바로 아래 */
.tour-guide :focus-visible { outline: 2px solid var(--t-ink); outline-offset: 2px; }
.tour-guide-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 12px 18px; border-bottom: 1px solid var(--t-line); }
.tour-guide-head h2 { font-size: 15px; font-weight: 700; letter-spacing: -.02em; outline: 0; }
.tour-guide .tour-x { height: 30px; padding: 0 12px; border: 1px solid var(--t-line); border-radius: 15px; color: var(--t-ink); font-size: 12.5px; font-weight: 600; }
.tour-guide .tour-x:hover { background: var(--t-wash); }
.tour-guide-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 18px 18px; display: grid; gap: 18px; }
.tour-what { display: grid; gap: 6px; font-size: 13.5px; line-height: 1.6; }
.tour-what p + p { color: var(--t-ink-2); font-size: 13px; }
.tour-h { margin-bottom: 8px !important; font-size: 12px !important; font-weight: 700 !important; color: var(--t-ink-2) !important; }
.tour-tries { display: grid; gap: 2px; margin: 0 -8px !important; }
.tour-try { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0 10px; padding: 8px; border-radius: 8px; color: var(--t-ink); }
a.tour-try:hover { background: var(--t-wash); }
.tour-try i { grid-row: 1 / span 2; width: 22px; height: 22px; border-radius: 50%; background: var(--t-dark); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 700; line-height: 22px; text-align: center; }
.tour-try b { font-size: 13.5px; font-weight: 600; line-height: 22px; }
.tour-try span { font-size: 12.5px; line-height: 1.5; color: var(--t-ink-2); }
.tour-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.tour-btn { display: inline-flex !important; align-items: center; gap: 6px; height: 34px; padding: 0 13px !important; border: 1px solid var(--t-line) !important; border-radius: 17px !important; background: #fff; color: var(--t-ink) !important; font-size: 12.5px !important; font-weight: 600 !important; white-space: nowrap; }
.tour-btn:hover { background: var(--t-wash) !important; }
.tour-btn svg { width: 13px; height: 13px; }
.tour-btn.is-dark { border-color: var(--t-dark) !important; background: var(--t-dark) !important; color: #fff !important; }
.tour-btn.is-dark:hover { background: #000 !important; }
.tour-sub { margin-top: 6px !important; font-size: 12.5px; line-height: 1.5; color: var(--t-ink-2); }
.tour-note { padding: 12px 14px; border-radius: 8px; background: var(--t-wash); }
.tour-note b { display: block; margin-bottom: 3px; font-size: 13px; font-weight: 700; }
.tour-note p { font-size: 12.5px; line-height: 1.55; color: var(--t-ink-2); }
.tour-temp { margin-bottom: 10px !important; font-size: 13px; line-height: 1.6; color: var(--t-ink); }
.tour-temps { display: grid; gap: 6px; }
.tour-temps li { position: relative; padding-left: 12px !important; font-size: 12.5px; line-height: 1.55; color: var(--t-ink-2); }
.tour-temps li::before { content: ""; position: absolute; left: 0; top: .62em; width: 4px; height: 4px; background: var(--t-accent); }
.tour-temps li b { font-weight: 600; color: var(--t-ink); }

@media (max-width: 900px) {
  .tour-guide.is-admin { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
}
@media (max-width: 767px) {
  .tour-guide { left: 0; right: 0; bottom: calc(40px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: none; max-height: 76vh; max-height: 76dvh; border-width: 1px 0 0; border-radius: 14px 14px 0 0; box-shadow: 0 -12px 36px rgba(0, 0, 0, .22); }
}

/* ───────── 설명 영상 ───────── */
.tour-film, .tour-phone { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 15, 16, .88); color: #fff; }
.tour-film-box { width: min(1120px, 100%); overflow: hidden; background: #161616; border-radius: 12px; box-shadow: 0 24px 70px rgba(0, 0, 0, .5); }
.tour-film-top { display: flex; align-items: stretch; justify-content: space-between; gap: 8px; padding: 8px 10px; }
.tour-tabs { display: flex; gap: 4px; min-width: 0; }
.tour-tabs button { display: grid; gap: 1px; padding: 7px 14px; border-radius: 8px; color: rgba(255, 255, 255, .62); text-align: left; }
.tour-tabs button b { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.tour-tabs button span { font-size: 12px; line-height: 1.35; }
.tour-tabs button:hover { color: #fff; }
.tour-tabs button[aria-selected="true"] { background: #3A3A3D; color: #fff; }
.tour-tabs button:disabled { color: rgba(255, 255, 255, .34); cursor: default; }
.tour-film .tour-x, .tour-phone .tour-x { flex: none; padding: 0 14px; border-radius: 8px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 13px; font-weight: 600; }
.tour-film .tour-x:hover { background: rgba(255, 255, 255, .2); }
.tour-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: calc(100vh - 110px); background: #000; border: 0; }

/* ───────── 휴대폰 화면으로 보기 (PC에서만) ───────── */
.tour-phone { gap: 36px; padding: 24px; }
.tour-phone-wrap { flex: none; }
.tour-phone-frame { width: 410px; height: 864px; padding: 10px; border-radius: 46px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 24px 70px rgba(0, 0, 0, .55); transform-origin: top left; }
.tour-phone-frame iframe { display: block; width: 390px; height: 844px; border: 0; border-radius: 36px; background: #fff; }
.tour-phone-side { width: 236px; }
.tour-phone-side h3 { margin-bottom: 8px !important; font-size: 20px !important; font-weight: 700 !important; letter-spacing: -.02em; color: #fff !important; }
.tour-phone-side p { margin-bottom: 18px !important; font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .74) !important; }
.tour-phone-qr { margin-bottom: 16px; padding: 14px; border-radius: 12px; background: #fff; color: #393734; }
.tour-phone-qr img { display: block; width: 164px; height: 164px; margin: 0 auto 10px; }
.tour-phone-qr span { display: block; font-size: 12.5px; line-height: 1.5; }
.tour-phone .tour-x { width: 100%; height: 40px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 20px; background: transparent; }
.tour-phone .tour-x:hover { background: #fff; color: #161616; }

@media (max-width: 767px) {
  .tour-film { padding: 0; }
  .tour-film-box { border-radius: 0; }
  .tour-tabs button { padding: 6px 10px; }
  .tour-tabs button span { display: none; }
}

/* 영상·휴대폰 보기가 열려 있는 동안 뒤 화면이 따라 움직이지 않게 */
html.tour-lock, html.tour-lock body { overflow: hidden; }
/* 틀(휴대폰 보기·관리자 미리보기) 안에서는 도구를 다시 띄우지 않고, 스크롤 막대도 숨긴다 */
html.tour-in-frame { scrollbar-width: none; }
html.tour-in-frame::-webkit-scrollbar { display: none; }
html.tour-in-frame [data-tour-ui] { display: none !important; }
@media print { [data-tour-ui] { display: none !important; } }
