/* ============================================================
   공다방 — 당근 스타일 UI
   화이트 베이스 · 블루 액센트(#2E5BFF) · 헤어라인 보더 · Pretendard
   ============================================================ */

:root {
  color-scheme: light;
  --max: 1200px;
  --accent: #2e5bff;
  --accent-deep: #1d46e6;
  --accent-soft: #eaf0ff;
  --accent-tint: #c9d7ff;
  --g900: #212124;
  --g700: #4d5159;
  --g600: #868b94;
  --g500: #adb1ba;
  --g400: #d1d3d8;
  --g300: #e9ebee;
  --g200: #f2f3f6;
  --g100: #f7f8fa;
  --ink: var(--g900);
  --muted: var(--g600);
  --line: var(--g300);
  --red: #e8443a;
  --red-soft: #fdeceb;
  --blue: #3182f6;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(33, 33, 36, 0.08);
  --shadow-md: 0 6px 20px rgba(33, 33, 36, 0.12);
  --shadow-lg: 0 16px 44px rgba(33, 33, 36, 0.2);
  --hairline: inset 0 0 0 1px rgba(33, 33, 36, 0.06);
  --header-h: 64px;
  --tabbar-h: 58px;

  /* ---- 디자인 토큰 (DESIGN.md §3·§4·§5·§6 단일 원천) ---- */
  /* radius — 액션8 / 콘텐츠12-14 / 칩·태그999 위계 */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 14px;
  --radius-2xl: 16px;
  --radius-pill: 999px;
  /* spacing scale (4px 기반) */
  --space-1: 2px;
  --space-2: 4px;
  --space-3: 6px;
  --space-4: 8px;
  --space-5: 10px;
  --space-6: 12px;
  --space-7: 14px;
  --space-8: 16px;
  --space-10: 20px;
  --space-12: 24px;
  --space-18: 36px;
  /* type scale */
  --fs-11: 11px;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-15: 15px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-21: 21px;
  --fs-25: 25px;
  --fs-27: 27px;
  /* motion */
  --dur-fast: 0.12s;
  --dur: 0.15s;
  --dur-slow: 0.22s;
  --ease: ease;
  /* z-index 스택 순서 (전역 오버레이) */
  --z-filterbar: 40;
  --z-gnb: 50;
  --z-fab: 60;
  --z-tabbar: 70;
  --z-detail: 80;
  --z-sheet-backdrop: 90;
  --z-sheet: 95;
  --z-modal: 100;
  --z-toast: 120;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

::placeholder {
  color: var(--g500);
}

/* ============ 공통 버튼/텍스트 ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--g300);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--g900);
  transition: background 0.15s, border-color 0.15s;
}

.btn:hover {
  background: var(--g100);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.text-btn {
  font-size: 14px;
  font-weight: 600;
  color: var(--g600);
}

.text-btn:hover {
  color: var(--accent);
}

/* ============ GNB ============ */

.gnb {
  position: sticky;
  top: 0;
  z-index: var(--z-gnb);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.gnb-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.brand-mark svg {
  width: 72%;
  height: 78%;
  display: block;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.loc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--g900);
  flex-shrink: 0;
}

.loc-chip:hover {
  background: var(--g100);
}

.loc-chip svg {
  width: 18px;
  height: 18px;
}

.loc-chip .caret {
  width: 10px;
  height: 6px;
  color: var(--g600);
}

.gnb-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.gnb-menu::-webkit-scrollbar {
  display: none;
}

.gnb-tab {
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--g900);
  white-space: nowrap;
}

.gnb-tab:hover {
  background: var(--g100);
}

.gnb-tab.active {
  color: var(--accent);
}

.search-box {
  position: relative;
  z-index: calc(var(--z-gnb) + 2);
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 280px;
  height: 40px;
  padding: 0 12px;
  background: var(--g100);
  border-radius: 10px;
  flex-shrink: 0;
}

.search-box:focus-within {
  box-shadow: 0 0 0 2px var(--accent-tint);
}

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--g500);
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--g900);
}

.search-box input:focus {
  outline: none;
}

.search-box input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--g400);
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: calc(var(--z-gnb) + 5);
  max-height: min(430px, calc(100vh - var(--header-h) - 28px));
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--g200);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(20, 24, 32, 0.16);
}

.suggest-group + .suggest-group {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--g200);
}

.suggest-title {
  margin-bottom: 7px;
  padding: 0 2px;
  font-size: 12px;
  font-weight: 800;
  color: var(--g500);
}

.recent-searches,
.search-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.recent-search {
  display: inline-flex;
  align-items: center;
  height: 32px;
  border: 1px solid var(--g300);
  border-radius: 999px;
  background: var(--g100);
  overflow: hidden;
}

.recent-search > button:first-child {
  height: 100%;
  padding: 0 9px 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--g800);
}

.recent-remove {
  width: 28px;
  height: 100%;
  color: var(--g500);
  font-size: 15px;
}

.search-chip {
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--g300);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--g800);
}

.search-chip:hover,
.recent-search:hover {
  border-color: var(--accent-tint);
  background: var(--accent-soft);
}

.suggest-rows {
  display: grid;
  gap: 4px;
}

.suggest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 8px 9px;
  border-radius: 8px;
  text-align: left;
}

.suggest-row:hover {
  background: var(--g100);
}

