/* =====================================
 * 중고차 리스트 공통 변수 및 리셋
 * ===================================== */
:root {
    --used-bg: #f5f6fb;
    --used-white: #ffffff;
    --used-border: #e4e7f2;
    --used-border-strong: #d7dbf0;
    --used-card-border: #ebeef7;
    --used-text: #1f2432;
    --used-muted: #8086a4;
    --used-accent: #5e72e4;
    --used-accent-dark: #4b5bd4;
    --used-danger: #ff5c8d;
    --used-success: #32c787;
    --used-warning: #ffa943;
    --used-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--used-bg);
    color: var(--used-text);
    line-height: 1.5;
}

body.filter-open {
    overflow: hidden;
}

body.filter-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 1000;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =====================================
 * 레이아웃 구조
 * ===================================== */
.used-main {
    width: calc(100% - 48px);
    max-width: 1800px;
    margin: 40px auto 120px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    align-items: flex-start;
}

/* =====================================
 * 모바일 필터 버튼
 * ===================================== */
.mobile-filter-btn {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 24px;
    border: none;
    border-radius: 999px;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 15px;
    background: var(--used-accent);
    color: var(--used-white);
    box-shadow: var(--used-shadow);
    z-index: 900;
    cursor: pointer;
    gap: 8px;
    align-items: center;
}

/* =====================================
 * 검색 필터 영역
 * ===================================== */
.used-filter {
    background: var(--used-white);
    border-radius: 28px;
    padding: 32px 28px;
    box-shadow: var(--used-shadow);
    border: 1px solid var(--used-card-border);
    position: sticky;
    top: 110px;
    transition: transform 0.3s ease;
}

.used-filter__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.used-filter__header h2 {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
}

.used-filter__close {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--used-muted);
    cursor: pointer;
}

.filter-section {
    border-bottom: 1px solid var(--used-border);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.filter-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-section h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--used-muted);
    display: flex;
    gap: 8px;
    align-items: center;
}

.toggle-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    background: rgba(94, 114, 228, 0.08);
    padding: 6px;
    border-radius: 16px;
}

.toggle-buttons.single {
    grid-template-columns: 1fr;
    background: transparent;
    padding: 0;
}

.toggle-btn {
    border: none;
    background: transparent;
    font-weight: 700;
    color: var(--used-muted);
    border-radius: 14px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-btn.active {
    background: var(--used-white);
    color: var(--used-accent);
    box-shadow: 0 12px 30px rgba(94, 114, 228, 0.25);
}

.filter-select,
.price-input,
.mileage-input {
    width: 100%;
    border: 1px solid var(--used-border);
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 600;
    color: var(--used-text);
    background: var(--used-white);
}

.filter-select + .filter-select {
    margin-top: 12px;
}

.price-range,
.mileage-range,
.year-range {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: center;
}

.price-divider,
.mileage-divider,
.year-divider {
    text-align: center;
    font-weight: 700;
    color: var(--used-muted);
}

.filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.range-hint {
    font-size: 12px;
    color: var(--used-muted);
    margin: -6px 0 10px;
}

.range-slider {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.range-slider__track {
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
}

.range-slider__track::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 8px;
    border-radius: 999px;
    background: var(--used-border);
    transform: translateY(-50%);
    z-index: 1;
}

.range-slider__progress {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 8px;
    border-radius: 999px;
    background: var(--used-accent);
    transform: translateY(-50%);
    z-index: 2;
}

.range-slider__control {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    margin: 0;
    pointer-events: none;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    height: 0;
    z-index: 3;
    transform: translateY(-50%);
}

.range-slider__control::-webkit-slider-thumb {
    pointer-events: auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--used-accent);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    -webkit-appearance: none;
    appearance: none;
    cursor: grab;
    position: relative;
    z-index: 10;
}

.range-slider__control::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
}

.range-slider__control::-moz-range-thumb {
    pointer-events: auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--used-accent);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: grab;
}

.range-slider__control::-moz-range-thumb:active {
    cursor: grabbing;
}

.range-slider__control::-moz-range-track {
    background: transparent;
    border: none;
}

.range-slider__inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.range-slider__input-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.range-slider__input-box label {
    font-size: 12px;
    color: var(--used-muted);
    font-weight: 600;
}

