* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #10b981;
  --danger: #ef4444;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius: 12px;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* ─── Header ─── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  box-shadow: var(--shadow);
}

#header .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

#header .logo .icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: white;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

#header .subtitle {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

#header-support {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  text-align: center;
  pointer-events: none;
  line-height: 1.25;
  padding: 0 8px;
}
#header-support .hs-msg,
#header-support .hs-acct {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#header-support .hs-msg {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
#header-support .hs-acct {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
}
#header-support .hs-acct strong { color: var(--accent); }

#header .count-badge {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-muted);
}

#btn-add-place {
  /* 가게 추가 버튼은 숨김 - 가게 제보로 대체 */
  display: none !important;
}

#btn-add-place:hover { background: var(--primary-dark); }

#btn-report-place {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

#btn-report-place:hover { background: #059669; }

#btn-secret-pc {
  background: #f3f4f6;
  color: #444;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
#btn-secret-pc:hover { background: #e5e7eb; }

#btn-share-pc {
  background: #fee500;
  color: #191919;
  border: 1px solid #f5d800;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
@media (hover: hover) { #btn-share-pc:hover { background: #fde047; } }

#btn-shop-link {
  background: #ff5722;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
#btn-shop-link:hover { background: #e64a19; }

/* 모바일 전용 논알콜 구입 버튼 */
.btn-shop-mobile {
  display: none;
  width: 100%;
  background: #ff5722;
  color: white;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.15s;
}
.btn-shop-mobile:hover { background: #e64a19; }
.btn-shop-mobile:active { transform: scale(0.98); }

/* 모바일 전용 가게 제보 버튼 (검색창 위, 가로 전체) */
.btn-report-mobile {
  display: none;
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.15s;
}
.btn-report-mobile:hover { background: #059669; }
.btn-report-mobile:active { transform: scale(0.98); }

/* 검색/필터 토글 버튼 (모바일 전용) */
.btn-search-toggle {
  display: none;
  width: 100%;
  background: var(--primary);
  color: white;
  border: 1.5px solid var(--primary);
  border-radius: 10px;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
  transition: all 0.15s;
}
.btn-search-toggle.active { background: white; color: var(--primary); }
.btn-search-toggle:active { transform: scale(0.98); }

/* 검색 팝업 헤더 + 검색하기 버튼 (모바일 팝업에서만 표시) */
.search-popup-head { display: none; }
.btn-do-search { display: none; }

/* 모바일 전용 요소 기본 숨김 */
#mobile-topbar { display: none; }
#mobile-map-pills { display: none; }
#mobile-location-btn { display: none; }
#mobile-share-btn { display: none; }
#map-brand-label { display: none; }
#mobile-profile-menu { display: none; }

/* 현재 위치 파란 원 마커 */
.user-location-marker {
  position: relative;
  width: 18px;
  height: 18px;
}
.user-location-marker .ulm-dot {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 16px; height: 16px;
  background: #2563eb;
  border: 2.5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(37, 99, 235, 0.6);
}
.user-location-marker .ulm-pulse {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 16px; height: 16px;
  background: rgba(37, 99, 235, 0.3);
  border-radius: 50%;
  animation: ulm-pulse 1.8s ease-out infinite;
}
@keyframes ulm-pulse {
  0%   { width: 16px; height: 16px; opacity: 0.7; }
  100% { width: 56px; height: 56px; opacity: 0; }
}
.search-popup-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
}

/* 검색 팝업 배경 (모바일) */
#search-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}
#search-backdrop.open { display: block; }

/* ─── NON 마커 (SVG, 기기 배율과 무관하게 선명) ─── */
.non-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  line-height: 0;
}

.non-pin-svg {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 2px 3px rgba(37, 99, 235, 0.45));
  transition: transform 0.15s;
  transform-origin: center bottom;
}

.non-marker:hover .non-pin-svg,
.non-marker:focus-visible .non-pin-svg {
  transform: scale(1.08);
}

.report-guide {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
}
.report-guide b { color: var(--primary); }

/* ─── Auth UI ─── */
#auth-section {
  display: flex;
  align-items: center;
  gap: 6px;
}

#auth-logged-out { display: flex; align-items: center; }
#auth-logged-in  { display: none; align-items: center; gap: 8px; }

#user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border);
  display: none;
  flex-shrink: 0;
}

