/* ── 0. Fonts ────────────────────────────────────────────────
   영문 = Barlow, 한글 = Noto Sans KR. */
@font-face { font-family: 'Barlow'; font-weight: 100; font-style: normal; font-display: swap; src: url('/uploads/assets/fonts/barlow/Barlow-Thin.ttf') format('truetype'); }
@font-face { font-family: 'Barlow'; font-weight: 200; font-style: normal; font-display: swap; src: url('/uploads/assets/fonts/barlow/Barlow-ExtraLight.ttf') format('truetype'); }
@font-face { font-family: 'Barlow'; font-weight: 300; font-style: normal; font-display: swap; src: url('/uploads/assets/fonts/barlow/Barlow-Light.ttf') format('truetype'); }
@font-face { font-family: 'Barlow'; font-weight: 400; font-style: normal; font-display: swap; src: url('/uploads/assets/fonts/barlow/Barlow-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-style: normal; font-display: swap; src: url('/uploads/assets/fonts/barlow/Barlow-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-style: normal; font-display: swap; src: url('/uploads/assets/fonts/barlow/Barlow-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-style: normal; font-display: swap; src: url('/uploads/assets/fonts/barlow/Barlow-Bold.ttf') format('truetype'); }
@font-face { font-family: 'Barlow'; font-weight: 800; font-style: normal; font-display: swap; src: url('/uploads/assets/fonts/barlow/Barlow-ExtraBold.ttf') format('truetype'); }
@font-face { font-family: 'Barlow'; font-weight: 900; font-style: normal; font-display: swap; src: url('/uploads/assets/fonts/barlow/Barlow-Black.ttf') format('truetype'); }

@font-face { font-family: 'Noto Sans KR'; font-weight: 100; font-style: normal; font-display: swap; src: url('/uploads/assets/fonts/notosans_kr/NotoSansKR-Thin.ttf') format('truetype'); }
@font-face { font-family: 'Noto Sans KR'; font-weight: 200; font-style: normal; font-display: swap; src: url('/uploads/assets/fonts/notosans_kr/NotoSansKR-ExtraLight.ttf') format('truetype'); }
@font-face { font-family: 'Noto Sans KR'; font-weight: 300; font-style: normal; font-display: swap; src: url('/uploads/assets/fonts/notosans_kr/NotoSansKR-Light.ttf') format('truetype'); }
@font-face { font-family: 'Noto Sans KR'; font-weight: 400; font-style: normal; font-display: swap; src: url('/uploads/assets/fonts/notosans_kr/NotoSansKR-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Noto Sans KR'; font-weight: 500; font-style: normal; font-display: swap; src: url('/uploads/assets/fonts/notosans_kr/NotoSansKR-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Noto Sans KR'; font-weight: 600; font-style: normal; font-display: swap; src: url('/uploads/assets/fonts/notosans_kr/NotoSansKR-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Noto Sans KR'; font-weight: 700; font-style: normal; font-display: swap; src: url('/uploads/assets/fonts/notosans_kr/NotoSansKR-Bold.ttf') format('truetype'); }
@font-face { font-family: 'Noto Sans KR'; font-weight: 800; font-style: normal; font-display: swap; src: url('/uploads/assets/fonts/notosans_kr/NotoSansKR-ExtraBold.ttf') format('truetype'); }
@font-face { font-family: 'Noto Sans KR'; font-weight: 900; font-style: normal; font-display: swap; src: url('/uploads/assets/fonts/notosans_kr/NotoSansKR-Black.ttf') format('truetype'); }

/* ── 1. Tokens ───────────────────────────────────────────────── */
:root {
  --safe-bot: env(safe-area-inset-bottom, 0px);
  --chev-svg: url("/uploads/assets/img/map/function-icon.png");
  --font-nutrl: 'Barlow', 'Noto Sans KR', sans-serif; /* 영문 Barlow + 한글 Noto Sans KR 폴백 */
}
@supports (height: 100dvh) {
  :root { --vb: 100dvh; }
}

/* ── 2. Layout ───────────────────────────────────────────────── */
body:has(#map) #conveythis-wrapper { display: none !important; }
#body_container:has(#map) { position: relative; max-height: calc(100vh - 90px); overflow: hidden; }
#map { width: 100%; height: calc(100vh - 90px); }
/* 네이버가 마커 감싼 div에 박는 inline cursor:inherit → pointer로 덮어씀(!important 필수, inline 이김) */
#map div:has(> img[src*="/uploads/assets/img/map/"]) { cursor: pointer !important; }

/* map 페이지: 사이트 공통 푸터 숨김(지도 전용 풀스크린 레이아웃) */
body:has(#map) footer { display: none; }

#body_container { font-family: var(--font-nutrl); }
/* 네이버 InfoWindow 팝업은 별도 pane 에 렌더될 수 있어 명시 지정 */
.custom-popup { font-family: var(--font-nutrl); }

.site-header { display: none; }
.map-header { display: flex; align-items: center; height: 90px; padding: 0 6.5dvw; background: linear-gradient(to right, #fbfbfb 0%, #fbfbfb 50%, #fff588 79%, #ffec1a 100%); box-sizing: border-box; }
.map-header .map-logo { display:flex; align-items:center; justify-content:space-between; width:100%; margin-bottom:0; }
.map-header .map-logo .left { display:flex; align-items:center; justify-content:space-between; gap:23px; }
.map-header .map-logo .left .en,
.map-header .map-logo .left .ko { height:28px; }
.map-header .map-logo .right img{ height:38px; }

#placePanel { position: absolute; top: 20px; left: 20px; width: 350px; height: auto; max-height: calc(100vh - 180px); background: #fff; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); z-index: 100; display: flex; flex-direction: column; transition: all 0.3s ease; border-radius:12px 12px 0 0; }
#placePanel.collapsed { height: 122px; overflow: hidden; }

/* ── 3. Panel header ─────────────────────────────────────────── */
#panelHeader { display: flex; align-items: center; justify-content: space-between; gap:6px; height: 60px; padding: 14px 17px; background-color: #fbfbfb; border-radius:12px 12px 0 0; }
.panel-title { width: 100%; box-sizing: border-box; text-align: center; font-size: 20px; font-weight: 500; color: #2c2c2c; }
.panel-header-right { display: flex; align-items: center; gap: 6px; }
.panel-header-icon { display: inline-flex; align-items: center; justify-content: center; } 
.panel-header-icon img { display: block; width: 80px; height: auto; }
#panelHeader .toggle-btn { position: static; background: transparent; border: none; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.toggle-btn { position: static !important; box-shadow: none !important; left: auto !important; top: auto !important; bottom: auto !important; }
.toggle-btn img { width: 28px; height: 28px; transition: transform .25s ease; transform: rotate(0deg); }
#placePanel.collapsed .toggle-btn img { transform: rotate(180deg); }
.toggle-btn .chev { position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; transition: opacity .25s ease, transform .25s ease; }
.toggle-btn .chev-up { opacity: 0; transform: translateY(4px); }
.toggle-btn .chev-down { opacity: 1; transform: translateY(0); }

/* ── 4. Tab / Tag controls ───────────────────────────────────── */
#tabContainer { background: #fbfbfb; display: flex; align-items: center; padding: 5px 0 20px; }
.tab-group { display: flex; width: 100%; margin: 0 16px; border-radius: 30px; background: rgba(255, 255, 255, 0.6); border:1px solid #000; padding: 4px; }
.tab-button { flex: 1; padding: 3.5px 6px; font-size: 14px; font-weight: 500; background-color: transparent; color: #000; border: none; cursor: pointer; transition: background-color 0.3s, color 0.3s; text-align: center; border-radius: 30px; }
.tab-button.active { background-color: #000; color: #fff; font-weight: 600; border-radius: 30px; }

#tagControls { background-color: #ffffff; border-bottom: 1px solid #efefef}
#tagControls:has(#searchControls:is([style*="display: block"])) { padding: 12px 16px; }
#tagControls .search-row.tag-row { margin: 0; }
#tagControls .search-row.tag-row:has(.tag-filter) { padding:12px 15px; }
#tagControls:has(#searchControls:is([style*="display: block"])) .search-row.tag-row:has(.tag-filter) { padding:0; margin-bottom:8px; }

#tagContainer { display: flex; gap: 8px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; flex-wrap: wrap; }
#tagContainer::-webkit-scrollbar { display: none; }

.tag-filter { display: flex; align-items: center; justify-content: center; padding: 4px 10px; font-size: 12px; background-color: rgba(235,235,235,0.4); border-radius: 30px; color: #4C4C4C; cursor: pointer; transition: all 0.2s ease; font-weight: 500; }


#tagContainer.tag-strip { display: flex; align-items: center; gap: 6px; overflow-x: auto; overflow-y: hidden; white-space: nowrap; }
#tagContainer .tag-filter { display: inline-flex; align-items: center; box-sizing: border-box; gap:2px; height: 26px; padding: 0 8px; border: 1px solid rgba(0, 0, 0, 0.06); border-radius: 12px; }
#tagContainer .tag-filter.active { border-color: #F0E680; background-color:#FFF588;  }
#tagContainer .tag-filter img { height: 16px; }

/* 태그 스크롤러 화살표 (PC hover 시만 표시) */
.tag-scroller { position: relative; overflow: visible; }
.tag-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border: none; border-radius: 50%; background: #b8c4ef; color: #fff; font-size: 14px; display: none; justify-content: center; align-items: center; cursor: pointer; user-select: none; z-index: 5; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); line-height: 1; padding: 0; }
.nav-prev { left: -6px; }
.nav-next { right: -6px; }
.tag-nav:disabled { opacity: .35; cursor: default; box-shadow: none; }
.tag-scroller:hover .tag-nav { display: flex; }

/* 큐레이션 드롭다운 (Bootstrap dropdown override) */
#curationSelect,
#curationSelect:hover,
#curationSelect:focus,
#curationSelect:active,
#curationSelect:focus-visible,
.dropdown.show #curationSelect { background-color: #fff !important; color: #333 !important; }
#curationSelect.dropdown-toggle::after { display: none; }
#curationSelect { -webkit-appearance: none; -moz-appearance: none; appearance: none; height: 48px; padding: 0 calc(10px + var(--chev-size) + 8px) 0 12px; border: 0; border-bottom: 1px solid #E7E7E7; font-size: 12px; line-height: 34px; text-align: left; background-image: var(--chev-svg) !important; background-repeat: no-repeat; background-position: right 10px center; background-size: 20px; }
#curationSelect:hover,
#curationSelect:focus { background-color: #10256810; }
#curationSelect .label { font-size: 12px; font-weight: 300; color: #000; }

#curationDropdownMenu[data-bs-popper] { margin-top: 0 !important; }
#curationDropdownMenu { --bs-dropdown-spacer: 0; display: flex; transform: translate(0, 65%) !important; opacity: 0; pointer-events: none; transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .32s cubic-bezier(.2,.8,.2,1); will-change: transform, opacity; padding: 20px 10px !important; border-radius: 0 !important; overflow: auto; box-shadow: 0px 0px 10px 2px #0000004f; border: 0; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 8px; }
#curationDropdownMenu.show { transform: translateY(0); opacity: 1; pointer-events: auto; transition-delay: .15s; }
#curationDropdownMenu.animating-out { transform: translateY(-8px); opacity: 0; pointer-events: none; transition-delay: .15s; }
#curationDropdownMenu .cur-tag { font-size: 12px !important; line-height: 1 !important; display: inline-flex; padding: 4px 8px !important; background: #F0F0F0 !important; color: #4c4c4c !important; border-radius: 30px !important; border-color: #F0F0F0 !important; }
#curationDropdownMenu .cur-tag.btn-success { background: #102568 !important; border-color: #102568 !important; color: #fff !important; border-radius: 30px !important; }

/* ── 5. Search controls ──────────────────────────────────────── */
#searchControls { display: none; background-color: #ffffff; box-shadow: 0px 2px 8px -3px #00000030; border-radius:50%; }
#searchControls .search-row { display: flex; }
#searchControls .common-row { margin-bottom: 4px; }

#searchControls input[type="text"]::placeholder { color: #000; opacity: 1; }
.search-row input[type="text"] { height: 34px; line-height: 34px; padding: 0 10px; color: #333; background-color: #ffffff; border: 1.5px solid #ccc; border-radius: 4px; font-size: 12px; width: 100%; box-sizing: border-box; margin-bottom: 0; display: flex; align-items: center; }
#searchControls select { -webkit-appearance: none; -moz-appearance: none; appearance: none; height: 48px; width: 100%; padding: 0 calc(10px + var(--chev-size) + 8px) 0 0; font-size: 12px; border: 0; border-bottom: 1px solid #E7E7E7; border-radius: 0; box-sizing: border-box; line-height: normal; display: flex; align-items: center; background-color: #fff; color: #333; background-image: var(--chev-svg); background-repeat: no-repeat; background-position: right 10px center; background-size: 20px; }
#searchControls select:hover,
#searchControls select:focus { background-image: var(--chev-svg); }
#searchControls select:focus,
#searchControls input:focus { outline: none; border-color: #102568; }

#searchControls .input-with-icon { position: relative; width: 100%; }
#searchControls .input-with-icon input { padding-right: 38px; height: 40px; font-size: 12px !important; font-weight: 400 !important; color: #333 !important; line-height: 40px !important; border-radius: 99px; border-color: #3c3c3c; background-color: #f4f4f4; text-indent: 10px; }
#searchControls .input-with-icon input::placeholder { font-size: 14px !important; font-weight: 400 !important; color: #888 !important; border-radius: 99px; }
#searchControls .input-with-icon #searchMapBtn.search-icon-btn { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); width: 24px; height: 24px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
#searchControls .input-with-icon #searchMapBtn.search-icon-btn svg { width: 18px; height: 18px; fill: #444; }
#searchControls .input-with-icon #searchMapBtn.search-icon-btn:hover { opacity: 1; }
#searchControls .input-with-icon #searchMapBtn.search-icon-btn:focus { outline: none; }
#searchControls #searchMapBtn { background: transparent; color: inherit; padding: 0; border: 0; }
#searchControls .search-icon { width: 16px; height: 16px; display: block; fill: currentColor; }

/* ── 6. Place list ───────────────────────────────────────────── */
#placeList { padding: 0; overflow-y: auto; max-height: calc(100vh - 180px); }
#placeList div { cursor: pointer; color: #2b2b2b; }
#placeList::-webkit-scrollbar { width: 6px; }
#placeList::-webkit-scrollbar-track { background: #efefef; }
#placeList::-webkit-scrollbar-thumb { background: #3c3c3c; }
#placeListCount { background-color: #ffffff !important; color: #102568 !important; padding: 75px 0; }

#placeListDetail { color: #fff; padding: 20px 16px; margin: 0; border-bottom: 1px solid #efefef; }
.pla-tit { display: flex; justify-content: space-between; align-items: center; padding: 0; margin: 0; }
.pla-shop-nm { font-size: 16px; font-weight: bold; margin: 0; padding: 0; overflow-wrap: break-word; width: 220px; word-break: keep-all; }
.pla-gomap { display: flex; align-items: center; margin: 0; padding: 0; height: 15px; }
.pla-gomap img { width: 24px; vertical-align: middle; }
.pla-tags { font-size: 11px; color: #fff; margin: 8px 0; padding: 0; display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 4px; }
.pla-dis { display:flex; align-items: center; gap:10px; font-size: 12px; margin-bottom: 2px; padding: 0; }
.pla-dis span { font-weight: 500; }
.pla-cate { font-weight: 500; color: #B3A512; letter-spacing: -.8px; }
.pla-adr { font-size: 12px; margin: 0; padding: 0; font-weight: 500; letter-spacing: -.8px; width: 260px; word-break: keep-all; word-wrap: break-word; }

/* ── 7. Tags & popups ────────────────────────────────────────── */
.tag { display: flex; align-items: center; justify-content: space-between; padding: 4px 14px; background-color: rgba(235, 235, 235, 0.6); color: #4c4c4c; border:1px solid rgba(0,0,0,0.06); border-radius: 30px; font-size: 11px; font-weight: 400; white-space: nowrap; line-height: 1.1; }
.tag span { display: inline-flex; align-items: center; }
.curation-tag { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px; background-color: #c2a471; color: #ffffff; border-radius: 99px; font-size: 11px; line-height: 1.2; }
.tag,
.curation-tag { font-size: 11px; display: flex; justify-content: center; align-items: center; border-radius: 30px; font-weight: 400; padding: 5px 15px; max-height: 22px; }

#placeList .tag,
#placeList .curation-tag,
.custom-popup .tag,
.custom-popup .curation-tag { margin: 0; }

/* 리스트 안 태그 → 상단 태그 필터 칩과 동일한 디자인 */
#placeList .tag { height: 26px; max-height: none; padding: 0 8px; border: 1px solid rgba(0, 0, 0, 0.06); border-radius: 12px; background-color: rgba(235, 235, 235, 0.6); color: #4C4C4C; font-weight: 500; font-size: 12px; }
#placeList .tag span { transform: none; }

.custom-popup { padding: 26px 16px 23px; font-size: 16px; line-height: 1.5; width: 336px; background: #fff; z-index: 1000; box-shadow: 0 0 6px 0px rgba(0,0,0,0.25); border-radius: 10px; }
.custom-popup b { font-size: 16px; color: #2B2B2B; font-weight: bold; }
.custom-popup .address,
.custom-popup .distance,
.custom-popup .category { color: #000; font-size: 13px; display: block; }

.report-tag { display: inline-flex; align-items: center; justify-content: center; padding: 3px; font-size: 9px; line-height: 1; font-weight: 400; color: #595959; background-color: #f5f5f5; border: 1.1px solid #d9d9d9; border-radius: 4px; }

.autocomplete-items { position: absolute; top: 100%; left: 0; right: 0; z-index: 999; max-height: 180px; overflow-y: auto; background-color: white; border-top: none; font-size: 13px; color: black; }
.autocomplete-items div { padding: 8px; cursor: pointer; border-bottom: 1px solid #eee; font-size: 13px; }
.autocomplete-items div:hover { background-color: #f0f0f0; }
#autocompleteList { z-index: 1001; }

/* ── 8. Map elements ─────────────────────────────────────────── */
.custom-cluster { width: 42px; height: 42px; border-radius: 50%; background-color: #ffec1a; color: #000; font-size: 14px; font-weight: bold; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 6px rgba(0, 0, 0, 0.3); transition: transform 0.2s ease; }
.custom-cluster:hover { transform: scale(1.1); }

#currentLocationBtn { position: absolute; bottom: 10px; right: 10px; z-index: 1000; background-color: #fff; border: 1px solid #ccc; border-radius: 8px; padding: 8px 12px; font-size: 14px; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); display: flex; align-items: center; }

#loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: none; justify-content: center; align-items: center; z-index: 2000; }
#loading-icon { width: 40px; height: 40px; border: 4px solid #5a78e7; border-top: 4px solid transparent; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

select:focus { outline: none !important; }
.form-select:focus { box-shadow: unset !important; }

.mobile-only-footer { display: none; }

/* ── 9. Header banner (map 전용) ─────────────────────────────── */
.header-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 100; line-height: 0; background: #102568; }
.header-banner .banner-wrap { margin: 0 auto; display: block; width: 100%; position: relative; line-height: 0; }
.header-banner picture { display: block; width: 100%; height: auto; }
.header-banner img { display: block; width: 70%; max-width: 100%; margin: 0 auto; height: auto; object-fit: contain; object-position: center center; image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges; backface-visibility: hidden; transform: translateZ(0); }
.header-banner .banner-close-btn { position: absolute; top: 30px; right: 20px; transform: translateY(-50%); width: 24px; height: 24px; border: 0; background: rgba(0, 0, 0, 0.5); border-radius: 50%; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 101; }

@media (max-width: 1024px) {
  #body_container:has(#map) { max-height: calc(100vh - 62px); }
  #map { height: calc(100vh - 62px); }
  .map-header { height: 62px; }
}

/* ── 10. Mobile (max-width: 768px) ───────────────────────────── */
@media (max-width: 768px) {
  #body_container { height: 100vh; overflow: hidden; box-sizing: border-box; position: relative; padding-top: 0; }

  /* map 헤더: 모바일에서도 상단 고정으로 표시(높이 62px, 밝은 회색 유지) */
  .map-header { position: fixed; top: 0; left: 0; width: 100%; height: 53px; padding: 0 5dvw; z-index: 1500; }
  .map-header .map-logo .left { gap:10px; }
  .map-header .map-logo .left .en { height:19px; }
  .map-header .map-logo .left .ko { height:18px; }
  .map-header .map-logo .right img{ height:20px; }

  /* 지도 — 고정 헤더(62px) 아래에 배치 */
  #map { width: 100%; height: calc(100vh - 53px); position: absolute; top: 53px; left: 0; z-index: 1; }

  /* 상단 헤더 */
  #panelHeader { position: fixed; top: 0; left: 0; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 28px 10px; box-sizing: border-box; z-index: 2000; height:56px; }
  .panel-title { color: #2c2c2c; font-size: 18px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #panelHeader .toggle-btn { width: 32px; height: 32px; background: transparent; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; }
  .toggle-btn img { width: 28px; height: 28px; }

  /* 패널 — 화면 하단 고정 */
  #placePanel { overflow: hidden; position: fixed !important; left: 0; top: auto !important; bottom: 0 !important; width: 100%; height: clamp(96px, 50vh, calc(100vh - var(--map-header-banner-height, 62px) - var(--safe-bot))); background: #fff; box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3); z-index: 1000; display: flex; flex-direction: column; justify-content: flex-end; transition: all 0.3s ease; border-radius: 10px; }
  #placePanel.expanded { height: calc(var(--vb) - var(--map-header-banner-height, 62px) - var(--safe-bot)); max-height: calc(var(--vb) - var(--map-header-banner-height, 62px) - var(--safe-bot)); }
  #placePanel.collapsed { top: auto !important; height: 110px !important; min-height: 117px !important; bottom: 0 !important; overflow: hidden; background: #fff; }
  #placePanel.collapsed #tagControls,
  #placePanel.collapsed #searchControls,
  #placePanel.collapsed #placeList,
  #placePanel.collapsed #placeListCount { display: none !important; }
  #tagControls .search-row.tag-row:has(.tag-filter) { padding:0; }

  /* 패널 내부 순서: 리스트 > 탭 > 헤더 */
  #tagControls,
  #searchControls { order: 0; flex-shrink: 0; }
  #tagControls{padding: 24px 16px 12px; }
  #tagControls:has(#searchControls:is([style*="display: block"])) { padding: 24px 16px 12px; }
  #placeList { order: 1; flex: 1 1 auto; overflow-y: auto; padding:0; }
  #placeListCount { order: 1; flex: 0 0 70px; display: none; text-align: center; padding: 50px 10px; }
  #tabContainer { order: 2; position: relative; display: flex; align-items: center; width: 100%; box-sizing: border-box; z-index: 1001; padding: 16px 16px 8px; border-top-left-radius: 10px; border-top-right-radius: 10px; }
  #placePanel #panelHeader { order: 3; position: relative; display: flex; align-items: center; justify-content: center; border-bottom: none; z-index: 1002; border-radius:0; }
  #placePanel .panel-title { width: 100%; }
  #placePanel #panelHeader .toggle-btn { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; background: transparent; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 1003; }

  /* 탭 버튼 */
  .tab-group { display: flex; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.6); margin:0; box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.05); border-radius: 30px; padding: 4px; box-sizing: border-box; }
  .tab-button { flex: 1; padding: 6px 0; font-weight: 500; background-color: transparent; color: #000; border: none; cursor: pointer; transition: background-color 0.3s, color 0.3s; text-align: center; line-height: 17px; border-radius: 30px; }
  .tab-button.active { background-color: #000; color: #fff; font-weight: 600; border-radius: 30px; }

  /* 현재 위치 버튼 */
  #currentLocationBtn { position: fixed; bottom:auto; top: 147px; right: 8px; padding: 5px; width: 35px; height: 35px; z-index: 900; display: flex; align-items: center; justify-content: center; background-color: #fff; border: 1px solid #ccc; border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); cursor: pointer; transform: translateY(0); }
  #currentLocationBtn img { width: 24px; height: 24px; }

  /* 푸터 */
  .mobile-only-footer { display: block; position: fixed; bottom: 0; left: 0; width: 100%; height: 60px; padding-bottom: var(--safe-bot); background-color: white; box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1); z-index: 999; }

  /* 팝업 */
  .custom-popup { padding: 18px 16px; font-size: 16px; line-height: 1.5; min-width: 300px; max-width: 400px; background: white; z-index: 1010; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); }

  /* 태그 내비 숨김 */
  .tag-nav { display: none !important; }

  /* 마지막 줄 여백 제거 */
  #searchControls .common-row { margin-bottom: 0; }
}

/* ── 11. Header banner responsive ────────────────────────────── */
@media (max-width: 1800px) { .header-banner img { width: 80%; } }
@media (max-width: 1600px) { .header-banner img { width: 90%; } }
@media (max-width: 1400px) { .header-banner img { width: 100%; } }
@media (max-width: 1024px) {
  .header-banner .banner-wrap { margin: 0 auto; display: block; width: 100%; position: relative; }
  .header-banner picture { display: block; width: 100%; height: auto; line-height: 0; }
  .header-banner .banner-close-btn { right: 10px; }
}
@media (max-width: 768px) { .header-banner img { width: 80%; } }
@media (max-width: 767px) {
  .header-banner .banner-wrap { max-width: 100%; padding: 0 10px; }
  .header-banner picture { width: 100%; margin: 0; }
  .header-banner .banner-close-btn { right: 8px; top: 18px; width: 18px; height: 18px; }
  .header-banner .banner-close-btn svg { width: 8px; height: 8px; }
}
@media (max-width: 600px) { .header-banner img { width: 90%; } }
@media (max-width: 500px) { .header-banner img { width: 100%; } }
@media (max-width: 390px) { .header-banner .banner-wrap { padding: 0 5px; } }

/* 마커 호버 시 손가락 커서 — 마커 래퍼(title 속성 보유)에 커서 미지정 시
  지도 드래그 커서(손바닥)가 상속되는 문제 보정 */
#map div[title] { cursor: pointer !important; }

/* ── 이벤트 팝업 ── */
.event-popup { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; }
.event-popup.is-open { display: flex; }
.event-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); cursor: pointer; }
.event-box { position: relative; z-index: 1; width: 500px; max-width: calc(100vw - 32px); }
.event-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.event-today { background: none; border: 0; padding: 4px 2px; font-size: 16px; color: #fff; cursor: pointer; }
.event-close { display:inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: none; border: 0; font-size: 20px; line-height: 1; color: #fff; cursor: pointer; }
.event-content{position:relative; overflow:hidden; border-radius:12px;}
.event-link { display:block; position:absolute; bottom:28px; left:50%; transform:translateX(-50%); width:374px; height:56px; border-radius:31px; }
.event-img { display: block; width: 500px; height: 500px; max-width: 100%; object-fit: cover; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); }

@media (max-width: 768px) {
  .event-box { width: 300px; }
  .event-top { margin-bottom: 1px; }
  .event-today { padding: 4px 8px; font-size: 14px; }
  .event-link { bottom:14px; width:243px; height:37px; }
  .event-img { width: 300px; height: 300px; }
}