/* wedding.lialoa.com — 심플/직관/버튼 최적화 */
:root {
  --accent: #d6336c;
  --accent-dark: #b02a5b;
  --ink: #212529;
  --ink-soft: #495057;
  --ink-faint: #868e96;
  --line: #e9ecef;
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --badge-live: #0ca678;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ── 헤더 ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.logo { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.logo em { color: var(--accent); font-style: normal; }
.header-cta {
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
  padding: 9px 16px; border-radius: 999px; white-space: nowrap;
}
.header-cta:active { background: var(--accent-dark); }

/* 지역 칩 내비 */
.region-nav {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px;
  max-width: 1080px; margin: 0 auto;
  -ms-overflow-style: none; scrollbar-width: none;
}
.region-nav::-webkit-scrollbar { display: none; }
.region-nav a {
  flex: 0 0 auto; font-size: 14px; font-weight: 600; color: var(--ink-soft);
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px;
}
.region-nav a.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── 히어로 ── */
.hero { padding: 36px 0 10px; text-align: center; }
.hero h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.hero .sub { margin-top: 8px; color: var(--ink-soft); font-size: 15px; }
.hero .stamp { margin-top: 6px; color: var(--ink-faint); font-size: 13px; }
.hero .stamp strong { color: var(--accent); font-weight: 700; }

/* ── 섹션 ── */
.section { padding: 26px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.section-head .more { font-size: 14px; font-weight: 600; color: var(--accent); }
.section-head .count { font-size: 14px; color: var(--ink-faint); font-weight: 500; margin-left: 6px; }

/* ── 카드 그리드 ── */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff;
  transition: box-shadow .15s, transform .15s;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.09); transform: translateY(-2px); }
.poster { position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.dday {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
}
.dday.live { background: var(--badge-live); }
.dday.today { background: #f08c00; }
.hot {
  position: absolute; top: 10px; right: 10px;
  background: #212529; color: #ffd43b;
  font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
}
.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 16px; font-weight: 700; line-height: 1.35; }
.card-body .date { margin-top: 6px; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.card-body .addr {
  margin-top: 3px; font-size: 13px; color: var(--ink-faint);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.btn {
  margin-top: 12px; display: block; text-align: center;
  background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 700;
  padding: 12px 0; border-radius: 10px;
}
.card .btn { margin-top: auto; }
.card-body .btn { margin-top: 12px; }
.btn:active { background: var(--accent-dark); }

/* 컴팩트 리스트 (결혼박람회 페이지) */
.rows { border-top: 2px solid var(--ink); }
.row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 4px; border-bottom: 1px solid var(--line);
}
.row .r-date { flex: 0 0 92px; font-weight: 700; font-size: 14px; color: var(--accent); }
.row .r-main { flex: 1; min-width: 0; }
.row .r-main h3 { font-size: 15px; font-weight: 700; line-height: 1.35; }
.row .r-main p { font-size: 13px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .r-btn {
  flex: 0 0 auto; background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 700; padding: 9px 14px; border-radius: 8px; white-space: nowrap;
}

/* ── FAQ ── */
.faq details {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 10px; background: #fff;
}
.faq summary { font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; }
.faq summary::before { content: "Q. "; color: var(--accent); font-weight: 800; }
.faq details p { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }

/* ── 가이드 본문 ── */
.article { max-width: 720px; margin: 0 auto; padding: 36px 16px 48px; }
.article h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.35; }
.article .meta { margin: 10px 0 24px; color: var(--ink-faint); font-size: 13px; }
.article h2 { font-size: 20px; font-weight: 800; margin: 32px 0 10px; }
.article p, .article li { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 10px; }
.article ul, .article ol { padding-left: 22px; margin-bottom: 14px; }
.article .tip {
  background: #fff0f6; border-left: 4px solid var(--accent);
  padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 16px 0;
}
.article .tip p { margin: 0; }

/* ── 관련 링크 리스트 ── */
.rel-list { list-style: none; padding: 0 !important; }
.rel-list li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.rel-list a { color: var(--accent); font-weight: 700; }
.rel-date { color: var(--ink-faint); font-size: 13px; margin-left: 8px; }

/* ── 하단 고정 CTA (모바일) ── */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  display: none;
}
.sticky-cta .btn { margin: 0; font-size: 16px; padding: 14px 0; }
@media (max-width: 640px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 76px; }
  .hero h1 { font-size: 22px; }
}

/* ── 푸터 ── */
.site-footer {
  margin-top: 48px; padding: 28px 0 40px;
  background: var(--bg-soft); border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-faint);
}
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; }
.site-footer .links a { font-weight: 600; color: var(--ink-soft); }
.site-footer p { margin-bottom: 6px; }
