/* ── CSS 변수 ── */
:root {
  --bg: #F5F5F7;
  --surface: #ffffff;
  --surface2: #ffffff;
  --border: #E5E5EA;
  --text: #1C1C1E;
  --muted: #8A8A8E;
  --accent: #7F95E4;
  --vehicle: #7F95E4;
  --accent2: #f6ad55;
  --panel-h: 80px;
}

/* ── 기본 리셋 ── */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; width: 100%; overflow: hidden; font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); }

/* ── 지도 ── */
#map { position: fixed; top: 0; left: 0; right: 0; bottom: 0; height: 100vh; z-index: 1; }

/* ── 헤더 ── */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); background: linear-gradient(to bottom, rgba(245,245,247,0.97), rgba(245,245,247,0)); pointer-events: none; }
.logo { font-family: 'Space Mono', monospace; font-size: 16px; font-weight: 700; color: var(--accent); letter-spacing: -0.5px; pointer-events: all; }
.status-pill {  transition: bottom 0.35s cubic-bezier(0.32,0.72,0,1); display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.72); border: 0.5px solid var(--border); border-radius: 20px; padding: 5px 12px; font-size: 11px; color: var(--muted); backdrop-filter: blur(16px); pointer-events: all; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--vehicle); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* 패널 로고 */
.panel-logo {
  display: none;
  padding: 30px 0 12px;
  text-align: center;
}
.panel-logo img {
  height: 48px;
  object-fit: contain;
}

.status-pill { 
  position: fixed;
  bottom: calc(var(--panel-h) + 12px);
  right: 12px;
  z-index: 100;
  transition: bottom 0.35s cubic-bezier(0.32,0.72,0,1);
  display: flex; 
  align-items: center; 
  gap: 6px; 
  background: rgba(255,255,255,0.72); 
  border: 0.5px solid var(--border); 
  border-radius: 20px; 
  padding: 5px 12px; 
  font-size: 11px; 
  color: var(--muted); 
  backdrop-filter: blur(16px); 
  pointer-events: all; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); 
}

@media (min-width: 768px) {
  .panel-logo { display: block; }
  .logo { display: none; }
  .header img { display: none; }
  .status-pill {
    top: 12px;
    left: 424px;
    bottom: auto;
    right: auto;
  }
}

/* ── 하단 패널 ── */
.bottom-panel { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: var(--surface); border-top: 1px solid var(--border); border-radius: 20px 20px 0 0; padding-bottom: max(16px, env(safe-area-inset-bottom)); transition: transform 0.35s cubic-bezier(0.32,0.72,0,1); transform: translateY(calc(100% - var(--panel-h))); box-shadow: 0 -4px 24px rgba(0,0,0,0.1); }
.bottom-panel.expanded { transform: translateY(0); }
.panel-handle { display: flex; align-items: center; justify-content: center; padding: 20px 16px 0; cursor: pointer; -webkit-user-select: none; user-select: none; }
.handle-bar { width: 36px; height: 4px; background: var(--border); border-radius: 2px; margin-top: -16px; }
.panel-summary { display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; height: calc(var(--panel-h) - 24px); }
.search-trigger { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--muted); }

.panel-content { padding: 0 16px 8px; }

