/* ─────────────────────────────────────────────────────────────
   놀쏙 NOLSOK — 2026-11 UI 리뉴얼
   화이트 앱 셸 · 코랄 포인트 · 2×5 컬러 카테고리 · 카운트다운 카드
   ───────────────────────────────────────────────────────────── */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
  --ink: #191f28;
  --ink-2: #333d4b;
  --muted: #8b95a1;
  --muted-2: #adb5bd;
  --line: #eef1f4;
  --line-2: #e5e8eb;
  --bg: #ffffff;
  --soft: #f6f7f9;

  --coral: #ff5b5b;
  --coral-deep: #f04452;
  --coral-soft: #fff0ef;
  --pink-line: #ffc9cd;

  --mint: #12b5a4;
  --mint-ink: #0a8d80;
  --mint-soft: #e7f8f5;

  --sun: #ffc247;
  --sky: #4f8ef7;
  --lilac: #8462ea;

  --r-xl: 22px;
  --r-lg: 18px;
  --r: 14px;
  --r-sm: 10px;

  --shadow: 0 4px 16px rgba(25, 31, 40, 0.06);
  --shadow-lg: 0 12px 32px rgba(25, 31, 40, 0.13);
  --nav-h: 60px;

  --tone-sand-bg: #fff4e6;
  --tone-sand-ink: #9a6231;
  --tone-mint-bg: #e6f8f4;
  --tone-leaf-bg: #eef7e8;
  --tone-sky-bg: #eaf3ff;
  --tone-lilac-bg: #f2edff;
  --tone-rose-bg: #fff0f3;
  --tone-water-bg: #e7f6fb;
  --tone-stone-bg: #f4f1e9;
  --tone-peach-bg: #fff1ea;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: #f2f4f6;
  color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
    'Noto Sans KR', 'Malgun Gothic', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
input, select, textarea, button { font-family: inherit; }

.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 #7fd5c7; outline-offset: 2px; border-radius: 10px; }

.shell {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 0 1px rgba(25, 31, 40, 0.04);
}

.pad { padding: 0 16px; }

/* ── 헤더 ───────────────────────────────────────────── */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr-in {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 6px 0 4px;
}
.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; background: transparent; border-radius: 50%;
  color: var(--ink); cursor: pointer;
}
.icon-btn:active { background: var(--soft); }
.icon-btn svg { width: 23px; height: 23px; }

.wordmark {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 0;
  line-height: 1;
}
.wordmark b {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.06em;
  background: linear-gradient(96deg, #ff6b5e 0%, #ff4d6d 60%, #f04452 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 2px;
}
.wordmark span {
  margin-top: 3px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.26em;
  color: var(--muted-2);
}

/* 메뉴 시트 */
.sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 20, 25, 0.42);
  z-index: 90;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }

.menu-sheet {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(84vw, 320px);
  background: #fff;
  z-index: 91;
  transform: translateX(-102%);
  transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex; flex-direction: column;
  padding: 10px 0 24px;
  overflow-y: auto;
}
.menu-sheet.open { transform: none; }
.menu-head { padding: 12px 20px 18px; border-bottom: 1px solid var(--line); }
.menu-head b { font-size: 20px; font-weight: 900; letter-spacing: -0.05em; color: var(--coral); }
.menu-head p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.menu-list { padding: 8px 8px 0; }
.menu-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 12px; border-radius: 12px;
  font-size: 15px; font-weight: 700;
}
.menu-list a:active { background: var(--soft); }
.menu-list a i { font-style: normal; font-size: 17px; width: 22px; text-align: center; }
.menu-list small { margin-left: auto; color: var(--muted-2); font-size: 11.5px; font-weight: 600; }
.menu-foot { margin-top: auto; padding: 18px 20px 0; font-size: 11.5px; color: var(--muted); line-height: 1.6; }

/* ── 검색바 ─────────────────────────────────────────── */
.search-zone { padding: 12px 16px 4px; }
.searchbar {
  display: flex; align-items: center; gap: 9px;
  height: 50px;
  padding: 0 8px 0 15px;
  border: 2px solid var(--pink-line);
  border-radius: 999px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.searchbar:focus-within { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255, 91, 91, 0.09); }
