/* 강릉 뭐먹지 — 맛집/지역/종류 페이지 스타일 (scripts/build-seo.mjs가 생성한 페이지용) */
:root {
  --bg: #faf8f5;
  --card: #ffffff;
  --ink: #1d1d1f;
  --sub: #6b6b70;
  --line: #e7e3dd;
  --accent: #ff3b30;
  --star: #e8a400;
  --naver: #03c75a;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.s-top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px;
  background: rgba(250, 248, 245, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.s-brand { text-decoration: none; font-weight: 800; font-size: 17px; display: flex; flex-direction: column; line-height: 1.2; }
.s-brand span { font-weight: 500; font-size: 12px; color: var(--sub); }
.s-mapbtn { text-decoration: none; font-size: 14px; font-weight: 700; padding: 8px 12px; border-radius: 999px; background: var(--ink); color: #fff; white-space: nowrap; }

.s-wrap { max-width: 760px; margin: 0 auto; padding: 16px 16px 40px; }
.s-crumbs { font-size: 13px; color: var(--sub); margin: 4px 0 16px; }
.s-crumbs a { text-decoration: none; }
.s-crumbs a:hover { text-decoration: underline; }

.s-eyebrow { font-size: 13px; color: var(--sub); font-weight: 600; }
h1 { font-size: 28px; line-height: 1.25; margin: 4px 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 18px; margin: 0 0 12px; letter-spacing: -0.01em; }

.s-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.s-badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #efebe5; color: #4a4a4f; }
.s-badge--star { background: #fff4d6; color: #8a5f00; }
.s-badge--n { background: #e6f9ee; color: #04833d; }

.s-review, .s-info, .s-more, .s-hub {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 16px;
}
.s-review p { font-size: 17px; margin: 0 0 10px; white-space: pre-line; }
.s-by { font-size: 13px; color: var(--sub); }

.s-info dl { display: grid; grid-template-columns: 76px 1fr; gap: 6px 10px; margin: 0 0 14px; font-size: 15px; }
.s-info dt { color: var(--sub); }
.s-info dd { margin: 0; word-break: keep-all; }
.s-map { width: 100%; height: 240px; border-radius: 10px; background: #eee; margin-bottom: 14px; }

.s-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.s-btn {
  display: inline-block; text-decoration: none; font-size: 14px; font-weight: 700;
  padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
}
.s-btn--n { background: var(--naver); border-color: var(--naver); color: #fff; }
.s-btn--main { background: var(--ink); border-color: var(--ink); color: #fff; margin-top: 4px; }
.s-note { font-size: 12px; color: var(--sub); margin: 12px 0 0; }

.s-lead { font-size: 16px; color: #3a3a3f; margin: 0 0 6px; }
.s-meta { font-size: 13px; color: var(--sub); margin: 0 0 16px; }

.s-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.s-card a { display: block; text-decoration: none; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.s-card a:hover { border-color: #c9c3ba; }
.s-card-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.s-card-top b { font-size: 16px; }
.s-tag { font-size: 11px; font-weight: 700; color: var(--sub); background: #f2efea; padding: 2px 8px; border-radius: 999px; }
.s-n { font-size: 11px; font-weight: 800; color: #fff; background: var(--naver); padding: 2px 7px; border-radius: 999px; }
.s-card-menu { font-size: 13px; color: var(--sub); margin-top: 2px; }
.s-card p { font-size: 14px; margin: 6px 0 0; color: #3a3a3f; }
.s-all { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; text-decoration: none; }

.s-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.s-chips a { text-decoration: none; font-size: 13px; font-weight: 600; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }

.s-foot { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; font-size: 12px; color: var(--sub); }
.s-foot p { margin: 4px 0; }

@media (min-width: 640px) {
  h1 { font-size: 34px; }
  .s-cards { grid-template-columns: 1fr 1fr; }
  .s-map { height: 300px; }
}

/* index.html 하단 '전체 목록' 영역 */
.seo-directory { max-width: 1000px; margin: 32px auto 0; padding: 0 16px; }
.seo-directory h2 { font-size: 17px; margin: 20px 0 10px; }
.seo-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.seo-chips a { text-decoration: none; font-size: 13px; font-weight: 600; padding: 6px 12px; border: 1px solid #e3e3e3; border-radius: 999px; background: #fff; color: #222; }
.seo-chips small { color: #999; font-weight: 500; margin-left: 2px; }
.seo-all { margin-top: 20px; border: 1px solid #e3e3e3; border-radius: 12px; background: #fff; padding: 12px 16px; }
.seo-all summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.seo-all ul { margin: 12px 0 0; padding-left: 18px; columns: 2 260px; font-size: 14px; line-height: 1.9; }
.seo-all li span { color: #888; font-size: 12px; }
.seo-updated { font-size: 12px; color: #999; }

/* ---- v2: 사진 · 상세 후기 · 팁 · 소개 페이지 ---- */
.s-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 6px; }
.s-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: #eee; display: block; }
.s-gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.s-gallery--1 img:first-child { aspect-ratio: 4 / 3; }
.s-gallery--2 img:first-child { grid-column: auto; aspect-ratio: 4 / 3; }
.s-photo-note { font-size: 11px; color: var(--sub); margin: 0 0 16px; }
.s-oneline { font-size: 17px; font-weight: 600; margin: 0 0 10px; }
.s-detail { font-size: 16px; line-height: 1.75; white-space: pre-line; margin: 0 0 12px; color: #2a2a2e; }
.s-tip { background: #fffaf0; border: 1px solid #f1e3c4; border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.s-tip div { white-space: pre-line; font-size: 15px; }
.s-card a { position: relative; }
.s-card a:has(.s-thumb) { padding-right: 96px; min-height: 92px; }
.s-thumb { position: absolute; right: 10px; top: 10px; width: 76px; height: 76px; object-fit: cover; border-radius: 8px; }
.s-sub { font-size: 16px; margin: 22px 0 10px; }
.s-sub:first-of-type { margin-top: 6px; }
.s-sub small { color: var(--sub); font-weight: 500; }
.s-doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.s-doc h2 { margin-top: 26px; }
.s-doc p, .s-doc li { font-size: 15px; }
.s-doc ul { padding-left: 20px; }
.s-foot a { color: inherit; }

/* 메인 페이지 제목 아래 한 줄 */
.h1-sub { display: block; font-size: 0.5em; font-weight: 600; opacity: 0.75; margin-top: 6px; letter-spacing: 0; }
.seo-updated a { color: inherit; }

/* 광고·제휴 문의 (카카오톡 오픈채팅) */
.s-btn--kakao { background: #fee500; border-color: #fee500; color: #191919; }
.seo-contact { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 12px 18px; border-radius: 12px; background: #fee500; color: #191919; font-weight: 800; font-size: 15px; text-decoration: none; }
.seo-contact small { font-weight: 600; opacity: .7; font-size: 12px; }
.footer-contact { font-weight: 800; color: inherit; white-space: nowrap; }
