@charset "utf-8";

/* map */
html, body { overflow-x: hidden; width: 100%; margin: 0; padding: 0; }
.page-title-wrap { display: none; }
.basic-body.page-body { padding: 0; max-width: 100%; margin: 0; width: 100%; }
.basic-body.page-body > .container { max-width: 100%; width: 100%; padding: 0; margin: 0; }
.mg-mapsearch-wrap { display: flex; flex-direction: column; width: 100%; height: calc(100vh - 85px); min-height: 650px; background: var(--bg-white); border-top: 1px solid var(--border); overflow: visible; }
.mg-ms-filterbar { position: relative; top: auto; flex-shrink: 0; z-index: 1000; display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 6px; padding: 0 12px 0 0; min-height: 54px; height: 54px; background: var(--bg-white); border-bottom: 1px solid var(--border-input); box-sizing: border-box; }
.mg-ms-filter-left { display: flex; flex-wrap: nowrap; align-items: center; gap: 5px; height: 100%; flex: 1 1 auto; min-width: 0; }
.mg-ms-search-wrap { position: relative; width: 320px; height: 100%; flex-shrink: 1; min-width: 180px; border-right: 1px solid var(--border-input); background: var(--bg-white); display: flex; align-items: center; padding: 0 10px; box-sizing: border-box; }
.mg-ms-search-wrap input { flex: 1 1 auto; width: 100%; min-width: 0; height: 100%; border: none; outline: none; background: transparent; font-family: 'Pretendard', sans-serif; font-size: 0.95rem; color: var(--text-body); padding: 0 4px; }
.mg-ms-clear-btn { display: none; border: none; background: var(--border); color: var(--text-muted); width: 20px; height: 20px; border-radius: 50%; font-size: 0.85rem; align-items: center; justify-content: center; cursor: pointer; margin-right: 6px; flex-shrink: 0; }
.mg-ms-clear-btn.show { display: inline-flex; }
.mg-ms-search-btn { border: none; background: none; color: var(--text-sub); cursor: pointer; font-size: 1.15rem; padding: 4px; flex-shrink: 0; }
.mg-ms-search-btn:hover { color: var(--primary); }

/* autocomplete */
.mg-ac-dropdown { display: none; position: absolute; top: 54px; left: -1px; right: -1px; z-index: 9999; background: var(--bg-white); border: 1px solid var(--border-strong); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14); max-height: 440px; overflow-y: auto; }
.mg-ac-dropdown.open { display: block; }
.mg-ac-item { padding: 13px 16px; border-bottom: 1px solid var(--border-light); cursor: pointer; transition: background 0.12s; }
.mg-ac-item:hover, .mg-ac-item.active { background: var(--primary-bg); }
.mg-ac-item .ac-title { font-size: 1.1rem; font-weight: 800; color: var(--text-main); margin-bottom: 3px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.mg-ac-item .ac-title .hl { color: var(--green); }
.mg-ac-item .ac-addr { font-size: 0.95rem; color: var(--text-light); }
.mg-ac-item .ac-badge { font-size: 0.9rem; font-weight: 700; padding: 1px 6px; border-radius: 8px; background: var(--primary-soft); color: var(--green); flex-shrink: 0; }
.mg-ac-place-header { padding: 7px 16px; background: var(--bg-gray); border-bottom: 1px solid var(--border-light); font-size: 0.9rem; font-weight: 700; color: var(--text-muted); }
.mg-ac-empty { padding: 20px 16px; text-align: center; font-size: 1rem; color: var(--text-light); }
.mg-ac-move-btn { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--green); background: var(--primary-bg); color: var(--primary-dark); font-size: 0.95rem; font-weight: 700; cursor: pointer; }
.mg-ac-move-btn:hover { background: var(--primary); color: var(--bg-white); }

