/* =========================================
   JD DETAIL
========================================= */

.jd-detail {
  padding: 40px 20px 100px;
  background: #fff;
}

.jd-detail-inner {
  max-width: 1280px;
  margin: 0 auto;
}

/* =========================================
   TOP HEADER
========================================= */

.jd-top-head {
  padding: 18px 0 24px;

  margin-bottom: 28px;

  border-top: 2px solid #111827;
  border-bottom: 1px solid #e5e7eb;
}

/* =========================================
   STATUS
========================================= */

.jd-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 120px;
  height: 52px;

  padding: 0 24px;

  border-radius: 16px;

  font-size: 16px;
  font-weight: 800;

  letter-spacing: -.3px;

  border: 1px solid transparent;

  box-sizing: border-box;
}

/* 판매중 */

.jd-status.sale {
  background: #eff6ff;
  border-color: #bfdbfe;

  color: #2563eb;
}

/* 예약중 */

.jd-status.reserve {
  background: #fffbeb;
  border-color: #fde68a;

  color: #d97706;
}

/* 판매완료 */

.jd-status.done {
  background: #f3f4f6;
  border-color: #d1d5db;

  color: #4b5563;
}

/* 숨김 */

.jd-status.hide {
  background: #fef2f2;
  border-color: #fecaca;

  color: #dc2626;
}


.jd-main-title {
  margin-top: 12px;

  font-size: 30px;
  line-height: 1.38;

  font-weight: 800;

  letter-spacing: -1px;

  color: #111827;

  word-break: keep-all;
}


/* =========================================
   MAIN META
========================================= */

.jd-main-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-top: 12px;
}

/* 좌측 + 우측 공통 */

.jd-main-meta-left,
.jd-main-meta-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* 공통 텍스트 */

.jd-main-meta-left span,
.jd-main-meta-right span {
  position: relative;

  font-size: 14px;
  font-weight: 500;

  line-height: 1;

  color: #888;
}

/* =========================================
   LEFT
========================================= */

.jd-main-meta-left span {
  padding-right: 14px;
  margin-right: 10px;
}

/* dot */

.jd-main-meta-left span::after {
  content: "";

  position: absolute;

  top: 50%;
  right: 0;

  width: 4px;
  height: 4px;

  margin-top: -2px;

  border-radius: 50%;

  background: #d1d5db;
}

/* last */

.jd-main-meta-left span:last-child {
  margin-right: 0;
  padding-right: 0;
}

.jd-main-meta-left span:last-child::after {
  display: none;
}

/* =========================================
   RIGHT
========================================= */

.jd-main-meta-right {
  flex-shrink: 0;
}

/* span */

.jd-main-meta-right span {
  display: inline-flex;
  align-items: center;

  position: relative;

  padding-right: 14px;
  margin-right: 10px;
}

/* dot */

.jd-main-meta-right span::after,
.jd-like-btn::after,
.jd-report-btn::after {
  content: "";

  position: absolute;

  top: 50%;
  right: 0;

  width: 4px;
  height: 4px;

  margin-top: -2px;

  border-radius: 50%;

  background: #d1d5db;
}

/* last */

.jd-main-meta-right span:last-child {
  margin-right: 0;
  padding-right: 0;
}

.jd-main-meta-right span:last-child::after {
  display: none;
}

/* =========================================
   META ACTION
========================================= */
.jd-like-btn,
.jd-report-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  position: relative;

  width: auto;
  height: auto;

  padding: 0 14px 0 0;
  margin-right: 10px;

  background: none;
  border: 0;

  cursor: pointer;

  color: #888;

  line-height: 1;

  transition: .2s;
}


/* last */

.jd-report-btn {
  margin-right: 0;
  padding-right: 0;
}

.jd-report-btn::after {
  display: none;
}

/* icon */

.jd-like-btn svg,
.jd-report-btn svg {
  width: 19px;
  height: 19px;

  stroke-width: 2.1;

  position: relative;
  top: 1px;
}

/* 찜 */

.jd-like-btn:hover {
  color: #f43f5e;
}

.jd-like-btn.active {
  color: #f43f5e;
}

.jd-like-btn.active svg {
  fill: #f43f5e;
}

/* 신고 */

.jd-report-btn:hover {
  color: #dc2626;
}

/* =========================================
   MOBILE
========================================= */

@media(max-width:768px) {

  .jd-main-meta {
    flex-direction: column;
    align-items: flex-start;

    gap: 14px;
  }

  .jd-main-meta-left span,
  .jd-main-meta-right span,
  .jd-like-btn,
  .jd-report-btn {
    font-size: 13px;
  }

  .jd-main-meta-right {
    padding-top: 12px;

    border-top: 1px solid #f1f5f9;
  }

}


/* =========================================
   HERO
========================================= */

.jd-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;

  gap: 48px;
}

/* =========================================
   LEFT
========================================= */

.jd-left {
  min-width: 0;
}

/* =========================================
   GALLERY
========================================= */

