/* ===== Paperlogy 웹폰트 ===== */
@font-face {
  font-family: "Paperlogy";
  src: url("/fonts/Paperlogy-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Paperlogy";
  src: url("/fonts/Paperlogy-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Paperlogy";
  src: url("/fonts/Paperlogy-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Paperlogy";
  src: url("/fonts/Paperlogy-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Paperlogy";
  src: url("/fonts/Paperlogy-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ===== NanumSquare 웹폰트 (강조 텍스트 전용 볼드체) ===== */
@font-face {
  font-family: "NanumSquare";
  src: url("/fonts/NanumSquareB.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== 중차픽 브랜드 토큰 (라이브 사이트에서 추출) ===== */
:root {
  --blue: #3182F6;
  --blue-dark: #1B64DA;
  --blue-soft: #EAF2FF;
  --text-1: #191F28;
  --text-2: #191F28;
  --text-3: #191F28;
  --card: #FFFFFF;
  --bg: #FFFFFF;
  --border: #EEF1F4;
  --red: #F04452;
  --green: #1FA971;
  --amber: #F5A623;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 4px 20px rgba(0,0,0,.05);
  --shadow-float: 0 20px 40px rgba(49,130,246,.18);
  --font-sans: "Paperlogy", "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-bold: "NanumSquare", "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: break-word;
  padding-bottom: 76px; /* floating cta 공간 */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-bold); font-weight: 700; margin: 0 0 12px; line-height: 1.3; letter-spacing: -0.03em; }
p { margin: 0 0 8px; color: var(--text-2); font-weight: 400; line-height: 1.6; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
select, input, textarea { font-family: inherit; font-size: 15px; }

.section-inner, .header-inner, .footer-inner, .hero-inner, .cars-page-inner, .car-detail-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 버튼 ===== */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  border: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-float); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: var(--blue-soft); color: var(--blue-dark); }
.btn-secondary:hover { background: #dcebff; }
.btn-block { width: 100%; }

/* ===== 헤더 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand-logo { height: 32px; }
.site-nav { display: flex; gap: 20px; flex: 1; }
.nav-link { color: var(--text-2); font-weight: 600; font-size: 15px; }
.nav-link.active, .nav-link:hover { color: var(--blue); }
.header-cta {
  background: var(--blue); color: #fff; padding: 10px 18px;
  border-radius: 999px; font-weight: 700; font-size: 14px;
}

/* ===== 미니 히어로 (heydealer 모바일 참고 — 헤드라인 + 검색탭) ===== */
.mini-hero { padding: 28px 0 24px; background: #fff; }
.mini-hero-title { font-size: 24px; color: var(--text-1); margin-bottom: 40px; }
.search-tab {
  display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px;
  padding: 16px 20px; box-shadow: var(--shadow-card); color: var(--text-3); font-size: 15px; font-weight: 500;
}
.search-tab svg { flex-shrink: 0; }
.search-tab:hover { box-shadow: var(--shadow-float); color: var(--text-2); }

/* ===== 공통 섹션 ===== */
.section { padding: 64px 0; }
.section h2 { font-size: 28px; }
.section-desc { margin-bottom: 28px; }
.section-more { margin-top: 28px; text-align: center; }
.recommended-section, .review-section { background: #fff; }
.recommended-section--top { padding-top: 32px; }
.recommended-section h2 { margin-bottom: 4px; }
.recommended-section--tight { padding-top: 24px; }
.recommended-section--tight-below { padding-bottom: 24px; }
.recommended-section--wide-gap .carousel-track { gap: 28px; }
@media (max-width: 640px) {
  .recommended-section--wide-gap .carousel-track { gap: 22px; }
}

/* ===== 더보기 링크 (아래 화살표 통일) ===== */
.more-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--text-1); font-weight: 700; font-family: var(--font-bold); font-size: 14px; background: none; border: none;
}
.more-link svg { flex-shrink: 0; }

/* ===== 가로 캐러셀 (heydealer 메인 참고, 2줄 그리드로 가로 스크롤) ===== */
.carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto);
  grid-auto-columns: 240px; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 4px; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .car-card { scroll-snap-align: start; }
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-card); font-size: 16px; color: var(--text-2);
}
.carousel-nav.prev { left: -20px; }
.carousel-nav.next { right: -20px; }
@media (max-width: 640px) {
  .carousel-track { grid-auto-columns: calc((100vw - 60px) / 2.5); gap: 10px; }
  .carousel-track .car-card-body { padding: 10px; }
  .carousel-track .car-card-title { font-size: 12px; margin-bottom: 4px; }
  .carousel-track .car-card-meta { font-size: 10px; margin-bottom: 4px; }
  .carousel-track .car-card-price { font-size: 14px; }
  .carousel-track .badge { padding: 3px 8px; font-size: 10px; top: 6px; left: 6px; }
  .carousel-track .car-card-like { width: 24px; height: 24px; }
  .carousel-track .car-card-like svg { width: 13px; height: 13px; }
}

/* ===== 매물 카드 ===== */
.car-card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px;
}
.car-card {
  background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-card); transition: transform .15s ease, box-shadow .15s ease;
  display: block;
}
.car-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.09); }
.car-card-thumb { position: relative; aspect-ratio: 4/3; background: #f1f3f5; overflow: hidden; }
.car-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff;
}
.badge-selling, .badge.badge-selling { background: var(--blue); }
.badge-reserved, .badge.badge-reserved { background: var(--amber); }
.badge-sold, .badge.badge-sold { background: var(--text-3); }
.car-card-like {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92);
  border: none; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.15); color: var(--text-3);
}
.car-card-like svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.car-card-like.active { color: var(--red); }
.car-card-like.active svg { fill: var(--red); stroke: var(--red); }
.car-card-body { padding: 16px; }
.car-card-title { display: flex; align-items: center; gap: 2px; font-size: 16px; font-weight: 700; font-family: var(--font-bold); margin: 0 0 6px; color: var(--text-1); }
.car-card-title-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.car-card-title-arrow { flex-shrink: 0; color: var(--text-3); font-weight: 400; }
.car-card-meta { font-size: 13px; color: var(--text-3); margin-bottom: 8px; }
.car-card-auction { font-size: 13px; color: var(--text-3); margin-bottom: 2px; }
.car-card-auction s { color: var(--red); }
.car-card-price { font-size: 20px; font-weight: 700; font-family: var(--font-bold); color: var(--blue-dark); margin: 0; }
.empty-state { text-align: center; color: var(--text-3); padding: 40px 0; }

