/* ===== main.css 잔재 리셋 ===== */
body { display: block !important; scroll-padding-top: 0 !important; }
body #placeListDetail { display: block; flex-direction: unset; justify-content: unset; align-items: unset; color: inherit; padding: 14px 16px 16px; }
body #placeList div { color: inherit; }
body #placeList div:hover { cursor: default; }
 :root {
  /* ===== 이미지 URL ===== */
  --img-search-icon: url("/resources/img/map/search-icon.png");
  --img-current-location: url("/resources/img/map/current-location.svg");
  --img-pin-btn: url("/resources/img/map/pin-btn.png");
  --img-marker-default: url("/resources/img/map/marker-active.png");
  --img-marker-inactive: url("/resources/img/map/marker-inactive.png");
  --img-marker-inactive-smoothmaster: url("/resources/img/map/stella_marker_perfectserve-inactive.png");
  --img-marker-active-perfectserve: url("/resources/img/map/stella_marker_perfectserve-active.png");
  --img-my-location: url("https://navermaps.github.io/maps.js/docs/img/example/sp_pins_spot_v3.png");
  --img-chev-svg: url("/resources/img/map/function-icon.png");
  --map-header-banner-height: 65px;

  /* ===== 레이아웃 ===== */
  --banner-height: 0px;
 }

 /* ===== 아이콘 공통 ===== */
 .icon { display: inline-block; background-size: contain; background-repeat: no-repeat; background-position: center; }
 .icon-search { background-image: var(--img-search-icon); width: 20px; height: 20px; }
 .icon-current-location { background-image: var(--img-current-location); width: 24px; height: 24px; vertical-align: middle; }
 .icon-pin-btn { background-image: var(--img-pin-btn); width: 18px; height: 18px; }
 a { text-decoration: none; }

 /* ===== 문서 스크롤 차단 ===== */
 html, body { height: 100%; overflow: hidden; }

 /* ===== 띠배너 push 보정 ===== */
 .header { top: 0 !important; }

 /* ===== 지도 / 패널 ===== */
 #map { width: 100%; height: calc(100vh - var(--map-header-banner-height, 90px)); }
