/* 차량 안내 페이지 - 디자인 & 액션 강화 */

#vehicle-details {
    padding: 24px 0 80px;
    text-align: center;
    scroll-margin-top: var(--header-height, 80px);
}

/* 썸네일 그리드 - 2줄 배치 */
.thumbnail-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    justify-content: center;
    gap: 10px 14px;
    margin-bottom: 28px;
    padding: 18px 20px;
    border: 1px solid var(--border-color, #e0e7ef);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(79, 140, 255, 0.08);
    transition: box-shadow 0.3s ease;
}
.thumbnail-grid:hover {
    box-shadow: 0 8px 28px rgba(79, 140, 255, 0.12);
}

.thumbnail-item {
    cursor: pointer;
    border: 2px solid transparent;
    padding: 6px 8px;
    transition: border-color 0.25s ease, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease, background 0.25s ease;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.thumbnail-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(79, 140, 255, 0.2);
    border-color: rgba(79, 140, 255, 0.4);
    background: #fff;
}
.thumbnail-item:active {
    transform: translateY(-1px) scale(1);
}
.thumbnail-item img {
    display: block;
    max-width: 52px;
    height: auto;
    margin-bottom: 4px;
    border-radius: 6px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.thumbnail-item:hover img {
    transform: scale(1.08);
}
.thumbnail-item.active img {
    transform: scale(1.05);
}
.thumbnail-item span {
    font-size: 0.7rem;
    color: var(--text-light, #6b7280);
    font-weight: 600;
    transition: color 0.2s ease;
    line-height: 1.2;
}
.thumbnail-item:hover span,
.thumbnail-item.active span {
    color: var(--primary-color, #4f8cff);
}
.thumbnail-item.active {
    border-color: var(--primary-color, #4f8cff);
    box-shadow: 0 4px 20px rgba(79, 140, 255, 0.28);
    background: linear-gradient(180deg, rgba(79, 140, 255, 0.08) 0%, rgba(79, 140, 255, 0.02) 100%);
}

/* 메인 이미지 영역 */
.vehicle-display-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 36px;
    margin-top: 24px;
    padding: 32px 24px 36px;
    border-top: 2px solid var(--border-color, #e0e7ef);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(79, 140, 255, 0.08);
    transition: box-shadow 0.35s ease;
}
.vehicle-display-area:hover {
    box-shadow: 0 8px 32px rgba(79, 140, 255, 0.12);
}

.vehicle-image-wrap {
    flex-basis: 45%;
    min-width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
    border-radius: 18px;
    transition: background 0.4s ease, transform 0.3s ease;
}
.vehicle-display-area:hover .vehicle-image-wrap {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

#main-vehicle-image.vehicle-main-img {
    max-width: 100%;
    height: auto;
    max-height: 360px;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(79, 140, 255, 0.15);
    object-fit: contain;
    transition: opacity 0.25s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease;
}
#main-vehicle-image.vehicle-main-img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 36px rgba(79, 140, 255, 0.2);
}
#main-vehicle-image.vehicle-img-changing {
    opacity: 0.6;
    transform: scale(0.98);
}

/* 스펙 카드 */
.vehicle-specs-card {
    flex-basis: 45%;
    min-width: 280px;
    text-align: left;
    padding: 28px 24px 24px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--border-color, #e0e7ef);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, border-color 0.25s ease;
}
.vehicle-specs-card:hover {
    box-shadow: 0 6px 24px rgba(79, 140, 255, 0.1);
    border-color: rgba(79, 140, 255, 0.2);
}

.vehicle-name-title {
    margin-top: 0;
    margin-bottom: 22px;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-dark);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    transition: color 0.2s ease;
}
.vehicle-name-title i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}
.vehicle-specs-card:hover .vehicle-name-title i {
    transform: scale(1.1);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.specs-table th,
.specs-table td {
    border: 1px solid var(--border-color, #e0e7ef);
    padding: 14px 16px;
    font-size: 0.95em;
    transition: background 0.2s ease, color 0.2s ease;
}
.specs-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-darker));
    color: #fff;
    font-weight: 700;
    text-align: center;
}
.specs-table td {
    background: var(--bg-card, #fff);
    text-align: center;
}
.specs-table tbody tr:hover td {
    background: var(--bg-light, #f6faff);
}
.specs-table tr.spec-subhead th {
    background: linear-gradient(135deg, rgba(79, 140, 255, 0.9), rgba(37, 99, 235, 0.9));
    font-size: 0.9em;
    padding: 12px 16px;
}

.vehicle-spec-note {
    margin-top: 18px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.5;
}

.vehicle-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    border-radius: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(79, 140, 255, 0.25);
    transition: background 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.vehicle-cta-btn:hover {
    background: var(--primary-darker);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(79, 140, 255, 0.35);
}
.vehicle-cta-btn:active {
    transform: translateY(-1px);
}
.vehicle-cta-btn i {
    transition: transform 0.25s ease;
}
.vehicle-cta-btn:hover i {
    transform: translateX(4px);
}

/* 반응형 */
@media (max-width: 768px) {
    #vehicle-details { padding: 20px 0 60px; }
    .thumbnail-grid { padding: 14px 12px; gap: 8px 10px; margin-bottom: 20px; }
    .thumbnail-item { padding: 5px 6px; }
    .thumbnail-item img { max-width: 44px; }
    .thumbnail-item span { font-size: 0.65rem; }
    .vehicle-display-area {
        flex-direction: column;
        align-items: center;
        padding: 24px 16px 28px;
        gap: 24px;
    }
    .vehicle-image-wrap { min-width: 100%; padding: 16px; }
    #main-vehicle-image.vehicle-main-img { max-height: 280px; }
    .vehicle-specs-card { min-width: 100%; padding: 22px 20px 20px; }
    .vehicle-name-title { font-size: 1.4rem; }
    .vehicle-cta-btn { width: 100%; justify-content: center; padding: 14px 24px; }
}

@media (max-width: 576px) {
    #vehicle-details { padding: 16px 0 50px; }
}
