/* 국밥넷 검색 스킨 */
.search-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.search-form .search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.search-form .select,
.search-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    min-width: 100px;
}

.search-select-sm {
    min-width: 80px;
}

.search-input,
.search-form .frm_input {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-input:focus {
    border-color: #c0392b;
    outline: none;
}

.search-btn {
    padding: 8px 20px;
    background: #c0392b;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #a93226;
}

/* 검색 결과 요약 */
.search-summary {
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #555;
}

.search-summary strong {
    color: #c0392b;
}

.search-summary b {
    color: #333;
}

/* 게시판 탭 */
.search-boards {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
}

.search-boards li {
    list-style: none;
}

.search-boards li a,
.board-btn {
    display: inline-block;
    padding: 6px 14px;
    background: #f1f1f1;
    color: #333;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.search-boards li a:hover,
.board-btn:hover {
    background: #e0e0e0;
}

.search-boards li a.sch_on,
.board-btn-primary {
    background: #c0392b;
    color: #fff;
}

.search-boards li a.sch_on:hover,
.board-btn-primary:hover {
    background: #a93226;
    color: #fff;
}

.search-boards li a .cnt_cmt {
    margin-left: 3px;
    font-weight: bold;
}

/* 검색 결과 없음 */
.search-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* 검색 결과 섹션 */
.search-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.section-title a {
    color: #333;
    text-decoration: none;
}

.section-title a:hover {
    color: #c0392b;
}

.section-title .more-link {
    font-size: 13px;
    color: #c0392b;
}

/* 검색 결과 목록 */
.search-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-item {
    border-bottom: 1px solid #f5f5f5;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item > a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.search-item > a:hover {
    background: #fafafa;
}

.search-item.is-comment > a {
    background: #fffbf0;
}

.comment-badge {
    display: inline-block;
    padding: 2px 6px;
    background: #ff9800;
    color: #fff;
    border-radius: 3px;
    font-size: 11px;
    margin-right: 8px;
    flex-shrink: 0;
}

.item-subject {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-info {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #888;
    margin-left: 16px;
    flex-shrink: 0;
}

.item-content {
    padding: 0 16px 12px 16px;
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* 페이지네이션 */
.search-paging {
    text-align: center;
    padding: 20px 0;
}

.search-paging a,
.search-paging strong {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
}

.search-paging a {
    background: #f1f1f1;
    color: #333;
}

.search-paging a:hover {
    background: #e0e0e0;
}

.search-paging strong {
    background: #c0392b;
    color: #fff;
}

/* 반응형 */
@media (max-width: 768px) {
    .search-form .search-row {
        flex-direction: column;
    }

    .search-form .select,
    .search-select,
    .search-input,
    .search-btn {
        width: 100%;
    }

    .item-info {
        display: none;
    }

    .section-title {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
}
