/* =========================================================================
 * 푸꾸옥 가족여행 · style.css
 * ========================================================================= */

:root {
  --primary: #0f7a8c;
  --primary-dark: #0b5f6e;
  --primary-light: #3ba3b3;
  --accent: #ff8c5a;
  --accent-dark: #f5713a;
  --sand: #fdf6ec;
  --sand-2: #f7ecd9;
  --ink: #23303a;
  --ink-soft: #5a6b74;
  --line: #e6ddca;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(15, 122, 140, 0.08);
  --shadow: 0 8px 24px rgba(15, 122, 140, 0.12);
  --shadow-lg: 0 16px 44px rgba(15, 122, 140, 0.18);
  --radius: 16px;
  --radius-lg: 20px;
  --radius-sm: 12px;
  --nav-h: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif { font-family: 'Gowun Batang', 'Noto Sans KR', serif; }

a { color: inherit; text-decoration: none; }

/* ---------------- 버튼 공통 ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; cursor: pointer; font-family: inherit;
  font-size: 0.9rem; font-weight: 500;
  padding: 10px 16px; border-radius: 999px;
  transition: all 0.2s ease; white-space: nowrap;
}
.btn-sm { padding: 6px 12px; font-size: 0.82rem; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: rgba(0,0,0,0.05); }

/* ---------------- 네비게이션 ---------------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(253, 246, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
}
.nav-brand { display: flex; align-items: center; gap: 9px; font-size: 1.1rem; color: var(--primary); }
.nav-brand i { color: var(--accent); }
.nav-brand b { font-weight: 900; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 12px; border-radius: 999px; font-size: 0.9rem; font-weight: 500;
  color: var(--ink-soft); transition: all 0.15s;
}
.nav-links a:hover { background: rgba(15,122,140,0.1); color: var(--primary); }
.nav-toggle {
  display: none; background: none; border: none; font-size: 1.4rem;
  color: var(--primary); cursor: pointer;
}

/* ---------------- 히어로 ---------------- */
.hero {
  position: relative; min-height: 82vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; overflow: hidden;
  margin-top: var(--nav-h);
  background: linear-gradient(135deg, #0f7a8c 0%, #13a0b0 45%, #ff8c5a 130%);
}
.hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.22) 1.5px, transparent 1.5px);
  background-size: 22px 22px; opacity: 0.5;
}
.hero-content { position: relative; z-index: 2; padding: 40px 20px; max-width: 680px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  letter-spacing: 3px; font-size: 0.8rem; font-weight: 700;
  background: rgba(255,255,255,0.18); padding: 6px 16px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero-title { font-size: clamp(2.4rem, 8vw, 4rem); font-weight: 700; line-height: 1.2; text-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.hero-sub { font-size: clamp(1rem, 3.4vw, 1.35rem); margin-top: 14px; opacity: 0.95; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px;
}
.hero-meta span {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.16); padding: 9px 18px; border-radius: 999px;
  font-size: 0.92rem; backdrop-filter: blur(4px);
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 34px;
  background: #fff; color: var(--primary); font-weight: 700;
  padding: 13px 28px; border-radius: 999px; box-shadow: var(--shadow-lg);
  transition: all 0.2s;
}
.hero-cta:hover { transform: translateY(-2px); }
.hero-cta i { animation: bounce 1.6s infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(4px)} }

/* ---------------- 섹션 공통 ---------------- */
.section { max-width: 1160px; margin: 0 auto; padding: 68px 18px; }
.section-alt { background: var(--sand-2); max-width: none; }
.section-alt > * { max-width: 1160px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-tag {
  display: inline-block; letter-spacing: 2px; font-size: 0.72rem; font-weight: 700;
  color: var(--accent); background: rgba(255,140,90,0.12);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 12px;
}
.section-title { font-size: clamp(1.6rem, 5vw, 2.2rem); color: var(--primary-dark); }
.section-title i { color: var(--accent); margin-right: 6px; }
.section-desc { color: var(--ink-soft); margin-top: 10px; font-size: 0.98rem; }
.sub-head { color: var(--primary-dark); margin: 8px 0 18px; font-size: 1.15rem; }
.sub-head i { color: var(--accent); margin-right: 6px; }

/* ---------------- 카드 공통 ---------------- */
.card, .ov-card, .place-card, .share-card, .activity-slot,
.member-card, .outdoor-card, .day-card, .note-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}