.searchbar svg { width: 20px; height: 20px; color: var(--muted-2); flex: none; }
.searchbar input {
  flex: 1; min-width: 0;
  height: 100%;
  border: 0; background: transparent; outline: 0;
  font-size: 15px; color: var(--ink);
}
.searchbar input::placeholder { color: #b0b8c1; font-weight: 500; }
.searchbar .go {
  flex: none;
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
}
.searchbar .go svg { width: 17px; height: 17px; color: #fff; }

/* ── 히어로 배너 ────────────────────────────────────── */
.hero { padding: 10px 0 0; }
.slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 16px 2px;
}
.slider::-webkit-scrollbar { display: none; }
.slide {
  position: relative;
  flex: 0 0 calc(100% - 32px);
  scroll-snap-align: center;
  height: 196px;
  border-radius: var(--r-xl);
  overflow: hidden;
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  isolation: isolate;
}
.slide .art {
  position: absolute;
  right: -16px; top: 50%;
  transform: translateY(-50%) rotate(-4deg);
  width: 38%;
  max-width: 152px;
  z-index: 0;
  pointer-events: none;
}
.slide h2 { max-width: 74%; }
.slide p { max-width: 68%; }
.slide .eyebrow { max-width: 74%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.02) 55%, rgba(0, 0, 0, 0) 100%);
  z-index: -1;
}
.slide .eyebrow {
  font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 5px;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 9px;
  backdrop-filter: blur(4px);
}
.slide h2 {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -0.045em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
}
.slide h2 em { font-style: normal; color: #ffe36e; }
.slide p {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0.94;
}
.slide.s1 { background: linear-gradient(128deg, #ff9d7a 0%, #ff6f61 46%, #ef4e5d 100%); }
.slide.s2 { background: linear-gradient(128deg, #4fd6c4 0%, #1ec0b0 48%, #0e9c92 100%); }
.slide.s3 { background: linear-gradient(128deg, #8fb7ff 0%, #5f92f6 48%, #4a6fe0 100%); }
.slide.s4 { background: linear-gradient(128deg, #ffbe5c 0%, #ff9f43 48%, #f4823a 100%); }

.dots {
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 10px 0 0;
}
.dots button {
  width: 6px; height: 6px; padding: 0;
  border: 0; border-radius: 50%;
  background: #d7dbe0;
  cursor: pointer;
  transition: width 0.18s ease, background 0.18s ease;
}
.dots button.on { width: 16px; border-radius: 3px; background: var(--ink); }

/* ── 카테고리 2×5 ───────────────────────────────────── */
.cats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px 2px;
  padding: 14px 10px 4px;
}
.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 0 8px;
  border-radius: 14px;
  text-align: center;
}
.cat:active { background: var(--soft); }
.cat .ico {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 17px;
  background: var(--soft);
}
.cat .ico img { width: 44px; height: 44px; display: block; }
.cat b {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-2);
  line-height: 1.25;
}
.cat.c-weekend .ico { background: #fff1f3; }
.cat.c-factory .ico { background: #e8f9f6; }
.cat.c-openrun .ico { background: #eef4ff; }
.cat.c-museum .ico { background: #f3efff; }
.cat.c-robot .ico { background: #eaf9fc; }
.cat.c-safety .ico { background: #fff4e9; }
.cat.c-nature .ico { background: #eefaf0; }
.cat.c-indoor .ico { background: #fff8e7; }
.cat.c-multi .ico { background: #fff0f5; }
.cat.c-all .ico { background: #f4f6f8; }

/* ── 섹션 공통 ──────────────────────────────────────── */
.sec { padding: 22px 0 0; }
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px 12px;
}
.sec-head h2 {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.045em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sec-head h2 .num { color: var(--coral); }
.sec-head .sub { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 3px; letter-spacing: -0.01em; }
.sec-head .more {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 2px;
  padding-bottom: 2px;
}
.sec-center { text-align: center; padding: 20px 16px 12px; }
.sec-center h2 { font-size: 21px; font-weight: 900; letter-spacing: -0.05em; }
.sec-center p { margin-top: 5px; font-size: 12.5px; color: var(--muted); font-weight: 500; }

/* 가로 스크롤 */
.hscroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 2px 16px 6px;
}
.hscroll::-webkit-scrollbar { display: none; }

/* 카운트다운 카드 */
.ocard {
  position: relative;
  flex: 0 0 148px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(25, 31, 40, 0.05);
}
.ocard .thumb {
  position: relative;
  height: 106px;
  background: var(--tone-bg, var(--soft));
  display: block;
}
.ocard .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.until {
  position: absolute;
  top: 7px; left: 7px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: calc(100% - 14px);
  padding: 4px 8px;
  border-radius: 999px;
  background: #ff3b3b;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 6px rgba(255, 59, 59, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.until.soon { background: #ff3b3b; }
.until.calm { background: #ff8a3d; }
.until.static { background: #5a6472; box-shadow: none; }
.ocard .body { padding: 9px 10px 11px; display: block; }
.ocard .t {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.03em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}
.ocard .m {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ocard .foot { margin-top: 6px; display: flex; gap: 4px; flex-wrap: wrap; }

/* ── 목록 카드 ──────────────────────────────────────── */
.cards { display: grid; gap: 9px; padding: 0 16px; }
@media (min-width: 720px) {
  .shell { max-width: 760px; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px) {
  .shell { max-width: 860px; }
}

.card {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: stretch;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: #dfe4e8; box-shadow: var(--shadow); }
.card:active { transform: scale(0.995); }
.card .thumb {
  flex: 0 0 92px;
  height: 92px;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--tone-bg, var(--soft));
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 2px 30px 2px 0; }
.card .t {
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.34;
  letter-spacing: -0.035em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .loc { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .meta { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.card .price { font-weight: 800; }
.card .price.free { color: var(--mint-ink); }
.card .foot { margin-top: auto; padding-top: 5px; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.card .save {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: transparent;
  color: #c7ccd2;
  cursor: pointer;
}
.card .save svg { width: 21px; height: 21px; }
.card .save.on { color: var(--coral); }
.card .save.on svg { fill: var(--coral); stroke: var(--coral); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  background: #f1f3f5;
  color: #5f6b7a;
}
.badge.free { background: var(--mint-soft); color: var(--mint-ink); }
.badge.weekend { background: #eaf2ff; color: #2f6bd6; }
.badge.weekday { background: #f1f3f5; color: #6b7684; }
.badge.soon { background: #fff0ef; color: #e2453f; }
.badge.fit { background: #eef8e4; color: #4a7c1f; }
.badge.partial { background: #fff6da; color: #8f6a12; }
.badge.demo { background: #fff; border: 1px dashed #ff9a86; color: #d1543a; }
.badge.cat { background: var(--tone-bg, #f1f3f5); color: var(--tone-ink, #5f6b7a); }

.cat .ico img { pointer-events: none; }

/* ── 빠른 필터 칩 ──────────────────────────────────── */
.chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 16px 14px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 33px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  white-space: nowrap;
}
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.coral.on { background: var(--coral); border-color: var(--coral); }
.chip.ghost { background: transparent; color: var(--muted); border-style: dashed; }
.chip .x { font-size: 13px; opacity: 0.7; }

.filter-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 0 16px 4px;
}

/* ── 필터 시트 ──────────────────────────────────────── */
.sheet {
  position: fixed;
  left: 50%; bottom: 0;
  width: 100%; max-width: 520px;
  transform: translate(-50%, 102%);
  background: #fff;
  border-radius: 22px 22px 0 0;
  z-index: 92;
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.sheet.open { transform: translate(-50%, 0); }
.sheet-head {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.sheet-head h2 { font-size: 16.5px; font-weight: 900; letter-spacing: -0.04em; }
.sheet-head .close { border: 0; background: transparent; font-size: 20px; color: var(--muted); cursor: pointer; width: 34px; height: 34px; }
.sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 16px 18px 8px; }
.sheet-foot {
  display: flex; gap: 8px;
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
}
.sheet-foot .btn { flex: 1; }
.fgroup + .fgroup { margin-top: 20px; }
.fgroup h3 {
  font-size: 12.5px; font-weight: 800; color: var(--ink-2);
  margin-bottom: 8px; letter-spacing: -0.02em;
}
.fgroup h3 span { font-weight: 500; color: var(--muted-2); margin-left: 4px; }
.frow { display: flex; flex-wrap: wrap; gap: 6px; }
.frow.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.frow.two > * { min-width: 0; }
input[type='date'], input[type='time'] { min-width: 0; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--muted); min-width: 0; }
.field select, .field input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  color: var(--ink);
  outline: 0;
}
.field select:focus, .field input:focus { border-color: var(--coral); }
.fnote { margin-top: 10px; font-size: 11.5px; color: var(--muted); line-height: 1.55; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 48px;
  padding: 0 18px;
  border: 0; border-radius: 14px;
  background: var(--coral);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn.ghost { background: #fff; color: var(--ink-2); border: 1px solid var(--line-2); }
.btn.mint { background: var(--mint); }
.btn.sm { height: 38px; padding: 0 13px; font-size: 13px; border-radius: 11px; }
.btn.block { width: 100%; }

/* ── 결과 영역 ──────────────────────────────────────── */
.results-head { padding: 4px 16px 12px; }
.results-head h2 { font-size: 18px; font-weight: 900; letter-spacing: -0.04em; }
.results-head h2 strong { color: var(--coral); }
.results-head p { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.results-note {
  margin: 0 16px 12px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #fffaf0;
  border: 1px solid #ffe9bf;
  color: #8a6414;
  font-size: 12px;
  line-height: 1.5;
}
.empty {
  margin: 8px 16px 0;
  padding: 34px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
  background: var(--soft);
  border-radius: var(--r-lg);
  line-height: 1.6;
}
.more-btn {
  display: block;
  margin: 14px 16px 0;
  height: 46px;
  line-height: 46px;
  text-align: center;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 700;
}

/* ── 신뢰 안내 ──────────────────────────────────────── */
.trust {
  margin: 28px 16px 0;
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--soft);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}
.trust b { color: var(--ink-2); }
.trust a { color: var(--ink-2); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ── 하단 탭 ────────────────────────────────────────── */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar-in {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  height: var(--nav-h);
}
.tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #9aa3ad;
}
.tabbar a svg { width: 23px; height: 23px; }
.tabbar a .fill { display: none; }
.tabbar a.on { color: var(--coral); }
.tabbar a.on .line { display: none; }
.tabbar a.on .line { display: none; }
.tabbar a.on .fill { display: block; }
.tabbar a.on svg { stroke-width: 2.3; }
.tabbar a .dot {
  position: absolute; top: 8px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--coral);
}

/* 데스크톱: 하단 탭을 떠 있는 필 바로 */
@media (min-width: 720px) {
  .tabbar {
    left: 50%; right: auto; bottom: 18px;
    transform: translateX(-50%);
    width: 520px;
    border: 1px solid var(--line-2);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
  }
  .tabbar-in { height: 62px; }
}

/* ── 푸터 ───────────────────────────────────────────── */
.footer {
  margin-top: 34px;
  padding: 22px 16px calc(var(--nav-h) + 34px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.65;
}
.footer b { color: var(--ink-2); }
.footer p + p { margin-top: 5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 10px; font-weight: 700; color: var(--ink-2); }
.footer-stroll {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-2);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
}
.footer-stroll strong { color: var(--ink-2); font-weight: 800; }
.footer-stroll a { color: var(--mint-ink); font-weight: 700; padding: 2px 0; }
.footer-stroll a:hover { text-decoration: underline; text-underline-offset: 2px; }
.footer-stroll .sep { color: #cfd6dc; }

/* ── 설치 안내 띠 ───────────────────────────────────── */
.install-strip {
  background: var(--mint-soft);
  border-bottom: 1px solid #c8efe8;
  color: var(--mint-ink);
  font-size: 12.5px;
}
.install-strip .in {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  max-width: 760px; margin: 0 auto;
}
.install-strip img { width: 26px; height: 26px; border-radius: 8px; flex: none; }
.install-strip p { flex: 1; min-width: 0; font-weight: 600; line-height: 1.4; }
.install-strip p strong { text-decoration: underline; text-underline-offset: 2px; }
.install-strip button {
  flex: none; border: 0; background: transparent; color: var(--mint-ink);
  font-weight: 800; font-size: 12px; padding: 6px 4px; cursor: pointer;
}
.install-strip .x { font-size: 17px; line-height: 1; padding: 4px 6px; }
.install-steps {
  max-width: 520px; margin: 0 auto;
  padding: 0 16px 12px 16px;
  font-size: 12px; line-height: 1.65;
  display: none;
}
.install-steps.open { display: block; }
.install-steps ol { padding-left: 18px; list-style: decimal; }

/* ── 상세 ───────────────────────────────────────────── */
.detail { padding-bottom: calc(var(--nav-h) + 82px); }
.detail-top {
  position: relative;
  padding: 6px 16px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.detail-top .back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 8px 0; }
.detail-hero {
  margin: 4px 16px 0;
  height: 190px;
  border-radius: var(--r-xl);
  background: var(--tone-bg, var(--soft));
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.detail-hero img { width: 168px; height: 168px; border-radius: 26px; box-shadow: 0 12px 30px rgba(25, 31, 40, 0.10); }
.detail-hero .keep { position: absolute; top: 10px; right: 10px; }
.detail-body { padding: 16px 16px 0; }
.detail-kicker { font-size: 12px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.detail-title {
  margin-top: 6px;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: -0.045em;
}
.detail-badges { margin-top: 10px; display: flex; gap: 5px; flex-wrap: wrap; }
.detail-price {
  margin-top: 16px;
  display: flex; align-items: baseline; gap: 8px;
}
.detail-price strong { font-size: 24px; font-weight: 900; letter-spacing: -0.04em; }
.detail-price span { font-size: 12px; color: var(--muted); }
.detail-actions { margin-top: 14px; display: flex; gap: 8px; }
.detail-actions .btn { flex: 1; }

.dbox {
  margin: 18px 16px 0;
  padding: 15px 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: #fff;
}
.dbox h2 { font-size: 14px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.dbox.warm { background: #fff7f3; border-color: #ffe0d5; }
.dbox.mint { background: var(--mint-soft); border-color: #c8efe8; }
.dbox .big { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 800; }
.dbox .note { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.55; }
.dbox p { font-size: 13.5px; }

.kv { display: grid; grid-template-columns: 84px 1fr; gap: 9px 10px; font-size: 13.5px; }
.kv dt { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.kv dd { color: var(--ink-2); }
.kv dd .sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }

details.acc { margin: 14px 16px 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
details.acc > summary {
  list-style: none;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-2);
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
}
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: '⌄'; margin-left: auto; color: var(--muted); font-weight: 700; }
details.acc[open] > summary::after { content: '⌃'; }
details.acc .acc-body { padding: 0 16px 15px; }
.dot-mint { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); display: inline-block; }

.session-list { display: grid; gap: 8px; }
.session-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
}
.session-list .when { font-weight: 700; }
.session-list .when small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; margin-top: 2px; }

.map-btns { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.map-btns a {
  height: 38px; padding: 0 14px;
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 11px; font-size: 12.5px; font-weight: 800;
  border: 1px solid var(--line-2); background: #fff;
}
.map-btns a.naver { background: #03c75a; border-color: #03c75a; color: #fff; }
.map-btns a.kakao { background: #fee500; border-color: #fee500; color: #3c1e1e; }

.fixed-cta {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  z-index: 65;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.fixed-cta .in {
  max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
}
.fixed-cta .p { display: flex; flex-direction: column; line-height: 1.2; }
.fixed-cta .p strong { font-size: 16px; font-weight: 900; }
.fixed-cta .p span { font-size: 10.5px; color: var(--muted); }
.fixed-cta .btn { flex: 1; height: 46px; }
.fixed-cta .heart { flex: none; width: 46px; height: 46px; border-radius: 13px; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; color: #c7ccd2; }
.fixed-cta .heart svg { width: 23px; height: 23px; }
.fixed-cta .heart.on { color: var(--coral); border-color: #ffd0cc; background: var(--coral-soft); }
.fixed-cta .heart.on svg { fill: var(--coral); stroke: var(--coral); }
@media (min-width: 720px) {
  .fixed-cta { bottom: 96px; }
  .fixed-cta .in { max-width: 760px; }
  .tabbar-in { max-width: 520px; }
}

/* ── 저장(찜) 화면 ──────────────────────────────────── */
.page-head { padding: 18px 16px 8px; }
.page-head h1 { font-size: 23px; font-weight: 900; letter-spacing: -0.045em; }
.page-head p { margin-top: 5px; font-size: 12.5px; color: var(--muted); }
.page-head .back { font-size: 12.5px; color: var(--muted); font-weight: 700; display: inline-block; margin-bottom: 8px; }

.saved-block { padding: 18px 16px 0; }
.saved-block h2 { font-size: 15px; font-weight: 900; letter-spacing: -0.03em; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.saved-block h2 .num { color: var(--coral); }
.saved-block h2 .clear { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--muted); border: 0; background: transparent; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

.plan-day { margin-bottom: 14px; }
.plan-day h3 { font-size: 12.5px; font-weight: 800; color: var(--mint-ink); margin-bottom: 7px; display: flex; align-items: center; gap: 6px; }
.plan-day h3 em { font-style: normal; font-weight: 600; color: var(--muted); font-size: 11px; }
.plan-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 6px;
  font-size: 13px;
  background: #fff;
}
.plan-item .time { font-weight: 900; font-variant-numeric: tabular-nums; color: var(--ink); min-width: 42px; }
.plan-item .b { flex: 1; min-width: 0; }
.plan-item .b b { display: block; font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-item .b small { color: var(--muted); font-size: 11.5px; }
.plan-item .del { border: 0; background: transparent; color: var(--muted-2); font-size: 16px; cursor: pointer; width: 30px; height: 30px; }

.empty-mini {
  padding: 22px 16px;
  border-radius: var(--r-lg);
  background: var(--soft);
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}
.empty-mini b { display: block; color: var(--ink-2); font-size: 13.5px; margin-bottom: 3px; }

/* 홈 지역 카드(2×2) */
.rgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px; }
.rcard {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; height: 54px; padding: 0 15px;
  border: 1px solid var(--line); border-radius: 15px; background: #fff;
}
.rcard b { font-size: 14.5px; font-weight: 800; letter-spacing: -0.03em; }
.rcard .n { font-size: 14px; font-weight: 900; color: var(--coral); letter-spacing: -0.02em; }
.rcard .n em { font-style: normal; font-size: 10.5px; color: var(--muted); font-weight: 700; margin-left: 1px; }

/* ── 지역별 ─────────────────────────────────────────── */
.region-group { margin: 0 16px 12px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.region-group > h2 {
  padding: 13px 15px;
  font-size: 14.5px; font-weight: 900; letter-spacing: -0.03em;
  background: var(--soft);
  display: flex; align-items: center; justify-content: space-between;
}
.region-group > h2 span { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.region-rows { display: grid; }
.region-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 15px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
}
.region-row:active { background: var(--soft); }
.region-row .n { font-size: 12px; color: var(--muted); font-weight: 700; }
.region-row .n b { color: var(--coral); }

/* ── 오픈런 목록 ────────────────────────────────────── */
.run-list { display: grid; gap: 8px; padding: 0 16px; }
.run {
  display: flex; gap: 12px; align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
}
.run .dday {
  flex: 0 0 56px;
  text-align: center;
  border-radius: 12px;
  background: var(--soft);
  padding: 7px 2px;
  line-height: 1.15;
}
.run .dday b { display: block; font-size: 14px; font-weight: 900; letter-spacing: -0.03em; color: #2f6f66; }
.run .dday small { display: block; font-size: 9.5px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.run.hot .dday { background: #fff0ef; }
.run.hot .dday b { color: var(--coral-deep); }
.run .b { flex: 1; min-width: 0; }
.run .b .t { display: block; font-size: 14px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.run .b .w { display: block; font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.run .b .r { display: -webkit-box; font-size: 11.5px; color: var(--muted); margin-top: 3px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.run .b .f { display: flex; margin-top: 5px; gap: 4px; flex-wrap: wrap; }

/* ── 검색 화면 ──────────────────────────────────────── */
.search-page .search-zone { padding-top: 6px; }
.kw-block { padding: 18px 16px 0; }
.kw-block h2 { font-size: 13.5px; font-weight: 900; letter-spacing: -0.03em; display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.kw-block h2 button { border: 0; background: transparent; font-size: 11.5px; color: var(--muted); cursor: pointer; }
.kw-list { display: flex; flex-wrap: wrap; gap: 6px; }
.kw-list a, .kw-list button {
  display: inline-flex; align-items: center; gap: 4px;
  height: 33px; padding: 0 12px;
  border-radius: 999px;
  background: var(--soft);
  border: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.kw-list .rank { color: var(--coral); font-weight: 900; margin-right: 2px; }

/* ── 토스트 ─────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%; bottom: calc(var(--nav-h) + 26px);
  transform: translate(-50%, 16px);
  z-index: 95;
  background: rgba(25, 31, 40, 0.94);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  max-width: 88vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── 정책·안내 문서 ─────────────────────────────────── */
.doc { padding: 4px 16px calc(var(--nav-h) + 40px); }
.doc h1 { font-size: 24px; font-weight: 900; letter-spacing: -0.045em; margin-bottom: 6px; }
.doc .lead { font-size: 13px; color: var(--muted); margin-bottom: 18px; line-height: 1.6; }
.doc section { margin-bottom: 16px; }
.doc h2 { font-size: 15px; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 8px; }
.doc ul { list-style: disc; padding-left: 18px; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.doc p { font-size: 13px; line-height: 1.7; color: var(--ink-2); margin-bottom: 6px; }
.doc .card { display: block; padding: 16px; }

/* ── 데스크톱 여백 ──────────────────────────────────── */
@media (min-width: 720px) {
  .hero { padding-top: 14px; }
  .slide { height: 268px; flex-basis: calc(100% - 32px); justify-content: center; padding: 26px 30px; }
  .slide h2 { font-size: 30px; max-width: 66%; }
  .slide p { font-size: 13.5px; max-width: 60%; }
  .slide .eyebrow { margin-bottom: 12px; }
  .slide .art { width: 40%; }
  .cat .ico { width: 60px; height: 60px; }
  .cat .ico img { width: 50px; height: 50px; }
  .cat b { font-size: 12px; }
  .detail-hero { height: 240px; }
  .detail-hero img { width: 160px; height: 160px; }
  .footer { padding-bottom: calc(var(--nav-h) + 60px); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ── 보완 컴포넌트 ─────────────────────────────────── */
.card-wrap { position: relative; display: block; }
.card-wrap > .save {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 2;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: transparent;
  color: #c7ccd2;
  cursor: pointer;
  padding: 0;
}
.card-wrap > .save svg { width: 21px; height: 21px; }
.card-wrap > .save.on { color: var(--coral); }
.card-wrap > .save.on svg { fill: var(--coral); stroke: var(--coral); }

.note { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0; }
.dot { font-style: normal; color: #c8ced5; padding: 0 1px; }

.slide .art { z-index: 1; }
.slide .art img {
  width: 100%; height: auto; display: block;
  border-radius: 24px;
  border: 5px solid rgba(255, 255, 255, 0.94);
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}
.slide h2, .slide p, .slide .eyebrow { position: relative; z-index: 2; }
.slide::after { z-index: 0; }

.doc .card { padding: 16px; }
.doc .card + .card { margin-top: 12px; }

/* 조건 검색 중에는 배너·카테고리를 접어 결과를 바로 보여 준다 */
body.filtering .hero,
body.filtering .cats { display: none; }
body.filtering .search-zone { padding-top: 14px; }

/* 상세 찜 버튼 */
.heartbtn { color: #c7ccd2; }
.heartbtn svg { transition: none; }
.heartbtn.on { color: var(--coral); border-color: #ffd0cc; background: var(--coral-soft); }
.heartbtn.on svg { fill: var(--coral); }
