/* ── Reset & Base ────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  color: #1a1a2e;
  background: #f8f9fb;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Header ──────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 2px solid #2d8a4e;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.site-header .inner {
  display: flex; align-items: center; gap: 24px;
  padding-top: 12px; padding-bottom: 12px;
}
.logo {
  font-size: 1.4rem; font-weight: 800; color: #2d8a4e;
  white-space: nowrap;
}
.logo span { color: #1a1a2e; }
.gnb { display: flex; gap: 16px; flex: 1; }
.gnb a {
  font-size: .9rem; font-weight: 600; color: #555;
  padding: 6px 10px; border-radius: 6px;
  transition: all .2s;
}
.gnb a:hover, .gnb a.active { color: #2d8a4e; background: #edf7f1; }
.btn-call {
  background: #2d8a4e; color: #fff !important;
  padding: 8px 18px; border-radius: 24px;
  font-size: .88rem; font-weight: 700;
  white-space: nowrap;
  transition: background .2s;
}
.btn-call:hover { background: #236e3e; }

/* ── Hero ────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1a5c35 0%, #2d8a4e 60%, #3dab64 100%);
  color: #fff;
  padding: 60px 0 40px;
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 12px;
}
.hero h1 span { font-size: .75em; opacity: .9; }
.hero-sub { font-size: .95rem; opacity: .85; margin-bottom: 32px; }

/* 시세표 */
.price-table-wrap {
  background: rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 16px;
  overflow-x: auto;
}
.price-table {
  width: 100%; border-collapse: collapse;
  font-size: .88rem; color: #fff;
}
.price-table caption {
  text-align: left; font-size: .8rem; opacity: .7;
  margin-bottom: 8px;
}
.price-table th {
  background: rgba(0,0,0,.2);
  padding: 10px 14px; text-align: left;
  font-weight: 700;
}
.price-table td { padding: 9px 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: rgba(255,255,255,.08); }

