/* =========================
 * GJN Tier Visibility (v0.2.0)
 * ========================= */

/* 1) FREE: 상세설명 축약 (이미지 포함 대응) */
.single-job_listing.tier-free .block-field-hobba_description .pf-body{
  position: relative;
  max-height: var(--gjn-tv-desc-max-height, 400px);
  overflow: hidden;
}

.single-job_listing.tier-free .block-field-hobba_description .pf-body:after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height: var(--gjn-tv-fade-height, 200px);
  pointer-events:none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}

.single-job_listing.tier-free .block-field-hobba_description .pf-body:before{
  content: var(--gjn-tv-notice, "무료광고는 상세내용 일부만 노출됩니다.");
  position:absolute;
  left:12px;
  right:12px;
  bottom:12px;
  z-index:3;
  display:block;
  padding:10px 12px;
  background:rgba(255,255,255,.96);
  font-size:13px;
  line-height:1.35;
  text-align:center;
  opacity:.98;
  pointer-events:none;
}

.single-job_listing.tier-free .block-field-hobba_description img{
  max-width:100%;
  height:auto;
  display:block;
}

/* 2) FREE: 메신저(카카오톡/라인/텔레그램) 잠금 처리 */
.single-job_listing.tier-free ul.extra-details.no-list-style > li.gjn-messenger-locked{
  position:relative;
  background: rgba(0,0,0,.06);
  overflow:hidden;
}

.single-job_listing.tier-free ul.extra-details.no-list-style > li.gjn-messenger-locked .item-property{
  filter: blur(2px);
  user-select:none;
  -webkit-user-select:none;
  pointer-events:none;
}

.single-job_listing.tier-free ul.extra-details.no-list-style > li.gjn-messenger-locked:after{
  content: var(--gjn-tv-lockbadge, "🔒 무료광고: 메신저 문의는 유료부터");
  position:absolute;
  inset:6px 8px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  padding:6px 10px;
  border-radius:10px;
  background: linear-gradient(to right, rgba(245,245,245,.18), rgba(255,255,255,.94) 35%, rgba(255,255,255,.97));
  font-size:12px;
  line-height:1.2;
  pointer-events:auto;
  cursor:not-allowed;
  z-index:2;
}


/* 3) FREE: 갤러리 1장만 노출 + 나머지 흐림/잠금 */
.single-job_listing.tier-free .gallerySlider{
  position:relative;
}

.single-job_listing.tier-free .gallerySlider .owl-item:nth-child(n+2){
  filter: blur(8px);
  opacity:.38;
  pointer-events:none;
}

.single-job_listing.tier-free .gallerySlider .owl-item:nth-child(2){
  position:relative;
}

.single-job_listing.tier-free .gallerySlider .owl-item:nth-child(2):after{
  content:"🔒 추가 사진은 유료 등록 시 노출됩니다";
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  z-index:3;
  padding:8px 12px;
  border-radius:10px;
  background:rgba(255,255,255,.96);
  font-size:12px;
  line-height:1.25;
  white-space:nowrap;
  pointer-events:none;
}

.single-job_listing.tier-free .gallerySlider .owl-item:nth-child(n+2) a,
.single-job_listing.tier-free .gallerySlider .owl-item:nth-child(n+2) img{
  pointer-events:none !important;
}

.single-job_listing.tier-free .gallerySlider .owl-item:not(:first-child) .photoswipe-item{
  cursor:not-allowed;
}