/* filter */
.mg-dd-wrap { position: relative; display: inline-block; flex-shrink: 0; z-index: 1010; }
.mg-ms-filterbar .mg-dd-btn, .mg-ms-filterbar .mg-quick-chip, .mg-ms-filterbar .mg-sort-btn, .mg-ms-filterbar select { height: 34px; padding: 0 9px; border: 1px solid var(--border-input); border-radius: 4px; background: var(--bg-white); color: var(--dark-soft); font-size: 0.95rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; transition: 0.15s; white-space: nowrap; flex-shrink: 0; }
.mg-dd-btn:hover, .mg-quick-chip:hover, .mg-sort-btn:hover, .mg-dd-btn.has-val { border-color: var(--primary); color: var(--primary); }
.mg-quick-chip.active { background: var(--primary); border-color: var(--primary); color: var(--bg-white); }
.mg-sort-btn.active { background: var(--primary-mid); border-color: var(--primary-mid); color: var(--bg-white); }
.mg-dd-menu { display: none; position: absolute; top: 39px; left: 0; z-index: 9999; min-width: 210px; max-height: 280px; overflow-y: auto; background: var(--bg-white); border: 1px solid var(--border-strong); border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16); padding: 10px; }
.mg-dd-wrap.open { z-index: 9999; }
.mg-dd-wrap.open .mg-dd-menu { display: block; }
.mg-dd-item { display: flex; align-items: center; gap: 7px; padding: 5px 6px; font-size: 1rem; color: var(--text-body); cursor: pointer; border-radius: 4px; margin: 0; font-weight: 500; }
.mg-dd-item:hover { background: var(--bg-gray); }
.mg-ms-filter-right { display: flex; flex-wrap: nowrap; align-items: center; gap: 5px; flex-shrink: 0; margin-left: auto; min-width: 0; }
.mg-ms-iconbtn { width: 34px; height: 34px; border: 1px solid var(--border-input); border-radius: 4px; background: var(--bg-white); color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.15s; flex-shrink: 0; }
.mg-ms-iconbtn:hover { border-color: var(--text-light); color: var(--text-main); }
.mg-ms-iconbtn.active { background: var(--action-bg); border-color: var(--action); color: var(--action); }
.mg-gps-status { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 10px; background: var(--bg-gray); border: 1px solid var(--border); border-radius: 4px; font-size: 0.9rem; color: var(--dark-soft); cursor: pointer; max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; flex-shrink: 0; }

/* split body */
.mg-ms-body { flex: 1 1 auto; min-height: 0; display: flex; width: 100%; overflow: visible; position: relative; z-index: 1; }
.mg-ms-listcol { width: 480px; height: 100%; flex-shrink: 0; display: flex; flex-direction: column; border-right: 1px solid var(--border-strong); background: var(--bg-white); overflow: hidden; }
.mg-ms-list-subbar { position: relative; top: auto; left: auto; right: auto; margin: 0; flex-shrink: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; height: 36px; padding: 0 14px; background: var(--bg-light); border-bottom: 1px solid var(--border-light); font-size: 0.95rem; color: var(--text-muted); }
.mg-ms-list-subbar select { border: 1px solid var(--border-input); border-radius: 4px; padding: 2px 6px; font-size: 0.9rem; color: var(--text-sub); background: var(--bg-white); outline: none; }
.mg-ms-region-banner { display: none; padding: 9px 14px; background: var(--primary-bg); border-bottom: 1px solid var(--primary-border); font-size: 0.95rem; color: var(--primary-dark); font-weight: 700; justify-content: space-between; align-items: center; flex-shrink: 0; }
.mg-ms-region-banner.show { display: flex; }
.mg-ms-scroll { flex: 1 1 auto; min-height: 0; margin: 0; padding: 0; overflow-y: auto; overflow-x: hidden; }
.mg-ms-scroll::-webkit-scrollbar { width: 7px; }
.mg-ms-scroll::-webkit-scrollbar-track { background: var(--bg-gray); border-left: 1px solid var(--border-light); }
.mg-ms-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
.mg-ms-scroll::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }
.mg-ms-mapcol { flex: 1 1 auto; width: 100%; min-width: 0; height: 100%; position: relative; top: auto; background: var(--bg-muted); overflow: hidden; z-index: 1; }

