/* 집찾기 전용 매물지도 스타일: 다방의 블루/각진 컨트롤과 구분되는 딥그린·웜샌드 톤 */
:root{--blue:#246b57;--ink:#202923;--muted:#737d76;--line:#e4eae5;--bg:#f7f9f7}
.listing-header{height:72px;background:#123f37;border:0;color:#fff;box-shadow:0 5px 18px rgba(17,53,47,.12)}
.listing-header .apt-header-inner{padding:0 clamp(18px,3vw,46px);gap:clamp(18px,2.4vw,38px)}
.listing-header .apt-brand{color:#fff;font-size:24px;letter-spacing:-.07em}
.listing-header .apt-brand-mark{width:39px;height:39px;border-radius:13px 13px 13px 4px;background:#e4a86a;color:#123f37;font-size:21px}
.listing-header .apt-header-search{width:min(29vw,420px);height:42px;border:1px solid rgba(255,255,255,.2);border-radius:12px;background:rgba(255,255,255,.1);box-shadow:none;color:#e8eee9}
.listing-header .apt-header-search input{color:#fff;font-size:13px}
.listing-header .apt-header-search input::placeholder{color:#c4d2cb}
.listing-header .apt-header-search button,.listing-header .apt-header-search>span{color:#e4a86a}
.listing-header .apt-nav{gap:clamp(16px,2vw,30px);font-size:14px;color:#dbe6e0}
.listing-header .apt-nav a{padding:8px 0}
.listing-header .apt-nav a.active,.listing-header .apt-nav a:hover{color:#f0bd83}
.listing-header .apt-header-actions{gap:7px}
.listing-header .apt-outline-btn,.listing-header .apt-primary-btn{border-radius:9px;padding:9px 13px;font-size:12px}
.listing-header .apt-outline-btn{background:transparent;border-color:rgba(255,255,255,.28);color:#fff}
.listing-header .apt-primary-btn{background:#e4a86a;border-color:#e4a86a;color:#173f37;box-shadow:none}
.listing-header .branch-cta{display:none}
.listing-header + .apt-container{--blue:#1c6658;--ink:#183d34;--muted:#7d8a81;--line:#e6e7df;--bg:#f4f3ee}

.listing-app{height:calc(100vh - 72px);min-height:600px;background:#f4f3ee}
.listing-filter{height:70px;flex-basis:70px;padding:12px clamp(16px,2.2vw,32px);gap:9px;background:#f4f3ee;border-bottom:1px solid #e6e3d8}
.listing-filter select{height:42px;min-width:126px;border:1px solid #deded4;border-radius:10px;background:#fff;color:#283a34;font-size:13px}
.listing-filter select:first-child{min-width:145px}
.listing-filter button{height:42px;border-radius:10px;background:#1c6658;color:#fff;font-size:13px;box-shadow:0 4px 10px rgba(28,102,88,.16)}
.listing-filter button:hover{background:#155447}
.listing-filter .filter-reset{height:42px;width:42px;border-radius:10px;color:#42635a;border-color:#deded4;background:#fff}
.listing-body{grid-template-columns:78px clamp(360px,29vw,470px) minmax(0,1fr)}
.listing-category-rail{gap:7px;padding:16px 9px;background:#ebe9df;border-right:1px solid #dedbd0}
.listing-category-rail a{min-height:70px;border-radius:12px;color:#65736c;font-size:11px}
.listing-category-rail a:hover{background:#f7f5ef}
.listing-category-rail a.selected{border-color:#c9d9ce;background:#fff;color:#1c6658;box-shadow:0 4px 12px rgba(33,69,57,.08)}
.listing-category-rail .rail-icon{color:#6b897b;font-size:25px}
.listing-category-rail a.selected .rail-icon{color:#1c6658}
.listing-sidebar{background:#fff;border-color:#e7e5dc}
.sidebar-tabs{flex-basis:62px;padding:0 22px;gap:24px}
.sidebar-tabs button{font-size:14px;color:#89918b}
.sidebar-tabs button.active{color:#1c6658;border-bottom-color:#d79657}
.sidebar-caption{height:48px;flex-basis:48px;padding:0 22px;color:#778078;font-size:12px}
.sidebar-caption b{color:#1c6658;font-size:12px;font-weight:700}
.sidebar-caption a{color:#66756d}
.map-listing-card{min-height:154px;gap:15px;padding:14px 16px;border-color:#eeede7;transition:background .16s,box-shadow .16s}
.map-listing-card:hover,.map-listing-card.selected{background:#f8f7f1;box-shadow:inset 3px 0 #d79657}
.map-listing-image{flex-basis:clamp(125px,9.5vw,164px);height:124px;border-radius:11px;background-color:#ecebe3}
.map-listing-image .apt-heart{right:9px;top:8px;font-size:23px}
.map-listing-image .apt-status{left:8px;bottom:8px;border-radius:999px;background:#e4a86a;color:#153f36;font-size:10px;font-weight:700}
.map-listing-info>strong{color:#183d34;font-size:clamp(15px,1.1vw,19px);letter-spacing:-.03em}
.map-listing-info h2{color:#28332e;font-size:14px}
.map-listing-info p{color:#397b68;font-size:11px}
.map-listing-info small{color:#89918a}
.map-listing-info em{color:#7a817a}
.kakao-map-wrap{background:#e8e9df}
.map-controls{right:20px;top:20px;border:0;border-radius:13px;box-shadow:0 5px 18px rgba(28,49,40,.16)}
.map-controls button{width:42px;height:42px;color:#245448}
.map-controls button+button{border-color:#eeeee8}
.map-controls .map-location{width:auto;min-width:42px;padding:0 13px;gap:7px;border-radius:0 0 13px 13px;color:#174f42;font-size:15px}
.map-controls .map-location span{font-size:11px;font-weight:700}
.map-current-region{left:50%;right:auto;bottom:22px;transform:translateX(-50%);border:1px solid rgba(255,255,255,.5);border-radius:999px;background:#123f37;color:#fff;box-shadow:0 5px 18px rgba(19,54,45,.24);padding:11px 18px;font-size:12px;font-weight:700;white-space:nowrap}
.map-location-status{left:50%;right:auto;bottom:74px;transform:translateX(-50%);max-width:min(90%,520px);border-radius:12px;background:#183f37;color:#fff}
.map-location-status.error{background:#8f4f3e}
.apt-user-location-marker i{background:#1c6658;box-shadow:0 0 0 2px #1c6658,0 2px 7px rgba(23,63,55,.4)}
.apt-user-location-marker span{background:#1c6658;box-shadow:0 2px 5px rgba(23,63,55,.22)}
.map-message{background:linear-gradient(140deg,#e7e8de,#f3efe4);color:#536a5f}
.apt-price-pin{min-width:92px;padding:0 11px 8px;border:1px solid #1b6556;border-radius:11px;background:#fff;color:#193d34;box-shadow:0 5px 14px rgba(20,53,44,.2)}
.apt-price-pin:after{border-color:#1b6556}
.apt-price-pin>span{margin:0 -11px 6px;border-radius:10px 10px 0 0;background:#1b6556;color:#fff;padding:5px 9px 4px;font-size:10px}
.apt-price-pin>strong{font-size:13px}
.apt-price-pin>small{color:#738079}
.apt-price-pin.is-consult{border-color:#d79657}
.apt-price-pin.is-consult>span{background:#d79657;color:#173f37}
.apt-price-pin.is-consult:after{border-color:#d79657}

@media(max-width:1100px){
    .listing-header .apt-header-inner{gap:15px;padding:0 16px}
    .listing-header .apt-header-search{width:24vw;min-width:170px}
    .listing-header .apt-nav{gap:13px;font-size:13px}
    .listing-body{grid-template-columns:68px minmax(340px,40vw) minmax(0,1fr)}
}
@media(max-width:760px){
    .listing-header{height:auto}
    .listing-header .apt-header-inner{min-height:64px;padding:9px 14px;gap:9px}
    .listing-header .apt-brand{font-size:20px}
    .listing-header .apt-brand-mark{width:34px;height:34px;font-size:18px;border-radius:11px 11px 11px 4px}
    .listing-header .apt-header-actions{margin-left:auto}
    .listing-header .apt-outline-btn,.listing-header .apt-primary-btn{padding:8px 11px;font-size:11px}
    .listing-header .apt-header-search{order:3;width:100%;min-width:0;height:40px;border-radius:11px}
    .listing-header .apt-nav{order:4;width:100%;justify-content:space-between;padding:2px 2px 8px;gap:5px;font-size:12px}
    .listing-app{height:auto;min-height:0;background:#f4f3ee}
    .listing-filter{height:auto;flex:0 0 auto;padding:10px 12px;gap:7px}
    .listing-filter select,.listing-filter select:first-child{height:38px;min-width:calc(50% - 6px);flex:1;border-radius:9px;font-size:12px}
    .listing-filter button{height:38px;flex:1;border-radius:9px;font-size:12px}
    .listing-filter .filter-reset{height:38px;width:38px;border-radius:9px}
    .listing-body{display:grid;grid-template-columns:minmax(0,1fr);overflow:visible}
    .kakao-map-wrap{grid-column:1;grid-row:1;min-height:48vh;order:0}
    .listing-category-rail{grid-column:1;grid-row:2;display:flex;flex-direction:row;gap:7px;padding:10px 12px;overflow-x:auto;overflow-y:hidden;border:0;border-bottom:1px solid #e7e4db;background:#f4f3ee;scrollbar-width:none}
    .listing-category-rail::-webkit-scrollbar{display:none}
    .listing-category-rail a{flex:0 0 auto;min-height:36px;padding:0 13px;gap:6px;flex-direction:row;border:1px solid #deded4;border-radius:999px;background:#fff;font-size:11px;white-space:nowrap}
    .listing-category-rail .rail-icon{font-size:17px}
    .listing-sidebar{grid-column:1;grid-row:3;min-height:420px;border:0}
    .sidebar-tabs{flex-basis:52px;padding:0 16px}
    .sidebar-caption{height:42px;flex-basis:42px;padding:0 16px}
    .listing-scroll{max-height:58vh}
    .map-listing-card{min-height:118px;padding:11px 13px;gap:12px}
    .map-listing-image{flex:0 0 102px;height:98px;border-radius:10px}
    .map-listing-info>strong{font-size:15px}
    .map-listing-info h2{font-size:13px}
    .map-listing-info p{font-size:10px;margin-bottom:5px}
    .map-listing-info small,.map-listing-info em{font-size:10px}
    .map-controls{right:12px;top:12px;border-radius:11px}
    .map-controls button{width:38px;height:38px}
    .map-current-region{bottom:14px;padding:9px 14px;font-size:11px}
    .map-location-status{top:auto;bottom:57px;padding:9px 12px;font-size:11px}
}

/* Map-first desktop composition: map on the left, listing desk on the right,
   and property types as a horizontal dock below the map. */
@media(min-width:761px){
    .listing-body{grid-template-columns:minmax(0,1fr) clamp(350px,30vw,440px);grid-template-rows:minmax(0,1fr) 64px}
    .kakao-map-wrap{grid-column:1;grid-row:1;min-height:0;border-right:1px solid #dfe5dc}
    .listing-sidebar{grid-column:2;grid-row:1/3;border-right:0;border-left:1px solid #e7e5dc}
    .listing-category-rail{grid-column:1;grid-row:2;flex-direction:row;align-items:center;gap:9px;padding:8px 16px;overflow-x:auto;overflow-y:hidden;border-top:1px solid #deded4;border-right:1px solid #deded4;background:#f4f3ee;scrollbar-width:thin}
    .listing-category-rail a{flex:0 0 auto;min-height:42px;padding:0 14px;flex-direction:row;gap:7px;border:1px solid #deded4;border-radius:999px;background:#fff;color:#53655c;font-size:12px;white-space:nowrap}
    .listing-category-rail a.selected{border-color:#9bbca9;background:#eaf2ec;color:#174d40;box-shadow:none}
    .listing-category-rail .rail-icon,.listing-category-rail a.selected .rail-icon{font-size:17px;color:#397d67}
    .listing-sidebar{background:#fbfcfa}
    .sidebar-tabs{background:#f4f3ee}
    .listing-scroll{background:#fbfcfa}
    .map-listing-card{background:#fbfcfa}
    .map-listing-card:hover,.map-listing-card.selected{background:#eef4ef;box-shadow:inset 3px 0 #246b57}
}

@media(max-width:760px){
    .listing-body{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;overflow:visible}
    .kakao-map-wrap{grid-column:1;grid-row:1;min-height:44vh;order:0}
    .listing-category-rail{grid-column:1;grid-row:2;display:flex;flex-direction:row;gap:7px;padding:10px 12px;overflow-x:auto;overflow-y:hidden;border:0;border-bottom:1px solid #e7e4db;background:#f4f3ee;scrollbar-width:none}
    .listing-category-rail::-webkit-scrollbar{display:none}
    .listing-category-rail a{flex:0 0 auto;min-height:36px;padding:0 13px;gap:6px;flex-direction:row;border:1px solid #deded4;border-radius:999px;background:#fff;font-size:11px;white-space:nowrap}
    .listing-category-rail a.selected{border-color:#9bbca9;background:#eaf2ec;color:#174d40;box-shadow:none}
    .listing-category-rail .rail-icon,.listing-category-rail a.selected .rail-icon{font-size:17px;color:#397d67}
    .listing-sidebar{grid-column:1;grid-row:3;border:0;min-height:420px}
}
