/* AI기업보안 맛집 Sharing — 기본 색: #0064FF(PANTONE 2175 C), #202632(PANTONE 433 C) */
:root {
  --blue: #0064ff;
  --blue-600: #0052d6;
  --blue-300: #6aa6ff;
  --blue-100: #d6e6ff;
  --blue-50: #eef4ff;
  --navy: #202632;
  --navy-700: #2c3444;
  --navy-500: #4a5468;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --line: #e3e8f0;
  --text: #202632;
  --muted: #6b7487;
  --star: #ffb400;
  --star-empty: #dbe0ea;
  --danger: #d93a45;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(32, 38, 50, .05), 0 6px 20px rgba(32, 38, 50, .06);
  --shadow-lg: 0 10px 28px rgba(32, 38, 50, .14);
  --toolbar-h: 120px;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
          'Noto Sans KR', 'Malgun Gothic', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
/* 대시보드 모든 글자는 Pretendard (폼 요소·지도·다이얼로그까지) */
html, body, button, input, select, textarea, dialog, .leaflet-container, .leaflet-tooltip, .leaflet-control-attribution {
  font-family: var(--font);
}
button, input, select, textarea { font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid rgba(0, 100, 255, .45); outline-offset: 2px; }

/* ---------- 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; white-space: nowrap; transition: background .15s, border-color .15s, opacity .15s;
}
.btn:disabled { opacity: .55; cursor: progress; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover:not(:disabled) { background: var(--blue-600); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover:not(:disabled) { background: var(--navy-700); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--navy); }
.btn--ghost:hover { border-color: #c8d0dd; }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); color: inherit; font-size: 16px;
}
.icon-btn:hover { background: rgba(255, 255, 255, .22); }
.link-btn {
  border: 0; background: none; padding: 0; color: var(--blue); font-weight: 700; font-size: inherit;
  text-decoration: underline; text-underline-offset: 3px;
}
.link-btn--danger { color: var(--danger); font-weight: 600; font-size: 13px; text-decoration: none; }
.link-btn--danger:hover { text-decoration: underline; }

/* ---------- 상단 바 */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar__inner {
  max-width: 1360px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; color: inherit; text-decoration: none; }
.brand__logo { display: block; height: 46px; width: auto; }
.brand__divider { width: 1px; height: 28px; background: var(--line); flex: none; }
.brand__title { font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); white-space: nowrap; }
.brand__title b { color: var(--blue); font-weight: 800; }

