@charset "utf-8";

/* ==========================================================================
   카드형 리스트 스타일 (Card-based List Styles)
   ========================================================================== */

.card-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.card-item-wrap {
    position: relative;
}

.card-item {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.card-thumbnail {
    flex: 0 0 150px;
    position: relative;
    background-color: #f0f0f0;
    border-right: 1px solid #f0f0f0;
}

.card-thumbnail img, .card-thumbnail .no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-thumbnail .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 1em;
}

.is-notice .card-item {
    border-color: #f9267f;
}

.notice-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #f9267f;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 1;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.card-subject {
    font-size: 1.2em;
    font-weight: 700;
    margin: 0 0 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #212529;
}

.card-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.card-info .loc-wrap {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background-color: #f1f3f5;
    color: #495057;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.card-info i,
.card-footer i {
    margin-right: 6px;
    color: #868e96;
}

.card-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f5f5f5;
    font-size: 0.9em;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.empty_list {
    padding: 80px 0;
    text-align: center;
    color: #888;
    grid-column: 1 / -1; /* 카드가 없을 때 전체 너비를 차지하도록 */
}

.card-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

/* ==========================================================================
   기존 스타일 유지 (Keep Original Styles)
   ========================================================================== */

/* 아이콘 관련 스타일 */
.card-info .sex.female:after { content: "여"; background: #FF9800; }
.card-info .sex.male:after { content: "남"; background: #2196F3; }
.card-info .sex.all:after { content: "모"; background: #8BC34A; }
.card-info .pay_term.percent:after { content: "능"; background: #CDDC39; }
.card-info .pay_term.promise:after { content: "보"; background: #be79ec; }
.card-info .pay_term.discuss:after { content: "협"; background: #CDDC39; }
.card-info .pay_term.month:after { content: "월"; background: #FFC107; }
.card-info .pay_term.week:after { content: "주"; background: #FFEB3B; }
.card-info .pay_term.day:after { content: "일"; background: #4CAF50; }

/* 테스트모드 썸네일 블러 처리 */
.testmode .card-thumbnail img { filter: blur(13px); }

/* 카테고리, 버튼, 검색 등 나머지 스타일은 기존 코드 유지 */
#bo_list { position: relative; margin-bottom: 20px; }
#bo_list:after { display: block; visibility: hidden; clear: both; content: ""; }
#bo_cate { margin: 25px 0 10px 0; }
#bo_cate h2 { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
.sly_wrap { /* background: #e1e1e1; */ }
#bo_cate ul { zoom:1; border-bottom: 1px solid #e1e1e1; }
#bo_cate ul:after { display: block; visibility: hidden; clear: both; content: ""; }
#bo_cate li { display: inline-block; }
#bo_cate a { display: block; padding: 7px 10px; border: 1px solid #e1e1e1; color: #535353; border-right-width: 0; border-bottom: 0 !important; background: #f7f7f7; font-size: 1.2em; }
#bo_cate li:last-child a { border-right-width: 1px; }
#bo_cate a:focus, #bo_cate a:hover, #bo_cate a:active { text-decoration: none; background: #535353; color: #fff; }
#bo_cate #bo_cate_on { z-index: 2; background: #535353; color: #fff; font-weight: bold; border: 1px solid #535353; }
.selec_chk { position: absolute; top: 0; left: 0; width: 0; height: 0; opacity: 0; outline: 0; z-index: -1; overflow: hidden; }

#bo_btn_top { margin: 10px 0; }
#bo_btn_top:after { display: block; visibility: hidden; clear: both; content: ""; }
.bo_fx { margin-bottom: 5px; float: right; zoom:1}
.bo_fx:after { display: block; visibility: hidden; clear: both; content: ""; }
.bo_fx ul { margin: 0; padding: 0; list-style: none; }
#bo_list_total { float: left; line-height: 34px; font-size: 0.92em; color: #4e546f; }
.btn_bo_user { float: right; margin: 0; padding: 0; list-style: none; }
.btn_bo_user li { float: left; width: 40px; text-align: center; margin-left: 5px; background: #fff; }
.btn_bo_user > li { position: relative; }
.more_opt { display: none; position: absolute; top: 45px; right: 0; background: #fff; border: 1px solid #b8bfc4; z-index: 999; }
.more_opt:before { content: ""; position: absolute; top: -8px; right: 13px; width: 0; height: 0; border-style: solid; border-width: 0 6px 8px 6px; border-color: transparent transparent #b8bfc4 transparent; }
.more_opt:after { content: ""; position: absolute; top: -6px; right: 13px; width: 0; height: 0; border-style: solid; border-width: 0 6px 8px 6px; border-color: transparent transparent #fff transparent; }
.more_opt li { border-bottom: 1px solid #f1f1f1; padding: 10px; float: inherit; width: 90px; margin: 0; color: #6b757c; text-align: left; }
.more_opt li:last-child { border-bottom: 0; }
.more_opt li button, .more_opt li a { width: 100%; border: 0; background: #fff; color: #6b757c; }
.more_opt li:hover a, .more_opt li:hover button { color: #000; }
.more_opt li i { float: right; line-height: 20px; }
#bo_list .cnt_cmt { background: #e9eff5; color: #3a8afd; font-size: 11px; height: 16px; line-height: 16px; padding: 0 5px; border-radius: 3px; vertical-align: middle; }
.bo_sch_wrap { display: none; width: 100%; height: 100%; position: fixed; top: 0; left: 0; z-index: 999; }
.bo_sch { position: absolute; top: 50%; left: 50%; background: #fff; text-align: left; width: 330px; max-height: 300px; margin-left: -125px; margin-top: -180px; overflow-y: auto; border-radius: 5px; box-shadow: 1px 1px 18px rgba(0,0,0,0.2); border: 1px solid #dde7e9; background: #fff; border-radius: 3px; }
.bo_sch:after { display: block; visibility: hidden; clear: both; content: ""; }
.bo_sch h3 { padding: 15px; border-bottom: 1px solid #e8e8e8; }
.bo_sch form { padding: 15px; display: block; }
.bo_sch select { border: 0; width: 100%; height: 40px; border: 1px solid #d0d3db; border-radius: 2px; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); }
.bo_sch .sch_bar { display: inline-block; width: 100%; clear: both; margin-top: 15px; border: 1px solid #d0d3db; border-radius: 2px; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075); }
.bo_sch .sch_input { width: 250px; height: 38px; border: 0; padding: 0; background-color: transparent; float: left; }
.bo_sch .sch_btn { height: 38px; float: right; color: #656565; background: none; border: 0; width: 40px; font-size: 15px; }
.bo_sch .bo_sch_cls { position: absolute; right: 0; top: 0; color: #b5b8bb; border: 0; padding: 12px 15px; font-size: 16px; background: #fff; }
.bo_sch_bg { background: #000; background: rgba(0,0,0,0.1); width: 100%; height: 100%; }

/* ==========================================================================
   커스텀 지역 필터 스타일 (Custom Location Filter Styles)
   ========================================================================== */

#custom_loc_filter_container {
    position: relative;
    width: 100%;
    max-width: 400px; /* 필요에 따라 너비 조절 */
    margin-bottom: 20px;
}

#loc_filter_trigger {
    width: 100%;
    height: 42px;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1em;
    color: #495057;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

#loc_filter_trigger:hover, #loc_filter_trigger.active {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

#loc_filter_trigger .arrow-down {
    width: 10px;
    height: 10px;
    border-right: 2px solid #007bff;
    border-bottom: 2px solid #007bff;
    transform: rotate(45deg);
    transition: transform 0.2s ease-in-out;
}

#loc_filter_trigger.active .arrow-down {
    transform: rotate(225deg);
    margin-top: -5px;
}

#loc_filter_dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    display: flex;
    height: 300px; /* 드롭다운 높이 */
    overflow: hidden;
}

#loc_filter_dropdown.hidden {
    display: none;
}

.loc_panel {
    width: 50%;
    height: 100%;
    overflow-y: auto;
}

#loc1_panel {
    border-right: 1px solid #e9ecef;
}

.loc_panel ul {
    list-style: none;
    margin: 0;
    padding: 5px 0;
}

.loc_panel li {
    padding: 10px 15px;
    font-size: 0.95em;
    cursor: pointer;
    transition: background-color 0.1s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.loc_panel li:hover {
    background-color: #f1f3f5;
}

.loc_panel li.active {
    background-color: #007bff;
    color: #fff;
    font-weight: 500;
}

.loc_panel li .loc-count {
    color: #868e96;
    font-size: 0.9em;
    margin-left: 5px;
}

.loc_panel li.active .loc-count {
    color: #fff; /* Make it white when the parent is active */
}
