/**
 * eottae-community 목록 — 한 행 3열 (썸네일 | 제목·본문 | 통계)
 * 썸네일: 104×104px 정사각형 (모바일 88px) — eottae-list-thumb.css 와 동일
 */
#bo_list.board-wrap--eottae-community {
  --eottae-list-thumb-size: 104px;
  --eottae-list-thumb-radius: 14px;
}

/* 히어로 배너 — 배경·오버레이가 목록 영역으로 넘치지 않도록 */
.community-page .community-hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 22px;
}

.community-page .community-hero__inner {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  contain: layout paint style;
}

.community-page .community-hero__bg,
.community-page .community-hero__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.community-page .community-hero__bg {
  z-index: 0;
  max-width: none;
  max-height: none;
  transform: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.community-page .community-hero__overlay {
  z-index: 1;
}

.community-page .community-hero__content {
  position: relative;
  z-index: 2;
}

.community-page .community-list {
  position: relative;
  z-index: 2;
}

.community-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.community-map-actions__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 0.9rem;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  background: #f0f9ff;
  color: #0369a1;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.community-map-actions__btn--primary {
  border-color: #0ea5e9;
  background: #0ea5e9;
  color: #fff;
}

@media (max-width: 768px) {
  .community-page .community-hero {
    border-radius: 18px;
  }

  .community-map-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .community-map-actions__btn {
    flex: 0 0 auto;
  }

  #bo_list.board-wrap--eottae-community {
    --eottae-list-thumb-size: 88px;
    --eottae-list-thumb-radius: 12px;
  }
}
/* 커뮤니티 목록 — flex 한 줄 카드 (grid·display:contents 제거, 썸네일 확대 방지) */
#bo_list.board-wrap--eottae-community .community-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#bo_list.board-wrap--eottae-community .community-post__link {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 24px 16px 18px;
  text-decoration: none;
  color: inherit;
}

#bo_list.board-wrap--eottae-community .community-post__cols {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  width: auto;
  box-sizing: border-box;
}

#bo_list.board-wrap--eottae-community .community-post__thumb {
  position: relative;
  flex: 0 0 var(--eottae-list-thumb-size, 104px) !important;
  width: var(--eottae-list-thumb-size, 104px) !important;
  height: var(--eottae-list-thumb-size, 104px) !important;
  min-width: var(--eottae-list-thumb-size, 104px) !important;
  min-height: var(--eottae-list-thumb-size, 104px) !important;
  max-width: var(--eottae-list-thumb-size, 104px) !important;
  max-height: var(--eottae-list-thumb-size, 104px) !important;
  margin: 0;
  align-self: flex-start;
  border-radius: var(--eottae-list-thumb-radius, 14px);
  overflow: hidden !important;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

#bo_list.board-wrap--eottae-community .community-post__thumb img,
#bo_list.board-wrap--eottae-community .community-post__thumb .estate-profile-thumb__img,
#bo_list.board-wrap--eottae-community .community-post__thumb .job-profile-thumb__img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
}

/* 부동산·구인구직 목록 — 프로필/첨부 썸네일 정사각형 고정 */
#bo_list.board-wrap--eottae-community .community-post__thumb.estate-profile-thumb,
#bo_list.board-wrap--eottae-community .community-post__thumb.job-profile-thumb {
  position: relative;
  padding: 0;
  aspect-ratio: 1 / 1;
  align-self: flex-start;
}

#bo_list.board-wrap--eottae-community .estate-profile-thumb__media,
#bo_list.board-wrap--eottae-community .job-profile-thumb__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}

#bo_list.board-wrap--eottae-community .estate-profile-thumb__img,
#bo_list.board-wrap--eottae-community .job-profile-thumb__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

#bo_list.board-wrap--eottae-community .estate-profile-thumb__initial,
#bo_list.board-wrap--eottae-community .job-profile-thumb__initial {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}

#bo_list.board-wrap--eottae-community .community-post__body {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
}

#bo_list.board-wrap--eottae-community .community-post__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

#bo_list.board-wrap--eottae-community .community-post__title-line {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

#bo_list.board-wrap--eottae-community .community-post__badges {
  display: inline-flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
}

#bo_list.board-wrap--eottae-community .community-post__title {
  flex: 1 1 auto !important;
  display: block !important;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
}