.btn-reset,
.btn-apply {
    flex: 1;
    border: none;
    border-radius: 14px;
    padding: 14px 0;
    font-weight: 700;
    cursor: pointer;
}

.btn-reset {
    background: var(--used-border);
    color: var(--used-text);
}

.btn-apply {
    background: var(--used-accent);
    color: var(--used-white);
}

/* =====================================
 * 우측 컨텐츠 영역
 * ===================================== */
.used-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.banner-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-radius: 24px;
    color: var(--used-white);
    box-shadow: var(--used-shadow);
}

.banner-card__icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.25);
    font-size: 24px;
}

.banner-card__body {
    flex: 1;
}

.banner-card__body h2 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
}

.banner-card__body p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.banner-card.banner-auction {
    background: linear-gradient(135deg, #5b7cfd, #7e50ff);
}

.banner-card.banner-listing {
    background: linear-gradient(135deg, #ff5fa2, #ff9472);
}

.btn-banner {
    border: none;
    border-radius: 14px;
    padding: 12px 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.18);
    color: var(--used-white);
    cursor: pointer;
}

/* =====================================
 * 결과 헤더 및 검색
 * ===================================== */
.used-content__header {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 16px;
    align-items: center;
    background: var(--used-white);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--used-card-border);
    box-shadow: var(--used-shadow);
}

.search-bar {
    /* 검색 입력과 정렬 셀렉트 높이를 통일하기 위한 고정 높이 */
    flex: 1 1 300px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--used-border);
    border-radius: 16px;
    height: 56px;
    padding: 0 16px;
    background: var(--used-white);
}

.search-bar input {
    flex: 1;
    border: none;
    font-weight: 600;
    color: var(--used-text);
    outline: none;
    height: 100%;
}

.btn-search {
    border: none;
    border-radius: 12px;
    padding: 0 18px;
    font-weight: 700;
    background: var(--used-accent);
    color: var(--used-white);
    cursor: pointer;
    height: 40px;
}

.sort-options select {
    /* 정렬 셀렉트가 검색 영역과 동일 높이를 갖도록 설정 */
    border-radius: 14px;
    border: 1px solid var(--used-border);
    padding: 0 16px;
    font-weight: 600;
    background: var(--used-white);
    min-width: 150px;
    height: 56px;
    line-height: 56px;
}

/* =====================================
 * 차량 카드 그리드
 * ===================================== */
.car-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 40px;
}

