/*
Theme Name: melontreeA
Author: 
Description: Your description goes here
Version: 1.0
Template: generatepress

This is the child theme for GeneratePress theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/

@import url("https://fonts.googleapis.com/css2?family=Asta+Sans:wght@300..800&display=swap");

a {
  text-decoration: none !important;
}

div {
  border: 0px !important;
}

.maincofil {
  top: 5.2rem;
}

.custom-infowindow p {
  margin-bottom: 1em;
}
p {
  margin: 0;
}

.site-branding-container {
  box-shadow: #b9b9b9 1px 2px 3px;
  border-radius: 24px;
  padding: 0 15px;
  background-color: white;
}

img.marker-img {
  border-radius: 90px;
  box-shadow: 6px 6px 6px #00000073;
}

.marker-label {
  box-shadow: 6px 6px 6px #00000091;
  border-radius: 17px;
  padding: 2px 8px;
  background-color: white;
}

p.marker-count {
  border-radius: 15px;
  text-align: center;
  color: white;
}

h3.marker-count.party-dem,
.party-gop,
.party-jk {
  border-radius: 10px;
}

/* 정당별 색상 */
.party-dem {
  background-color: #152484;
} /* 더불어민주당 - 파랑 */
.party-gop {
  background-color: #e61e2b;
} /* 국민의힘 - 빨강 */
.party-reform {
  background-color: #4cae4c;
} /* 개혁신당 - 녹색 */
.party-basic {
  background-color: #f39c12;
} /* 기본소득당 - 주황 */
.party-ind {
  background-color: #7f8c8d;
} /* 무소속 - 회색 */
.party-social {
  background-color: #9b59b6;
} /* 사회민주당 - 보라 */
.party-jk {
  background-color: #0073cf;
} /* 조국혁신당 - 진주황 */
.party-progressive {
  background-color: #16a085;
} /* 진보당 - 청록 */
.party-default {
  background-color: #2c3e50;
} /* 기타 */

.marker-label p {
  font-weight: bold;
}
.comment-delete-link {
  margin-left: 1rem;
  color: #c00;
  font-size: 0.9rem;
}
.comment-delete-link:hover {
  text-decoration: underline;
}

/* 1) html·body가 100% 높이를 가지도록 */
html,
body {
  font-family: "Asta Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

/* 2) #main도 화면 전체 높이를 차지 */
#main {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* 3) 지도를 #main 안에서 절대 배치하여 꽉 채우기 */
#map {
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100vh - 96px);
}

.custom-infowindow {
  background-color: #fff;
}

.site-content {
  display: block;
}

.lucky-list {
  display: none;
}

.inside-header {
  width: 100%;
  max-width: 100%;
  z-index: 9;
  display: flex;
  align-items: center;
  position: absolute;
}

.btn-prev-page {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: #0078ff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}
.btn-prev-page:hover {
  background: #005ace;
}

#post-vote-container {
  margin-top: 2rem;
}
#post-vote-container button {
  margin-right: 1rem;
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f8f8f8;
  cursor: pointer;
}
#post-vote-container button:disabled {
  opacity: 0.6;
  cursor: default;
}

/* 포스트 오버레이 박스 */
.post-overlay {
  position: relative;
  width: 300px;
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  padding: 1rem;
}

/* 닫기 버튼 */
.post-overlay .overlay-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.wpc-filter-title {
  display: none !important;
}
.wpc-filters-scroll-container .wpc-filters-widget-wrapper {
  max-height: 48px;
  gap: 15px;
  display: flex;
}

.wpc-filter-content .wpc-filters-widget-select {
  border-radius: 18px;
}

.wpc-filters-section {
  width: 98px;
}
.suggestion-item {
  cursor: pointer;
}

.custom-infowindow {
  box-shadow: #8b8b8ba6 1px 2px 4px;
  border-radius: 25px;
  width: 280px;
  /* margin: 0 -53px; */
  padding: 5px 10px;
  /* max-height: 100vh; */
  background-color: #fff;
}

.custom-infowindow a {
  text-decoration: none;
}

.custom-infowindow p {
  font-size: 14px;
}

.widget-title {
margin-bottom: 10px !important;
}

/* 자동완성 박스 전체에 상하 여백 추가 */

/* 각 제안 항목에 상하 패딩 추가 */
#custom-suggestions .suggestion-item {
  padding: 8px 12px; /* 상하 8px, 좌우 12px */
  border-bottom: 1px solid #eee; /* 아래 구분선(선택 사항) */
}

/* 마지막 항목의 구분선 제거(선택 사항) */
#custom-suggestions .suggestion-item:last-child {
  border-bottom: none;
}

.btn-my-location {
  top: 6.2em;
}

.entry-meta.comment-metadata {
  display: none;
}

.comment-content {
  padding: 5px;
  margin-top: 0.2em;
}

.comment-content > p {
  border-radius: 24px;
  background-color: black;
  color: white !important;
  padding: 5px;
  margin: 15px 0;
  font-size: 24px;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
  border-color: #e3e3e3;
}

.aca-link a {
  color: black;
}

p.marker-title {
  font-size: 14px;
}

p.marker-count.party-gop {
  font-size: 14px;
}
p.marker-count.party-dem {
  font-size: 14px;
}

p.marker-count.party-jk {
  font-size: 14px;
}

.slide-link {
  background-color: black;
  padding: 3px;
  color: white;
  border-radius: 24px;
  text-align: center;
}

.slide-link:hover {
  color: white;
}

.comment-meta .avatar {
  display: none;
}
.politi a{
  font-weight: bold;
}

input#submit{
  background-color: black;
  color: white;
}

@media (max-width: 1300px) {
  .fru_here p {
    display: none;
  }
  .maincofil {
    top: 0.2rem;
  }
  .btn-my-location {
    top: 0.5em;
  }
}
@media (max-width: 760px) {
  .btn-prev-page {
    display: none;
  }

  .custom-infowindow h3 {
    font-size: 22px;
  }
}