/* card */
.mg-ms-card { display: flex; gap: 14px; padding: 14px 16px; margin: 0; border-bottom: 1px solid var(--border-light); border-left: 3px solid transparent; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.mg-ms-card:hover, .mg-ms-card.active { background: var(--primary-bg); border-left-color: var(--action); }
.mg-ms-thumb { position: relative; width: 150px; height: 150px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--bg-muted); }
.mg-ms-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-ms-closed { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.68); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--bg-white); font-size: 0.9rem; font-weight: 700; padding: 6px; line-height: 1.3; }
.mg-ms-grade { position: absolute; top: 6px; left: 6px; padding: 2px 7px; border-radius: 8px; font-size: 0.85rem; font-weight: 800; }
.mg-ms-grade.premium { background: var(--dark); color: var(--premium); }
.mg-ms-grade.special { background: var(--primary-mid); color: var(--bg-white); }
.mg-ms-new { position: absolute; bottom: 6px; right: 6px; background: var(--info); color: var(--bg-white); font-size: 0.85rem; font-weight: 700; padding: 2px 5px; border-radius: 3px; }
.mg-ms-cmt { position: absolute; bottom: 6px; left: 6px; background: rgba(0, 0, 0, 0.6); color: var(--bg-white); font-size: 0.85rem; padding: 1px 5px; border-radius: 3px; }
.mg-ms-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.mg-ms-toprow { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.mg-ms-badges { display: flex; align-items: center; gap: 5px; font-size: 0.9rem; }
.mg-ms-sticker { background: var(--text-sub); color: var(--bg-white); padding: 1px 6px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; }
.mg-ms-star { color: var(--action); font-weight: 700; }
.mg-ms-cmt-pill { border: 1px solid var(--border-input); background: var(--bg-gray); color: var(--info); font-size: 0.85rem; font-weight: 600; padding: 0 6px; border-radius: 10px; }
.mg-ms-heart { color: var(--border-strong); cursor: pointer; font-size: 1.05rem; padding: 2px; transition: transform 0.12s, color 0.12s; }
.mg-ms-heart:hover { transform: scale(1.15); }
.mg-ms-heart.scrapped { color: var(--action); }
.mg-ms-dist { font-size: 0.9rem; color: var(--text-faint); font-weight: 500; }
.mg-ms-title { font-size: 1.1rem; font-weight: 800; color: var(--text-main); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-ms-addr { font-size: 0.95rem; color: var(--text-light); margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-ms-addr i { color: var(--text-faint); margin-right: 3px; }
.mg-ms-price { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; }
.mg-ms-price .lbl { border: 1px solid var(--action); color: var(--action); border-radius: 10px; padding: 0 6px; font-size: 0.85rem; font-weight: 700; line-height: 1.35; }
.mg-ms-price .val { font-size: 1.1rem; font-weight: 800; color: var(--text-main); }
.mg-ms-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--text-light); margin-bottom: 4px; }
.mg-ms-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.mg-ms-tags span { background: var(--bg-gray); color: var(--text-light); font-size: 0.85rem; padding: 1px 6px; border-radius: 8px; }

/* toast */
.mg-scrap-toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(16px); background: var(--dark); color: var(--bg-white); padding: 10px 20px; border-radius: 24px; font-size: 0.95rem; font-weight: 600; z-index: 99999; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22); }
.mg-scrap-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* floating */
#mgFullMap { width: 100%; height: 100%; }
.mg-map-float-top { position: absolute; top: 5px; left: 5px;/*  transform: translateX(-50%);  */z-index: 25; display: flex; gap: 8px; width:100%; }
.mg-map-bounds-btn { background: var(--bg-white); color: var(--text-body); border: 1px solid var(--border-strong); border-radius: 22px; padding: 7px 16px; font-size: 0.95rem; font-weight: 700; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: 0.15s; }
.mg-map-bounds-btn:hover { background: var(--bg-gray); }
.mg-map-bounds-btn.active { background: var(--green); border-color: var(--green); color: var(--bg-white); }
.mg-map-gps-btn { position: absolute; bottom: 24px; right: 16px; z-index: 25; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--bg-white); color: var(--text-body); font-size: 1.15rem; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mg-map-gps-btn:hover { color: var(--green); border-color: var(--green); }