/* ── Filter ──────────────────────────────── */
.filter-section {
  background: #fff;
  border-bottom: 1px solid #e8ecf0;
  padding: 16px 0;
  position: sticky; top: 64px; z-index: 90;
}
.type-tabs {
  display: flex; gap: 8px; margin-bottom: 14px;
}
.tab-btn {
  padding: 8px 20px; border-radius: 24px;
  border: 2px solid #dde4ea;
  background: #fff; cursor: pointer;
  font-size: .9rem; font-weight: 600; color: #666;
  transition: all .2s;
}
.tab-btn.active {
  border-color: #2d8a4e;
  background: #edf7f1; color: #2d8a4e;
}
.tab-btn:hover { border-color: #2d8a4e; color: #2d8a4e; }

.filter-form { }
.filter-row {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end;
}
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-group label { font-size: .78rem; color: #888; font-weight: 600; }
.filter-group select {
  padding: 8px 12px; border: 1px solid #dde4ea;
  border-radius: 8px; font-size: .88rem; color: #333;
  background: #fff; cursor: pointer;
  min-width: 120px;
}
.filter-group select:focus { outline: none; border-color: #2d8a4e; }

/* ── Car List ─────────────────────────────── */
.car-list-section { padding: 32px 0; }
.result-count {
  font-size: .9rem; color: #555; margin-bottom: 20px;
}
.result-count strong { color: #2d8a4e; font-size: 1rem; }

.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.car-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px 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,.12);
}
.car-card a { display: block; }

.card-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #eaeaea;
}
.card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.car-card:hover .card-thumb img { transform: scale(1.04); }

.badge-hybrid {
  position: absolute; top: 10px; left: 10px;
  background: #2d8a4e; color: #fff;
  font-size: .72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
}

.card-info { padding: 14px 16px; }
.card-name {
  font-size: 1rem; font-weight: 700; color: #1a1a2e;
  margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-trim {
  font-size: .8rem; color: #666;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 8px;
}
.card-spec {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-size: .78rem; color: #888; margin-bottom: 10px;
}
.card-spec li::after { content: '·'; margin-left: 8px; }
.card-spec li:last-child::after { content: ''; }
.card-price {
  font-size: 1.2rem; font-weight: 800; color: #2d8a4e;
}

/* ── Pagination ───────────────────────────── */
.pagination {
  display: flex; gap: 6px; justify-content: center;
  margin-top: 40px; flex-wrap: wrap;
}
.page-btn {
  padding: 8px 14px; border-radius: 8px;
  border: 1px solid #dde4ea;
  background: #fff; color: #555;
  font-size: .88rem; font-weight: 600;
  transition: all .2s; cursor: pointer;
}
.page-btn:hover { border-color: #2d8a4e; color: #2d8a4e; }
.page-btn.active {
  background: #2d8a4e; color: #fff;
  border-color: #2d8a4e;
}

.no-result {
  text-align: center; padding: 80px 20px;
  color: #888; font-size: 1rem;
}

/* ── FAQ ──────────────────────────────────── */
.faq-section {
  background: #fff; padding: 60px 0;
  border-top: 1px solid #e8ecf0;
}
.faq-section h2 {
  font-size: 1.5rem; font-weight: 800;
  color: #1a1a2e; margin-bottom: 32px;
}
.faq-item {
  border-bottom: 1px solid #f0f3f6;
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-size: 1.05rem; font-weight: 700;
  color: #2d8a4e; margin-bottom: 10px;
}
.faq-item p { font-size: .95rem; color: #444; line-height: 1.75; }

/* ── Footer ───────────────────────────────── */
.site-footer {
  background: #1a1a2e; color: #bbb;
  padding: 40px 0;
  font-size: .88rem; line-height: 2;
}
.site-footer strong { color: #fff; font-size: 1rem; }
.site-footer a { color: #4db87a; }
.footer-update { margin-top: 12px; color: #777; }
.footer-copy { color: #555; font-size: .8rem; }

/* ── Detail Page ──────────────────────────── */
.breadcrumb {
  background: #f4f6f9;
  border-bottom: 1px solid #e8ecf0;
  padding: 10px 0;
  font-size: .85rem; color: #888;
}
.breadcrumb a { color: #2d8a4e; }
.breadcrumb a:hover { text-decoration: underline; }

.detail-main { padding: 32px 0; }
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Gallery */
.gallery-section { }
.gallery-main {
  position: relative;
  aspect-ratio: 4/3;
  background: #eaeaea;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}
.gallery-main img {
  width: 100%; height: 100%; object-fit: cover;
}
.gallery-badge {
  position: absolute; top: 14px; left: 14px;
  background: #2d8a4e; color: #fff;
  font-size: .8rem; font-weight: 700;
  padding: 4px 14px; border-radius: 20px;
}
.gallery-prev, .gallery-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45); color: #fff;
  border: none; cursor: pointer;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-prev:hover, .gallery-next:hover { background: rgba(0,0,0,.7); }

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.gallery-thumbs li { }
.gallery-thumbs img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 6px; cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s, opacity .2s;
  opacity: .7;
}
.gallery-thumbs img:hover, .gallery-thumbs img.active {
  border-color: #2d8a4e; opacity: 1;
}

/* Detail Info */
.detail-info { }
.detail-title {
  font-size: 1.7rem; font-weight: 800; color: #1a1a2e;
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.badge-hybrid-lg {
  font-size: .7em; background: #2d8a4e; color: #fff;
  padding: 4px 14px; border-radius: 20px;
  vertical-align: middle;
}
.detail-trim { font-size: 1rem; color: #666; margin-bottom: 20px; }
.detail-price {
  font-size: 2rem; font-weight: 900; color: #2d8a4e;
  margin-bottom: 24px;
}

.spec-table {
  width: 100%; border-collapse: collapse;
  font-size: .92rem; margin-bottom: 24px;
}
.spec-table caption { display: none; }
.spec-table th {
  background: #f4f6f9; width: 30%;
  padding: 10px 14px; text-align: left;
  font-weight: 700; color: #555;
  border-bottom: 1px solid #e8ecf0;
}
.spec-table td {
  padding: 10px 14px; color: #333;
  border-bottom: 1px solid #e8ecf0;
}

.hybrid-benefit-box {
  background: #edf7f1; border-left: 4px solid #2d8a4e;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px; margin-bottom: 24px;
}
.hybrid-benefit-box h2 {
  font-size: 1rem; font-weight: 700; color: #2d8a4e;
  margin-bottom: 10px;
}
.hybrid-benefit-box ul { display: flex; flex-direction: column; gap: 6px; }
.hybrid-benefit-box li { font-size: .9rem; color: #333; }

.cta-box { text-align: center; }
.btn-primary {
  display: inline-block;
  background: #2d8a4e; color: #fff;
  padding: 16px 40px; border-radius: 50px;
  font-size: 1.1rem; font-weight: 800;
  transition: background .2s, transform .15s;
  margin-bottom: 10px;
}
.btn-primary:hover { background: #236e3e; transform: scale(1.02); }
.cta-sub { font-size: .82rem; color: #888; }

/* ── Responsive ───────────────────────────── */
@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
  .gnb { display: none; }
}
@media (max-width: 600px) {
  .car-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero { padding: 40px 0 28px; }
  .hero h1 { font-size: 1.4rem; }
  .price-table-wrap { display: none; }
  .filter-row { gap: 8px; }
  .filter-group select { min-width: 90px; font-size: .82rem; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 400px) {
  .car-grid { grid-template-columns: 1fr; }
}