/* ===== 경매가 비교 ===== */
.price-compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.price-compare-card, .price-compare-card.detail {
  background: #fff; border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-card);
}
.pc-title { font-weight: 700; color: var(--text-1); margin-bottom: 12px; }
.pc-rows { display: flex; flex-direction: column; gap: 8px; }
.pc-row { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 10px; background: #f7f8fa; }
.pc-row span { color: var(--text-3); font-size: 13px; }
.pc-row strong { font-size: 15px; }
.pc-row.highlight { background: var(--blue-soft); }
.pc-row.highlight strong { color: var(--blue-dark); font-size: 18px; }

/* ===== OUR PROMISE 섹션 ===== */
.promise-header { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.promise-eyebrow { color: var(--text-3); font-weight: 700; font-family: var(--font-bold); letter-spacing: .12em; font-size: 12px; margin-bottom: 10px; }
.promise-header h2 { font-size: 26px; color: var(--text-1); }
.promise-desc { font-size: 14px; }
.promise-list { display: flex; flex-direction: column; gap: 20px; }
.promise-item {
  display: flex; align-items: stretch; gap: 0; background: #fafbfc; border-radius: var(--radius-lg);
  overflow: hidden; flex-wrap: wrap;
}
.promise-item--reverse { flex-direction: row-reverse; }
.promise-media { flex: 1 1 340px; min-width: 280px; }
.promise-media img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.promise-copy { flex: 1 1 300px; padding: 32px; align-self: center; }
.promise-num { display: block; color: var(--text-3); font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.promise-copy h3 { font-size: 20px; color: var(--text-1); }
.promise-copy p { font-size: 14px; }
.promise-closing { text-align: center; margin-top: 44px; }
.promise-closing h3 { font-size: 19px; color: var(--text-1); }
.promise-closing p { font-size: 14px; }
@media (max-width: 640px) {
  .promise-item, .promise-item--reverse { flex-wrap: nowrap; }
  .promise-media { flex: 0 0 38%; min-width: 0; }
  .promise-media img { min-height: 150px; }
  .promise-copy { flex: 1 1 auto; min-width: 0; padding: 14px; }
  .promise-num { font-size: 10px; margin-bottom: 4px; }
  .promise-copy h3 { font-size: 15px; margin-bottom: 6px; }
  .promise-copy p { font-size: 11px; line-height: 1.5; margin-bottom: 0; }
}

/* ===== 후기 ===== */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.review-card { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.review-card img { aspect-ratio: 4/3; object-fit: cover; }
.review-card h3 { font-size: 15px; margin: 14px 16px 6px; font-family: var(--font-sans); }
.review-card p { font-size: 13px; margin: 0 16px 10px; }
.review-tag { display: block; margin: 0 16px 16px; font-size: 12px; color: var(--blue); }

/* 작은 카드형 후기 그리드 + 더보기 */
.review-grid--compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.review-grid--compact .review-card h3 { font-size: 12px; margin: 10px 10px 4px; line-height: 1.4; }
.review-grid--compact .review-card p { font-size: 11px; margin: 0 10px 8px; line-height: 1.4; }
.review-grid--compact .review-tag { font-size: 10px; margin: 0 10px 10px; }
.review-hidden { display: none; }

/* ===== 상담 폼 ===== */
.consult-section { background: var(--blue-soft); padding: 64px 0; }
.consult-inner { max-width: 560px; margin: 0 auto; padding: 0 20px; text-align: center; }
.consult-form { background: #fff; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-card); text-align: left; margin-top: 20px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: #fafbfc; color: var(--text-1); resize: vertical;
}
.consult-result { margin-top: 12px; font-size: 14px; min-height: 20px; }
.consult-result.ok { color: var(--green); }
.consult-result.error { color: var(--red); }

/* ===== 푸터 ===== */
.site-footer { background: #f7f8fa; padding: 40px 0 100px; margin-top: 20px; }
.footer-logo { height: 24px; opacity: .7; margin-bottom: 12px; }
.footer-copy { font-size: 13px; }
.footer-biz, .footer-meta { font-size: 12px; color: var(--text-3); line-height: 1.7; }
.footer-legal-links { margin-top: 10px; }
.footer-legal-links a { font-size: 12px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; margin-right: 14px; }
.footer-admin-link { color: inherit; opacity: .45; text-decoration: none; margin-left: 2px; }
.footer-admin-link:hover { opacity: 1; }

/* ===== 플로팅 CTA ===== */
.floating-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: flex; box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.floating-cta-btn { flex: 1; text-align: center; padding: 16px 0; font-weight: 700; font-size: 15px; }
.floating-cta-btn.phone { background: var(--text-1); color: #fff; }
.floating-cta-btn.consult { background: var(--blue); color: #fff; }

/* ===== 매물 목록 페이지 (encar/heydealer 참고 — 좌측 필터 사이드바 + 우측 리스트) ===== */
.cars-page { padding: 32px 0 64px; }
.cars-page-inner { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }

.filter-sidebar {
  position: sticky; top: calc(var(--header-h) + 16px);
  display: flex; flex-direction: column; gap: 4px;
}
.filter-promo {
  background: var(--text-1); color: #fff; border-radius: var(--radius-md);
  padding: 20px; margin-bottom: 16px;
}
.filter-promo-eyebrow { color: #8FB8FF; font-weight: 700; font-family: var(--font-bold); font-size: 12px; margin-bottom: 8px; }
.filter-promo h3 { color: #fff; font-size: 18px; margin: 0; }

.filter-group-block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; margin-bottom: 10px; }
.filter-group-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.filter-reset-link { background: none; border: none; color: var(--blue); font-size: 12px; font-weight: 600; padding: 0; }

.filter-accordion { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 4px 16px; margin-bottom: 10px; }
.filter-accordion summary { padding: 12px 0; font-weight: 700; font-size: 14px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.filter-accordion summary::-webkit-details-marker { display: none; }
.filter-accordion summary::after { content: '⌄'; color: var(--text-3); }
.filter-accordion[open] summary::after { content: '⌃'; }
.filter-accordion .filter-row-list { padding-bottom: 8px; }

.filter-select {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: #fafbfc; color: var(--text-1); font-size: 13px;
}
.filter-range-row { display: flex; align-items: center; gap: 6px; }
.filter-range-input {
  width: 0; flex: 1 1 0; min-width: 0; padding: 10px 10px; border-radius: 8px; border: 1px solid var(--border);
  background: #fafbfc; color: var(--text-1); font-size: 13px;
}
.filter-range-sep { color: var(--text-3); font-size: 13px; flex-shrink: 0; }
.filter-range-unit { color: var(--text-3); font-size: 12px; flex-shrink: 0; }

.filter-row-list { max-height: 260px; overflow-y: auto; }
.filter-row {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  background: none; border: none; text-align: left; padding: 8px 6px; border-radius: 8px;
  font-size: 13px; color: var(--text-2);
}
.filter-row:hover { background: #f7f8fa; }
.filter-row.active { background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; }
.filter-row span { color: var(--text-3); font-size: 12px; }
.filter-row.active span { color: var(--blue-dark); }

.cars-list-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.toolbar-right { display: flex; gap: 8px; align-items: center; }
#sort-select { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); background: #fff; font-size: 13px; }
.view-toggle { display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.view-toggle button { width: 36px; height: 36px; background: #fff; border: none; border-left: 1px solid var(--border); font-size: 15px; color: var(--text-3); }
.view-toggle button:first-child { border-left: none; }
.view-toggle button.active { background: var(--blue-soft); color: var(--blue-dark); }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination button {
  min-width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: #fff; font-weight: 600;
}
.pagination button.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* 목록형 뷰 (encar 일반등록 스타일) */
.car-row-list { display: flex; flex-direction: column; gap: 12px; }
.car-row {
  display: grid; grid-template-columns: 140px 1fr auto; gap: 16px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px;
}
.car-row:hover { border-color: var(--blue); }
.car-row-thumb { position: relative; width: 140px; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: #f1f3f5; }
.car-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.car-row-thumb .badge { padding: 3px 8px; font-size: 11px; top: 6px; left: 6px; }
.car-row-title { font-size: 15px; margin: 0 0 6px; color: var(--text-1); font-family: var(--font-sans); }
.car-row-meta { font-size: 12px; color: var(--text-3); margin: 0; }
.car-row-price { text-align: right; white-space: nowrap; }
.car-row-auction { font-size: 12px; color: var(--text-3); margin: 0; }
.car-row-auction s { color: var(--red); }
.car-row-selling { font-size: 18px; font-weight: 700; font-family: var(--font-bold); color: var(--blue-dark); margin: 0; }

/* ===== 매물 상세 페이지 ===== */
.car-detail { padding: 28px 0 64px; }
.car-detail-inner.detail-lower { display: block; margin-top: 32px; }
.car-detail > .car-detail-inner:first-child { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.detail-gallery { min-width: 0; }

/* 스와이프 슬라이더 (매물 사진용) */
.gallery-slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #f1f3f5; min-width: 0; }
.gallery-slide-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-lg);
}
.gallery-slide-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.gallery-slide img { display: block; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-zoom-hint {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  background: rgba(0,0,0,.55); color: #fff; border: none; border-radius: 999px;
  padding: 8px 14px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumb { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: .6; flex-shrink: 0; }
.gallery-thumb.active { opacity: 1; outline: 2px solid var(--blue); }

/* 성능점검기록부: 슬라이드 없이 전체 페이지를 한번에 표시, 클릭 시 확대 */
.inspection-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px;
}
.inspection-page {
  position: relative; border-radius: var(--radius-md); overflow: hidden; background: #f1f3f5;
  border: 1px solid var(--border); cursor: zoom-in;
}
.inspection-page img { display: block; width: 100%; height: auto; }
.inspection-page .gallery-zoom-hint { padding: 6px 12px; }

/* 라이트박스 (사진 확대보기) */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10,12,16,.94);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  width: 100%; height: 100%;
}
.lightbox-track::-webkit-scrollbar { display: none; }
.lightbox-track.zoomed { overflow: hidden; }
.lightbox-slide { flex: 0 0 100%; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lightbox-slide img { max-width: 92vw; max-height: 88vh; object-fit: contain; touch-action: manipulation; transition: transform .15s ease; will-change: transform; }
.lightbox-track.zoomed .lightbox-slide img { transition: none; cursor: grab; }
.lightbox-close {
  position: absolute; top: 16px; right: 16px; z-index: 5; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; border: none; font-size: 18px; cursor: pointer;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 48px; height: 48px;
  border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; border: none; font-size: 22px; cursor: pointer;
}
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }
.lightbox-hint {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 5;
  color: rgba(255,255,255,.7); font-size: 12px; background: rgba(255,255,255,.12);
  padding: 6px 14px; border-radius: 999px; pointer-events: none; white-space: nowrap;
}
.lightbox-track.zoomed ~ .lightbox-hint { display: none; }
@media (max-width: 640px) {
  .lightbox-nav { display: none; }
}

.detail-price-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px;
  position: sticky; top: calc(var(--header-h) + 16px); box-shadow: var(--shadow-card);
}
.detail-price-card h1 { font-size: 22px; font-family: var(--font-sans); color: var(--text-1); }
.detail-meta { font-size: 13px; color: var(--text-3); }
.detail-selling-price { font-size: 30px; font-weight: 700; font-family: var(--font-bold); color: var(--blue-dark); margin: 6px 0 20px; }
.detail-cta-group { display: flex; flex-direction: column; gap: 10px; }
.detail-main-col { max-width: 720px; }
.detail-block { margin-bottom: 36px; }
.detail-block h2 { font-size: 20px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.spec-table th { width: 130px; color: var(--text-3); font-weight: 600; }
.spec-table td { color: var(--text-1); font-weight: 600; }

/* ===== 개인정보처리방침 / 이용약관 ===== */
.legal-page { padding: 40px 0 64px; }
.legal-inner { max-width: 720px; }
.legal-updated { font-size: 13px; color: var(--text-3); margin-bottom: 28px; }
.legal-list { margin: 8px 0; padding-left: 20px; }
.legal-list li { color: var(--text-2); font-size: 14px; margin-bottom: 4px; line-height: 1.6; }
.legal-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 13px; }
.legal-table th, .legal-table td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; color: var(--text-2); }
.legal-table th { background: #f7f8fa; color: var(--text-1); font-weight: 700; }


/* ===== 반응형 ===== */
@media (max-width: 860px) {
  .cars-page-inner { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .car-detail > .car-detail-inner:first-child { grid-template-columns: 1fr; }
  .detail-price-card { position: static; }
  .site-nav .nav-link[href="/"] { display: none; }
  .header-cta { display: none; }
  .car-row { grid-template-columns: 96px 1fr; }
  .car-row-price { grid-column: 2; text-align: left; }
  .car-row-thumb { width: 96px; }
  .carousel-nav { display: none; }
  .car-card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .car-card-body { padding: 10px; }
  .car-card-title { font-size: 13px; margin-bottom: 4px; }
  .car-card-meta { font-size: 11px; margin-bottom: 6px; }
  .car-card-price { font-size: 15px; }
  .car-card-grid .badge { padding: 3px 8px; font-size: 10px; top: 6px; left: 6px; }
  .car-card-grid .car-card-like { width: 26px; height: 26px; }
  .car-card-grid .car-card-like svg { width: 14px; height: 14px; }
}

/* ===== Admin ===== */
.admin-body { background: #f7f8fa; padding-bottom: 40px; }
.admin-header { display: flex; align-items: center; gap: 14px; padding: 18px 24px; background: #fff; border-bottom: 1px solid var(--border); }
.admin-logo { height: 26px; }
.admin-header h1 { font-size: 18px; font-family: var(--font-sans); margin: 0; }
.admin-main { max-width: 1040px; margin: 24px auto; padding: 0 20px; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tab { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-weight: 600; }
.admin-tab.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.admin-panel { display: none; background: #fff; border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-card); }
.admin-panel.active { display: block; }
.admin-toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-toolbar input, .admin-toolbar select { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); }
.admin-toolbar button { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: #fff; font-size: 13px; cursor: pointer; }
.admin-toolbar button:disabled { opacity: .5; cursor: default; }
#admin-bulk-delete { border-color: #d33; color: #d33; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.row-duplicate { background: #fff4e5; }
.hidden-badge { display: inline-block; padding: 2px 6px; border-radius: 6px; background: #666; color: #fff; font-size: 10px; margin-left: 4px; }
.dup-badge { display: inline-block; padding: 2px 6px; border-radius: 6px; background: #d33; color: #fff; font-size: 10px; margin-left: 4px; }
.admin-table select { padding: 6px; border-radius: 8px; border: 1px solid var(--border); }
.admin-table button { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: #fff; font-size: 12px; margin-right: 4px; }
.row-upload-status { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.price-input { width: 80px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border); font-size: 13px; text-align: right; }
.admin-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 20px; }
.admin-form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.admin-form-grid input, .admin-form-grid select { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); font-weight: 400; }
.admin-upload-block { margin-bottom: 20px; padding: 16px; border: 1px dashed var(--border); border-radius: var(--radius-md); }
.admin-upload-block h3 { font-size: 14px; font-family: var(--font-sans); }
.admin-accident-rank { margin-bottom: 16px; }
.admin-accident-rank h4 { font-size: 12px; color: var(--text-3); font-weight: 700; margin: 0 0 8px; }
.admin-accident-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.admin-accident-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-2); font-weight: 600; }
.admin-accident-grid select { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); font-weight: 400; }
.admin-photo-preview { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.admin-photo-preview .thumb-wrap { position: relative; width: 96px; }
.admin-photo-preview img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.admin-photo-preview .thumb-status { font-size: 10px; color: var(--text-3); text-align: center; }
.admin-result { font-size: 13px; margin-top: 12px; }
.admin-hint { font-size: 13px; color: var(--text-3); margin-bottom: 12px; }
#admin-c2j-preview { margin: 16px 0; max-height: 320px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; padding: 12px; font-size: 12px; }
