@charset "utf-8";

/* ===== BASE (Mobile First: ~480px) ===== */
* { box-sizing: border-box; }

.counsel-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.counsel-list > ul > li {
  position: relative;
  margin-top: 16px;
  border: 1px solid #dbdbdb;
  padding: 16px;
  border-radius: 10px;
  height: auto; /* 고정 height 제거 */
}

.counsel-list .badge {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 1px solid #ED1C24;
  border-radius: 30px;
  color: #ED1C24;
  padding: 4px 14px;
  font-size: 12px;
  white-space: nowrap;
}

/* 차량명 */
.counsel-list .car-type {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin: 0 0 12px 0;
  padding-right: 100px; /* badge와 겹치지 않게 */
}

.counsel-list .car-type .fuel {
  font-size: 13px;
  font-weight: normal;
  color: #555;
}

.counsel-list .car-type .fuel::before {
  content: '';
  display: inline-block;
  margin: 0 8px;
  height: 11px;
  width: 1px;
  background: #dbdbdc;
  vertical-align: middle;
}

/* car-cont: 모바일에서 세로 스택 */
.counsel-list .car-cont {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 이미지 */
.counsel-list .car-cont .img {
  width: 100%;
  height: 180px;
  background: #f6f6f6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.counsel-list .car-cont .img img {
  max-width: 80%;
  max-height: 160px;
  object-fit: contain;
}

/* 연식/가격 */
.counsel-list .car-cont .yp {
  width: 100%;
}

.counsel-list .car-cont .yp > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.counsel-list .car-cont .yp > ul > li {
  height: auto;
  margin: 0;
  display: flex;
  align-items: center;
}

.counsel-list .car-cont .yp .year {
  border: 1px solid #dddddd;
  border-radius: 20px;
  padding: 5px 12px;
  color: #000;
  font-size: 13px;
  white-space: nowrap;
}

.counsel-list .car-cont .yp .price {
  color: #000;
  font-weight: 600;
  margin-left: 8px;
  font-size: 15px;
  white-space: nowrap;
}

.counsel-list .car-cont .yp .price.red { color: #ed1c24; }

/* 잔여매물 + 버튼 영역 */
.counsel-list .car-cont .nb {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.counsel-list .car-cont .remaining {
  flex: 1;
  background: #fef5f5;
  height: auto;
  min-height: 56px;
  padding: 12px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}

.counsel-list .car-cont .remaining > div { width: 100%; }

.counsel-list .car-cont .remaining .txt {
  font-size: 13px;
  color: #000;
  display: block;
}

.counsel-list .car-cont .remaining .num {
  font-weight: 600;
  font-size: 20px;
  color: #000;
}

.counsel-list .car-cont .remaining .num .red { color: #ed1c24; }

/* 상담 버튼 */
.counsel-list .car-cont .nb .btn {
  flex: 2;
  background: #222;
  min-height: 110px;
  border-radius: 3px;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  text-align: center;
  line-height: 1.4;
  word-break: keep-all;
}

.counsel-list .car-cont .nb .btn .arrow::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
  vertical-align: middle;
}

/* ===== TABLET (481px ~ 767px) ===== */
@media (min-width: 481px) {
  .counsel-list .car-type { font-size: 20px; }

  .counsel-list .car-cont .img { height: 160px; }

  .counsel-list .car-cont .nb .btn { font-size: 15px; }
}

/* ===== DESKTOP (768px+) ===== */
@media (min-width: 768px) {
  .counsel-list > ul > li {
    padding: 20px 30px;
  }

  .counsel-list .badge {
    top: 28px;
    right: 28px;
    font-size: 14px;
    padding: 5px 22px;
  }

  .counsel-list .car-type { font-size: 26px; }
  .counsel-list .car-type .fuel { font-size: 16px; }

  /* 데스크탑: 가로 레이아웃 복원 */
  .counsel-list .car-cont {
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 16px;
    margin-top: 16px;
  }

  .counsel-list .car-cont .img {
    width: 260px;
    min-width: 200px;
    height: 160px;
    flex-shrink: 0;
  }

  .counsel-list .car-cont .yp {
    width: 220px;
    flex-shrink: 0;
  }

  .counsel-list .car-cont .yp > ul {
    flex-direction: column;
    gap: 0;
  }

  .counsel-list .car-cont .yp > ul > li {
    height: 36px;
    margin-bottom: 3px;
  }

  .counsel-list .car-cont .nb {
    width: 180px;
    flex-direction: column;
    flex-shrink: 0;
    gap: 8px;
  }

  .counsel-list .car-cont .remaining {
    flex: 1;
    min-height: 0;
    height: auto;
  }

  .counsel-list .car-cont .nb .btn {
    flex: none;
    height: 50px;
    min-height: 50px;
    font-size: 14px;
  }
}

/* ===== LARGE DESKTOP (1024px+) ===== */
@media (min-width: 1024px) {
  .counsel-list .car-cont .img { width: 300px; height: 160px; }
  .counsel-list .car-cont .yp { width: 250px; }
  .counsel-list .car-cont .nb { width: 200px; }
  .counsel-list .car-type { font-size: 28px; }
  .counsel-list .car-type .fuel { font-size: 18px; }
}

/* ===== 하단 섹션 ===== */
.counsel_bottom1 {
  padding: 40px 20px 40px;
  margin-top: 20px;
  background: #ededed url("../images/counsel/counsel_bg1.jpg") no-repeat right bottom;
  background-size: contain;
  border-radius: 10px 10px 0 0;
}

.counsel_bottom1 .txt1 { font-size: 18px; color: #000; }
.counsel_bottom1 .txt2 { font-size: 20px; color: #000; font-weight: 600; }
.counsel_bottom1 .txt3 { font-size: 13px; color: #000; margin-top: 8px; }

@media (min-width: 768px) {
  .counsel_bottom1 { padding: 65px 50px 50px; }
  .counsel_bottom1 .txt1 { font-size: 24px; }
  .counsel_bottom1 .txt2 { font-size: 28px; }
  .counsel_bottom1 .txt3 { font-size: 14px; }
}

/* ===== counsel-list2 ===== */
.counsel-list2 > ul { margin-bottom: 20px; list-style: none; padding: 0; }

.counsel-list2 .btn {
  background: #006766;
  width: 100%;
  max-width: 330px;
  height: 56px;
  border-radius: 3px;
  color: #fff;
  font-size: 18px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.counsel-list2 .btn .arrow::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 5px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
  vertical-align: middle;
}

@media (min-width: 768px) {
  .counsel-list2 .btn { font-size: 22px; height: 60px; }
}

.counsel_sec2 .counsel-list2 {
  background: #91bf76 url("../images/counsel/bg_img_01.png") no-repeat left bottom;
  background-size: auto;
  padding: 30px 16px 40px;
  text-align: center;
  border-radius: 0 0 10px 10px;
}

.counsel_sec2 .counsel-list2 > ul > li {
  height: auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 5px;
  background: #fff;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 10px auto;
  padding: 14px 20px 14px 60px;
  position: relative;
}

@media (min-width: 768px) {
  .counsel_sec2 .counsel-list2 {
    padding: 40px 0 50px;
  }
  .counsel_sec2 .counsel-list2 > ul > li {
    height: 85px;
    padding-left: 100px;
    min-height: 85px;
  }
  .counsel-list2 .btn { width: 330px; }
}

.counsel_sec2 .counsel-list2 .txt {
  font-size: 16px;
  color: #000;
  font-weight: 600;
  margin-left: 20px;
}

@media (min-width: 768px) {
  .counsel_sec2 .counsel-list2 .txt { font-size: 20px; margin-left: 30px; }
}

.ico_anno { vertical-align: -5px; margin-right: 5px; }
.counsel_sec3 { margin-top: 60px; }
@media (min-width: 768px) { .counsel_sec3 { margin-top: 80px; } }