.jd-gallery {
  overflow: hidden;

  border-radius: 18px;

  background: #fff;

  border: 1px solid #e5e7eb;

  box-shadow:
    0 10px 30px rgba(15, 23, 42, .05);
}

/* swiper */

.jd-main-swiper {
  aspect-ratio: 16 / 10;

  background: #fff;
}

.jd-main-swiper .swiper-wrapper {
  height: 100%;
}

.jd-main-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;

  background: #fff;
}

/* 이미지 */

.jd-main-swiper img {
  width: 100%;
  height: 100%;

  object-fit: contain;

  display: block;
}

/* pagination */

.jd-gallery .swiper-pagination {
  bottom: 16px !important;
}

.jd-gallery .swiper-pagination-bullet {
  width: 10px;
  height: 10px;

  margin: 0 4px !important;

  background: rgba(255, 255, 255, .7);

  opacity: 1;

  transition: .2s;
}

.jd-gallery .swiper-pagination-bullet-active {
  width: 24px;

  border-radius: 999px;

  background: #2563eb;
}

/* navigation */

.jd-gallery .swiper-button-prev,
.jd-gallery .swiper-button-next {
  width: 46px;
  height: 46px;

  margin-top: -23px;

  border-radius: 999px;

  background: rgba(255, 255, 255, .92);

  box-shadow:
    0 4px 14px rgba(15, 23, 42, .12);

  transition: .2s;
}

.jd-gallery .swiper-button-prev:hover,
.jd-gallery .swiper-button-next:hover {
  background: #fff;

  transform: scale(1.05);
}

.jd-gallery .swiper-button-prev::after,
.jd-gallery .swiper-button-next::after {
  font-size: 16px;
  font-weight: 800;

  color: #111827;
}



/* =========================================
   SUMMARY
========================================= */

.jd-summary {
  margin-top: 42px;
}

.jd-section-title {
  margin-bottom: 24px;

  font-size: 28px;
  font-weight: 800;

  letter-spacing: -1px;

  color: #111827;
}

.jd-summary-table {
  border-top: 2px solid #111827;
}

.jd-summary-row {
  display: flex;

  border-bottom: 1px solid #e5e7eb;
}

.jd-summary-label {
  width: 180px;

  flex-shrink: 0;

  padding: 20px 0;

  font-size: 15px;
  font-weight: 700;

  color: #555;
}

.jd-summary-value {
  flex: 1;

  padding: 20px 0;

  font-size: 16px;
  font-weight: 600;

  color: #111827;

  word-break: keep-all;
}

/* =========================================
   DESCRIPTION
========================================= */

.jd-description {
  margin-top: 70px;
}

.jd-content {
  font-size: 17px;
  line-height: 1.9;

  color: #222;

  word-break: keep-all;
}

.jd-content img {
  max-width: 100%;
  height: auto;

  border-radius: 18px;
}

.jd-content iframe {
  max-width: 100%;
}

.jd-content p {
  margin: 0 0 18px;
}

.jd-content p:last-child {
  margin-bottom: 0;
}

/* =========================================
   VIDEO
========================================= */

.jd-video {
  margin-top: 70px;
}

.jd-video-wrap {
  position: relative;

  width: 100%;

  padding-bottom: 56.25%;

  overflow: hidden;

  border-radius: 24px;

  background: #000;
}

.jd-video-wrap iframe {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;
}

/* =========================================
   RIGHT
========================================= */

.jd-right {
  position: relative;

}

.jd-sticky {
  position: sticky;
  top: 170px;

  padding: 34px 30px;

  border-radius: 28px;

  background: #fff;

  border: 1px solid #e5e7eb;

  box-shadow:
    0 10px 30px rgba(15, 23, 42, .06);

  box-sizing: border-box;
}

/* =========================================
   PRICE
========================================= */

.jd-price-box {
  padding-bottom: 28px;

  border-bottom: 1px solid #e5e7eb;
}

.jd-price-label {
  margin-bottom: 12px;

  font-size: 14px;
  color: #777;
}

.jd-price {
  font-size: 48px;
  font-weight: 800;

  letter-spacing: -2px;

  color: #111827;
}

.jd-price-unit {
  margin-left: 4px;

  font-size: 22px;
  font-weight: 700;

  color: #111827;
}


/* =========================================
   CONTACT
========================================= */

.jd-contact {
  margin-top: 24px;
}

/* 전화버튼 */

.jd-call-btn {
  width: 100%;
  height: 62px;

  border-radius: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  background: #2563eb;
  color: #fff;

  font-size: 18px;
  font-weight: 800;

  transition:
    background .2s,
    transform .2s;
}

.jd-call-btn:hover {
  background: #1d4ed8;

  transform: translateY(-1px);
}

/* lucide icon */

.jd-call-btn svg {
  width: 20px;
  height: 20px;

  stroke-width: 2.4;
}

/* 텍스트 */

.jd-call-btn span {
  display: inline-flex;
  align-items: center;
}


