/* Shared tokens and reset. Values are eyeballed from the live Naver pages
   captured in docs/RECON.md. */

:root {
  --naver-green: #03c75a;
  --naver-green-dark: #02b351;
  --naver-blue: #0068c3;
  --naver-blue-dark: #005aa8;
  --star: #ff4646;
  --npay-green: #00c73c;

  --text: #222;
  --text-strong: #111;
  --text-sub: #666;
  --text-muted: #8e8e8e;
  --text-faint: #b0b0b0;
  --link: #0d5bbf;

  --line: #eaeaea;
  --line-strong: #dcdcdc;
  --fill: #f5f6f8;
  --fill-soft: #f8f9fa;
  --chip: #f2f3f5;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕",
    -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.45;
  word-break: keep-all;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Visually hidden but still read by assistive tech and by agent accessibility
   snapshots — the mirror relies on this for labels Naver renders as sprites. */
.blind {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.star {
  color: var(--star);
}

.npay-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 15px;
  padding: 0 4px;
  border-radius: 3px;
  background: var(--npay-green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -0.3px;
  vertical-align: 2px;
}

.popular-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #c060ff;
  font-size: 12px;
  font-weight: 600;
}

.popular-badge::before {
  content: "N";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #c060ff;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.tag-chip {
  display: inline-block;
  padding: 3px 8px;
  margin: 0 4px 4px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  font-size: 12px;
}

/* Filter chip — used by the place tabs and the booking menu categories. */
.chip {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: #444;
  background: #fff;
  white-space: nowrap;
}

.chip.on {
  border-color: #33363c;
  background: #33363c;
  color: #fff;
  font-weight: 600;
}

.dot-sep {
  color: #d0d0d0;
  margin: 0 2px;
}

/* Feedback toast for placeholder controls (see DEAD_CLICK_SCRIPT in layout). */
.wb-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%, 20px);
  z-index: 9999;
  max-width: 90vw;
  padding: 11px 18px;
  border-radius: 22px;
  background: rgba(30, 32, 36, 0.94);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.4;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.wb-toast.show { opacity: 1; transform: translate(-50%, 0); }
