/* ============================================================
   강릉 뭐먹지 — Modern Clean White Theme
============================================================= */
:root {
  --bg: #f7f7f7;
  --panel: #ffffff;
  --primary: #ff385c;
  --ink: #222222;
  --ink-sub: #717171;
  --line: #ebebeb;
  --line-dark: #dddddd;
  --star: #ffb400;
  --naver: #03cf5d;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-body: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  --shadow: 0 6px 16px rgba(0,0,0,0.12);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 24px 24px 18px;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}
.brand-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  text-transform: uppercase;
}
.brand h1 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  margin: 4px 0 2px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-sub { font-size: 14px; color: var(--ink-sub); }
.header-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.meta-pill {
  font-size: 12px;
  font-weight: 500;
  background: #f0f0f0;
  color: var(--ink);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.meta-pill--muted { color: var(--ink-sub); background: #f7f7f7; }

/* 👇 [여기 바로 아래에 붙여넣어 주세요!] */
.meta-pill--share {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #ffffff;
  cursor: pointer;
  transition: all .15s ease;
}
.meta-pill--share:hover {
  background: #444444;
}

/* Toolbar */
.toolbar-wrapper {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.toolbar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.search-wrap { position: relative; flex: 1 1 280px; min-width: 220px; }
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-sub);
}
#searchInput {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: all .2s ease;
}
#searchInput:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--ink);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 2 1 400px; }
.chip {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.filter-toggles {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex-wrap: wrap;
}

.star-toggle, .review-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.star-toggle input { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer; }
.review-toggle input { accent-color: var(--naver); width: 16px; height: 16px; cursor: pointer; }

.review-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--naver);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  width: 15px;
  height: 15px;
  border-radius: 3px;
  margin-right: 1px;
}

/* Layout */
.layout {
  max-width: 1280px;
  margin: 24px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: start;
}
.map-pane { position: sticky; top: 70px; }
#map {
  width: 100%;
  height: 600px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: #e5e5e5;
}
.map-status { font-size: 12px; color: var(--ink-sub); padding: 8px 4px 0; }

.list-pane {
  max-height: 600px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}
.list { list-style: none; margin: 0; padding: 0; }
.list-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: background .15s ease;
}
.list-item:hover { background: #f9f9f9; }
.list-item:hover .arrow-btn { color: var(--ink); transform: translateX(3px); }
.list-item .idx {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-sub);
  min-width: 30px;
}
.list-item .body { flex: 1; min-width: 0; }
.list-item .row1 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.list-item .name { font-weight: 700; font-size: 16px; color: var(--ink); }

/* 별 아이콘 (카테고리 우측으로 이동) */
.star-badge { color: var(--star); font-size: 14px; margin-left: 2px; }

/* 네이버 리뷰 유무 N 뱃지 */
.review-badge {
  font-size: 10px;
  font-weight: 800;
  background: var(--naver);
  color: #ffffff;
  width: 17px;
  height: 17px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  background: #f0f0f0;
  color: var(--ink);
  padding: 3px 8px;
  border-radius: 4px;
}
.list-item .menu { font-size: 13px; color: var(--ink-sub); margin-top: 4px; }
.list-item .loc { font-size: 12px; color: #a0a0a0; margin-top: 2px; }

/* 클릭 유도 화살표 표기 */
.arrow-btn {
  font-size: 20px;
  color: #ccc;
  font-weight: 300;
  transition: all .2s ease;
  padding-left: 8px;
}

.empty-state { padding: 40px 20px; text-align: center; color: var(--ink-sub); font-size: 14px; }

/* Detail Sheet */
.detail-sheet {
  position: fixed;
  z-index: 100;
  background: var(--panel);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow);
  right: 0; bottom: 0; left: 0;
  max-height: 70vh;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  padding: 24px 24px 32px;
}
.detail-close {
  position: absolute;
  top: 16px; right: 16px;
  border: 1px solid var(--line-dark);
  background: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.detail-eyebrow { font-size: 12px; font-weight: 700; color: var(--primary); }
.detail-title { font-weight: 800; font-size: 24px; margin: 4px 0 12px; letter-spacing: -0.01em; }
.detail-row { margin: 10px 0; font-size: 14px; color: var(--ink); }
.detail-row b { font-weight: 700; }
.detail-row--address { display: flex; align-items: center; justify-content: flex-start; gap: 8px; flex-wrap: wrap; }

.copy-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #d0d0d0;
  background: #f7f7f7;
  color: #333333;
  cursor: pointer;
  transition: all .15s ease;
  display: inline-flex; align-items: center; gap: 3px;
}
.copy-btn:hover { background: #e2e2e2; border-color: #bbbbbb; }
.copy-btn--done { background: #222222 !important; color: #ffffff !important; border-color: #222222 !important; }

.detail-note {
  background: #f7f7f7;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--ink);
  margin-top: 14px;
  line-height: 1.6;
}
.detail-note-label { font-size: 12px; font-weight: 700; color: var(--ink-sub); margin-bottom: 4px; }

.detail-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: var(--ink);
  color: #ffffff;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  transition: opacity .15s ease;
  border: none;
}
.detail-link:hover { opacity: 0.9; }
.detail-link--naver { background: var(--naver) !important; color: #ffffff !important; }
.detail-link--alt { background: #ffffff; color: var(--ink); border: 1px solid var(--ink); }

/* Kakao Overlay Label */
.marker-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: #ffffff;
  border: 1.5px solid var(--line-dark);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.marker-label.starred {
  border-color: var(--primary);
  color: var(--primary);
  background: #ffffff;
}

/* Banner */
.banner-section { max-width: 1280px; margin: 32px auto 16px; padding: 0 24px; }
.banner-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: #e0e0e0;
  aspect-ratio: 1000 / 180;
}
.banner-slider { display: flex; width: 100%; height: 100%; transition: transform 0.4s ease-in-out; }
.banner-slide { flex: 0 0 100%; width: 100%; height: 100%; display: block; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}
.banner-btn.prev { left: 12px; }
.banner-btn.next { right: 12px; }

.banner-dots {
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px;
  z-index: 10;
}
.banner-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}
.banner-dot.active { background: #ffffff; width: 20px; border-radius: 4px; }

/* Footer */
.site-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 40px;
  font-size: 13px;
  color: var(--ink-sub);
}
.site-footer p { margin: 4px 0; }
.site-footer .copyright {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #999;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; margin: 16px auto; }
  .map-pane { position: static; }
  #map { height: 40vh; min-height: 300px; }
  .list-pane { max-height: none; }
  .toolbar { padding: 12px 16px; }
  .site-header { padding: 16px 16px 12px; }
  .layout, .banner-section, .site-footer { padding-left: 16px; padding-right: 16px; }
  .banner-btn { width: 28px; height: 28px; font-size: 10px; }
}