/* ---------- 히어로 */
.hero {
  color: #fff;
  background: var(--blue);
}
.hero__inner {
  max-width: 1360px; margin: 0 auto; padding: 26px 24px 28px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.hero__text { flex: 1 1 420px; min-width: 0; }
.hero__title { margin: 14px 0 6px; font-size: 30px; line-height: 1.25; font-weight: 800; letter-spacing: -.03em; }
.hero__loc { color: #fff; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: rgba(255, 255, 255, .5); }
.hero__desc { margin: 0; max-width: 580px; color: rgba(255, 255, 255, .88); font-size: 14.5px; }
.hero__desc strong { color: #fff; font-weight: 700; }
.loc-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.loc-tab {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); background: transparent;
  color: #fff; font-weight: 700; font-size: 14px;
}
.loc-tab[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--blue); }
.loc-hint { font-size: 12.5px; color: rgba(255, 255, 255, .75); }
.hero__stats { display: grid; grid-template-columns: repeat(4, minmax(112px, 1fr)); gap: 10px; margin: 0; flex: 0 1 560px; }
.stat {
  padding: 12px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
}
.team-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.team-bar__select {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 4px 0 14px;
  border-radius: 10px; background: #fff; color: var(--navy);
}
.team-bar__label { font-size: 13px; font-weight: 800; white-space: nowrap; }
.team-bar__select select {
  max-width: 220px; height: 28px; padding: 0 6px; border: 0; border-radius: 6px;
  background: var(--blue-50); color: var(--blue); font-size: 14px; font-weight: 800; cursor: pointer;
}
.team-bar__select select:focus-visible { outline: 2px solid var(--blue); }
.team-bar__btn {
  height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .5);
  background: transparent; color: #fff; font-size: 13px; font-weight: 700;
}
.team-bar__btn:hover { background: rgba(255, 255, 255, .12); }
.stat dt { font-size: 12.5px; color: rgba(255, 255, 255, .85); }
.stat dd { margin: 2px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat dd small { margin-left: 2px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.stat--accent { background: #fff; border-color: #fff; }
.stat--accent dt { color: var(--muted); }
.stat--accent dd { color: var(--blue); }
.stat--accent dd small { color: var(--muted); }

/* ---------- 툴바(카테고리·필터) */
.toolbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.toolbar__inner { max-width: 1360px; margin: 0 auto; padding: 12px 24px; display: flex; flex-direction: column; gap: 10px; }
.cat-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px;
  border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy);
  font-weight: 700; font-size: 15px; transition: background .15s, border-color .15s;
}
.cat-tab:hover { border-color: #c8d0dd; }
.cat-tab__icon { font-size: 18px; line-height: 1; }
.cat-tab__count {
  min-width: 22px; padding: 1px 7px; border-radius: 999px; text-align: center;
  background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 700;
}
.cat-tab[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.cat-tab[aria-pressed="true"] .cat-tab__count { background: rgba(255, 255, 255, .16); color: #fff; }
.toolbar__row { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filters__label { margin-right: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.chip {
  display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff;
  color: var(--navy-500); font-size: 14px; font-weight: 600;
}
.chip:hover { border-color: #c8d0dd; }
.chip[aria-pressed="true"] { background: var(--blue-50); border-color: var(--blue); color: var(--blue); }
.chip--reset { border-style: dashed; color: var(--muted); }
.toolbar__tools { display: flex; gap: 8px; flex: 0 1 auto; }
.search { position: relative; display: block; }
.search__icon { position: absolute; left: 11px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input, .sort select {
  height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px;
}
.search input { width: 240px; padding: 0 12px 0 34px; }
.sort select { padding: 0 30px 0 12px; }
.search input:focus, .sort select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 100, 255, .15); }

/* ---------- 본문 레이아웃 */
.layout {
  max-width: 1360px; margin: 0 auto; padding: 20px 24px 40px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 42%); gap: 20px; align-items: start;
}
.panel { min-width: 0; }
.map-wrap {
  position: sticky; top: calc(var(--toolbar-h) + 16px); z-index: 0; isolation: isolate;
  height: calc(100vh - var(--toolbar-h) - 32px); height: calc(100dvh - var(--toolbar-h) - 32px); min-height: 420px;
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #e8edf4; box-shadow: var(--shadow);
}
#map { width: 100%; height: 100%; }
.map-btn {
  position: absolute; left: 12px; top: 12px; z-index: 500; height: 34px; padding: 0 12px;
  border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 700;
  color: var(--navy); box-shadow: var(--shadow);
}
.map-fallback { padding: 24px; color: var(--muted); }

/* ---------- 카테고리 섹션 + 캐러셀 */
.cat-section {
  margin-bottom: 16px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
}
.section-head {
  display: flex; align-items: center; gap: 8px; padding: 13px 18px;
  background: var(--blue-50); border-bottom: 1px solid var(--blue-100);
}
.section-head__num { color: var(--blue); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.section-head__title { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.section-head__count { color: var(--muted); font-size: 13px; font-weight: 600; }
.section-head__more {
  margin-left: auto; border: 0; background: none; color: var(--navy-500); font-size: 13px; font-weight: 700;
}
.section-head__more:hover { color: var(--blue); }
.section-empty { margin: 0; padding: 18px; color: var(--muted); font-size: 14px; }
.carousel { position: relative; padding: 14px 0 12px; }
.carousel__track {
  display: flex; gap: 12px; overflow-x: auto; padding: 2px 18px 6px;
  scroll-snap-type: x mandatory; scroll-padding: 0 18px; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > .card { flex: 0 0 208px; scroll-snap-align: start; }
.carousel__nav {
  position: absolute; top: calc(50% - 4px); z-index: 2; width: 36px; height: 36px; transform: translateY(-50%);
  border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy);
  font-size: 22px; line-height: 1; box-shadow: var(--shadow-lg);
}
.carousel__nav--prev { left: 8px; }
.carousel__nav--next { right: 8px; }

/* ---------- 결과 그리드 */
.results-head { display: flex; align-items: baseline; gap: 10px; margin: 2px 2px 14px; flex-wrap: wrap; }
.results-head h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.results-head__count { color: var(--blue); font-weight: 800; }
.results-head .link-btn { margin-left: auto; font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 14px; }

/* ---------- 카드 */
.card {
  display: flex; flex-direction: column; overflow: hidden; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover, .card.is-hover { transform: translateY(-2px); border-color: var(--blue-100); box-shadow: var(--shadow-lg); }
.card:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 100, 255, .4); }
.card__thumb { position: relative; height: 104px; display: grid; place-items: center; }
.card__thumb--korean { background: linear-gradient(135deg, #e7f0ff, #c9ddff); }
.card__thumb--chinese { background: linear-gradient(135deg, #ecf1f9, #d2dcec); }
.card__thumb--japanese { background: linear-gradient(135deg, #e8f5ff, #c8e6ff); }
.card__thumb--western { background: linear-gradient(135deg, #eef0ff, #d6dbff); }
.card__thumb--fastfood { background: linear-gradient(135deg, #e9f3ff, #cfe3fb); }
.card__emoji { font-size: 44px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(32, 38, 50, .18)); }
.card__cat {
  position: absolute; left: 10px; top: 10px; padding: 2px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .88); color: var(--navy); font-size: 12px; font-weight: 700;
}
.score-badge {
  position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 9px; border-radius: 8px; background: rgba(32, 38, 50, .86); color: var(--star); font-size: 12px;
}
.score-badge b { color: #fff; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.score-badge--new b { color: var(--blue-300); font-size: 12px; }
.card__body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 13px; }
.card__name { margin: 0; overflow: hidden; font-size: 16px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; text-overflow: ellipsis; }
.card__menu {
  margin: 0; color: var(--navy-500); font-size: 13px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__label { margin-right: 4px; color: var(--blue); font-weight: 700; }
.card__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.card__meta { margin: auto 0 0; padding-top: 4px; color: var(--muted); font-size: 12px; }
.tag {
  display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px;
  background: var(--bg); color: var(--navy-500); font-size: 12px; font-weight: 700;
}

/* ---------- 빈 상태 */
.empty {
  padding: 44px 20px; text-align: center;
  background: var(--surface); border: 1px dashed #cdd5e1; border-radius: 18px;
}
.empty__icon { font-size: 40px; }
.empty h3 { margin: 8px 0 4px; font-size: 18px; }
.empty p { margin: 0 0 16px; color: var(--muted); }

/* ---------- 상세 */
.detail {
  padding: 18px 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
}
.detail__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.back-btn { border: 0; background: none; padding: 4px 0; color: var(--navy-500); font-weight: 700; font-size: 14px; }
.back-btn:hover { color: var(--blue); }
.detail__badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 700;
}
.detail__name { margin: 10px 0 6px; font-size: 26px; line-height: 1.25; font-weight: 800; letter-spacing: -.03em; }
.detail__rating { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.detail__rating b { color: var(--text); font-size: 18px; font-weight: 800; }
.detail__addr { margin: 8px 0 0; color: var(--navy-500); font-size: 14px; }
.detail__walk { color: var(--blue); font-weight: 700; }
.detail__links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.ext-link {
  display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 13px; font-weight: 700; text-decoration: none;
}
.ext-link:hover { border-color: var(--blue); color: var(--blue); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.info { padding: 14px 16px; border-radius: 12px; background: var(--bg); }
.info h4 { margin: 0 0 4px; color: var(--navy-500); font-size: 13px; font-weight: 700; }
.info p { margin: 0; white-space: pre-line; }
.info--muted p { color: var(--muted); }
.reason {
  margin: 12px 0 0; padding: 16px 18px; border-radius: 12px;
  background: var(--blue-50); border-left: 4px solid var(--blue);
}
.reason__label { margin: 0 0 4px; color: var(--blue); font-size: 13px; font-weight: 800; }
.reason blockquote { margin: 0; white-space: pre-line; font-size: 15px; }
.reason figcaption { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 13px; }
.danger-zone { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); text-align: right; }

/* 별점 표시 */
.stars { position: relative; display: inline-block; font-size: 16px; line-height: 1; letter-spacing: 1px; }
.stars::before { content: '★★★★★'; color: var(--star-empty); }
.stars::after {
  content: '★★★★★'; position: absolute; left: 0; top: 0; width: var(--pct, 0%);
  overflow: hidden; white-space: nowrap; color: var(--star);
}
.stars--sm { font-size: 13px; }
.stars--lg { font-size: 20px; }

/* 후기 */
.reviews { margin-top: 26px; }
.reviews__title { margin: 0 0 12px; font-size: 18px; font-weight: 800; }
.reviews__title span { color: var(--blue); }
.review-summary {
  display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px;
}
.review-summary__score { text-align: center; }
.review-summary__score b { display: block; font-size: 36px; line-height: 1.1; font-weight: 800; font-variant-numeric: tabular-nums; }
.review-summary__score span { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.dist { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.dist li { display: grid; grid-template-columns: 30px 1fr 24px; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.dist__bar { height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.dist__fill { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.dist__n { text-align: right; font-variant-numeric: tabular-nums; }
.review-form {
  display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding: 16px 18px;
  border-radius: 14px; background: var(--bg);
}
.review-form__title { margin: 0; font-size: 14px; font-weight: 800; }
.review-form__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.review-form__row .input { flex: 0 1 220px; height: 38px; }
.review-form textarea { resize: vertical; min-height: 80px; }
.review-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.counter { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.review-list { list-style: none; margin: 14px 0 0; padding: 0; }
.review { padding: 14px 2px; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.review__author { font-size: 14px; }
.review__head time { color: var(--muted); }
.review__head .link-btn { margin-left: auto; }
.review__content { margin: 6px 0 0; white-space: pre-line; }
.muted { color: var(--muted); }

/* 별점 입력 */
.star-field { display: flex; align-items: center; gap: 10px; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-input input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.star-input label { padding: 0 1px; color: var(--star-empty); font-size: 28px; line-height: 1; cursor: pointer; transition: color .1s, transform .1s; }
.star-input input:checked ~ label { color: var(--star); }
.star-input:hover input ~ label { color: var(--star-empty); }
.star-input:hover label:hover, .star-input:hover label:hover ~ label { color: var(--star); }
.star-input label:active { transform: scale(.9); }
.star-input input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 1px; border-radius: 4px; }
.star-field__hint { min-width: 64px; color: var(--muted); font-size: 13px; font-weight: 700; }

/* ---------- 지도 핀 (네이버·OSM 공용 DOM) */
.map-icon { background: none; border: 0; }
.pin { position: relative; width: 36px; height: 44px; cursor: pointer; }
.pin__body {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--blue); border: 3px solid #fff; box-shadow: 0 4px 12px rgba(32, 38, 50, .35);
  transition: transform .15s, background .15s;
}
.pin__icon { transform: rotate(45deg); font-size: 16px; line-height: 1; }
.pin__label {
  position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%);
  max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 4px 9px; border-radius: 8px; background: var(--navy); color: #fff;
  font-size: 12.5px; font-weight: 700; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .12s;
}
.pin:hover .pin__label, .pin--hover .pin__label, .pin--active .pin__label { opacity: 1; }
.pin--hover .pin__body, .pin--active .pin__body { background: var(--navy); transform: rotate(-45deg) scale(1.2); }
.pin--draft .pin__body { background: var(--navy); }
.office-pin { position: relative; width: 0; height: 0; pointer-events: none; }
.office-pin__body {
  position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px;
  white-space: nowrap; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 800;
  border: 2px solid #fff; box-shadow: 0 4px 12px rgba(32, 38, 50, .35); transform: translate(-50%, -50%);
}

/* ---------- 등록 다이얼로그 */
.dialog {
  width: min(1040px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 20px; color: var(--text); background: #fff;
  box-shadow: 0 24px 64px rgba(32, 38, 50, .35);
}
.dialog--narrow { width: min(560px, calc(100vw - 32px)); }
.dialog__body.dialog__body--single { grid-template-columns: 1fr; }
.dialog::backdrop { background: rgba(32, 38, 50, .6); backdrop-filter: blur(2px); }
.dialog__form { display: flex; flex-direction: column; max-height: calc(100dvh - 32px); }
.dialog__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 24px; background: var(--navy); color: #fff;
}
.dialog__head h2 { margin: 0; font-size: 20px; font-weight: 800; }
.dialog__head p { margin: 2px 0 0; color: rgba(255, 255, 255, .65); font-size: 13.5px; }
.dialog__body { display: grid; grid-template-columns: 1.05fr 1fr; gap: 8px 28px; padding: 20px 24px 8px; overflow: auto; }
.dialog__col { min-width: 0; }
.dialog__foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 14px 24px; border-top: 1px solid var(--line); background: #fafbfd;
}
.form-error { flex: 1; margin: 0; color: var(--danger); font-size: 13.5px; font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0 0 16px; padding: 0; border: 0; }
.field__label { display: flex; align-items: center; gap: 6px; padding: 0; font-size: 14px; font-weight: 800; color: var(--navy); }
.field__hint { margin: 0; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.req { color: var(--blue); }
.field-row { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { resize: vertical; min-height: 76px; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 100, 255, .15); }
.input.is-invalid, .pick-map.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(217, 58, 69, .12); }
.pill-group.is-invalid { outline: 2px solid rgba(217, 58, 69, .6); outline-offset: 4px; }
.pill-group { display: flex; flex-wrap: wrap; gap: 6px; border-radius: 12px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span {
  display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700;
  color: var(--navy-500); cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.pill span:hover { border-color: #c8d0dd; }
.pill input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.pill--tag input:checked + span { background: var(--blue-50); border-color: var(--blue); color: var(--blue); }
.pill input:focus-visible + span { outline: 3px solid rgba(0, 100, 255, .45); outline-offset: 2px; }
.loc-chip { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-size: 12.5px; }
.geo-search { display: flex; gap: 6px; }
.geo-results {
  list-style: none; margin: 0; padding: 4px; max-height: 196px; overflow: auto;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.geo-results button {
  display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; text-align: left;
}
.geo-results button:hover, .geo-results button:focus-visible { background: var(--blue-50); }
.geo-results b { display: block; font-size: 14px; }
.geo-results small { color: var(--muted); font-size: 12.5px; }
.geo-results__empty { padding: 10px; color: var(--muted); font-size: 13px; }
.pick-map { height: 300px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; isolation: isolate; background: #e8edf4; }
.picker { display: flex; flex-direction: column; gap: 6px; }
.pick-status { margin: 0; color: var(--muted); font-size: 13px; }
.pick-status.is-set { color: var(--blue); font-weight: 700; }

/* ---------- 입장 코드 화면 */
.gate {
  position: fixed; inset: 0; z-index: 4000; display: grid; place-items: center; padding: 16px;
  background: var(--blue);
}
.gate__card {
  width: min(400px, 100%); padding: 32px 28px 24px; border-radius: 20px; background: #fff;
  box-shadow: 0 24px 64px rgba(32, 38, 50, .3); text-align: center;
}
.gate__logo { display: block; height: 52px; width: auto; margin: 0 auto 16px; }
.gate__title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.gate__title b { color: var(--blue); }
.gate__desc { margin: 8px 0 20px; color: var(--muted); font-size: 14px; }
.gate__input { height: 46px; text-align: center; font-size: 16px; letter-spacing: .05em; }
.gate .form-error { min-height: 20px; margin: 8px 0; }
.gate__btn { width: 100%; height: 46px; }
.gate__note { margin: 12px 0 0; color: var(--muted); font-size: 12.5px; }

/* ---------- 토스트 / 푸터 / FAB */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 3000; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 600;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transform: translate(-50%, 16px);
  transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast--error { background: var(--danger); }
.footer { max-width: 1360px; margin: 0 auto; padding: 8px 24px 32px; color: var(--muted); font-size: 12.5px; }
.footer p { margin: 0; }
.fab {
  display: none; position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 30;
  width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--blue); color: #fff;
  font-size: 28px; line-height: 1; box-shadow: 0 10px 24px rgba(0, 100, 255, .45);
}
.skeleton { height: 220px; border-radius: 18px; background: linear-gradient(90deg, #eef1f6 25%, #f7f9fc 50%, #eef1f6 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- 반응형 */
@media (max-width: 1100px) {
  .hero__stats { grid-template-columns: repeat(2, minmax(120px, 1fr)); flex-basis: 320px; }
}
@media (max-width: 960px) {
  .toolbar { position: relative; }
  .layout { grid-template-columns: 1fr; padding: 12px 16px 96px; gap: 14px; }
  .map-wrap { position: relative; top: 0; order: -1; height: 300px; min-height: 0; }
  .search input { width: 100%; }
  .toolbar__tools { flex: 1 1 100%; }
  .toolbar__tools .search { flex: 1; }
}
@media (max-width: 760px) {
  .dialog { width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .dialog__form { height: 100%; max-height: none; }
  .dialog__body { grid-template-columns: 1fr; padding: 16px; }
  .dialog__head, .dialog__foot { padding-left: 16px; padding-right: 16px; }
  .dialog__foot { flex-wrap: wrap; }
  .form-error { flex-basis: 100%; }
  .pick-map { height: 240px; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .topbar__inner, .toolbar__inner, .hero__inner, .footer { padding-left: 16px; padding-right: 16px; }
  .topbar__inner { padding-top: 8px; padding-bottom: 8px; }
  .brand { gap: 10px; }
  .brand__logo { height: 30px; }
  .brand__divider { height: 20px; }
  .brand__title { font-size: 15.5px; }
  .topbar__cta { display: none; }
  .fab { display: grid; place-items: center; }
  .hero__inner { padding-top: 18px; padding-bottom: 20px; }
  .hero__title { font-size: 23px; }
  .hero__stats { flex-basis: 100%; gap: 8px; }
  .stat { padding: 10px 12px; }
  .stat dd { font-size: 21px; }
  .team-bar__select { flex: 1 1 100%; }
  .team-bar__select select { flex: 1; max-width: none; }
  .cat-tab { height: 38px; padding: 0 12px; font-size: 14px; }
  .info-grid { grid-template-columns: 1fr; }
  .review-summary { grid-template-columns: 1fr; gap: 10px; }
  .detail { padding: 16px; }
  .detail__name { font-size: 22px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .carousel__track > .card { flex-basis: 168px; }
  .carousel__nav { display: none; }
  .card__thumb { height: 88px; }
  .card__emoji { font-size: 36px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