.suggest-row span {
  min-width: 0;
  font-size: 14px;
  font-weight: 750;
  color: var(--g900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggest-row small {
  margin-left: 7px;
  font-size: 12px;
  color: var(--g500);
  font-weight: 650;
}

.suggest-row em {
  flex-shrink: 0;
  font-style: normal;
  font-size: 12px;
  font-weight: 750;
  color: var(--accent);
}

.suggest-empty {
  padding: 18px 6px;
  color: var(--g500);
  font-size: 13px;
  text-align: center;
}

.gnb-submit {
  flex-shrink: 0;
  height: 38px;
}

/* ============ 웰컴 배너 ============ */

.welcome {
  background: linear-gradient(180deg, #f5f8ff 0%, #eaf0ff 100%);
  border-bottom: 1px solid #dbe5ff;
}

.welcome-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.welcome-copy h1 {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.welcome-copy p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--g700);
}

/* 캐치프레이즈 — "내 손 안에 작은 예술관, 공다방" */
.welcome-copy .welcome-slogan {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.welcome-copy .welcome-slogan strong {
  font-weight: 800;
}
.welcome-copy .welcome-sub {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--g500);
}

.welcome-art {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.wa-emoji {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  font-size: 30px;
}

.wa-emoji.b {
  transform: translateY(10px);
}

.wa-emoji.c {
  transform: translateY(-6px);
}

/* ============ 섹션 공통 ============ */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 8px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--g600);
}

.section-sub b {
  color: var(--g900);
}

/* ============ 내 근처 ============ */

.locate-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--g300);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--g900);
}

.locate-btn:hover {
  background: var(--g100);
}

.locate-btn .loc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--g500);
}

.locate-btn.is-ready {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.locate-btn.is-ready .loc-dot {
  background: var(--accent);
}

.locate-btn.is-loading .loc-dot {
  background: var(--blue);
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}

.app-map-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.map-surface {
  position: relative;
  height: 320px;
  background: #eef1ec;
}

.kakao-map {
  position: absolute;
  inset: 0;
  display: none;
}

.map-surface.has-kakao-map .kakao-map {
  display: block;
}

.map-surface.has-kakao-map .map-fallback {
  display: none;
}

.map-surface.is-map-loading .map-fallback {
  animation: pulse 1.4s ease-in-out infinite;
}

.map-fallback {
  position: absolute;
  inset: 0;
}

.map-grid {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(33, 33, 36, 0.05) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(33, 33, 36, 0.05) 47px 48px),
    radial-gradient(circle at 60% 35%, #e3ecdb 0%, #eef1ec 60%);
}

.map-home-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(49, 130, 246, 0.18);
  transform: translate(-50%, -50%);
}

.map-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}

.map-pin:hover {
  background: var(--accent);
  color: #fff;
}

.kakao-event-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
/* 단일 행사 = 작은 점(숫자 없음), 같은 장소 여러 건(multi) = 개수 원 */
.kakao-event-marker.single {
  width: 15px;
  height: 15px;
  background: var(--accent);
  border-color: #fff;
}

.kakao-event-marker.active {
  background: var(--accent);
  color: #fff;
  transform: scale(1.12);
}

.kakao-home-marker {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(49, 130, 246, 0.18);
}

.location-bases {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 0 14px;
}

.location-bases::-webkit-scrollbar {
  display: none;
}

.location-base-chip {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--g300);
  border-radius: 999px;
  background: #fff;
  color: var(--g700);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.location-base-chip.on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.home-shortcuts {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 0 14px;
}

.home-shortcuts::-webkit-scrollbar {
  display: none;
}

.home-shortcut {
  flex: 0 0 116px;
  min-height: 76px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--g800);
  text-align: left;
  box-shadow: var(--shadow-xs);
}

.home-shortcut span,
.home-shortcut b,
.home-shortcut small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-shortcut span {
  font-size: 14px;
  font-weight: 900;
}

.home-shortcut b {
  margin-top: 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.home-shortcut small {
  margin-top: 3px;
  color: var(--g600);
  font-size: 11.5px;
  font-weight: 750;
}

.home-shortcut:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.map-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
}

.map-summary strong {
  font-size: 15px;
  font-weight: 700;
}

.map-summary span {
  font-size: 13px;
  color: var(--g600);
}

.nearby-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
}

.nearby-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
}

.nearby-rail::-webkit-scrollbar {
  display: none;
}

.nearby-card {
  flex: 0 0 250px;
  scroll-snap-align: start;
  display: flex;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.nearby-card:hover {
  background: var(--g100);
}

.nearby-card.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.nearby-poster {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: var(--g200);
}

.nearby-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nearby-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nearby-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nearby-main h3 {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.nearby-main p {
  font-size: 12px;
  color: var(--g600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nearby-main small {
  font-size: 12px;
  color: var(--g600);
}

/* ============ 레일 ============ */

.rail-wrap {
  position: relative;
}

.rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail .card {
  flex: 0 0 178px;
  scroll-snap-align: start;
}

.rail-arrow {
  position: absolute;
  top: 80px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--g300);
  box-shadow: var(--shadow-sm);
  font-size: 19px;
  color: var(--g700);
  display: grid;
  place-items: center;
  z-index: 5;
}

.rail-arrow:hover {
  background: var(--g100);
}

.rail-arrow.prev {
  left: -16px;
}

.rail-arrow.next {
  right: -16px;
}

/* ============ 테마 PICK ============ */

.pick-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pick-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--g300);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--g900);
}

.pick-tab span {
  font-size: 12px;
  color: var(--g500);
}

.pick-tab.active {
  background: var(--g900);
  border-color: var(--g900);
  color: #fff;
}

.pick-tab.active span {
  color: rgba(255, 255, 255, 0.7);
}

.pick-more-row {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.pick-more {
  width: 100%;
  max-width: 360px;
}

/* ============ 카드 (당근 그리드 카드) ============ */

.card {
  cursor: pointer;
  min-width: 0;
}

.card-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--g200);
}

.card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: var(--hairline);
  pointer-events: none;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.card:hover .card-thumb img {
  transform: scale(1.04);
}

.poster-series-mark {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 58px;
  padding: 8px 38px 8px 9px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--series-accent), var(--series-accent-2));
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.26);
}

.poster-series-mark span {
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0.9;
}

