/* =========================================================
   Rental Detail Page
========================================================= */

.rental-view-page {
  width: 100%;
  min-height: 100vh;
  background: #f6f7f9;
}

.rental-view-container {
  width: 100%;
  max-width: 1280px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 24px;
  padding-left: 24px;
}

/* =========================================================
   Top Navigation
========================================================= */

.rental-view-navigation {
  position: sticky;
  top: 64px;
  z-index: 40;

  width: 100%;

  border-bottom: 1px solid #e5e7eb;

  background: rgba(255, 255, 255, 0.96);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rental-view-navigation__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;

  min-height: 44px;
}

.rental-view-navigation a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  align-self: stretch;
  padding: 0 8px;

  border-bottom: 2px solid transparent;

  color: #666666;

  font-size: 14px;
  line-height: 1;
  font-weight: 700;

  white-space: nowrap;
}

.rental-view-navigation a:hover {
  color: #023da5;
}

.rental-view-navigation a.active {
  border-bottom-color: #023da5;
  color: #023da5;
}

/* =========================================================
   Main
========================================================= */

.rental-view-main {
  width: 100%;
  padding: 24px 0 56px;
}

/* =========================================================
   Product Tabs
========================================================= */

.rental-model-tabs {
  display: flex;
  align-items: center;
  gap: 10px;

  width: 100%;
  margin-bottom: 20px;

  overflow-x: auto;
  scrollbar-width: none;
}

.rental-model-tabs::-webkit-scrollbar {
  display: none;
}

.rental-model-tabs a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;

  min-height: 34px;
  padding: 7px 18px;

  border: 1px solid #cbd5e1;
  border-radius: 9999px;

  background: #ffffff;
  color: #334155;

  font-size: 13px;
  line-height: 1;
  font-weight: 700;

  white-space: nowrap;

  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.rental-model-tabs a:hover {
  border-color: #023da5;
  color: #023da5;
}

.rental-model-tabs a.active {
  border-color: #023da5;
  background: #023da5;
  color: #ffffff;
}
/* =========================================================
   Summary Card
   Figma 상세 카드 구조 변환
========================================================= */

.rental-view-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;

  width: 100%;
  margin-bottom: 16px;

  overflow: hidden;

  border: 0;
  border-radius: 16px;

  background: #ffffff;

  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.07);
}

/* 왼쪽 본문 */
.rental-view-summary__content {
  order: 0;

  min-width: 0;
  min-height: 420px;

  padding: 32px;

  border-right: 1px solid #f3f4f6;

  background: #ffffff;
}

/* 렌탈 서비스 안내 배지 */
.rental-view-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: auto;
  margin-bottom: 12px;
  padding: 4px 14px;

  border-radius: 9999px;

  background: #ebf0ff;
  color: #023da5;

  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}

/* 상품명 */
.rental-view-summary h1 {
  margin: 0 0 8px;

  color: #1a1a1a;

  font-size: 25.6px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.03em;

  word-break: keep-all;
}

/* 가격 */
.rental-view-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;

  margin-bottom: 20px;

  color: #023da5;
}

.rental-view-price strong {
  color: #023da5;

  font-size: 28.8px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.03em;

  word-break: keep-all;
}

.rental-view-price span {
  color: #888888;

  font-size: 14.4px;
  line-height: 1.5;
  font-weight: 400;

  white-space: nowrap;
}

/* 소개 문구 */
.rental-view-description {
  display: block;

  color: #444444;

  font-size: 14.72px;
  line-height: 1.85;
  font-weight: 400;

  word-break: keep-all;
  overflow-wrap: break-word;
}

.rental-view-description p {
  margin: 0;
}

.rental-view-description__highlight {
  color: #023da5;
  font-weight: 600;
}

/* 오른쪽 이미지 영역 */
.rental-view-summary__image {
  position: relative;
  order: 1;

  min-width: 0;
  min-height: 420px;

  overflow: hidden;

  padding: 0;
  border: 0;

  background: #f0f2f5;
}

/* 이미지 영역 전체 채움 */
.rental-view-summary__image img {
  position: absolute;
  inset: 0;

  display: block;

  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;

  object-fit: cover;
  object-position: center center;
}

/* 이미지가 없을 때 */
.rental-view-image-empty {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #9ca3af;

  font-size: 14px;
  line-height: 1.5;
}

/* =========================================================
   Process
========================================================= */

