@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-light: #EFF6FF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --yellow-50: #FFFBEB;
  --yellow-200: #FDE68A;
  --yellow-800: #92400E;
  --red-50: #FEF2F2;
  --red-700: #B91C1C;
  --white: #FFFFFF;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── 레이아웃 ── */
.site-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ── 헤더 ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.site-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}
.site-nav { display: flex; gap: 24px; }
.site-nav a {
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 500;
}
.site-nav a:hover { color: var(--blue); text-decoration: none; }

/* ── 브레드크럼 ── */
.breadcrumb {
  font-size: 13px;
  color: var(--gray-500);
  padding: 12px 0;
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb span { margin: 0 6px; }

/* ── 콘텐츠 레이아웃 ── */
.content-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  padding: 24px 0 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .content-wrap { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ── 메인 콘텐츠 ── */
.main-content { min-width: 0; }

.page-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  margin-bottom: 8px;
}
.date-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.intro-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.seo-question {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 24px 0 8px;
}

/* ── 광고 자리 ── */
.ad-banner {
  background: var(--gray-100);
  border: 1px dashed var(--gray-300, #D1D5DB);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 13px;
  margin: 20px 0;
  min-height: 90px;
}
.ad-banner.rect { min-height: 250px; }
.ad-article { margin: 24px 0; }

/* ── 라인업 탭 ── */
.lineup-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 16px 0 20px;
  border-bottom: 1px solid #E2E8F0;
}
.lineup-tab-btn {
  padding: 10px 4px;
  border: none;
  background: transparent;
  color: #64748B;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.lineup-tab-btn:hover {
  color: #2563EB;
}
.lineup-tab-btn.active {
  color: #2563EB;
  border-bottom-color: #2563EB;
  font-weight: 700;
}

.lineup-panel {
  display: none;
}
.lineup-panel.active {
  display: block;
}

/* ── 기간 탭 & 렌트/리스 탭 (세그먼트 탭 스타일 통합) ── */
.period-tabs,
.type-tabs {
  display: inline-flex;
  background: #F1F5F9;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  gap: 2px;
  margin-bottom: 16px;
}

.period-tabs {
  margin-top: 4px;
  margin-right: 12px; /* 가로 나열 시 여백 */
}

.period-tab-btn,
.type-tab-btn {
  padding: 6px 16px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #64748B;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.period-tab-btn:hover,
.type-tab-btn:hover {
  color: #0F172A;
}

.period-tab-btn.active,
.type-tab-btn.active {
  background: #FFFFFF;
  color: #2563EB;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  font-weight: 700;
}

.period-panel {
  display: none;
}
.period-panel.active {
  display: block;
}

.type-panel {
  display: none;
}
.type-panel.active {
  display: block;
}

/* ── 트림별 카드 컨테이너 ── */
.trims-cards-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.trim-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* 카드 상단 헤더 */
.trim-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  flex-wrap: wrap;
}

.trim-card-badge {
  background: #E2E8F0;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.trim-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
  flex-grow: 1;
}

.trim-card-price {
  font-size: 12.5px;
  color: #64748B;
  font-weight: 500;
  background: #F1F5F9;
  padding: 2px 8px;
  border-radius: 4px;
}

/* 카드 내부 테이블 래퍼 */
.trim-card .price-table-wrap {
  overflow-x: auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

/* 테이블 헤더 */
.price-table th {
  background: #F1F5F9;
  color: #475569;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 12.5px;
  border-bottom: 1px solid #E2E8F0;
  text-align: right;
}

.price-table th.th-opt {
  text-align: left;
  width: 30%;
}

.price-table th.th-price {
  text-align: right;
  width: 20%;
}

/* 바디 셀 */
.price-table td {
  padding: 12px 18px;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
  color: #334155;
  background: #FFFFFF;
}

.price-table tbody tr:last-child td {
  border-bottom: none;
}

/* 옵션 셀 */
.td-options {
  text-align: left;
  vertical-align: top;
}

.option-list {
  max-height: 64px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}

.option-list::-webkit-scrollbar {
  width: 3px;
}

.option-list::-webkit-scrollbar-track {
  background: transparent;
}

.option-list::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 2px;
}

.option-item {
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
}

.option-none {
  font-size: 12px;
  color: #94A3B8;
  font-weight: 500;
}

/* 가격 열 */
.td-price {
  text-align: right;
  font-weight: 500;
}

.price-range {
  color: #2563EB;
  font-weight: 700;
  font-size: 13.5px;
}

.price-na {
  color: #CBD5E1;
  font-size: 12.5px;
  font-weight: 500;
}

/* 호버 동기화 하이라이트 (JS를 통해 클래스 부여됨) */
.price-table tr.hover-active td,
.price-table td.td-trim.hover-active {
  background-color: #F0F7FF !important;
}



/* ── 본문 텍스트 ── */
.seo-sub-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 32px 0 12px;
}
.body-text {
  font-size: 15px;
  color: var(--gray-700);
  margin: 16px 0;
  line-height: 1.7;
}

/* ── 면책 박스 ── */
.disclaimer-box {
  background: var(--yellow-50);
  border: 1px solid var(--yellow-200);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 24px 0;
  font-size: 13px;
  color: var(--yellow-800);
  line-height: 1.7;
}
.disclaimer-box strong { display: block; margin-bottom: 4px; }

/* ── 관련 차종 링크 ── */
.related-section { margin: 28px 0 0; }
.related-section h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.related-link {
  padding: 6px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  font-size: 13px;
  color: var(--gray-700);
  background: var(--white);
  transition: all 0.15s;
}
.related-link:hover {
  border-color: var(--blue);
  color: var(--blue);
  text-decoration: none;
  background: var(--blue-light);
}

/* ── 사이드바 ── */
.sidebar { position: sticky; top: 76px; }
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.sidebar-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: var(--gray-700); }
.sidebar-links { display: flex; flex-direction: column; gap: 8px; }
.sidebar-links a { font-size: 14px; color: var(--gray-700); }
.sidebar-links a:hover { color: var(--blue); }

/* ── 모델 그리드 (브랜드/홈 페이지) ── */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.model-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  transition: all 0.15s;
  box-shadow: var(--shadow);
}
.model-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.model-card-name { font-weight: 600; color: var(--gray-900); font-size: 15px; }
.model-card-price { font-size: 13px; color: var(--blue); margin-top: 4px; }
.model-card-brand { font-size: 12px; color: var(--gray-400); }

/* ── 브랜드 그리드 ── */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin: 20px 0;
}
.brand-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  color: var(--gray-700);
  transition: all 0.15s;
  box-shadow: var(--shadow);
}
.brand-card:hover {
  border-color: var(--blue);
  color: var(--blue);
  text-decoration: none;
  background: var(--blue-light);
}

/* ── 푸터 ── */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 24px 0;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.footer-disclaimer { font-size: 12px; color: var(--gray-400); margin-bottom: 12px; line-height: 1.6; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: var(--gray-500); }

/* ── 섹션 헤딩 ── */
h2.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 28px 0 12px;
}

/* ── 플로팅 스크롤 버튼 (상단/하단 이동) ── */
.floating-scroll-nav {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
}

.scroll-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.scroll-btn:hover {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

@media (max-width: 768px) {
  .floating-scroll-nav {
    right: 14px;
    bottom: 18px;
    gap: 6px;
  }
  .scroll-btn {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }
}