.poster-series-mark strong {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.18;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.poster-series-mark em {
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  opacity: 0.9;
}

.nearby-poster .poster-series-mark {
  display: none;
}

.card-body {
  padding: 9px 2px 14px;
}

.card-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.42;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title-note,
.row-title-note {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 4px;
  padding: 3px 6px;
  border-radius: 6px;
  background: #f2f5ff;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-mark {
  display: inline;
  border-radius: 4px;
  background: #fff4a8;
  color: inherit;
  padding: 0 2px;
}

.search-match {
  display: flex;
  align-items: center;
  min-width: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.card-search-match {
  margin-top: 5px;
}

.row-search-match {
  margin-top: 5px;
}

.search-match span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-evidence {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 8px;
  background: #f7f9ff;
  color: var(--g700);
  font-size: 12.5px;
  line-height: 1.45;
}

.card-search-evidence,
.row-search-evidence {
  margin-top: 6px;
}

.search-evidence b {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.search-evidence span {
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-price {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
}

.fact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  overflow: hidden;
}

.card-facts {
  margin-top: 7px;
  max-height: 24px;
}

.row-facts {
  margin-top: 6px;
  max-height: 24px;
}

.fact-chip {
  display: inline-flex;
  align-items: center;
  height: 23px;
  max-width: 112px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--g100);
  color: var(--g700);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fact-chip.action {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.fact-chip.free {
  background: #e9fbf0;
  color: #087a3f;
}

.fact-chip.hot {
  background: var(--red-soft);
  color: var(--red);
}

.fact-chip.status {
  background: #eef3ff;
  color: var(--accent);
}

.fact-chip.near {
  background: #fff4d6;
  color: #8a6200;
}

.card-price.free {
  color: var(--accent);
}

.card-price.tbd {
  color: var(--g600);
  font-weight: 600;
  font-size: 14px;
}

.card-meta {
  margin-top: 3px;
  font-size: 13px;
  color: var(--g600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.venue-line {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.card-venue {
  margin-top: 5px;
  font-size: 13px;
}

.venue-city {
  flex: 0 0 auto;
  color: var(--g500);
}

.venue-name {
  min-width: 0;
  color: var(--g800);
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-room {
  flex: 0 1 auto;
  min-width: 0;
  color: var(--g600);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-room::before {
  content: "· ";
}

.venue-line.is-missing .venue-name {
  color: #9a6b00;
}

.card-review {
  margin-top: 5px;
  font-size: 12px;
  color: #9a6b00;
}

.card-series,
.row-series {
  --series-bg: color-mix(in srgb, var(--series-accent) 12%, white);
}

.card-series {
  display: grid;
  gap: 3px;
  margin-top: 5px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f6f8ff;
  background: var(--series-bg);
}

.card-series span,
.row-series span {
  flex-shrink: 0;
  color: var(--series-accent);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.card-series b {
  color: var(--g900);
  font-size: 14px;
  line-height: 1.25;
}

.card.is-ended .card-thumb {
  opacity: 0.55;
}

.card.is-ended .card-title,
.card.is-ended .card-price {
  color: var(--g500);
}

.rank-num {
  position: absolute;
  left: 10px;
  bottom: 6px;
  font-size: 30px;
  font-weight: 800;
  font-style: italic;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  line-height: 1;
}

/* 포스터 뱃지 */

.poster-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.poster-badge.dday {
  background: var(--accent);
  color: #fff;
}

.poster-badge.ongoing {
  background: rgba(255, 255, 255, 0.92);
  color: var(--g900);
  box-shadow: var(--hairline);
}

.poster-badge.upcoming {
  background: rgba(255, 255, 255, 0.92);
  color: var(--g700);
  box-shadow: var(--hairline);
}

.poster-badge.openrun {
  background: rgba(33, 33, 36, 0.62);
  color: #fff;
}

.poster-badge.ended {
  background: rgba(33, 33, 36, 0.72);
  color: #fff;
}

.poster-badge.review {
  background: #fff4d6;
  color: #9a6b00;
}

/* 포스터 폴백 (이미지 없는 행사) */

.poster-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 12px;
}

.poster-img-wrap {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.poster-img-wrap .poster-fallback {
  position: absolute;
  inset: 0;
}

.poster-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}

.pf-cat {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.75;
}

.pf-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.pf-venue {
  font-size: 11.5px;
  opacity: 0.75;
}

.tone-1 {
  background: #ffe9d6;
  color: #8a4a12;
}

.tone-2 {
  background: #e1f1e3;
  color: #2c6235;
}

.tone-3 {
  background: #ffe3e3;
  color: #94373d;
}

.tone-4 {
  background: #fff2cc;
  color: #8a6d1a;
}

.tone-5 {
  background: #e4ebf7;
  color: #3b5680;
}

.tone-6 {
  background: #efe7f6;
  color: #5f4380;
}

/* ============ 미니 뱃지 ============ */

.mini-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: var(--g200);
  color: var(--g700);
}

.mini-badge.dday {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.mini-badge.ongoing {
  background: #e7f7f0;
  color: #0a8a55;
}

.mini-badge.ended {
  background: var(--g200);
  color: var(--g500);
}

.mini-badge.free {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.mini-badge.review {
  background: #fff4d6;
  color: #9a6b00;
}

.mini-badge.distance {
  background: #eaf3ff;
  color: #2466c2;
}

/* ============ 리스트 섹션 ============ */

.list-section {
  padding-bottom: 64px;
}

.list-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 36px;
  align-items: start;
}

/* 사이드바 필터 (당근 좌측 패널) */

.side-filter {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
}

.sf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
}

.sf-head h3 {
  font-size: 17px;
  font-weight: 800;
}

.sf-reset {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.sf-group {
  padding: 15px 0;
  border-bottom: 1px solid var(--g200);
}

.sf-group.sf-last {
  border-bottom: 0;
}

.sf-group h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--g600);
  margin-bottom: 6px;
}

.sf-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 0;
  font-size: 15px;
  color: var(--g900);
  text-align: left;
}

.sf-row small {
  margin-left: auto;
  font-size: 13px;
  color: var(--g500);
}

.sf-row:disabled {
  opacity: 0.35;
  cursor: default;
}

.sf-check {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--g400);
  background: #fff;
  flex-shrink: 0;
  position: relative;
  transition: background 0.12s, border-color 0.12s;
}

.sf-row.on .sf-check {
  background: var(--accent);
  border-color: var(--accent);
}

.sf-row.on .sf-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

.sf-row.on .sf-label {
  font-weight: 700;
}

.date-range {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.date-range span {
  color: var(--g500);
  font-size: 12px;
}

.date-range input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 12.5px;
  padding: 6px 7px;
  border: 1px solid var(--g300);
  border-radius: 7px;
  color: var(--g900);
  background: #fff;
}

/* 리스트 헤더 도구 */

.list-head {
  margin-bottom: 10px;
}

.list-head h2 {
  font-size: 20px;
}

.list-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

#sortSelect {
  appearance: none;
  -webkit-appearance: none;
  height: 36px;
  padding: 0 28px 0 12px;
  border: 1px solid var(--g300);
  border-radius: 8px;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23868B94' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 10px center / 10px 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--g900);
  cursor: pointer;
}

.view-toggle {
  display: flex;
  border: 1px solid var(--g300);
  border-radius: 8px;
  overflow: hidden;
}

.view-toggle button {
  width: 36px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #fff;
}

.view-toggle button + button {
  border-left: 1px solid var(--g300);
}

.view-toggle svg {
  width: 16px;
  height: 16px;
  fill: var(--g500);
}

.view-toggle button.active {
  background: var(--g200);
}

.view-toggle button.active svg {
  fill: var(--g900);
}

/* 모바일 필터 칩바 — 데스크톱에선 숨김 */

.filterbar {
  display: none;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 10px;
}

.filterbar::-webkit-scrollbar {
  display: none;
}

.fb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--g300);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--g900);
  white-space: nowrap;
  flex-shrink: 0;
}

.fb-btn.on {
  background: var(--g900);
  border-color: var(--g900);
  color: #fff;
}

.fb-btn .funnel {
  width: 14px;
  height: 14px;
}

.fb-count {
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* 적용된 필터 칩 */

.applied-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 2px 0 14px;
}

.applied-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 600;
}

