/* ========================================
   차량 설명 섹션 (팝업 모달)
======================================== */

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

/* 미리보기 텍스트 */
.vehicle-description-section .description-preview {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.6;
    word-break: break-all;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    max-width: 100%;
}

/* 더보기 버튼 */
.btn-show-description {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 0;
    background: none;
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: #3b82f6;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-show-description:hover {
    color: #2563eb;
}

.btn-show-description svg {
    transition: transform 0.3s;
}

.btn-show-description:hover svg {
    transform: translateX(2px);
}

/* 판매자 설명 (기존) */
.description-content {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #4b5563;
}

/* ========================================
   설명 모달 팝업
======================================== */

.description-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.description-modal.active {
    opacity: 1;
    visibility: visible;
}

/* 오버레이 (배경) */
.description-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* 모달 컨텐츠 */
.description-modal .modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
}

.description-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

/* 모달 헤더 */
.description-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.description-modal .modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.description-modal .modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f8fafc;
    border: none;
    border-radius: 50%;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s;
}

.description-modal .modal-close:hover {
    background: #f1f5f9;
    color: #1a1a1a;
}

/* 모달 바디 */
.description-modal .modal-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #4b5563;
    word-break: break-all;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

/* 모달 열렸을 때 body 스크롤 방지 */
body.modal-open {
    overflow: hidden;
}
