#daumMapWraps {
  width: 100% !important;
  max-width: 100%;
  overflow: visible;
  position: relative;
  height: 935px;
  opacity: 0;
  transform: translateY(30px);
  visibility: hidden;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

#daumMapWraps.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

@media (min-width: 960px) {
  .root_daum_roughmap .wrap_map {
    height: 100% !important;
  }
}

#daumRoughmapContainer1774426023378 {
  width: 130% !important;
  max-width: 130%;
  position: absolute;
  top: 0;
  left: -30%;
  height: 100%;
}

.root_daum_roughmap,
.root_daum_roughmap_landing {
  width: 100% !important;
  height: 100% !important;
}

.wrap_controllers {
  display: none !important;
}

.section_address {
  display: none !important;
}

.roughmap_maker_label {
  display: none !important;
}

/* 팝업 닫기 버튼 (이미지 대신 CSS 디자인) */
.popup-close {
  cursor: pointer;
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.popup-close:hover,
.popup-close:focus {
  background: rgba(255, 255, 255, 0.3);
  outline: none;
}

.footer-link-btn {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  background: rgba(0, 40, 120, 0.6);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
  text-decoration: none;
  z-index: 45;
  cursor: pointer;
  transition: all 0.2s ease;
}

.footer-link-btn:hover,
.footer-link-btn:focus {
  background: rgba(12, 77, 196, 0.9);
  border-color: rgba(255, 255, 255, 1);
  outline: none;
}

.modal-backdrop-custom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 1050;
  display: none;
}

.modal-backdrop-custom.show {
  display: block;
}

.modal-custom {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 820px;
  max-height: 86%;
  background: #0b1342;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
  z-index: 1060;
  overflow: hidden;
  opacity: 0;
  transition: all 0.2s ease;
}

.modal-custom.show {
  display: block;
  opacity: 1;
}

.modal-custom .modal-header,
.modal-custom .modal-body,
.modal-custom .modal-footer {
  padding: 1rem 1.25rem;
}

.modal-custom .modal-header {
  background: rgba(0, 8, 45, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
}

.modal-custom .modal-title {
  margin: 0;
  font-size: 1.25rem;
  color: #f8f9fa;
  font-weight: 700;
}

.modal-custom .btn-close-custom {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 1.8rem;
  height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.modal-custom .btn-close-custom:hover {
  color: #ffffff;
}

.modal-custom .modal-body {
  background: rgba(3, 19, 66, 0.95);
  color: #f5f5ff;
  max-height: calc(86vh - 120px);
  overflow-y: auto;
}

.modal-custom textarea {
  width: 100%;
  height: 400px;
  background: rgba(10, 18, 44, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.375rem;
  color: #e4e4ff;
  padding: 0.75rem;
  resize: vertical;
  font-size: 0.95rem;
}

.modal-custom .modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: right;
}

.modal-custom .modal-footer .btn {
  padding: 0.45rem 1rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(30, 83, 225, 0.8);
  color: #fff;
  line-height: 1.25;
  min-height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-custom .modal-footer .btn:hover {
  background: rgba(45, 105, 245, 0.9);
}

.footer-link-btn:hover,
.footer-link-btn:focus {
  background: rgba(12, 77, 196, 0.9);
  border-color: rgba(255, 255, 255, 1);
  outline: none;
}

.quick-menu {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-menu a {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.quick-menu a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.quick-menu a:hover {
  transform: translateY(-3px);
}

.quick-menu a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer 링크 스타일 */
.footer-policy-link {
  font-size: 18px;
  font-weight: bold;
}

.footer-policy-sep {
  margin: 0 8px;
}

/* 지도 박스 스타일 */
.map-box-container {
  position: absolute;
  top: 11%;
  left: 58%;
  width: 100%;
  height: 100%;
  z-index: 5;
  overflow: hidden;
}

.map-box-img {
  width: 40%;
  max-width: 801px;
  height: auto;
}

.mobile-footer-icons {
  display: none;
}

@media (max-width: 960px) {
  /* 모바일 지도 레이아웃 - 위/아래 배치 */
  #daumMapWraps {
    height: 777px !important;
    overflow: hidden;
    position: relative;
    display: block;
    opacity: 1;
    visibility: hidden;
    transform: none;
  }

  #daumRoughmapContainer1774426023378 {
    width: 100% !important;
    /* 실제 렌더링될 지도의 총 높이 (충분히 크게) */
    position: absolute !important;
    top: 200px !important;
    transform: translateY(-50%) !important;
    left: 0;
    max-width: none !important;
    height: 2150px !important;
  }

  .root_daum_roughmap .wrap_map {
    height: 100% !important;
  }

  #daumMapWraps {
    height: 2150px;
  }

  .map-box-container {
    position: absolute;
    top: 56%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: auto;
    z-index: 5;
    overflow: visible;
    order: 2;
    padding: 16px 0;
  }

  .map-box-img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .main-footer {
    margin-top: 0;
    padding-bottom: 80px;
  }

  .main-footer .footer-logo {
    padding-bottom: 10px;
  }

  .footer-logo {
    width: 90%;
  }

  .main-footer img[src*="bt_addr.png"] {
    width: 110%;
  }

  .main-footer .fl {
    width: 56%;
  }

  .main-footer .fr {
    width: 35%;
    margin-top: 8%;
  }

  .main-footer img {
    width: 60%;
  }

  .main-footer div {
    font-size: 0;
  }

  .footer-policy-link,
  .footer-policy-sep {
    font-size: 8px;
  }

  .main-footer .footer_plicy_wrap {
    font-size: 0;
  }

  .main-footer .footer-tel,
  .main-footer .footer-kakao,
  .main-footer .footer-policy-sep {
    padding-bottom: 4px;
  }
}

@media (max-width: 510px) {
  /* 모바일 footer 아이콘 */
  .quick-menu {
    display: none;
  }

  .mobile-footer-icons {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 8;
  }

  .mobile-footer-icons .mobile-quick-bg {
    position: relative;
  }

  .mobile-footer-icons a {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20%;
    height: 100%;
    text-decoration: none;
    color: transparent;
    background: transparent;
  }

  .mobile-footer-icons a:nth-child(2) {
    left: 20%;
  }
  .mobile-footer-icons a:nth-child(3) {
    left: 40%;
  }
  .mobile-footer-icons a:nth-child(4) {
    left: 60%;
  }
  .mobile-footer-icons a:nth-child(5) {
    left: 80%;
  }

  .mobile-footer-icons .mobile-quick-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
  }

  .mobile-footer-icons a {
    flex: 1;
    display: block;
    height: 100%;
    box-sizing: border-box;
    text-decoration: none;
    color: transparent;
    background: transparent;
  }

  .mobile-footer-icons a:active,
  .mobile-footer-icons a:hover {
    background: rgba(0, 40, 120, 0.05);
  }

  .mobile-footer-icons img {
    max-width: 100%;
    width: 100%;
  }

  .mobile-quick-img {
    width: 100%;
    height: auto;
    display: block;
  }
}

img[src*="kakaocdn.net/localimg"] {
   display:none !important;
}

/* 맵 아이콘 처리 (위치) */
img[src*="map_location.png"] {
    display: block !important;
    top:40px !important;
    left:-8px !important;
}