/* ─── 기본 & 리셋 ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Malgun Gothic', '맑은 고딕', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f4f6fb;
  color: #222;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── 컨테이너 ───────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ─── 헤더 ───────────────────────────────────────────────────────────────── */
.site-header {
  background: #1a2c4e;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.hd-inner {
  display: flex; align-items: center; gap: 16px;
  height: 60px;
}
.logo {
  font-size: 1.2rem; font-weight: 700; color: #fff;
  white-space: nowrap;
}
.logo span { color: #f4a820; }
.gnav {
  display: flex; align-items: center; gap: 16px;
  margin-left: auto;
  flex-shrink: 0;
}
.gnav a { color: #cdd8ee; font-size: .9rem; transition: color .2s; }
.gnav a:hover { color: #fff; }
.btn-call {
  background: #e85420; color: #fff !important;
  padding: 7px 14px; border-radius: 6px;
  font-size: .85rem; font-weight: 600;
  white-space: nowrap;
  transition: background .2s;
}
.btn-call:hover { background: #c94218; }

/* ─── 히어로 ─────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1a2c4e 0%, #2a4a7a 100%);
  color: #fff; padding: 48px 0 40px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800; margin-bottom: 12px;
}
.hero h1 em { color: #f4a820; font-style: normal; }
.hero-lead {
  font-size: 1rem; color: #c8d8f0; max-width: 600px;
  margin: 0 auto; line-height: 1.7;
}
.hero-lead strong { color: #fff; }

/* ─── 가격표 섹션 ────────────────────────────────────────────────────────── */
.price-section { padding: 40px 0 8px; }
.price-section h2 {
  font-size: 1.3rem; font-weight: 700; color: #1a2c4e;
  margin-bottom: 16px;
}
.table-wrap { overflow-x: auto; }
.price-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  font-size: .95rem;
}
.price-table th, .price-table td {
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid #eef0f5;
}
.price-table thead tr { background: #1a2c4e; color: #fff; }
.price-table tbody tr:hover { background: #f7f9ff; }
.price-cell strong { color: #e85420; font-size: 1rem; }
.table-note { font-size: .78rem; color: #888; margin-top: 8px; }

/* ─── 필터 바 ────────────────────────────────────────────────────────────── */
.filter-bar { padding: 20px 0; }
.filter-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.filter-group {
  display: flex; align-items: center; gap: 6px; font-size: .85rem;
}
.filter-group span { color: #666; font-size: .8rem; }
.filter-group select {
  border: 1px solid #d0d5e0; border-radius: 6px;
  padding: 6px 10px; background: #fff;
  font-size: .87rem; color: #333; cursor: pointer;
  appearance: auto;
}
.filter-count {
  color: #888; font-size: .85rem; margin-left: auto;
}
.filter-count strong { color: #e85420; font-weight: 700; }
.filter-reset {
  color: #999; font-size: .8rem; text-decoration: underline;
}

/* ─── 카드 그리드 ────────────────────────────────────────────────────────── */
.car-grid-section { padding-bottom: 48px; }
.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.car-card {
  background: #fff; border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
}
.car-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.13);
}
.card-link { display: block; color: inherit; }
.card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; background: #eee; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.car-card:hover .card-img { transform: scale(1.04); }
.card-img-none {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #aaa; font-size: .85rem;
  aspect-ratio: 4/3;
}
.card-body { padding: 14px 16px 16px; }
.card-name { font-size: .92rem; font-weight: 700; color: #1a2c4e; margin-bottom: 2px; }
.card-model { font-size: .78rem; color: #888; margin-bottom: 8px; }
.card-meta {
  list-style: none; display: flex; gap: 8px;
  font-size: .8rem; color: #666; margin-bottom: 8px;
}
.card-meta li::after { content: '|'; margin-left: 8px; color: #ddd; }
.card-meta li:last-child::after { content: ''; }
.card-price {
  font-size: 1.15rem; font-weight: 800;
  color: #e85420;
}
.no-result { text-align: center; color: #888; padding: 40px 0; }

/* ─── FAQ ────────────────────────────────────────────────────────────────── */
.faq-section { background: #fff; padding: 48px 0; }
.faq-section h2 {
  font-size: 1.3rem; font-weight: 700; color: #1a2c4e;
  margin-bottom: 24px;
}
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid #e5e9f0; border-radius: 10px;
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px; cursor: pointer;
  list-style: none; display: flex; align-items: center;
  justify-content: space-between;
  background: #f8f9fc;
  transition: background .2s;
}
.faq-item summary:hover { background: #eef2fa; }
.faq-item summary::after {
  content: '+'; font-size: 1.2rem; color: #1a2c4e;
  flex-shrink: 0; margin-left: 12px;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary h3 {
  font-size: .95rem; font-weight: 600; color: #1a2c4e;
  margin: 0;
}
.faq-body { padding: 16px 20px; font-size: .9rem; line-height: 1.75; color: #444; }
.faq-body strong { color: #e85420; }

/* ─── 푸터 ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: #1a2c4e; color: #8fa3c8;
  padding: 24px 0; margin-top: 48px;
  text-align: center;
}
.footer-nap { font-size: .85rem; margin-bottom: 4px; }
.footer-copy { font-size: .78rem; color: #607090; }

/* ─── 상세 페이지 ────────────────────────────────────────────────────────── */
.detail-main { padding: 24px 0 48px; }
.breadcrumb { font-size: .82rem; color: #888; margin-bottom: 20px; }
.breadcrumb ol { list-style: none; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb li + li::before { content: '›'; color: #bbb; }
.breadcrumb a { color: #1a2c4e; text-decoration: underline; }
.breadcrumb li:last-child { color: #555; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* 갤러리 */
.gallery { }
.gallery-main {
  position: relative; overflow: hidden;
  border-radius: 12px; background: #111;
  aspect-ratio: 4/3;
}
.gallery-main img {
  width: 100%; height: 100%; object-fit: contain;
}
.gal-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.5); color: #fff;
  border: none; cursor: pointer;
  font-size: 2rem; line-height: 1;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  z-index: 2;
}
.gal-btn:hover { background: rgba(0,0,0,.8); }
.gal-btn.prev { left: 10px; }
.gal-btn.next { right: 10px; }
.gal-count {
  position: absolute; bottom: 10px; right: 12px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: .78rem; padding: 3px 8px; border-radius: 12px;
}
.gallery-thumbs {
  display: flex; gap: 6px; margin-top: 8px;
  overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: thin;
}
.gal-thumb {
  width: 68px; height: 52px; object-fit: cover;
  border-radius: 6px; cursor: pointer; flex-shrink: 0;
  border: 2px solid transparent;
  opacity: .7; transition: opacity .2s, border-color .2s;
}
.gal-thumb.active, .gal-thumb:hover { opacity: 1; border-color: #e85420; }
.no-photo {
  background: #eee; border-radius: 12px;
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  color: #aaa;
}

/* 상세 정보 */
.detail-info h1 { font-size: 1.4rem; font-weight: 800; color: #1a2c4e; margin-bottom: 4px; }
.detail-sub { color: #888; font-size: .88rem; margin-bottom: 16px; }
.detail-price {
  font-size: 2rem; font-weight: 800; color: #e85420;
  margin-bottom: 20px;
}
.spec-table {
  width: 100%; border-collapse: collapse;
  font-size: .9rem; margin-bottom: 24px;
}
.spec-table th, .spec-table td {
  padding: 10px 12px; border-bottom: 1px solid #eef0f5;
  text-align: left;
}
.spec-table th {
  width: 100px; color: #888; font-weight: 500; background: #f8f9fc;
}
.spec-table td { color: #333; }

.cta-box { text-align: center; margin-bottom: 16px; }
.btn-primary {
  display: inline-block;
  background: #e85420; color: #fff;
  padding: 14px 32px; border-radius: 8px;
  font-size: 1.05rem; font-weight: 700;
  transition: background .2s;
  width: 100%; text-align: center;
  margin-bottom: 8px;
}
.btn-primary:hover { background: #c94218; }
.cta-note { font-size: .8rem; color: #999; }
.detail-updated { font-size: .75rem; color: #bbb; text-align: right; margin-top: 8px; }

.back-cta { text-align: center; margin-top: 32px; }
.btn-outline {
  display: inline-block;
  border: 2px solid #1a2c4e; color: #1a2c4e;
  padding: 11px 28px; border-radius: 8px;
  font-size: .95rem; font-weight: 600;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: #1a2c4e; color: #fff; }

/* ─── 반응형 ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 32px 0 28px; }
  .hero h1 { font-size: 1.5rem; }
  .car-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gnav a:not(.btn-call) { display: none; }
  .filter-count { width: 100%; }
}
@media (max-width: 400px) {
  .car-grid { grid-template-columns: 1fr; }
}
