@charset "utf-8";

/* ========================================
   전체검색결과 스킨 - 하얀 테마 (모바일)
   ======================================== */

/* 검색 폼 영역 */
#sch_res_detail {
  width: 100%;
  float: left;
  margin: clamp(10px, calc(0.78vw + 7.5px), 20px) 0;
  padding: clamp(16px, calc(1.17vw + 12px), 28px);
  background: #f5f6f8;
  border-radius: clamp(12px, calc(0.63vw + 10px), 20px);
  border: 1px solid #e8eaed;
  text-align: left;
}
#sch_res_detail legend {
  position: absolute; font-size: 0; line-height: 0; overflow: hidden;
}
/* 검색 입력 한 줄 배치 */
#sch_res_detail .sch_wr {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  margin: 0;
}
#sch_res_detail select {
  width: auto;
  flex-shrink: 0;
  height: 44px;
  float: none;
  border: 1px solid #dcdfe4;
  border-radius: 6px;
  padding: 0 28px 0 10px;
  font-size: 0.85em;
  color: #555;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23aaa'/%3E%3C/svg%3E") no-repeat right 8px center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  max-width: 130px;
  box-sizing: border-box;
}
#sch_res_detail select#gr_id { margin-right: 0; }
#sch_res_detail .frm_input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 1px solid #dcdfe4;
  border-radius: 6px;
  border-right: 1px solid #dcdfe4;
  margin: 0;
  padding: 0 14px;
  font-size: 0.95em;
  color: #333;
  background: #fff;
  clear: none;
}
#sch_res_detail .frm_input:focus {
  outline: none;
  border-color: var(--primary, #3a8afd);
  box-shadow: 0 0 0 2px rgba(58, 138, 253, 0.15);
  border-right: 0;
}
#sch_res_detail .btn_submit {
  position: relative;
  flex-shrink: 0;
  width: auto; height: 44px;
  padding: 0 16px;
  background: var(--primary, #3a8afd);
  color: #fff;
  font-size: 0.88em;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 6px;
  line-height: 42px;
  white-space: nowrap;
  box-sizing: border-box;
}
#sch_res_detail .btn_submit i { margin-right: 4px; }
#sch_res_detail .btn_submit::after { content: '검색'; }

/* 모바일 세로 배치 */
@media screen and (max-width: 580px) {
  #sch_res_detail .sch_wr {
    flex-wrap: wrap;
  }
  #sch_res_detail select {
    width: calc(50% - 3px);
    max-width: none;
  }
  /* 입력창+버튼을 한 줄로 묶기 */
  #sch_res_detail .frm_input,
  #sch_res_detail .btn_submit {
    margin-top: 0;
  }
  #sch_res_detail .frm_input {
    flex: 1;
    min-width: 0;
    width: auto;
  }
}

/* 검색 결과 요약 */
#sch_res_ov {
  width: 100%;
  float: left;
  margin: 15px 0;
  padding: 14px 16px;
  background: #f9f9f9;
  text-align: center;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  color: #888;
}
#sch_res_ov:after { display: block; visibility: hidden; clear: both; content: ""; }
#sch_res_ov h2 { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
#sch_res_ov ul { display: inline-flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
#sch_res_ov li {
  display: inline-block;
  padding-right: 8px;
  border-right: 1px solid #a8bdd8;
  font-size: 0.88em;
}
#sch_res_ov li:last-child { padding-right: 0; border-right: 0; }
#sch_res_ov li strong { color: var(--primary, #3a8afd); margin-left: 3px; }

/* 게시판 필터 탭 */
#sch_res_board {
  margin: 10px 0;
  padding: 0;
  width: 100%;
  float: left;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#sch_res_board:after { display: block; visibility: hidden; clear: both; content: ""; }

/* 결과 영역 */
#sch_result { padding: 0; margin: 0; width: 100%; float: left; }
#sch_result hr { display: none; }
.list_01 { padding: 0; margin: 0; width: 100%; float: left; }
#sch_res_board li { display: inline-block; list-style: none; }
#sch_res_board a {
  display: block;
  line-height: 1;
  padding: 10px 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #ddd;
  color: #888;
  font-size: 0.95em;
  transition: all 0.15s;
}
#sch_res_board a:hover {
  background: var(--primary, #3a8afd);
  border-color: var(--primary, #3a8afd);
  color: #fff;
  text-decoration: none;
}
#sch_res_board .sch_on {
  background: var(--primary, #3a8afd);
  color: #fff;
  font-weight: 600;
  border-color: var(--primary, #3a8afd);
  box-shadow: 0 2px 6px rgba(58, 138, 253, 0.25);
}

/* 검색 결과 리스트 */
.sch_res_list { margin: 0 0 10px; }
.sch_res_list h2 {
  font-size: 1.25em;
  font-weight: 600;
  color: #333;
  background: #fff;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}
.sch_res_list ul {
  margin: 0; padding: 0;
  list-style: none;
  background: #fff;
}
.sch_res_list li {
  padding: 10px 16px;
  border-bottom: 1px solid #ececec;
}
.sch_res_list li:last-child { border-bottom: 0; }
.sch_res_list a { text-decoration: none; }

.sch_res_title {
  display: block;
  font-weight: 600;
  font-size: 1em;
  color: #222;
  padding: 12px 0 6px;
  position: relative;
}
.sch_res_title a { color: #222; }
.sch_res_title a:hover { color: var(--primary, #3a8afd); }

.sch_res_list p {
  margin: 0 0 8px;
  line-height: 1.5;
  color: #777;
  font-size: 0.93em;
}

.sch_res_info {
  line-height: 1;
  padding: 6px 0 0;
  margin: 6px 0 0;
  color: #999;
  font-size: 0.85em;
}
.sch_res_info:after { display: block; visibility: hidden; clear: both; content: ""; }
.sch_res_info .profile_img img { border-radius: 50%; }
.sch_datetime { margin-left: 5px; }

.sch_more {
  background: #fff;
  padding: 14px 0;
  margin-bottom: 12px;
  font-size: 0.93em;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
  text-align: center;
}
.sch_more a { color: var(--primary, #3a8afd); font-weight: 500; }

/* 빈 결과 */
.empty_list {
  padding: 40px 20px;
  text-align: center;
  color: #999;
  font-size: 0.95em;
}

/* AND/OR 라디오 */
.chk_box { position: relative; padding: 8px 0; }
.chk_box input[type="radio"] {
  position: absolute; top: 0; left: 0;
  width: 0; height: 0; opacity: 0; outline: 0; z-index: -1; overflow: hidden;
}
.chk_box input[type="radio"] + label {
  position: relative;
  padding-left: 23px;
  display: inline-block;
  color: #676e70;
  font-size: 0.9em;
  margin-right: 10px;
}
.chk_box input[type="radio"] + label span {
  position: absolute; top: 1px; left: 0;
  width: 15px; height: 15px;
  display: block;
  background: #f7f8f9;
  border: 1px solid #cdd6df;
  border-radius: 50%;
}
.chk_box input[type="radio"]:checked + label { color: var(--primary, #3a8afd); }
.chk_box input[type="radio"]:checked + label span { border-color: var(--primary, #3a8afd); }
.chk_box input[type="radio"]:checked + label span:before {
  width: 7px; height: 7px;
  background: var(--primary, #3a8afd);
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  border-radius: 50%;
}

/* 페이지네이션 여백 */
#sch_result .pg_wrap { margin-top: 15px; }