.applied-chip b {
  font-weight: 700;
  font-size: 11px;
}

.applied-clear {
  font-size: 13px;
  font-weight: 600;
  color: var(--g600);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 이벤트 그리드 */

.event-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 16px;
}

.event-grid.list-view {
  display: block;
}

/* 리스트 행 (당근 피드 행) */

.row-card {
  display: flex;
  gap: 14px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--g200);
  cursor: pointer;
  transition: background 0.12s;
}

.row-card:hover {
  background: var(--g100);
}

.row-thumb {
  position: relative;
  width: 108px;
  height: 108px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--g200);
  flex-shrink: 0;
}

.row-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  box-shadow: var(--hairline);
  pointer-events: none;
}

.row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row-thumb .poster-badge {
  top: 6px;
  left: 6px;
}

.row-thumb .poster-series-mark {
  left: 5px;
  right: 5px;
  bottom: 5px;
  min-height: 52px;
  padding: 6px 30px 6px 7px;
}

.row-thumb .poster-series-mark span,
.row-thumb .poster-series-mark em {
  font-size: 9.5px;
}

.row-thumb .poster-series-mark strong {
  font-size: 13px;
}

.row-main {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.row-main h3 {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.42;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.row-card.has-series .row-main h3,
.card.has-series .card-title {
  color: var(--g900);
  font-weight: 850;
}

.row-series {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  max-width: 100%;
  min-width: 0;
  margin-top: 6px;
  padding: 7px 9px;
  border-left: 4px solid var(--series-accent);
  border-radius: 8px;
  background: #f6f8ff;
  background: var(--series-bg);
}

.row-series b {
  flex: 1;
  min-width: 0;
  color: var(--g900);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-meta {
  margin-top: 2px;
  font-size: 13px;
  color: var(--g600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-venue {
  margin-top: 5px;
  font-size: 13px;
}

.row-price {
  margin-top: auto;
  padding-top: 4px;
  font-size: 16px;
  font-weight: 700;
}

.row-price.free {
  color: var(--accent);
}

.row-price.tbd {
  color: var(--g600);
  font-weight: 600;
  font-size: 14px;
}

.row-card.is-ended {
  opacity: 0.55;
}

/* 빈 상태 / 스켈레톤 */

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  color: var(--g600);
  font-size: 14.5px;
  line-height: 1.6;
}

.empty-state .emoji {
  display: block;
  font-size: 38px;
  margin-bottom: 10px;
}

.empty-state .btn {
  margin-top: 16px;
}

.empty-state.app-empty {
  padding: 28px;
  flex: 1;
}

.search-empty-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.search-empty-suggest {
  max-width: 560px;
  margin: 18px auto 0;
}

.search-empty-suggest strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--g600);
}

.search-empty .search-chip-row {
  justify-content: center;
}

.skel {
  background: linear-gradient(100deg, var(--g200) 40%, var(--g100) 50%, var(--g200) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 12px;
}

.poster-skel {
  aspect-ratio: 1 / 1;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* ============ 상세 페이지 ============ */

.detail-page {
  position: fixed;
  inset: 0;
  z-index: var(--z-detail);
  background: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dp-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.dp-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  color: var(--g900);
  display: grid;
  place-items: center;
}

.dp-back:hover {
  background: var(--g100);
}

.dp-bar-title {
  flex: 1;
  min-width: 0;
  font-size: 15.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-share {
  height: 34px;
  padding: 0 13px;
  font-size: 13px;
}

.dp-body {
  max-width: 1024px;
  margin: 0 auto;
  padding: 32px 24px 24px;
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 40px;
  align-items: start;
}

.dp-poster-col {
  position: sticky;
  top: 76px;
}

.dp-poster {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--g200);
}

.dp-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  box-shadow: var(--hairline);
  pointer-events: none;
}

.dp-poster img {
  width: 100%;
}

.dp-poster .poster-img-wrap {
  aspect-ratio: 3 / 4;
  height: auto;
}

.dp-poster .poster-fallback {
  aspect-ratio: 3 / 4;
}

.dp-kicker {
  font-size: 13px;
  color: var(--g600);
}

.dp-info h2 {
  margin-top: 6px;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
}

.dp-original-title {
  margin-top: 6px;
  color: var(--g500);
  font-size: 13px;
  line-height: 1.45;
}

.dp-price {
  margin-top: 10px;
  font-size: 21px;
  font-weight: 800;
}

.dp-price.free {
  color: var(--accent);
}

.dp-info .badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.dp-table {
  margin: 20px 0 0;
  border-top: 1px solid var(--g300);
}

.dp-table > div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--g200);
}

.dp-table dt {
  font-size: 14px;
  color: var(--g600);
}

.dp-table dd {
  margin: 0;
  font-size: 15px;
  color: var(--g900);
  white-space: pre-line;
  line-height: 1.5;
}

.dp-table dd small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--g600);
}

