/* ============ Pretendard (OFL-1.1) 로컬 폰트 ============ */
@font-face { font-family:"Pretendard"; font-weight:400; font-display:swap; src:url("../fonts/Pretendard-Regular.woff2") format("woff2"); }
@font-face { font-family:"Pretendard"; font-weight:500; font-display:swap; src:url("../fonts/Pretendard-Medium.woff2") format("woff2"); }
@font-face { font-family:"Pretendard"; font-weight:600; font-display:swap; src:url("../fonts/Pretendard-SemiBold.woff2") format("woff2"); }
@font-face { font-family:"Pretendard"; font-weight:700; font-display:swap; src:url("../fonts/Pretendard-Bold.woff2") format("woff2"); }

/* ============ 기본 ============ */
:root {
  --color-black:  #000000;
  --color-pink:   #ffbac1;
  --color-pink2:  #ffe0e3;
  --color-cream:  #fbfbfb;
  --color-text:   #181818;
  --color-yellow: #ffea00;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%; max-width: 400px; margin: 0 auto;
  background-color: var(--color-black); color: #fff;
  overflow-x: hidden;
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 15px; line-height: 1.6;
}
.section { position: relative; width: 100%; overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0; line-height: 1.4; }

/* ============ BGM 버튼 ============ */
#play-btn {
  background: transparent; border: none; cursor: pointer; padding: 0;
  position: fixed; top: 20px; right: 20px;
  width: 40px; height: 40px; z-index: 9999;
}
#play-btn img { width: 100%; height: 100%; }
.bgm-wrap { position: fixed; top: 20px; right: 20px; z-index: 9999; width: 40px; height: 40px; }
.bgm-btn { background: transparent; border: none; cursor: pointer; padding: 0; width: 40px; height: 40px; }
.bgm-btn img { width: 100%; height: 100%; }

/* ============ 갤러리 ============ */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.gallery-item { aspect-ratio: 3/4; overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-more-wrap { background: #fff; text-align: center; padding: 16px 0 70px; }
.gallery-more-btn { background: var(--color-text); color: #fff; border: none; border-radius: 5px; font-size: 14px; padding: 10px 46px; cursor: pointer; }

/* ============ 라이트박스 ============ */
.lb-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 10000; justify-content: center; align-items: center; touch-action: none; }
.lb-overlay.on { display: flex; }
.lb-overlay img { max-width: 95vw; max-height: 90vh; object-fit: contain; pointer-events: none; user-select: none; -webkit-user-select: none; touch-action: none; }
.lb-close { position: absolute; top: 16px; right: 20px; color: #fff; font-size: 28px; cursor: pointer; background: none; border: none; line-height: 1; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.7); font-size: 32px; cursor: pointer; background: none; border: none; padding: 10px; }
.lb-prev { left: 5px; }
.lb-next { right: 5px; }

/* ============ 네이버 지도 ============ */
#naver-map { width: 100%; height: 300px; }

/* ============ 토스트 ============ */
#link-toast { display: none; position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%); background: rgba(30,30,30,0.88); color: #fff; padding: 10px 24px; border-radius: 20px; font-size: 14px; font-weight: 500; z-index: 99999; pointer-events: none; white-space: nowrap; }

/* ============ 섹션 ============ */
#sec-main { background: var(--color-black); text-align: center; line-height: 0; }
#sec-main .date-info { padding: 20px 32px; font-size: 15px; color: #fff; line-height: 1.8; }
#sec-main .names { padding: 20px 32px; font-size: 15px; color: #fff; line-height: 2; }
.cover-wrap { width: 100%; line-height: 0; }
.cover-wrap .full-img { width: 100%; display: block; }

#sec-parents { background: var(--color-pink); text-align: center; padding-top: 62px; margin-bottom: 0; }
#sec-parents .parents-title { font-size: 15px; font-weight: bold; color: var(--color-text); }

#sec-gallery { background: #fff; }
#sec-calendar { background: var(--color-pink); }

#sec-map { background: var(--color-cream); color: var(--color-text); padding-bottom: 36px; }
#sec-map .addr-row { padding: 0 20px; margin: 0 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#sec-map .addr-row span { flex: 1; min-width: 0; }
#sec-map .addr-row p { margin: 0; font-size: 15px; line-height: 1.6; word-break: keep-all; }
#sec-map .addr-row p + p { margin-top: 2px; }
#map_btn { background: #f4879f; border: none; border-radius: 25px; font-size: 13px; padding: 8px 20px; cursor: pointer; white-space: nowrap; flex-shrink: 0; align-self: center; color: #181818; }
.divider { margin: 12px 20px; border: none; border-top: 1px solid rgba(0,0,0,.08); }
#sec-map .transport { padding: 0 20px; margin: 0 0 20px; font-size: 15px; color: var(--color-text); line-height: 1.8; }
#sec-map .flower-notice { margin: 4px 20px 0; padding: 16px 18px; background: #fff4f6; border-radius: 12px; text-align: center; }
#sec-map .flower-notice .fn-title { font-size: 14px; font-weight: 600; color: var(--color-text); margin-bottom: 6px; }
#sec-map .flower-notice .fn-text { font-size: 13px; color: #8a8a8a; line-height: 1.85; word-break: keep-all; }

#sec-share { background: var(--color-cream); color: var(--color-text); padding: 30px 32px; text-align: center; }
.kakao-btn { display: inline-block; background: var(--color-yellow); color: var(--color-text); border: none; border-radius: 5px; font-size: 14px; padding: 12px 30px; cursor: pointer; margin: 0; }
#url_copy { display: inline-block; background: var(--color-text); color: #fff; border: none; border-radius: 5px; font-size: 14px; padding: 12px 22px; cursor: pointer; margin: 0; }

/* ============ 마음 전하실 곳 (계좌, /heart 페이지 전용) ============ */
#sec-account { background: var(--color-pink2); color: var(--color-text); padding: 60px 0 20px; }
#sec-account .acct-title { display: block; margin: 0 auto 11px; max-width: 90%; }
#sec-account ul { list-style: none; padding: 0 20px; margin: 0 0 20px; }
#sec-account ul h6 { font-weight: bold; border-bottom: 1px solid var(--color-text); padding-bottom: 4px; margin-bottom: 8px; font-size: 16px; line-height: 2; }
#sec-account ul li { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 15px; }
#sec-account ul li span { display: flex; flex-direction: column; gap: 4px; }
#sec-account ul li p { margin: 0; line-height: 1.5; }
#sec-account ul li button { background: var(--color-text); color: #fff; border: none; border-radius: 25px; font-size: 13px; padding: 8px 20px; cursor: pointer; white-space: nowrap; flex-shrink: 0; }

/* ============ 인라인 오버라이드 (원본 index <style> 병합, 맨 뒤 유지) ============ */
#sec-map { background-color: #ffffff !important; }
#map_btn { background-color: #f4879f !important; color: #181818 !important; }
#sec-parents { background: none !important; background-color: transparent !important; padding: 0 !important; margin: 0 !important; }
#sec-parents .parents-title { display: none !important; }