/* 데스크톱 (1024px 이상) - 3칸 */
@media (min-width: 1024px) {
    .car-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

.car-card-used {
    background: var(--used-white);
    border-radius: 24px; /* 카드의 시각적 부피를 줄이기 위한 완만한 곡률 */
    border: 1px solid var(--used-card-border);
    box-shadow: var(--used-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.car-card-used:hover {
    transform: translateY(-6px);
}

.car-image-container {
    position: relative;
    height: 170px; /* 이미지 영역을 한 번 더 압축해 카드 전체 높이 최소화 */
    background: #eef0fb;
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-favorite {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--used-white);
    color: #ccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-favorite:hover {
    transform: scale(1.1);
}

.btn-favorite i {
    font-size: 18px;
    color: #ccc;
    transition: color 0.3s ease;
}

.btn-favorite.active i {
    color: #ff6b6b;
    font-weight: 900;
}

.car-info {
    padding: 14px 18px 16px; /* 카드 내부 여백을 추가로 축소 */
    display: flex;
    flex-direction: column;
    gap: 8px; /* 텍스트 블록 간 간격 축소 */
}

.car-brand {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px; /* 제조사 배지 패딩 축소 */
    border-radius: 10px;
    background: #f0f0f0;
    font-size: 11px;
    font-weight: 700;
    color: #666;
    margin-bottom: 4px; /* 브랜드와 차량명 간 간격 축소 */
}

.car-title {
    margin: 0;
    font-size: 16px; /* 제목 폰트 축소 */
    font-weight: 700;
    color: #333;
}

.car-details,
.car-specs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: #666;
    font-size: 12px;
    line-height: 1.35; /* 라인 높이 축소로 정보 블록 높이 최소화 */
}

.car-details i,
.car-specs i {
    margin-right: 6px;
    color: #5e72e4;
    font-size: 12px;
}

.car-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.price-label {
    font-size: 12px;
    color: #999;
    font-weight: 600;
}

.price-amount {
    font-size: 20px;
    font-weight: 800;
    color: #5e72e4;
}

/* 상세보기 버튼: 신차 리스트와 동일한 그래디언트 스타일 */
.btn-detail {
    width: 100%;
    border: none;
    border-radius: 10px; /* 버튼 곡률을 줄여 컴팩트하게 표현 */
    padding: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--used-white);
    background: linear-gradient(135deg, #5e72e4 0%, #825ee4 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(94, 114, 228, 0.2);
}

.btn-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(94, 114, 228, 0.4);
}

/* =====================================
 * 페이지네이션
 * ===================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--used-white);
    color: var(--used-muted);
    box-shadow: var(--used-shadow);
    cursor: pointer;
    font-weight: 700;
}

.page-btn.active {
    background: var(--used-accent);
    color: var(--used-white);
}

/* =====================================
 * 반응형 처리
 * ===================================== */
@media (max-width: 1200px) {
    .used-main {
        grid-template-columns: 300px 1fr;
    }
}

@media (max-width: 1024px) {
    .used-main {
        grid-template-columns: 1fr;
        margin: 24px auto 80px;
    }

    .used-filter {
        position: fixed;
        inset: 0;
        top: 0;
        width: 100%;
        height: 100vh;
        border-radius: 0;
        transform: translateX(-100%);
        z-index: 1100;
        overflow-y: auto;
    }

    .used-filter.is-open {
        transform: translateX(0);
    }

    .mobile-filter-btn {
        display: inline-flex;
    }

    .used-content__header {
        flex-direction: column;
    }

    .search-bar,
    .sort-options,
    .used-content__title {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .banner-grid {
        grid-template-columns: 1fr;
    }

    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-search {
        width: 100%;
    }
}

/* =====================================
 * 로딩/에러/빈 상태 메시지
 * ===================================== */
.loading-message,
.error-message,
.empty-message {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--used-muted);
    gap: 16px;
}

.loading-message i,
.error-message i,
.empty-message i {
    font-size: 48px;
    color: var(--used-accent);
}

.error-message i {
    color: var(--used-danger);
}

.empty-message p,
.error-message p {
    font-size: 16px;
    margin: 0;
}

.btn-register-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--used-accent);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-register-link:hover {
    background: var(--used-accent-dark);
}

/* 결과 카운트 */
.result-count {
    font-size: 15px;
    font-weight: 600;
    color: var(--used-text);
}

/* 판매유형 배지 */
.sale-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.sale-type-badge.auction {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
}

.sale-type-badge.normal {
    background: linear-gradient(135deg, var(--used-accent), var(--used-accent-dark));
    color: #fff;
}

/* =====================================
 * 경매 상세 모달 스타일
 * ===================================== */
.auction-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 2000;
    overflow-y: auto;
}

.auction-detail-modal.is-open {
    display: block;
}

.auction-detail-modal__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.auction-detail-modal__header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.auction-detail-modal__back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.auction-detail-modal__back:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.auction-detail-modal__title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.auction-detail-modal__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 32px 0 100px;
}

/* 갤러리 영역 */
.auction-detail__gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auction-detail__main-image {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f5f9;
}

.auction-detail__main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auction-detail__thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.thumbnail-item.active {
    border-color: var(--used-accent);
}

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

.auction-detail__photo-tabs {
    display: flex;
    gap: 8px;
}

.photo-tab {
    padding: 10px 20px;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.photo-tab.active {
    background: var(--used-accent);
    color: #fff;
}

.no-photos {
    color: #94a3b8;
    font-size: 14px;
    padding: 20px;
    text-align: center;
}

/* 차량 정보 영역 */
.auction-detail__info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auction-detail__car-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auction-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    width: fit-content;
}

.auction-detail__car-name {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 8px 0 0;
}

.auction-detail__car-number {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

/* 차량 스펙 */
.auction-detail__specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 16px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spec-item i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    color: var(--used-accent);
    font-size: 16px;
}

.spec-label {
    font-size: 13px;
    color: #64748b;
}

.spec-value {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-left: auto;
}

/* 경매 현황 */
.auction-detail__bid-status {
    padding: 24px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 16px;
}