.dp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.dp-actions .btn {
  min-width: 0;
}

.dp-source-action {
  flex: 1 1 170px;
}

.dp-contact-action {
  color: var(--accent);
  border-color: var(--accent-tint);
}

.dp-experience {
  margin-top: 28px;
}

.dp-experience h3,
.dp-section h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 800;
}

.dp-experience > h3 {
  margin-top: 0;
}

.dp-point-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dp-point {
  min-height: 104px;
  padding: 13px 12px;
  border: 1px solid var(--g200);
  border-radius: 8px;
  background: #fffdf9;
}

.dp-point b {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  color: var(--g900);
}

.dp-point span {
  display: block;
  font-size: 13px;
  line-height: 1.52;
  color: var(--g700);
}

.dp-program,
.dp-check {
  margin-top: 18px;
}

.dp-check ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.dp-check li {
  position: relative;
  padding-left: 15px;
  font-size: 14px;
  line-height: 1.58;
  color: var(--g800);
}

.dp-check li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.dp-program-intro {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--g800);
}

.dp-program ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dp-program-item {
  padding: 13px 14px;
  border: 1px solid var(--g200);
  border-radius: 8px;
  background: #fff;
}

.dp-program-item small {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 800;
}

.dp-program-item b {
  display: block;
  color: var(--g900);
  font-size: 15px;
  line-height: 1.42;
}

.dp-program-item span {
  display: block;
  margin-top: 3px;
  color: var(--g600);
  font-size: 13px;
  line-height: 1.45;
}

.dp-program-item p {
  margin-top: 7px;
  color: var(--g700);
  font-size: 13.5px;
  line-height: 1.58;
}

.dp-program-item ol {
  margin: 9px 0 0;
  padding-left: 18px;
  color: var(--g700);
  font-size: 13.5px;
  line-height: 1.5;
}

.dp-program-notice {
  margin-top: 9px;
  color: var(--g500);
  font-size: 12.5px;
  line-height: 1.5;
}

.dp-section .desc {
  font-size: 15px;
  line-height: 1.72;
  color: var(--g900);
  white-space: pre-line;
}

.dp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

.dp-tag {
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--g200);
  color: var(--g700);
  font-size: 13px;
  font-weight: 600;
}

.dp-source {
  margin-top: 24px;
  font-size: 13px;
  color: var(--g500);
}

.dp-source a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dp-related {
  max-width: 1024px;
  margin: 0 auto;
  padding: 8px 24px 56px;
}

.dp-related h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--g200);
}

.dp-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 16px;
}

.dp-cta-bar {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px max(24px, calc((100vw - 1024px) / 2 + 24px)) calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--g200);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.08);
}

.dp-cta-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.dp-cta-copy span,
.dp-cta-copy strong,
.dp-cta-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dp-cta-copy span {
  color: var(--g600);
  font-size: 12.5px;
  font-weight: 800;
}

.dp-cta-copy strong {
  color: var(--g900);
  font-size: 18px;
  font-weight: 900;
}

.dp-cta-copy strong.free {
  color: var(--accent);
}

.dp-cta-copy small {
  color: var(--g600);
  font-size: 12px;
  font-weight: 700;
}

.dp-cta-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dp-cta-actions .btn {
  height: 46px;
  border-radius: 10px;
  padding: 0 14px;
  white-space: nowrap;
}

.dp-cta-actions .btn-accent,
.dp-cta-actions .btn.btn-primary {
  min-width: 180px;
}

.dp-cta-actions .dp-eng {
  min-width: 92px;
}

.detail-page:not([hidden]) ~ .fab,
.detail-page:not([hidden]) ~ .mobile-tabbar {
  display: none;
}

/* ============ 바텀시트 (필터) ============ */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-sheet-backdrop);
  background: rgba(33, 33, 36, 0.45);
}

.filter-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-sheet);
  background: #fff;
  border-radius: 20px 20px 0 0;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.sheet-grip {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: var(--g300);
  margin: 10px auto 0;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 8px;
}

.sheet-head h3 {
  font-size: 18px;
  font-weight: 800;
}

.sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--g600);
  display: grid;
  place-items: center;
  font-size: 15px;
}

.sheet-close:hover {
  background: var(--g100);
}

.sheet-body {
  overflow-y: auto;
  padding: 0 20px 16px;
}

.sheet-group {
  padding: 14px 0;
  border-bottom: 1px solid var(--g200);
}

.sheet-group:last-child {
  border-bottom: 0;
}

.sheet-group h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.opt-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--g300);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--g900);
}

.opt small {
  font-size: 11.5px;
  color: var(--g500);
}

.opt.on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 700;
}

.opt.on small {
  color: var(--accent-deep);
}

.opt:disabled {
  opacity: 0.35;
  cursor: default;
}

