@charset "UTF-8";

html,body {margin: 0; padding: 0;}

a {text-decoration: none;}

#map_app_box {width: 100%; overflow: hidden;}

.map_app_head {display: flex; align-items: center; height: 7.9vh;  border-bottom: 1px solid #ddd;}
.map_app_head>div:first-child {flex: 0 0 350px; text-align: center;}
.map_app_head #searchInput {padding: 10px 5px; outline: 0; border: 0;}

.map_app_head .map_app_btn {display: flex; align-items: center; padding: 10px;}
.map_app_head .map_app_btn>div {margin: 0 5px;}
.map_app_head .map_app_btn select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border:0;
  border-bottom: 1px solid #ddd;
  padding: 10px 14px;
  min-width: 150px;

  background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;

  transition: border-color 0.2s, box-shadow 0.2s;
}
.map_app_head .map_app_btn select:focus {
  outline: none;
}

#map_app_btn_mobile {display: none;}

.map_app_head button {margin-left: 5px;}

/*초기화&맵닫기 버튼*/
.map_btn_mobile {display: none !important;}
#mapresetBtn,
#mapexitBtn,
#goToMyLocationBtn,
#goToMyLocationBtnMobile {
  background-color: #f3eaea;
  color: #737373;
  border: none;
  border-radius: 5px;
  padding: 13px 15px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 4px rgba(85, 107, 47, 0.25);
  transition: background-color 0.25s ease, color 0.25s ease;
}
#mapresetBtn:hover,
#mapexitBtn:hover,
#goToMyLocationBtn:hover,
#goToMyLocationBtnMobile:hover,
#map_app_btn_mobile>div:hover {background-color: #ff8383; color: #fff; transition: transform 0.3s ease;}
#mapresetBtn:hover i,
#mapexitBtn:hover i,
#goToMyLocationBtn:hover i,
#goToMyLocationBtnMobile:hover i,
#map_app_btn_mobile>div:hover i { transform: scale(1.2);}

.map_app_container {display: flex;}

#map_app {width: 100%; height: 92vh; }
.markerList_box {flex: 0 0 350px; height: 92vh;}
.markerList_box #markerListTitle {padding: 10px; border-bottom: 1px solid #ddd; color: #f94442; font-weight: 500;}
.markerList_box #sortFilter {padding: 10px; border: 0; outline: 0; border-bottom: 1px solid #ddd; width: 100%;}
.markerList_box #markerList {height: 77vh; overflow-y: auto; scrollbar-width: none;}
/* 스크롤바 숨김 - Chrome, Edge 등 WebKit 계열 */
.markerList_box #markerList::-webkit-scrollbar {
  width: 0;
  height: 0;
}
/* 마우스 호버 시 스크롤바 나타남 */
.markerList_box #markerList:hover::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.markerList_box #markerList:hover::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3); /* 스크롤바 색상 */
  border-radius: 3px;
}
.markerList_box #markerList:hover::-webkit-scrollbar-track {
  background: transparent;
}
/* Firefox 호버 시에도 보여주기 */
.markerList_box #markerList:hover {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

#select_MarkerList {background: #f7f7f7;}
.marker-list-selected-title {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  align-items: center;
  background: #ff2f2f;
  color: #fff;
}
#markerList .marker-list-item,
#select_MarkerList .marker-list-item {display: flex; border-bottom: 1px solid #ddd; padding: 10px; align-items: center;}
#markerList .marker-list-item img,
#select_MarkerList .marker-list-item img {width: 100px; height: 80px; border-radius: 10px;}
#markerList .marker-list-info,
#select_MarkerList .marker-list-info {flex: 1; padding: 0 10px; min-height: 80px;}
#markerList .marker-list-info a,
#select_MarkerList .marker-list-info a {
  font-size: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
#markerList .marker-list-info .marker-list-location,
#select_MarkerList .marker-list-info .marker-list-location {font-size: 13px; color: #777; margin: 3px 0;}
#markerList .marker-list-info .marker-list-location span,
#select_MarkerList .marker-list-info .marker-list-location span {font-size: 16px;}


@media (max-width: 1199px) {
  .map_btn_pc {display: none !important;}
  .map_btn_mobile {display: inline-flex !important;}
  .map_app_head {justify-content: center; padding: 0 10px;}
  .map_app_head .map_logobox {flex-grow: 1; text-align: center;}
  .map_app_head img {width: 100px;}
  .map_app_head #map_app_btn_mobile {flex: 0 0 32px; display: inline-flex;}
  .map_app_head .map_app_btn {
    display: none;
    flex-wrap: wrap;
    position: absolute;
    left: 50%;
    top: 10%;
    transform: translate(-50%, -10%);
    z-index: 2222;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }
  .map_app_head .map_app_btn>div {flex: 0 0 49%; margin: 0;}
  .map_app_head .map_app_btn select {min-width: 100%;}

  #mapresetBtn, #mapexitBtn, #goToMyLocationBtn, #goToMyLocationBtnMobile { width: 32px; height: 32px; justify-content: center;}
  #mapresetBtn span, #mapexitBtn span, #goToMyLocationBtn span, #goToMyLocationBtnMobile span { display: none;}

  .map_app_btn.show {
    display: flex;
    justify-content: space-between;
    background: #fff;
    width: 300px;
  }
  #map_app_btn_mobile>div {
    background-color: #f3eaea;
    color: #737373;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 1px 4px rgba(85, 107, 47, 0.25);
    transition: background-color 0.25s ease, color 0.25s ease;
    width: 32px;
    height: 32px;
  }

  .map_app_container {
    flex-direction: column; /* 세로로 쌓기 */
  }

  .markerList_box #markerList {height: auto;}
  .markerList_box {
    order: 2;
    height: 35vh;
    overflow-y: auto;
    border-top: 1px solid #ddd;
    flex: auto;
  }

  #map_app {
    order: 1;
    height: 55vh;
  }

  .map_app_head select,
  .map_app_head input,
  .map_app_head button {
    width: 100%;
  }

  #markerList {
    height: 100%;
  }

  .leaflet-popup-content {min-width: 100px !important; width: 100px;}
  .mapin_info img {width: 100% !important;}
  .mapin_info div {font-size: 11px !important;}

  .mapin_info h4 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.marker-cluster-small {background-color: rgb(226 140 140 / 60%) !important;}
.marker-cluster-small div {background-color: rgb(255 33 33 / 72%) !important; color: #fff !important;}
.leaflet-popup-content {min-width: 150px; margin: 8px !important;}
.leaflet-container a.leaflet-popup-close-button {
  top: 5px !important;
  right: 5px !important;
  line-height: 23px !important;
  border-radius: 50rem;
  color: #fff !important;
  font-size: 13px !important;
  background: #4f4f4fb5 !important;
}

.mapin_info img {width: 150px; border-radius: 10px 10px 0 0;}
.mapin_info h4 {font-size: 12px; font-weight: 500; color: #323232; max-width: 150px; margin: 5px 0; line-height: 1.2;}
.mapin_info div {font-size: 12px; color: #777;}


.marker-hover {
  filter: drop-shadow(0 0 10px red);
}

.leaflet-right {display: none !important;}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4);
  }
  50% {
    transform: scale(1.5);
    box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
  }
}

.blinking-marker {
  animation: blink 1.2s infinite;
}
.point_km_marker {display: inline-block; background: #fff; padding: 4px 8px; font-size: 12px; border-radius: 4px;}

@keyframes blink {
  0% { opacity: 0.2; }
  50% { opacity: 1; }
  100% { opacity: 0.2; }
}