/* cluster */
.mg-cluster-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--green); color: var(--bg-white); border: 2px solid var(--bg-white); border-radius: 22px; padding: 4px 12px 4px 5px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25); cursor: pointer; font-size: 0.95rem; font-weight: 800; white-space: nowrap; transition: transform 0.15s, background 0.15s; }
.mg-cluster-pill:hover { transform: scale(1.06); background: var(--green-hover); }
.mg-cluster-pill .cnt { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-white); color: var(--green); display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 900; }
.mg-cluster-circle-wrap { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; transition: transform 0.15s; }
.mg-cluster-circle-wrap:hover { transform: scale(1.08); z-index: 99; }
.mg-cluster-circle-wrap .c-num { width: 34px; height: 34px; border-radius: 50%; background: var(--action); color: var(--bg-white); font-size: 1rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 5px rgba(232, 89, 79, 0.28), 0 2px 6px rgba(0, 0, 0, 0.22); }
.mg-cluster-circle-wrap .c-lbl { font-size: 0.95rem; font-weight: 800; color: var(--text-body); text-shadow: -1.2px -1.2px 0 var(--bg-white), 1.2px -1.2px 0 var(--bg-white), -1.2px 1.2px 0 var(--bg-white), 1.2px 1.2px 0 var(--bg-white), 0 1px 4px rgba(255, 255, 255, 0.95); white-space: nowrap; }

/* pin */
.mg-map-pin-card { position: relative; display: flex; align-items: center; gap: 9px; background: var(--bg-white); border: 1.5px solid var(--green); border-radius: 9px; padding: 7px 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22); width: 235px; cursor: pointer; margin-bottom: 44px; transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.16s, box-shadow 0.16s; }
.mg-map-pin-card:after { content: ""; position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); border-width: 7px 6px 0; border-style: solid; border-color: var(--bg-white) transparent transparent; }
.mg-map-pin-card:hover, .mg-map-pin-card.highlighted { border: 2.5px solid var(--action); transform: translateY(-4px) scale(1.06); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34); background: var(--bg-white); }
.mg-map-pin-card .pin-thumb { width: 52px; height: 52px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--bg-muted); display: flex; align-items: center; justify-content: center; }
.mg-map-pin-card .pin-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-map-pin-card .pin-body { flex: 1; min-width: 0; text-align: left; }
.mg-map-pin-card .t { font-size: 0.95rem; font-weight: 800; color: var(--text-main); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-map-pin-card .a { font-size: 0.85rem; color: var(--text-light); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-map-pin-card .p { font-size: 0.9rem; font-weight: 800; color: var(--action); }
.mg-pin-mobile-hint { display: none; position: absolute; top: -22px; right: 6px; background: var(--action); color: var(--bg-white); font-size: 0.85rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); white-space: nowrap; }
.mg-hover-pin-wrap { display: flex; flex-direction: column; align-items: center; pointer-events: none; transform: translateY(-4px); animation: mgPinPop 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
.mg-hover-pin-pill { position: relative; display: inline-flex; align-items: center; gap: 6px; background: var(--bg-white); color: var(--text-main); border: 2.5px solid var(--action); border-radius: 20px; padding: 5px 12px; font-size: 0.95rem; font-weight: 800; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28); white-space: nowrap; }
.mg-hover-pin-pill:after { content: ""; position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); border-width: 7px 6px 0; border-style: solid; border-color: var(--action) transparent transparent; }
.mg-hover-pin-pill .hp-price { color: var(--action); font-weight: 800; }
.mg-hover-pin-dot { width: 13px; height: 13px; margin-top: 7px; border-radius: 50%; background: var(--action); border: 2.5px solid var(--bg-white); box-shadow: 0 0 0 6px rgba(224, 49, 49, 0.35), 0 2px 6px rgba(0, 0, 0, 0.3); }
@keyframes mgPinPop { from { opacity: 0; transform: translateY(4px) scale(0.88); } to { opacity: 1; transform: translateY(-4px) scale(1); } }
.mg-searched-loc-pin { background: var(--dark); color: var(--bg-white); border: 2px solid var(--bg-white); border-radius: 20px; padding: 5px 12px; font-size: 0.9rem; font-weight: 800; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28); margin-bottom: 38px; display: inline-flex; align-items: center; gap: 5px; }
.mg-searched-loc-pin i { color: var(--action); }

