/* ========================================
   이미지 갤러리
======================================== */

.vehicle-gallery {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gallery-main {
    position: relative;
    background: #f1f5f9;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-main .vehicle-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.badge-popular {
    background: #fef3c7;
    color: #d97706;
}

.badge-new {
    background: #dcfce7;
    color: #16a34a;
}

.badge-recommended {
    background: #dbeafe;
    color: #2563eb;
}

.gallery-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
    pointer-events: none;
}

.gallery-prev,
.gallery-next {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s;
    color: #4b5563;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gallery-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    font-size: 0.8rem;
    color: #ffffff;
}

/* 썸네일 그리드 */
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 6px;
    padding: 12px;
    overflow-x: auto;
    overflow-y: hidden;
}

.thumb-item {
    width: 100%;
    aspect-ratio: 4/3;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: border-color 0.3s;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item.active,
.thumb-item:hover {
    border-color: #3b82f6;
}