.btn-login {
  background: white;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.btn-login:hover { background: var(--primary); color: white; }

.btn-logout {
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn-logout:hover { background: var(--border); }

#user-nickname {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-admin-link {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: background 0.15s;
}
.btn-admin-link:hover { background: var(--bg); }

/* ─── Auth Modal ─── */
.auth-intro {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 16px;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s, background 0.15s, border-color 0.15s;
  color: var(--text);
  margin-bottom: 10px;
}
.btn-social:active { transform: scale(0.99); }

.btn-social .social-ic {
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
}

.btn-google-login:hover { background: var(--bg); border-color: #aaa; }

.btn-kakao-login {
  background: #fee500;
  border-color: #fee500;
  color: #191600;
}
.btn-kakao-login:hover { filter: brightness(0.96); }

.btn-naver-login {
  background: #03c75a;
  border-color: #03c75a;
  color: #fff;
}
.btn-naver-login .social-ic { color: #fff; }
.btn-naver-login:hover { filter: brightness(0.96); }

#auth-error {
  color: var(--danger);
  font-size: 12px;
  min-height: 16px;
  margin-top: 4px;
}

/* ─── Layout ─── */
#app {
  display: flex;
  height: 100vh;
  height: 100dvh;
  padding-top: 56px;
  min-height: 0;
}

/* ─── Sidebar ─── */
#sidebar {
  width: 340px;
  flex-shrink: 0;
  background: var(--card-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
}

#sidebar-header {
  padding: 0;
  border-bottom: none;
}

/* ─── 알콜 함량 안내 ─── */
#abv-guide {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  font-size: 11px;
  color: #92400e;
  flex-shrink: 0;
}

#abv-guide .abv-item b {
  font-weight: 700;
  color: #b45309;
}

#abv-guide .abv-divider {
  color: #d97706;
}

#filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  max-height: 46px;
  overflow: hidden;
}

#filter-bar.expanded {
  max-height: 168px;
  overflow: auto;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card-bg);
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  user-select: none;
  white-space: nowrap;
  line-height: 1.2;
  flex: 0 0 auto;
}

.filter-chip .chip-icon {
  font-size: 13px;
  flex-shrink: 0;
}

.filter-chip .chip-label {
  white-space: nowrap;
}

@media (hover: hover) {
  .filter-chip:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
    background: #eff6ff;
  }
}
.filter-chip:active { transform: scale(0.97); }
.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.filter-chip.active .chip-label::before {
  content: "✓ ";
}

#filter-toggle {
  padding: 5px 10px;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
}

@media (hover: hover) {
#filter-toggle:hover {
  background: #eff6ff;
  border-color: var(--primary);
  color: var(--primary);
}
}

/* ─── 필터 상태 바 ─── */
#filter-status {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 16px;
  background: #eff6ff;
  border-bottom: 1px solid #bfdbfe;
  flex-shrink: 0;
}

#filter-status .fs-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

#filter-status .fs-tag {
  background: white;
  border: 1px solid #bfdbfe;
  color: var(--primary);
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

#filter-status .fs-count {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

#btn-clear-filter {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.15s;
}
#btn-clear-filter:hover { background: rgba(37, 99, 235, 0.1); }

#search-input {
  width: calc(100% - 32px);
  margin: 14px 16px 12px;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  outline: none;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

#search-input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#place-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 8px;
}

#place-list::-webkit-scrollbar { width: 4px; }
#place-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.place-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.place-card:hover,
.place-card:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(37,99,235,0.12);
  transform: translateY(-1px);
  outline: none;
}

.place-card.active {
  border-color: var(--primary);
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.place-card .name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.place-card .address {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}

.place-card .brands {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.brand-tag {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
}

.place-card .meta {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

#empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

#empty-state .icon { font-size: 40px; margin-bottom: 12px; }
#empty-state .map-spinner { margin: 0 auto 12px; }
#empty-state p { font-size: 14px; line-height: 1.6; }

/* ─── Map ─── */
#map-container {
  flex: 1;
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: #e7eef6;
}

#map {
  width: 100%;
  height: 100%;
}

/* 전역 img 규칙이 타일 크기를 망가뜨리지 않도록 고정 */
#map img {
  max-width: none;
  max-height: none;
}