/* desktop-lg */
@media (min-width: 992px) {
	html.mg-fullscreen-map, html.mg-fullscreen-map body { height: 100%; overflow: hidden; }
	html.mg-fullscreen-map footer, html.mg-fullscreen-map .footer, html.mg-fullscreen-map #footer, html.mg-fullscreen-map .eb-footer { display: none; }
}

/* desktop-xl */
@media (max-width: 1600px) {
	.mg-ms-search-wrap { width: 280px; min-width: 160px; }
	.mg-ms-filterbar .mg-dd-btn, .mg-ms-filterbar .mg-quick-chip, .mg-ms-filterbar .mg-sort-btn, .mg-ms-filterbar select { padding: 0 8px; font-size: 0.9rem; }
	.mg-gps-status { max-width: 200px; }
}

/* desktop-md */
@media (min-width: 992px) and (max-width: 1380px) {
	.mg-ms-thumb { width: 124px; height: 124px; }
	.mg-ms-search-wrap { width: 220px; min-width: 150px; }
	.mg-ms-listcol { width: 380px; }
	.mg-ms-filterbar .mg-dd-btn, .mg-ms-filterbar .mg-quick-chip, .mg-ms-filterbar .mg-sort-btn, .mg-ms-filterbar select { height: 32px; padding: 0 7px; font-size: 0.85rem; gap: 4px; }
	.mg-gps-status { max-width: 155px; padding: 0 7px; font-size: 0.85rem; }
}

/* mobile */
@media (max-width: 991px) {
	.mg-ms-thumb { width: 100px; height: 100px; }
	.mg-mapsearch-wrap { height: auto; min-height: 0; overflow: visible; }
	.mg-ms-filterbar { height: auto; min-height: 0; max-height: none; flex-wrap: wrap; padding: 8px 12px; }
	.mg-ms-filter-left { flex-wrap: wrap; width: 100%; height: auto; }
	.mg-ms-filter-right { width: 100%; justify-content: flex-end; margin-top: 2px; }
	.mg-gps-status { max-width: calc(100% - 85px); margin-right: auto; }
	.mg-ms-search-wrap { width: 100%; height: 42px; border-right: none; border: 1px solid var(--border-strong); border-radius: 4px; margin-right: 0; }
	.mg-ac-dropdown { top: 42px; }
	.mg-ms-body { flex-direction: column-reverse; overflow: visible; }
	.mg-ms-listcol { width: 100%; height: auto; max-height: none; border-right: none; overflow: visible; }
	.mg-ms-list-subbar { top: auto; }
	.mg-ms-scroll { overflow: visible; }
	.mg-ms-mapcol { width: 100%; height: 350px; flex: none; z-index: 10; }
	.mg-ms-filterbar .mg-dd-btn, .mg-ms-filterbar .mg-quick-chip, .mg-ms-filterbar .mg-sort-btn, .mg-ms-filterbar select { height: 32px; padding: 0 8px; font-size: 0.85rem; }
	.mg-map-pin-card.highlighted .mg-pin-mobile-hint { display: inline-block; }
	.mg-ms-title { font-size: 1rem; }
	.mg-ms-price .val { font-size: 1rem; }
	.mg-ms-search-wrap input { font-size: 0.95rem; }
	
	.mg-map-float-top {}
	.mg-map-bounds-btn{font-size:0.8rem;}
}
