/* ==========================================================================
   모바일 광고 리스트 (foxalba 구조 기반)
   ========================================================================== */

/* 검색 칩 */
.m-jlist__chips {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding: 10px 12px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}
.m-jlist__chip {
    display: inline-flex; align-items: center; gap: 6px;
    height: 26px; padding: 0 10px;
    background: #fff; border: 1px solid #ddd; border-radius: 13px;
    font-size: 12px; color: #333;
}
.m-jlist__chip a { color: #999; font-weight: 700; padding: 0 2px; line-height: 1; }
.m-jlist__chip-reset {
    display: inline-flex; align-items: center;
    height: 26px; padding: 0 10px;
    color: var(--m-primary); font-size: 12px; font-weight: 700;
}

/* 헤더 (foxalba ul.ti 구조) */
.m-jlist__header {
    position: relative;
    height: 45px;
    background: linear-gradient(180deg, #fafafa, #f0f0f0);
    border-bottom: 1px solid #ddd;
    padding: 12px 14px;
    box-sizing: border-box;
}
.m-jlist__h2 {
    margin: 0;
    font-size: 14px; font-weight: 700; color: #111;
    line-height: 1.5;
}
.m-jlist__h2-em { color: var(--m-primary, var(--brand-primary, #00a65a)); }
.m-jlist__total {
    position: absolute;
    top: 14px; right: 14px;
    font-size: 12px; color: #666;
}
.m-jlist__total em { font-style: normal; color: #00ace4; font-weight: 700; }

/* 카드 리스트 */
.m-jlist__items { list-style: none; margin: 0; padding: 0; background: #fff; }

.m-jlist__item {
    position: relative;
    height: 66px;
    background: #fff;
    border-top: 1px solid #eee;
    overflow: hidden;
}
.m-jlist__item--first { border-top: none; }

.m-jlist__link {
    display: block;
    padding: 5px 62px 5px 10px;
    color: #000;
    text-decoration: none;
    height: 100%;
    box-sizing: border-box;
}

/* 썸네일 (좌측 88×39) */
.m-jlist__thumb {
    float: left;
    width: 76px; height: 34px;
    margin-top: 8px;
    margin-left: -2px;
    border: 2px solid #eaeaea;
    background: #fff;
    box-sizing: border-box;
    overflow: hidden;
}
.m-jlist__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* 본문 (우측) */
.m-jlist__body {
    margin-left: 88px;
    padding-top: 8px;
}

/* 제목 — 아이콘(급구 등) + 텍스트 한 줄 */
.m-jlist__title {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-bottom: 5px;
    font-size: 13px;
    color: #333;
    line-height: 18px;
    overflow: hidden;
}
.m-jlist__title img {
    flex-shrink: 0;
    height: 16px !important;
    width: auto !important;
    vertical-align: middle;
    margin-right: 0 !important; /* my_helper.lib.php 인라인 margin-right:5px 무효화 (모바일만) */
}
.m-jlist__title > span {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 제목에 아이콘(img)이 없는 경우 sample 좌측 padding 제거 — 아래 닉네임과 시작 위치 정렬 */
.m-jlist__title > .sample:only-child {
    padding-left: 0;
}

/* 제목 색상 변형 (foxalba no1/no2/no3 매핑) */
.m-jlist__title.no1 { color: #525252; }
.m-jlist__title.no2 { color: #ffffff; }
.m-jlist__title.no3 { color: #0030CE; }

/* 메타 (업체명 | 지역 | 급여 + 아이콘) */
.m-jlist__meta {
    display: flex;
    align-items: center;
    font-size: 13px;
    line-height: 1.4;
    color: #ccc;
}
.m-jlist__meta-left {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.m-jlist__meta-right {
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
}
/* 닉네임 — 폰트 줄이고 잘림 처리 */
.m-jlist__company { color: #135cbf; font-weight: 400; font-size: 11px; max-width: 70px; display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
/* 주소·급여 — 잘림 없이 전부 노출 */
.m-jlist__add     { color: #a83700; font-weight: 400; flex-shrink: 0; }
.m-jlist__pay     { color: #333; font-weight: 700; flex-shrink: 0; }
.m-jlist__payimg  { height: 18px; width: auto; vertical-align: middle; }

/* 급여 아이콘 박스 (18×18) */
/* 급여 아이콘 — 12px 박스, font 9px */
.m-jlist__payicon {
    display: inline-block;
    width: 12px; height: 12px;
    margin-left: 3px;
    box-sizing: border-box;
    font-size: 9px; font-weight: 700;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    line-height: 12px;
    vertical-align: middle;
    flex-shrink: 0;
}
.m-jlist__payicon--time  { background: #2196f3; } /* 시 - 파랑 */
.m-jlist__payicon--day   { background: #ef5350; } /* T - 빨강 */
.m-jlist__payicon--month { background: #66bb6a; } /* 월 - 초록 */
.m-jlist__payicon--hs    { background: var(--brand-primary, #00a65a); } /* 협 - 초록 */

/* 스크랩 별 */
.m-jlist__star {
    position: absolute;
    top: 18px; right: 14px;
    width: 30px; height: 30px;
    background: none; border: none;
    font-size: 22px; color: #ccc;
    cursor: pointer;
    padding: 0;
    z-index: 5;
    line-height: 1;
}
.m-jlist__star.is-active { color: #ffc107; }

/* 페이징 */
.m-jlist__paging {
    padding: 20px 0; text-align: center;
    border-top: 1px solid #ccc;
    background: #fff;
}
.m-jlist__pg {
    display: inline-block; vertical-align: middle;
    min-width: 28px; height: 26px; line-height: 24px;
    padding: 0 4px; margin: 0 2px;
    border: 1px solid #ddd; border-radius: 3px;
    background: #f7f7f7; font-size: 12px; color: #999;
    text-decoration: none; text-align: center;
}
.m-jlist__pg.is-current {
    background: #fff; color: #d51956;
    border-color: #d51956; font-weight: 700;
}

/* 그누보드 표준 페이징 함수(get_paging) 출력을 .m-jlist__pg 와 동일한 디자인으로 표시 */
/* wrapper(.m-jlist__paging) 안쪽 a.pg_page / strong.pg_current 만 영향 — 다른 영역은 손대지 않음 */
.m-jlist__paging .pg_wrap { display: inline-block; }
.m-jlist__paging .pg { display: inline-block; }
.m-jlist__paging .pg_page,
.m-jlist__paging .pg_current {
    display: inline-block; vertical-align: middle;
    min-width: 28px; height: 26px; line-height: 24px;
    padding: 0 4px; margin: 0 2px;
    border: 1px solid #ddd; border-radius: 3px;
    background: #f7f7f7; font-size: 12px; color: #999;
    text-decoration: none; text-align: center;
}
.m-jlist__paging .pg_current {
    background: #fff; color: #d51956;
    border-color: #d51956; font-weight: 700;
}

/* 빈 목록 */
.m-jlist__empty {
    padding: 60px 20px; text-align: center;
    color: #888; font-size: 14px;
    border-top: 1px solid #eee;
}

/* 글쓰기 버튼 */
.m-jlist__write { padding: 14px; }