.sheet-body .date-range input {
  padding: 9px 10px;
  font-size: 14px;
}

.fb-ended {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--g700);
}

.fb-ended .sw {
  width: 36px;
  height: 21px;
  border-radius: 999px;
  background: var(--g300);
  position: relative;
  transition: background 0.15s;
}

.fb-ended .sw::after {
  content: "";
  position: absolute;
  top: 2.5px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: left 0.15s;
}

.fb-ended.on .sw {
  background: var(--accent);
}

.fb-ended.on .sw::after {
  left: 17px;
}

.sheet-foot {
  display: flex;
  gap: 10px;
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--g200);
}

.sheet-foot .btn {
  height: 48px;
  border-radius: 10px;
  font-size: 15px;
}

.sheet-foot .btn:first-child {
  flex: 0 0 96px;
  background: var(--g200);
  border-color: var(--g200);
}

.sheet-foot .btn-accent {
  flex: 1;
  background: var(--accent);
  border-color: var(--accent);
}

/* 데스크톱에선 시트를 중앙 다이얼로그로 */

@media (min-width: 960px) {
  .filter-sheet {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 460px;
    max-height: 78vh;
    border-radius: 16px;
  }

  .sheet-grip {
    display: none;
  }
}

/* ============ 등록 모달 ============ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(33, 33, 36, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 24px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--g600);
  font-size: 15px;
  display: grid;
  place-items: center;
}

.modal-close:hover {
  background: var(--g100);
}

.modal-card h3 {
  font-size: 19px;
  font-weight: 800;
}

.modal-sub {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--g600);
  line-height: 1.5;
}

#submitForm,
#editForm {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#submitForm input,
#submitForm select,
#submitForm textarea,
#editForm input,
#editForm select,
#editForm textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--g900);
  background: var(--g100);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 12px 14px;
}

#submitForm input:focus,
#submitForm select:focus,
#submitForm textarea:focus,
#editForm input:focus,
#editForm select:focus,
#editForm textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
}

#submitForm textarea,
#editForm textarea {
  min-height: 88px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.form-hint {
  font-size: 12px;
  color: var(--g500);
  line-height: 1.55;
}

.submit-btn {
  height: 48px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
}

/* ============ 토스트 ============ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(560px, calc(100vw - 32px));
  background: rgba(33, 33, 36, 0.92);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px 10px 16px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.2);
  white-space: nowrap;
}

.toast-message {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast.has-action {
  white-space: normal;
}

.toast-action {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  background: #fff;
  color: var(--g900);
  font-size: 13px;
  font-weight: 800;
}

.toast-action:hover {
  background: var(--g100);
}

/* ============ FAB / 모바일 탭바 ============ */

.fab {
  display: none;
  position: fixed;
  right: 16px;
  bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom));
  z-index: var(--z-fab);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(46, 91, 255, 0.4);
  place-items: center;
}

.fab svg {
  width: 24px;
  height: 24px;
}

.fab:active {
  transform: scale(0.95);
}

.mobile-tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-tabbar);
  background: #fff;
  border-top: 1px solid var(--g300);
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-tabbar button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 0 7px;
  color: var(--g500);
}

.mobile-tabbar svg {
  width: 23px;
  height: 23px;
}

.mobile-tabbar span {
  font-size: 10.5px;
  font-weight: 600;
}

.mobile-tabbar button.active {
  color: var(--g900);
}

/* ============ 푸터 ============ */

.foot {
  background: var(--g100);
  border-top: 1px solid var(--g300);
  margin-top: 24px;
}

.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 44px;
  display: flex;
  gap: 48px;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.foot-brand strong {
  font-size: 16px;
  font-weight: 800;
}

.foot-brand p {
  font-size: 12.5px;
  color: var(--g600);
  margin-top: 2px;
}

.foot-info {
  font-size: 13px;
  color: var(--g600);
  line-height: 1.65;
  max-width: 560px;
}

.foot-links {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.foot-links button,
.foot-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--g700);
}

.foot-links button:hover,
.foot-links a:hover {
  color: var(--accent);
}

.foot-copy {
  margin-top: 14px;
  font-size: 12px;
  color: var(--g500);
}

/* ============ 검색 모드 ============ */

body.searching .welcome,
body.searching .app-home,
body.searching #rankSection,
body.searching #pickSection {
  display: none;
}

/* ============================================================
   반응형
   ============================================================ */

@media (max-width: 1199px) {
  .event-grid,
  .dp-related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------- 태블릿/모바일 공통 (사이드바 → 칩 + 시트) --------- */

@media (max-width: 959px) {
  .gnb {
    position: static;
  }

  .gnb-inner {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 16px 12px;
    gap: 8px;
    row-gap: 10px;
  }

  .gnb-menu,
  .gnb-submit {
    display: none;
  }

  .loc-chip {
    padding: 6px 8px;
    margin-left: auto;
  }

  .search-box {
    order: 10;
    width: 100%;
    margin-left: 0;
  }

  .welcome-inner {
    padding: 22px 16px;
  }

  .welcome-copy h1 {
    font-size: 21px;
  }

  .welcome-copy p {
    font-size: 13.5px;
    margin-top: 6px;
  }

  .welcome-copy .welcome-slogan {
    font-size: 14.5px;
  }
  .welcome-copy .welcome-sub {
    font-size: 12.5px;
  }

  .wa-emoji {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }

  .section {
    padding: 26px 16px 6px;
  }

  .list-layout {
    display: block;
  }

  .side-filter {
    display: none;
  }

  .filterbar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: var(--z-filterbar);
    background: #fff;
    padding: 10px 16px;
    margin: 0 -16px 4px;
    border-bottom: 1px solid var(--g200);
  }

  .map-surface {
    height: 230px;
  }

  .rail-arrow {
    display: none;
  }

  .event-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 12px;
  }

  .dp-body {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px 16px;
  }

  .dp-poster-col {
    position: static;
    max-width: 420px;
  }

  .dp-related {
    padding: 0 16px 48px;
  }

  .dp-related-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 12px;
  }
}

