/* 1. 초기화 & 기본 배경 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Pretendard', sans-serif; background-color: #ffffff; display: flex; justify-content: center; }
.ly-mobile-wrapper { width: 100%; max-width: 430px; min-height: 100vh; background-color: #ffffff; display: flex; flex-direction: column; }

/* 2. 헤더 고정 및 탭 메뉴 스타일 */
.hd-main-header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.hd-logo-area { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: #fff;}
.hd-left-logo img { height: 28px; width: auto; display: block; }
.hd-right-icon img { height: 24px; width: auto; display: block; }

.hd-tab-menu { display: flex; padding: 10px 15px 15px 15px; gap: 8px; }
.hd-tab-item {
    padding: 10px 18px; border-radius: 50px; background-color: #f4f6f9;
    color: #555; text-decoration: none; font-size: 14px; font-weight: 700;
}
.hd-tab-item.is-active { background-color: #1a1a1a; color: #ffffff; }

/* 3. 브랜드 서브 탭 & 정렬 */
.cm-sub-tab-container { background-color: #ffffff; border-bottom: 1px solid #eee; position: sticky; top: 110px; z-index: 999; }
.cm-sub-tab-wrapper { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.cm-sub-tab-list { display: flex; gap: 15px; }
.cm-sub-tab-item {
    padding: 15px 0; text-decoration: none; color: #888; font-size: 14px; font-weight: 700; position: relative;
}
.cm-sub-tab-item.is-active { color: #1a1a1a; }
.cm-sub-tab-item.is-active::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background-color: #1a1a1a;
}
.cm-sort-select { border: none; background: transparent; font-size: 13px; font-weight: 600; color: #333; outline: none; }

/* 4. 차량 리스트 카드 */
.cm-list-notice { padding: 12px 15px; color: #666; font-size: 12px; text-align: right; background: #fff; margin-top: 10px}
.cm-car-card { background: #fff; padding: 25px 20px; border-bottom: 1px solid #eee; display: flex; flex-direction: column; }

.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }
.car-name { font-size: 18px; font-weight: 600; color: #1a1a1a; letter-spacing: -0.5px; margin-bottom: 4px; }
.car-sub { font-size: 13px; color: #888; }

.action-btns { display: flex; gap: 4px; }
.btn-sm { padding: 6px 8px; background: #444; color: #fff; font-size: 10px; border-radius: 4px; text-decoration: none; }
.btn-apply { padding: 7px 10px; background: #007bff; color: #fff; font-size: 10px; font-weight: 500; border-radius: 4px; text-decoration: none; }

.card-body { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; margin-bottom: 20px; }
.price-big { font-size: 22px; font-weight: 700; color: #1a1a1a; letter-spacing: -1.5px; line-height: 1; }
.car-img-large { flex: 0 0 50%; }
.car-img-large img { width: 75%; height: auto; display: block; object-fit: contain; margin-left: auto;}

/* 5. 로딩 레이어 스타일 [cite: 2026-01-25] */
#loading-layer {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.9); /* 살짝 투명한 흰색 배경 */
    z-index: 9999; display: flex; justify-content: center; align-items: center;
}
.loading-content { text-align: center; }
.loading-content p { 
    margin-top: 15px; font-size: 16px; font-weight: 700; color: #1a1a1a; 
    animation: blink 1.5s infinite; /* 깜빡이는 효과 */
}

/* 로딩 스피너 애니메이션 */
.spinner {
    width: 40px; height: 40px; border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff; border-radius: 50%;
    margin: 0 auto; animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* 6. 채팅 레이어 & 플로팅 버튼 [cite: 2026-01-25] */
.floating-chat-btn {position: fixed; right: 20px; bottom: 50px; width: 60px; height: 60px; z-index: 1001; filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.2)); transition: transform 0.2s ease; }
.floating-chat-btn:active { transform: scale(0.9); }
.floating-chat-btn img { width: 100%; height: 100%; display: block; border-radius: 8%; }

/* 7. 풋터 스타일 [cite: 2026-01-25] */
.ft-main-footer {padding: 30px 20px 50px; background-color: #f9f9f9; border-top: 1px solid #eee; }
.ft-info-area p {font-size: 12px; color: #888; line-height: 1.8; margin-bottom: 2px;}
.ft-info-area span {color: #555; font-weight: 600; margin-right: 4px; }
.ft-copy {margin-top: 15px; font-size: 11px !important; color: #bbb !important;}

/* 8. 모달 스타일 [cite: 2026-01-25] */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); z-index: 2000; justify-content: center; align-items: center;
}
.modal-content { background: #fff; padding: 30px; border-radius: 12px; width: 90%; max-width: 380px; }
.modal-content h3 { margin-bottom: 25px; font-size: 18px; text-align: center; font-weight: 800; }

.input-group { margin-bottom: 15px; }
.input-group label { display: block; font-size: 14px; margin-bottom: 8px; color: #1a1a1a; font-weight: 800; }
.input-group input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 15px; outline: none; }

.phone-group { display: flex; align-items: center; gap: 8px; }
.phone-group input { text-align: center; flex: 1.5; }
.phone-group input[readonly] { background-color: #f4f6f9; color: #888; border-color: #eee; flex: 1; }
.phone-group span { color: #ccc; font-weight: bold; }

.checkbox-group { margin: 20px 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #666; }
.checkbox-group input { width: auto; }

.btn-submit { 
    width: 100%; padding: 15px; background: #007bff; color: #fff; border: none; 
    border-radius: 4px; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 10px;
}
.btn-close { width: 100%; margin-top: 12px; background: none; border: none; color: #999; font-size: 13px; cursor: pointer; }

/* 9. 가격 말풍선 및 정보 아이콘 스타일 [cite: 2026-01-30, 2026-02-01] */
.price-container { position: relative; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.price-big { font-size: 22px; font-weight: 700; color: #1a1a1a; letter-spacing: -1.5px; line-height: 1; display: flex; align-items: center; gap: 5px; }
.info-icon { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border: 1px solid #007bff; border-radius: 50%; color: #007bff; font-size: 11px; font-weight: bold; cursor: pointer; background: transparent; }
.price-tooltip { display: none; position: absolute; bottom: 130%; left: 10px; background: #fff; border: 1.5px solid #007bff; border-radius: 15px; padding: 12px 15px; width: 165px; z-index: 100; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.price-tooltip::after { content: ''; position: absolute; top: 100%; left: 15px; border: 8px solid transparent; border-top-color: #007bff; }
.price-tooltip ul { margin: 0; padding: 0; list-style: none; }
.price-tooltip li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px dashed #eee; }
.price-tooltip li:last-child { border-bottom: none; }
.km-label { color: #007bff; font-size: 13px; font-weight: 400; display: flex; align-items: center; gap: 4px; }
.km-label::before { content: '•'; font-size: 14px; color: #007bff; }
.km-value { color: #1a1a1a; font-size: 14px; font-weight: 400; }
.price-container.is-active .price-tooltip { display: block; }

/* 10. 차량명 클릭 장단점 말풍선 (중복 제거 및 최적화) [cite: 2026-01-13, 2026-02-01] */
.info-container { position: relative; cursor: pointer; display: inline-block; }
.info-tooltip { display: none; position: absolute; top: 110%; left: 0; background: #fff; border: 2px solid #007bff; border-radius: 15px; padding: 15px; width: 250px; z-index: 1000; box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.info-tooltip::after { content: ''; position: absolute; bottom: 100%; left: 20px; border: 8px solid transparent; border-bottom-color: #007bff; }
.tooltip-section ul { margin: 5px 0 0 0; padding-left: 18px; list-style: disc; }
.tooltip-section li { font-size: 13px; color: #555; line-height: 1.5; margin-bottom: 3px; }
.info-container.is-active .info-tooltip { display: block; }

/* 11. 페이지 준비중 스타일 [cite: 2026-01-30] */
.ready-container { display: flex; align-items: center; justify-content: center; min-height: 60vh; background: #fff; text-align: center; padding: 20px; }
.ready-icon { display: block; font-size: 50px; margin-bottom: 20px; }
.ready-content h2 { font-size: 22px; font-weight: 800; color: #1a1a1a; margin-bottom: 12px; letter-spacing: -1px; }
.ready-content p { font-size: 15px; color: #888; line-height: 1.6; margin-bottom: 30px; }
.btn-home { display: inline-block; padding: 14px 30px; background: #007bff; color: #fff; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 15px; transition: 0.2s; }
.btn-home:active { transform: scale(0.96); opacity: 0.9; }



/* special.php 최종 레이아웃 조정 [cite: 2026-01-30] */
.special-landing-wrapper { background: #0b1622; min-height: 100vh; padding-bottom: 10px; width: 100%; max-width: 430px; margin: 0 auto; overflow-x: hidden;}
.special-banner-img img { width: 100%; display: block; }
.special-apply-wrapper { padding: 0 20px; margin-top: -8px; position: relative; z-index: 10; width: 100%; box-sizing: border-box;}
.special-apply-card { background: #fff; border-radius: 20px; padding: 35px 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); width: 100%; box-sizing: border-box;}
.btn-submit { width: 100% !important; margin-top: 15px !important; border-radius: 12px !important; box-sizing: border-box; }


/* 슬라이드 */
.header-slider-container { width: 100%; overflow: hidden; position: relative; background: #fff; padding: 10px 15px; box-sizing: border-box; }
.header-slider-wrapper { display: flex; transition: transform 0.5s ease-in-out; width: 300% !important; border-radius: 15px; overflow: hidden; }
.header-slide { width: 33.3333% !important; min-width: 33.3333%; display: block; border-radius: 15px; overflow: hidden; }
.header-slide img { width: 100%; display: block; object-fit: cover; border-radius: 15px; }
.header-slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; }
.h-dot { width: 6px; height: 6px; background: rgba(255, 255, 255, 0.4); border-radius: 50%; }
.h-dot.active { background: #fff; width: 15px; border-radius: 10px; }