/* ─── Info Window ─── */
.info-window {
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  max-width: 300px;
  position: relative;
  box-sizing: border-box;
  /* 카카오 오버레이 래퍼의 nowrap 을 끊고, 한글은 단어 단위로 줄바꿈 */
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.info-window .iw-name { padding-right: 28px; }

.iw-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--bg);
  border: none;
  border-radius: 6px;
  width: 24px;
  height: 24px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  line-height: 1;
  transition: background 0.15s;
}
.iw-close:hover { background: var(--border); }

.iw-category {
  display: inline-block;
  background: #eff6ff;
  color: var(--primary);
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 8px;
}

.info-window a {
  color: var(--primary);
  text-decoration: none;
  font-size: 11px;
}
.info-window a:hover { text-decoration: underline; }

.btn-register-nonalcohol {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 9px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-register-nonalcohol:hover { background: var(--primary-dark); }

.info-window .iw-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  padding-right: 22px;
}

.info-window .iw-address {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.info-window .iw-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.info-window .iw-desc {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 10px;
}

.info-window .iw-meta {
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 4px;
}

/* ─── Modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--card-bg);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.2s;
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 20px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  background: var(--bg);
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.15s;
}

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

.modal-body {
  padding: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group label .required {
  color: var(--danger);
  margin-left: 2px;
}

.char-counter {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 6px;
}

.char-counter.near-limit { color: #f59e0b; }
.char-counter.at-limit { color: #ef4444; font-weight: 600; }

.form-group label .hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.address-row {
  display: flex;
  gap: 8px;
}

.address-row input { flex: 1; }

#btn-search-address {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  color: var(--text);
  transition: background 0.15s;
}

#btn-search-address:hover { background: var(--border); }

.brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.brand-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 13px;
  position: relative;
  user-select: none;
}

/* 마우스가 있는 기기에서만 hover 색을 준다. 휴대폰은 탭한 뒤에도 hover 가 남아서 선택이 안 풀린 것처럼 보였다 */
@media (hover: hover) {
  .brand-checkbox:hover { border-color: var(--accent); background: #f0fdf4; }
}
.brand-checkbox input[type="checkbox"] { display: none; }

.brand-checkbox.checked {
  border-color: var(--accent);
  background: #ecfdf5;
  color: #065f46;
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.brand-checkbox.checked::after {
  content: "✓";
  position: absolute;
  top: 5px;
  right: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}

.brand-checkbox .cb-icon { font-size: 16px; }

#brand-other-input {
  margin-top: 8px;
}

/* ─── 선택된 가게 카드 ─── */
.selected-place-card {
  border: 2px solid var(--accent);
  border-radius: 10px;
  padding: 12px 14px;
  background: #ecfdf5;
  margin-top: 8px;
  position: relative;
}

.spc-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.spc-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.spc-addr {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.spc-coords {
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 10px;
}

.btn-change-place {
  background: white;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-change-place:hover { background: var(--accent); color: white; }

.spc-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.btn-naver-map {
  display: inline-block;
  padding: 5px 12px;
  background: #03c75a;
  color: white;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-naver-map:hover { background: #02a94e; }

/* NON 정보창 안의 네이버맵 버튼 (전체폭, 흰 글씨) */
.info-window .btn-naver-map {
  display: block;
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 13px;
  margin-top: 10px;
  padding: 9px;
}
.info-window .btn-naver-map:hover { text-decoration: none; }

/* ─── 가게 검색결과 리스트 ─── */
.place-results-list {
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  margin-top: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 12px rgba(37,99,235,0.1);
}

.prl-title {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: #eff6ff;
  border-bottom: 1px solid #bfdbfe;
}

.prl-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}

.prl-item:last-child { border-bottom: none; }
.prl-item:hover { background: #eff6ff; }

.prl-name { font-weight: 600; font-size: 13px; color: var(--text); margin-bottom: 2px; }
.prl-addr { font-size: 11px; color: var(--text-muted); }
.prl-cat  { font-size: 11px; color: var(--accent); margin-top: 2px; }
.prl-phone { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

.naver-url-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 8px;
  font-size: 13px;
  color: #92400e;
}

.nuh-icon { font-size: 18px; flex-shrink: 0; line-height: 1.4; }
.nuh-text { flex: 1; line-height: 1.5; }
.nuh-text strong { color: #b45309; }

.nuh-clear {
  flex-shrink: 0;
  background: none;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  color: #92400e;
  cursor: pointer;
  white-space: nowrap;
}

.nuh-clear:hover { background: #fef3c7; }

.prl-pager {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 10px 12px;
  background: #f8fafc;
  border-top: 1px solid var(--border);
}

.prl-page {
  min-width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card-bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.prl-page:hover { background: #eff6ff; }
.prl-page.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.coords-display {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.coords-display span { color: var(--accent); font-weight: 600; }

.modal-footer {
  padding: 0 20px 20px;
  display: flex;
  gap: 8px;
}

.btn-cancel {
  flex: 1;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.15s;
}

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

.btn-submit {
  flex: 2;
  padding: 11px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-submit:hover { background: var(--primary-dark); }
.btn-submit:disabled { background: var(--border); cursor: not-allowed; }

/* ─── Toast ─── */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1e293b;
  color: white;
  padding: 12px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  z-index: 300;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s, visibility 0.3s;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

#toast.success { background: var(--accent); }
#toast.error { background: var(--danger); }

/* ─── Map loading / error ─── */
#map-message {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  gap: 12px;
  font-size: 15px;
  color: var(--text-muted);
  z-index: 5;
}

#map-message.hidden { display: none; }

.map-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: map-spin 0.8s linear infinite;
}

@keyframes map-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .map-spinner { animation: none; border-top-color: var(--primary); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
.filter-chip:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  #header-support .hs-msg { display: none; }
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  /* ── 기존 헤더 숨기고 모바일 상단바 사용 ── */
  #header { display: none; }
  #auth-section, #btn-report-place, #btn-shop-link,
  .btn-report-mobile, .btn-shop-mobile, .btn-search-toggle { display: none !important; }

  /* ── 모바일 상단바 ── */
  #mobile-topbar {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    background: white;
    padding: 8px 10px;
    gap: 8px;
    align-items: center;
    height: 54px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .mobile-non-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 900; color: white;
    letter-spacing: 0.5px;
    flex-shrink: 0;
  }

  .mobile-search-pill {
    flex: 1;
    background: #f3f4f6;
    border: none;
    border-radius: 24px;
    padding: 10px 14px;
    font-size: 13px;
    color: #9ca3af;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-avatar-wrap { position: relative; flex-shrink: 0; }

  .mobile-avatar-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: #f3f4f6;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; padding: 0; overflow: hidden;
    font-size: 17px;
  }

  .mobile-avatar-btn img {
    width: 100%; height: 100%; object-fit: cover;
    display: none;
  }

  .mobile-avatar-btn img.loaded { display: block; }
  #mobile-avatar-icon { line-height: 1; }

  /* 프로필 드롭다운 */
  #mobile-profile-menu {
    position: absolute;
    top: calc(100% + 6px); right: 0;
    background: white;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    min-width: 160px;
    padding: 8px 0;
    z-index: 300;
    overflow: hidden;
  }
  #mobile-profile-menu.open { display: block; }

  #mobile-user-name {
    padding: 10px 16px 10px;
    font-size: 13px; font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    margin: 0;
  }
  #mobile-profile-menu button,
  #mobile-profile-menu a {
    display: block; width: 100%;
    padding: 11px 16px;
    background: none; border: none;
    text-align: left; font-size: 14px;
    cursor: pointer; color: var(--text);
    text-decoration: none;
    font-family: inherit;
  }
  #mobile-profile-menu button:active,
  #mobile-profile-menu a:active { background: #f3f4f6; }
  #mobile-btn-admin-dd { display: none; }

  /* ── 앱 레이아웃 ── */
  #app {
    flex-direction: column;
    margin-top: 54px;
    height: calc(100dvh - 54px);
    height: calc(100vh - 54px);
    padding-top: 0;
  }

  /* 지도 70% / 가게목록 30% */
  #map-container { flex: 7; order: 1; }
  #sidebar-header { display: none; }

  /* ── 사이드바 ── */
  #sidebar {
    order: 2; flex: 3;
    position: static; width: 100%;
    min-height: 0;
    overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    border-right: none;
    border-top: 2px solid var(--border);
    box-shadow: none;
    display: block;
  }

  #place-list {
    overflow: visible; min-height: unset;
    height: auto; flex: unset;
  }

  /* ── 지도 위 pill 버튼 ── */
  #mobile-map-pills {
    display: flex;
    position: absolute;
    top: 10px; left: 50%;
    transform: translateX(-50%);
    gap: 8px; z-index: 10;
    pointer-events: none;
  }
  #mobile-map-pills * { pointer-events: all; }

  .map-pill {
    background: white;
    border: none;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13px; font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    cursor: pointer;
    white-space: nowrap;
    color: var(--text);
    text-decoration: none;
    display: flex; align-items: center; gap: 4px;
  }
  .map-pill:active { background: #f3f4f6; }

  /* ── 현재 위치 버튼 ── */
  #mobile-location-btn {
    display: flex;
    position: absolute;
    bottom: 14px; right: 12px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    align-items: center; justify-content: center;
    z-index: 10; color: var(--primary);
  }

  /* ── 공유 버튼 (현재 위치 버튼 위) ── */
  #mobile-share-btn {
    display: flex;
    position: absolute;
    bottom: 68px; right: 12px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    align-items: center; justify-content: center;
    z-index: 10; color: #16a34a;
  }

  /* ── 브랜드 라벨 ── */
  #map-brand-label {
    display: block;
    position: absolute;
    bottom: 14px; left: 10px;
    font-size: 11px; font-weight: 700;
    color: rgba(0,0,0,0.45);
    z-index: 10; pointer-events: none;
    background: rgba(255,255,255,0.75);
    padding: 3px 7px;
    border-radius: 6px;
    letter-spacing: 0.3px;
  }

  /* 검색 토글 버튼 표시 안함 (mobile-search-pill 사용) */
  .btn-search-toggle { display: none; }

  /* 검색과 필터는 목록 위 한 줄. 지도 위를 가리는 팝업으로 열지 않는다. */
  .search-section,
  .search-section.open {
    display: block;
    position: static;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: none;
    max-height: none;
    overflow: visible;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    z-index: auto;
    padding-bottom: 0;
  }

  /* 팝업 헤더: 상단 고정 */
  .search-section.open .search-popup-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    z-index: 2;
  }

  .search-section #search-input {
    width: calc(100% - 24px);
    margin: 8px 12px 0;
    font-size: 16px;
    padding: 10px 12px;
    border-radius: 12px;
    background: white;
    border: 1px solid var(--border);
    box-shadow: none;
    color: #111;
  }

  /* 검색하기 버튼 (팝업 안) */
  .search-section.open .btn-do-search {
    display: block;
    width: calc(100% - 24px);
    margin: 4px 12px 16px;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
  }
  .search-section.open .btn-do-search:active {
    background: var(--primary-dark);
    transform: scale(0.98);
  }

  /* ── 알콜 안내 ── */
  #abv-guide { font-size: 11px; padding: 7px 12px; }

  #filter-bar { padding: 8px 12px; max-height: 44px; }
  #filter-bar.expanded { max-height: 120px; }
  .filter-chip { font-size: 13px; padding: 6px 10px; min-height: 32px; }
  #filter-toggle { font-size: 13px; min-height: 32px; }
  #abv-guide { display: none; }

  /* ── 가게 카드 ── */
  .place-card { padding: 11px; }
  .place-card .name { font-size: 14px; }

  /* ── 모달: 바텀시트 스타일 ── */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal {
    border-radius: 16px 16px 0 0;
    max-height: 90vh;
    max-width: 100%;
    width: 100%;
  }

  .modal-header { padding: 16px 16px 0; }
  .modal-header h2 { font-size: 16px; }
  .modal-body { padding: 14px 16px; }
  .modal-footer { padding: 0 16px 20px; }

  .brands-grid { grid-template-columns: 1fr 1fr; gap: 6px; }

  .brand-checkbox { font-size: 12px; padding: 7px 8px; gap: 6px; }
  .brand-checkbox .cb-icon { font-size: 14px; }

  .address-row { gap: 6px; }

  /* ── 정보창: 모바일에서 더 작게 ── */
  .info-window { min-width: 180px; max-width: 240px; padding: 10px; }
  .info-window .iw-name { font-size: 13px; margin-bottom: 3px; }
  .info-window .iw-address { font-size: 11px; }
  .info-window .iw-desc { font-size: 11px; }
  .info-window .iw-meta { font-size: 11px; }
  .info-window .brand-tag { font-size: 10px; padding: 1px 6px; }
  .info-window .btn-naver-map { font-size: 12px; padding: 7px; margin-top: 8px; }
  .iw-close { width: 20px; height: 20px; font-size: 11px; }

  /* ── 토스트: 사이드바 위 ── */
  #toast {
    bottom: 20px;
    font-size: 12px;
    padding: 10px 16px;
    max-width: calc(100vw - 32px);
    white-space: normal;
    text-align: center;
  }
}