.rental-process-card {
  width: 100%;
  margin-bottom: 16px;
  padding: 28px 32px 34px;

  border: 1px solid #e5e7eb;
  border-radius: 16px;

  background: #ffffff;

  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.05);
}

.rental-process-card > h2 {
  margin: 0 0 30px;

  color: #111827;

  font-size: 18px;
  line-height: 1.5;
  font-weight: 800;
}

.rental-process {
  position: relative;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  width: 100%;
}

.rental-process__line {
  position: absolute;
  top: 27px;
  left: 12.5%;
  right: 12.5%;

  height: 2px;

  background: #023da5;
}

.rental-process-step {
  position: relative;
  z-index: 1;

  min-width: 0;

  text-align: center;
}

.rental-process-step__number {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 54px;
  height: 54px;
  margin: 0 auto 14px;

  border-radius: 50%;

  background: #023da5;
  color: #ffffff;

  font-size: 18px;
  line-height: 1;
  font-weight: 800;

  box-shadow:
    0 6px 14px rgba(2, 61, 165, 0.18);
}

.rental-process-step h3 {
  margin: 0;

  color: #111827;

  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;

  word-break: keep-all;
}

.rental-process-step p {
  margin: 6px 0 0;

  color: #9ca3af;

  font-size: 11px;
  line-height: 1.5;

  word-break: keep-all;
}

/* =========================================================
   Specification
========================================================= */

.rental-specification-card {
  overflow: hidden;

  border: 1px solid #e5e7eb;
  border-radius: 16px;

  background: #ffffff;

  box-shadow:
    0 1px 3px rgba(15, 23, 42, 0.05);
}

.rental-specification-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  min-height: 64px;
  padding: 16px 28px;

  border-bottom: 1px solid #e5e7eb;
}

.rental-specification-card__header h2 {
  margin: 0;

  color: #023da5;

  font-size: 18px;
  line-height: 1.5;
  font-weight: 800;

  word-break: keep-all;
}

.rental-specification-card__header a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;

  min-height: 34px;
  padding: 7px 16px;

  border-radius: 9999px;

  background: #023da5;
  color: #ffffff;

  font-size: 12px;
  line-height: 1;
  font-weight: 700;

  white-space: nowrap;
}

.rental-specification-card__header a:hover {
  background: #012f82;
  color: #ffffff;
}

.rental-specification-card__header svg {
  width: 14px;
  height: 14px;
}

.rental-specification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  padding: 28px;
}

.rental-specification-item {
  min-width: 0;
  min-height: 74px;
  padding: 15px 18px;

  background: #ffffff;
}

.rental-specification-item:nth-child(4n + 3),
.rental-specification-item:nth-child(4n + 4) {
  background: #f8fafc;
}

.rental-specification-item dt {
  margin: 0 0 6px;

  color: #023da5;

  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;

  word-break: keep-all;
}

.rental-specification-item dd {
  margin: 0;

  color: #111827;

  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;

  word-break: keep-all;
}

.rental-specification-card__action {
  display: flex;
  justify-content: center;

  padding: 20px 24px 24px;

  border-top: 1px solid #f3f4f6;
}

.rental-view-consultation-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 180px;
  min-height: 48px;
  padding: 12px 28px;

  border-radius: 10px;

  background: #023da5;
  color: #ffffff;

  font-size: 15px;
  line-height: 1;
  font-weight: 800;

  box-shadow:
    0 6px 14px rgba(2, 61, 165, 0.18);

  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.rental-view-consultation-button:hover {
  background: #012f82;

  box-shadow:
    0 10px 20px rgba(2, 61, 165, 0.22);
}

/* =========================================================
   Empty
========================================================= */

.rental-view-empty {
  min-height: 500px;
  padding: 100px 0;

  background: #f8fafc;

  text-align: center;
}

.rental-view-empty h1 {
  margin: 0;

  font-size: 30px;
  font-weight: 800;
}

.rental-view-empty p {
  margin: 12px 0 24px;
  color: #6b7280;
}

.rental-view-empty a {
  display: inline-flex;
  padding: 12px 24px;

  border-radius: 8px;

  background: #023da5;
  color: #ffffff;

  font-weight: 700;
}

/* =========================================================
   Tablet
========================================================= */

@media (max-width: 1024px) {
  .rental-view-container {
    padding-right: 20px;
    padding-left: 20px;
  }

  .rental-view-summary__content {
    padding: 28px;
  }

  .rental-view-summary__content,
  .rental-view-summary__image {
    min-height: 380px;
  }
}

