/* ============================================================
   예담플라워 — 지역 허브 페이지 (region/*.html) 전용 스타일
   기존 css/style.css 와 독립적으로 동작합니다.
   검색 유입 목적 페이지라 본문 가독성 · 모바일 우선으로 구성.
   ============================================================ */

:root {
  --rg-dark:   #1b1b1b;
  --rg-green:  #1a6b3a;
  --rg-green2: #14803f;
  --rg-line:   #e5e5e5;
  --rg-bg:     #f7f8f7;
  --rg-txt:    #222;
  --rg-sub:    #6b7280;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.rg {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic',
               'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  color: var(--rg-txt);
  background: var(--rg-bg);
  line-height: 1.7;
  font-size: 15px;
  word-break: keep-all;
}

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

/* ── 헤더 ── */
.rg-header {
  background: var(--rg-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.rg-header .rg-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 12px;
}
.rg-logo {
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.3px;
  white-space: nowrap;
}
.rg-hnav { display: flex; gap: 14px; align-items: center; }
.rg-hnav a {
  color: #d9d9d9;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}
.rg-hnav a:hover { color: #fff; }
.rg-call {
  background: var(--rg-green);
  color: #fff !important;
  padding: 7px 13px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
}
.rg-call:hover { background: var(--rg-green2); }

@media (max-width: 640px) {
  .rg-hnav a:not(.rg-call) { display: none; }
}

/* ── 브레드크럼 ── */
.rg-crumb {
  font-size: 12.5px;
  color: var(--rg-sub);
  padding: 14px 0 0;
}
.rg-crumb a { color: var(--rg-sub); text-decoration: none; }
.rg-crumb a:hover { color: var(--rg-green); }
.rg-crumb span { margin: 0 6px; }

/* ── 히어로 ── */
.rg-hero {
  background: linear-gradient(160deg, #12482a 0%, #1a6b3a 60%, #22854a 100%);
  color: #fff;
  border-radius: 14px;
  padding: 30px 26px;
  margin: 16px 0 20px;
}
.rg-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  font-size: 12.5px;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.rg-hero h1 {
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1.4;
  letter-spacing: -.5px;
  font-weight: 800;
}
.rg-hero p {
  margin: 0;
  font-size: 14px;
  color: #d8f0e0;
  line-height: 1.7;
}
.rg-stats {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.rg-stat {
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  padding: 9px 15px;
  min-width: 96px;
}
.rg-stat b { display: block; font-size: 19px; line-height: 1.2; }
.rg-stat span { font-size: 11.5px; color: #bfe3cd; }

@media (max-width: 640px) {
  .rg-hero { padding: 24px 18px; border-radius: 12px; }
  .rg-hero h1 { font-size: 21px; }
  .rg-stat { flex: 1 1 0; min-width: 0; padding: 8px 10px; }
  .rg-stat b { font-size: 17px; }
}

/* ── 카드 ── */
.rg-card {
  background: #fff;
  border: 1px solid var(--rg-line);
  border-radius: 12px;
  margin-bottom: 18px;
  overflow: hidden;
}
.rg-card-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--rg-line);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fcfcfc;
}
.rg-card-head .cnt {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rg-green);
  background: #eaf6ee;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.rg-card-body { padding: 18px; }

/* ── 본문 텍스트 ── */
.rg-prose { font-size: 14.5px; line-height: 1.85; color: #333; }
.rg-prose p { margin: 0 0 13px; }
.rg-prose p:last-child { margin-bottom: 0; }
.rg-prose strong { color: var(--rg-green); font-weight: 700; }

/* ── 검색 필터 ── */
.rg-filter {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rg-line);
  background: #fff;
  position: sticky;
  top: 56px;
  z-index: 50;
}
.rg-filter input {
  flex: 1;
  border: 1px solid #d5d9d5;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 14px;
  font-family: inherit;
  min-width: 0;
}
.rg-filter input:focus {
  outline: none;
  border-color: var(--rg-green);
  box-shadow: 0 0 0 3px rgba(26,107,58,.12);
}
.rg-filter button {
  border: 0;
  background: var(--rg-dark);
  color: #fff;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.rg-filter button:hover { background: #333; }

.rg-hint {
  padding: 10px 18px;
  font-size: 12.5px;
  color: var(--rg-sub);
  background: #fafbfa;
  border-bottom: 1px solid var(--rg-line);
}

/* ── 업체 목록 ── */
.rg-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rg-line);
}
.rg-list li { background: #fff; }
.rg-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  text-decoration: none;
  color: #222;
  font-size: 14px;
  line-height: 1.45;
  transition: background .12s;
}
.rg-list a:hover { background: #f2f9f4; }
.rg-list a:focus-visible {
  outline: 2px solid var(--rg-green);
  outline-offset: -2px;
}
.rg-list .nm { flex: 1; min-width: 0; }
.rg-list .loc {
  font-size: 11.5px;
  color: var(--rg-sub);
  white-space: nowrap;
  flex-shrink: 0;
}
.rg-list a::after {
  content: '›';
  color: #bbb;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .rg-list { grid-template-columns: 1fr; }
}

.rg-empty {
  padding: 34px 18px;
  text-align: center;
  color: var(--rg-sub);
  font-size: 14px;
  display: none;
}
.rg-empty.on { display: block; }

/* ── 시·군·구 칩 ── */
.rg-citybar {
  padding: 12px 18px;
  border-bottom: 1px solid var(--rg-line);
  background: #fff;
}
#rgCities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 132px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.rg-chip {
  border: 1px solid #d9ddd9;
  background: #fff;
  color: #444;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all .12s;
  line-height: 1.3;
}
.rg-chip:hover { border-color: var(--rg-green); color: var(--rg-green); }
.rg-chip b { font-weight: 700; color: var(--rg-green); }
.rg-chip.on {
  background: var(--rg-green);
  border-color: var(--rg-green);
  color: #fff;
  font-weight: 700;
}
.rg-chip.on b { color: #d6f2e0; }
.rg-chip:focus-visible {
  outline: 2px solid var(--rg-green);
  outline-offset: 2px;
}

/* ── 지역 그리드 (index) ── */
.rg-regions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 10px;
}
.rg-regions a {
  display: block;
  background: #fff;
  border: 1px solid var(--rg-line);
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  color: #222;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.rg-regions a:hover {
  border-color: var(--rg-green);
  box-shadow: 0 3px 12px rgba(26,107,58,.1);
  transform: translateY(-1px);
}
.rg-regions .rg-rname {
  font-size: 15px;
  font-weight: 700;
  display: block;
  margin-bottom: 3px;
}
.rg-regions .rg-rcnt {
  font-size: 12px;
  color: var(--rg-green);
  font-weight: 600;
}

/* ── FAQ ── */
.rg-faq { border-top: 1px solid var(--rg-line); }
.rg-faq details { border-bottom: 1px solid var(--rg-line); }
.rg-faq details:last-child { border-bottom: 0; }
.rg-faq summary {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 42px;
}
.rg-faq summary::-webkit-details-marker { display: none; }
.rg-faq summary::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rg-green);
  font-size: 18px;
  font-weight: 700;
}
.rg-faq details[open] summary::after { content: '−'; }
.rg-faq .ans {
  padding: 0 18px 16px;
  font-size: 13.5px;
  color: #555;
  line-height: 1.8;
}

/* ── CTA ── */
.rg-cta {
  background: var(--rg-dark);
  color: #fff;
  border-radius: 12px;
  padding: 24px 22px;
  text-align: center;
  margin-bottom: 18px;
}
.rg-cta h2 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.rg-cta p { margin: 0 0 16px; font-size: 13.5px; color: #bbb; }
.rg-cta-btns {
  display: flex;
  gap: 9px;
  justify-content: center;
  flex-wrap: wrap;
}
.rg-cta-btns a {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.rg-cta-btns .p {
  background: var(--rg-green);
  color: #fff;
}
.rg-cta-btns .p:hover { background: var(--rg-green2); }
.rg-cta-btns .k {
  background: #fee500;
  color: #3c1e1e;
}

/* ── 푸터 ── */
.rg-footer {
  border-top: 1px solid var(--rg-line);
  background: #fff;
  margin-top: 30px;
  padding: 24px 0 34px;
  font-size: 12.5px;
  color: var(--rg-sub);
  line-height: 1.9;
}
.rg-footer a { color: var(--rg-sub); text-decoration: none; }
.rg-footer a:hover { color: var(--rg-green); }
.rg-footer .rg-fnav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}
.rg-footer .rg-fnav a { font-weight: 600; color: #444; }

/* 목록이 길어 하단 여백 확보 */
.rg-list-tail { height: 4px; background: #fff; }
