/* ==========================================================
   booking.css : 상담·예약 (page/include/sticky.php)
   PC 고정 버튼 / 모바일 하단 바 / 페이지 안 예약 레이어
========================================================== */
.mdock, .mbar, .mbk { --bk-ink: #121014; --bk-text: #4b4b52; --bk-muted: #8b8b94; --bk-line: #e9e7ee; --bk-accent: #844ad7; --bk-soft: #f6f5f8; font-family: 'Pretendard Variable', Pretendard, sans-serif; word-break: keep-all; }
.mdock button, .mbar button, .mbk button { font-family: inherit; cursor: pointer; }

/* 예전 버튼은 숨김 */
.quick-dock { display: none !important; }

/* ---- PC : 오른쪽 아래 버튼 3개 (카카오 · 네이버 · 전화) ---- */
.mdock { position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: max(28px, env(safe-area-inset-bottom)); z-index: 1500; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.mdock__group { display: flex; flex-direction: column; box-shadow: 0 14px 34px rgba(18, 16, 20, .22); }
.mdock__btn { box-sizing: border-box; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; width: 84px; height: 84px; padding: 0; border: 0; font-size: 14px; font-weight: 700; letter-spacing: -.02em; transition: filter .2s; }
.mdock__btn:hover { filter: brightness(.94); }
.mdock__btn svg, .mdock__btn .mc-icon { flex-shrink: 0; }
.mdock__btn--kakao { background: #fee500; color: #191919; }
.mdock__btn--naver { background: #03c75a; color: #fff; }
.mdock__btn--tel { background: var(--bk-ink); color: #fff; }
.mdock__btn--tel:hover { filter: none; background: #2a272e; }
.mdock__btn--tel .mc-icon { width: 28px; height: 28px; }
.mdock__btn--kakao svg { width: 30px; height: 30px; }
.mdock__btn--naver svg { width: 24px; height: 24px; }
/* 전화 : 마우스를 올리면 왼쪽에 번호 */
.mdock__tip { position: absolute; right: 100%; top: 0; display: flex; align-items: center; height: 100%; padding: 0 24px; background: var(--bk-ink); color: #fff; font-size: 20px; font-style: normal; font-weight: 700; letter-spacing: 0; white-space: nowrap; opacity: 0; visibility: hidden; transform: translateX(8px); transition: opacity .2s, transform .2s, visibility 0s .2s; pointer-events: none; }
.mdock__btn--tel:hover .mdock__tip, .mdock__btn--tel:focus-visible .mdock__tip { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
.mdock__top { box-sizing: border-box; display: grid; place-items: center; width: 84px; height: 48px; padding: 0; border: 1px solid var(--bk-line); border-radius: 0; background: rgba(255, 255, 255, .92); color: var(--bk-ink); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .3s, transform .3s, visibility 0s .3s; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.mdock.is-scrolled .mdock__top { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s; }
.mdock__top:hover { border-color: var(--bk-ink); }

/* ---- 모바일 : 하단 고정 바 ---- */
.mbar { display: none; }
@media screen and (max-width: 767px) {
	.mdock__group { display: none; }
	.mdock__top { width: 44px; }
	.mdock { right: 14px; bottom: calc(72px + env(safe-area-inset-bottom)); }
	.mbar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500;
		display: grid; grid-template-columns: 1fr 1fr 1.35fr;
		padding-bottom: env(safe-area-inset-bottom);
		background: #fff; border-top: 1px solid var(--bk-line);
		box-shadow: 0 -8px 24px rgba(18, 16, 20, .06);
	}
	.mbar__item { display: flex; align-items: center; justify-content: center; gap: 6px; height: 60px; padding: 0; border: 0; background: none; color: var(--bk-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
	.mbar__item + .mbar__item { border-left: 1px solid var(--bk-line); }
	.mbar__item .mc-icon { width: 19px; height: 19px; color: var(--bk-accent); }
	.mbar__item--main { background: var(--bk-ink); color: #fff; border-left: 0 !important; }
	.mbar__item--main .mc-icon { color: #fff; }
	html.has-mbar body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

/* ---- 예약 레이어 ---- */
.mbk-open, .mbk-open body { overflow: hidden; }
.mbk { position: fixed; inset: 0; z-index: 10001; }
.mbk[hidden] { display: none; }
.mbk__backdrop { position: absolute; inset: 0; background: rgba(12, 10, 16, .55); opacity: 0; transition: opacity .3s; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.mbk__panel {
	position: absolute; top: 0; right: 0; bottom: 0;
	display: flex; flex-direction: column;
	width: min(480px, 100%);
	background: #fff;
	box-shadow: -20px 0 60px rgba(0, 0, 0, .18);
	transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.mbk.is-open .mbk__backdrop { opacity: 1; }
.mbk.is-open .mbk__panel { transform: none; }
.mbk__head { display: flex; justify-content: space-between; align-items: flex-start; padding: 26px 28px 18px; }
.mbk__eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--bk-accent); }
.mbk__title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.03em; color: var(--bk-ink); }
.mbk__close { display: grid; place-items: center; width: 44px; height: 44px; margin: -6px -10px 0 0; padding: 0; border: 0; background: none; color: var(--bk-ink); }
.mbk__close .mc-icon { width: 22px; height: 22px; }
.mbk__tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 28px; border-bottom: 1px solid var(--bk-line); }
.mbk__tabs button { margin-bottom: -1px; padding: 14px 4px; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 15px; font-weight: 600; color: var(--bk-muted); transition: color .2s, border-color .2s; }
.mbk__tabs button[aria-selected="true"] { color: var(--bk-ink); border-bottom-color: var(--bk-ink); }
.mbk__body { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.mbk__pane { height: 100%; }
.mbk__pane[hidden] { display: none; }

/* 네이버 예약 */
.mbk__pane--naver { display: flex; flex-direction: column; }
.mbk__frame { position: relative; flex: 1 1 auto; min-height: 420px; background: var(--bk-soft); }
.mbk__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; opacity: 0; transition: opacity .3s; }
.mbk__frame.is-loaded iframe { opacity: 1; }
.mbk__loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; font-size: 14px; color: var(--bk-muted); }
.mbk__loading i { width: 28px; height: 28px; border: 2px solid var(--bk-line); border-top-color: var(--bk-accent); border-radius: 50%; animation: mbk-spin .8s linear infinite; }
.mbk__frame.is-loaded .mbk__loading { display: none; }
@keyframes mbk-spin { to { transform: rotate(360deg); } }
.mbk__note { margin: 0; padding: 12px 28px 16px; font-size: 13px; color: var(--bk-muted); border-top: 1px solid var(--bk-line); }
.mbk__note a { color: var(--bk-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* 카카오 / 전화 */
.mbk__card { padding: 36px 28px 40px; text-align: center; }
.mbk__card h3 { margin: 18px 0 10px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--bk-ink); }
.mbk__card > p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--bk-text); }
.mbk__kakao-mark { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 4px; background: #fee500; }
.mbk__btns { display: grid; gap: 8px; margin-top: 28px; }
.mbk__btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 54px; border: 1px solid transparent; border-radius: 4px; font-size: 16px; font-weight: 700; text-decoration: none; transition: background-color .2s, border-color .2s; }
.mbk__btn--kakao { background: #fee500; color: #191919; }
.mbk__btn--kakao:hover { background: #f5dc00; }
.mbk__btn--line { background: #fff; border-color: var(--bk-line); color: var(--bk-ink); }
.mbk__btn--line:hover { border-color: var(--bk-ink); }
.mbk__btn--dark { background: var(--bk-ink); color: #fff !important; }
.mbk__btn--dark:hover { background: var(--bk-accent); }
.mbk__btn .mc-icon { width: 18px; height: 18px; }
.mbk__qr { display: flex; align-items: center; gap: 18px; margin: 28px 0 0; padding: 18px; border: 1px solid var(--bk-line); text-align: left; }
.mbk__qr img { width: 92px; height: 92px; flex-shrink: 0; }
.mbk__qr figcaption { font-size: 13px; line-height: 1.6; color: var(--bk-text); }
.mbk__tel-label { margin: 0 0 6px !important; font-size: 13px !important; letter-spacing: .1em; color: var(--bk-muted) !important; }
.mbk__tel { display: block; font-size: 38px; font-weight: 800; letter-spacing: -.02em; color: var(--bk-ink); text-decoration: none; }
.mbk__btn--call { margin-top: 22px; }
.mbk__hours { margin: 30px 0 0; padding: 0; border-top: 1px solid var(--bk-ink); text-align: left; }
.mbk__hours div { display: grid; grid-template-columns: 84px 1fr; padding: 13px 2px; border-bottom: 1px solid var(--bk-line); font-size: 15px; }
.mbk__hours dt { font-weight: 600; color: var(--bk-ink); }
.mbk__hours dd { margin: 0; color: var(--bk-text); }
.mbk__hours small { margin-left: 4px; font-size: 12px; color: var(--bk-accent); }

@media screen and (max-width: 767px) {
	.mbk__panel { top: auto; width: 100%; height: 92vh; height: 92dvh; border-radius: 12px 12px 0 0; transform: translateY(100%); box-shadow: 0 -20px 60px rgba(0, 0, 0, .2); }
	.mbk__head { padding: 20px 20px 14px; }
	.mbk__tabs { margin: 0 20px; }
	.mbk__card { padding: 28px 20px 32px; }
	.mbk__qr { display: none; }
	.mbk__note { padding: 10px 20px calc(12px + env(safe-area-inset-bottom)); }
}
@media (min-width: 768px) { .mbk__btn--call { display: none; } }
@media (prefers-reduced-motion: reduce) { .mbk__panel, .mbk__backdrop, .mdock__btn, .mdock__tip, .mdock__top { transition: none; } }

#back-top { display: none !important; }
