/* weddingzip.kr 통합 스타일시트 (지역 페이지 + 메인 + 공통) */

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --rose:        #E8537A;   /* 메인 로즈 */
      --rose-deep:   #C73862;   /* 진한 로즈 (강조) */
      --blush:       #FFF0F4;   /* 연한 블러시 배경 */
      --blush-2:     #FCE4EC;   /* 카드 보더용 */
      --cream:       #FBFBFD;   /* 페이지 배경 */
      --ink:         #2B2330;   /* 본문 텍스트 */
      --ink-soft:    #6A5F70;   /* 보조 텍스트 */
      --gold:        #C9A86A;   /* 포인트 골드 */
      --line:        #F0E2E8;   /* 구분선 */
      --white:       #FFFFFF;
      --max:         760px;
    }

    body {
      font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', '맑은 고딕', sans-serif;
      background: var(--cream);
      color: var(--ink);
      line-height: 1.7;
      word-break: keep-all;
    }

    .wrap { max-width: var(--max); margin: 0 auto; background: var(--white); }

    /* ── 헤더 ── */
    .site-head {
      background: linear-gradient(135deg, #FFF5F8 0%, #FCE4EC 100%);
      padding: 22px 24px 20px;
      text-align: center;
      border-bottom: 1px solid var(--line);
    }
    .site-head .brand {
      font-size: 13px;
      letter-spacing: 2px;
      color: var(--rose-deep);
      font-weight: 700;
    }
    .site-head .brand span { color: var(--ink); }
    .site-head .brand-sub {
      margin-top: 4px;
      font-size: 11px;
      color: var(--ink-soft);
      letter-spacing: 1px;
    }

    /* ── H1 타이틀 ── */
    .title-section {
      padding: 30px 24px 22px;
      text-align: center;
      border-bottom: 1px solid var(--line);
    }
    .title-section .eyebrow {
      display: inline-block;
      font-size: 12px;
      font-weight: 700;
      color: var(--rose-deep);
      background: var(--blush);
      padding: 5px 14px;
      border-radius: 20px;
      margin-bottom: 14px;
      letter-spacing: 0.5px;
    }
    .title-section h1 {
      font-size: 26px;
      font-weight: 800;
      color: var(--ink);
      line-height: 1.4;
    }
    .title-section h1 em {
      color: var(--rose-deep);
      font-style: normal;
    }
    .title-section .updated {
      margin-top: 14px;
      font-size: 12.5px;
      color: var(--ink-soft);
    }
    .title-section .updated b { color: var(--rose); font-weight: 700; }

    /* ── 도입부 ── */
    .intro-section {
      padding: 26px 24px;
      border-bottom: 1px solid var(--line);
    }
    .intro-section p {
      font-size: 15.5px;
      color: var(--ink);
      line-height: 1.9;
    }
    .intro-section strong { color: var(--rose-deep); }

    /* ── 섹션 공통 헤더 ── */
    .sec-head {
      display: flex;
      align-items: baseline;
      gap: 10px;
      padding: 30px 24px 4px;
    }
    .sec-head h2 {
      font-size: 19px;
      font-weight: 800;
      color: var(--ink);
    }
    .sec-head .count {
      font-size: 13px;
      font-weight: 700;
      color: var(--rose);
    }

    /* ── 폴백 안내 배너 ── */
    .fallback-notice {
      margin: 14px 18px 0;
      background: #FFF8E1;
      border: 1px solid #F3E2B3;
      border-radius: 12px;
      padding: 14px 16px;
      font-size: 13.5px;
      color: #8A6D1A;
      line-height: 1.6;
      display: flex;
      gap: 10px;
      align-items: flex-start;
    }
    .fallback-notice .fn-ic { flex-shrink: 0; font-size: 16px; }
    .fallback-notice b { color: #7A5E12; }

    /* ── 박람회 카드 리스트 (서버사이드 정적 렌더) ── */
    .fair-list { padding: 14px 18px 8px; }
    .fair-card {
      display: flex;
      gap: 14px;
      background: var(--white);
      border: 1px solid var(--blush-2);
      border-radius: 16px;
      padding: 14px;
      margin-bottom: 14px;
      text-decoration: none;
      color: inherit;
      transition: box-shadow .2s, transform .2s, border-color .2s;
    }
    .fair-card:hover {
      box-shadow: 0 8px 24px rgba(231,83,122,0.12);
      border-color: var(--rose);
      transform: translateY(-2px);
    }
    .fair-thumb {
      flex-shrink: 0;
      width: 108px; height: 108px;
      border-radius: 12px;
      overflow: hidden;
      background: var(--blush);
    }
    .fair-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .fair-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
    .fair-region {
      font-size: 11px;
      font-weight: 800;
      color: var(--rose);
      letter-spacing: 0.5px;
      margin-bottom: 4px;
    }
    .fair-name {
      font-size: 16px;
      font-weight: 800;
      color: var(--ink);
      line-height: 1.35;
      margin-bottom: 5px;
    }
    .fair-info {
      font-size: 13px;
      color: var(--ink-soft);
      line-height: 1.5;
      margin-bottom: 8px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .fair-meta { margin-top: auto; }
    .fair-meta div {
      font-size: 12.5px;
      color: var(--ink);
      display: flex;
      align-items: flex-start;
      gap: 6px;
      margin-top: 3px;
    }
    .fair-meta .ic { flex-shrink: 0; }
    .fair-meta .date { color: var(--rose-deep); font-weight: 700; }

    @media (max-width: 480px) {
      .fair-card { flex-direction: column; }
      .fair-thumb { width: 100%; height: auto; aspect-ratio: 1 / 1; }
    }

    /* ── 본문 섹션 (GPT) ── */
    .body-section {
      padding: 8px 24px 26px;
    }
    .body-section h2 {
      font-size: 19px;
      font-weight: 800;
      color: var(--ink);
      margin: 22px 0 12px;
      padding-left: 13px;
      border-left: 4px solid var(--rose);
    }
    .body-section p {
      font-size: 14.5px;
      color: var(--ink);
      line-height: 1.9;
    }

    /* ── 키워드 박스 ── */
    .keyword-box {
      margin: 4px 24px 0;
      background: var(--blush);
      border-radius: 14px;
      padding: 16px 18px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .keyword-box span {
      font-size: 12.5px;
      color: var(--rose-deep);
      background: var(--white);
      padding: 5px 12px;
      border-radius: 20px;
      border: 1px solid var(--blush-2);
    }

    /* ── FAQ ── */
    .faq-section { padding: 30px 24px; background: var(--blush); margin-top: 26px; }
    .faq-section h2 { font-size: 19px; font-weight: 800; color: var(--ink); margin-bottom: 18px; text-align: center; }
    .faq-item { background: var(--white); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
    .faq-q {
      padding: 16px 18px;
      font-size: 14.5px;
      font-weight: 700;
      color: var(--ink);
      display: flex;
      gap: 10px;
      align-items: flex-start;
    }
    .faq-q::before {
      content: 'Q';
      flex-shrink: 0;
      width: 24px; height: 24px;
      background: var(--rose);
      color: var(--white);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 13px; font-weight: 900;
    }
    .faq-a {
      padding: 0 18px 16px 52px;
      font-size: 13.5px;
      color: var(--ink-soft);
      line-height: 1.85;
    }

    /* ── 하단 CTA 배너 ── */
    .cta-banner {
      display: block;
      margin: 0;
      padding: 28px 24px;
      background: linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%);
      text-decoration: none;
      text-align: center;
    }
    .cta-banner .cta-label {
      font-size: 13px;
      color: rgba(255,255,255,0.85);
      letter-spacing: 0.5px;
      margin-bottom: 8px;
    }
    .cta-banner .cta-main {
      font-size: 19px;
      font-weight: 800;
      color: var(--white);
      line-height: 1.4;
    }
    .cta-banner .cta-arrow {
      display: inline-block;
      margin-top: 14px;
      font-size: 14px;
      font-weight: 700;
      color: var(--rose-deep);
      background: var(--white);
      padding: 10px 24px;
      border-radius: 24px;
      transition: transform .15s;
    }
    .cta-banner:active .cta-arrow { transform: scale(0.97); }

    /* ── 하단 ── */
    .footer {
      padding: 20px 24px;
      font-size: 11.5px;
      color: var(--ink-soft);
      text-align: center;
      line-height: 1.7;
      border-top: 1px solid var(--line);
    }
    .footer a { color: var(--rose); text-decoration: none; }

/* ===== 메인 index 전용 ===== */

        
    body { font-family:'Apple SD Gothic Neo','Noto Sans KR','맑은 고딕',sans-serif;
      background:var(--cream); color:var(--ink); line-height:1.7; word-break:keep-all; }
    .wrap { max-width:var(--max); margin:0 auto; background:var(--white); }

    /* 히어로 */
    .hero { background:linear-gradient(135deg,#FFF5F8 0%,#FCE4EC 100%);
      padding:40px 24px 34px; text-align:center; border-bottom:1px solid var(--line); }
    .hero .brand { font-size:13px; letter-spacing:2px; color:var(--rose-deep); font-weight:700; }
    .hero .brand span { color:var(--ink); }
    .hero h1 { font-size:28px; font-weight:800; color:var(--ink); margin:18px 0 10px; line-height:1.35; }
    .hero h1 em { color:var(--rose-deep); font-style:normal; }
    .hero .sub { font-size:14px; color:var(--ink-soft); }
    .hero .updated { margin-top:6px; font-size:12.5px; color:var(--ink-soft); }
    .hero .updated b { color:var(--rose); font-weight:700; }

    /* 지역 바로가기 (정적 내부링크) */
    .region-nav { padding:28px 24px 8px; }
    .region-nav h2 { font-size:17px; font-weight:800; color:var(--ink); margin-bottom:6px; }
    .region-nav .nav-desc { font-size:13px; color:var(--ink-soft); margin-bottom:16px; }
    .rl-group-label { font-size:12px; font-weight:700; color:var(--rose); margin:16px 0 8px; letter-spacing:0.5px; }
    .region-grid { display:flex; flex-wrap:wrap; gap:10px; }
    .region-link {
      display:flex; align-items:center; gap:7px;
      background:var(--blush); border:1px solid var(--blush-2); border-radius:24px;
      padding:9px 16px; text-decoration:none; transition:all .15s;
    }
    .region-link:hover { background:var(--rose); border-color:var(--rose); }
    .region-link:hover .rl-name, .region-link:hover .rl-count { color:var(--white); }
    .rl-name { font-size:14px; font-weight:700; color:var(--ink); }
    .rl-count { font-size:12px; font-weight:800; color:var(--rose-deep);
      background:var(--white); border-radius:12px; padding:1px 8px; }
    .region-link:hover .rl-count { background:rgba(255,255,255,0.25); }

    /* 필터 + 카드 */
    .filter-bar { position:sticky; top:0; z-index:10; background:var(--white);
      padding:18px 24px 12px; border-bottom:1px solid var(--line);
      display:flex; flex-wrap:wrap; gap:8px; }
    .filter-btn { padding:8px 16px; border:1px solid var(--blush-2); background:var(--white);
      border-radius:22px; font-size:13px; font-weight:600; color:var(--ink-soft);
      cursor:pointer; transition:all .15s; }
    .filter-btn:hover { border-color:var(--rose); color:var(--rose); }
    .filter-btn.active { background:var(--rose); color:var(--white); border-color:var(--rose); }

    .sec-title { padding:24px 24px 4px; font-size:18px; font-weight:800; color:var(--ink); }
    .card-grid { padding:16px 24px 8px;
      display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:16px; }
    .m-card { background:var(--white); border:1px solid var(--blush-2); border-radius:16px;
      overflow:hidden; text-decoration:none; color:inherit; display:flex; flex-direction:column;
      transition:all .2s; }
    .m-card:hover { box-shadow:0 8px 24px rgba(231,83,122,0.12); border-color:var(--rose); transform:translateY(-3px); }
    .m-thumb { width:100%; aspect-ratio:1/1; background:var(--blush); overflow:hidden; }
    .m-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
    .m-body { padding:14px 16px 16px; display:flex; flex-direction:column; flex:1; }
    .m-region { font-size:11px; font-weight:800; color:var(--rose); letter-spacing:0.5px; margin-bottom:4px; }
    .m-name { font-size:15px; font-weight:800; color:var(--ink); line-height:1.35; margin-bottom:5px; }
    .m-info { font-size:12.5px; color:var(--ink-soft); line-height:1.5; margin-bottom:10px;
      display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; flex:1; }
    .m-meta { font-size:12px; color:var(--ink); display:flex; gap:6px; margin-top:3px; align-items:flex-start; }
    .m-date { color:var(--rose-deep); font-weight:700; }
    #m-empty { display:none; padding:40px; text-align:center; color:var(--ink-soft); grid-column:1/-1; }

    .footer { padding:24px; font-size:11.5px; color:var(--ink-soft); text-align:center;
      line-height:1.7; border-top:1px solid var(--line); }

    @media (max-width:520px){ .card-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;} .hero h1{font-size:23px;} }

    /* ── 광역 바로가기 네비 (모든 지역 페이지 상단) ── */
    .region-nav-bar {
      display: flex; flex-wrap: wrap; gap: 7px;
      padding: 14px 18px; background: var(--white);
      border-bottom: 1px solid var(--line);
      position: sticky; top: 0; z-index: 20;
    }
    .rnav-link {
      font-size: 13px; font-weight: 700; color: var(--ink-soft);
      text-decoration: none; padding: 7px 13px; border-radius: 18px;
      background: var(--blush); border: 1px solid var(--blush-2);
      transition: all .15s; white-space: nowrap;
    }
    .rnav-link:hover { background: var(--rose); color: #fff; border-color: var(--rose); }
    .rnav-link.active { background: var(--rose-deep); color: #fff; border-color: var(--rose-deep); }

    /* ── 모바일 최적화 강화 ── */
    @media (max-width: 600px) {
      .title-section h1 { font-size: 22px; }
      .intro-section p { font-size: 15px; line-height: 1.85; }
      .body-section p { font-size: 15px; line-height: 1.9; }   /* 본문 15px+ */
      .fair-name { font-size: 15.5px; }
      .fair-info { font-size: 13px; }
      .region-nav-bar { padding: 10px 14px; gap: 6px; overflow-x: auto;
                        flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
      .rnav-link { padding: 8px 13px; font-size: 13px; }  /* 터치영역 확보 */
      .fair-card { padding: 12px; }
      .faq-q { font-size: 15px; }       /* 모바일 가독성 */
      .faq-a { font-size: 14px; }
      .cta-banner .cta-main { font-size: 17px; }
      .filter-bar { gap: 6px; padding: 12px 14px 8px; overflow-x: auto;
                    flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
      .filter-btn { white-space: nowrap; padding: 9px 15px; }  /* 터치영역 */
    }
    /* 터치 기기에서 호버 잔상 제거 */
    @media (hover: none) {
      .fair-card:hover, .m-card:hover { transform: none; box-shadow: none; }
    }