/* --------- 모바일 --------- */

@media (max-width: 719px) {
  body {
    font-size: 14.5px;
  }

  main {
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 16px;
    border-radius: 8px;
  }

  .brand-name {
    font-size: 18px;
  }

  .section-head h2 {
    font-size: 18px;
  }

  .welcome-art {
    gap: 6px;
  }

  .rail .card {
    flex: 0 0 146px;
  }

  .rank-num {
    font-size: 24px;
  }

  .nearby-card {
    flex: 0 0 224px;
  }

  .event-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }

  .card-title {
    font-size: 14px;
  }

  .card-price {
    font-size: 15px;
  }

  .card-meta {
    font-size: 12px;
  }

  .list-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .list-tools {
    width: 100%;
  }

  #sortSelect {
    flex: 1;
  }

  .row-thumb {
    width: 96px;
    height: 96px;
  }

  .dp-bar {
    height: 52px;
    padding: 0 10px;
  }

  .dp-info h2 {
    font-size: 20px;
  }

  .dp-price {
    font-size: 18px;
  }

  .dp-point-grid {
    grid-template-columns: 1fr;
  }

  .dp-point {
    min-height: auto;
  }

  .dp-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dp-body {
    padding-bottom: 8px;
  }

  .dp-cta-bar {
    gap: 8px;
    box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }

  .dp-cta-copy {
    display: none;
  }

  .dp-cta-actions {
    flex: 1;
    width: 100%;
    gap: 8px;
  }

  .dp-cta-actions .btn {
    height: 48px;
    border-radius: 10px;
    font-size: 15px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .dp-cta-actions .btn-accent,
  .dp-cta-actions .btn.btn-primary {
    flex: 1;
    min-width: 0;
  }

  .dp-cta-actions .dp-eng {
    flex: 0 0 auto;
    min-width: 84px;
  }

  .fab {
    display: grid;
  }

  .mobile-tabbar {
    display: flex;
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom));
    transform: none;
    max-width: none;
    justify-content: space-between;
    white-space: normal;
    text-align: left;
  }

  .foot {
    margin-top: 12px;
  }

  .foot-inner {
    flex-direction: column;
    gap: 18px;
    padding: 28px 16px calc(36px + var(--tabbar-h) + env(safe-area-inset-bottom));
  }
}

/* 데스크톱에서 상세 CTA의 기본 버튼(.btn-primary 호환) */

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

/* ============ 회원 — 헤더 아이콘/뱃지 ============ */

.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--g700);
  flex-shrink: 0;
}

.icon-btn:hover {
  background: var(--g100);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.icon-btn .badge,
.tab-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.gnb-user .avatar-mini {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.mobile-tabbar button {
  position: relative;
}

.mobile-tabbar .tab-badge {
  top: 3px;
  right: calc(50% - 20px);
}

/* ============ 찜 하트 ============ */

.fav-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--hairline);
  display: grid;
  place-items: center;
  color: var(--g600);
  z-index: 2;
}

.fav-btn .heart {
  width: 16px;
  height: 16px;
}

.fav-btn.on {
  color: #ff4757;
}

.fav-btn.on .heart path {
  fill: #ff4757;
  stroke: #ff4757;
}

.row-thumb .fav-btn {
  width: 26px;
  height: 26px;
  right: 6px;
  bottom: 6px;
}

.dp-eng .heart,
.dp-eng .bell {
  width: 16px;
  height: 16px;
}

.dp-eng.on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.dp-eng.on .heart path {
  fill: #ff4757;
  stroke: #ff4757;
}

.btn-google {
  height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 15px;
  gap: 8px;
}

.g-logo {
  width: 18px;
  height: 18px;
}

/* ============ 알림함 ============ */

#alertsSection,
#mySection {
  max-width: 760px;
  min-height: 55vh;
  padding-bottom: 64px;
}

.alert-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--g200);
  cursor: pointer;
}

.alert-row:hover {
  background: var(--g100);
}

.alert-row.is-gone {
  opacity: 0.55;
  cursor: default;
}

.alert-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--g200);
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.alert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.alert-main {
  min-width: 0;
  flex: 1;
}

.alert-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.alert-kicker span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--g100);
  color: var(--g700);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.alert-kicker span:first-child {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.alert-main h3 {
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alert-main p {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--g600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alert-main .alert-meta {
  color: var(--g800);
  font-weight: 750;
}

.alert-main .alert-note {
  margin-top: 5px;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.45;
  color: var(--g700);
}

.alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.alert-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--g300);
  border-radius: 999px;
  background: #fff;
  color: var(--g700);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.alert-action.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.alert-action.source {
  border-color: var(--accent-soft);
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.dday-chip {
  flex-shrink: 0;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
}

.dday-chip.hot {
  background: var(--red-soft);
  color: var(--red);
}

/* ============ 나의 공다방 ============ */

.my-login {
  text-align: center;
  padding: 64px 20px;
}

.my-login .emoji {
  font-size: 44px;
  display: block;
  margin-bottom: 12px;
}

.my-login h2 {
  font-size: 22px;
  font-weight: 800;
}

.my-login p {
  margin: 10px 0 22px;
  font-size: 14.5px;
  color: var(--g600);
  line-height: 1.65;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--g300);
  border-radius: 14px;
}

.guest-profile {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border-color: #dbe7ff;
}

.guest-profile .btn {
  flex-shrink: 0;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 22px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.profile-main {
  flex: 1;
  min-width: 0;
}

.profile-main strong {
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nick-edit {
  color: var(--g500);
  font-size: 13px;
}

.nick-edit:hover {
  color: var(--accent);
}

.profile-main small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--g600);
}

.my-stats {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.my-stats span {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 12px 0;
  background: var(--g100);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--g700);
}

.my-stats b {
  color: var(--g900);
}

.my-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--accent-soft);
  border-radius: 12px;
}

