/* 선데이맛집 - 모바일 우선 미니멀 스타일 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  background: #f8fafc; color: #1e293b; line-height: 1.6; font-size: 15px;
}
a { color: inherit; }
.container { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* 헤더 */
header { background: #fff; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 100; }
header .container { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; gap: 12px; }
.logo a { font-size: 1.35rem; font-weight: 800; color: #e63946; text-decoration: none; letter-spacing: -0.5px; }
.search-form { display: flex; flex: 1; max-width: 380px; }
.search-form input {
  flex: 1; padding: 9px 14px; border: 1px solid #e2e8f0; border-radius: 20px 0 0 20px;
  font-size: 14px; outline: none; background: #f8fafc; min-width: 0;
}
.search-form input:focus { border-color: #e63946; background: #fff; }
.search-form button {
  padding: 9px 16px; background: #e63946; color: #fff; border: none;
  border-radius: 0 20px 20px 0; cursor: pointer; font-size: 14px;
}

/* 카드 리스트 */
.post-list { display: flex; flex-direction: column; gap: 12px; padding: 16px 0 32px; }
.card {
  display: block; background: #fff; padding: 18px; border-radius: 14px;
  border: 1px solid #e2e8f0; text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 8px; }
.card-top h3 { font-size: 1.15rem; font-weight: 700; color: #1e293b; margin: 0; }
.cat-badge {
  font-size: .78rem; background: rgba(230,57,70,.1); color: #e63946;
  padding: 4px 10px; border-radius: 6px; font-weight: 600; white-space: nowrap;
}
.card-meta { color: #64748b; font-size: .9rem; display: flex; flex-direction: column; gap: 4px; }
.card-meta strong { color: #475569; font-weight: 600; margin-right: 4px; }
.card-keyword { margin-top: 8px; font-size: .8rem; color: #94a3b8; }

/* 페이지네이션 */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 8px 0 40px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-block; min-width: 38px; text-align: center; padding: 8px 10px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
  text-decoration: none; font-size: 14px; color: #475569;
}
.pagination span.current { background: #e63946; color: #fff; border-color: #e63946; font-weight: 700; }

/* 상세 */
.vw-hero { padding: 24px 16px 28px; margin-bottom: 16px; background: #fff; border-bottom: 1px solid #eee; }
.vw-hero h1 { font-size: 1.5rem; font-weight: 800; color: #1e293b; margin: 0 0 6px; }
.vw-thumb { width: 100%; border-radius: 12px; overflow: hidden; margin: 16px 0 0; }
.vw-thumb img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.vw-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; overflow: hidden; margin: 20px 0; }
.vw-info-row { display: flex; padding: 14px 18px; border-bottom: 1px solid #f2f2f2; }
.vw-info-row:last-child { border-bottom: none; }
.vw-label { width: 80px; min-width: 80px; font-size: 13px; font-weight: 700; color: #64748b; }
.vw-value { flex: 1; font-size: 15px; color: #1e293b; line-height: 1.6; }
.vw-value.tel a { color: #e63946; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.vw-actions { display: flex; gap: 10px; margin: 0 0 24px; }
.vw-btn-map {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; color: #fff;
  border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none;
  background: #ff4757; box-shadow: 0 4px 12px rgba(255,71,87,.25);
}
.vw-section-title { font-size: 1.1rem; font-weight: 700; color: #1e293b; margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 2px solid #eee; }
.review-item { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.review-item .r-title { font-weight: 700; font-size: 15px; color: #1e293b; margin-bottom: 6px; }
.review-item .r-title a { text-decoration: none; color: inherit; }
.review-item > a { text-decoration: none; color: inherit; display: block; }
.review-item p { font-size: 13px; color: #777; margin: 0; line-height: 1.55; }
.kw-img { width: 100%; border-radius: 12px; margin: 16px 0; display: block; }
.prevnext { display: flex; flex-direction: column; gap: 8px; margin: 24px 0 40px; }
.prevnext a { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 16px; text-decoration: none; font-size: 14px; color: #475569; }
.prevnext a b { color: #e63946; margin-right: 6px; }

/* 푸터 */
footer { background: #fff; border-top: 1px solid #e2e8f0; padding: 24px 0; margin-top: 20px; }
footer p { font-size: 12px; color: #94a3b8; text-align: center; }
footer nav { text-align: center; margin-bottom: 10px; }
footer nav a { font-size: 13px; color: #64748b; text-decoration: none; margin: 0 8px; }

/* 관리자 */
.adm-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
.adm-table th, .adm-table td { border: 1px solid #e2e8f0; padding: 8px 10px; text-align: left; }
.adm-table th { background: #f1f5f9; font-weight: 700; }
.adm-table td a { text-decoration: none; color: inherit; }
.adm-btn { display: inline-block; padding: 8px 16px; border-radius: 8px; border: none; cursor: pointer; font-size: 14px; font-weight: 600; text-decoration: none; }
.adm-btn.danger { background: #e63946; color: #fff; }
.adm-btn.warn { background: #f59e0b; color: #fff; }
.adm-btn.ok { background: #22c55e; color: #fff; }
.adm-btn.gray { background: #64748b; color: #fff; }
.adm-form input[type=text], .adm-form textarea, .adm-form select {
  width: 100%; padding: 9px 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; margin-bottom: 10px;
}
.adm-form textarea { min-height: 120px; }
.login-box { max-width: 360px; margin: 60px auto; background: #fff; padding: 32px 28px; border-radius: 14px; border: 1px solid #e2e8f0; }
.login-box h2 { text-align: center; margin-bottom: 20px; }
.empty { text-align: center; color: #94a3b8; padding: 60px 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