.auction-detail__bid-status h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 16px;
}

.bid-status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.bid-status-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bid-status-label {
    font-size: 13px;
    color: #92400e;
}

.bid-status-value {
    font-size: 20px;
    font-weight: 700;
    color: #78350f;
}

.bid-status-value.highlight {
    color: #dc2626;
}

/* 입찰 현황 설명 */
.bid-status-desc {
    font-size: 12px;
    color: #b45309;
    margin: 4px 0 0;
}

/* 차량 상세 정보 */
.auction-detail__vehicle-info {
    padding: 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.auction-detail__vehicle-info h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.vehicle-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
}

.vehicle-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.vehicle-info-item:last-child {
    border-bottom: none;
}

.vehicle-info-label {
    font-size: 13px;
    color: #64748b;
    flex-shrink: 0;
}

.vehicle-info-value {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    text-align: right;
    word-break: break-word;
}

/* 차량 설명 */
.auction-detail__description {
    padding: 24px;
    background: #f8fafc;
    border-radius: 16px;
}

.auction-detail__description h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
}

.auction-detail__description p {
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
    margin: 0;
    white-space: pre-wrap;
}

/* 내 입찰 정보 */
.auction-detail__my-bid {
    padding: 24px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-radius: 16px;
}

.auction-detail__my-bid h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1e40af;
    margin: 0 0 16px;
}

.my-bid-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.my-bid-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.my-bid-label {
    font-size: 14px;
    color: #1e40af;
}

.my-bid-value {
    font-size: 15px;
    font-weight: 600;
    color: #1e3a8a;
}

/* 플로팅 경매신청 버튼 */
.auction-floating-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(238, 90, 36, 0.4);
    transition: all 0.3s;
    z-index: 2001;
}

.auction-floating-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(238, 90, 36, 0.5);
}

.auction-floating-btn i {
    font-size: 20px;
}

/* =====================================
 * 경매 신청 모달 스타일
 * ===================================== */
.auction-bid-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
}

.auction-bid-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auction-bid-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.auction-bid-modal__content {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: 20px;
    max-height: 90vh;
    overflow-y: auto;
}

.auction-bid-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.auction-bid-modal__header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.auction-bid-modal__close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.auction-bid-modal__close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.auction-bid-modal__form {
    padding: 24px;
}

.auction-bid-modal__form .form-group {
    margin-bottom: 20px;
}

.auction-bid-modal__form label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.auction-bid-modal__form label .required {
    color: #dc2626;
}

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-with-unit input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.input-with-unit input:focus {
    outline: none;
    border-color: var(--used-accent);
}

.input-with-unit .unit {
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
}

.form-hint {
    font-size: 13px;
    color: #64748b;
    margin-top: 8px;
}

.form-hint strong {
    color: #dc2626;
}

.auction-bid-modal__form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s;
}

.auction-bid-modal__form textarea:focus {
    outline: none;
    border-color: var(--used-accent);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form-actions .btn-cancel {
    flex: 1;
    padding: 14px;
    background: #f1f5f9;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.form-actions .btn-cancel:hover {
    background: #e2e8f0;
}

.form-actions .btn-submit {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.form-actions .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(238, 90, 36, 0.3);
}

/* 경매 완료 배지 */
.bid-complete-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 24px;
    background: rgba(34, 197, 94, 0.95);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    z-index: 5;
}

/* 반응형 - 경매 상세 모달 */
@media (max-width: 991px) {
    .auction-detail-modal__body {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .auction-detail__specs {
        grid-template-columns: 1fr;
    }

    .vehicle-info-grid {
        grid-template-columns: 1fr;
    }

    .auction-floating-btn {
        bottom: 20px;
        right: 20px;
        padding: 14px 24px;
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    .auction-detail-modal__container {
        padding: 0 16px;
    }

    .auction-detail-modal__header {
        padding: 16px 0;
    }

    .auction-detail-modal__back span {
        display: none;
    }

    .auction-detail-modal__title {
        font-size: 18px;
    }

    .auction-detail__car-name {
        font-size: 22px;
    }

    .bid-status-grid {
        grid-template-columns: 1fr;
    }

    .auction-floating-btn {
        left: 20px;
        right: 20px;
        justify-content: center;
    }

    .auction-bid-modal__content {
        margin: 10px;
        border-radius: 16px;
    }
}

/* =====================================
 * 일반 매물 상세 모달 (전체화면)
 * ===================================== */
.used-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 2000;
    overflow-y: auto;
}

.used-detail-modal.is-open {
    display: block;
}

.used-detail-modal__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.used-detail-modal__header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.used-detail-modal__back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.used-detail-modal__back:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.used-detail-modal__title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.used-detail-modal__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 32px 0 120px;
}