#bo_list.board-wrap--eottae-community .community-post__excerpt {
  display: -webkit-box !important;
  margin: 0;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
}

#bo_list.board-wrap--eottae-community .community-post__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
  color: #94a3b8;
}

/* 구인구직·부동산·질문·답변 — 뱃지 1줄, 제목 다음 줄 + 본문 요약 */
#bo_list.board-wrap--eottae-community .community-post--job .community-post__cols,
#bo_list.board-wrap--eottae-community .community-post--estate .community-post__cols,
#bo_list.board-wrap--eottae-community .community-post--qna .community-post__cols {
  align-items: center;
}

#bo_list.board-wrap--eottae-community .community-post--job .community-post__title-line,
#bo_list.board-wrap--eottae-community .community-post--estate .community-post__title-line,
#bo_list.board-wrap--eottae-community .community-post--qna .community-post__title-line {
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

#bo_list.board-wrap--eottae-community .community-post--job .community-post__badges,
#bo_list.board-wrap--eottae-community .community-post--estate .community-post__badges,
#bo_list.board-wrap--eottae-community .community-post--qna .community-post__badges {
  flex-wrap: wrap;
  max-width: 100%;
}

#bo_list.board-wrap--eottae-community .community-post--job .community-post__title,
#bo_list.board-wrap--eottae-community .community-post--estate .community-post__title,
#bo_list.board-wrap--eottae-community .community-post--qna .community-post__title {
  width: 100%;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

#bo_list.board-wrap--eottae-community .community-post--job .community-post__body,
#bo_list.board-wrap--eottae-community .community-post--estate .community-post__body,
#bo_list.board-wrap--eottae-community .community-post--qna .community-post__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  align-self: center;
}

#bo_list.board-wrap--eottae-community .community-post--job .community-post__aside,
#bo_list.board-wrap--eottae-community .community-post--qna .community-post__aside {
  align-self: center;
  flex-shrink: 0;
}

#bo_list.board-wrap--eottae-community .community-post__foot {
  display: none !important;
}

#bo_list.board-wrap--eottae-community .community-post__aside {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding-right: 4px;
  margin-left: 4px;
}

#bo_list.board-wrap--eottae-community .community-post__stats {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
}

#bo_list.board-wrap--eottae-community .community-post__stat {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2px !important;
  min-width: 28px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

#bo_list.board-wrap--eottae-community .community-post__stat-icon {
  font-size: 15px;
  line-height: 1;
}

#bo_list.board-wrap--eottae-community .community-post__stat-num {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #64748b;
}

@media (max-width: 768px) {
  #bo_list.board-wrap--eottae-community .community-post__link {
    padding: 14px 14px;
    gap: 12px;
  }

  #bo_list.board-wrap--eottae-community .community-post__cols {
    gap: 12px;
  }

  #bo_list.board-wrap--eottae-community .community-post__thumb {
    flex-basis: var(--eottae-list-thumb-size, 88px) !important;
    width: var(--eottae-list-thumb-size, 88px) !important;
    height: var(--eottae-list-thumb-size, 88px) !important;
    min-width: var(--eottae-list-thumb-size, 88px) !important;
    min-height: var(--eottae-list-thumb-size, 88px) !important;
    max-width: var(--eottae-list-thumb-size, 88px) !important;
    max-height: var(--eottae-list-thumb-size, 88px) !important;
    border-radius: var(--eottae-list-thumb-radius, 12px);
  }

  #bo_list.board-wrap--eottae-community .community-post__aside {
    padding-right: 2px;
    margin-left: 2px;
  }

  #bo_list.board-wrap--eottae-community .community-post__title {
    font-size: 15px;
  }

  #bo_list.board-wrap--eottae-community .community-post__stats {
    gap: 10px !important;
  }
}

/* 글보기 하단 — 목록·답변·신고 버튼 통일 */
.board-wrap--eottae-community#bo_v .community-view-page__footer {
  margin-top: 16px;
}

.board-wrap--eottae-community#bo_v .community-view-page__actions.btn_bo_user {
  float: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.board-wrap--eottae-community#bo_v .community-view-page__actions.btn_bo_user > li {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  text-align: inherit;
}