/* ---------------- 개요 ---------------- */
.member-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 36px;
}
.member-card { padding: 20px 12px; text-align: center; transition: transform 0.2s; }
.member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.member-icon {
  width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-size: 1.3rem;
}
.member-card .m-role { font-size: 0.8rem; color: var(--accent); font-weight: 700; }
.member-card .m-name { font-size: 1.15rem; font-weight: 700; margin: 2px 0; }
.member-card .m-sub { font-size: 0.76rem; color: var(--ink-soft); }

.overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ov-card { padding: 24px; }
.ov-card h3 { font-size: 1.1rem; color: var(--primary-dark); margin-bottom: 16px; }
.ov-card h3 i { color: var(--accent); margin-right: 6px; }
.period-big { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.period-line { color: var(--ink-soft); margin-top: 6px; font-size: 0.9rem; }
.hotel-item, .transport-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.hotel-item:last-child, .transport-item:last-child { border-bottom: none; }
.hotel-item i, .transport-item i {
  flex: 0 0 40px; height: 40px; border-radius: 10px; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,122,140,0.1); color: var(--primary);
}
.hotel-item .h-name, .transport-item .t-name { font-weight: 700; font-size: 0.96rem; }
.hotel-item .h-period { color: var(--accent); font-size: 0.82rem; font-weight: 500; }
.hotel-item .h-desc, .transport-item .t-desc { color: var(--ink-soft); font-size: 0.84rem; }

/* ---------------- 지도 ---------------- */
.map-toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 16px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 14px; }
.legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: 0.86rem; color: var(--ink-soft); }
.legend-dot { width: 14px; height: 14px; border-radius: 50%; }
#map {
  height: 460px; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  border: 1px solid var(--line); z-index: 1;
}
.map-hint { text-align: center; color: var(--ink-soft); font-size: 0.84rem; margin-top: 12px; }
.map-hint i { color: var(--primary); }
/* Leaflet 커스텀 마커 */
.num-marker {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); color: #fff; font-weight: 700; font-size: 0.9rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3); border: 2px solid #fff;
}
.num-marker span { transform: rotate(45deg); }
.num-marker.moved { border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.5); }
.leaflet-popup-content { font-family: 'Noto Sans KR', sans-serif; }
.popup-title { font-weight: 700; color: var(--primary-dark); font-size: 1rem; }
.popup-info { color: var(--ink-soft); font-size: 0.84rem; margin: 4px 0 8px; }
.popup-link { color: var(--accent-dark); font-weight: 700; font-size: 0.84rem; }

/* ---------------- 호텔 액티비티 ---------------- */
.cat-legend { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 24px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 7px; font-size: 0.84rem; font-weight: 500;
  padding: 7px 14px; border-radius: 999px; color: #fff;
}
.day-tabs, .checklist-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.day-tab {
  padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink-soft); font-family: inherit; font-size: 0.9rem;
  font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.day-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.activity-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.activity-slot { padding: 16px; display: flex; gap: 13px; align-items: flex-start; transition: all 0.2s; }
.activity-slot.checked { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(15,122,140,0.2); background: #f0fafb; }
.activity-slot label { display: flex; gap: 13px; cursor: pointer; width: 100%; }
.activity-slot input[type=checkbox] { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
.slot-body { flex: 1; min-width: 0; }
.slot-time { font-size: 0.8rem; font-weight: 700; color: var(--accent-dark); }
.slot-name-ko { font-weight: 700; font-size: 0.98rem; }
.slot-name-en { color: var(--ink-soft); font-size: 0.8rem; }
.slot-name-vi { color: var(--ink-soft); font-size: 0.76rem; font-style: italic; opacity: 0.8; }
.slot-cats { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.cat-badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 0.68rem; font-weight: 700;
  padding: 3px 8px; border-radius: 999px; color: #fff;
}
.outdoor-card { margin-top: 20px; padding: 20px; display: flex; gap: 16px; align-items: center; border-left: 4px solid var(--primary); }
.outdoor-card .oc-icon { font-size: 1.6rem; color: var(--primary); }
.outdoor-card .oc-time { font-size: 0.8rem; font-weight: 700; color: var(--accent-dark); }
.outdoor-card .oc-name { font-weight: 700; font-size: 1.02rem; }
.outdoor-card .oc-desc { color: var(--ink-soft); font-size: 0.86rem; }
.paid-details {
  margin-top: 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  padding: 4px 20px; box-shadow: var(--shadow-sm);
}
.paid-details summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--primary-dark); }
.paid-details summary i { color: var(--accent); margin-right: 6px; }
.paid-table { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; padding: 8px 0 14px; }
.paid-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 0.9rem; }
.paid-row .p-price { font-weight: 700; color: var(--primary); }
.tiny-note { color: var(--ink-soft); font-size: 0.76rem; padding-bottom: 12px; }