.drop-wrap {
  top: calc(var(--map-header-banner-height, 90px) + var(--sbn-push-top, 0px));
}
 #currentLocationBtn { position: absolute; bottom: calc(10px + var(--sbn-push-bottom, 0px)); 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; }
 #placePanel { position: absolute; top: calc(var(--map-header-banner-height, 65px) + var(--sbn-push-top, 0px)); left: 0; max-height: none; width: 375px; height: calc(100vh - var(--map-header-banner-height, 65px) - var(--sbn-push-top, 0px) - var(--sbn-push-bottom, 0px)); 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; }
 #tabContainer { background: #D50032; display: flex; align-items: center; padding: 20px 0; padding-top: 5px; }
 #placeList { padding: 0; overflow-y: auto; flex: 1 1 auto; min-height: 0; max-height: none; }
 #placeList .place-item { cursor: pointer; }

 /* ===== 태그 ===== */
 .tag { display: flex; align-items: center; justify-content: space-between; height: 26px;
 background-color: #fff; border: 1px solid #00000014; color: #333; border-radius: 30px; white-space: nowrap; }
 .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-scroller { position: relative; overflow: visible; }
 #tagContainer { display: flex; gap: 8px; overflow-x: auto; padding: 0; white-space: nowrap; scrollbar-width: none; }
 #tagContainer::-webkit-scrollbar { display: none; }
 #tagControls { padding: 15px 0 15px 16px; background-color: #ffffff; border-bottom: 1px solid #00000014; }
 #tagControls .search-row.tag-row { margin: 0; }
 .tag-filter {
 display: flex; align-items: center; justify-content: center; padding: 5px 8px;
 font-size: 12px; background-color: #fff; border: 1px solid #00000014; border-radius: 30px; color: #4C4C4C; cursor: pointer; transition: all 0.2s ease; font-weight: 500;
}
 .tag-filter.active,
 #tagContainer .tag-filter.active { background-color: #D50032; color: #fff; border: 1px solid #D50032; }

 /* ===== 탭 ===== */
 .tab-group { display: flex; width: 330px; margin: auto; border-radius: 30px; background: #f4d9d8; padding: 4px; }
 .tab-button { flex: 1; padding: 4px 6px; font-size: 14px; background-color: #f4d9d8; color: #D50032; border: none; cursor: pointer; transition: background-color 0.3s, color 0.3s; text-align: center; border-radius: 30px; }
 .tab-button.active { background-color: #D50032; color: #fff; border-radius: 30px; }
 .tab-button:not(.active):hover { background-color: #fdf0ef; }

 /* ===== 마커 팝업 ===== */
 .custom-popup { padding: 15px; font-size: 16px; line-height: 1.5; width: 336px; background: #fff; z-index: 1000; box-shadow: 0 0px 8px 8px #00000030; border-radius: 10px; }
 .custom-popup b { font-size: 18px; color: #D50032; font-weight: bold; }
 .custom-popup .address,
 .custom-popup .distance,
 .custom-popup .category { color: #000; font-size: 13px; display: block; }

 /* ===== 리스트 스크롤바 ===== */
 #placeList::-webkit-scrollbar { width: 6px; }
 #placeList::-webkit-scrollbar-track { background: #F4F4F4; }
 #placeList::-webkit-scrollbar-thumb { background: #DBDBDB; }

 /* ===== 로딩 ===== */
 #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 #5ae782; border-top: 4px solid transparent; border-radius: 50%; animation: spin 1s linear infinite; }
 @keyframes spin {
 0% { transform: rotate(0deg); }
 100% { transform: rotate(360deg); }
 }
 .mobile-only-footer { display: none; }

 /* ===== 구 검색영역 (스크립트 앵커 전용, 비노출) ===== */
 #searchControls { display: none !important; padding: 0 11px 0 11px; background-color: #ffffff; box-shadow: 0px 2px 8px -3px #00000030; }
 .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 input[type="text"]::placeholder { color: #000; opacity: 1; line-height: 36px; }
 #searchControls select { height: 48px; width: 100%; padding: 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; }
 #searchControls #searchMapBtn.icon-only-btn { height: 34px; width: 36px; padding: 0; background: #fff; border: 1.5px solid #ccc; border-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; color: #333; display: inline-flex; align-items: center; justify-content: center; }
 #searchControls #searchMapBtn.icon-only-btn:hover { background: #f8f8f8; }
 #searchControls #searchMapBtn.icon-only-btn:focus { outline: none; }
 #searchControls .search-icon { width: 16px; height: 16px; display: block; fill: currentColor; }
 #searchControls #searchMapBtn { background: transparent; color: inherit; padding: 0; }
 #searchControls .input-with-icon { position: relative; width: 100%; }
 #searchControls .input-with-icon input { padding-right: 38px; }
 #searchControls .input-with-icon #searchMapBtn.search-icon-btn { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 28px; height: 28px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; opacity: .8; }
 #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; }
 #autocompleteList { z-index: 1300; }
 #searchControls .search-row { display: flex; margin-bottom: 8px; }
 #searchControls select:focus { outline: none; border-color: #D50032; }
 #searchControls input:focus { outline: none; border-color: #D50032; }
 #searchControls .common-row { margin-bottom: 4px; }

 /* ===== 클러스터 ===== */
 .custom-cluster { width: 42px; height: 42px; border-radius: 50%; background-color: #D50032; color: white; 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); }
 #placeListCount { background-color: #ffffff !important; color: #D50032 !important; padding: 75px 0px; font-weight: 500; }

 /* ===== 자동완성 ===== */
 .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; }

 /* ===== 제보 태그 ===== */
 .report-tag { display: inline-flex; align-items: center; justify-content: center; padding: 3px 3px; font-size: 9px; line-height: 1; font-weight: 400; color: #595959; background-color: #f5f5f5; border: 1.1px solid #d9d9d9; border-radius: 4px; }
 :root { --safe-bot: env(safe-area-inset-bottom, 0px); --chev-svg: var(--img-chev-svg); }
 @supports (height: 100dvh) {
  :root { --vb: 100dvh; }
}

 /* ===== 지역 선택(select) 화살표 ===== */
 #searchControls select { -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: var(--chev-svg); background-repeat: no-repeat; background-position: right 10px center; background-size: 20px; padding-right: calc(10px + var(--chev-size) + 8px); }
 #searchControls select:hover,
 #searchControls select:focus { background-image: var(--img-chev-svg); }
 #searchControls { padding:0 11px; }
 #searchControls input[type="text"]::placeholder { color:#000; opacity:1; }

 /* ===== 큐레이션 드롭다운 ===== */
 #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: #a0161210; }
 #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: #a01612 !important; border-color: #a01612 !important; color: #fff !important; border-radius: 30px !important; }
 #searchControls { padding-left: 10px; padding-right: 10px; }
 #searchControls .input-with-icon input { font-size: 12px !important; font-weight: 400 !important; color: #333 !important; line-height: 34px !important; border-radius: 99px; border-color: #a01612; text-indent: 10px; }
 #searchControls .input-with-icon input::placeholder { font-size: 12px !important; font-weight: 400 !important; color: #333 !important; border-radius: 99px; }
 #placeList .tag,
 #placeList .curation-tag,
 .custom-popup .tag,
 .custom-popup .curation-tag { margin: 0; }

 /* ===== 매장 리스트 태그 ===== */
 #placeList .tag { background-color: #FFEFF3; border-color: #FFEFF3; color: #D50032; cursor: pointer; }

 /* ===== 모바일 ===== */
 @media (max-width: 768px){
 :root { --safe-bot: env(safe-area-inset-bottom, 0px); --banner-height: 0px; --sheet-peek-h: 181px; }

 /* 컨테이너 */
 #body_container { height: calc(100vh - var(--sbn-push-top, 0px) - var(--sbn-push-bottom, 0px)); overflow: hidden; box-sizing: border-box; position: relative; z-index: auto; }

 /* 지도 풀블리드 */
 #map { width: 100%; height: calc(100vh - var(--banner-height, 0px)); position: absolute; top: var(--banner-height, 0px); left: 0; z-index: 1; }

 /* GNB 축소 — 햄버거 플로팅 */
 #header_container { position: absolute; pointer-events: none; }
 #header_container .header-banner,
 #header_container .dis_mo_tab,
 #header_container .menu_button { pointer-events: auto; }
 #menu_container { background: transparent; }

 /* 헤더 오버레이 */
 .header { position: absolute !important; top: 0; left: 0; right: 0; z-index: 1100;
   transition: background-color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease; }
 .header.menu-open { z-index: 1300; pointer-events: auto; }
 .header:not(.menu-open) { background: transparent !important; box-shadow: none !important; border-bottom-color: transparent !important; pointer-events: none; }
 .header:not(.menu-open) .header__logo { opacity: 0; visibility: hidden; pointer-events: none; }
 .header .header__logo { transition: opacity 0.4s ease, visibility 0s linear 0.4s; }
 .header.menu-open .header__logo { opacity: 1; visibility: visible; transition: opacity 0.25s ease, visibility 0s; }
 .header:not(.menu-open) .header__mobile { pointer-events: auto; }
 .header:not(.menu-open) .header__top { justify-content: flex-end !important; padding: 16px !important; }
 .header:not(.menu-open) .header__menu-open {
   display: block !important; pointer-events: auto;
   position: fixed; top: calc(var(--sbn-push-top, 0px) + 16px); right: 16px;
   width: 44px; height: 44px;
   background: #fff; border-radius: 50%;
   box-shadow: 0 2px 8px rgba(0,0,0,0.18);
   padding: 10px; box-sizing: border-box;
   z-index: 1200;
 }
 .header:not(.menu-open) .header__menu-open img { position:relative; top:-2px; width:18px; height:14px; }
 /* 닫기(X) */
 .header.menu-open .header__menu-close {
   display: block !important; pointer-events: auto;
   position: fixed; top: var(--sbn-push-top, 0px); right: 16px;
   width: 44px; height: 40px;
   background: none; border: 0; border-radius: 0; box-shadow: none;
   padding: 8px 10px 8px 10px; box-sizing: border-box;
   z-index: 1400;
 }
 .header.menu-open .header__menu-close img { width: 100%; height: 100%; object-fit: contain; }
 /* 딤 */
 .header__mobile { top: 0 !important; }
 #menu_container .menu_logo { display: none; }
 #menu_container .menu_button { position: fixed; top: calc(var(--banner-height, 0px) + var(--sbn-push-top, 0px) + 16px); right: 16px; width: 44px; height: 44px; background: #fff; border-radius: 50%; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); color: #333; }
 #menu_container .menu_button.is_active { background: transparent; box-shadow: none; }

 /* 하단 시트 */
 #placePanel { position: fixed !important; left: 0; top: auto !important; bottom: calc(var(--bnr-h, 0px) + var(--sbn-push-bottom, 0px)) !important; width: 100%; height: auto; min-height: var(--sheet-peek-h); background: #fff; box-shadow: 0 -1px 6px 0 rgba(0, 0, 0, 0.14); z-index: 1000; display: flex; flex-direction: column; transition: all 0.3s ease; border-radius: 20px 20px 0 0; interpolate-size: allow-keywords; }
 /* 시트 확장 */
 #placePanel.is-expanded { height: calc(100vh - var(--banner-height, 0px) - 56px - var(--bnr-h, 0px)); height: calc(100svh - var(--banner-height, 0px) - 56px - var(--bnr-h, 0px)); }
 #placeList { flex: 1 1 auto; overflow-y: auto; padding: 0; }

 /* 결과 없음 문구 */
 #placeListCount { order: 1; flex: 0 0 70px; display: none; text-align: center; padding: 50px 10px; }

 /* 현재 위치 버튼 */
 #currentLocationBtn { position: fixed; top: auto; bottom: calc(var(--sheet-peek-h, 181px) + 24px + var(--bnr-h, 0px) + var(--sbn-push-bottom, 0px)); 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; }
 #currentLocationBtn img { width: 24px; height: 24px; }

 /* 팝업 */
 .custom-popup { padding: 6px 10px; 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); }
 }
 select:focus { outline: none !important; }
 .form-select:focus { box-shadow: unset !important; }

/* ===== 매장 카드 ===== */
#placeListDetail { color: #333; padding:14px 16px 16px; margin:0; border-bottom:1px solid #00000014 }
.pla-tit { display: flex; justify-content: space-between; align-items: center; padding: 0; margin:0 0 3px; }
.pla-shop-nm { display:block; flex:1 1 auto; min-width:0; color:#333; font-weight:600; letter-spacing:-0.45px; margin:0; padding:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pla-gomap { display: flex; align-items: center; margin: 0; padding: 0; height: 15px; }
.pla-gomap img { width:18px; vertical-align:middle; }
.pla-tags { font-size: 11px; color: #fff; margin: 8px 0 0; padding: 0; display:flex; justify-content:flex-start; align-items:center; flex-wrap:wrap; gap:4px; }
.pla-dis { font-size: 12px; color: #D50032; letter-spacing: -0.35px; margin-bottom: 3px; padding:0; }
.pla-dis span { margin-right: 10px; font-weight:500; }
.pla-cate { font-weight:500; color:#D50032; letter-spacing:-0.35px !important }
.pla-adr { width: auto; font-size: 12px; color:#4C4C4C; margin: 0; padding:0; font-weight:500; letter-spacing:-0.35px !important; line-height:1.4; word-break:keep-all; word-wrap:break-word; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.tag, .curation-tag{font-size: 12px;display: flex;justify-content: center;align-items: center;border-radius: 30px;font-weight: 500;letter-spacing: -0.325px;padding: 5px 8px;}

/* ===== 퍼펙트서브 TOP 뱃지 ===== */
.rank1_title, .rank2_title, .rank3_title { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; margin-left: 24px; padding: 5px 10px; border-radius: 99px; background: rgba(233,224,227,0.43); color: #333; font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: -0.3px; white-space: nowrap; }
.rank_badge { width: 12px; height: 13px; flex-shrink: 0; }
.pla-tit { justify-content: flex-start; }
.pla-tit-wrap { display: flex; align-items: center; min-width: 0; }
.pla-shop-nm { width: auto; flex: 0 1 auto; }

/* ===== 맵 상단 배너 ===== */
.header-banner {position: fixed;top: 0;left: 0;right: 0;z-index: 100;line-height:0;background: #D50032;}
.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: 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 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 0 5px;}
}

/* ===== 상단 태그 스트립 높이 고정 ===== */
#tagControls .tag-row.tag-scroller{height:34px;min-height:34px;max-height:34px;overflow:hidden;}
#tagContainer.tag-strip{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;}
#tagContainer .tag-filter{display:inline-flex;flex:none;align-items:center;box-sizing:border-box;height:auto;padding:5px 8px;border:1px solid #00000014;border-radius:30px;background-color:#fff;color:#4C4C4C;font-size:12px;font-weight:500;}
#tagContainer .tag-filter img{height:auto;}
#tagContainer .tag-static{order:1;}

/* ===== JS 템플릿용 클래스 ===== */

/* 태그 아이콘 */
.tag-icon { margin-right: 2px; }
.tag-icon--list { width: 14px; }
.tag-icon--popup { width: 14px; height: 14px; vertical-align: middle; margin-top: -2px; }

/* 마커 라벨 */
.marker-label { padding: 2px 6px; font-size: 12px; color: #D50032; left: 50%; transform: translateX(-50%); white-space: nowrap; font-weight: bold; text-shadow: 0 1px white, 1px 0 white, -1px 0 white, 0 -1px white; }

/* 팝업 레이아웃 */
.popup-header { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.popup-title-wrap { display: flex; align-items: center; gap: 6px; }
.popup-name-link { align-items: center; text-decoration: underline; color: inherit; width: 280px; word-break: keep-all; overflow-wrap: break-word; line-height: 1; }
.popup-distance { font-size: 12px; color: #D50032; font-weight: 400; }
.popup-report-link { display: none; align-items: center; text-decoration: none; padding-right: 10px; }
.popup-close { position: absolute; top: 5px; right: 10px; font-size: 16px; cursor: pointer; font-weight: bold; color: #D50032; }
.popup-address { font-size: 12px; font-weight: 500; color: #D50032; width: 280px; word-break: keep-all; overflow-wrap: break-word; }
.popup-category { font-size: 12px; color: #D50032; margin: 0; padding: 0; font-weight: 400; }
.popup-tags { font-size: 12px; color: white; margin: 0; padding: 3px 0; display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 4px; }

/* ===== [3.0] 통합 검색줄 + 필터 ===== */

/* 통합 검색줄 */
#searchControlsV3 { padding: 24px 16px 0; background-color: #ffffff; box-shadow: 0px 2px 8px -3px #00000030; }
#searchControlsV3 .search-row { display: flex; align-items: center; }
#searchControlsV3 .input-with-icon { position: relative; width: 100%; }
#searchControlsV3 .input-with-icon input { width: 100%; height: 40px; line-height: normal; padding: 0 16px; font-size: 16px; font-weight: 400; color: #333; background: #F8F8F8; border: 1px solid #000000; border-radius: 99px; }
#searchControlsV3 .input-with-icon input::placeholder { font-size: 16px; color: #9C9C9C; text-align: center; }
#searchControlsV3 .input-with-icon input:focus { outline: none; border-color: #D50032; }
/* 검색 버튼(#searchMapBtn): input 오른쪽에 map-search-icon.png(24×24) 표시. placeholder 가운데 정렬 유지 위해 좌우 패딩 대칭 확보 */
#searchControlsV3 .input-with-icon input { padding: 0 48px; }
#searchControlsV3 .input-with-icon .search-icon-btn { display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 50%; right: 12px; transform: translateY(-50%); width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; z-index: 1; }
#searchControlsV3 .input-with-icon .search-icon-btn .icon-search { display: block; width: 24px; height: 24px; background-image: url("/resources/img/map/map-search-icon.png"); background-size: contain; background-repeat: no-repeat; background-position: center; }

/* 필터 열기 버튼 */
.filter-open-btn { position: relative; flex-shrink: 0; width: 40px; height: 40px; margin-left: 8px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #000000; border: 1px solid #000000; border-radius: 99px; cursor: pointer; }

/* 필터 모달 */
.filter-modal { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; padding: 16px; }
.filter-modal.is-open { display: flex; }
.filter-modal__dim { position: absolute; inset: 0; background: #00000080; cursor: pointer; }
/* 필터 열림 중 쿠키 아이콘 숨김 */
body.filter-open #ot-sdk-btn-floating.ot-floating-button { display: none; }
.filter-modal__card { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 375px; max-height: calc(100vh - 100px); background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); overflow: hidden; }
.filter-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 10px; border-bottom: 1px solid #eee; }
.filter-modal__head strong { font-size: 18px; font-weight: 600; color: #333; line-height: 100%; letter-spacing: -0.45px; }
.filter-modal__close { background: transparent; border: 0; font-size: 16px; color: #666; cursor: pointer; padding: 4px; }
.filter-modal__body { height: 280px; flex: 0 0 auto; overflow-y: auto; padding: 16px; }
.filter-section + .filter-section { margin-top: 24px; }
.filter-section__title { margin: 0 0 10px; font-size: 16px; font-weight: 600; color: #333; line-height: 100%; letter-spacing: -0.45px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chips .tag-filter { flex: none; }
/* 칩 아이콘 */
.chip-icon { width: 14px; height: 14px; object-fit: contain; margin-right: 2px; flex-shrink: 0; }

/* 칩 라벨 */
.tag-label { font-weight: 500; line-height: normal; letter-spacing: -0.3px; }

/* 리스트 헤더 */
.place-list-head { display: flex; align-items: baseline; gap: 6px; padding: 24px 16px 10px; background: #fff; }
.place-list-head__title { font-size: 18px; font-weight: 700; color: #333; letter-spacing: -0.5px; }
.place-list-head__title em { font-style: normal; color: #D50032; }
.place-list-head__sort { font-size: 12px; font-weight: 500; color: #9C9C9C; line-height: 120%; letter-spacing: -0.3px; }
.place-list-head__viewall { display: none; }
.sheet-mapview-btn { display: none; }
.sheet-grab { display: none; }

/* 매장 카드 선택 상태 */
#placeList .place-item.is-selected { background: #FEF7F9; }

/* 큐레이션 태그 숨김 (렌더는 유지) */
#placeList .curation-tag { display: none; }

/* 마커 팝업 숨김 (3.0 미사용) */
.custom-popup { display: none !important; }
.filter-modal__foot { display: flex; gap: 10px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #eee; }
.filter-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s ease; }
.filter-btn--reset { flex: 0 0 auto; padding: 14px 20px; background: #fff; border: 1px solid #33333333; color: #333; }
.filter-btn--reset:hover { background: #e4e4e4; }
.filter-btn--apply { flex: 1; padding: 14px 24px; background: #D50032; color: #fff; font-size: 16px; }
.filter-btn--apply:hover { background: #a01612; }

/* ===== [3.0 모바일] 검색줄 / 태그 스트립 ===== */
@media (max-width: 768px) {
 /* 검색줄 */
 #searchControlsV3 { position: fixed; top: calc(var(--banner-height, 0px) + var(--sbn-push-top, 0px) + 16px); left: 16px; right: 72px; z-index: 1210; padding: 0; background: transparent; box-shadow: none; }
 #searchControlsV3 .search-row { gap: 8px; }
 #searchControlsV3 .input-with-icon input { height: 40px; padding: 0 16px; background: #F8F8F8; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
 .filter-open-btn { order: -1; margin-left: 0; width: 44px; height: 44px; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); color: #333; }

 /* 태그 스트립 */
 #tagControls { position: fixed; top: calc(var(--banner-height, 0px) + var(--sbn-push-top, 0px) + 72px); left: 0; right: 0; z-index: 1200; padding: 0; background: transparent; border-bottom: 0; }
 #tagControls .tag-row.tag-scroller { overflow: visible; }
 #tagContainer.tag-strip { padding: 6px 0 6px 16px; margin: -6px 0; }

 /* 시트 그랩바 */
 .sheet-grab { display: block; flex: 0 0 auto; width: 100%; padding: 10px 0; background: none; border: 0; cursor: pointer; }
 .sheet-grab::before { content: ""; display: block; width: 72px; height: 6px; margin: 0 auto; border-radius: 3px; background: #D9D9D9; }

 /* 피크 상태 */
 body:not(.panel-expanded) #placeList .place-item { display: none; }
 body:not(.panel-expanded) #placeList .place-item.is-selected { display: block; }

 /* 리스트 헤더 */
 .place-list-head { padding: 0 16px 10px; }
 .place-list-head__title { font-size: 16px; }

 /* 리스트 카드 */
 #placeListDetail { padding: 14px 16px 16px; }
 .pla-tit { margin: 0 0 3px; }
 .pla-shop-nm { letter-spacing: -0.4px; line-height: normal; }
 .pla-dis { line-height: normal; margin-bottom: 3px; }
 .pla-adr { line-height: 140%; }

 /* 전체보기 */
 .place-list-head__viewall { display: inline-block; margin-left: auto; padding: 0; background: none; border: 0; font-size: 12px; font-weight: 500; color: #333; letter-spacing: -0.3px; cursor: pointer; }

 /* 필터 바텀시트 */
 .filter-modal { padding: 0; align-items: flex-end; z-index: 10010; }
 .filter-modal__card { max-width: none; border-radius: 12px 12px 0 0; }

 /* 시트 확장(전체보기) 상태 */
 body.panel-expanded .menu_button { display: none !important; }
 body.panel-expanded .header .header__menu-open { display: none !important; pointer-events: none !important; }
 body.panel-expanded #tagControls { display: none; }
 body.panel-expanded .place-list-head__viewall { display: none; }
 body.panel-expanded #searchControlsV3 { position: static; padding: 10px 16px 10px; }
 body.panel-expanded #searchControlsV3 .input-with-icon input { box-shadow: none; }
 body.panel-expanded .filter-open-btn { box-shadow: none; border: 1px solid #a01612; color: #D50032; }

 /* 지도보기 버튼 */
 body.panel-expanded .sheet-mapview-btn { display: inline-flex; align-items: center; justify-content: center; position: absolute; left: 50%; bottom: calc(20px + var(--safe-bot)); transform: translateX(-50%); z-index: 10; padding: 12px 28px; background: #D50032; color: #fff; font-size: 14px; font-weight: 600; border: 0; border-radius: 99px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); cursor: pointer; }

 /* 네이버 줌 컨트롤 위치 */
 #map div[style*="z-index: 100"][style*="top: 0px"][style*="right: 0px"] { top: 118px !important; }

 /* 쿠키 아이콘 위치 */
 #ot-sdk-btn-floating.ot-floating-button { bottom: calc(var(--sheet-peek-h, 181px) + 12px + var(--bnr-h, 0px) + var(--sbn-push-bottom, 0px)) !important; z-index: 1100 !important; }
 body.panel-expanded #ot-sdk-btn-floating.ot-floating-button { display: none; }

 /* 칩 그림자 */
 #tagContainer .tag-filter { box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.20); }
 /* 칩 액티브 */
 #tagContainer .tag-filter.active { background: #D50032; color: #fff; border-color: #D50032; }

 /* 필터 시트 타이포 */
 .filter-modal__body { height: 232px; }
 .filter-modal__head strong { font-size: 16px; }
 .filter-section__title { font-size: 14px; }
 .filter-modal__foot { padding: 12px 10px calc(16px + var(--safe-bot)); }
}

/* ===== 네이버 줌 컨트롤 스킨 ===== */
#map div[style*="z-index: 100"][style*="top: 0px"][style*="right: 0px"] div[style*="border: 1px solid"] { border-color: #ccc !important; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }
#map div[style*="z-index: 100"][style*="top: 0px"][style*="right: 0px"] a { border-color: #ccc !important; }

/* ===== 하단 띠배너 + 프로모 토스트 ===== */

/* 빈 결과 안내 */
#placeListCount .place-empty { display: flex; align-items: center; justify-content: center; gap: 6px; }
#placeListCount .place-empty svg { flex-shrink: 0; }
#placeListCount .place-empty p { margin: 0; font-size: 14px; letter-spacing: -0.35px; }

/* 띠배너 */
.sm-bnr { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; height: 40px; background: #D50032; transition: transform 0.3s ease; }
.sm-bnr.is-hide { transform: translateY(100%); }
.sm-bnr__group { display: flex; align-items: center; gap: 6px; }
.sm-bnr__txtwrap { display: flex; align-items: center; gap: 8px; }
.sm-bnr__symbol { width: 30px; height: 30px; object-fit: contain; }
.sm-bnr__txt { margin: 0; color: #fff; font-size: 16px; font-weight: 500; letter-spacing: -0.4px; white-space: nowrap; }
.sm-bnr__em { color: #fff; font-size: 16px; font-weight: 700; letter-spacing: -0.4px; white-space: nowrap; }
.sm-bnr__link { display: inline-flex; align-items: center; gap: 2px; height: 20px; margin-left: 4px; padding: 0 12px; background: #000; border-radius: 20px; color: #fff; font-size: 14px; font-weight: 500; letter-spacing: -0.35px; }
.sm-bnr__close { position: absolute; right: max(16px, calc((100vw - 1280px) / 2)); top: 5px; width: 30px; height: 30px; padding: 0; background: none; border: 0; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }

/* 토스트 / 딤 */
.sm-toast, .sm-toast-dim { animation: sm-fade-in 0.3s ease; transition: opacity 0.25s ease; }
.sm-toast.is-hide, .sm-toast-dim.is-hide { opacity: 0; }
@keyframes sm-fade-in { from { opacity: 0; } }

/* 토스트 딤 (모바일 전용) */
.sm-toast-dim { display: none; position: fixed; inset: 0; z-index: 1390; background: #00000080; cursor: pointer; }

/* 토스트 */
.sm-toast { position: fixed; right: 80px; bottom: 60px; z-index: 1400; width: 300px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 0 12px rgba(0, 0, 0, 0.1); }
.sm-toast__link { display: block; height: 268px; background: #fff center / cover no-repeat; }
.sm-toast__cta { display: flex; align-items: center; justify-content: space-between; height: 32px; padding: 0 8px; background: #E3E3E3; }
.sm-toast__today { display: inline-flex; align-items: center; gap: 10px; padding: 4px 10px; background: none; border: 0; color: #D50032; font-size: 13px; letter-spacing: -0.325px; white-space: nowrap; cursor: pointer; }
.sm-toast__today img { width: 16px; height: 16px; flex-shrink: 0; }
.sm-toast__close { width: 32px; height: 32px; padding: 0; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: #333; }
@media (max-width: 768px) {
 /* 띠배너 */
 .sm-bnr { justify-content: flex-start; padding-left: 30px; }
 .sm-bnr__txt, .sm-bnr__em { font-size: 14px; letter-spacing: -0.35px; }
 .sm-bnr__link span { display: none; }
 .sm-bnr__link { width: 20px; height: 20px; margin-left: 0; padding: 0; justify-content: center; border-radius: 50%; }
 .sm-bnr__close { position: static; margin: 0; width: auto; height: auto; padding: 11px; }
 /* 토스트 — 중앙 모달 */
 .sm-toast-dim { display: block; }
 .sm-toast { right: auto; bottom: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); }
 /* 배너 있을 때 하단 기준선 */
 body.has-smbnr { --bnr-h: 40px; }
}