/* 갤러리 영역 */
.used-detail__gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.used-detail__main-image {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.used-detail__main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.used-detail__main-image .no-photos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
}

.used-detail__main-image .no-photos i {
    font-size: 48px;
}

.used-detail__thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0;
}

.used-detail__thumbnails .thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.used-detail__thumbnails .thumbnail-item.active {
    border-color: #5e72e4;
}

.used-detail__thumbnails .thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 정보 영역 */
.used-detail__info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.used-detail__vehicle-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.used-badge-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.used-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.used-status-badge.status-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.used-status-badge.status-sold {
    background: #64748b;
    color: #fff;
}

.used-status-badge.status-expired {
    background: #94a3b8;
    color: #fff;
}

.used-exposure-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.used-exposure-badge.expired {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

.used-detail__car-name {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    margin: 8px 0 0;
}

.used-detail__car-number {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

.used-detail__price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 12px;
}

.used-detail__price .price-label {
    font-size: 14px;
    color: #92400e;
    font-weight: 600;
}

.used-detail__price .price-amount {
    font-size: 28px;
    font-weight: 800;
    color: #dc2626;
}

/* 차량 스펙 */
.used-detail__specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
}

.used-detail__specs .spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.used-detail__specs .spec-item i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    color: #5e72e4;
    font-size: 14px;
}

.used-detail__specs .spec-label {
    font-size: 13px;
    color: #64748b;
}

.used-detail__specs .spec-value {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-left: auto;
}

/* 상세 설명 */
.used-detail__description {
    padding: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.used-detail__description h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
}

.used-detail__description h3 i {
    color: #5e72e4;
}

.used-detail__description p {
    font-size: 14px;
    line-height: 1.7;
    color: #475569;
    margin: 0;
    white-space: pre-wrap;
}

/* 판매자 정보 */
.used-detail__seller {
    padding: 20px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-radius: 16px;
}

.used-detail__seller h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1e40af;
    margin: 0 0 16px;
}

.used-detail__seller .seller-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.used-detail__seller .seller-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.used-detail__seller .seller-label {
    font-size: 14px;
    color: #1e40af;
}

.used-detail__seller .seller-value {
    font-size: 15px;
    font-weight: 600;
    color: #1e3a8a;
}

/* 안내 메시지 */
.used-detail__notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
}

.used-detail__notice i {
    font-size: 20px;
}

.used-detail__notice p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.used-detail__notice--warning {
    background: #fef2f2;
    color: #dc2626;
}

.used-detail__notice--info {
    background: #f0f9ff;
    color: #0369a1;
}

/* 플로팅 구매 버튼 */
.used-floating-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    transition: all 0.3s;
    z-index: 2001;
}

.used-floating-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.5);
}

.used-floating-btn:disabled {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    cursor: not-allowed;
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.3);
}

.used-floating-btn:disabled:hover {
    transform: none;
}

.used-floating-btn.already-requested {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.used-floating-btn i {
    font-size: 20px;
}

/* 반응형 - 일반 매물 상세 모달 */
@media (max-width: 991px) {
    .used-detail-modal__body {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .used-detail__specs {
        grid-template-columns: 1fr;
    }

    .used-floating-btn {
        bottom: 20px;
        right: 20px;
        padding: 14px 24px;
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    .used-detail-modal__container {
        padding: 0 16px;
    }

    .used-detail-modal__header {
        padding: 16px 0;
    }

    .used-detail-modal__back span {
        display: none;
    }

    .used-detail-modal__title {
        font-size: 18px;
    }

    .used-detail__car-name {
        font-size: 22px;
    }

    .used-detail__price .price-amount {
        font-size: 24px;
    }

    .used-floating-btn {
        left: 20px;
        right: 20px;
        justify-content: center;
    }
}
