:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-alt: #f0f4f8;
  --text: #141c24;
  --muted: #556270;
  --border: #dde3ea;
  --primary: #0f4c81;
  --primary-soft: #e8f1fa;
  --accent: #0b875b;
  --accent-soft: #e6f6ef;
  --michelin: #b91c1c;
  --michelin-soft: #fee2e2;
  --century: #b45309;
  --century-soft: #fef3c7;
  --heritage: #0f4c81;
  --heritage-soft: #e0f2fe;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 35, 60, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

.site-header {
  background: #0d2137;
  color: #fff;
  padding: 18px 0;
  border-bottom: 3px solid var(--accent);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.brand-badge {
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
}

.brand-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: #b7c9dc;
}

.mode-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
}

.mode-btn {
  border: 0;
  background: transparent;
  color: #d7e4f2;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.mode-btn.is-active {
  background: #fff;
  color: #0d2137;
}

.main-shell {
  padding-top: 18px;
  padding-bottom: 48px;
}

.ad-slot {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.ad-label {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
}

.ad-text {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
  min-width: 240px;
}

.cross-links {
  display: flex;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
}

.cross-links a {
  color: var(--primary);
  text-decoration: none;
}

.cross-links a:hover {
  text-decoration: underline;
}

.region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.region-tab {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}

.region-tab:hover {
  border-color: var(--primary);
}

.region-tab.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.filter-grid, .budget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.field input, .field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
}

.filter-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.result-summary {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}

.filter-actions {
  display: flex;
  gap: 8px;
}

.btn-ghost, .btn-outline {
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.btn-ghost {
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--muted);
}

.btn-outline {
  border: 1px solid var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.food-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card-banner {
  padding: 14px 16px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-banner.sbs-dalin { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.card-banner.kbs-saengsaeng { background: linear-gradient(135deg, #065f46, #059669); }
.card-banner.sbs-today { background: linear-gradient(135deg, #4c1d95, #7c3aed); }
.card-banner.mbc-todayn { background: linear-gradient(135deg, #115e59, #0d9488); }
.card-banner.michelin { background: linear-gradient(135deg, #7f1d1d, #b91c1c); }
.card-banner.century { background: linear-gradient(135deg, #78350f, #d97706); }
.card-banner.heritage { background: linear-gradient(135deg, #0f4c81, #0284c7); }

.banner-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.banner-prog {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  opacity: 0.95;
}

.banner-air {
  font-size: 11px;
  opacity: 0.85;
}

.banner-icon {
  font-size: 26px;
  line-height: 1;
}

.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.region-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface-alt);
  padding: 3px 9px;
  border-radius: 999px;
}

.cert-badge {
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}

.cert-badge.sbs-dalin { background: #dbeafe; color: #1d4ed8; }
.cert-badge.kbs-saengsaeng { background: #d1fae5; color: #047857; }
.cert-badge.sbs-today { background: #ede9fe; color: #6d28d9; }
.cert-badge.mbc-todayn { background: #ccfbf1; color: #0f766e; }
.cert-badge.michelin { background: var(--michelin-soft); color: var(--michelin); }
.cert-badge.century { background: var(--century-soft); color: var(--century); }
.cert-badge.heritage { background: var(--heritage-soft); color: var(--heritage); }

.load-more-wrap {
  text-align: center;
  margin: -4px 0 26px;
}

.btn-load-more {
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 11px 28px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.btn-load-more:hover {
  opacity: 0.92;
}

.food-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
}

.food-meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.food-sig {
  background: var(--surface-alt);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}

.food-highlight {
  background: #fffbeb;
  border-left: 3px solid #d97706;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12.5px;
  color: #78350f;
  font-weight: 600;
}

.food-info-rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  color: #334155;
}

.food-info-rows div strong {
  color: var(--text);
}

.food-desc {
  margin: 0;
  font-size: 13.5px;
  color: #334155;
  flex: 1;
}

.food-tip {
  background: #eff6ff;
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12.5px;
  color: #1e3a8a;
}

.en-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.guide-box {
  background: var(--surface-alt);
  border-radius: 10px;
  padding: 14px 16px;
}

.guide-box h3 {
  margin: 0 0 8px;
  font-size: 14.5px;
  color: var(--primary);
}

.guide-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.en-guide-links {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13.5px;
  font-weight: 700;
}

.en-guide-links a {
  color: var(--primary);
  text-decoration: none;
}

.en-guide-links a:hover {
  text-decoration: underline;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.map-btn {
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  background: #fff;
}

.map-btn.naver { border-color: #03c75a; color: #028a3f; background: #edfcf3; }
.map-btn.kakao { border-color: #eab308; color: #854d0e; background: #fefce8; }
.map-btn.official { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

.panel-head h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.muted {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--muted);
}

.budget-result {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.res-box {
  background: var(--primary-soft);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.res-box.accent {
  background: var(--accent-soft);
}

.res-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

.res-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 20px 0;
  font-size: 12.5px;
  color: var(--muted);
}

.site-footer a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