.board-wrap--eottae-community#bo_v .community-view-page__actions .btn,
.board-wrap--eottae-community#bo_v .community-view-page__actions .community-report-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.board-wrap--eottae-community#bo_v .community-view-page__actions .btn:hover,
.board-wrap--eottae-community#bo_v .community-view-page__actions .community-report-btn:hover {
  border-color: #cbd5e1;
  color: #0f172a;
  background: #f8fafc;
}

.board-wrap--eottae-community#bo_v .community-view-page__actions .community-report-btn {
  font-family: inherit;
}

@media (max-width: 767px) {
  .board-wrap--eottae-community#bo_v .community-view-page__actions.btn_bo_user {
    justify-content: stretch;
  }

  .board-wrap--eottae-community#bo_v .community-view-page__actions.btn_bo_user > li {
    flex: 1 1 calc(33.333% - 6px);
    min-width: 0;
  }

  .board-wrap--eottae-community#bo_v .community-view-page__actions .btn,
  .board-wrap--eottae-community#bo_v .community-view-page__actions .community-report-btn {
    width: 100%;
    padding: 0 10px;
    font-size: 12px;
  }
}

/* 목록 — 작성자·관리자 삭제/수정 */
.community-post,
.estate-list-card,
.event-post,
.report-card,
.market-card,
.adroom-card {
  position: relative;
}

.community-post__manage {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 6px 12px 10px;
  border-top: 1px solid #f1f5f9;
  background: #fafbfc;
}

.community-post__manage-chk {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  cursor: pointer;
}

.community-post__manage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
}

.community-post__manage-btn:hover {
  border-color: #cbd5e1;
  color: #0f172a;
  background: #f8fafc;
}

.community-post__manage-btn--delete {
  border-color: #fecaca;
  color: #b91c1c;
}

.community-post__manage-btn--delete:hover {
  border-color: #f87171;
  background: #fef2f2;
  color: #991b1b;
}

.community-list-admin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.community-list-admin__chkall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
}

.community-list-admin__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.community-list-admin__btn {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.community-list-admin__btn:hover {
  border-color: #cbd5e1;
  background: #fff;
  color: #0f172a;
}

.community-list-admin__btn--delete {
  border-color: #fecaca;
  color: #b91c1c;
}

.event-post__actions .community-post__manage {
  border-top: 0;
  padding: 0;
  background: transparent;
}

/* 광고방 점프업 — 게시글 4개 뒤 네이티브 광고 1회 노출 */
#bo_list.board-wrap--eottae-community .community-jump-ad {
  margin: 10px 0;
  border: 1px solid #fdba74;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7ed 0%, #fff 68%, #fffbeb 100%);
  box-shadow: 0 8px 24px rgba(154, 52, 18, 0.08);
}

#bo_list.board-wrap--eottae-community .community-jump-ad__link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 12px 16px 12px 12px;
  color: inherit;
  text-decoration: none;
}

#bo_list.board-wrap--eottae-community .community-jump-ad__thumb {
  flex: 0 0 104px;
  width: 104px;
  height: 104px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffedd5, #fed7aa) center/cover no-repeat;
}

#bo_list.board-wrap--eottae-community .community-jump-ad__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

#bo_list.board-wrap--eottae-community .community-jump-ad__badge {
  align-self: flex-start;
  margin-bottom: 7px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

#bo_list.board-wrap--eottae-community .community-jump-ad__title {
  overflow: hidden;
  color: #183247;
  font-size: 17px;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#bo_list.board-wrap--eottae-community .community-jump-ad__meta {
  overflow: hidden;
  margin-top: 5px;
  color: #64748b;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#bo_list.board-wrap--eottae-community .community-jump-ad__cta {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid #fdba74;
  border-radius: 999px;
  background: #fff;
  color: #c2410c;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 640px) {
  #bo_list.board-wrap--eottae-community .community-jump-ad__link {
    gap: 11px;
    min-height: 88px;
    padding: 10px;
  }

  #bo_list.board-wrap--eottae-community .community-jump-ad__thumb {
    flex-basis: 88px;
    width: 88px;
    height: 88px;
    border-radius: 10px;
  }

  #bo_list.board-wrap--eottae-community .community-jump-ad__title {
    font-size: 15px;
  }

  #bo_list.board-wrap--eottae-community .community-jump-ad__meta {
    font-size: 11px;
  }

  #bo_list.board-wrap--eottae-community .community-jump-ad__cta {
    display: none;
  }
}
