:root {
  --bg: #f6f7f5;
  --card: #ffffff;
  --ink: #1d2320;
  --ink-2: #4b5450;
  --muted: #5f6864;
  --line: #e2e6e3;
  --accent: #1f7a5c;
  --accent-ink: #ffffff;
  --accent-soft: #e3f2ec;
  --free: #1a6b50;
  --free-bg: #e3f2ec;
  --prereg: #0d5f75;
  --prereg-bg: #e1f1f6;
  --paid: #5a4a1e;
  --paid-bg: #f6efdc;
  --unknown: #3f4744;
  --unknown-bg: #eef0ee;
  --cancel: #9a2318;
  --cancel-bg: #fbe7e4;
  --warn: #7a4900;
  --warn-bg: #fdf0d9;
  --info: #264a94;
  --info-bg: #e6edfb;
  --sun: #b3261e;
  --sat: #264a94;
  --radius: 12px;
  --font: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: inherit; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); font-size: 14px; }
.hint { margin: 0; color: var(--muted); font-size: 13px; }
.tossface { font-family: Tossface, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-style: normal; line-height: 1; }

/* 머리: 지역 고르기 */
.top { background: var(--card); border-bottom: 1px solid var(--line); padding: 24px 0 16px; }
.brand { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.tagline { margin: 4px 0 14px; color: var(--ink-2); }
.region { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.region-all {
  height: 48px; padding: 0 18px; font: inherit; font-weight: 600; cursor: pointer;
  border: 1.5px solid #cfd6d2; border-radius: 10px; background: var(--card); color: var(--ink-2);
}
.region-all[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.region-field { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.region-field span { font-size: 12.5px; color: var(--muted); padding-left: 2px; }
.region-field select {
  width: 100%; height: 48px; padding: 0 10px; font: inherit; color: var(--ink);
  border: 1.5px solid #cfd6d2; border-radius: 10px; background: #fff;
}
.region-field select:disabled { background: var(--unknown-bg); color: var(--muted); }
.region-field select:focus, .region-all:focus-visible, .range input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.region-note { margin: 10px 0 0; min-height: 1.4em; color: var(--ink-2); font-size: 15px; }

/* 지도 + 달력 */
.overview { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: 12px; padding-top: 16px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; font-size: 16px; }
.map { height: 400px; border-radius: 8px; overflow: hidden; background: #e9ecea; z-index: 0; }
.map-note:empty { display: none; }
.leaflet-container { font-family: var(--font); }
.zone-label {
  background: rgba(255, 255, 255, 0.88); border: 1px solid var(--line); border-radius: 6px; box-shadow: none;
  padding: 1px 6px; font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.zone-label::before { display: none; }
.map.zones-many .zone-label { font-size: 11px; padding: 0 4px; border-radius: 4px; }
.zone-label b { color: var(--accent); }
.venue-pin {
  display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.venue-label {
  background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  padding: 1px 6px; font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap;
}
.venue-label::before { display: none; }
.map.names-off .venue-label { display: none; }
/* 카카오 지도 위에 올리는 것들 */
.kzone { display: inline-block; pointer-events: none; }
.kvenue { position: relative; width: 30px; height: 30px; }
.kvenue .venue-pin { padding: 0; font-family: inherit; cursor: pointer; }
.kvenue .venue-label { position: absolute; }
.kvenue.dir-top .venue-label { bottom: 36px; left: 50%; transform: translateX(-50%); }
.kvenue.dir-bottom .venue-label { top: 36px; left: 50%; transform: translateX(-50%); }
.kvenue.dir-left .venue-label { right: 36px; top: 50%; transform: translateY(-50%); }
.kvenue.dir-right .venue-label { left: 36px; top: 50%; transform: translateY(-50%); }
.kpop {
  position: relative; margin-bottom: 24px; padding: 10px 30px 10px 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); white-space: nowrap;
}
.kpop .kpop-close {
  position: absolute; top: 2px; right: 2px; width: 28px; height: 28px; margin: 0; padding: 0; border: 0; background: transparent;
  font-size: 18px; line-height: 1; color: var(--muted); cursor: pointer; justify-self: auto;
}
.map-back {
  height: 30px; padding: 0 10px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--accent); border-radius: 999px; background: var(--card); color: var(--accent);
}
[hidden] { display: none !important; }
.map-pop { display: grid; gap: 4px; font-size: 13.5px; min-width: 170px; }
.map-pop strong { font-size: 14.5px; }
.map-pop button {
  justify-self: start; margin-top: 2px; height: 32px; padding: 0 10px; font: inherit; font-size: 13px; font-weight: 600;
  border: 1px solid var(--accent); border-radius: 8px; background: #fff; color: var(--accent); cursor: pointer;
}

.cal-head { align-items: center; }
.cal-head h2 { flex: 1; text-align: center; }
.cal-nav {
  width: 36px; height: 36px; font: inherit; font-size: 20px; line-height: 1; cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink-2);
}
.cal-nav:disabled { opacity: 0.35; cursor: default; }
/* 달력은 칸 높이를 늘려 패널 아래까지 채운다(요일 줄만 글자 높이). */
.cal { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto; grid-auto-rows: minmax(50px, 1fr); gap: 3px; }
.cal-dow { text-align: center; font-size: 12.5px; color: var(--muted); padding: 2px 0; }
.cal-dow.sun, .cal-day.sun .d { color: var(--sun); }
.cal-dow.sat, .cal-day.sat .d { color: var(--sat); }
.cal-day {
  min-height: 50px; padding: 4px 0 3px; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px;
  border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--ink);
}
.cal-day .d { font-size: 14px; font-weight: 600; line-height: 1.2; }
.cal-day { justify-content: center; }
.cal-day .n { font-size: 12px; line-height: 1.2; color: var(--accent); font-weight: 700; min-height: 14px; }
.cal-day.zero .n { color: #9aa29e; font-weight: 500; }
.cal-day.in-range { background: var(--accent-soft); }
.cal-day.today { border-color: var(--ink); }
.cal-day.picked { background: var(--accent); }
.cal-day.picked .d, .cal-day.picked .n { color: #fff; }
.cal-day:disabled { cursor: default; opacity: 0.38; }
.cal-day:not(:disabled):hover { border-color: var(--accent); }
.cal-blank { min-height: 50px; }

/* 거르기 */
.filters { padding: 14px 0 6px; display: grid; gap: 10px; }
.chip {
  height: 36px; padding: 0 13px; font: inherit; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid #dde2df; border-radius: 999px; background: var(--card); color: var(--ink-2);
}
.chip .tossface { font-size: 17px; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.range { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 3px 4px 3px 10px; border: 1px solid #dde2df; border-radius: 999px; background: var(--card); }
.range.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.range label { font-size: 14px; color: var(--ink-2); }
.range input { height: 28px; padding: 0 6px; font: inherit; font-size: 13.5px; border: 1px solid #dde2df; border-radius: 999px; background: #fff; color: var(--ink); }
.period-note { margin: -4px 0 0 2px; }
.count { color: var(--ink-2); font-size: 14px; }

/* 교통 통제·집회 */
.traffic { margin-top: 6px; }
.traffic details { background: var(--card); border: 1px solid #f0d9ae; border-radius: var(--radius); padding: 12px 14px; }
.traffic summary { cursor: pointer; font-weight: 700; }
.traffic summary .n { margin-left: 8px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.traffic-list { list-style: none; margin: 10px 0 8px; padding: 0; display: grid; gap: 8px; }
.traffic-list li { display: grid; grid-template-columns: auto auto 1fr; gap: 4px 8px; align-items: baseline; font-size: 14px; padding-top: 8px; border-top: 1px solid var(--line); }
.traffic-list .when { font-weight: 700; color: var(--warn); }
.traffic-list .what { white-space: pre-line; }
.traffic-list .extra { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.traffic-pin { width: 22px; height: 22px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid #d9dedb; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); cursor: pointer; }
.traffic-pin .tossface { font-size: 13px; }
.traffic-pin.rally { border-color: #e9b765; }
.traffic-group { margin: 12px 0 0; font-size: 14.5px; }
.traffic-group.rally { color: var(--warn); }
.traffic-group.control { color: var(--ink-2); }
/* 집회·공사 안내창: 글자를 키우고 줄을 나눠 읽기 좋게 */
.kpop-wide { white-space: normal; width: 300px; padding: 12px 34px 12px 14px; gap: 6px; font-size: 14.5px; line-height: 1.55; color: var(--ink); word-break: keep-all; overflow-wrap: anywhere; }
.kpop-wide strong { font-size: 16px; }
.kpop-wide .kpop-when { font-weight: 700; color: var(--warn); }
.kpop-wide .kpop-text { white-space: pre-line; }
.chip-group { display: contents; }
@media (max-width: 520px) { .traffic-list li { grid-template-columns: 1fr; } }

/* 결과 */
.results { padding: 4px 0 24px; }
.group { margin-top: 18px; scroll-margin-top: 12px; }
.group-head { display: flex; flex-direction: column; gap: 2px; margin: 0 0 8px; }
.group-title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0; font-size: 18px; }
.group-title .n { font-size: 14px; font-weight: 500; color: var(--muted); }
.group-title .tag { font-size: 12px; font-weight: 700; color: var(--warn); background: var(--warn-bg); padding: 1px 8px; border-radius: 999px; }
.group-near { margin: 0; font-size: 13.5px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.group-near button { height: 28px; padding: 0 10px; font: inherit; font-size: 13px; border: 1px solid #dde2df; border-radius: 999px; background: var(--card); color: var(--ink-2); cursor: pointer; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ev { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.ev.is-cancelled .ev-title, .ev.is-cancelled .ev-date { text-decoration: line-through; color: var(--muted); }
.ev-date { margin: 0; font-weight: 700; color: var(--accent); font-size: 15px; }
.ev-title { margin: 2px 0 2px; font-size: 17px; line-height: 1.4; }
.ev-title a { text-decoration: none; }
.ev-title a:hover { text-decoration: underline; }
.ev-meta { margin: 0; color: var(--ink-2); font-size: 14px; }
.ev-badges { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.b { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; line-height: 1; padding: 6px 9px; border-radius: 6px; font-weight: 600; }
.b .tossface { font-size: 14px; }
.b-kind { background: var(--unknown-bg); color: var(--unknown); }
.b-free { background: var(--free-bg); color: var(--free); }
.b-prereg_free { background: var(--prereg-bg); color: var(--prereg); }
.b-paid { background: var(--paid-bg); color: var(--paid); }
.b-invite, .b-unknown { background: var(--unknown-bg); color: var(--unknown); }
.b-cancelled { background: var(--cancel-bg); color: var(--cancel); }
.b-postponed, .b-needs_check { background: var(--warn-bg); color: var(--warn); }
.b-changed { background: var(--info-bg); color: var(--info); }
.b-ongoing { background: var(--accent); color: #fff; }
.b-src { background: transparent; color: var(--ink-2); border: 1px solid #dde2df; font-weight: 500; }
.status-reason { margin: 8px 0 0; font-size: 14px; padding: 8px 10px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); }
.status-reason.cancelled { background: var(--cancel-bg); color: var(--cancel); }
.status-reason.changed { background: var(--info-bg); color: var(--info); }

.ev-more { margin-top: 8px; }
.ev-more summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.ev-dl { display: grid; grid-template-columns: 7.5em 1fr; gap: 4px 10px; margin: 10px 0; font-size: 14px; }
.ev-dl dt { color: var(--muted); }
.ev-dl dd { margin: 0; white-space: pre-line; }
.ev-history { font-size: 13.5px; color: var(--ink-2); }
.ev-history ul { margin: 4px 0 8px; padding-left: 18px; }
.ev-check {
  display: inline-block; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--accent);
  text-decoration: none; padding: 8px 12px; border: 1px solid var(--accent); border-radius: 8px;
}
.more { display: block; width: 100%; margin-top: 16px; height: 48px; font: inherit; font-weight: 600; cursor: pointer; border: 1px solid #cfd6d2; border-radius: 10px; background: var(--card); color: var(--ink); }
.empty { background: var(--card); border: 1px dashed #cfd6d2; border-radius: var(--radius); padding: 28px 16px; text-align: center; color: var(--ink-2); }

/* 아래 안내 */
.about { padding: 8px 0 24px; display: grid; gap: 10px; }
.caution { margin: 0; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14.5px; }
.about details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.about summary { cursor: pointer; font-weight: 600; }
.sources, .excluded { margin: 8px 0; padding-left: 18px; font-size: 14px; }
.sources li, .excluded li { margin: 3px 0; }
.ok { color: var(--free); font-weight: 600; }
.fail { color: var(--cancel); font-weight: 600; }
.foot { padding: 8px 0 40px; color: var(--muted); font-size: 13px; }
.foot p { margin: 0 0 4px; }

@media (max-width: 780px) {
  .overview { grid-template-columns: minmax(0, 1fr); }
  .map { height: 320px; }
}
@media (max-width: 520px) {
  .brand { font-size: 22px; }
  .region-all { flex: 1 1 100%; }
  .region-field { flex: 1 1 100%; }
  .ev { padding: 12px 14px; }
  .ev-dl { grid-template-columns: 6em 1fr; }
  .range { border-radius: 12px; }
}

/* ===== 목록 화면 v2: 이름표가 붙은 거르기 줄 + 썸네일 가로 목록 (이전 카드형은 backups/ui-v1-card-list-2026-11-12) ===== */
.filters { padding: 16px 18px; margin-top: 12px; display: grid; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.frow { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; align-items: start; padding: 5px 0; }
.frow + .frow { border-top: 1px dashed var(--line); }
.flabel { padding-top: 7px; font-size: 14.5px; color: var(--muted); }
.flabel::after { content: ":"; }
.fopts { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.fopt {
  min-height: 36px; padding: 0 12px; font: inherit; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
  border: 0; border-radius: 6px; background: transparent; color: var(--ink);
}
.fopt .tossface { font-size: 16px; }
.fopt:hover { color: var(--accent); }
.fopt[aria-pressed="true"] { background: var(--accent); color: #fff; font-weight: 600; }
/* '표시' 줄은 체크 상자 모양으로 켜고 끈다 */
.fopt.check { padding-left: 8px; gap: 7px; }
.fopt.check::before { content: ""; width: 17px; height: 17px; border: 1.5px solid #b7c0bb; border-radius: 4px; background: #fff; flex: none; }
.fopt.check[aria-pressed="true"] { background: transparent; color: var(--ink); font-weight: 500; }
.fopt.check[aria-pressed="true"]::before {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.filters .range { margin-left: 6px; border-radius: 8px; }
.filters .period-note { margin: 0 0 0 4px; }

.list-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 18px 2px 4px; }
.tabs { display: inline-flex; gap: 6px; }
.tab { height: 40px; padding: 0 20px; font: inherit; font-size: 15.5px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; }
.tab[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }

.results { padding-top: 0; }
.list { gap: 0; }
.ev {
  display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; gap: 18px; align-items: start;
  padding: 18px 4px; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
}
.ev-thumb { width: 210px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--unknown-bg); display: flex; align-items: center; justify-content: center; }
.ev-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.ev-thumb .tossface { font-size: 44px; opacity: 0.75; }
.ev-thumb.k-축제 { background: #fdf0d9; }
.ev-thumb.k-행사 { background: #e6edfb; }
.ev-thumb.k-전시 { background: #e3f2ec; }
.ev-thumb.k-공연 { background: #f1e9f7; }
.ev-thumb.k-콘서트 { background: #fbe7e4; }
.ev-main { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ev-title { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.4; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ev-tag { flex: none; font-size: 12.5px; font-weight: 700; line-height: 1; padding: 4px 6px; border-radius: 4px; }
.ev-line { margin: 0; padding-left: 24px; font-size: 15px; color: var(--ink-2); font-weight: 400; background-repeat: no-repeat; background-position: 2px 3px; background-size: 16px; }
.ev-date { color: var(--ink-2); font-weight: 500;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.2' fill='none' stroke='%239aa29e' stroke-width='1.5'/%3E%3Cpath d='M8 4.6V8l2.4 1.6' fill='none' stroke='%239aa29e' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ev-meta {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 14.2s4.6-4.2 4.6-7.6a4.6 4.6 0 0 0-9.2 0c0 3.4 4.6 7.6 4.6 7.6z' fill='none' stroke='%239aa29e' stroke-width='1.5'/%3E%3Ccircle cx='8' cy='6.6' r='1.6' fill='none' stroke='%239aa29e' stroke-width='1.4'/%3E%3C/svg%3E"); }
.ev.is-cancelled .ev-date { text-decoration: line-through; }
.ev-badges { margin: 3px 0 0; }
.ev-side { align-self: center; }
.ev-check {
  display: inline-flex; align-items: center; justify-content: center; margin: 0; min-width: 108px; height: 40px; padding: 0 16px;
  font-size: 14.5px; font-weight: 700; border: 0; border-radius: 6px; background: var(--accent); color: #fff; text-decoration: none;
}
.ev-check:hover { filter: brightness(0.93); }
.group { margin-top: 22px; }
.group-head { padding: 0 4px 8px; margin: 0; border-bottom: 2px solid var(--ink); }

@media (max-width: 720px) {
  .frow { grid-template-columns: 1fr; gap: 0; }
  .flabel { padding-top: 0; font-size: 13px; }
  .ev { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 14px 2px; }
  .ev-thumb { width: 104px; aspect-ratio: 1 / 1; }
  .ev-thumb .tossface { font-size: 30px; }
  .ev-title { font-size: 16px; }
  .ev-side { grid-column: 1 / -1; }
  .ev-check { width: 100%; }
}

/* 표시 줄의 작은 아이콘 */
.fopt.check .tossface { font-size: 13px; margin-right: -2px; }

/* 그림이 없는 행사: 종류 색 바탕에 종류·행사 이름·장소를 넣은 포스터 모양 타일 */
.ev-thumb.is-tile {
  position: relative; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px; padding: 12px 14px;
  color: var(--ink); text-align: left;
  background-image: radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.75) 0 34%, transparent 35%), radial-gradient(circle at 0 100%, rgba(255, 255, 255, 0.45) 0 26%, transparent 27%);
}
.ev-thumb.is-tile .tile-kind { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); }
.ev-thumb.is-tile .tile-kind .tossface { font-size: 15px; opacity: 1; }
.ev-thumb.is-tile .tile-title { font-size: 15.5px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-thumb.is-tile .tile-place { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ev-thumb.k-축제 { background-color: #fbe3bd; }
.ev-thumb.k-행사 { background-color: #d5e0fa; }
.ev-thumb.k-전시 { background-color: #cdeadf; }
.ev-thumb.k-공연 { background-color: #e4d6f1; }
.ev-thumb.k-콘서트 { background-color: #f8d3ce; }
@media (max-width: 720px) {
  .ev-thumb.is-tile { padding: 8px; gap: 2px; }
  .ev-thumb.is-tile .tile-title { font-size: 12.5px; -webkit-line-clamp: 3; }
  .ev-thumb.is-tile .tile-place { display: none; }
  .ev-thumb.is-tile .tile-kind { font-size: 11px; padding: 2px 6px; }
}

.b-family { background: #fff3d6; color: #6b4a00; }
#subRow .flabel { color: var(--accent); }

/* 거르기 줄 옆의 작은 안내 글씨 */
.fnote { font-size: 12px; align-self: center; margin-left: 4px; }

/* 달력: 날짜 사이의 연한 구분선 */
.cal-day, .cal-blank { border: 1px solid var(--line); border-radius: 8px; }
.cal-day.today { border-color: var(--ink); }
.cal-day.picked { border-color: var(--accent); }
.cal-day:not(:disabled):hover { border-color: var(--accent); }

#periodNote { white-space: pre-line; }
.fnote[hidden] { display: none; }

.b-rank { background: #fde4e0; color: #8a2a1c; }
.list-head .fnote { flex: 1; min-width: 0; }

#sortNote { white-space: pre-line; line-height: 1.45; margin-left: 10px; }
.tabs { align-items: center; flex-wrap: wrap; }
.b-dist { background: #e6ecf7; color: #27407a; }

/* 가볼 만한 곳: 오른쪽 위 토글과 순위 목록 */
.top .wrap { position: relative; }
.hot-toggle {
  position: absolute; top: 0; right: 16px; height: 40px; padding: 0 16px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink);
}
.hot-toggle:hover { border-color: var(--accent); }
.hot-toggle[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 720px) {
  .hot-toggle { position: static; margin-bottom: 10px; }
}

/* 가볼 만한 곳: 지도 위 순위 표시(주황색 숫자 + 이름) */
.hot-pin { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; transform: translateX(-12px); white-space: nowrap; }
.hot-pin-rank {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: #e8590c; color: #fff; border: 2px solid #fff;
  font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.hot-pin-name { font-size: 12px; font-weight: 600; color: #7a2e05; background: rgba(255, 255, 255, 0.92); border: 1px solid #f3c9ad; border-radius: 6px; padding: 1px 5px; }
.hot-pin:hover .hot-pin-name { background: #fff3ea; border-color: #e8590c; }
.hot-note { color: #7a2e05; }
.hot-note[hidden] { display: none; }

.hot-names-off .hot-pin-name { display: none; }
.hot-names-off .hot-pin:hover .hot-pin-name { display: inline; }

/* 오른쪽 위 토글 두 개(인기음식점 · 인기방문지) */
.hot-toggles { position: absolute; top: 0; right: 16px; display: flex; gap: 8px; }
.hot-toggles .hot-toggle { position: static; }
@media (max-width: 720px) { .hot-toggles { position: static; margin-bottom: 10px; flex-wrap: wrap; } .hot-toggles .hot-toggle { margin-bottom: 0; } }
/* 인기음식점: 자주색 숫자 */
.eat-pin .hot-pin-rank { background: #a61e4d; }
.eat-pin .hot-pin-name { color: #6b1232; border-color: #efb8cc; }
.eat-pin:hover .hot-pin-name { background: #fff0f5; border-color: #a61e4d; }
.eat-note { color: #6b1232; }
.eat-note[hidden] { display: none; }

/* 인기음식점을 켰을 때만 나오는 식사 / 디저트 선택 */
.eat-kinds { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.eat-kinds[hidden] { display: none; }
.eat-kind { height: 32px; padding: 0 12px; font: inherit; font-size: 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; }
.eat-kind[aria-pressed="true"] { background: #a61e4d; color: #fff; font-weight: 700; }
.eat-pin.dessert .hot-pin-rank { background: #7048e8; }
.eat-pin.dessert .hot-pin-name { color: #3b2a8c; border-color: #cfc4f5; }

/* 머리말: 왼쪽 제목, 오른쪽 버튼과 그 아래 짧은 안내 */
.top-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.top-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 0; }
.top-side .hot-toggles { position: static; flex-wrap: wrap; justify-content: flex-end; }
.side-note { font-size: 12px; line-height: 1.35; text-align: right; }
.side-note[hidden] { display: none; }
@media (max-width: 720px) {
  .top-head { flex-direction: column; gap: 8px; }
  .top-side { align-items: flex-start; }
  .top-side .hot-toggles { justify-content: flex-start; margin-bottom: 0; }
  .side-note { text-align: left; }
}

/* 버튼 아래 안내 글씨는 차분한 회색으로 */
.side-note.hot-note, .side-note.eat-note { color: #6b7780; }

/* 인기음식점 표시 색: 주황(인기방문지)과 겹치지 않는 파스텔 — 식사는 하늘색, 디저트는 연보라. 글자는 짙은 색. */
.eat-pin .hot-pin-rank { background: #a9d2f3; color: #173a5e; }
.eat-pin .hot-pin-name { color: #173a5e; border-color: #c4def5; }
.eat-pin:hover .hot-pin-name { background: #eef6fd; border-color: #7fb3e6; }
.eat-pin.dessert .hot-pin-rank { background: #dcc3f2; color: #45245e; }
.eat-pin.dessert .hot-pin-name { color: #45245e; border-color: #e3d2f5; }
.eat-pin.dessert:hover .hot-pin-name { background: #f7f0fc; border-color: #b98fe0; }
.eat-kind[aria-pressed="true"] { background: #a9d2f3; color: #173a5e; }
.eat-kind[data-eat="dessert"][aria-pressed="true"] { background: #dcc3f2; color: #45245e; }

/* 지도 표시를 부드러운 파스텔로: 행사 장소는 연한 민트, 인기방문지는 연한 살구. 숫자는 짙은 색, 그림자는 옅게. */
.venue-pin { background: #bfe6d3; color: #14523e; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22); }
.hot-pin-rank { background: #ffd3b0; color: #7a2e05; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22); }
.hot-pin-name { border-color: #f6dcc8; }
.hot-pin:hover .hot-pin-name { border-color: #f0a871; }

/* 행사 장소: 파스텔 느낌의 진한 초록(흰 숫자) */
.venue-pin { background: #5fa58a; color: #fff; }

/* ===== 지도 표시 색 묶음(2026-11-12) =====
   지도 바탕(연한 베이지·녹지·노란 도로·파란 물) 위에서 서로 헷갈리지 않게 색상을 넷으로 벌리고,
   채도는 낮추되 흰 숫자가 읽히는 중간 밝기로 맞췄다.
   행사 = 청록, 인기방문지 = 산호, 식사 = 차분한 파랑, 디저트 = 장미 분홍 */
.venue-pin { background: #3f9b80; color: #fff; }
.hot-pin-rank { background: #ef8f62; color: #fff; }
.hot-pin-name { color: #7a3414; border-color: #f7d3c0; }
.hot-pin:hover .hot-pin-name { background: #fff4ee; border-color: #ef8f62; }
.eat-pin .hot-pin-rank { background: #5f86d6; color: #fff; }
.eat-pin .hot-pin-name { color: #1f3a78; border-color: #c9d7f3; }
.eat-pin:hover .hot-pin-name { background: #f0f4fd; border-color: #5f86d6; }
.eat-pin.dessert .hot-pin-rank { background: #d9779f; color: #fff; }
.eat-pin.dessert .hot-pin-name { color: #7a2247; border-color: #f3cfdd; }
.eat-pin.dessert:hover .hot-pin-name { background: #fdf1f6; border-color: #d9779f; }
.eat-kind[aria-pressed="true"] { background: #5f86d6; color: #fff; }
.eat-kind[data-eat="dessert"][aria-pressed="true"] { background: #d9779f; color: #fff; }

/* 특화거리: 연보라 등(燈) 표시 */
.street-pin .hot-pin-rank { background: #8f7bd6; color: #fff; }
.street-pin .hot-pin-rank .tossface { font-size: 12px; }
.street-pin .hot-pin-name { color: #3d2f7a; border-color: #d9d2f3; }
.street-pin:hover .hot-pin-name { background: #f4f1fd; border-color: #8f7bd6; }


/* ===================== 테마 v3 (2026-11-12) =====================
   초록색 알약 버튼 위주의 화면을 걷어 내고, 흰 바탕 · 짙은 글자 · 회색 칩 · 파란 강조 하나로 정리했다.
   이전 화면은 backups/ui-v2-green-2026-11-12 에 있다. 지도 위 표시 색(행사·방문지·음식점·특화거리)은 그대로 둔다. */
:root {
  --bg: #ffffff;
  --card: #ffffff;
  --ink: #191f28;
  --ink-2: #4e5968;
  --muted: #6b7684;
  --line: #e5e8eb;
  --chip: #f2f4f6;
  --chip-hover: #e5e8eb;
  --accent: #3182f6;
  --accent-ink: #ffffff;
  --accent-soft: #e8f3ff;
  --accent-deep: #1b64da;
  --free: #1b64da;
  --free-bg: #e8f3ff;
  --prereg: #0b7285;
  --prereg-bg: #e3f6f8;
  --paid: #4e5968;
  --paid-bg: #f2f4f6;
  --unknown: #6b7684;
  --unknown-bg: #f2f4f6;
  --cancel: #d22030;
  --cancel-bg: #ffeeee;
  --warn: #b35c00;
  --warn-bg: #fff3e0;
  --info: #1b64da;
  --info-bg: #e8f3ff;
  --sun: #e5484d;
  --sat: #3182f6;
  --radius: 20px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
}
body { letter-spacing: -0.01em; }

/* 머리말 */
.top { border-bottom: 0; padding: 28px 0 8px; }
.brand { font-size: 28px; font-weight: 800; letter-spacing: -0.035em; }
.tagline { color: var(--muted); font-size: 15px; }
.region-all, .region-field select { border: 0; border-radius: 12px; background-color: var(--chip); font-weight: 600; }
.region-all[aria-pressed="true"] { background: var(--ink); color: #fff; }
.region-field span { font-weight: 600; }
.region-note { color: var(--muted); font-size: 14px; }

/* 오른쪽 위 버튼 */
.hot-toggle { border: 0; border-radius: 12px; background: var(--chip); color: var(--ink-2); font-weight: 600; font-size: 14.5px; height: 38px; padding: 0 14px; }
.hot-toggle:hover { background: var(--chip-hover); }
.hot-toggle[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.eat-kinds { border: 0; border-radius: 12px; background: var(--chip); }
.eat-kind { border-radius: 9px; height: 32px; font-weight: 600; }

/* 지도·달력·거르기 상자 */
.panel, .filters { border: 1px solid #eef0f3; border-radius: var(--radius); }
.panel { padding: 14px; }
.panel-head h2 { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.map { border-radius: 14px; overflow: hidden; }
.map-back { border: 0; border-radius: 10px; background: var(--chip); color: var(--ink-2); font-weight: 600; }
.zone-label b { color: var(--accent-deep); }

/* 달력 */
.cal { gap: 4px; }
.cal-day, .cal-blank { border: 1px solid #f0f2f5; border-radius: 12px; }
.cal-day .d { font-weight: 700; }
.cal-day .n { color: var(--accent-deep); font-weight: 600; }
.cal-day.zero .n { color: #b0b8c1; }
.cal-day.in-range { background: var(--accent-soft); border-color: var(--accent-soft); }
.cal-day.today { border-color: var(--ink); }
.cal-day.picked { background: var(--ink); border-color: var(--ink); }
.cal-day:not(:disabled):hover { border-color: var(--accent); }
.cal-nav { border: 0; border-radius: 10px; background: var(--chip); }

/* 거르기 줄: 점선과 쌍점을 없애고 회색 칩으로 */
.filters { padding: 18px 20px; gap: 2px; }
.frow { padding: 7px 0; grid-template-columns: 60px minmax(0, 1fr); }
.frow + .frow { border-top: 0; }
.flabel { font-size: 13.5px; font-weight: 600; color: var(--muted); padding-top: 9px; }
.flabel::after { content: ""; }
.fopts { gap: 6px; }
.fopt { min-height: 36px; padding: 0 13px; border-radius: 10px; background: var(--chip); color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.fopt:hover { background: var(--chip-hover); color: var(--ink); }
.fopt[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 600; }
.fopt .tossface { font-size: 15px; }
/* '표시' 줄: 체크 상자 대신 켜지면 파란 칩, 꺼지면 흐린 칩 */
.fopt.check { padding: 0 12px; gap: 5px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: #b0b8c1; }
.fopt.check::before, .fopt.check[aria-pressed="true"]::before { content: none; }
.fopt.check .tossface { opacity: 0.45; }
.fopt.check[aria-pressed="true"] { background: var(--accent-soft); box-shadow: none; color: var(--accent-deep); font-weight: 600; }
.fopt.check[aria-pressed="true"] .tossface { opacity: 1; }
#subRow .flabel { color: var(--muted); }
.range, .filters .range { border: 0; border-radius: 10px; background: var(--chip); padding: 4px 6px 4px 12px; }
.range.on { box-shadow: inset 0 0 0 1.5px var(--ink); }
.range input { border: 0; border-radius: 8px; }
.period-note, .fnote { color: var(--muted); }

/* 정렬 탭: 알약 대신 밑줄 */
.list-head { padding: 22px 2px 6px; border-bottom: 1px solid var(--line); }
.tabs { gap: 20px; }
.tab { height: 38px; padding: 0 1px; border-radius: 0; font-size: 15.5px; font-weight: 600; color: #8b95a1; }
.tab:hover { color: var(--ink-2); }
.tab[aria-pressed="true"] { background: transparent; color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--ink); }
.count { color: var(--muted); font-size: 13.5px; }

/* 장소 묶음 머리 */
.group { margin-top: 26px; }
.group-head { border-bottom: 0; padding: 0 2px 4px; }
.group-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.group-title .n { font-size: 13.5px; color: var(--muted); }
.group-near { font-size: 13px; color: var(--muted); }
.group-near button { border: 0; border-radius: 8px; background: var(--chip); color: var(--ink-2); font-weight: 600; }

/* 행사 줄 */
.ev { padding: 16px 2px; border-bottom: 1px solid #f0f2f5; gap: 16px; }
.ev-thumb { border-radius: 14px; }
.ev-title { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; align-items: center; }
.ev-line { font-size: 14px; color: var(--muted); background-size: 15px; padding-left: 22px; }
.ev-date { color: var(--ink-2); }
/* 상태 꼬리표: 작고 납작하게 */
.ev-tag { font-size: 11px; font-weight: 700; padding: 3px 5px; border-radius: 4px; letter-spacing: 0; }
.b-ongoing { background: var(--accent); color: #fff; }
/* 비용·종류·출처 표시: 색 상자 대신 가운뎃점으로 이은 글자 */
.ev .ev-badges { margin: 2px 0 0; gap: 0; align-items: center; }
.ev .ev-badges .b { background: transparent; border: 0; padding: 0; border-radius: 0; font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--ink-2); }
.ev .ev-badges .b + .b::before { content: "·"; margin: 0 7px; color: #c4cad1; font-weight: 400; }
.ev .ev-badges .b .tossface { display: none; }
.ev .ev-badges .b-free, .ev .ev-badges .b-prereg_free { color: var(--accent-deep); font-weight: 700; }
.ev .ev-badges .b-paid { color: var(--ink-2); }
.ev .ev-badges .b-cancelled { color: var(--cancel); font-weight: 700; }
.ev .ev-badges .b-postponed, .ev .ev-badges .b-needs_check { color: var(--warn); font-weight: 600; }
.ev .ev-badges .b-changed { color: var(--accent-deep); }
.ev .ev-badges .b-rank { color: #e5484d; font-weight: 700; }
.ev .ev-badges .b-src, .ev .ev-badges .b-dist, .ev .ev-badges .b-unknown { color: #8b95a1; }
.ev-more summary { font-size: 13px; color: #8b95a1; }
/* 공식 페이지: 큰 초록 버튼 대신 작은 버튼을 오른쪽 아래에 */
.ev-side { align-self: end; }
.ev-check { min-width: 0; height: 34px; padding: 0 14px; border-radius: 8px; font-size: 13.5px; font-weight: 700; background: var(--accent); color: #fff; }
.more { border: 0; border-radius: 12px; background: var(--chip); color: var(--ink-2); }
.empty { border: 0; background: var(--chip); border-radius: 16px; }

/* 교통 상자 */
.traffic details { border: 1px solid #eef0f3; border-radius: 16px; }
@media (max-width: 720px) {
  .frow { grid-template-columns: 1fr; }
  .ev-check { width: 100%; height: 38px; }
}

/* 길찾기(위)와 공식 페이지(아래)를 오른쪽에 세로로 */
.ev-side { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.ev-route {
  display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 14px; border-radius: 8px;
  font-size: 13.5px; font-weight: 700; text-decoration: none; background: var(--chip); color: var(--ink-2);
}
.ev-route:hover { background: var(--chip-hover); color: var(--ink); }
@media (max-width: 720px) {
  .ev-side { flex-direction: row; }
  .ev-side > a { flex: 1; height: 38px; }
}

/* 길찾기: 누르면 카카오맵 / 네이버 지도 고르는 작은 메뉴 */
details.ev-route { position: relative; display: block; height: auto; padding: 0; background: transparent; }
details.ev-route > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; height: 34px; padding: 0 14px; border-radius: 8px;
  font-size: 13.5px; font-weight: 700; background: var(--chip); color: var(--ink-2); user-select: none;
}
details.ev-route > summary::-webkit-details-marker { display: none; }
details.ev-route > summary:hover, details.ev-route[open] > summary { background: var(--chip-hover); color: var(--ink); }
.ev-route-menu {
  position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 30; min-width: 132px; padding: 6px; display: grid; gap: 2px;
  background: #fff; border-radius: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.ev-route-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.ev-route-menu a:hover { background: var(--chip); }
@media (max-width: 720px) {
  .ev-side > details.ev-route { flex: 1; }
  details.ev-route > summary { height: 38px; }
  .ev-route-menu { left: 0; right: auto; }
}

/* 행사 줄의 표시(종류·비용 등): 가운뎃점 대신 연한 테두리 칩으로 */
.ev .ev-badges { gap: 5px; margin-top: 4px; }
.ev .ev-badges .b { border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; font-size: 12.5px; line-height: 1.4; background: #fff; }
.ev .ev-badges .b + .b::before { content: none; }
.ev .ev-badges .b-free, .ev .ev-badges .b-prereg_free { border-color: #cfe3fd; }
.ev .ev-badges .b-rank { border-color: #fbd5d7; }
.ev .ev-badges .b-cancelled { border-color: #f9c9ce; }
/* 출처마다 날짜·장소가 다를 때만 나오는 경고 표시 */
.ev .ev-badges .b-conflict, .ev .ev-badges .b-needs_check, .ev .ev-badges .b-postponed { color: var(--warn); font-weight: 700; border-color: #f5d3a3; background: var(--warn-bg); }

/* 길찾기·공식 페이지: 조금 크게, 줄의 세로 가운데에 */
.ev-side { align-self: center; gap: 8px; min-width: 112px; }
.ev-check, details.ev-route > summary { height: 40px; font-size: 14.5px; border-radius: 10px; padding: 0 16px; }
@media (max-width: 720px) {
  .ev-side { align-self: stretch; min-width: 0; }
  .ev-check, details.ev-route > summary { height: 42px; }
}

/* 장소별 보기: 건수가 많은 장소의 '더 보기' */
.group-more { display: block; width: 100%; height: 42px; margin-top: 10px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border: 0; border-radius: 10px; background: var(--chip); color: var(--ink-2); }
.group-more:hover { background: var(--chip-hover); color: var(--ink); }

#evNote { color: #6b7780; }

/* 출처에서 새 정보를 받지 못한 행사: 회색 꼬리표와 안내 */
.b-stale { background: #eef0f3; color: #4e5968; }
.status-reason.stale { background: #f2f4f6; color: #4e5968; }


/* ===================== 휴대폰 화면 v1 (2026-11-12) =====================
   폭 720px 이하. 세로로 길어지는 것을 줄인다: 지역 선택을 두 줄로, 오른쪽 위 버튼은 한 줄 가로 스크롤,
   덜 쓰는 조건은 접어 두기, 지도는 조금 낮게. */
.filter-more { display: none; }
@media (max-width: 720px) {
  .wrap { width: min(1080px, 100% - 24px); }
  .top { padding: 16px 0 6px; }
  .brand { font-size: 22px; }
  .tagline { margin: 2px 0 10px; font-size: 13px; }

  /* 지도 표시 버튼: 줄바꿈 대신 한 줄로 두고 옆으로 민다 */
  .top-side { width: 100%; }
  .top-side .hot-toggles, .hot-toggles { flex-wrap: nowrap; overflow-x: auto; gap: 6px; margin: 0 -12px 2px; padding: 0 12px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hot-toggles::-webkit-scrollbar { display: none; }
  .hot-toggle, .eat-kinds { flex: none; }
  .hot-toggle { height: 36px; padding: 0 12px; font-size: 13.5px; white-space: nowrap; }
  .eat-kind { height: 30px; padding: 0 10px; font-size: 13px; white-space: nowrap; }
  .side-note { font-size: 11.5px; }

  /* 지역 선택: [전체][시·도] / [시·군·구][동] 두 줄 */
  .region { display: grid; grid-template-columns: auto 1fr 1fr; gap: 6px; align-items: stretch; }
  .region-all { grid-column: 1; height: 42px; padding: 0 14px; }
  .region-field { min-width: 0; }
  .region-field:nth-of-type(1) { grid-column: 2 / 4; }
  .region-field:nth-of-type(2) { grid-column: 1 / 3; }
  .region-field:nth-of-type(3) { grid-column: 3; }
  .region-field span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .region-field select { height: 42px; font-size: 14.5px; width: 100%; }
  .region-note { margin-top: 6px; font-size: 12.5px; }

  /* 지도와 달력 */
  .overview { padding-top: 8px; gap: 10px; }
  .panel { padding: 10px; border-radius: 16px; }
  .panel-head h2 { font-size: 14.5px; }
  .map { height: 300px; }
  .cal { grid-auto-rows: minmax(42px, 1fr); gap: 3px; }
  .cal-day { min-height: 42px; border-radius: 10px; }
  .cal-day .d { font-size: 13.5px; }
  .cal-day .n { font-size: 11px; min-height: 12px; }

  /* 거르기: 기간·종류만 보이고 나머지는 버튼으로 펼친다 */
  .filters { padding: 12px 12px 10px; border-radius: 16px; }
  .frow { padding: 5px 0; }
  .flabel { font-size: 12px; padding-top: 0; margin-bottom: 2px; }
  .fopt { min-height: 34px; padding: 0 11px; font-size: 14px; }
  .filters .range { margin-left: 0; }
  .period-note { font-size: 11.5px; line-height: 1.45; }
  .filters:not(.open) .frow-extra { display: none; }
  .filter-more {
    display: block; width: 100%; height: 38px; margin-top: 4px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
    border: 0; border-radius: 10px; background: var(--chip); color: var(--ink-2);
  }
  .filters.open .filter-more { margin-bottom: 4px; }

  /* 목록 머리 */
  .list-head { padding: 14px 0 4px; }
  .tabs { gap: 14px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; font-size: 14.5px; white-space: nowrap; }
  #sortNote { margin-left: 0; flex: none; }
  .group-title { font-size: 16.5px; }
}

/* ===== PC 화면: 거르기와 장소 이름을 조금 크게, 비용 표시는 색으로 구분 (2026-11-12) ===== */
@media (min-width: 721px) {
  .filters { padding: 22px 24px; gap: 4px; }
  .frow { padding: 9px 0; grid-template-columns: 72px minmax(0, 1fr); }
  .flabel { font-size: 15px; padding-top: 11px; }
  .fopts { gap: 8px; }
  .fopt { min-height: 44px; padding: 0 17px; font-size: 16px; border-radius: 12px; }
  .fopt .tossface { font-size: 18px; }
  .fopt.check { padding: 0 15px; }
  .fopt.check .tossface { font-size: 16px; }
  .range, .filters .range { padding: 6px 8px 6px 14px; border-radius: 12px; }
  .range label { font-size: 15px; }
  .range input { height: 32px; font-size: 15px; }
  .period-note, .filters .period-note { font-size: 14px; line-height: 1.6; margin-top: 4px; }
  .fnote { font-size: 13.5px; }
  .group-title { font-size: 22px; font-weight: 800; }
  .group-title .n { font-size: 15px; }
  .group-near { font-size: 14px; }
}
@media (max-width: 720px) { .group-title { font-size: 18px; font-weight: 800; } }

/* 비용: 무료는 초록, 사전등록 무료는 청록, 유료는 남색, 모르면 회색 */
.ev .ev-badges .b-free { background: #e6f6ec; border-color: #bfe6cd; color: #0a7a3c; font-weight: 700; }
.ev .ev-badges .b-prereg_free { background: #e3f6f6; border-color: #b9e3e3; color: #0b6f78; font-weight: 700; }
.ev .ev-badges .b-paid { background: #eef1ff; border-color: #d0d7ff; color: #3a45b0; font-weight: 700; }
.ev .ev-badges .b-invite, .ev .ev-badges .b-unknown { background: #f2f4f6; border-color: #e5e8eb; color: #6b7684; }

/* 행사 줄 어디를 눌러도 자세히가 펼쳐진다 */
.ev { cursor: pointer; }
.ev .ev-dl, .ev .ev-history { cursor: auto; }
.ev:hover .ev-more summary { color: var(--ink-2); }

/* 지역 선택 칸: 기본 화살표 대신 안쪽으로 들인 화살표를 그린다(오른쪽 벽에 붙지 않게) */
.region-field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%234e5968' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 14px;
}
.region-field select:disabled { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23b0b8c1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
/* 목록 머리의 기간·건수: 오른쪽 끝에 붙지 않게 */
.count { padding-right: 10px; }
@media (max-width: 720px) {
  .region-field select { padding-right: 30px; background-position: right 11px center; }
  .count { padding-right: 2px; }
}

/* 기간 줄: 지도·달력 바로 위에 따로 둔다(달력이 곧 기간을 고르는 도구라서) */


/* 조건 상자 머리: 제목 · 지금 걸린 조건 한 줄 · 접기 버튼 (PC) */
.filters-head { display: flex; align-items: center; gap: 12px; }
.filters-title { font-size: 15px; font-weight: 700; color: var(--ink); flex: none; }
.filters-summary { flex: 1; min-width: 0; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filters-fold { flex: none; height: 34px; padding: 0 14px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; border: 0; border-radius: 10px; background: var(--chip); color: var(--ink-2); }
.filters-fold:hover { background: var(--chip-hover); color: var(--ink); }
@media (min-width: 721px) {
  #filters .filters-head { padding-bottom: 6px; }
  #filters.folded { padding-top: 14px; padding-bottom: 14px; }
  #filters.folded .filters-head { padding-bottom: 0; }
  #filters.folded .frow { display: none; }
  #filters:not(.folded) .filters-summary { visibility: hidden; }
}
/* 휴대폰은 '조건 더 보기' 버튼을 쓰므로 머리를 숨긴다 */
@media (max-width: 720px) { .filters-head { display: none; } }

/* 지도는 크게, 달력은 좁게 (PC) */
@media (min-width: 721px) {
  .overview { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
  .map { height: 540px; }
}
@media (max-width: 720px) { .map { height: 340px; } }

/* 조건 상자: 빈 곳을 눌러도 접히고 펴진다 / 제목 글자 키움 (PC) */
@media (min-width: 721px) {
  #filters { cursor: pointer; }
  #filters .fopt, #filters .filters-fold { cursor: pointer; }
  .filters-title { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
  .filters-summary { font-size: 15.5px; }
  .filters-fold { height: 38px; padding: 0 16px; font-size: 14.5px; }
  #filters .flabel { font-size: 16px; }
}


/* 달력 칸 안의 기간 고르기: PC에서는 달력 아래, 좁은 화면에서는 달력 위 */
.cal-panel { display: flex; flex-direction: column; }
.cal-period { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; margin-top: 4px; border-top: 1px solid #f0f2f5; }
.cal-period .fopts { display: flex; flex-wrap: wrap; gap: 6px; }
.cal-period .fopt { min-height: 38px; padding: 0 12px; font-size: 14.5px; border-radius: 10px; flex: 1 1 auto; justify-content: center; }
.cal-period .range, .cal-period .range.on { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; }
.cal-period .range label { font-size: 13.5px; }
.cal-period .range input { height: 30px; font-size: 13.5px; flex: 1 1 110px; min-width: 0; }
.cal-period .period-note { margin: 0; font-size: 12px; line-height: 1.5; white-space: pre-line; color: var(--muted); }
@media (min-width: 721px) {
  /* 달력은 제 높이만 쓰고(세로로 늘어나지 않게), 남는 자리에 기간이 온다 */
  .cal-panel .cal { flex: 0 0 auto; grid-auto-rows: minmax(50px, auto); }
  .cal-panel .cal-day, .cal-panel .cal-blank { min-height: 50px; }
  .cal-period { margin-top: auto; }
}
@media (max-width: 720px) {
  .cal-period { order: -1; padding-top: 0; margin: 0 0 8px; padding-bottom: 10px; border-top: 0; border-bottom: 1px solid #f0f2f5; }
  .cal-period .fopt { min-height: 34px; font-size: 14px; }
  .cal-period .period-note { font-size: 11.5px; }
}
/* 달력 칸의 기간 설정: 이름표는 윗줄에, 시작·끝 날짜는 한 줄에 나란히 */
@media (min-width: 721px) {
  .cal-period .range label[for="fromDate"] { flex: 1 0 100%; }
  .cal-period .range input { flex: 1 1 0; }
}
