/* ══════════════════════════════════════════════
   나이트 서브사이트 — 상세 페이지 (밝은 테마)
   도시의 밤을 지배하라 | 밤키
   ══════════════════════════════════════════════ */
:root {
  --bg: #FFFFFF;
  --bg-page: #F5F5F5;
  --bg-card: #FFFFFF;
  --text: #111111;
  --text-sub: #333333;
  --text-dim: #555555;
  --accent: #8B5CF6;
  --accent-hover: #7C3AED;
  --cyan: #06B6D4;
  --purple: #8B5CF6;
  --border: #D1D5DB;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.12);
  --radius: 16px;
  --font: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg-page); }
body {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.02em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-bottom: 100px;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ══════════ TOP BANNER ══════════ */
.bamki-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--purple);
  padding: 10px 16px;
  text-align: center;
}
.bamki-banner a { color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }

/* ══════════ NAV ══════════ */
.top-nav { background: #fff; border-bottom: 1px solid var(--border); }
.top-nav-inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 0 12px; }
.top-nav-inner::-webkit-scrollbar { display: none; }
.top-nav-link {
  flex-shrink: 0; padding: 10px 14px; font-size: 14px; font-weight: 600;
  color: var(--text-dim); text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color .2s;
}
.top-nav-link:hover { color: var(--text); }
.top-nav-link.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ══════════ DETAIL HERO ══════════ */
.detail-hero {
  padding: 40px 20px 32px;
  text-align: center;
  background: linear-gradient(180deg, #F8F7FF 0%, #FFFFFF 100%);
}
.detail-badge { display: inline-block; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px; padding: 3px 12px; border-radius: 999px; margin-bottom: 12px; }
.detail-hero h1 { font-size: 24px; font-weight: 900; color: var(--text); line-height: 1.3; margin-bottom: 10px; }
.detail-hook { font-size: 15px; color: var(--text-sub); line-height: 1.7; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.detail-tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: #F3F4F6; border: 1px solid #E5E7EB; color: var(--text-dim); }

/* ══════════ CONTENT SECTIONS ══════════ */
.detail-section { padding: 24px 20px; }
.detail-section-title {
  font-size: 18px; font-weight: 800; color: var(--text);
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
  border-left: 3px solid var(--accent); padding-left: 12px;
}
.detail-body { font-size: 16px; color: var(--text-sub); line-height: 1.8; }
.detail-body p { margin-bottom: 16px; }
.detail-body strong { color: var(--text); font-weight: 700; }

/* ══════════ INFO TABLE ══════════ */
.info-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.info-table th {
  text-align: left; padding: 10px 14px; font-size: 13px; font-weight: 600;
  color: var(--text-dim); background: #F9FAFB; border-bottom: 1px solid var(--border);
  width: 30%;
}
.info-table td {
  padding: 10px 14px; font-size: 14px; color: var(--text);
  border-bottom: 1px solid var(--border);
}

/* ══════════ SUMMARY LIST ══════════ */
.summary-list { list-style: none; padding: 0; }
.summary-list li {
  padding: 8px 0 8px 20px; font-size: 14px; color: var(--text-sub);
  border-bottom: 1px solid #F3F4F6; position: relative;
}
.summary-list li::before { content: ''; position: absolute; left: 0; top: 16px; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

/* ══════════ FAQ ══════════ */
.faq-item { border-bottom: 1px solid #F3F4F6; padding: 14px 0; }
.faq-q { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.faq-a { font-size: 14px; color: var(--text-sub); line-height: 1.7; }

/* ══════════ QUICK PLAN ══════════ */
.plan-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin-bottom: 10px; box-shadow: var(--shadow);
}
.plan-label { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: 1px; margin-bottom: 6px; }
.plan-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.plan-desc { font-size: 14px; color: var(--text-sub); line-height: 1.7; }

/* ══════════ BLURRED CONTENT ══════════ */
.blur-lock { position: relative; overflow: hidden; margin: 16px 0; }
.blur-content {
  filter: blur(6px); user-select: none; pointer-events: none;
  padding: 16px; background: #F9FAFB; border-radius: var(--radius);
  font-size: 14px; color: var(--text-sub); line-height: 1.7;
}
.blur-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.7); border-radius: var(--radius);
  text-align: center; padding: 20px;
}
.blur-overlay p { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.blur-btn {
  display: inline-block; padding: 10px 24px; background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 700; border-radius: 999px; text-decoration: none;
  transition: all .2s;
}
.blur-btn:hover { background: var(--accent-hover); }

/* ══════════ MID CTA ══════════ */
.mid-cta {
  margin: 20px 0; padding: 20px;
  background: #F8F7FF; border: 1px solid #E5E7EB;
  border-radius: var(--radius); text-align: center;
}
.mid-cta p { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.mid-cta a {
  display: inline-block; padding: 10px 24px; background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 700; border-radius: 999px; text-decoration: none;
}
.mid-cta a:hover { background: var(--accent-hover); }

/* ══════════ SIMILAR VENUES ══════════ */
.similar-section { padding: 20px; }
.similar-title { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.similar-cta {
  display: block; padding: 14px; text-align: center;
  background: #fff; border: 1px dashed var(--accent); border-radius: var(--radius);
  color: var(--accent); font-size: 14px; font-weight: 700; text-decoration: none;
}
.similar-cta:hover { background: #F8F7FF; }

/* ══════════ ACTION BUTTONS ══════════ */
.action-row { display: flex; gap: 8px; padding: 10px 20px; flex-wrap: wrap; }
.action-btn {
  flex: 1; min-width: 140px; padding: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  text-align: center; color: var(--text); font-size: 13px; font-weight: 700;
  text-decoration: none; transition: all .2s; box-shadow: var(--shadow);
}
.action-btn:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); }
.action-btn .icon { display: block; font-size: 20px; margin-bottom: 4px; }

/* ══════════ LARGE CTA ══════════ */
.large-cta {
  margin: 20px; padding: 28px 20px;
  background: linear-gradient(135deg, var(--purple), #6366F1);
  border-radius: var(--radius); text-align: center;
}
.large-cta-title { font-size: 18px; font-weight: 900; color: #fff; margin-bottom: 12px; line-height: 1.4; }
.large-cta-btn {
  display: inline-block; padding: 12px 32px; background: #fff; color: var(--accent);
  font-size: 15px; font-weight: 800; border-radius: 999px; text-decoration: none;
}
.large-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* ══════════ FOOTER ══════════ */
.detail-footer {
  background: #F9FAFB; border-top: 1px solid var(--border);
  padding: 28px 20px; text-align: center;
}
.detail-footer-copy { font-size: 12px; color: #595959; line-height: 1.7; }
.detail-footer-brand { font-size: 12px; font-weight: 700; letter-spacing: 4px; color: #595959; margin-bottom: 8px; }
.detail-footer-slogan { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.back-link { display: inline-block; margin-top: 12px; color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--accent-hover); }

/* ══════════ SLIDEUP POPUP ══════════ */
.slideup-popup {
  position: fixed; bottom: -100%; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: #fff; border-top: 2px solid var(--accent);
  padding: 20px; text-align: center;
  z-index: 900; transition: bottom .5s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}
.slideup-popup.show { bottom: 96px; }
.slideup-popup .close-btn {
  position: absolute; top: 8px; right: 12px;
  background: none; border: none; color: var(--text-dim); font-size: 20px; cursor: pointer;
}
.slideup-title { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.slideup-desc { font-size: 14px; color: var(--text-dim); margin-bottom: 12px; }
.slideup-btn {
  display: inline-block; padding: 10px 28px; background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 700; border-radius: 999px; text-decoration: none;
}

/* ══════════ SCROLL BANNER ══════════ */
.scroll-banner {
  position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 448px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  padding: 14px 20px; border-radius: var(--radius); text-align: center;
  z-index: 800; transition: bottom .4s ease;
  box-shadow: 0 4px 20px rgba(139,92,246,0.3);
}
.scroll-banner.show { bottom: 100px; }
.scroll-banner a { color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }

/* ══════════ MAP LINK ══════════ */
.map-link {
  display: block; padding: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  text-align: center; color: var(--accent); font-size: 14px; font-weight: 700;
  text-decoration: none; margin: 12px 0; box-shadow: var(--shadow);
}
.map-link:hover { background: #F8F7FF; box-shadow: var(--shadow-hover); }

/* ══════════ PHONE CTA ══════════ */
.phone-cta-box {
  background: #F8F7FF; border: 1px solid var(--accent);
  border-radius: var(--radius); padding: 20px; text-align: center; margin: 16px 0;
}
.phone-cta-label { font-size: 14px; color: var(--text-dim); font-weight: 600; margin-bottom: 4px; }
.phone-cta-phone {
  display: block; font-size: 26px; font-weight: 900; color: var(--accent);
  text-decoration: none; letter-spacing: 2px;
}
.phone-cta-phone:hover { color: var(--accent-hover); }

/* ══════════ FIXED BOTTOM BARS ══════════ */
.phone-bar {
  position: fixed;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 44px;
  background: #111;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  text-align: center;
  line-height: 44px;
  z-index: 49;
  text-decoration: none;
  display: block;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.phone-bar:hover { background: #222; }
.main-link-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 48px;
  background: #8B5CF6;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  line-height: 48px;
  z-index: 50;
  text-decoration: none;
  display: block;
}
.main-link-bar:hover { background: #7C3AED; }

/* ══════════ COMPARISON TABLE ══════════ */
.compare-table { width: 100%; border-collapse: collapse; margin: 16px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.compare-table th { padding: 10px 14px; font-size: 13px; font-weight: 700; color: #fff; background: var(--accent); text-align: left; }
.compare-table td { padding: 10px 14px; font-size: 14px; color: var(--text); border-bottom: 1px solid #F3F4F6; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-weight: 600; color: var(--text-dim); width: 30%; background: #F9FAFB; }

/* ══════════ INSIDER TIPS ══════════ */
.insider-tip { background: #FFF7ED; border-left: 3px solid #F59E0B; padding: 14px 16px; margin-bottom: 10px; border-radius: 0 12px 12px 0; }
.insider-tip strong { font-size: 14px; color: #92400E; display: block; margin-bottom: 4px; }
.insider-tip p { font-size: 14px; color: var(--text-sub); line-height: 1.7; margin: 0; }

/* ══════════ BEFORE/AFTER ══════════ */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ba-col { border-radius: 12px; padding: 14px; }
.ba-first { background: #FEF2F2; border: 1px solid #FECACA; }
.ba-regular { background: #F0FDF4; border: 1px solid #BBF7D0; }
.ba-label { font-size: 13px; font-weight: 800; margin-bottom: 10px; text-align: center; }
.ba-first .ba-label { color: #DC2626; }
.ba-regular .ba-label { color: #16A34A; }
.ba-item { font-size: 13px; color: var(--text-sub); line-height: 1.6; margin-bottom: 6px; }

/* ══════════ PHOTO STORY ══════════ */
.photo-gallery {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 4px 0;
}
.photo-gallery::-webkit-scrollbar { display: none; }
.photo-slide {
  flex-shrink: 0; width: 260px; height: 160px; border-radius: 16px;
  display: flex; align-items: flex-end; padding: 16px; scroll-snap-align: start;
  position: relative; overflow: hidden;
}
.photo-slide::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 60%;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
}
.photo-cap {
  position: relative; z-index: 1; color: #fff; font-size: 14px; font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5); margin: 0; line-height: 1.4;
}

/* ══════════ REVIEW HIGHLIGHT ══════════ */
.review-card {
  background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 16px;
  padding: 16px; margin-bottom: 10px;
}
.review-stars { font-size: 14px; color: #F59E0B; margin-bottom: 4px; }
.review-text { font-size: 15px; color: var(--text); line-height: 1.7; font-style: italic; margin-bottom: 6px; }
.review-author { font-size: 12px; color: var(--text-dim); font-weight: 600; }

/* ══════════ SECRET MENU ══════════ */
.secret-section { background: #1a1a2e; margin: 0; }
.secret-section .detail-section-title { color: #F59E0B; border-left-color: #F59E0B; }
.secret-card {
  background: rgba(255,255,255,0.05); border: 1px dashed #F59E0B; border-radius: 12px;
  padding: 16px; color: #E5E7EB; font-size: 15px; line-height: 1.7;
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════ TIME ATTACK ══════════ */
.time-attack {
  background: linear-gradient(135deg, #F8F7FF, #EEF2FF); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px; text-align: center;
}
.ta-icon { font-size: 28px; margin-bottom: 8px; }
.ta-count { font-size: 18px; color: var(--text); margin-bottom: 4px; }
.ta-count strong { color: var(--accent); font-size: 24px; }
.ta-sub { font-size: 13px; color: var(--text-dim); }

/* ══════════ MAP BOX ══════════ */
.map-box { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.map-embed {
  display: block; padding: 24px; background: linear-gradient(135deg, #1E3A5F, #0F172A);
  text-decoration: none; text-align: center;
}
.map-pin { font-size: 32px; margin-bottom: 8px; }
.map-name { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.map-addr { font-size: 13px; color: #94A3B8; margin-bottom: 8px; }
.map-dist { font-size: 14px; color: #06B6D4; font-weight: 600; }
.map-transport {
  display: flex; flex-direction: column; gap: 6px; padding: 12px 16px;
  background: #F9FAFB; font-size: 13px; color: var(--text-sub);
}
.map-transport span { display: block; }

/* ══════════ TOUCH TARGETS (최소 44px) ══════════ */
.top-nav-link { min-height: 44px; display: inline-flex; align-items: center; }
.action-btn { min-height: 44px; }
.faq-item { min-height: 44px; }
.phone-bar { min-height: 44px; }
.main-link-bar { min-height: 48px; }
a, button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.detail-body a, .summary-list a, .faq-a a { min-height: auto; display: inline; }

/* ══════════ [K1] SCROLL PROGRESS BAR ══════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ══════════ [K2] STICKY HIGHLIGHT ══════════ */
.sticky-highlight {
  position: fixed;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 448px;
  background: #FFF7ED;
  border: 2px solid #F59E0B;
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  z-index: 850;
  transition: bottom .5s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -4px 24px rgba(245,158,11,0.2);
}
.sticky-highlight.show { bottom: 100px; }
.sticky-highlight-icon { font-size: 24px; margin-bottom: 4px; }
.sticky-highlight-title { font-size: 15px; font-weight: 800; color: #92400E; margin-bottom: 4px; }
.sticky-highlight-desc { font-size: 13px; color: #78350F; line-height: 1.6; }
.sticky-highlight .close-sh {
  position: absolute; top: 6px; right: 10px;
  background: none; border: none; color: #92400E; font-size: 18px; cursor: pointer;
  min-height: auto; display: inline;
}

/* ══════════ [K4] EXIT POPUP ══════════ */
.exit-popup-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); z-index: 9990;
  display: none; align-items: center; justify-content: center;
}
.exit-popup-overlay.show { display: flex; }
.exit-popup {
  width: calc(100% - 40px); max-width: 400px;
  background: #fff; border-radius: 20px;
  padding: 28px 24px; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: exitBounce .4s ease;
}
@keyframes exitBounce {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}
.exit-popup-icon { font-size: 36px; margin-bottom: 8px; }
.exit-popup-title { font-size: 18px; font-weight: 900; color: var(--text); margin-bottom: 8px; }
.exit-popup-quote {
  font-size: 15px; color: var(--text-sub); line-height: 1.7;
  font-style: italic; margin-bottom: 16px; padding: 0 8px;
}
.exit-popup-btn {
  display: inline-block; padding: 12px 28px;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 700; border-radius: 999px;
  text-decoration: none; transition: all .2s;
}
.exit-popup-btn:hover { background: var(--accent-hover); }
.exit-popup .close-ep {
  display: block; margin-top: 12px;
  background: none; border: none; color: var(--text-dim);
  font-size: 13px; cursor: pointer; min-height: auto;
}

/* ══════════ [K5] READ TIME ══════════ */
.read-time {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  background: #F8F7FF; padding: 4px 14px; border-radius: 999px;
  border: 1px solid #E5E7EB;
  min-height: auto;
}
.read-time-icon { font-size: 14px; }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 380px) {
  .detail-hero { padding: 28px 14px 24px; }
  .detail-hero h1 { font-size: 20px; }
  .detail-section { padding: 20px 14px; }
  .action-btn { min-width: 120px; font-size: 12px; }
  .phone-cta-phone { font-size: 22px; }
}

/* ══════════ PC (768px+) ══════════ */
@media (min-width: 768px) {
  .scroll-banner.show { bottom: 100px; }
  .slideup-popup.show { bottom: 96px; }
}

/* ══════════ MOBILE — 바 겹침 방지 ══════════ */
@media (max-width: 767px) {
  .scroll-banner.show { bottom: 100px; }
  .slideup-popup.show { bottom: 96px; }
  #autoNext { bottom: 100px !important; }
  #engageBadge { position: static; }
}
