/* ═══════════════════════════════════════════════════════════════
   놀고팜 × 고향사랑기부 통합 v2 시안 — 공용 스타일
   토큰: 기획서 08 디자인 시스템 (LOCKED) · README §1
   여행=그린 #2e7d32 · 기부=블루 #1565c0 · 강조 주황 절제
   ═══════════════════════════════════════════════════════════════ */
:root{
  --bg:#fff; --bg-subtle:#f6f7f5; --text:#1a1f1a; --text-muted:#5b6660; --border:#e3e6e1;
  --brand-travel:#2e7d32;   /* 로컬여행 도메인 */
  --brand-donation:#1565c0; /* 고향사랑기부 도메인 */
  --accent:#e8590c;         /* 핵심 CTA만, 절제 */
  --success:#2e7d32; --success-bg:#eaf5ea;
  --warning:#b26a00; --warning-bg:#fbf2e3;
  --danger:#c62828;  --danger-bg:#fbeaea;
  --info:#1565c0;    --info-bg:#e9f1fb;
  --radius-card:8px; /* 히어로·대형 블록만 12px */
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:'Pretendard',-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo",sans-serif;
  -webkit-font-smoothing:antialiased;color:var(--text);background:var(--bg);
  font-size:16px;line-height:1.65;word-break:keep-all}
a{text-decoration:none;color:inherit}
img{max-width:100%}
button{font-family:inherit;cursor:pointer}
.num{font-variant-numeric:tabular-nums}

/* ── GNB (LOCKED: 로컬여행 · 고향사랑기부 · 콘텐츠 · 마이페이지 + 통합검색 · 고객센터) ── */
.gnb{display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:0 24px;height:64px;border-bottom:1px solid var(--border);background:#fff;
  position:sticky;top:0;z-index:50}