/* =========================================
   DEALER
========================================= */

.jd-dealer {
  margin-top: 28px;
  padding-top: 28px;

  border-top: 1px solid #e5e7eb;
}

.jd-dealer-head {
  margin-bottom: 18px;

  font-size: 14px;
  font-weight: 700;

  color: #777;
}

.jd-dealer-name {
  font-size: 28px;
  font-weight: 800;

  line-height: 1.4;

  color: #111827;
}

.jd-dealer-phone {
  margin-top: 14px;

  font-size: 32px;
  font-weight: 800;

  color: #2563eb;
}

.jd-dealer-address {
  margin-top: 16px;

  font-size: 15px;
  line-height: 1.7;

  color: #555;
}

/* =========================================
   FINANCE
========================================= */

.jd-finance-banner {
  margin-top: 70px;

  padding: 28px;

  border-radius: 22px;

  background: #f8fafc;
}

.jd-finance-title {
  font-size: 22px;
  font-weight: 800;

  line-height: 1.5;

  color: #111827;
}

.jd-finance-desc {
  margin-top: 10px;

  font-size: 15px;
  line-height: 1.7;

  color: #666;
}

.jd-finance-banner a {
  display: inline-flex;

  margin-top: 20px;

  font-size: 15px;
  font-weight: 700;

  color: #2563eb;
}

/* =========================================
   BOTTOM
========================================= */

.jd-bottom-actions {
  display: flex;

  gap: 12px;

  margin-top: 80px;
}

.jd-bottom-actions a {
  min-width: 120px;
  height: 54px;

  padding: 0 20px;

  border-radius: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 15px;
  font-weight: 700;

  transition: .2s;
}

.jd-btn-outline {
  border: 1px solid #d1d5db;

  background: #fff;
  color: #111827;
}

.jd-btn-outline:hover {
  background: #f3f4f6;
}

.jd-btn-delete {
  background: #ef4444;
  color: #fff;
}

.jd-btn-delete:hover {
  background: #dc2626;
}

/* =========================================
   MOBILE FIXED
========================================= */

.jd-mobile-fixed {
  display: none;
}

/* =========================================
   TABLET
========================================= */

@media(max-width:1024px) {

  .jd-hero {
    grid-template-columns: 1fr;
  }

  .jd-sticky {
    position: static;
  }

  .jd-main-swiper img {
    height: 520px;
  }

}

/* =========================================
   MOBILE
========================================= */

@media(max-width:768px) {

  .jd-detail {
    padding:
      24px 16px 100px;
  }

  .jd-top-head {
    margin-bottom: 24px;
  }

  .jd-main-title {
    font-size: 26px;
    line-height: 1.45;
  }


  .jd-hero {
    gap: 30px;
  }

  .jd-main-swiper img {
    height: 300px;
  }

  .jd-section-title {
    font-size: 22px;
  }

  .jd-summary-label {
    width: 110px;

    font-size: 14px;
  }

  .jd-summary-value {
    font-size: 14px;
  }

  .jd-content {
    font-size: 15px;
    line-height: 1.8;
  }

  .jd-price {
    font-size: 38px;
  }

  .jd-call-btn {
    height: 56px;

    font-size: 16px;
  }

  .jd-dealer-name {
    font-size: 24px;
  }

  .jd-dealer-phone {
    font-size: 28px;
  }

  .jd-finance-banner {
    padding: 22px;
  }

  .jd-bottom-actions {
    flex-direction: column;
  }

  .jd-bottom-actions a {
    width: 100%;
  }


  .jd-gallery {
    border-radius: 14px;
  }

  .jd-main-swiper {
    aspect-ratio: 4 / 3;
  }

  .jd-gallery .swiper-button-prev,
  .jd-gallery .swiper-button-next {
    width: 40px;
    height: 40px;

    margin-top: -20px;
  }

  .jd-gallery .swiper-button-prev::after,
  .jd-gallery .swiper-button-next::after {
    font-size: 14px;
  }

  .jd-status {
    min-width: 92px;
    height: 44px;

    padding: 0 18px;

    border-radius: 12px;

    font-size: 14px;
  }

  /* 모바일 고정 */

  .jd-mobile-fixed {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 99;

    display: flex;

    padding: 14px 16px;

    background: #fff;

    border-top: 1px solid #e5e7eb;
  }

  /* =========================================
   MOBILE CALL
========================================= */

  .jd-mobile-call {
    width: 100%;
    height: 56px;

    border-radius: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    background: #2563eb;
    color: #fff;

    font-size: 16px;
    font-weight: 800;

    box-shadow:
      0 8px 20px rgba(37, 99, 235, .22);
  }

  /* hover */

  .jd-mobile-call:hover {
    background: #1d4ed8;
  }

  /* lucide icon */

  .jd-mobile-call svg {
    width: 18px;
    height: 18px;

    stroke-width: 2.4;
  }

  /* text */

  .jd-mobile-call span {
    display: inline-flex;
    align-items: center;
  }

}



