/* =============================================
   삼성카즈 118D중고시세 - Main Stylesheet
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bmw-blue: #1C69D4;
  --bmw-dark: #0A0A0A;
  --bmw-gray: #3D3D3D;
  --bmw-light: #F8F9FA;
  --bmw-border: #E0E0E0;
  --bmw-gold: #C5A028;
  --card-shadow: 0 4px 20px rgba(0,0,0,0.10);
  --radius: 10px;
}

body { font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif; background: var(--bmw-light); color: var(--bmw-dark); line-height: 1.6; }

/* ── 헤더 ── */
.s-header {
  background: var(--bmw-dark);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.s-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.s-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--bmw-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  color: #fff;
  letter-spacing: -0.5px;
}
.s-logo-text { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }
.s-logo-text span { color: var(--bmw-blue); }

.s-nav { display: flex; gap: 28px; }
.s-nav a { color: #ccc; text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.s-nav a:hover { color: #fff; }

.s-contact-btn {
  background: var(--bmw-blue);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600 !important;
}

/* ── 히어로 배너 ── */
.s-hero {
  background: linear-gradient(135deg, #0A0A0A 0%, #1a1a2e 50%, #16213e 100%);
  color: #fff;
  padding: 60px 5% 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.s-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='%23ffffff08'/%3E%3C/svg%3E");
  pointer-events: none;
}
.s-hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 12px;
  position: relative;
}
.s-hero h1 span { color: var(--bmw-blue); }
.s-hero p {
  font-size: 16px;
  color: #aaa;
  margin-bottom: 24px;
  position: relative;
}
.s-hero-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}
.s-badge {
  background: rgba(28,105,212,0.2);
  border: 1px solid rgba(28,105,212,0.5);
  color: #6eb3ff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* ── 필터 바 ── */
.s-filter-bar {
  background: #fff;
  border-bottom: 1px solid var(--bmw-border);
  padding: 14px 5%;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.s-filter-label { font-size: 13px; color: #666; font-weight: 600; }
.s-filter-tag {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid var(--bmw-border);
  background: #f0f0f0;
  color: #444;
  cursor: pointer;
}
.s-filter-tag.active { background: var(--bmw-blue); color: #fff; border-color: var(--bmw-blue); }
.s-count { margin-left: auto; font-size: 13px; color: #888; }
.s-count strong { color: var(--bmw-dark); font-weight: 700; }

/* ── 차량 그리드 ── */
.s-grid-section { padding: 32px 5% 60px; max-width: 1400px; margin: 0 auto; }
.s-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .s-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .s-grid { grid-template-columns: 1fr; } }

/* ── 차량 카드 ── */
.s-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.s-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.16); }

.s-card-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #e8e8e8;
}
.s-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.s-card:hover .s-card-img-wrap img { transform: scale(1.04); }

/* SVG 플레이스홀더 차량 이미지 */
.s-car-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--bmw-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
}
.s-card-badge.sold { background: #999; }
.s-card-badge.hot { background: #E53935; }

.s-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.s-card-model { font-size: 15px; font-weight: 700; color: var(--bmw-dark); margin-bottom: 6px; line-height: 1.4; }
.s-card-sub { font-size: 12px; color: #888; margin-bottom: 12px; }

.s-card-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
}
.s-spec-item { display: flex; flex-direction: column; }
.s-spec-label { font-size: 11px; color: #aaa; font-weight: 500; }
.s-spec-val { font-size: 13px; color: #333; font-weight: 600; }

.s-card-price { font-size: 22px; font-weight: 900; color: var(--bmw-blue); margin-bottom: 14px; }
.s-card-price small { font-size: 13px; font-weight: 500; color: #888; }

.s-card-footer { display: flex; gap: 8px; margin-top: auto; }
.s-btn-inquiry {
  flex: 1;
  background: var(--bmw-blue);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.s-btn-inquiry:hover { background: #1557b0; color: #fff; }
.s-btn-wish {
  width: 44px;
  height: 44px;
  border: 1px solid var(--bmw-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  cursor: pointer;
  color: #ccc;
  font-size: 18px;
  transition: all .2s;
  text-decoration: none;
}
.s-btn-wish:hover { border-color: #E53935; color: #E53935; }

/* ── 정보 섹션 ── */
.s-info-section {
  background: #fff;
  border-top: 1px solid var(--bmw-border);
  padding: 48px 5%;
}
.s-info-inner { max-width: 1100px; margin: 0 auto; }
.s-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 768px) { .s-info-grid { grid-template-columns: 1fr; } }
.s-info-card { text-align: center; }
.s-info-icon { font-size: 40px; margin-bottom: 12px; }
.s-info-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.s-info-card p { font-size: 14px; color: #666; line-height: 1.7; }

/* ── 상담 배너 ── */
.s-cta-section {
  background: linear-gradient(135deg, var(--bmw-blue), #0d3f8f);
  color: #fff;
  padding: 48px 5%;
  text-align: center;
}
.s-cta-section h2 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.s-cta-section p { font-size: 15px; color: rgba(255,255,255,0.85); margin-bottom: 24px; }
.s-cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--bmw-blue);
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.s-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); color: var(--bmw-blue); }

/* ── 푸터 ── */
.s-footer {
  background: #111;
  color: #888;
  padding: 36px 5%;
}
.s-footer-inner { max-width: 1100px; margin: 0 auto; }
.s-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid #2a2a2a;
  margin-bottom: 24px;
}
.s-footer-brand p { font-size: 13px; margin-top: 8px; color: #666; }
.s-footer-info { font-size: 13px; line-height: 2; }
.s-footer-info strong { color: #bbb; }
.s-footer-bottom { font-size: 12px; color: #555; text-align: center; }

/* ── 상담 모달 ── */
.s-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.s-modal-overlay.active { display: flex; }
.s-modal {
  background: #fff;
  border-radius: 12px;
  padding: 36px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
}
.s-modal h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.s-modal p { font-size: 14px; color: #666; margin-bottom: 20px; }
.s-modal-phone {
  font-size: 28px;
  font-weight: 900;
  color: var(--bmw-blue);
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.s-modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #aaa;
}
.s-modal-close:hover { color: #333; }

/* ── 반응형 ── */
@media (max-width: 768px) {
  .s-nav { display: none; }
  .s-hero { padding: 40px 5% 32px; }
  .s-filter-bar { padding: 12px 4%; }
  .s-grid-section { padding: 24px 4% 40px; }
}