.gnb-l{display:flex;align-items:center;gap:28px;min-width:0}
.gnb-l>a:first-child{flex-shrink:0;display:block}
.gnb-l img{height:24px;width:auto;max-width:none;display:block}
.gnb-nav{display:flex;gap:22px;font-size:16px;font-weight:600;color:#3d4540;overflow-x:auto}
.gnb-nav a{padding:20px 0;white-space:nowrap}
.gnb-nav a.on-travel{color:var(--brand-travel);border-bottom:2px solid var(--brand-travel)}
.gnb-nav a.on-donation{color:var(--brand-donation);border-bottom:2px solid var(--brand-donation)}
.gnb-r{display:flex;align-items:center;gap:14px;flex-shrink:0}
.gnb-search{display:inline-flex;align-items:center;gap:8px;background:var(--bg-subtle);
  border:1px solid var(--border);border-radius:8px;padding:9px 14px;font-size:15px;
  color:var(--text-muted);width:230px}
.gnb-r .cs{font-size:14px;font-weight:600;color:var(--text-muted)}
.gnb-r .login{font-size:14px;font-weight:700;color:var(--brand-donation)}
@media(max-width:860px){
  .gnb{height:54px;padding:0 16px;gap:10px}
  .gnb-l{gap:14px}
  .gnb-l img{height:21px}
  .gnb-nav{display:none} /* 모바일은 하단 탭바가 주 내비게이션 */
  .gnb-search{width:auto;padding:8px 10px;border-radius:999px}
  .gnb-search .q{display:none}
  .gnb-r{gap:12px}
  .gnb-r .cs{display:none}
}

/* ── 모바일 하단 탭바 (모바일 퍼스트 주 내비게이션) ── */
.tabbar{position:fixed;bottom:0;left:0;right:0;z-index:60;display:flex;background:rgba(255,255,255,.97);
  backdrop-filter:blur(8px);border-top:1px solid var(--border);
  padding:7px 4px calc(7px + env(safe-area-inset-bottom))}
.tabbar .tb{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;
  font-size:10.5px;font-weight:600;color:#9aa19b;min-width:0}
.tabbar .tb svg{width:22px;height:22px}
.tabbar .tb.on{color:var(--text);font-weight:700}
.tabbar .tb.on-t{color:var(--brand-travel);font-weight:700}
.tabbar .tb.on-d{color:var(--brand-donation);font-weight:700}
@media(min-width:861px){.tabbar{display:none}}
@media(max-width:860px){body{padding-bottom:68px}}

/* ── 고향사랑기부 서브브랜드 로고타입 (README §2 · 추천 A) ──
   Jua체 · 글자별 블루 램프 6단계 · 1px 오프셋(향+1/랑-1/부+1)
   하트 #0d47a1, 14° 회전, '부' 오른쪽 어깨(상표 자리) */
.ghsr{display:inline-flex;align-items:flex-start}
.ghsr .jl{font-family:'Jua',sans-serif;line-height:1;display:inline-flex}
.ghsr .jl span:nth-child(1){color:#1E88E5}
.ghsr .jl span:nth-child(2){position:relative;top:.06em;color:#1A78D0}
.ghsr .jl span:nth-child(3){color:#1565C0}
.ghsr .jl span:nth-child(4){position:relative;top:-.06em;color:#1157AE}
.ghsr .jl span:nth-child(5){color:#0F4E9C}
.ghsr .jl span:nth-child(6){position:relative;top:.06em;color:#0d47a1}
.ghsr svg{width:.55em;height:.55em;margin-left:.12em;transform:translateY(-.08em) rotate(14deg);flex-shrink:0}

/* ── 레이아웃 (PC 폭 체계 — 탭 페이지는 1128px로 통일) ──
   .page-wide   : 홈·콘텐츠·문서 — 1128px
   .page-narrow : 결제·완료·인증 플로우 — 모바일 풀폭 / 데스크탑 중앙 카드 520px
   .page-mid    : 검색·아티클·지역허브 — 모바일 풀폭 / 데스크탑 760px
   .page-list   : 리스트 탭(여행·답례품·지정기부) — 모바일 풀폭 / 데스크탑 1128px
   .page-detail : 상품 상세 — 모바일 1단 / 데스크탑 2컬럼 1128px */
.page-wide{max-width:1128px;margin:0 auto;padding:0 20px 100px}
.page-narrow{max-width:480px;margin:0 auto;padding:0 0 28px;background:#fff}
.page-mid{max-width:480px;margin:0 auto;padding:0 0 40px;background:#fff}
.page-list{max-width:480px;margin:0 auto;padding:0 0 40px;background:#fff}
.page-detail{max-width:480px;margin:0 auto;padding:0 0 28px;background:#fff}
@media(min-width:861px){
  body:has(.page-narrow){background:var(--bg-subtle)}
  .page-narrow{max-width:520px;margin:40px auto 100px;border:1px solid var(--border);
    border-radius:12px;box-shadow:0 10px 32px rgba(26,31,26,.07);overflow:hidden}
  .page-mid{max-width:760px;padding:8px 0 90px}
  .page-list{max-width:1128px;padding:8px 4px 90px}
  .page-detail{max-width:1128px;padding:36px 24px 100px}
  .detail-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:40px;align-items:start}
  .d-left{position:sticky;top:88px}
  .d-left .hero{height:440px !important;border-radius:12px;border:1px solid var(--border);overflow:hidden}
}
.mobile-topbar{padding:16px 20px 13px;display:flex;align-items:center;gap:11px;
  border-bottom:1px solid var(--border);background:#fff;position:sticky;top:54px;z-index:40}
@media(min-width:861px){
  .mobile-topbar{position:static}
  .page-mid .mobile-topbar,.page-list .mobile-topbar{border-bottom:none;padding-top:26px}
}
.mobile-topbar .ttl{font-size:18px;font-weight:700}
.mobile-topbar .route{margin-left:auto;font-size:12px;color:var(--text-muted)}

/* ── 리스트 그리드 ── */
.g-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:14px 20px 8px}
.c-grid{display:flex;flex-direction:column;gap:13px;padding:14px 20px 8px}
.t-list{padding:8px 20px 18px;display:flex;flex-direction:column;gap:14px}
@media(min-width:861px){
  .g-grid{grid-template-columns:repeat(4,1fr);gap:18px;padding:20px 20px 8px}
  .c-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding:20px 20px 8px}
  .g-grid .thumb{height:170px !important}
  /* 여행 리스트: 데스크탑 2컬럼 가로형 카드 (1128px 폭 통일) */
  .t-list{display:grid;grid-template-columns:1fr 1fr;gap:16px 22px;padding:20px 20px 8px}
  .t-list>a{border:1px solid var(--border);border-radius:8px;padding:14px 16px;
    transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
  .t-list>a:hover{border-color:#c6cec7;box-shadow:0 8px 22px rgba(26,31,26,.09);transform:translateY(-2px)}
}

/* ── 상세 본문 (detail-grid 아래 소개·후기 등) ── */
.detail-body{padding:6px 0 0}
.dsec{padding:20px 20px 4px}
.dsec h2{font-size:17px;font-weight:700;margin-bottom:11px;letter-spacing:-.01em}
.review{border:1px solid var(--border);border-radius:8px;padding:13px 15px;margin-bottom:9px}
@media(min-width:861px){
  .detail-body{max-width:760px;margin:34px auto 0;border-top:1px solid var(--border);padding-top:10px}
}

/* ── 마이페이지 대시보드 (데스크탑 2컬럼) ── */
.my-grid{display:flex;flex-direction:column}
@media(min-width:861px){
  .page-mid.my{max-width:1128px} /* GNB 메인 탭 — 로컬여행·기부·콘텐츠와 폭 통일 */
  .my-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px 44px;align-items:start}
}

/* ── 소형 모바일 (320~374px) 사용성 보정 ── */
@media(max-width:374px){
  .hero-h1{font-size:22px}
  .g-grid{gap:10px}
  .tabbar .tb{font-size:10px;gap:2px}
  .tabbar .tb svg{width:20px;height:20px}
  .gnb-l img{height:19px}
  .btn{font-size:15px;padding:13px 18px}
}

/* ── 버튼 ── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:none;
  border-radius:var(--radius-card);font-size:16px;font-weight:700;padding:14px 24px;color:#fff}
.btn-travel{background:var(--brand-travel)}
.btn-donation{background:var(--brand-donation)}
.btn-outline{background:#fff;color:var(--text);border:1px solid var(--border);font-weight:600}
.btn-block{width:100%}

/* ── 카드 그리드 (반응형) ── */
.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
@media(max-width:1020px){.grid4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.grid4,.grid2{grid-template-columns:1fr}}
.card{border:1px solid var(--border);border-radius:var(--radius-card);overflow:hidden;background:#fff;display:block}
.card .thumb{background:var(--bg-subtle);overflow:hidden}
.card .thumb img{width:100%;height:100%;object-fit:cover;display:block}

/* ── 상태 뱃지 (색+텍스트+아이콘 병행 — 색만으로 상태 표시 금지) ── */
.badge{display:inline-flex;align-items:center;gap:5px;padding:6px 12px;border-radius:4px;
  font-size:13px;font-weight:700}
.badge-ok{background:var(--success-bg);color:var(--success)}
.badge-wait{background:var(--warning-bg);color:var(--warning)}
.badge-fail{background:var(--danger-bg);color:var(--danger)}
.badge-off{background:var(--bg-subtle);color:var(--text-muted)}

/* ── 섹션 헤더 ── */
.sec-h{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:16px}
.sec-h h2{font-size:22px;font-weight:700;letter-spacing:-.01em}
.sec-h .more{font-size:14px;font-weight:600;color:var(--text-muted)}

/* ── 허브(index) ── */
.hub-grp{font-size:13px;font-weight:800;letter-spacing:.05em;color:var(--text-muted);
  text-transform:uppercase;margin:34px 0 12px}
.hub-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media(max-width:1020px){.hub-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.hub-grid{grid-template-columns:1fr}}
.hub-card{border:1px solid var(--border);border-radius:var(--radius-card);padding:18px 20px;
  background:#fff;display:block;transition:border-color .15s}
.hub-card:hover{border-color:#b9c4ba}
.hub-card .fr{font-size:11px;font-weight:700;color:var(--text-muted);background:var(--bg-subtle);
  border:1px solid var(--border);padding:3px 8px;border-radius:999px;display:inline-block;margin-bottom:9px}
.hub-card .nm{font-size:16px;font-weight:700;margin-bottom:4px}
.hub-card .ds{font-size:13.5px;color:var(--text-muted);line-height:1.55}

/* ── 홈 히어로 (모바일 퍼스트) ── */
.hero-h1{font-size:32px;font-weight:700;letter-spacing:-.02em;line-height:1.3;margin-bottom:12px}
.hero-ctas{display:flex;gap:10px;flex-wrap:wrap}
.hero-img{width:420px;max-width:100%;height:260px;object-fit:cover;border-radius:12px;border:1px solid var(--border)}
@media(max-width:640px){
  .hero-h1{font-size:25px}
  .hero-ctas{flex-direction:column}
  .hero-ctas .btn{width:100%}
  .hero-img{width:100%;height:190px}
  .sec-h h2{font-size:19px}
}

/* ── 인터랙션 폴리시 ── */
.card,.hub-card{transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.card:hover,.hub-card:hover{border-color:#c6cec7;box-shadow:0 8px 22px rgba(26,31,26,.09);transform:translateY(-2px)}
.btn{transition:filter .14s ease,background .14s ease}
.btn-travel:hover,.btn-donation:hover{filter:brightness(1.08)}
.btn-outline:hover{background:var(--bg-subtle)}
.gnb-nav a{transition:color .14s ease}
.gnb-nav a:hover{color:var(--text)}
.gnb-search{transition:border-color .14s ease}
.gnb-search:hover{border-color:#c6cec7}
a:focus-visible,button:focus-visible{outline:2px solid var(--brand-donation);outline-offset:2px;border-radius:4px}

/* ── 가치 제안 스트립 (홈) ── */
.value-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;padding:22px 0 4px}
.value-strip .v{display:flex;gap:11px;align-items:flex-start;border:1px solid var(--border);border-radius:8px;padding:15px 16px;background:#fff}
.value-strip .v .ic{display:grid;place-items:center;width:38px;height:38px;border-radius:8px;flex-shrink:0}
.value-strip .v b{display:block;font-size:14.5px;margin-bottom:2px}
.value-strip .v span{font-size:12.5px;color:var(--text-muted);line-height:1.55}
@media(max-width:860px){.value-strip{grid-template-columns:1fr;gap:9px;padding:18px 0 0}}

/* ── 지역 카드 (홈 · 지역 허브 진입) ── */
.region-card{position:relative;border-radius:8px;overflow:hidden;height:150px;display:block;border:1px solid var(--border)}
.region-card img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.region-card:hover img{transform:scale(1.04)}
.region-card .ov{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.52));display:flex;align-items:flex-end;padding:12px 14px}
.region-card .ov b{color:#fff;font-size:15.5px}
.region-card .ov span{color:rgba(255,255,255,.85);font-size:12px;margin-left:auto}

/* ── 스토리(콘텐츠) 카드 ── */
.story-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
@media(max-width:1020px){.story-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.story-grid{grid-template-columns:1fr}}

/* ── FAQ 아코디언 (고객센터) ── */
.faq{border:1px solid var(--border);border-radius:8px;overflow:hidden;background:#fff}
.faq details{border-top:1px solid #f0f1ef}
.faq details:first-child{border-top:none}
.faq summary{display:flex;align-items:center;gap:10px;padding:15px 18px;font-size:15px;font-weight:600;cursor:pointer;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary .q{color:var(--brand-donation);font-weight:800}
.faq details[open] summary{background:var(--bg-subtle)}
.faq .a{padding:4px 18px 16px 44px;font-size:14px;line-height:1.7;color:#3d4540}

/* ── 리치 푸터 (완성형 서비스 푸터) ── */
.site-foot{border-top:1px solid var(--border);background:var(--bg-subtle);margin-top:70px}
.site-foot .in{max-width:1128px;margin:0 auto;padding:38px 20px 30px;display:grid;
  grid-template-columns:1.6fr 1fr 1fr 1fr;gap:28px}
.site-foot .col b{display:block;font-size:13px;margin-bottom:10px;color:var(--text)}
.site-foot .col a{display:block;font-size:13px;color:var(--text-muted);padding:3px 0}
.site-foot .col a:hover{color:var(--text)}
.site-foot .biz{font-size:12px;color:#8a918b;line-height:1.75;margin-top:12px}
.site-foot .base{border-top:1px solid var(--border);padding:14px 24px calc(18px + env(safe-area-inset-bottom));
  text-align:center;font-size:12px;color:#8a918b}
@media(max-width:860px){.site-foot .in{grid-template-columns:1fr 1fr;gap:20px;padding:28px 20px 20px}}

/* ── (구) 심플 푸터 ── */
.foot{border-top:1px solid var(--border);margin-top:60px;padding:26px 24px 40px;
  font-size:12.5px;color:var(--text-muted);line-height:1.7;text-align:center}