/* ── 검색 ── */
.search-wrap { position: relative; margin-bottom: 12px; }
.search-input { width: 100%; background: var(--surface2); border: 2px solid #5a5aa6; border-radius: 10px; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 15px; padding: 12px 20px 12px 35px; outline: none; transition: border-color .2s; -webkit-appearance: none; }
.search-input:focus { border-color: #7c3aed; }
.search-input::placeholder { color: var(--muted); }
.search-icon { position: absolute; left: 15px; top: 45%; transform: translateY(-50%); color: var(--muted); font-size: 26px; pointer-events: none; }
.search-clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 20px; cursor: pointer; display: none; background: none; border: none; line-height: 1; padding: 4px; }
.search-results { max-height: 200px; overflow-y: auto; }
.search-results::-webkit-scrollbar { width: 3px; }
.search-results::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.search-item { display: flex; align-items: center; gap: 10px; padding: 11px 10px; border-radius: 8px; cursor: pointer; transition: background .15s; }
.search-item:hover, .search-item:active { background: var(--surface2); }
.search-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.search-item-info { flex: 1; min-width: 0; }
.search-item-name { color: var(--text); font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item-sub { color: var(--muted); font-size: 11px; }
.search-item-code { font-size: 10px; font-family: 'Space Mono', monospace; color: var(--muted); flex-shrink: 0; }

.sel-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

/* ── 선택된 숙소 카드 ── */
.selected-card { display: none; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 8px; }
.selected-card.show { display: block; }
.sel-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.sel-addr { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.sel-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.sel-tag { font-size: 10px; font-family: 'Space Mono', monospace; padding: 3px 8px; border-radius: 4px; }
.sel-tag-code {
  background: #EEF7F2;
  border: 1px solid #D6EBDD;
  color: #48A878;
  font-weight: 600;
}

/* ── 구역 범례 ── */
.zone-section { margin-top: 4px; }
.zone-section-title { font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.zones-row { display: flex; gap: 8px; flex-wrap: wrap; }
.zone-chip { display: flex; align-items: center; gap: 5px; background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 5px 8px; font-size: 11px; }
.zone-line { width: 14px; height: 3px; border-radius: 2px; flex-shrink: 0; }
.zone-chip-name { color: var(--text); }

/* ── 구역 라벨 ── */
.district-label {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-family: 'Space Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  color: rgba(230, 168, 23, 0.4); /* 용산구 색상 예시 */
  letter-spacing: 2px;
  text-transform: uppercase;
  pointer-events: none;
}

.district-label::before {
  display: none !important;
}

/* ── PC 레이아웃 ── */
@media (min-width: 768px) {
  .bottom-panel { top: 0; bottom: 0; left: 0; right: auto; width: 400px; border-radius: 0; border-top: none; border-right: 0.5px solid rgba(0,0,0,0.08); transform: none !important; display: flex; flex-direction: column; overflow-y: auto; box-shadow: 2px 0 20px rgba(0,0,0,0.06); }
  .panel-handle, .panel-summary { display: none; }
  .panel-content { padding: 16px; flex: 1; }
  .vehicle-info-desktop { display: block; }
  .search-results { max-height: none; }
  .zones-row { flex-direction: column; gap: 6px; }
  .zone-chip { background: transparent; border: none; padding: 2px 0; }
  #map { left: 0; }
  .header { left: 0; }
}

/* 데스크탑 서비스 에이리어 (지도 우측 하단) */
.zone-legend-map {
  display: none;
  position: fixed;
  bottom: 10px;
  right: 60px;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  overflow: hidden;
}

@media (min-width: 768px) {
  .zone-legend-map { display: block; }
}

/* ── Leaflet 팝업 커스텀 ── */
.leaflet-interactive:focus {
  outline: none;
}
.leaflet-popup-content-wrapper { border-radius: 10px !important; box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important; border: 1px solid var(--border) !important; }
.leaflet-popup-content { margin: 12px 14px !important; font-family: 'DM Sans', sans-serif !important; }
.popup-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.popup-addr { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.popup-code { font-size: 10px; font-family: 'Space Mono', monospace; background: rgba(0,163,122,.1); border: 1px solid rgba(0,163,122,.2); padding: 2px 6px; border-radius: 3px; color: var(--accent); }
.popup-vehicle { font-size: 13px; font-weight: 600; color: var(--vehicle); }
.popup-vehicle-sub { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* ── 체크인 버튼 ── */
.checkin-divider { height: 1px; background: var(--border); margin: 12px 0; }
.checkin-hint { font-size: 12px; color: var(--muted); margin-bottom: 8px; line-height: 1.5; }
.checkin-btn {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
}
.checkin-btn:active { transform: scale(0.98); }
.checkin-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.checkin-done {
  padding: 10px 12px;
  background: #EEF7F2;
  border: 1px solid #D6EBDD;
  border-radius: 8px;
  font-size: 12px;
  color: #3A6B57;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(58, 107, 87, 0.05);
}

@media (max-width: 767px) {
  #nearbyPanel {
    left: auto !important;
    right: 0;
    width: 80% !important;
    border-right: none;
    border-left: 1px solid var(--border);
  }
}

@media (min-width: 768px) {
  #nearbyPanel.open {
    width: 280px;
  }
}

/* ════════════════════════════════════════════════════════════════
   LUGGDROP PANEL — 시안(에디토리얼) 형태 이식
   ⚠️ 앞서 드린 버전은 빼고, 이 파일 내용을 기존 style.css 맨 끝에
      붙여넣으세요. (이게 이전 추가분을 대체합니다.)
   기존 지도/팝업/구역범례/체크인 스타일은 건드리지 않습니다.
   ════════════════════════════════════════════════════════════════ */

:root{
  --lp-violet:#7F95E4; --lp-violet-soft:#EAEEF9;
  --lp-amber:#E0972F;
  --lp-paper:#F5F5F7; --lp-card:#ffffff;
  --lp-line:#E5E5EA; --lp-line2:#EFEFF4;
  --lp-ink:#1C1C1E; --lp-ink-soft:#6E6E73;
  --lp-shadow:0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
}

/* 카테고리 색 (칩·썸네일·아이콘 공통) */
.cat-cafe{--cc:#34C759;--cc-bg:#E6F7EC}
.cat-restaurant{--cc:#FF3B30;--cc-bg:#FFE9E7}
.cat-bar{--cc:#F5A623;--cc-bg:#FDF0DA}
.cat-grocery{--cc:#2E96F5;--cc-bg:#E4F0FE}
.cat-convenience{--cc:#12B0C4;--cc-bg:#DEF4F6}
.cat-attraction{--cc:#8A6DEE;--cc-bg:#EEE9FC}

/* ── 패널 크기 / 위치 (데스크탑 440px) ── */
@media (min-width:768px){
  .bottom-panel{ width:400px; }
  #map{ left:0; }
  .header{ left:0; }
  .status-pill{ left:424px; }
}
.bottom-panel{ background:rgba(255,255,255,0.92); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); }

/* ── 검색창 (시안 톤) ── */
.search-wrap{ margin-bottom:14px; }
.search-input{
  border:none !important; border-radius:12px !important;
  background:rgba(118,118,128,0.12); font-family:'Hanken Grotesk',sans-serif;
  font-size:15px; padding:12px 16px 12px 40px; box-shadow:none;
}
.search-input:focus{ background:rgba(118,118,128,0.16); }
.search-icon{ left:14px; font-size:22px; color:var(--lp-ink-soft); }
.search-item{ border-radius:11px; }
.search-item-name{ font-family:'Hanken Grotesk',sans-serif; }

/* ── 숙소(Your stay) 카드 ── */
.selected-card{
  background:var(--lp-card) !important; border:0.5px solid var(--lp-line) !important;
  border-radius:16px !important; padding:14px 16px !important;
  position:relative; overflow:hidden; box-shadow:0 1px 3px rgba(0,0,0,.06),0 6px 16px rgba(0,0,0,.08);
}
/* .selected-card::before 앰버 라인 제거 — 단일 바이올렛 액센트로 통일 */
.sel-eyebrow{ font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--lp-ink-soft); font-weight:600; }
.sel-name{ font-family:'Hanken Grotesk',sans-serif; font-weight:600; font-size:21px; line-height:1.15; letter-spacing:-.01em; margin-top:3px !important; color:var(--lp-ink); }
.sel-meta{ display:flex; flex-direction:column; gap:7px; margin-top:11px; }
.sel-row{ display:flex; align-items:center; gap:9px; font-size:13.5px; color:var(--lp-ink-soft); font-family:'Hanken Grotesk',sans-serif; }
.sel-row svg{ width:15px; height:15px; color:var(--lp-ink); flex:0 0 auto; }
.sel-row .sel-k{ color:var(--lp-ink); font-weight:600; }
.sel-tags{ margin-top:12px !important; }
.sel-tag-code{ background:#F2F2F7 !important; border:0.5px solid #D8D8DE !important; color:#6E6E73 !important; font-weight:600; }

/* ── NEARBY 리스트 (시안 카드) ── */
#nearbySection{ margin-top:14px; }
.lp-seclabel{ display:flex; align-items:center; justify-content:space-between;
  font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--lp-ink-soft);
  font-weight:600; margin-bottom:10px; }
.lp-count{ background:var(--lp-line2); color:var(--lp-ink-soft); padding:2px 8px; border-radius:20px;
  font-size:10.5px; letter-spacing:.02em; text-transform:none; font-weight:600; }
.lp-list{ display:flex; flex-direction:column; }
.lp-card{ display:flex; gap:12px; align-items:center; padding:11px 2px; background:transparent;
  border:none; border-bottom:0.5px solid var(--lp-line2); border-radius:0; cursor:pointer;
  transition:background .15s ease; }
.lp-card:last-child{ border-bottom:none; }
.lp-card:hover,.lp-card:active{ background:rgba(118,118,128,0.06); }
.lp-thumb{ width:46px; height:46px; flex:0 0 46px; border-radius:11px; overflow:hidden;
  background:var(--cc-bg,#eee); color:var(--cc,#888); display:flex; align-items:center; justify-content:center; }
.lp-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.lp-thumb svg{ width:22px; height:22px; }
.lp-cbody{ flex:1; min-width:0; display:flex; flex-direction:column; justify-content:center; gap:3px; }
.lp-crow1{ display:flex; align-items:center; gap:8px; min-width:0; }
.lp-cname{ font-family:'Hanken Grotesk',sans-serif; font-weight:600; font-size:15px; letter-spacing:-.01em;
  color:var(--lp-ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lp-cdesc{ font-family:'Hanken Grotesk',sans-serif; font-size:12.5px; color:var(--lp-ink-soft);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lp-cfoot{ display:flex; align-items:center; gap:12px; font-size:11.5px; color:var(--lp-ink-soft);
  font-family:'Hanken Grotesk',sans-serif; margin-top:1px; }
.lp-cfoot .lp-it{ display:inline-flex; align-items:center; gap:4px; white-space:nowrap; }
.lp-cfoot svg{ width:12px; height:12px; }
.lp-cfoot .lp-star{ color:var(--lp-amber); width:12px; height:12px; }
.lp-chev{ align-self:center; color:#C9C0AE; flex:0 0 auto; }
.lp-chev svg{ width:18px; height:18px; }

/* 카테고리 칩 */
.lp-cat{ display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:600;
  padding:3px 8px; border-radius:8px; white-space:nowrap; flex:0 0 auto;
  background:#F2F2F7; color:#6E6E73; font-family:'Hanken Grotesk',sans-serif; }
.lp-cat svg{ width:11px; height:11px; color:var(--cc,#888); }

/* ── 상세 뷰 (같은 패널 내 전환) ── */
.lp-detail{ font-family:'Hanken Grotesk',sans-serif; }
.lp-back{ display:inline-flex; align-items:center; gap:7px; background:none; border:none;
  font-family:inherit; font-size:12.5px; font-weight:600; color:var(--lp-ink-soft);
  cursor:pointer; padding:2px 0 12px; }
.lp-back svg{ width:16px; height:16px; }
.lp-hero{ position:relative; height:200px; border-radius:14px; overflow:hidden;
  background:var(--cc-bg,#eaeaea); color:var(--cc,#999);
  display:flex; align-items:center; justify-content:center; }
.lp-hero img{ width:100%; height:100%; object-fit:cover; display:block; }
.lp-hero svg{ width:54px; height:54px; opacity:.6; }
.lp-dtop{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-top:16px; }
.lp-dname{ font-family:'Hanken Grotesk',sans-serif; font-weight:600; font-size:25px; line-height:1.1;
  letter-spacing:-.015em; color:var(--lp-ink); }
.lp-drating{ display:inline-flex; align-items:center; gap:4px; font-size:14px; font-weight:600;
  color:var(--lp-ink); flex:0 0 auto; margin-top:3px; }
.lp-drating svg{ width:15px; height:15px; color:var(--lp-amber); }
.lp-chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top:13px; }
.lp-stat{ display:inline-flex; align-items:center; gap:5px; font-size:12.5px; font-weight:600;
  padding:5px 10px; border-radius:9px; background:var(--lp-card); border:0.5px solid var(--lp-line); color:var(--lp-ink-soft); }
.lp-stat svg{ width:13px; height:13px; }
.lp-chips .lp-cat{ padding:5px 10px; font-size:12.5px; }
.lp-tagline{ font-size:14.5px; line-height:1.5; color:var(--lp-ink); margin-top:14px; }

.lp-tabs{ display:flex; gap:18px; margin-top:16px; border-bottom:0.5px solid var(--lp-line); }
.lp-tab{ padding:10px 2px; font-size:13.5px; font-weight:600; color:var(--lp-ink-soft);
  cursor:pointer; background:none; border:none; font-family:inherit; position:relative; }
.lp-tab.active{ color:var(--lp-ink); }
.lp-tab.active::after{ content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px; background:var(--lp-violet); border-radius:2px; }
.lp-pane{ display:none; padding:14px 0 4px; animation:lpfade .22s ease; }
.lp-pane.on{ display:block; }
@keyframes lpfade{ from{opacity:0;transform:translateY(4px)} to{opacity:1;transform:none} }

.lp-inforow{ display:flex; gap:11px; padding:10px 0; border-bottom:0.5px solid var(--lp-line2); font-size:13.5px; align-items:flex-start; }
.lp-inforow:last-child{ border-bottom:none; }
.lp-inforow svg{ width:16px; height:16px; color:var(--lp-ink); flex:0 0 auto; margin-top:1px; }
.lp-inforow .lp-k{ color:var(--lp-ink-soft); width:74px; flex:0 0 74px; font-weight:500; }
.lp-inforow .lp-v{ color:var(--lp-ink); font-weight:500; flex:1; }
.lp-inforow .lp-v.open{ color:#4E7C59; font-weight:600; }

.lp-menu-item{ display:flex; justify-content:space-between; align-items:baseline; gap:12px;
  padding:11px 0; border-bottom:0.5px solid var(--lp-line2); }
.lp-menu-item:last-child{ border-bottom:none; }
.lp-menu-name{ font-weight:600; font-size:14px; color:var(--lp-ink); }
.lp-menu-price{ font-weight:600; font-size:13.5px; white-space:nowrap; color:var(--lp-ink); }

.lp-cta{ position:sticky; bottom:0; margin:8px -16px 0; padding:14px 16px 16px;
  background:linear-gradient(to top,rgba(255,255,255,0.9) 72%,transparent); }
.lp-cta a{ display:flex; align-items:center; justify-content:center; gap:8px; padding:13px;
  background:var(--lp-violet); color:#fff; border-radius:13px; text-decoration:none;
  font-size:14.5px; font-weight:600; box-shadow:0 6px 18px rgba(127,149,228,.34); }
.lp-cta a svg{ width:17px; height:17px; }
.lp-cta a:active{ transform:scale(.99); }

/* ── 여행 타입(Great for) 칩 — rating 자리 대체 ── */
.lp-for{ display:flex; flex-wrap:wrap; gap:6px; margin-top:3px; }
.lp-forrow{ display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin-top:14px; }
.lp-foreyebrow{ font-size:10.5px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--lp-ink-soft); font-weight:600; margin-right:2px; }
.lp-tag{ display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:600;
  padding:3px 8px; border-radius:7px; white-space:nowrap; flex:0 0 auto;
  background:transparent; border:0.5px solid #D8D8DE; color:#6E6E73; font-family:'Hanken Grotesk',sans-serif; }
.lp-tag svg{ width:11px; height:11px; }
.lp-tag-more{ background:var(--lp-line2); color:var(--lp-ink-soft); }
.lp-forrow .lp-tag{ padding:4px 9px; font-size:12px; }
.lp-forrow .lp-tag svg{ width:12px; height:12px; }

/* ── 상세 갤러리 썸네일 (다중 사진) ── */
.lp-thumbs{ display:flex; gap:6px; margin-top:6px; overflow-x:auto; padding-bottom:2px; }
.lp-thumbs::-webkit-scrollbar{ height:4px; }
.lp-thumbs::-webkit-scrollbar-thumb{ background:var(--lp-line); border-radius:2px; }
.lp-thumb-btn{ flex:0 0 auto; width:54px; height:54px; border-radius:9px; overflow:hidden;
  border:2px solid transparent; background:none; padding:0; cursor:pointer; transition:border-color .15s; }
.lp-thumb-btn img{ width:100%; height:100%; object-fit:cover; display:block; }
.lp-thumb-btn.active{ border-color:var(--lp-violet); }
.lp-thumb-btn:hover{ border-color:var(--lp-line); }

/* ── 모바일: 패널 스크롤 + 스토어 상세 시 다른 요소 숨김 ── */
@media (max-width: 767px) {
  /* 펼친 패널이 화면보다 길면 스크롤 (위 잘림·뒤로가기 안 먹힘 해결) */
  .bottom-panel.expanded {
    height: 68vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* 스토어 상세 모드: 상세(#detailView) 외 요소 숨김 */
  .panel-content.detail-mode .panel-logo,
  .panel-content.detail-mode .search-wrap,
  .panel-content.detail-mode .search-results,
  .panel-content.detail-mode #selectedCard,
  .panel-content.detail-mode #nearbySection {
    display: none !important;
  }
  /* 상세는 패널 상단부터, 뒤로가기 버튼 탭 영역 확보 */
  .panel-content.detail-mode #detailView { padding-top: 4px; }
}

/* ── 설명·메뉴 언어 토글 (EN/日/中) ── */
.lp-lang{ display:inline-flex; gap:2px; margin-top:14px; padding:3px;
  background:var(--lp-line2); border-radius:10px; }
.lp-lang-btn{ font-family:'Hanken Grotesk',sans-serif; font-size:12px; font-weight:600;
  color:var(--lp-ink-soft); background:none; border:none; cursor:pointer;
  padding:5px 12px; border-radius:8px; line-height:1; transition:background .15s, color .15s; }
.lp-lang-btn.active{ background:var(--lp-card); color:var(--lp-violet);
  box-shadow:0 1px 2px rgba(33,29,22,.08); }

/* ── 접근 게이트 안내 화면 ── */
#lpGate{
  position:fixed; inset:0; z-index:9000;
  display:flex; align-items:center; justify-content:center;
  background:var(--lp-paper, #F5F5F7); padding:24px;
}
#lpGate .lp-gate-card{
  max-width:340px; width:100%; text-align:center;
  background:#fff; border:1px solid var(--lp-line,#E5E5EA);
  border-radius:18px; padding:36px 28px;
  box-shadow:0 8px 30px rgba(33,29,22,.08);
}
#lpGate .lp-gate-logo{ height:44px; object-fit:contain; margin-bottom:18px; }
#lpGate .lp-gate-title{
  font-family:'Hanken Grotesk',sans-serif; font-weight:600; font-size:20px;
  color:var(--lp-ink,#1C1C1E); margin-bottom:8px; letter-spacing:-.01em;
}
#lpGate .lp-gate-text{
  font-family:'Hanken Grotesk',sans-serif; font-size:14px; line-height:1.55;
  color:var(--lp-ink-soft,#6E6E73); margin-bottom:22px;
}
#lpGate .lp-gate-admin{
  font-family:'Hanken Grotesk',sans-serif; font-size:12.5px; font-weight:600;
  color:var(--lp-ink-soft,#6E6E73); background:none; border:none; cursor:pointer;
  text-decoration:underline; text-underline-offset:3px; padding:6px;
}
#lpGate .lp-gate-admin:hover{ color:var(--lp-violet,#7F95E4); }
.sel-row img { width:20px; height:20px; object-fit:contain; flex:0 0 auto; }

/* 지도 팝업 내 '패널 펼치기' 버튼 — 모바일 전용 */
.popup-expand-btn{
  display:none;
  width:100%; margin-top:10px; padding:9px 12px;
  background:var(--lp-violet); color:#fff; border:none; border-radius:9px;
  font-family:'Hanken Grotesk',sans-serif; font-size:12.5px; font-weight:600;
  align-items:center; justify-content:center; gap:6px; cursor:pointer;
}
.popup-expand-btn svg{ width:13px; height:13px; }
.popup-expand-btn:active{ transform:scale(.98); }
@media (max-width:767px){
  .popup-expand-btn{ display:flex; }
}
/* ════════════════════════════════════════════════════════════════
   운영자 카드 — 운영정보 블록 (#opInfo)
   selectedCard 내부에 운영자일 때만 동적 삽입됨. 고객 화면엔 안 그려짐.
   ════════════════════════════════════════════════════════════════ */
#opInfo{
  margin-top:13px; padding-top:12px;
  border-top:0.5px solid var(--lp-line2);
  font-family:'Hanken Grotesk',sans-serif;
}
#opInfo .op-gu{
  display:inline-flex; align-items:center; gap:6px;
  font-size:12px; font-weight:600; color:var(--lp-ink-soft);
  margin-bottom:10px;
}
#opInfo .op-gu-dot{ width:9px; height:9px; border-radius:50%; flex:0 0 auto; }
#opInfo .op-row{
  display:flex; gap:12px; padding:7px 0;
  border-bottom:0.5px solid var(--lp-line2);
  font-size:13px; align-items:flex-start;
}
#opInfo .op-row:last-child{ border-bottom:none; }
#opInfo .op-k{
  color:var(--lp-ink-soft); font-weight:600;
  width:84px; flex:0 0 84px;
}
#opInfo .op-v{
  color:var(--lp-ink); font-weight:500; flex:1;
  white-space:pre-line; word-break:break-word;   /* notes 줄바꿈/긴 값 처리 */
}

/* 운영정보 — 짧은 값 칩 (층수/엘리베이터/접근성/Area/할증/커미션) */
#opInfo .op-chips{
  display:flex; flex-wrap:wrap; gap:7px;
  margin-bottom:4px;
}
#opInfo .op-chip{
  display:inline-flex; align-items:center; gap:6px;
  padding:5px 10px; border-radius:9px;
  background:var(--lp-card); border:0.5px solid var(--lp-line);
  font-size:12.5px; line-height:1;
}
#opInfo .op-chip-k{ color:var(--lp-ink-soft); font-weight:600; }
#opInfo .op-chip-v{ color:var(--lp-ink); font-weight:700; }
/* 칩이 있을 때 첫 긴 행과의 간격 */
#opInfo .op-chips + .op-row{ margin-top:8px; }


/* ── 운영자 지도 필터 (전체/활성/비활성) — 운영자일 때만 JS가 주입 ── */
.acc-filter{
  display:flex; gap:2px; margin-bottom:14px;
  background:rgba(118,118,128,0.12); border-radius:10px; padding:3px;
}
.acc-filter-btn{
  flex:1; display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:6px 4px; border-radius:8px; cursor:pointer;
  font-family:'Hanken Grotesk',sans-serif; font-size:12.5px; font-weight:600;
  color:var(--lp-ink-soft); background:transparent; border:none;
  transition:background .15s, color .15s;
}
.acc-filter-btn:hover{ color:var(--lp-ink); }
.acc-filter-btn.active{
  background:#fff; color:var(--lp-ink); box-shadow:0 1px 2px rgba(0,0,0,.12);
}
.acc-filter-n{
  font-size:11px; font-weight:700; padding:1px 6px; border-radius:20px;
  background:rgba(118,118,128,0.14); color:var(--lp-ink-soft);
}
.acc-filter-btn.active .acc-filter-n{ background:rgba(118,118,128,0.16); color:var(--lp-ink-soft); }
/* ── 좌측 상단 지도 언어 토글 ── */
.map-lang{
  position:fixed; top:12px; left:12px; z-index:1000;
  display:inline-flex; gap:2px; padding:3px;
  background:#fff; border:1px solid var(--lp-line,#E5E5EA);
  border-radius:10px; box-shadow:0 2px 8px rgba(0,0,0,.12);
}
.map-lang-btn{
  font-family:'Hanken Grotesk',sans-serif; font-size:13px; font-weight:600;
  color:var(--lp-ink-soft,#8A8A8E); background:none; border:none; cursor:pointer;
  padding:6px 11px; border-radius:8px; line-height:1;
  transition:background .15s, color .15s;
}
.map-lang-btn.active{
  background:var(--lp-violet,#7F95E4); color:#fff;
}
/* 모바일: 살짝 작게 */
@media (max-width:767px){
  .map-lang{ top:10px; left:10px; padding:2px; }
  .map-lang-btn{ font-size:12px; padding:5px 9px; }
}


/* ════════ 리팩터: 2줄 리스트 메타 + 데스크톱 언어토글 재배치 ════════ */
.lp-cmeta{ display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-top:4px; }
.lp-lcat{ font-family:'Hanken Grotesk',sans-serif; font-size:12.5px; font-weight:600; color:var(--cc,#8A8A8E); }
.lp-mdot{ color:#C7C7CC; font-size:12px; line-height:1; }
.lp-cmeta .lp-tag{ padding:2.5px 8px; font-size:10.5px; }
.lp-cmeta .lp-tag svg{ display:none; }   /* 리스트에선 태그 아이콘 숨김(간결) */

/* ════════ Local experiences (guide_program) ════════ */
.pg-card{ display:block; padding:0 0 14px; margin-bottom:14px;
  border-bottom:0.5px solid var(--lp-line2); cursor:pointer; transition:opacity .15s ease; }
.pg-card:last-child{ border-bottom:none; margin-bottom:0; padding-bottom:0; }
.pg-card:hover,.pg-card:active{ opacity:.92; }
.pg-banner{ width:100%; aspect-ratio:16 / 9; border-radius:14px; overflow:hidden; margin-bottom:10px;
  background:var(--lp-violet-soft); color:var(--lp-violet); display:flex; align-items:center; justify-content:center; }
.pg-banner img{ width:100%; height:100%; object-fit:cover; }
.pg-body{ flex:1; min-width:0; }
.pg-name{ font-family:'Hanken Grotesk',sans-serif; font-weight:600; font-size:16px; color:var(--lp-ink); letter-spacing:-.01em; }
.pg-sched{ font-size:12.5px; color:var(--lp-ink-soft); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pg-tags{ display:flex; align-items:center; gap:6px; margin-top:6px; flex-wrap:wrap; }
.pg-tags .lp-tag{ padding:2.5px 8px; font-size:10.5px; }
.pg-tags .lp-tag svg{ display:none; }
.pg-free{ font-size:10.5px; font-weight:600; padding:2.5px 8px; border-radius:7px;
  background:var(--lp-violet-soft); color:#4A5DB0; white-space:nowrap; }
.pg-hero{ aspect-ratio:16 / 10; border-radius:14px; overflow:hidden; margin-bottom:14px;
  background:var(--lp-violet-soft); color:var(--lp-violet); display:flex; align-items:center; justify-content:center; }
.pg-hero img{ width:100%; height:100%; object-fit:cover; }
.pg-inforows{ margin:4px 0 8px; }
.pg-notices{ margin-top:14px; background:var(--lp-line2); border-radius:12px; padding:12px 14px;
  font-size:13px; color:var(--lp-ink-soft); line-height:1.5; }
.pg-notices-h{ display:block; font-size:10px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--lp-ink-soft); font-weight:700; margin-bottom:5px; }
@media (max-width:767px){
  .pg-hero{ aspect-ratio:16 / 9; }
  .panel-content.detail-mode #programsSection{ display:none; }
  .panel-content.detail-mode #programDetailView{ padding-top:4px; }
}

/* ════════ 참가 신청 폼 ════════ */
.pg-form-loading{ padding:24px 4px; font-size:13px; color:var(--lp-ink-soft); }
.pg-form-h{ font-size:18px; font-weight:600; color:var(--lp-ink); letter-spacing:-.01em; margin:8px 0 10px; }
.pg-status{ display:inline-block; font-size:12px; font-weight:600; padding:4px 10px; border-radius:8px; margin-bottom:14px; }
.pg-status-open{ background:var(--lp-violet-soft); color:#4A5DB0; }
.pg-status-closed{ background:#F2F2F7; color:#8A8A8E; }
.pg-form{ display:flex; flex-direction:column; }
.pg-flabel{ font-size:12px; font-weight:600; color:var(--lp-ink-soft); margin:10px 0 4px; }
.pg-finput{ width:100%; box-sizing:border-box; padding:10px 12px; font-size:14px; font-family:'Hanken Grotesk',sans-serif;
  border:0.5px solid var(--lp-line); border-radius:10px; background:#fff; color:var(--lp-ink); outline:none; }
.pg-finput:focus{ border-color:var(--lp-violet); }
.pg-frow{ display:flex; gap:10px; }
.pg-waiver{ margin:14px 0 10px; max-height:150px; overflow-y:auto; white-space:pre-wrap;
  font-size:11.5px; line-height:1.5; color:var(--lp-ink-soft); background:#F7F7F9;
  border:0.5px solid var(--lp-line); border-radius:10px; padding:12px; }
.pg-agree{ display:flex; align-items:flex-start; gap:8px; font-size:12.5px; color:var(--lp-ink); line-height:1.4; margin-bottom:12px; }
.pg-agree input{ margin-top:2px; flex:0 0 auto; }
.pg-msg{ font-size:12.5px; min-height:16px; margin-bottom:8px; }
.pg-msg-err{ color:#C0392E; }
.pg-submit{ width:100%; padding:13px; border:none; border-radius:12px; background:var(--lp-violet); color:#fff;
  font-family:'Hanken Grotesk',sans-serif; font-size:14px; font-weight:600; cursor:pointer; }
.pg-submit:disabled{ opacity:.6; cursor:default; }
.pg-done{ text-align:center; padding:28px 8px; }
.pg-done-i{ color:var(--lp-violet); display:flex; justify-content:center; margin-bottom:12px; }
.pg-done-h{ font-size:18px; font-weight:600; color:var(--lp-ink); margin-bottom:8px; }
.pg-done-b{ font-size:13.5px; color:var(--lp-ink-soft); line-height:1.5; }