/* 인근 관광정보 레이어 — 초록 계열(--color-success)을 포인트로. parking-layer.css 와 같은 카드 규격 */
.spot-fab.is-on { border-color: var(--color-success); background: var(--color-success); color: #fff; }
.spot-fab.is-loading { opacity: .6; pointer-events: none; }

/* 유형 선택 칩 (레이어가 켜졌을 때만)
   모바일: 검색바·상단 컨트롤 바로 아래 한 줄 (JS 가 --spot-typebar-top 을 계산) / 데스크톱: 지도 왼쪽 아래 */
.spot-typebar {
  position: absolute; z-index: 26;
  top: var(--spot-typebar-top, calc(max(10px, env(safe-area-inset-top)) + 60px + 8px + 46px));
  left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right));
  display: flex; gap: 5px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 2px 0;
}
.spot-typebar::-webkit-scrollbar { display: none; }
.spot-typebar[hidden] { display: none; }
.spot-chip {
  flex: 0 0 auto; font: inherit; font-size: 11.5px; font-weight: 700; line-height: 1; padding: 0 9px; height: 28px;
  border-radius: 999px; border: 1px solid var(--color-border); background: rgba(255,255,255,.96); color: var(--color-text-subtle);
  box-shadow: var(--shadow-sm); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.spot-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #5C5148); opacity: .35; }
.spot-chip[aria-pressed="true"] { border-color: var(--c, var(--color-success)); color: var(--color-text); }
.spot-chip[aria-pressed="true"] i { opacity: 1; }
@media (min-width: 900px) {
  .spot-typebar {
    top: auto !important; right: auto; left: calc(var(--desktop-panel-width) + 16px); bottom: 24px;
    flex-wrap: wrap; overflow: visible; max-width: calc(100% - var(--desktop-panel-width) - 100px);
  }
  .spot-chip { font-size: 12px; height: 32px; padding: 0 11px; }
}

/* 정보 카드 */
.spot-info-card {
  position: relative; width: min(300px, calc(100vw - 32px)); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-lg); font-family: inherit;
}
.spot-info-card::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; transform: translateX(-50%) rotate(45deg); background: var(--color-surface); }
.spot-info-photo { display: block; width: 100%; height: 130px; object-fit: cover; background: var(--color-surface-muted); }
.spot-info-photo--ph { display: grid; place-items: center; }
.spot-info-photo--ph img { width: 80px; height: 80px; object-fit: contain; }
.spot-info-close {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0;
  background: rgba(39,35,31,.55); color: #fff; font-size: 20px; line-height: 1; cursor: pointer;
}
.spot-info-body { padding: 10px 14px 12px; }
.spot-info-type { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--color-text-muted); }
.spot-info-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--spot, var(--color-success)); color: #fff; font-weight: 700; font-size: 11px; }
.spot-info-title { font-size: 16px; font-weight: 800; margin-top: 4px; line-height: 1.3; }
.spot-info-addr { font-size: 13px; color: var(--color-text-subtle); margin-top: 3px; line-height: 1.4; }
.spot-info-tel { display: inline-block; font-size: 13px; color: var(--color-focus); margin-top: 3px; }
.spot-info-overview { margin-top: 8px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--color-surface-muted); font-size: 13px; line-height: 1.55; max-height: 180px; overflow: auto; }
.spot-info-overview[hidden] { display: none; }
.spot-info-home { display: inline-block; margin-top: 6px; color: var(--color-primary); font-weight: 700; }
.spot-info-actions { display: flex; gap: 6px; margin-top: 10px; align-items: center; }
.spot-info-actions button { flex: 1 1 auto; font: inherit; font-size: 13px; font-weight: 700; padding: 8px 10px; min-height: 38px; border-radius: var(--radius-sm); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); cursor: pointer; }
.spot-info-actions .spot-info-route { background: var(--color-success); border-color: var(--color-success); color: #fff; }
.spot-info-actions .fav-btn { flex: 0 0 auto; }
.spot-info-src { margin-top: 8px; font-size: 11px; color: var(--color-text-muted); }

/* 축제 상세 — 인근 관광정보 목록 */
.nearby-section h3 { display: flex; align-items: center; gap: 8px; }
.nearby-sub { font-size: 13px; color: var(--color-text-muted); margin: 0 0 8px; }
.nearby-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.nearby-item {
  display: grid; grid-template-columns: 56px 1fr; gap: 8px; align-items: center; text-align: left;
  padding: 6px; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-surface); font: inherit; cursor: pointer; color: var(--color-text);
}
.nearby-item:hover { border-color: var(--color-success); box-shadow: var(--shadow-sm); }
.nearby-item img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; background: var(--color-surface-muted); }
.nearby-item .ph { width: 56px; height: 56px; border-radius: var(--radius-sm); background: var(--color-surface-muted); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--spot, var(--color-success)); }
.nearby-item b { display: block; font-size: 13px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nearby-item small { display: block; font-size: 11px; color: var(--color-text-muted); margin-top: 2px; }
.nearby-item small i { font-style: normal; color: var(--spot, var(--color-success)); font-weight: 700; }
.nearby-more { margin-top: 8px; }
.nearby-empty { font-size: 13px; color: var(--color-text-muted); }