.my-cta p {
  font-size: 13.5px;
  color: var(--g700);
}

.sync-nudge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #dbe7ff;
  border-radius: 12px;
  background: #f5f9ff;
}

.sync-nudge strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--g900);
}

.sync-nudge p {
  margin-top: 3px;
  font-size: 12.8px;
  line-height: 1.45;
  color: var(--g600);
}

.sync-nudge .btn {
  flex-shrink: 0;
}

.my-group {
  margin-top: 28px;
}

.my-group h3 {
  font-size: 16.5px;
  font-weight: 800;
  margin-bottom: 6px;
}

.my-group h3 small {
  color: var(--g500);
  font-weight: 600;
  font-size: 13px;
}

.my-empty {
  padding: 18px 2px;
  font-size: 13.5px;
  color: var(--g500);
}

.sub-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--g200);
}

.sub-main {
  flex: 1;
  min-width: 0;
}

.sub-main h4 {
  font-size: 14.5px;
  font-weight: 600;
}

.sub-main p {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--g600);
}

.sub-status {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.sub-status.rev {
  background: #fff4d6;
  color: #9a6b00;
}

.sub-status.pub {
  background: #e7f7f0;
  color: #0a8a55;
}

.sub-status.rej {
  background: var(--g200);
  color: var(--g600);
}

/* ============ 모바일 탭 구조 (당근식 화면 전환) ============ */

@media (max-width: 719px) {
  .gnb-bell,
  .gnb-user {
    display: none;
  }

  /* 홈 탭: 소개 배너는 덜고, 위치 기반 홈은 첫 화면에 유지 */
  body[data-tab="home"] .welcome {
    display: none;
  }

  body[data-tab="nearby"] .map-surface {
    height: 50vh;
  }

  #alertsSection,
  #mySection {
    min-height: 60vh;
  }

  .guest-profile,
  .sync-nudge {
    align-items: flex-start;
  }

  .guest-profile {
    flex-wrap: wrap;
  }

  .guest-profile .btn,
  .sync-nudge .btn {
    width: 100%;
    justify-content: center;
  }

  .sync-nudge {
    flex-direction: column;
  }

  .bm-support-fab,
  .bm-support-panel {
    display: none !important;
  }
}

/* ============ 운영자 검수함 ============ */

.adm-group {
  padding: 16px;
  border: 1px solid var(--accent-tint);
  border-radius: 14px;
  background: #fbfcff;
}

.adm-group h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.adm-reload {
  margin-left: auto;
  font-size: 12.5px;
}

.adm-hint {
  font-size: 12.5px;
  color: var(--g600);
  margin-bottom: 6px;
}

.adm-row {
  padding: 12px 2px;
  border-bottom: 1px solid var(--g200);
}

.adm-row:last-child {
  border-bottom: 0;
}

.adm-main h4 {
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.adm-main p {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--g600);
}

.adm-sum {
  color: var(--g700) !important;
  margin-top: 5px !important;
}

.adm-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.adm-b {
  height: 30px;
  padding: 0 11px;
  border-radius: 7px;
  border: 1px solid var(--g300);
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--g700);
}

.adm-b:hover {
  background: var(--g100);
}

.adm-b.ok.cur {
  background: #e7f7f0;
  border-color: #0a8a55;
  color: #0a8a55;
}

.adm-b.cur {
  background: var(--g900);
  border-color: var(--g900);
  color: #fff;
}

.adm-b.warn.cur {
  background: var(--g200);
  border-color: var(--g500);
  color: var(--g700);
}

.adm-b.danger {
  color: var(--red);
  border-color: var(--red-soft);
}

.adm-b.danger:hover {
  background: var(--red-soft);
}

/* ============ 운영자 행사 정보 수정 ============ */

.dp-admin-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed var(--accent-tint);
  border-radius: 10px;
  background: #fbfcff;
}

.dp-edit {
  height: 36px;
  border-color: var(--accent);
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.dp-edit:hover {
  background: #dde7ff;
}

.dp-admin-hint {
  font-size: 12.5px;
  color: var(--g600);
}

#editForm .field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

#editForm .field span {
  font-size: 12px;
  color: var(--g600);
  font-weight: 600;
  padding-left: 2px;
}

body.detail-open .fab,
body.detail-open .mobile-tabbar,
body.detail-open .bm-support-fab,
body.detail-open .bm-support-panel {
  display: none !important;
}

body[data-tab="alerts"] .fab,
body[data-tab="my"] .fab,
body[data-tab="alerts"] .bm-support-fab,
body[data-tab="my"] .bm-support-fab,
body[data-tab="alerts"] .bm-support-panel,
body[data-tab="my"] .bm-support-panel {
  display: none !important;
}

body.searching .fab,
body.searching .bm-support-fab,
body.searching .bm-support-panel {
  display: none !important;
}

/* ═══ 지금 LIVE — 실시간 방송 느낌(빨간 맥박·진행 중 배지·60초 갱신) ═══ */
.live-now .section-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e5484d;
  display: inline-block;
  flex: none;
  animation: livePulse 1.4s ease-out infinite;
}
.live-dot.sm {
  width: 6px;
  height: 6px;
  margin-right: 5px;
  animation-duration: 1.1s;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(229, 72, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); }
}
.poster-badge.live {
  background: #e5484d;
  color: #fff;
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.poster-badge.soon {
  background: #b45309;
  color: #fff;
}
.poster-badge.todaylive {
  background: rgba(17, 24, 39, 0.74);
  color: #fff;
}
.live-card .live-time {
  color: #e5484d;
  font-weight: 700;
}
.live-now .spot-btn {
  border: 1.5px dashed #e5484d;
  color: #e5484d;
  background: transparent;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.live-now .spot-btn:hover {
  background: rgba(229, 72, 77, 0.08);
}
@media (prefers-reduced-motion: reduce) {
  .live-dot, .live-dot.sm { animation: none; }
}
