/* 달동산 업소 지도 */
.dd-map { --mk-ad: #1b2a4a; --mk-ad2: #e03131; --mk-sp: #f08c00; --mk-bs: #9aa3ad; margin: 8px 0 24px; }
.dd-map__bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.dd-map__bar input, .dd-map__bar select, .dd-map__bar button { height: 40px; border: 1px solid #d0d5dc; border-radius: 8px; padding: 0 12px; font-size: 15px; background: #fff; color: #222; }
.dd-map__q { flex: 1 1 200px; min-width: 0; }
.dd-map__bar select { flex: 0 1 190px; min-width: 0; }
.dd-map__me { cursor: pointer; font-weight: 600; }
.dd-map__me:hover { background: #f3f5f8; }
.dd-map__body { display: grid; grid-template-columns: 1fr 300px; gap: 12px; height: min(72vh, 720px); min-height: 440px; }
.dd-map__canvas { border-radius: 12px; overflow: hidden; border: 1px solid #e2e6eb; min-height: 0; }
.dd-map__side { display: flex; flex-direction: column; border: 1px solid #e2e6eb; border-radius: 12px; overflow: hidden; background: #fff; min-height: 0; }
.dd-map__count { padding: 10px 12px; font-size: 13px; color: #555; border-bottom: 1px solid #eef0f3; background: #fafbfc; }
.dd-map__list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.dd-map__item button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-bottom: 1px solid #f0f2f5; background: none; text-align: left; cursor: pointer; color: #222; font: inherit; }
.dd-map__item button:hover, .dd-map__item button:focus-visible { background: #f5f8ff; }
.dd-map__item i { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--mk-bs); }
.dd-map__item--sponsor i { width: 12px; height: 12px; background: var(--mk-sp); }
.dd-map__item--ad i { width: 14px; height: 14px; background: var(--mk-ad); box-shadow: 0 0 0 2px var(--mk-ad2); }
.dd-map__item--ad button { background: #fff8e6; }
.dd-map__item span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dd-map__item b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-map__item em { font-style: normal; font-size: 12px; color: #777; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-map__item small { font-size: 10px; font-weight: 700; color: #fff; background: var(--mk-ad2); border-radius: 4px; padding: 1px 5px; }
.dd-map__more { padding: 12px; font-size: 13px; color: #777; }
.dd-map__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: #444; }
.dd-map__legend i { display: inline-block; vertical-align: -2px; margin-right: 5px; border-radius: 50%; }
.dd-map__legend .lg-ad { width: 14px; height: 14px; background: var(--mk-ad); box-shadow: 0 0 0 2px var(--mk-ad2); }
.dd-map__legend .lg-sp { width: 12px; height: 12px; background: var(--mk-sp); }
.dd-map__legend .lg-bs { width: 9px; height: 9px; background: var(--mk-bs); }
.dd-map__legend a { margin-left: auto; font-weight: 600; }
.dd-map__note { font-size: 12px; color: #888; margin: 6px 0 0; }

/* 광고 핀 + 미니 카드 */
.dd-pin { display: flex; flex-direction: column; align-items: center; padding: 0; border: 0; background: none; cursor: pointer; z-index: 3; }
.dd-pin:hover, .dd-pin:focus-visible { z-index: 5; }
.dd-pin__card { display: flex; align-items: center; gap: 6px; max-width: 190px; padding: 4px 8px 4px 4px; border-radius: 8px; background: var(--mk-ad); color: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.3); border: 2px solid var(--mk-ad2); }
.dd-pin__img { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 5px; background: #fff center/cover no-repeat; }
.dd-pin__txt { display: flex; flex-direction: column; min-width: 0; text-align: left; line-height: 1.2; }
.dd-pin__txt b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-pin__txt em { font-style: normal; font-size: 10.5px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-pin__head { position: relative; margin-top: 6px; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--mk-ad2); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); font-size: 0; }
.dd-pin__head::after { content: "AD"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transform: rotate(45deg); font-size: 9px; font-weight: 800; color: #fff; }
.dd-map.is-far .dd-pin__card { display: none; }

/* 팝업 */
.dd-map .mapboxgl-popup-content { padding: 12px 14px; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.dd-mpop { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: #333; }
.dd-mpop__badge { align-self: flex-start; font-style: normal; font-size: 10px; font-weight: 800; color: #fff; background: #e03131; border-radius: 4px; padding: 1px 6px; }
.dd-mpop__badge--sp { background: #f08c00; }
.dd-mpop__cat { color: #777; font-size: 12px; }
.dd-mpop__name { font-size: 16px; color: #111; }
.dd-mpop__head { color: #444; }
.dd-mpop__addr { color: #666; font-size: 12px; }
.dd-mpop__btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dd-mpop__btns a { display: inline-block; padding: 5px 9px; border-radius: 6px; background: #f1f3f6; color: #1a4fbf; font-size: 12.5px; font-weight: 600; text-decoration: none; }
.dd-mpop__btns a:hover { background: #e4e9f2; }

.dd-maplink { margin: 0 0 10px; text-align: right; }
.dd-maplink a { display: inline-block; padding: 7px 14px; border-radius: 8px; background: #1b2a4a; color: #fff; font-weight: 600; text-decoration: none; }

@media (max-width: 860px) {
	.dd-map__body { grid-template-columns: 1fr; height: auto; }
	.dd-map__canvas { height: 62vh; min-height: 360px; }
	.dd-map__side { max-height: 420px; }
	.dd-map__bar select { flex: 1 1 140px; }
	.dd-map__legend a { margin-left: 0; }
}

/* 테마 버튼·목록 기본 스타일 덮어쓰기 */
.dd-map .dd-map__list { padding: 0 !important; margin: 0 !important; }
.dd-map .dd-map__item { margin: 0; padding: 0; }
.dd-pin, .dd-pin:hover, .dd-pin:focus, .dd-pin:active { background: none !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; color: inherit; }
.dd-pin:focus-visible .dd-pin__card { outline: 3px solid #4dabf7; outline-offset: 2px; }
.dd-map .dd-map__item button, .dd-map .dd-map__item button:hover, .dd-map .dd-map__item button:focus { box-shadow: none; color: #222; border-radius: 0; }
.dd-map .dd-map__item--ad button { background: #fff8e6; }
.dd-map .dd-map__item button:hover { background: #f5f8ff; }