/* ---------------- 타임라인 ---------------- */
.timeline-toolbar, .map-toolbar { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; }
.timeline { display: flex; flex-direction: column; gap: 14px; }
.day-card { overflow: hidden; }
.day-header {
  display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer;
  user-select: none; transition: background 0.2s;
}
.day-header:hover { background: rgba(15,122,140,0.04); }
.day-header:focus-visible { outline: 3px solid var(--primary-light); outline-offset: -3px; }
.day-num {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff;
}
.day-num small { font-size: 0.6rem; opacity: 0.85; }
.day-num b { font-size: 1.2rem; line-height: 1; }
.day-header-text { flex: 1; min-width: 0; }
.day-date { font-size: 0.82rem; color: var(--accent-dark); font-weight: 700; }
.day-title { font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.day-chevron { color: var(--primary); font-size: 1.05rem; transition: transform 0.3s; }
.day-card.open .day-chevron { transform: rotate(180deg); }
.day-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.day-card.open .day-body { }
.day-body-inner { padding: 6px 22px 22px; }

.tl-item {
  display: flex; gap: 14px; padding: 14px 0; border-top: 1px dashed var(--line);
  position: relative;
}
.tl-item:first-child { border-top: none; }
.tl-time {
  flex: 0 0 62px; font-size: 0.82rem; font-weight: 700; color: var(--primary-dark);
  padding-top: 4px; text-align: right;
}
.tl-icon {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.95rem;
}
.tl-content { flex: 1; min-width: 0; }
.tl-tag {
  display: inline-flex; align-items: center; gap: 4px; font-size: 0.68rem; font-weight: 700;
  padding: 2px 9px; border-radius: 999px; color: #fff; margin-bottom: 5px;
}
.tl-title { font-weight: 700; font-size: 1rem; }
.tl-desc { color: var(--ink-soft); font-size: 0.88rem; margin-top: 2px; }
.tl-tip {
  margin-top: 7px; font-size: 0.82rem; color: var(--primary-dark);
  background: rgba(15,122,140,0.07); padding: 7px 12px; border-radius: 10px;
}
.tl-tip i { color: var(--accent); margin-right: 5px; }

/* 삽입된 호텔 액티비티 */
.tl-item.hotel-act { background: linear-gradient(90deg, rgba(8,145,178,0.07), transparent); border-radius: 10px; }
.tl-remove {
  position: absolute; top: 12px; right: 0; background: none; border: none;
  color: #c94b4b; cursor: pointer; font-size: 0.95rem; padding: 4px 8px; border-radius: 8px;
}
.tl-remove:hover { background: rgba(201,75,75,0.1); }
.split-badge {
  display: inline-block; font-size: 0.68rem; font-weight: 700; padding: 2px 9px;
  border-radius: 999px; margin-left: 6px;
}
.split-badge.resort { background: rgba(255,140,90,0.18); color: var(--accent-dark); }
.split-badge.all { background: rgba(16,185,129,0.18); color: #0a7c52; }

/* 분리일정 2단 */
.split-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.team-box { border-radius: 12px; padding: 13px; border: 1px solid var(--line); }
.team-box.a { background: rgba(22,163,74,0.06); border-color: rgba(22,163,74,0.25); }
.team-box.b { background: rgba(255,140,90,0.07); border-color: rgba(255,140,90,0.3); }
.team-label { font-size: 0.74rem; font-weight: 700; margin-bottom: 6px; }
.team-box.a .team-label { color: #16a34a; }
.team-box.b .team-label { color: var(--accent-dark); }
.team-title { font-weight: 700; font-size: 0.94rem; }
.team-title i { margin-right: 5px; }
.team-desc { color: var(--ink-soft); font-size: 0.82rem; margin-top: 2px; }

.day-note-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  font-size: 0.86rem; font-weight: 500; color: var(--primary);
  padding: 9px 16px; border-radius: 999px; background: rgba(15,122,140,0.08); cursor: pointer;
  border: none; font-family: inherit;
}
.day-note-link:hover { background: rgba(15,122,140,0.16); }

/* ---------------- 일정 편집 기능 ---------------- */
.timeline-toolbar-spacer { flex: 1 1 auto; min-width: 0; }
.btn-edit-toggle {
  background: #fff; color: var(--accent-dark); border: 1.5px solid var(--accent);
}
.btn-edit-toggle:hover { background: rgba(255,140,90,0.12); }
.btn-edit-toggle.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: var(--shadow-sm); }
.btn-reset { color: #c94b4b; }
.btn-reset:hover { background: rgba(201,75,75,0.1); }

/* 편집 모드일 때 항목 표시 */
.tl-item.editing { padding-right: 74px; }
.tl-item.editing:hover { background: rgba(15,122,140,0.04); border-radius: 10px; }
.tl-item.custom-item { background: linear-gradient(90deg, rgba(139,92,246,0.07), transparent); border-radius: 10px; }

/* 수정/삭제 액션 버튼 */
.tl-edit-actions {
  position: absolute; top: 12px; right: 0; display: flex; gap: 4px;
}
.tl-edit-btn, .tl-del-btn {
  background: #fff; border: 1px solid var(--line); cursor: pointer;
  width: 30px; height: 30px; border-radius: 8px; font-size: 0.82rem;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.tl-edit-btn { color: var(--primary); }
.tl-edit-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.tl-del-btn { color: #c94b4b; }
.tl-del-btn:hover { background: #c94b4b; color: #fff; border-color: #c94b4b; }

/* 인라인 편집 폼 */
.tl-edit-form {
  background: #fff; border: 1.5px solid var(--primary-light); border-radius: 14px;
  padding: 16px; margin: 8px 0; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 10px;
}
.tl-edit-form label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 0.78rem; font-weight: 700; color: var(--ink-soft);
}
.tl-edit-form input,
.tl-edit-form select,
.tl-edit-form textarea {
  font-family: inherit; font-size: 0.9rem; font-weight: 400; color: var(--ink);
  padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--sand); transition: border 0.15s; width: 100%;
}
.tl-edit-form input:focus,
.tl-edit-form select:focus,
.tl-edit-form textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.tl-edit-form textarea { resize: vertical; }
.ef-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ef-btns { display: flex; gap: 8px; margin-top: 2px; }

/* 분리일정 편집 폼 (팀 A / 팀 B) */
.ef-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ef-team {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px; border-radius: 12px; border: 1px solid var(--line);
}
.ef-team-a { background: rgba(22,163,74,0.06); border-color: rgba(22,163,74,0.25); }
.ef-team-b { background: rgba(255,140,90,0.07); border-color: rgba(255,140,90,0.3); }
.ef-team-head { font-size: 0.82rem; font-weight: 800; }
.ef-team-a .ef-team-head { color: #16a34a; }
.ef-team-b .ef-team-head { color: var(--accent-dark); }
.ef-team-head i { margin-right: 5px; }
.split-item.editing { padding-right: 74px; }
.split-edit-form { border-color: var(--accent); }
@media (max-width: 560px) {
  .ef-teams { grid-template-columns: 1fr; }
}

.day-add-btn {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  font-size: 0.86rem; font-weight: 600; color: var(--accent-dark);
  padding: 9px 16px; border-radius: 999px; background: rgba(255,140,90,0.1);
  border: 1.5px dashed var(--accent); cursor: pointer; font-family: inherit;
}
.day-add-btn:hover { background: rgba(255,140,90,0.2); }

@media (max-width: 560px) {
  .ef-row { grid-template-columns: 1fr; }
}

/* ---------------- 장소 카드 ---------------- */
.place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.place-card { padding: 20px; transition: transform 0.2s; display: flex; flex-direction: column; }
.place-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.place-icon {
  width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 1.3rem; margin-bottom: 12px;
}
.place-cat { font-size: 0.72rem; font-weight: 700; color: var(--accent-dark); letter-spacing: 1px; }
.place-name { font-size: 1.08rem; font-weight: 700; margin: 3px 0 10px; }
.place-meta { font-size: 0.84rem; color: var(--ink-soft); margin-bottom: 4px; }
.place-meta i { color: var(--primary); width: 18px; }
.place-tip { font-size: 0.82rem; color: var(--primary-dark); background: rgba(15,122,140,0.06); padding: 8px 11px; border-radius: 10px; margin: 10px 0; flex: 1; }
.place-map-link { font-size: 0.84rem; font-weight: 700; color: var(--accent-dark); margin-top: auto; }
.place-map-link i { margin-right: 5px; }

/* ---------------- 체크리스트 ---------------- */
.chk-tab {
  padding: 11px 22px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink-soft); font-family: inherit; font-weight: 500;
  cursor: pointer; transition: all 0.2s; font-size: 0.92rem;
}
.chk-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.progress-wrap { display: flex; align-items: center; gap: 14px; max-width: 640px; margin: 0 auto 26px; }
.progress-bar { flex: 1; height: 14px; background: #fff; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 0.5s ease; border-radius: 999px; }
.progress-text { font-weight: 700; color: var(--primary-dark); min-width: 44px; text-align: right; }
.chk-group { margin-bottom: 24px; }
.chk-group-title { font-size: 1.02rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 12px; }
.chk-group-title i { color: var(--accent); margin-right: 7px; }
.chk-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.chk-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: #fff;
  border-radius: 12px; border: 1px solid var(--line); cursor: pointer; transition: all 0.15s;
}
.chk-item:hover { border-color: var(--primary-light); }
.chk-item input { width: 19px; height: 19px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
.chk-item span { font-size: 0.9rem; }
.chk-item.done span { text-decoration: line-through; color: var(--ink-soft); }

/* ---------------- 공유 ---------------- */
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.share-card { padding: 26px 22px; text-align: center; }
.share-icon { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem; }
.share-card h3 { font-size: 1.08rem; color: var(--primary-dark); margin-bottom: 8px; }
.share-card p { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------------- 게시판 ---------------- */
.collab-grid { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
.note-form { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 24px; box-shadow: var(--shadow-sm); }
.note-form h3 { font-size: 1.1rem; color: var(--primary-dark); margin-bottom: 18px; }
.note-form h3 i { color: var(--accent); margin-right: 6px; }
.note-form label { display: block; font-size: 0.84rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 14px; }
.note-form input, .note-form select, .note-form textarea {
  width: 100%; margin-top: 6px; padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: 10px; font-family: inherit; font-size: 0.92rem; color: var(--ink);
  background: var(--sand); transition: border 0.15s;
}
.note-form input:focus, .note-form select:focus, .note-form textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.note-form textarea { resize: vertical; }
.note-form button { width: 100%; justify-content: center; margin-top: 4px; }

.note-list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.note-list-head h3 { font-size: 1.1rem; color: var(--primary-dark); }
.note-list-head h3 i { color: var(--accent); margin-right: 6px; }
.note-list { display: flex; flex-direction: column; gap: 12px; }
.note-empty { text-align: center; color: var(--ink-soft); padding: 40px 0; }
.note-card { padding: 16px 18px; }
.note-card.resolved { opacity: 0.62; }
.note-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.note-author { font-weight: 700; font-size: 0.94rem; }
.note-type-badge { font-size: 0.68rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; color: #fff; }
.note-day-badge { font-size: 0.7rem; padding: 2px 9px; border-radius: 999px; background: rgba(15,122,140,0.1); color: var(--primary); font-weight: 700; }
.note-time { font-size: 0.72rem; color: var(--ink-soft); margin-left: auto; }
.note-content { font-size: 0.9rem; color: var(--ink); white-space: pre-wrap; }
.note-content.resolved-text { text-decoration: line-through; }
.note-actions { margin-top: 10px; }
.note-resolve-btn {
  font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer; color: var(--ink-soft);
  font-family: inherit; transition: all 0.15s;
}
.note-resolve-btn:hover { border-color: #10b981; color: #10b981; }
.note-resolve-btn.done { background: #10b981; border-color: #10b981; color: #fff; }

/* ---------------- 푸터 ---------------- */
.footer { background: var(--primary-dark); color: #fff; text-align: center; padding: 40px 18px; }
.footer i { color: var(--accent); }
.footer-sub { opacity: 0.75; font-size: 0.86rem; margin-top: 8px; }

/* ---------------- 토스트 ---------------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(120px);
  background: var(--ink); color: #fff; padding: 13px 24px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 500; box-shadow: var(--shadow-lg); z-index: 2000;
  opacity: 0; transition: all 0.35s cubic-bezier(.2,.8,.2,1); pointer-events: none;
  display: flex; align-items: center; gap: 9px; max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast i { color: var(--accent); }

/* =========================================================================
 * 반응형
 * ========================================================================= */
@media (max-width: 980px) {
  .collab-grid { grid-template-columns: 1fr; }
  .member-grid { grid-template-columns: repeat(3, 1fr); }
  .overview-grid { grid-template-columns: 1fr; }
  .share-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--sand);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links a { padding: 15px 20px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-toggle { display: block; }

  .member-grid { grid-template-columns: repeat(2, 1fr); }
  .paid-table { grid-template-columns: 1fr; }
  .split-row { grid-template-columns: 1fr; }
  .activity-slots { grid-template-columns: 1fr; }
  .section { padding: 48px 16px; }
  #map { height: 360px; }
  .tl-time { flex-basis: 52px; font-size: 0.76rem; }
  .tl-item { gap: 10px; }
  .day-header { padding: 15px 16px; gap: 11px; }
  .day-body-inner { padding: 4px 16px 18px; }
  .outdoor-card { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .member-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-meta span { font-size: 0.82rem; padding: 7px 13px; }
  .chk-items { grid-template-columns: 1fr; }
}
