/* ===========================
   업체검색
=========================== */

.jb-page-title {
  margin: 40px 0 30px;
  text-align: center;
}

.jb-page-title h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: #111827;
}

.jb-page-title p {
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 15px;
}


/* ===========================
   추천업체
=========================== */

.jb-company-banner {
  margin-bottom: 40px;
}

.jb-company-banner h3 {
  margin-bottom: 15px;
  font-size: 22px;
  font-weight: 700;
}

.jb-company-banner-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  border: 2px dashed #d1d5db;
  border-radius: 14px;
  background: #fafafa;
  color: #9ca3af;
  font-size: 16px;
}


/* ===========================
   검색
=========================== */

.jb-company-search {
  margin-bottom: 35px;
}

.jb-search-row {
  display: flex;
  gap: 10px;
}

.jb-search-row input {
  flex: 1;
  height: 50px;
  padding: 0 18px;
  border: 1px solid #dcdfe5;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
}

.jb-search-row input:focus {
  border-color: #2563eb;
}

.jb-search-row select {
  width: 170px;
  height: 50px;
  padding: 0 15px;
  border: 1px solid #dcdfe5;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  outline: none;
}

.jb-search-row button {
  width: 120px;
  height: 50px;
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
}

.jb-search-row button:hover {
  background: #1d4ed8;
}


/* ===========================
   업체목록
=========================== */

.jb-company-list {

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;

  margin-bottom: 40px;
}

.jb-company-card {

  display: flex;
  gap: 18px;

  padding: 20px;

  border: 1px solid #ececec;
  border-radius: 14px;

  background: #fff;

  transition: .2s;

}

.jb-company-card:hover {

  border-color: #2563eb;

  box-shadow: 0 10px 25px rgba(0, 0, 0, .06);

}

.jb-company-logo {

  width: 90px;
  height: 90px;

  flex-shrink: 0;

}

.jb-company-logo img {

  width: 100%;
  height: 100%;

  object-fit: cover;

  border-radius: 10px;

}

.jb-company-no-logo {

  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f3f4f6;

  border-radius: 10px;

  color: #9ca3af;

  font-size: 14px;

}

.jb-company-info {

  flex: 1;

}

.jb-company-info strong {

  display: block;

  margin-bottom: 10px;

  font-size: 20px;

  color: #111827;

}

.jb-company-info div {

  margin-bottom: 6px;

  color: #4b5563;

  font-size: 14px;

  line-height: 1.6;

}


/* ===========================
   Responsive
=========================== */

@media (max-width:1024px) {

  .jb-company-list {

    grid-template-columns: repeat(2, 1fr);

  }

}

@media (max-width:768px) {

  .jb-search-row {

    flex-direction: column;

  }

  .jb-search-row select,
  .jb-search-row button {

    width: 100%;

  }

  .jb-company-list {

    grid-template-columns: 1fr;

  }

  .jb-company-card {

    padding: 16px;

  }

  .jb-company-logo {

    width: 70px;
    height: 70px;

  }

  .jb-company-info strong {

    font-size: 18px;

  }

}


/* ===========================
   검색 결과 없음
=========================== */

.jb-company-empty {

  grid-column: 1 / -1;

  padding: 80px 20px;

  text-align: center;

  border: 1px solid #ececec;

  border-radius: 14px;

  background: #fafafa;

}

.jb-company-empty svg {

  width: 56px;
  height: 56px;

  color: #cbd5e1;

  margin-bottom: 18px;

}

.jb-company-empty strong {

  display: block;

  margin-bottom: 10px;

  font-size: 20px;

  color: #111827;

}

.jb-company-empty p {

  color: #6b7280;

  font-size: 15px;

}

/* 검색결과 */

.jb-company-result-count {

  margin: 20px 0 24px;

  color: #6b7280;

  font-size: 15px;

}

.jb-company-result-count strong {

  color: #2563eb;

  font-weight: 700;

}



/* =========================================================
   PAGING
========================================================= */

.pg_wrap {
  display: flex;
  justify-content: center;
  margin: 50px 0 20px;
}

.pg {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pg_page,
.pg_current {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 42px;
  height: 42px;
  padding: 0 14px;

  border: 1px solid #e5e7eb;
  border-radius: 10px;

  background: #fff;

  font-size: 15px;
  font-weight: 600;
  color: #475569;

  text-decoration: none;

  transition: .2s;
}

.pg_page:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.pg_current {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.pg_start,
.pg_prev,
.pg_next,
.pg_end {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 42px;
  height: 42px;

  border: 1px solid #e5e7eb;
  border-radius: 10px;

  background: #fff;

  color: #64748b;
  text-decoration: none;

  transition: .2s;
}

.pg_start:hover,
.pg_prev:hover,
.pg_next:hover,
.pg_end:hover {
  border-color: #2563eb;
  color: #2563eb;
}

@media (max-width:768px) {

  .pg_wrap {
    margin: 35px 0 10px;
  }

  .pg {
    gap: 6px;
  }

  .pg_page,
  .pg_current,
  .pg_start,
  .pg_prev,
  .pg_next,
  .pg_end {

    min-width: 38px;
    height: 38px;

    font-size: 14px;
    padding: 0 10px;
  }

}


/* =========================================================
   RECOMMEND COMPANY
========================================================= */

.jb-company-banner {
  margin-bottom: 40px;
}

.jb-company-banner-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.jb-company-banner-head h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #111827;
}

.jb-company-banner-head p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
}

.jb-recommend-company-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.jb-recommend-company-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 28px 20px;

  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 55%);
  overflow: hidden;

  border: 1px solid #e5e7eb;
  border-radius: 18px;

  text-decoration: none;

  transition: .25s;
}

.jb-recommend-company-card:hover {

  transform: translateY(-4px);

  border-color: #2563eb;

  box-shadow: 0 12px 30px rgba(37, 99, 235, .12);
}

.jb-recommend-badge {
  position: absolute;
  top: 14px;
  right: 14px;

  padding: 6px 10px;

  background: #2563eb;
  color: #fff;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 700;
}

.jb-recommend-company-logo {

  width: 110px;
  height: 110px;

  margin: 30px auto 20px;
}

.jb-recommend-company-logo img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  border: 1px solid #e5e7eb;
  border-radius: 14px;

  background: #fff;
}

.jb-recommend-company-info {
  text-align: center;
  width: 100%;
}

.jb-recommend-company-info strong {
  display: block;

  margin-bottom: 8px;

  font-size: 18px;
  font-weight: 700;

  color: #111827;
}

.jb-recommend-company-area {
  margin-bottom: 10px;

  font-size: 14px;
  color: #64748b;
}

.jb-recommend-company-count {

  margin-bottom: 10px;

  font-size: 15px;
  font-weight: 600;

  color: #374151;
}

.jb-recommend-company-count span {
  margin: 0 6px;
  color: #cbd5e1;
}

.jb-recommend-company-tel {
  font-size: 14px;
  color: #2563eb;
  font-weight: 600;
}

@media (max-width:1200px) {

  .jb-recommend-company-list {
    grid-template-columns: repeat(3, 1fr);
  }

}

@media (max-width:768px) {

  .jb-company-banner-head {
    display: block;
  }

  .jb-company-banner-head p {
    margin-top: 6px;
  }

  .jb-recommend-company-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .jb-recommend-company-card {
    padding: 20px 14px;
  }

  .jb-recommend-company-logo {
    width: 72px;
    height: 72px;
  }

  .jb-recommend-company-info strong {
    font-size: 16px;
  }

}

@media (max-width:480px) {

  .jb-recommend-company-list {
    grid-template-columns: 1fr;
  }

}