/* =========================================================
   Mobile
========================================================= */

/* =========================================================
   Rental Detail Mobile
========================================================= */

@media (max-width: 767px) {
  .rental-view-navigation {
    top: 64px;
  }

  .rental-view-navigation__inner {
    gap: 32px;
    min-height: 48px;
  }

  .rental-view-navigation a {
    padding: 0 8px;
    font-size: 15px;
  }

  .rental-view-main {
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .rental-view-container {
    padding-right: 16px;
    padding-left: 16px;
  }

  /* =====================================
     상품 탭
     가로 스크롤 없이 전체 표시
  ===================================== */

  .rental-model-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;

    width: 100%;
    margin-bottom: 24px;
    gap: 8px;

    overflow: visible;
  }

  .rental-model-tabs a {
    flex: 0 0 auto;

    min-height: 42px;
    padding: 10px 20px;

    border-width: 2px;
    border-color: #d1d5db;
    border-radius: 9999px;

    font-size: 14px;
    line-height: 1;
    font-weight: 700;
  }

  .rental-model-tabs a.active {
    border-color: #023da5;
    background: #023da5;
    color: #ffffff;
  }

  /* =====================================
     상품 요약 카드
     이미지가 먼저, 본문이 아래
  ===================================== */

  .rental-view-summary {
    display: flex;
    flex-direction: column;

    width: 100%;
    margin-bottom: 16px;

    border-radius: 16px;
  }

  /* 이미지가 모바일에서 첫 번째 */
  .rental-view-summary__image {
    position: relative;
    order: 0;

    width: 100%;
    min-height: 300px;

    padding: 0;

    border: 0;
    border-bottom: 1px solid #f3f4f6;

    background: #f0f2f5;
  }

  .rental-view-summary__image img {
    position: absolute;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;

    max-width: none;
    max-height: none;

    object-fit: cover;
    object-position: center center;
  }

  /* 본문이 모바일에서 두 번째 */
  .rental-view-summary__content {
    order: 1;

    width: 100%;
    min-height: auto;
    padding: 28px 24px 32px;

    border-right: 0;
    border-bottom: 0;

    background: #ffffff;
  }

  .rental-view-badge {
    margin-bottom: 14px;
    padding: 5px 14px;
    font-size: 13px;
  }

  .rental-view-summary h1 {
    margin-bottom: 8px;
    font-size: 23px;
    line-height: 1.35;
  }

  .rental-view-price {
    margin-bottom: 24px;
  }

  .rental-view-price strong {
    font-size: 26px;
  }

  .rental-view-price span {
    font-size: 13px;
  }

  .rental-view-description {
    font-size: 14px;
    line-height: 1.85;
  }

  /* =====================================
     렌탈 신청 절차
  ===================================== */

  .rental-process-card {
    padding: 24px 20px;
  }

  .rental-process-card > h2 {
    margin-bottom: 24px;
    font-size: 18px;
  }

  .rental-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }

  .rental-process__line {
    display: none;
  }

  .rental-process-step__number {
    width: 48px;
    height: 48px;
  }

  /* =====================================
     상세 사양
  ===================================== */

  .rental-specification-card__header {
    padding: 14px 18px;
  }

  .rental-specification-card__header h2 {
    font-size: 16px;
  }

  .rental-specification-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  .rental-specification-item {
    min-height: 68px;
  }

  .rental-specification-item:nth-child(odd) {
    background: #ffffff;
  }

  .rental-specification-item:nth-child(even) {
    background: #f8fafc;
  }

  .rental-view-consultation-button {
    width: 100%;
  }
}

.rental-specification-detail-link.is-disabled {
  cursor: default;
  opacity: 0.4;
  pointer-events: none;
}

@media (max-width: 487px) {
    /* 본문이 모바일에서 두 번째 */
  .rental-view-summary__content {
    padding: 12px 24px 12px;
  }

  .rental-view-description{
    line-height: 1.5;
  }

  .rental-view-badge{
    margin-bottom: 8px;
  }

  .rental-view-summary h1{
    margin-bottom: 0px;
  }

  .rental-view-price {
      margin-bottom: 12px;
  }
}

.rental-view-summary__image[tabindex="-1"]:focus {
  outline: none;
}

@media (max-width: 767px) {
  .rental-view-summary__image {
    scroll-margin-top: 80px;
  }
}