/* 지역 모아보기 (고객용) */
:root {
  --deep: #24493F;
  --deep-2: #2F5D50;
  --bg: #EEF1EC;
  --card: #FFFFFF;
  --ink: #1E2624;
  --ink-2: #4B5654;
  --ink-3: #7A8583;
  --line: #DDE3DE;
  --amber: #F2B33D;
  --open: #23845E;
  --closed: #A3412F;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Pretendard Variable', Pretendard, system-ui, sans-serif; font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--bg); word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
[hidden] { display: none !important; }

/* 상단 */
.rg-top { background: var(--deep); color: #fff; position: sticky; top: 0; z-index: 10; }
.rg-top-in { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.rg-brand { font-family: 'Gowun Batang', serif; font-weight: 700; font-size: 20px; text-decoration: none; color: #fff; }
.rg-date { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .75); }
.rg-switch { margin-left: auto; }
.rg-switch select {
  appearance: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--deep);
  background: #fff linear-gradient(45deg, transparent 50%, var(--deep) 50%) calc(100% - 16px) 52% / 5px 5px no-repeat;
  border: 0; border-radius: 8px; padding: 8px 34px 8px 12px; max-width: 70vw; cursor: pointer;
}

.rg-main { max-width: 1180px; margin: 0 auto; padding: 26px 20px 60px; }

/* 지역 고르기 */
.rg-intro h1 { font-family: 'Gowun Batang', serif; font-size: 32px; margin: 6px 0 8px; color: var(--deep); line-height: 1.25; }
.rg-intro p { margin: 0 0 6px; color: var(--ink-2); max-width: 60ch; }
.rg-warn { color: var(--closed) !important; font-weight: 600; }
.rg-group { margin-top: 28px; }
.rg-group h2 { font-size: 15px; color: var(--ink-2); margin: 0 0 10px; font-weight: 700; }
.rg-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.rg-tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  min-height: 120px; padding: 14px 16px; border-radius: 12px; text-decoration: none; overflow: hidden;
  background: var(--deep-2); color: #fff;
}
.rg-tiles li:nth-child(3n+2) .rg-tile:not(.has-img) { background: #3E6B5B; }
.rg-tiles li:nth-child(3n) .rg-tile:not(.has-img) { background: #5A4A33; }
.rg-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rg-tile.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .65)); }
.rg-tile > span { position: relative; z-index: 1; }
.rg-tile-name { font-size: 19px; font-weight: 800; line-height: 1.25; }
.rg-tile-cnt { font-size: 13px; opacity: .85; }
.rg-tile-fav { position: absolute !important; top: 10px; right: 10px; font-size: 12px; font-weight: 700; background: var(--amber); color: #3a2a00; border-radius: 999px; padding: 2px 9px; }
.rg-tile:hover .rg-tile-name { text-decoration: underline; text-underline-offset: 3px; }

/* 지역 머리 */
.rg-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.rg-area { margin: 0; font-size: 14px; color: var(--ink-3); font-weight: 600; }
.rg-head h1 { font-family: 'Gowun Batang', serif; font-size: 34px; margin: 0; color: var(--deep); line-height: 1.2; }
.rg-desc { margin: 4px 0 0; color: var(--ink-2); }
.rg-fav { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 700; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--deep); background: #fff; color: var(--deep); cursor: pointer; }
.rg-fav .star { color: #C9D0CC; font-size: 18px; line-height: 1; }
.rg-fav.on { background: var(--deep); color: #fff; }
.rg-fav.on .star { color: var(--amber); }

.rg-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.rg-filter button { font: inherit; font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.rg-filter button.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 식당 카드 */
.rg-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; align-items: start; }
.rg-card { background: var(--card); border-radius: 12px; border-top: 6px solid var(--c, var(--deep)); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); overflow: hidden; }
.rg-card-link { display: block; padding: 14px 16px 12px; text-decoration: none; color: inherit; }
.rg-card-link:hover .rc-go { text-decoration: underline; }
.rc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.rc-name strong { font-size: 19px; line-height: 1.3; }
.rc-kind { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); vertical-align: 2px; }
.rc-status { flex: none; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #EEF1EF; color: var(--ink-2); white-space: nowrap; }
.rc-status.open { background: #E1F3EA; color: var(--open); }
.rc-status.open::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--open); margin-right: 6px; vertical-align: 1px; }
.rc-status.soon { background: #FFF3D6; color: #7A5600; }
.rc-status.closed { background: #F8E5E1; color: var(--closed); }
.rc-status.pending, .rc-status.done, .rc-status.ext { background: #EEF1EF; color: var(--ink-3); }
.rc-intro { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.rc-menu { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.rc-meal { margin: 0 0 6px; font-size: 13px; font-weight: 800; color: var(--c, var(--deep)); }
.rc-tag { font-size: 11.5px; background: var(--c, var(--deep)); color: #fff; border-radius: 4px; padding: 1px 6px; margin-left: 4px; }
.rc-row { margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 15px; }
.rc-row em { font-style: normal; font-weight: 700; font-size: 13px; color: var(--ink-3); width: 100%; }
.rc-row .main { font-weight: 700; }
.rc-row .star { color: #B3372C; font-weight: 700; }
.rc-row .more { color: var(--ink-3); font-size: 13px; }
.rc-row.extra { font-size: 14px; color: #6d5310; }
.rc-row.extra em { width: auto; color: #8b6c1c; }
.rc-note { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.rc-times { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-3); white-space: pre-wrap; }
.rc-go { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--c, var(--deep)); }
.rc-go::after { content: ' ›'; }
.rc-addr { margin: 0; padding: 9px 16px; border-top: 1px solid #F0F2F0; font-size: 13px; color: var(--ink-3); background: #FAFBFA; }
.rc-addr a { color: var(--deep); font-weight: 700; margin-left: 4px; }

.rg-empty { text-align: center; color: var(--ink-3); padding: 40px 10px; }
.rg-foot { text-align: center; margin-top: 28px; }
.rg-foot a { color: var(--deep); font-weight: 600; }

@media (max-width: 640px) {
  .rg-top-in { padding: 10px 14px; }
  .rg-brand { font-size: 18px; }
  .rg-switch { margin-left: 0; width: 100%; }
  .rg-switch select { width: 100%; max-width: none; }
  .rg-main { padding: 18px 12px 50px; }
  .rg-intro h1 { font-size: 26px; }
  .rg-head h1 { font-size: 28px; }
  .rg-fav { width: 100%; justify-content: center; }
  .rg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rg-tile { min-height: 96px; padding: 10px 12px; }
  .rg-tile-name { font-size: 16px; }
  .rg-cards { grid-template-columns: minmax(0, 1fr); }
}
.rg-owner { text-align: center; margin-top: 36px; font-size: 14px; color: var(--ink-3); }
.rg-owner a { color: var(--deep); font-weight: 700; }
