/* 오후 2시 v2 — 낮술 지도
   모바일 우선(390×844 기준). 데스크톱에서는 폰 폭 컬럼으로 중앙 정렬. */
:root {
  --amber: #F26B21;
  --amber-deep: #C7430B;
  --amber-soft: #FFF0E2;
  --cream: #FFF8EF;
  --cream-2: #FBEFE0;
  --ink: #191512;
  --ink-2: #4E463D;
  --ink-3: #857C72;
  --line: #EDE1D1;
  --line-2: #E3D5C2;
  --white: #FFFFFF;
  --green: #0E8A5F;
  --blue: #3159C9;
  --gold: #A8752A;
  --gold-soft: #FFF6DC;
  --red: #D2402A;
  --shadow-s: 0 1px 2px rgba(60, 38, 12, .06), 0 4px 12px rgba(60, 38, 12, .07);
  --shadow-m: 0 10px 26px rgba(56, 34, 8, .13);
  --shadow-l: 0 18px 50px rgba(48, 28, 6, .2);
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  --r-xl: 26px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR",
    "Noto Sans CJK KR", "Noto Sans", "Malgun Gothic", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #E9E0D2;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
input { font-family: inherit; }
h1, h2, h3, p { margin: 0; }

#app {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 0 60px rgba(40, 24, 6, .18);
}
@media (min-width: 480px) {
  body { background: linear-gradient(160deg, #EFE6D8 0%, #E4D9C8 100%); }
  #app { height: 100dvh; }
}

#mapWrap { position: absolute; inset: 0; }
#map { position: absolute; inset: 0; background: #EDE7DA; z-index: 0; }
/* 무료 OSM 타일을 저채도·고대비로 다듬어 브랜드 톤에 맞춘다 (CartoDB 키를 넣으면 이 필터는 꺼진다) */
#map.tone-soft .leaflet-tile-pane { filter: grayscale(.75) sepia(.18) brightness(1.05) contrast(1.05); }
#map.tone-soft .leaflet-tile-pane img { image-rendering: auto; }
.leaflet-control-attribution {
  font-size: 9px !important;
  background: rgba(255, 255, 255, .72) !important;
  color: #7A7268 !important;
  padding: 1px 5px !important;
  border-radius: 6px 0 0 0;
}
.leaflet-control-attribution a { color: #7A7268 !important; }

/* ───────── 상단 오버레이 ───────── */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 620;
  padding: calc(9px + var(--safe-top)) 13px 9px;
  background: linear-gradient(180deg, rgba(255, 248, 239, .99) 0%, rgba(255, 248, 239, .97) 62%, rgba(255, 248, 239, .82) 86%, rgba(255, 248, 239, 0) 100%);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.brandRow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.logoMark {
  flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 12px;
  background: linear-gradient(152deg, #FF9147 0%, var(--amber) 48%, var(--amber-deep) 100%);
  color: #fff; font-weight: 900; font-size: 20px; line-height: 34px; text-align: center;
  box-shadow: 0 4px 10px rgba(199, 67, 11, .3);
  letter-spacing: -.5px;
}
.brandText { min-width: 0; }
.brandName {
  font-size: 17px; font-weight: 900; letter-spacing: -.55px;
  display: flex; align-items: baseline; gap: 4px; line-height: 1.15;
}
.brandDot { color: var(--amber); }
.brandEn { font-size: 10.5px; font-weight: 800; color: var(--ink-3); letter-spacing: .1px; }
.brandSlogan { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; letter-spacing: -.2px; white-space: nowrap; }

.brandActions { display: flex; gap: 7px; }
.iconBtn {
  position: relative;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  box-shadow: var(--shadow-s);
  transition: transform .15s ease, background .15s ease;
}
.iconBtn:active { transform: scale(.94); }
.iconBtn.isOn { background: var(--ink); color: #fff; border-color: var(--ink); }
.iconPass { font-size: 15px; line-height: 1; filter: saturate(.9); }
.passBadge, .meDot {
  position: absolute; top: -2px; right: -2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 9px; background: var(--amber); color: #fff;
  font-size: 9.5px; font-weight: 800; line-height: 16px; text-align: center;
  border: 1.5px solid var(--cream);
}
.meDot { width: 9px; height: 9px; min-width: 0; padding: 0; background: var(--green); right: 1px; top: 1px; }
.iconBtn--me.hasUser { background: var(--ink); color: #fff; border-color: var(--ink); }

.searchRow { margin-top: 9px; }
.searchBox {
  display: flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 11px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow-s);
}
.searchBox:focus-within { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(242, 107, 33, .14); }
.sIcon { width: 16px; height: 16px; flex: 0 0 auto; fill: var(--ink-3); }
.searchBox input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none;
  font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -.2px;
}
.searchBox input::placeholder { color: #A79E93; font-weight: 500; }
.searchBox input::-webkit-search-cancel-button { display: none; }
.clearBtn { width: 20px; height: 20px; border-radius: 50%; background: var(--cream-2); color: var(--ink-3); font-size: 10px; line-height: 20px; }

.timeRow { display: flex; align-items: center; gap: 9px; margin-top: 9px; }
.segmented {
  position: relative;
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .95);
  border: 1px solid var(--line);
  border-radius: 11px; padding: 2.5px;
  box-shadow: var(--shadow-s);
}
.seg {
  position: relative; z-index: 1;
  padding: 6px 11px; border-radius: 8px;
  font-size: 12px; font-weight: 800; color: var(--ink-3); letter-spacing: -.2px;
  transition: color .18s ease;
}
.seg.isActive { color: #fff; }
.segThumb {
  position: absolute; top: 2.5px; bottom: 2.5px; left: 2.5px;
  width: calc(50% - 2.5px);
  background: var(--ink); border-radius: 8px;
  transition: transform .22s cubic-bezier(.3, .8, .3, 1);
}
.segmented[data-active="sim"] .segThumb { transform: translateX(100%); }
.basisWrap { display: flex; align-items: center; gap: 6px; min-width: 0; }
.basisLabel { font-size: 10.5px; font-weight: 700; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modeChip {
  flex: 0 0 auto;
  font-size: 9px; font-weight: 800; letter-spacing: .2px;
  color: var(--amber-deep); background: var(--amber-soft);
  border: 1px solid #F8D2B4; border-radius: 5px; padding: 2px 5px;
}

.areaRow, .chipRow {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin-top: 8px; padding-bottom: 1px;
}
.areaRow::-webkit-scrollbar, .chipRow::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 4px;
  height: 30px; padding: 0 11px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px; font-weight: 800; color: var(--ink-2); letter-spacing: -.2px;
  box-shadow: 0 1px 2px rgba(60, 38, 12, .05);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip b { font-size: 10.5px; font-weight: 800; color: var(--ink-3); }
.chip.isActive { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.isActive b { color: rgba(255, 255, 255, .66); }
.chip--filter.isActive { background: var(--amber); border-color: var(--amber); color: #fff; }
.chip .chipX { font-size: 9px; opacity: .8; }

/* ───────── 빠른 권역 레일 ───────── */
.quickRail {
  position: absolute; right: 10px; top: 238px;
  bottom: calc(96px + var(--safe-bottom));
  z-index: 600;
  display: flex; flex-direction: column; gap: 5px;
  justify-content: flex-start;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none; overscroll-behavior: contain;
  padding: 2px;
  mask-image: linear-gradient(to bottom, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%);
}
.quickRail::-webkit-scrollbar { display: none; }
.railBtn {
  width: 46px; height: 38px; border-radius: 12px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  color: var(--ink-2);
  transition: transform .14s ease, background .14s ease;
}
.railBtn:active { transform: scale(.94); }
.railBtn.isActive { background: var(--ink); color: #fff; border-color: var(--ink); }
.railIcon { font-size: 13px; line-height: 1; font-weight: 900; }
.railIcon--num { font-size: 11px; color: var(--amber); letter-spacing: -.3px; }
.railBtn.isActive .railIcon--num { color: #FFC79B; }
.railTxt {
  font-size: 8.5px; font-weight: 800; letter-spacing: -.2px;
  display: block; width: 42px; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center;
}
.railBtn--loc { margin-top: 2px; }
.railBtn--loc .railIcon { color: var(--blue); font-size: 15px; }

/* ───────── 하단 바 ───────── */
.bottomBar {
  position: absolute; left: 12px; right: 12px;
  bottom: calc(14px + var(--safe-bottom));
  z-index: 610;
  display: flex; gap: 8px;
}
.countPill {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 14px;
  background: var(--ink); color: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-m);
  text-align: left;
}
.countDot { width: 8px; height: 8px; border-radius: 50%; background: #4BD39B; box-shadow: 0 0 0 3px rgba(75, 211, 155, .22); flex: 0 0 auto; }
.countMain { font-size: 14px; font-weight: 900; letter-spacing: -.3px; white-space: nowrap; }
.countMain b { font-size: 16px; }
.countSub { font-size: 10.5px; font-weight: 700; color: rgba(255, 255, 255, .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.countChev { font-size: 12px; opacity: .55; }
.filterBtn {
  flex: 0 0 auto;
  position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  height: 48px; padding: 0 15px;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  font-size: 13px; font-weight: 900; letter-spacing: -.2px;
  box-shadow: var(--shadow-m);
}
.filterBtn.isOn { background: var(--amber); color: #fff; border-color: var(--amber); }
.filterBadge {
  min-width: 16px; height: 16px; border-radius: 8px;
  background: var(--amber); color: #fff; font-size: 10px; font-weight: 900;
  line-height: 16px; text-align: center; padding: 0 4px;
}
.filterBtn.isOn .filterBadge { background: #fff; color: var(--amber-deep); }

/* ───────── 지도 핀 ───────── */
.pinWrap { width: 0 !important; height: 0 !important; }
.pin {
  position: absolute; left: 0; top: 0;
  transform: translate(-50%, -100%);
  display: flex; align-items: center; gap: 4px;
  height: 26px; padding: 0 8px 0 7px;
  background: #fff;
  border: 1.5px solid var(--amber);
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(60, 38, 12, .22);
  white-space: nowrap;
  cursor: pointer;
  transition: transform .12s ease;
}
.pin:active { transform: translate(-50%, -100%) scale(.95); }
.pin--open { border-color: var(--amber); }
.pin--open .pinDot { background: var(--amber); }
.pin--break { border-color: #9B938A; }
.pin--break .pinDot { background: #9B938A; }
.pin--before { border-color: var(--blue); }
.pin--before .pinDot { background: var(--blue); }
.pin--after, .pin--dayoff { border-color: #C9C1B7; background: #F7F3EC; }
.pin--after .pinDot, .pin--dayoff .pinDot { background: #B5AEA5; }
.pin--after .pinLabel, .pin--dayoff .pinLabel { color: #928A80; }
.pinDot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; }
.pinLabel { font-size: 10.5px; font-weight: 900; color: var(--ink); letter-spacing: -.35px; }
.pin--pilot { border-width: 2px; border-color: var(--gold); background: linear-gradient(180deg, #FFFDF5 0%, #FFF6DC 100%); box-shadow: 0 4px 12px rgba(168, 117, 42, .3); }
.pin--pilot .pinDot { background: var(--gold); }
.pinStar { font-size: 9px; color: var(--gold); line-height: 1; margin-right: -1px; }

.clusterWrap { width: 0 !important; height: 0 !important; }
.cluster {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(25, 21, 18, .93);
  color: #fff;
  box-shadow: 0 6px 18px rgba(25, 21, 18, .28), 0 0 0 5px rgba(255, 255, 255, .5);
  cursor: pointer;
  animation: popIn .18s ease-out;
}
.cluster b { font-size: 14px; font-weight: 900; line-height: 1; letter-spacing: -.5px; }
.cluster--area { background: linear-gradient(160deg, rgba(37, 30, 24, .96) 0%, rgba(18, 14, 11, .96) 100%); border-radius: 999px; padding: 5px 10px; }
.cluster--area b.clusterName { font-size: 10.5px; letter-spacing: -.3px; line-height: 1.05; max-width: 96px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cluster--area span { font-size: 7.5px; color: #FFC79B; margin-top: 2px; line-height: 1.1; }
.cluster span { font-size: 8px; font-weight: 700; color: #FFC79B; margin-top: 2px; letter-spacing: -.2px; }
@keyframes popIn { from { transform: translate(-50%, -50%) scale(.7); opacity: .4; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }

.meWrap { width: 0 !important; height: 0 !important; }
.mePin {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(49, 89, 201, .22);
  display: flex; align-items: center; justify-content: center;
  animation: mePulse 2s ease-in-out infinite;
}
.mePin span { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); border: 2px solid #fff; box-sizing: content-box; }
@keyframes mePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(49, 89, 201, .3); } 50% { box-shadow: 0 0 0 9px rgba(49, 89, 201, 0); } }

/* ───────── 토스트 ───────── */
.toast {
  position: absolute; left: 50%; bottom: calc(76px + var(--safe-bottom));
  transform: translate(-50%, 14px);
  z-index: 900;
  max-width: 88%;
  padding: 10px 15px;
  background: rgba(25, 21, 18, .95);
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: -.2px;
  border-radius: 12px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  text-align: center;
  box-shadow: var(--shadow-m);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ───────── 스크림 ───────── */
.scrim {
  position: absolute; inset: 0; z-index: 690;
  background: rgba(24, 18, 12, .3);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.scrim.isOn { opacity: 1; pointer-events: auto; }

/* ───────── 패널 공통 ───────── */
.panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 700;
  background: var(--cream);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--shadow-l);
  transform: translateY(101%);
  transition: transform .3s cubic-bezier(.32, .72, .28, 1);
  max-height: 92%;
  display: flex; flex-direction: column;
  overscroll-behavior: contain;
}
.panel.isOpen { transform: translateY(0); }
.panelHandle { padding: 8px 0 2px; display: flex; justify-content: center; flex: 0 0 auto; cursor: grab; touch-action: none; }
.panelHandle span { width: 38px; height: 4px; border-radius: 2px; background: #D8CCBC; }
.panelHead {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 6px 17px 10px;
  flex: 0 0 auto;
}
.panelTitle { font-size: 18px; font-weight: 900; letter-spacing: -.5px; }
.panelSub { font-size: 11.5px; font-weight: 600; color: var(--ink-3); margin-top: 3px; letter-spacing: -.2px; }
.closeBtn {
  width: 30px; height: 30px; border-radius: 50%;
  background: #F2E8DA; color: var(--ink-2);
  font-size: 12px; font-weight: 800; line-height: 30px; text-align: center;
  flex: 0 0 auto;
}
.listBody, .filterBody, .detailBody, .passBody { overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: calc(18px + var(--safe-bottom)); }

/* ───────── 목록 ───────── */
.listPanel { height: 84%; }
.listBody { padding: 0 13px; }
.card {
  display: flex; gap: 10px;
  padding: 12px 13px;
  margin-bottom: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: 0 1px 2px rgba(60, 38, 12, .04);
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease;
}
.card:active { transform: scale(.99); border-color: var(--line-2); }
.card--pilot { border-color: #EAD2A0; background: linear-gradient(180deg, #FFFDF7 0%, #FFFBF0 100%); }
.cardRank {
  flex: 0 0 auto; width: 20px;
  font-size: 11px; font-weight: 900; color: var(--ink-3);
  padding-top: 2px; letter-spacing: -.3px;
}
.cardMain { flex: 1; min-width: 0; }
.cardTop { display: flex; align-items: baseline; gap: 6px; }
.cardName { font-size: 14.5px; font-weight: 900; letter-spacing: -.45px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cardArea { flex: 0 0 auto; font-size: 10px; font-weight: 800; color: var(--ink-3); }
.cardMeta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.tag {
  font-size: 10px; font-weight: 700; color: var(--ink-2);
  background: #F7F1E7; border-radius: 6px; padding: 2px 6px; letter-spacing: -.2px;
}
.tag--amber { background: var(--amber-soft); color: var(--amber-deep); }
.tag--gold { background: var(--gold-soft); color: var(--gold); border: 1px solid #F0DCA4; }
.tag--green { background: #E7F6EF; color: var(--green); }
.cardPoint { font-size: 11px; color: var(--ink-3); margin-top: 6px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cardRight { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; }
.statusPill {
  font-size: 10px; font-weight: 900; letter-spacing: -.2px;
  padding: 3px 7px; border-radius: 6px; white-space: nowrap;
}
.statusPill--open { background: #FFF0E2; color: var(--amber-deep); }
.statusPill--break { background: #F0EDE8; color: #6C655C; }
.statusPill--before { background: #EAF0FE; color: var(--blue); }
.statusPill--after, .statusPill--dayoff { background: #F3EFE9; color: #8B8378; }
.dist { font-size: 10px; font-weight: 800; color: var(--ink-3); }

.empty { padding: 40px 20px; text-align: center; color: var(--ink-3); font-size: 12.5px; font-weight: 600; line-height: 1.7; }
.empty b { color: var(--ink-2); }

/* ───────── 필터 ───────── */
.filterPanel { height: 78%; }
.filterBody { padding: 0 17px; }
.filterGroup { padding: 12px 0 14px; border-bottom: 1px solid var(--line); }
.filterGroup:last-of-type { border-bottom: 0; }
.filterGroup h3 { font-size: 12px; font-weight: 900; color: var(--ink-2); margin-bottom: 9px; letter-spacing: -.2px; }
.switchRow {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; cursor: pointer;
}
.switchRow input {
  appearance: none; width: 40px; height: 23px; border-radius: 12px;
  background: #E2D8C9; position: relative; flex: 0 0 auto;
  transition: background .18s ease; cursor: pointer;
}
.switchRow input::after {
  content: ''; position: absolute; top: 2.5px; left: 2.5px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .18s ease;
}
.switchRow input:checked { background: var(--amber); }
.switchRow input:checked::after { transform: translateX(17px); }
.switchRow span { font-size: 13.5px; font-weight: 700; letter-spacing: -.2px; flex: 1; }
.switchRow em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--ink-3); }
.drinkGrid { display: flex; flex-wrap: wrap; gap: 7px; }
.drinkBtn {
  height: 34px; padding: 0 13px; border-radius: 10px;
  background: var(--white); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 800; color: var(--ink-2); letter-spacing: -.2px;
  display: inline-flex; align-items: center; gap: 5px;
}
.drinkBtn em { font-style: normal; font-size: 10px; color: var(--ink-3); font-weight: 800; }
.drinkBtn.isOn { background: var(--ink); color: #fff; border-color: var(--ink); }
.drinkBtn.isOn em { color: rgba(255, 255, 255, .6); }
.filterFoot {
  flex: 0 0 auto;
  display: flex; gap: 8px;
  padding: 11px 17px calc(13px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.btn {
  height: 46px; border-radius: 14px;
  font-size: 14px; font-weight: 900; letter-spacing: -.3px;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
}
.btn--ghost { flex: 0 0 96px; background: #F2E8DA; color: var(--ink-2); }
.btn--primary { flex: 1; background: var(--ink); color: #fff; box-shadow: 0 6px 16px rgba(25, 21, 18, .18); }
.filterFoot .btn--primary { gap: 0; }
.btn--amber { flex: 1; background: var(--amber); color: #fff; box-shadow: 0 6px 16px rgba(242, 107, 33, .28); }
.btn--kakao { flex: 1; background: #FEE500; color: #191600; font-weight: 900; }
.btn--ghostLine { flex: 1; background: #fff; border: 1px solid var(--line-2); color: var(--ink-2); }
.btn:active { transform: scale(.99); }
.btn:disabled { opacity: .5; }

/* ───────── 상세 ───────── */
.detailPanel { height: 88%; }
.detailBody { padding: 0 17px; }
.detailTop { padding-top: 2px; }
.badgeRow { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 7px; }
.badge {
  font-size: 10px; font-weight: 900; letter-spacing: -.2px;
  padding: 3px 8px; border-radius: 6px;
}
.badge--pilot { background: linear-gradient(135deg, #A8752A 0%, #7C5418 100%); color: #FFF3D1; }
.badge--pass { background: var(--amber-soft); color: var(--amber-deep); border: 1px solid #F8D2B4; }
.badge--muted { background: #F2EBDD; color: var(--ink-3); }
.detailName { font-size: 23px; font-weight: 900; letter-spacing: -.8px; line-height: 1.22; }
.detailCat { font-size: 12px; font-weight: 700; color: var(--ink-3); margin-top: 4px; letter-spacing: -.2px; }

.statusCard {
  margin-top: 12px;
  padding: 13px 14px;
  border-radius: var(--r-m);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
}
.statusHead { display: flex; align-items: center; gap: 8px; }
.statusDot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(242, 107, 33, .16); flex: 0 0 auto; }
.statusDot--break { background: #9B938A; box-shadow: 0 0 0 3px rgba(155, 147, 138, .18); }
.statusDot--before { background: var(--blue); box-shadow: 0 0 0 3px rgba(49, 89, 201, .16); }
.statusDot--after, .statusDot--dayoff { background: #B5AEA5; box-shadow: 0 0 0 3px rgba(181, 174, 165, .2); }
.statusLabel { font-size: 15px; font-weight: 900; letter-spacing: -.35px; }
.statusDetail { font-size: 11.5px; font-weight: 700; color: var(--ink-3); margin-left: auto; text-align: right; }
.statusRow2 {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line-2);
  font-size: 11px; font-weight: 700; color: var(--ink-3);
}
.statusRow2 b { color: var(--ink-2); font-weight: 900; }
.statusRow2 .statusRow2v { color: var(--amber-deep); }

.infoGrid { margin-top: 12px; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.infoRow { display: flex; gap: 10px; padding: 10px 13px; border-bottom: 1px solid #F6F0E6; align-items: flex-start; }
.infoRow:last-child { border-bottom: 0; }
.infoKey { flex: 0 0 62px; font-size: 11px; font-weight: 900; color: var(--ink-3); letter-spacing: -.2px; padding-top: 1px; }
.infoVal { flex: 1; font-size: 12.5px; font-weight: 700; color: var(--ink-2); line-height: 1.5; letter-spacing: -.2px; word-break: break-all; }
.infoVal b { font-weight: 900; color: var(--ink); }
.infoVal .muted { color: var(--ink-3); font-weight: 600; }
.infoSub { font-size: 11px; font-weight: 600; color: var(--ink-3); margin-top: 2px; }
.copyBtn { font-size: 10px; font-weight: 800; color: var(--amber-deep); background: var(--amber-soft); border-radius: 6px; padding: 3px 7px; margin-left: 6px; }

.passCard {
  margin-top: 12px;
  border-radius: var(--r-m);
  padding: 13px 14px;
  background: linear-gradient(135deg, #2A2119 0%, #191512 100%);
  color: #fff;
  box-shadow: var(--shadow-m);
}
.passCardTop { display: flex; align-items: center; gap: 6px; }
.passCardLabel { font-size: 10px; font-weight: 900; letter-spacing: .3px; color: #FFC79B; }
.passCardTitle { font-size: 15px; font-weight: 900; letter-spacing: -.4px; margin-top: 5px; }
.passCardNote { font-size: 10.5px; font-weight: 600; color: rgba(255, 255, 255, .58); margin-top: 3px; }
.passCardBtn {
  margin-top: 11px; width: 100%; height: 42px; border-radius: 11px;
  background: var(--amber); color: #fff; font-size: 13.5px; font-weight: 900; letter-spacing: -.3px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.passCardBtn--issued { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.passCodeRow { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; padding-top: 9px; border-top: 1px dashed rgba(255, 255, 255, .2); }
.passCode { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; font-weight: 800; letter-spacing: 1.5px; color: #FFD9AE; }
.passCodeHint { font-size: 9.5px; font-weight: 700; color: rgba(255, 255, 255, .5); }
.passDday { margin-left: auto; font-size: 10px; font-weight: 900; color: #FFC79B; background: rgba(255, 255, 255, .12); padding: 3px 7px; border-radius: 6px; }

.pointBox {
  margin-top: 12px; padding: 12px 13px;
  background: #FFF3E4; border-radius: var(--r-m);
  font-size: 12.5px; font-weight: 600; color: #7A4A1E; line-height: 1.62; letter-spacing: -.2px;
  border: 1px solid #F8DFC4;
}
.pointBox b { font-weight: 900; color: #5C330F; }

.dirRow { display: flex; gap: 8px; margin-top: 13px; }
.dirBtn {
  flex: 1; height: 50px; border-radius: var(--r-m);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 11.5px; font-weight: 900; letter-spacing: -.2px;
  border: 1px solid var(--line-2); background: #fff;
  box-shadow: var(--shadow-s);
}
.dirBtn .dirIcon { font-size: 16px; line-height: 1; }
.dirBtn--kakao { background: #FEE500; border-color: #F2DA00; color: #191600; }
.dirBtn--naver { background: #03C75A; border-color: #03C75A; color: #fff; }
.dirBtn--plain { background: #fff; }
.detailFoot { margin-top: 14px; font-size: 10.5px; color: var(--ink-3); line-height: 1.6; font-weight: 600; letter-spacing: -.2px; }

/* ───────── 낮술패스 ───────── */
.passPanel { height: 90%; }
.passHead { padding-top: 4px; }
.passBody { padding: 0 15px; }
.loginCard {
  margin: 4px 0 14px;
  padding: 18px 16px;
  border-radius: var(--r-l);
  background: linear-gradient(160deg, #FFFDF8 0%, #FFF4E4 100%);
  border: 1px solid #F3DFC4;
  text-align: center;
  box-shadow: var(--shadow-s);
}
.loginEmoji { font-size: 30px; line-height: 1; }
.loginTitle { font-size: 16px; font-weight: 900; letter-spacing: -.45px; margin-top: 9px; }
.loginDesc { font-size: 11.5px; font-weight: 600; color: var(--ink-3); line-height: 1.62; margin-top: 6px; letter-spacing: -.2px; }
.loginCard .btn { margin-top: 13px; width: 100%; }
.loginNote { font-size: 9.5px; color: var(--ink-3); font-weight: 600; margin-top: 9px; line-height: 1.55; }

.passSectionTitle { font-size: 12px; font-weight: 900; color: var(--ink-2); margin: 16px 2px 8px; letter-spacing: -.2px; display: flex; align-items: center; justify-content: space-between; }
.passSectionTitle span { font-size: 10.5px; font-weight: 800; color: var(--ink-3); }

.coupon {
  position: relative;
  margin-bottom: 10px;
  border-radius: var(--r-l);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
  overflow: hidden;
}
.couponMain { padding: 14px 15px 12px; }
.couponTop { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.couponStore { font-size: 15px; font-weight: 900; letter-spacing: -.4px; }
.couponArea { font-size: 10px; font-weight: 800; color: var(--ink-3); margin-top: 2px; }
.couponBenefit { font-size: 12.5px; font-weight: 800; color: var(--amber-deep); margin-top: 8px; letter-spacing: -.2px; }
.couponNote { font-size: 10.5px; font-weight: 600; color: var(--ink-3); margin-top: 2px; }
.couponCodeBox {
  margin-top: 11px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px;
  background: #FCF6EC;
  border: 1px dashed #E4CFAE;
  border-radius: 10px;
}
.couponCodeLabel { font-size: 9px; font-weight: 900; color: var(--ink-3); letter-spacing: .3px; }
.couponCodeVal { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 16px; font-weight: 800; letter-spacing: 2px; color: var(--ink); margin-top: 1px; }
.couponActions { display: flex; gap: 7px; margin-top: 11px; }
.couponActions .btn { height: 42px; font-size: 12.5px; border-radius: 11px; }
.couponDday {
  flex: 0 0 auto;
  font-size: 10.5px; font-weight: 900; color: var(--amber-deep);
  background: var(--amber-soft); padding: 4px 8px; border-radius: 7px;
}
.coupon--used { opacity: .78; background: #FBF8F3; }
.coupon--used .couponBenefit { color: var(--ink-3); }
.passGuide {
  margin: 18px 0 8px; padding: 14px 15px;
  border-radius: var(--r-m); background: #FBF5EA; border: 1px solid var(--line);
}
.passGuideTitle { font-size: 11.5px; font-weight: 900; color: var(--ink-2); letter-spacing: -.2px; }
.passGuideList { margin: 8px 0 0; padding-left: 16px; }
.passGuideList li { font-size: 11.5px; font-weight: 600; color: var(--ink-3); line-height: 1.6; margin-bottom: 3px; letter-spacing: -.2px; }
.passGuideList b { color: var(--ink-2); font-weight: 900; }
.passGuideNote { margin-top: 8px; font-size: 10px; font-weight: 600; color: #A79C8D; letter-spacing: -.2px; }
.coupon--expired .couponDday { background: #F0EDE8; color: #8B8378; }
.passEmpty { text-align: center; padding: 26px 18px 30px; color: var(--ink-3); font-size: 12px; font-weight: 600; line-height: 1.7; }
.ownerRow { margin: 18px 0 6px; text-align: center; }
.ownerLink { font-size: 11px; font-weight: 800; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.passMode { font-size: 10px; font-weight: 800; color: var(--amber-deep); background: var(--amber-soft); border-radius: 6px; padding: 3px 7px; }

/* ───────── 모달 ───────── */
.modal {
  position: absolute; inset: 0; z-index: 950;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(20, 15, 10, .45);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
  padding: 0;
}
.modal.isOpen { opacity: 1; pointer-events: auto; }
.modalCard {
  width: 100%;
  background: var(--cream);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 20px 18px calc(20px + var(--safe-bottom));
  transform: translateY(24px);
  transition: transform .26s cubic-bezier(.3, .8, .3, 1);
  max-height: 88%;
  overflow-y: auto;
  box-shadow: var(--shadow-l);
}
.modal.isOpen .modalCard { transform: translateY(0); }
.modalCard--center { margin: auto; border-radius: var(--r-xl); width: calc(100% - 28px); max-width: 360px; }
.modalTitle { font-size: 18px; font-weight: 900; letter-spacing: -.5px; }
.modalDesc { font-size: 12px; font-weight: 600; color: var(--ink-3); line-height: 1.62; margin-top: 6px; letter-spacing: -.2px; }
.modalClose { width: 100%; margin-top: 12px; }

/* PIN 패드 */
.pinWrapBox { text-align: center; }
.pinStore { font-size: 12px; font-weight: 700; color: var(--ink-3); margin-top: 3px; }
.pinCoupon { margin: 12px auto 0; max-width: 250px; padding: 9px 12px; border-radius: 10px; background: #FCF6EC; border: 1px dashed #E4CFAE; }
.pinCouponCode { font-family: ui-monospace, monospace; font-size: 15px; font-weight: 800; letter-spacing: 1.6px; }
.pinCouponBenefit { font-size: 10.5px; font-weight: 700; color: var(--amber-deep); margin-top: 3px; }
.pinDots { display: flex; justify-content: center; gap: 12px; margin: 18px 0 6px; }
.pinDotItem { width: 15px; height: 15px; border-radius: 50%; border: 1.8px solid #D9CBB8; background: #fff; transition: all .12s ease; }
.pinDotItem.filled { background: var(--ink); border-color: var(--ink); transform: scale(1.05); }
.pinDots.shake { animation: shake .3s ease; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.pinMsg { min-height: 17px; font-size: 11px; font-weight: 800; color: var(--red); margin-bottom: 8px; }
.pinMsg.ok { color: var(--green); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; max-width: 280px; margin: 0 auto; }
.key {
  height: 50px; border-radius: 13px;
  background: #fff; border: 1px solid var(--line);
  font-size: 19px; font-weight: 800; color: var(--ink);
  box-shadow: 0 1px 2px rgba(60, 38, 12, .05);
}
.key:active { background: #F6EEE2; transform: scale(.97); }
.key--fn { font-size: 12px; font-weight: 800; color: var(--ink-3); background: #F7F1E7; border-color: transparent; }
.pinFoot { margin-top: 12px; font-size: 9.5px; font-weight: 600; color: var(--ink-3); line-height: 1.55; }

.pinSuccess { text-align: center; padding: 8px 0 4px; }
.successRing {
  width: 66px; height: 66px; margin: 0 auto 12px; border-radius: 50%;
  background: #E7F6EF; color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  animation: popIn2 .28s ease-out;
}
@keyframes popIn2 { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.successTitle { font-size: 19px; font-weight: 900; letter-spacing: -.5px; }
.successDesc { font-size: 12px; font-weight: 600; color: var(--ink-3); line-height: 1.6; margin-top: 6px; }
.successReceipt { margin-top: 14px; padding: 11px 13px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-align: left; font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.successReceipt div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.successReceipt b { font-weight: 900; color: var(--ink); }

/* 정보/설정 */
.infoHero { text-align: center; padding: 4px 0 12px; }
.infoHero .logoMark { margin: 0 auto 10px; width: 46px; height: 46px; border-radius: 15px; font-size: 26px; line-height: 46px; }
.infoHero h2 { font-size: 20px; font-weight: 900; letter-spacing: -.6px; }
.infoHero p { font-size: 11.5px; font-weight: 600; color: var(--ink-3); margin-top: 5px; line-height: 1.6; }
.infoList { margin-top: 6px; border-radius: var(--r-m); border: 1px solid var(--line); overflow: hidden; background: #fff; }
.infoListItem { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 13px; border-bottom: 1px solid #F6F0E6; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.infoListItem:last-child { border-bottom: 0; }
.infoListItem span:first-child { color: var(--ink-3); font-weight: 800; }
.state { font-size: 10.5px; font-weight: 900; padding: 3px 7px; border-radius: 6px; }
.state--on { background: #E7F6EF; color: var(--green); }
.state--demo { background: var(--amber-soft); color: var(--amber-deep); }
.state--off { background: #F0EDE8; color: #8B8378; }
.field { margin-top: 10px; }
.field label { display: block; font-size: 10.5px; font-weight: 900; color: var(--ink-3); margin-bottom: 4px; letter-spacing: -.1px; }
.field input, .field select {
  width: 100%; height: 40px; padding: 0 11px;
  border-radius: 10px; border: 1px solid var(--line-2); background: #fff;
  font-size: 12px; font-weight: 600; color: var(--ink);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(242, 107, 33, .12); }
.fieldHint { font-size: 9.5px; color: var(--ink-3); font-weight: 600; margin-top: 4px; line-height: 1.5; }
.modalActions { display: flex; gap: 8px; margin-top: 14px; }

/* 스켈레톤 */
.skeleton { padding: 14px; }
.skLine { height: 12px; border-radius: 6px; background: #F0E7D9; margin-bottom: 8px; animation: sk 1.2s ease-in-out infinite; }
@keyframes sk { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ───────── 다국어 전환 (2026-11-28) ───────── */
.brandText { flex: 1 1 auto; min-width: 0; }
.brandSlogan { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.langWrap { position: relative; flex: 0 0 auto; }
.langBtn {
  height: 34px; min-width: 34px; padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 10px; font-weight: 900; letter-spacing: .2px;
  box-shadow: var(--shadow-s);
}
.langBtn[aria-expanded="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.langMenu {
  position: absolute; top: 40px; right: 0;
  min-width: 134px; padding: 5px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 13px; box-shadow: var(--shadow-m);
  z-index: 900;
}
.langOpt {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 9px; border-radius: 9px;
  text-align: left; color: var(--ink-2);
}
.langOpt b { font-size: 10.5px; font-weight: 900; color: var(--ink-3); width: 20px; }
.langOpt span { font-size: 12px; font-weight: 700; }
.langOpt.isOn { background: var(--cream-2); color: var(--ink); }
.langOpt.isOn b { color: var(--amber-deep); }

/* ───────── 사장님 입점 · 비어스택스 ──────── */
.iconBtn--partner { color: var(--amber-deep); }
.partnerBanner {
  display: flex; align-items: center; gap: 10px;
  width: calc(100% - 32px); margin: 2px 16px 10px;
  padding: 10px 11px;
  background: linear-gradient(135deg, #FFF3E6 0%, #FFE7D1 100%);
  border: 1px solid #F8D2B4; border-radius: 13px;
  text-align: left;
}
.partnerBannerIcon { font-size: 18px; line-height: 1; }
.partnerBannerText { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.partnerBannerText b { font-size: 12px; font-weight: 900; color: var(--ink); letter-spacing: -.3px; }
.partnerBannerText em { font-size: 10px; font-weight: 700; font-style: normal; color: var(--amber-deep); }
.partnerBannerChev { font-size: 17px; color: var(--amber-deep); font-weight: 900; }
.partnerHead { text-align: center; }
.partnerEmoji { font-size: 30px; line-height: 1.1; }
.partnerCard {
  margin-top: 12px; padding: 12px;
  border: 1px solid var(--line); border-radius: 13px; background: var(--cream);
}
.partnerCard--brand { background: linear-gradient(150deg, #FFF6EC 0%, #FFEAD6 100%); border-color: #F8D2B4; }
.partnerCardTitle { font-size: 13px; font-weight: 900; color: var(--ink); letter-spacing: -.3px; }
.partnerCardDesc { margin-top: 5px; font-size: 11px; font-weight: 600; color: var(--ink-3); line-height: 1.62; letter-spacing: -.2px; }
.partnerList { margin: 6px 0 0; padding-left: 15px; }
.partnerList li { font-size: 11px; font-weight: 600; color: var(--ink-3); line-height: 1.6; margin-bottom: 2px; letter-spacing: -.2px; }
.partnerCta { display: block; width: 100%; margin-top: 10px; text-align: center; text-decoration: none; line-height: 44px; height: 44px; border-radius: 12px; font-size: 12.5px; font-weight: 900; }
.partnerContact {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 12px; padding: 10px 12px;
  border: 1px dashed var(--line-2); border-radius: 12px;
}
.partnerContact div { display: flex; flex-direction: column; gap: 2px; }
.partnerContact b { font-size: 11px; font-weight: 900; color: var(--ink-2); }
.partnerContact span { font-size: 12px; font-weight: 800; color: var(--amber-deep); }
.partnerContact .btn { flex: 0 0 auto; width: 40px; height: 36px; padding: 0; }
.cardZone { font-style: normal; margin-left: 3px; color: #A79C8D; font-weight: 700; }
/* v2.2 — 권역이 17개로 늘어 한 줄 가로 스크롤 칩 바로 운영한다 */
.areaRow {
  display: flex; flex-wrap: nowrap; gap: 6px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  scroll-padding-left: 14px;
  margin-right: -14px; padding-right: 14px;
  position: relative;
}
.areaRow .chip { justify-content: center; padding: 0 11px; min-width: 0; white-space: nowrap; scroll-snap-align: start; }
.areaRow {
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 26px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 26px), transparent 100%);
}


/* v2.2 — 권역이 넓어져 핀이 겹칠 때는 이름 라벨을 접고 점만 보여준다 */
#map[data-pinzoom="low"] .pinLabel,
#map[data-pinzoom="mid"] .pinLabel { display: none; }
#map[data-pinzoom="low"] .pin,
#map[data-pinzoom="mid"] .pin { transform: translate(-50%, -50%); }