/* ─── 첫 방문 안내 팝업 ─── */
#welcome-overlay {
  z-index: 2500;
  align-items: center !important;
  padding: 16px !important;
}
.welcome-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 380px;
  padding: 28px 20px 18px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.2s;
}
#welcome-overlay.active .welcome-card { transform: none; }
.welcome-close {
  position: absolute;
  top: 12px;
  right: 12px;
}
.welcome-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #10b981);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.welcome-card h2 {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 4px;
  color: #111827;
}
.welcome-sub {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 18px;
}
.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.welcome-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: none;
  color: #fff;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s, filter 0.15s;
}
.welcome-btn:hover { filter: brightness(1.05); }
.welcome-btn:active { transform: scale(0.98); }
.welcome-find { background: #2563eb; }
.welcome-shop { background: #ff5722; }
.welcome-report { background: #10b981; }
.welcome-share { background: #fee500; color: #191919; }
.wb-icon { font-size: 24px; line-height: 1; }
.wb-text { display: flex; flex-direction: column; gap: 2px; }
.wb-text b { font-size: 16px; font-weight: 700; }
.wb-text small { font-size: 12px; opacity: 0.9; }
.welcome-skip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  user-select: none;
}
.welcome-skip input { width: 16px; height: 16px; accent-color: #2563eb; cursor: pointer; }

/* ─── 홈 화면에 추가 안내 배너 (모바일) ─── */
#install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 2400;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.28);
  padding: 16px 16px 10px;
  max-width: 440px;
  margin: 0 auto;
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#install-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.install-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 13px;
  cursor: pointer;
}
.install-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 28px;
}
.install-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}
.install-text p {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  word-break: keep-all;
}
.install-text .install-sub {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  color: #6b7280;
}
.install-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 13px;
  border: 0;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.install-btn:active { transform: scale(0.98); }
#install-btn-open.kakao { background: #fee500; color: #191919; }
.install-steps {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f3f6fb;
  font-size: 14px;
  line-height: 2;
  color: #374151;
  word-break: keep-all;
}
.install-steps b { color: #111827; }
.install-steps .step-hint { font-size: 12px; color: #6b7280; }
.install-steps .step-hint b { color: #374151; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 4px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  vertical-align: 1px;
}
.share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin: 0 2px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #d1d5db;
  color: #2563eb;
  vertical-align: middle;
}
.install-later {
  display: block;
  margin: 8px auto 0;
  padding: 6px 12px;
  border: 0;
  background: none;
  color: #9ca3af;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}
[hidden] { display: none !important; }

/* ─── 친구에게 공유하기 ─── */
#share-overlay {
  z-index: 2600;
  align-items: center !important;
  padding: 16px !important;
}
.share-sheet {
  position: relative;
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 380px;
  padding: 26px 20px 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.2s;
}
#share-overlay.active .share-sheet { transform: none; }
.share-close { position: absolute; top: 12px; right: 12px; }
.share-sheet h2 {
  padding: 0 30px; /* 오른쪽 위 ✕ 버튼과 겹치지 않게 */
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #111827;
  word-break: keep-all;
}
.share-sub {
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 18px;
  word-break: keep-all;
}
.share-actions { display: flex; flex-direction: column; gap: 10px; }
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s, filter 0.15s;
}
.share-btn:active { transform: scale(0.98); }
.share-ic { font-size: 20px; line-height: 1; }
.share-kakao { background: #fee500; color: #191919; }
.share-native { background: #2563eb; color: #fff; }
.share-copy { background: #f3f4f6; color: #111827; }
.share-copy.done { background: #059669; color: #fff; }
.share-url {
  margin-top: 14px;
  font-size: 13px;
  color: #6b7280;
  word-break: break-all;
}

/* ─── 정보창 하단 버튼: 이 가게 공유 / 정보가 달라요 ─── */
.info-window .iw-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.info-window .iw-actions button {
  flex: 1 1 0;
  padding: 7px 4px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
}
.info-window .iw-actions .iw-share { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.info-window .iw-actions .iw-report { color: #6b7280; }

/* ─── 정보 수정 신고 ─── */
#correction-overlay { z-index: 2600; align-items: center !important; padding: 16px !important; }
#correction-overlay.active .share-sheet { transform: none; }
.correction-reasons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  margin-bottom: 12px;
}
.correction-reasons label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  cursor: pointer;
}
.correction-reasons label:has(input:checked) { border-color: #2563eb; background: #eff6ff; font-weight: 700; }
.correction-reasons input { width: 18px; height: 18px; accent-color: #2563eb; }
#correction-comment {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 12px;
}
.correction-submit { background: #2563eb; color: #fff; }
.correction-submit:disabled { opacity: 0.6; }
.correction-note { margin: 10px 0 0; font-size: 12.5px; color: #6b7280; }

/* ─── 시크릿 모달 ─── */
#secret-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 3000;
  align-items: center;
  justify-content: center;
}
#secret-modal-overlay.active {
  display: flex !important;
}
.secret-modal {
  max-width: 400px;
  width: 92%;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 16px;
  background: #fff;
}
.secret-modal-body {
  padding: 0 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.secret-dog-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  border: 3px solid #f0f0f0;
}
.secret-message {
  width: 100%;
  font-size: 16px;
  line-height: 1.75;
  color: #1f2937;
  text-align: center;
  /* 한글을 단어 단위로 줄바꿈 (단어 중간에서 끊기지 않게) */
  word-break: keep-all;
  overflow-wrap: break-word;
  letter-spacing: -0.01em;
}
.secret-message p {
  margin: 0 0 20px;
}
.secret-message b { font-weight: 700; color: #111827; }
.secret-message .hl-blue { color: #2563eb; font-weight: 800; }
.secret-message .hl-green { color: #059669; font-weight: 800; }

/* 첫 문장: 인용 박스 (기울임 없이) */
.secret-quote {
  background: #f3f6fb;
  border-left: 4px solid #2563eb;
  padding: 16px 16px;
  border-radius: 12px;
  font-size: 17px;
  line-height: 1.7;
  color: #374151;
}
/* 회상 부분은 살짝 흐리게 */
.secret-muted { color: #6b7280; }
/* 핵심 문장은 크게 */
.secret-big {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.6;
  color: #111827;
}
.secret-cheers {
  display: inline-block;
  margin-top: 6px;
  font-size: 20px;
  font-weight: 800;
  color: #2563eb;
}

.secret-support {
  margin-top: 4px;
  margin-bottom: 22px;
  background: #f0f7ff;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}
.secret-support p { margin: 0 0 10px; }
.secret-support-title {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  line-height: 1.6;
}
.secret-account {
  font-size: 16px;
  line-height: 1.6;
}
.secret-account .bank { font-weight: 700; color: #059669; }
.secret-account .acct-num {
  font-size: 21px;
  font-weight: 800;
  color: #111827;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.secret-account .acct-name { font-weight: 600; color: #374151; }
.secret-copy {
  margin-top: 2px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.secret-copy:active { transform: scale(0.97); }
.secret-copy.done { background: #059669; }
.secret-support a { color: #2563eb; text-decoration: none; }
.secret-sign {
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  color: #374151;
  margin-bottom: 32px !important;
}
.secret-call {
  margin-top: 20px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #9a3412;
  line-height: 1.7;
}
.secret-call b { color: #c2410c; }
.secret-feedback {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.7;
}
.secret-feedback a { color: #2563eb; font-weight: 700; text-decoration: none; word-break: break-all; }

@media (max-width: 640px) {
  .secret-modal {
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
  }
  #secret-modal-overlay.active {
    align-items: flex-end;
  }
}

.nowrap { white-space: nowrap; }

/* ─── 목록 머리글: 지금 지도에 보이는 가게 수 ─── */
.list-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 9px 12px;
  margin: 0 0 8px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  font-size: 13px;
  color: #1e3a8a;
  line-height: 1.5;
  word-break: keep-all;
}
.list-head b { color: #1d4ed8; }
.list-head .lh-sub {
  display: block;
  font-size: 12px;
  color: #64748b;
}
.place-card .name .dist {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 11.5px;
  font-weight: 700;
  vertical-align: 1px;
}
