/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e3a8a;
    --secondary-color: #64748b;
    --accent-color: #10b981;
    --success-color: #059669;
    --error-color: #dc2626;
    --warning-color: #d97706;
    --text-color: #1e293b;
    /* Deep Ocean Blue Text */
    --text-light: #64748b;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    /* Lighter cool gray */
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 0.5rem;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    letter-spacing: -0.02em;
}

/* 컨테이너 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* 네비게이션 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.nav-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s;
}

/* 메인 컨텐츠 */
.main-content {
    flex: 1;
    padding: 0;
}

/* 플래시 메시지 */
.flash-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    animation: slideDown 0.3s ease-out;
}

.flash-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.flash-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--error-color);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 버튼 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #475569;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-danger {
    background-color: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

/* 히어로 섹션 */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.8)), url('/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-color: #0f172a;
    /* Fallback */
    color: white;
    padding: 6rem 0 8rem;
    position: relative;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 검색 위젯 스타일 */
.search-widget-container {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
    transform: translateY(2rem);
}

.search-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.form-group-hero {
    text-align: left;
}

.form-group-hero label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control-hero {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control-hero:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-search {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-search:hover {
    background-color: var(--primary-dark);
}

/* 페이지 헤더 */
.page-header {
    background-color: var(--bg-color);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

/* 업로드 섹션 */
.upload-section {
    padding: 2rem 0 4rem;
    min-height: calc(100vh - 200px);
}

.upload-form-container {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 파일 드롭 존 스타일 */
.file-drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: 0.5rem;
    padding: 3rem 2rem;
    text-align: center;
    background-color: var(--bg-light);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.file-drop-zone:hover {
    border-color: var(--primary-color);
    background-color: #f0f4ff;
}

.file-drop-zone.drag-over {
    border-color: var(--primary-color);
    background-color: #e0e7ff;
    border-style: solid;
    transform: scale(1.02);
}

.file-drop-zone.has-file {
    border-color: var(--primary-color);
    background-color: #f0f9ff;
}

.drop-zone-content {
    width: 100%;
}

.drop-zone-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.drop-zone-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.drop-zone-subtext {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.drop-zone-file-name {
    font-size: 0.9375rem;
    word-break: break-all;
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: white;
    border-radius: 0.25rem;
    border: 1px solid var(--primary-color);
}

/* 차량 상세 섹션 */
.car-detail-section {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
    background-color: var(--bg-light);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.car-detail-section .container {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
    overflow-x: hidden;
}

.page-header h1 {
    font-size: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 차량 그리드 */
.cars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cars-grid .modern-card {
    width: 100%;
}

.car-card {
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.car-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.car-card a {
    text-decoration: none;
    color: inherit;
}

/* 모던 카드 스타일 - 가로 레이아웃 */
.modern-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.modern-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.car-card-content {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.modern-image {
    flex-shrink: 0;
    width: 240px;
    min-width: 240px;
    height: 180px;
    display: flex;
    align-items: stretch;
}

.modern-image .car-image {
    width: 100%;
    height: 100%;
    padding-top: 0 !important;
    border-radius: 0.5rem 0 0 0.5rem;
    position: relative;
}

.modern-image .car-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.modern-image .car-image.no-image {
    height: 100%;
    min-height: auto;
    border-radius: 0.5rem 0 0 0.5rem;
    position: relative;
}

.modern-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem;
    min-width: 0;
}

.car-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.car-header-modern h3 {
    flex: 1;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
}

/* 차량명 그룹 스타일 - 제조사와 차량명 세로 배치 */
.car-header-modern .car-name-group {
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem;
    width: 100%;
}

.car-header-modern .car-make {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.3;
    margin: 0;
}

.car-header-modern .car-model {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    margin: 0;
}

.car-price-modern {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.modern-specs {
    margin-bottom: 0.5rem;
}

/* 홈페이지 차량 카드 스펙 스타일 */
.car-specs-modern-home {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.spec-item-home {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.spec-item-home:hover {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.spec-icon-home {
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.spec-text-home {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
}

.car-meta-row {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.car-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    /* 4:3 비율 */
    overflow: hidden;
    background-color: var(--bg-light);
    border-radius: 0.5rem;
}

.modern-image .car-image {
    padding-top: 0;
    height: 180px;
    border-radius: 0.5rem 0 0 0.5rem;
}

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

.car-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
}

.status-badge.sold {
    background-color: var(--error-color);
}

.car-info {
    padding: 1rem;
}

.car-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.car-year,
.car-mileage {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.car-specs {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    align-items: center;
    overflow: hidden;
}

.car-specs span {
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
}

.car-specs span:not(:last-child)::after {
    content: ' · ';
    margin-left: 0.5rem;
    color: var(--text-light);
}

.car-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

/* 차량 상세 */
/* 모던한 차량 상세 페이지 스타일 */
.car-detail-modern {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    margin: 0;
    padding: 2rem;
    background-color: var(--bg-color);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    min-width: 0;
}

.car-images-modern {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    min-width: 0;
}

.main-image-modern {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    box-sizing: border-box;
    min-width: 0;
}

.main-image-modern.no-image {
    color: var(--text-light);
    font-size: 1.25rem;
}

.main-car-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
    display: block;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .main-car-image {
        cursor: pointer;
    }
}

.thumbnail-gallery {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-light);
}

.thumbnail-gallery::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-gallery::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.thumbnail-wrapper {
    flex-shrink: 0;
    width: 100px;
    height: 75px;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    background-color: var(--bg-light);
    position: relative;
}

.thumbnail-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.thumbnail-wrapper.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

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

.car-info-modern {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.car-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.car-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
}

.car-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.car-status-badge.status-available {
    background-color: #d1fae5;
    color: #065f46;
}

.car-status-badge.status-sold {
    background-color: #fee2e2;
    color: #991b1b;
}

.car-status-badge.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.car-specs-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.spec-card {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.spec-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.spec-card.price-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: var(--primary-color);
}

.spec-icon {
    font-size: 1.125rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 0.375rem;
    flex-shrink: 0;
}

.spec-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex: 1;
}

.spec-label {
    font-size: 0.6875rem;
    color: var(--text-light);
    font-weight: 500;
}

.spec-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-color);
}

.spec-value.price {
    font-size: 1.125rem;
    color: var(--primary-color);
}

.car-description-modern,
.car-video-modern {
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.car-video-modern {
    background-color: var(--bg-color);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 비율 */
    height: 0;
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: #000;
}

.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.youtube-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
}

.video-error .error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.video-shorts-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    color: white;
}

.shorts-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.shorts-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.shorts-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.shorts-description {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
}

.shorts-btn {
    margin-top: 0.5rem;
    background-color: white;
    color: #667eea;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.shorts-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #667eea;
}

.car-description-modern {
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.description-content {
    line-height: 1.8;
    color: var(--text-color);
}

.description-content p {
    margin: 0;
}

.car-meta-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.meta-item-compact {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.meta-item-compact:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.meta-icon-small {
    font-size: 1.125rem;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 0.375rem;
}

.meta-content-compact {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex: 1;
    text-align: left;
}

.meta-label-compact {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1.2;
}

.meta-value-compact {
    font-size: 0.875rem;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.3;
}

.phone-link-compact {
    color: var(--primary-color);
    text-decoration: none !important;
    transition: color 0.2s;
}

.phone-link-compact:hover {
    color: var(--primary-dark);
}

.meta-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.meta-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.phone-link {
    color: var(--primary-color);
    text-decoration: none !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.phone-link:hover {
    color: var(--primary-dark);
    text-decoration: none !important;
}

.phone-link::before {
    content: '📞';
    font-size: 0.875rem;
}

/* 기존 스타일 유지 (하위 호환성) */
.car-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.car-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    max-height: 600px;
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
}

.thumbnail-images {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    max-height: 120px;
    padding: 0.5rem 0;
}

.thumbnail {
    width: 100px;
    height: 75px;
    min-width: 100px;
    min-height: 75px;
    object-fit: cover;
    border-radius: 0.25rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s, border-color 0.2s;
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.car-details h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.car-specs {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 0.5rem;
}

.car-description {
    margin-bottom: 2rem;
}

.car-description h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.car-meta {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-light);
}

.car-meta p {
    margin-bottom: 0.5rem;
}

/* 공지사항 */
.notices-section,
.recent-notices-section {
    padding: 3rem 0;
}

.notices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.notice-card {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.notice-card.important {
    border-left-color: var(--error-color);
}

.notice-card h3 {
    margin-bottom: 0.5rem;
}

.notice-card a {
    color: var(--text-color);
    text-decoration: none;
}

.notice-card a:hover {
    color: var(--primary-color);
}

.notice-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.notices-list {
    list-style: none;
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.notices-list li {
    border-bottom: 1px solid var(--border-color);
}

.notices-list li:last-child {
    border-bottom: none;
}

.notices-list a {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s;
}

.notices-list a:hover {
    background-color: var(--bg-light);
}

.notice-date {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* 인증 페이지 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 0;
}

.auth-box {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.auth-box h1 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.error-messages {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.error-message {
    margin-bottom: 0.5rem;
}

.error-message:last-child {
    margin-bottom: 0;
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-light);
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
}

/* 관리자 페이지 */
.admin-dashboard {
    padding: 2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card h3 {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.admin-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-menu-item {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-menu-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.admin-menu-item h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.admin-menu-item p {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* 테이블 */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

table thead {
    background-color: var(--bg-light);
}

table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
}

table td {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

table tbody tr:hover {
    background-color: var(--bg-light);
}

/* 필터 바 */
.filter-bar {
    background-color: var(--bg-color);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.filter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
}

/* 엔카 스타일 레이아웃 */
.cars-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.filter-sidebar {
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.filter-section {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.filter-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.filter-list dt {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.filter-list dd {
    margin: 0;
    padding: 0;
    margin-bottom: 0.5rem;
}

.filter-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 0.25rem;
    transition: background-color 0.2s;
    font-size: 0.9375rem;
}

.filter-link:hover {
    background-color: var(--bg-light);
}

.filter-link.active {
    background-color: #e0e7ff;
    color: var(--primary-color);
    font-weight: 500;
}

.filter-link em {
    font-style: normal;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.875rem;
}

.filter-link.active em {
    color: var(--primary-color);
}

/* 제조사 필터 아코디언 스타일 */
.make-filter-item {
    position: relative;
}

.make-link {
    cursor: pointer;
    user-select: none;
}

.make-link .expand-icon {
    font-size: 0.75rem;
    margin-left: auto;
    transition: transform 0.2s;
    color: var(--text-light);
}

.model-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-left: 1.5rem;
    margin-top: 0.25rem;
    border-left: 2px solid var(--border-color);
}

.model-submenu li {
    margin: 0;
    padding: 0;
    margin-bottom: 0.25rem;
}

.model-submenu .model-link {
    padding-left: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.model-submenu .model-link:hover {
    background-color: var(--bg-light);
    color: var(--text-color);
}

.model-submenu .model-link.active {
    background-color: #e0e7ff;
    color: var(--primary-color);
    font-weight: 500;
}

.cars-main {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* 검색 바 스타일 */
.search-bar-container {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.search-form {
    width: 100%;
}

.search-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background-color: var(--primary-dark);
}

.search-icon {
    font-size: 1.125rem;
}

.search-text {
    display: inline;
}

.search-result-info {
    margin-left: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.search-result-info strong {
    color: var(--primary-color);
    font-weight: 600;
}

.cars-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.result-count {
    font-size: 0.9375rem;
    color: var(--text-light);
}

.result-count strong {
    color: var(--primary-color);
    font-weight: 600;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    background-color: var(--bg-color);
    cursor: pointer;
}

.encar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.encar-card {
    border: 1px solid var(--border-color);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.encar-card:hover {
    border-color: var(--primary-color);
}

.car-image-wrapper {
    position: relative;
}

.encar-card.modern-card .car-image-wrapper .car-image {
    height: 100%;
    padding-top: 0;
    position: relative;
}

.encar-card.modern-card .car-image-wrapper .car-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.image-count {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 차량 이미지 워터마크 - 숨김 처리 */
.car-image-watermark {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.car-image-watermark .watermark-company,
.car-image-watermark .watermark-phone {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.main-image-modern .car-image-watermark {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.main-image-modern .car-image-watermark .watermark-company,
.main-image-modern .car-image-watermark .watermark-phone {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* 최신 차량 카드 워터마크 (작게) - 숨김 */
.cars-section .car-image-watermark {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.cars-section .car-image-watermark .watermark-company,
.cars-section .car-image-watermark .watermark-phone {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* 전체화면 갤러리 워터마크 */
.mobile-gallery .gallery-image-container {
    position: relative !important;
}

.mobile-gallery .gallery-image-container .car-image-watermark {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.mobile-gallery .gallery-image-container .car-image-watermark .watermark-company,
.mobile-gallery .gallery-image-container .car-image-watermark .watermark-phone {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.car-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    color: var(--text-light);
    min-height: 180px;
}

.encar-info {
    padding: 1rem;
}

.car-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 차량명 그룹이 있을 때는 car-title 스타일 무시 */
.car-header-modern .car-name-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.car-header-modern .car-make {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.3;
}

.car-header-modern .car-model {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
}

.car-specs-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    flex-wrap: nowrap;
    align-items: center;
    overflow: hidden;
}

.car-specs-row span {
    white-space: nowrap;
    flex-shrink: 0;
}

.car-specs-row span:not(:last-child)::after {
    content: ' · ';
    margin-left: 0.5rem;
    color: var(--text-light);
}

.car-fuel,
.car-transmission {
    color: var(--text-light);
}

.car-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.car-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.car-views {
    font-size: 0.75rem;
    color: var(--text-light);
}

.encar-pagination {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.pagination-ellipsis {
    padding: 0.5rem 0.75rem;
    color: var(--text-light);
}

.page-subtitle {
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.9375rem;
}

.page-subtitle strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: all 0.2s;
}

.pagination-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 역할 배지 */
.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.role-user {
    background-color: var(--bg-light);
    color: var(--text-color);
}

.role-upgraded {
    background-color: #dbeafe;
    color: #1e40af;
}

.role-admin {
    background-color: #fef3c7;
    color: #92400e;
}

/* 푸터 */
.footer {
    background-color: var(--text-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* 유틸리티 */
.text-center {
    text-align: center;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--bg-color);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s;
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .nav-menu li a {
        display: block;
        padding: 1rem;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        font-size: 1.125rem;
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cars-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .car-card-content {
        flex-direction: column;
    }

    .modern-image {
        width: 100%;
        min-width: 100%;
    }

    .modern-image .car-image {
        border-radius: 0.5rem 0.5rem 0 0;
        height: 200px;
    }

    .car-header-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .car-name-group {
        width: 100%;
    }

    .car-make {
        font-size: 0.8125rem;
    }

    .car-model {
        font-size: 1rem;
    }

    .car-price-modern {
        font-size: 1.125rem;
    }

    .cars-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .car-detail-section {
        padding: 1rem 0;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .car-detail-section .container {
        padding: 0 0.75rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .car-detail-modern {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.75rem;
        margin: 0;
        border-radius: 0.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .car-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: visible;
    }

    .car-title {
        font-size: 1.25rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        max-width: 100%;
        overflow: visible;
        white-space: normal;
    }

    .car-status-badge {
        font-size: 0.8125rem;
        padding: 0.375rem 0.75rem;
    }

    .car-specs-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .spec-card {
        padding: 0.625rem;
        gap: 0.5rem;
    }

    .spec-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .spec-label {
        font-size: 0.625rem;
    }

    .spec-value {
        font-size: 0.8125rem;
    }

    .spec-card.price-card {
        grid-column: 1 / -1;
    }

    .spec-value.price {
        font-size: 1rem;
    }

    .car-meta-modern {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.75rem;
        background-color: var(--bg-light);
        border-radius: 0.5rem;
    }

    .meta-item-compact {
        padding: 0.5rem;
    }

    .meta-icon-small {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.875rem;
    }

    .meta-label-compact {
        font-size: 0.625rem;
    }

    .meta-value-compact {
        font-size: 0.75rem;
    }

    .car-description-modern {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .car-video-modern {
        padding: 1rem;
    }

    .video-container {
        border-radius: 0.375rem;
    }

    .main-image-modern {
        aspect-ratio: 16 / 9;
        max-width: 100%;
        width: 100%;
        border-radius: 0.5rem;
        margin-bottom: 0.75rem;
    }

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

    .car-images-modern {
        max-width: 100%;
        width: 100%;
        gap: 0.75rem;
        box-sizing: border-box;
        overflow: hidden;
    }

    .main-image-modern {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .main-car-image {
        max-width: 100%;
        width: 100%;
        height: auto;
        box-sizing: border-box;
    }

    .thumbnail-gallery {
        gap: 0.5rem;
        padding: 0.25rem 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .thumbnail-wrapper {
        width: 70px;
        height: 52px;
        flex-shrink: 0;
        box-sizing: border-box;
    }

    .thumbnail-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        box-sizing: border-box;
    }

    .car-info-modern {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .car-specs-modern {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .spec-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .car-description-modern {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .description-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .car-meta-modern {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .car-actions-modern {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .car-actions-modern {
        flex-direction: column;
        gap: 0.75rem;
    }

    .car-actions-modern .btn {
        width: 100%;
    }

    .car-detail {
        grid-template-columns: 1fr;
    }

    .main-image {
        max-height: 400px;
    }

    .main-image img {
        max-height: 400px;
    }

    .thumbnail-images {
        max-height: 120px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
    }

    .filter-form {
        flex-direction: column;
    }

    .file-drop-zone {
        padding: 2rem 1rem;
        min-height: 150px;
    }

    .drop-zone-icon {
        font-size: 2rem;
    }

    .drop-zone-text {
        font-size: 1rem;
    }
}

/* 모바일 전체화면 갤러리 */
.mobile-gallery {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-gallery.active {
    display: flex;
    opacity: 1;
}

/* 모바일 갤러리가 열릴 때 차량 상세 정보 숨기기 */
.mobile-gallery.active~*,
body:has(.mobile-gallery.active) .car-detail-section {
    display: none;
}

/* 더 확실한 방법: 갤러리가 활성화되면 메인 컨텐츠 숨기기 */
body.gallery-active .car-detail-section {
    display: none !important;
}

.gallery-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
    z-index: 10001;
}

.gallery-counter {
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.gallery-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    line-height: 1;
    padding: 0;
}

.gallery-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
    box-sizing: border-box;
    overflow: visible;
}

.gallery-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    position: relative;
}

/* 갤러리 이미지 래퍼 (이미지와 워터마크를 함께 감싸는 컨테이너) */
.gallery-image-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
    max-height: 100%;
}

.gallery-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    position: relative;
    z-index: 1;
    display: block;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.gallery-image-container img[src=""],
.gallery-image-container img:not([src]) {
    opacity: 0;
}

/* 갤러리 이미지 위의 워터마크 (이미지의 왼쪽 상단에 위치) */
.gallery-image-wrapper .car-image-watermark,
.mobile-gallery .gallery-image-wrapper .car-image-watermark {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.gallery-image-wrapper .car-image-watermark .watermark-company,
.mobile-gallery .gallery-image-wrapper .car-image-watermark .watermark-company,
.gallery-image-wrapper .car-image-watermark .watermark-phone,
.mobile-gallery .gallery-image-wrapper .car-image-watermark .watermark-phone {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.gallery-image-error {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 2rem;
    box-sizing: border-box;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 3rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10001;
    line-height: 1;
    padding: 0;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-prev {
    left: 1rem;
}

.gallery-next {
    right: 1rem;
}

.gallery-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10001;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* 데스크톱에서도 갤러리 사용 가능 */
@media (min-width: 769px) {
    .mobile-gallery.active {
        display: flex;
    }

    .gallery-nav {
        font-size: 3rem;
        width: 60px;
        height: 60px;
        border-radius: 50%;
    }

    .gallery-close {
        font-size: 2.5rem;
        width: 50px;
        height: 50px;
    }

    .gallery-counter {
        font-size: 1.25rem;
    }

    .gallery-content {
        padding: 5rem 4rem;
    }
}

@media (max-width: 768px) {
    .filter-form .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-menu {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 0.875rem;
    }

    table th,
    table td {
        padding: 0.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .cars-list-section {
        padding: 0.5rem 0;
    }

    .cars-list-section .container {
        padding: 0 0.5rem;
    }

    .filter-sidebar {
        padding: 0.75rem;
    }

    /* 모바일에서 연식과 가격대 필터 숨기기 */
    .filter-section:nth-of-type(2),
    .filter-section:nth-of-type(3) {
        display: none;
    }

    /* 제조사 필터의 개수(em) 숨기기 - 모바일에서만 */
    .filter-section:first-of-type .filter-link em {
        display: none !important;
    }

    /* 제조사 필터 링크에서 개수 제거 후 레이아웃 조정 */
    .filter-section:first-of-type .filter-link {
        justify-content: flex-start;
    }

    /* 모바일 검색 바 */
    .search-input-wrapper {
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
    }

    .search-result-info {
        display: block;
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .cars-toolbar {
        padding: 0.5rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cars-grid {
        grid-template-columns: 1fr;
    }

    .notices-grid {
        grid-template-columns: 1fr;
    }

    .car-detail {
        padding: 1rem;
    }

    .auth-box {
        padding: 1.5rem;
    }
}

/* 문의 관련 스타일 */
.inquiry-section {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.inquiry-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.inquiry-form textarea {
    resize: vertical;
    min-height: 200px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.inquiries-section {
    padding: 2rem 0;
}

.inquiries-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.inquiry-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.inquiry-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.inquiry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.inquiry-header h3 {
    margin: 0;
    flex: 1;
}

.inquiry-header h3 a {
    color: var(--text-color);
    text-decoration: none;
}

.inquiry-header h3 a:hover {
    color: var(--primary-color);
}

.inquiry-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.inquiry-preview {
    color: var(--text-light);
    line-height: 1.6;
}

.inquiry-detail-section {
    padding: 2rem 0;
}

.inquiry-detail-card {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.inquiry-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.inquiry-detail-header h2 {
    margin: 0;
    flex: 1;
}

.inquiry-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 0.5rem;
}

.inquiry-content-box,
.inquiry-answer-box {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 0.5rem;
}

.inquiry-content-box h3,
.inquiry-answer-box h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.content-text,
.answer-text {
    white-space: pre-wrap;
    line-height: 1.8;
    color: var(--text-color);
}

.answer-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-light);
}

.inquiry-answer-form {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 0.5rem;
}

.inquiry-waiting {
    padding: 2rem;
    text-align: center;
    background-color: var(--bg-light);
    border-radius: 0.5rem;
    color: var(--text-light);
}

.inquiry-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.status-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: white;
    font-size: 0.875rem;
    cursor: pointer;
}

.admin-inquiries-section {
    padding: 2rem 0;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
    background: white;
    transition: all 0.2s;
}

.filter-btn:hover {
    background-color: var(--bg-light);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.inquiries-table {
    overflow-x: auto;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.inquiries-table table {
    width: 100%;
    border-collapse: collapse;
}

.inquiries-table th,
.inquiries-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.inquiries-table th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--text-color);
}

.inquiries-table tr:hover {
    background-color: var(--bg-light);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-badge.status-answered {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge.status-closed {
    background-color: #e5e7eb;
    color: #374151;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.empty-state p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.125rem;
}

@media (max-width: 768px) {
    .inquiry-detail-header {
        flex-direction: column;
        gap: 1rem;
    }

    .inquiry-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .admin-toolbar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .filter-btn {
        flex: 1;
        text-align: center;
    }

    .inquiries-table {
        font-size: 0.875rem;
    }

    .inquiries-table th,
    .inquiries-table td {
        padding: 0.5rem;
    }
}

/* 공지사항 모던 스타일 */
.notices-list-section {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.notices-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.notice-card-modern {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notice-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notice-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.notice-card-modern:hover::before {
    opacity: 1;
}

.notice-card-modern.important {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.notice-card-modern.important::before {
    background: #ef4444;
    opacity: 1;
}

.notice-badge-important {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}

.badge-icon {
    font-size: 0.875rem;
}

.notice-card-content {
    flex: 1;
}

.notice-card-title {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.notice-card-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.notice-card-title a:hover {
    color: var(--primary-color);
}

.notice-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.notice-card-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.meta-icon {
    font-size: 0.875rem;
}

.notice-card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.notice-read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.notice-read-more:hover {
    color: var(--primary-dark);
    gap: 0.5rem;
}

.notice-detail-section {
    padding: 2rem 0;
}

.notice-detail-modern {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.notice-important-banner {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
}

.important-icon {
    font-size: 1.25rem;
}

.notice-header-modern {
    padding: 2rem;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.notice-title-modern {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: var(--text-color);
    line-height: 1.3;
}

.notice-meta-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.meta-item-modern {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-item-modern .meta-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.meta-item-modern .meta-value {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.notice-content-modern {
    padding: 2.5rem;
    min-height: 200px;
    border-top: 1px solid var(--border-color);
    background-color: #fafafa;
}

.content-text-modern {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--text-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.content-text-modern p {
    margin-bottom: 1rem;
}

.content-text-modern br {
    display: block;
    content: "";
    margin-top: 0.5rem;
}

.content-text-modern * {
    max-width: 100%;
}

.notice-actions-modern {
    padding: 1.5rem 2.5rem;
    border-top: 1px solid var(--border-color);
    background-color: white;
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .notices-grid-modern {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .notice-card-modern {
        padding: 1.25rem;
    }

    .notice-title-modern {
        font-size: 1.5rem;
    }

    .notice-meta-modern {
        gap: 1rem;
    }

    .notice-header-modern {
        padding: 1.5rem;
    }

    .notice-title-modern {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .notice-meta-modern {
        flex-direction: column;
        gap: 0.75rem;
        padding-top: 1rem;
    }

    .notice-content-modern {
        padding: 1.5rem;
    }

    .content-text-modern {
        font-size: 1rem;
        line-height: 1.8;
    }

    .notice-actions-modern {
        padding: 1.5rem;
    }
}

/* 회원 관리 스타일 */
.admin-users {
    padding: 2rem 0;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.user-actions .btn {
    white-space: nowrap;
}

.admin-form-section {
    padding: 2rem 0;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .user-actions {
        flex-direction: column;
    }

    .user-actions .btn {
        width: 100%;
    }

    .form-container {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

/* 통계 페이지 스타일 */
.statistics-tabs {
    margin: 2rem 0;
    border-bottom: 2px solid var(--border-color);
}

.tab-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
}

.tab-menu li {
    margin: 0;
}

.tab-menu li a {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    font-weight: 500;
}

.tab-menu li.active a,
.tab-menu li a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: var(--bg-light);
}

.statistics-content {
    margin-top: 2rem;
}

.stat-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-summary-item {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-summary-item h3 {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.stat-summary-item .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.statistics-filter {
    margin-bottom: 1rem;
}

.statistics-filter .filter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 768px) {
    .tab-menu {
        flex-direction: column;
    }

    .tab-menu li a {
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .tab-menu li.active a,
    .tab-menu li a:hover {
        border-left-color: var(--primary-color);
        border-bottom-color: transparent;
    }

    .stat-summary {
        grid-template-columns: 1fr;
    }

    .statistics-filter .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
}

/* 차량 관리 스타일 */
.admin-cars {
    padding: 2rem 0;
}

.cars-table {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.cars-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cars-table th {
    background-color: var(--bg-light);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
}

.cars-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.cars-table tbody tr:hover {
    background-color: var(--bg-light);
}

.car-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.375rem;
}

.no-image {
    display: inline-block;
    width: 80px;
    height: 60px;
    background-color: var(--bg-light);
    border-radius: 0.375rem;
    text-align: center;
    line-height: 60px;
    font-size: 0.75rem;
    color: var(--text-light);
}

.status-select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.status-select:hover {
    border-color: var(--primary-color);
}

.status-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.car-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.car-actions .btn {
    white-space: nowrap;
}

/* 차량번호 복사 버튼 */
.copy-license-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.125rem 0.375rem;
    margin-left: 0.25rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.75rem;
    vertical-align: middle;
    transition: all 0.2s;
    line-height: 1;
}

.copy-license-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.copy-license-btn:active {
    transform: scale(0.95);
}

.license-plate {
    display: inline-block;
}

.filter-section {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    background: white;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .cars-table {
        font-size: 0.875rem;
    }

    .cars-table th,
    .cars-table td {
        padding: 0.5rem;
    }

    .car-thumbnail {
        width: 60px;
        height: 45px;
    }

    .no-image {
        width: 60px;
        height: 45px;
        line-height: 45px;
    }

    .car-actions {
        flex-direction: column;
    }

    .car-actions .btn {
        width: 100%;
    }

    .filter-section {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
        text-align: center;
    }
}


/* 영상 썸네일 스타일 */
.video-thumbnail {
    background-color: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.play-icon {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.video-label {
    font-size: 0.75rem;
    font-weight: 600;
}

.main-car-video {
    background-color: #000;
    border-radius: 0.5rem;
}

.thumbnail-wrapper.video-thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

@media (max-width: 768px) {
    .play-icon {
        font-size: 1.1rem;
    }

    .video-label {
        font-size: 0.65rem;
    }
}

/* Trust Section (Export Features) */
.trust-section {
    padding: 5rem 0;
    background-color: white;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.trust-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.trust-section .section-desc {
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.trust-item {
    padding: 2.5rem 2rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.trust-item:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.trust-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.trust-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.trust-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Language Selector */
.lang-item {
    margin-left: 1rem;
    display: flex;
    align-items: center;
}

.lang-selector {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.lang-selector:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-selector option {
    background: var(--dark-bg);
    color: white;
    /* Ensure text is visible on dark background */
    color: black;
    /* Fallback for some browsers if bg is white */
}

/* Dark mode option fix */
@media (prefers-color-scheme: light) {
    .lang-selector option {
        color: black;
        background: white;
    }
}
/* =========================================
   Premium Sidebar & Filter Styles
   ========================================= */

/* Filter Sidebar Base */
.cars-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.filter-sidebar {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 0.5rem;
}

.filter-sidebar::-webkit-scrollbar {
    width: 4px;
}
.filter-sidebar::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

.filter-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    display: block; /* Override default flex if any */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.filter-section:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-2px);
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    margin-top: 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bg-light);
    color: var(--primary-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-list {
    margin: 0;
    padding: 0;
    list-style: none; /* Reset */
}

.filter-list dt {
    display: none;
}

.filter-list dd {
    margin-bottom: 0.5rem;
}

.filter-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background-color: transparent;
}

.filter-link:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    transform: translateX(4px);
}

.filter-link.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}

.filter-link em {
    font-style: normal;
    font-size: 0.8rem;
    background: #f1f5f9;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    color: var(--secondary-color);
    transition: all 0.2s;
}

.filter-link.active em {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Submenu Styling */
.model-submenu {
    margin-top: 0.5rem;
    margin-left: 0.5rem;
    padding-left: 0.5rem;
    border-left: 2px solid var(--border-color);
    list-style: none;
}

.model-submenu li {
    margin-bottom: 0.25rem;
}

.model-link {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

/* Search Bar Premium */
.search-bar-container {
    margin-bottom: 2rem;
    background: white;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.search-input-wrapper {
    display: flex;
    gap: 0.75rem;
}

.search-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid var(--bg-light);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--bg-light);
    font-family: 'Pretendard', sans-serif;
}

.search-input:focus {
    background-color: white;
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-btn {
    padding: 0 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Pretendard', sans-serif;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Animation: Fade Up */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.car-card, .filter-section {
    animation: fadeUp 0.6s ease-out forwards;
}

.car-card:nth-child(1) { animation-delay: 0.1s; }
.car-card:nth-child(2) { animation-delay: 0.15s; }
.car-card:nth-child(3) { animation-delay: 0.2s; }
.car-card:nth-child(4) { animation-delay: 0.25s; }
.car-card:nth-child(5) { animation-delay: 0.3s; }
.car-card:nth-child(6) { animation-delay: 0.35s; }
