@charset "utf-8";
/* rentcar4 최신글 스킨 - 모바일/PC 통합 스타일 */

/* 1. 차량 리스트 레이아웃 */
.rentcar4-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
}

.rentcar4-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 2. 차량 카드 스타일 */
.rentcar4-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.rentcar4-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.car-image {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
}

.car-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.car-badges span {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.badge-lease { background: #007bff; }
.badge-rent { background: #ff5555; }
.badge-new { background: #28a745; }
.badge-used { background: #6c757d; }

.car-info {
    padding: 15px;
}

.car-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.car-details {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.car-details span:not(:last-child)::after {
    content: '·';
    margin: 0 5px;
}

.car-pricing {
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.price-label {
    font-size: 13px;
    color: #666;
}

.price-value {
    font-size: 16px;
    font-weight: 700;
    color: #ff5555;
}

.support-price {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* 3. 반응형 (리스트) */
@media (max-width: 1200px) {
    .rentcar4-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .rentcar4-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .rentcar4-list { grid-template-columns: 1fr; }
    .rentcar4-wrap { padding: 10px; }
}

/* 
   상담 신청 모달 및 개인정보 모달 스타일은 
   latest.skin.php 내부의 <style> 블록에서 p101.php 표준에 맞춰 
   직접 관리 및 동기화되고 있습니다.
*/

/* 4. PC/모바일 뷰 제어 */
.rc4-pc-view { display: block; }
.rc4-mobile-view { display: none; }

@media (max-width: 768px) {
    .rc4-pc-view { display: none; }
    .rc4-mobile-view { display: block; }

    /* 갤럭시 등 모바일에서 텍스트 줄바꿈 방지 */
    .car-title {
        font-size: 14px !important;
    }

    .car-details {
        font-size: 11px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .car-details span:not(:last-child)::after {
        margin: 0 3px !important;
    }

    .price-value {
        font-size: 14px !important;
    }

    .support-price {
        font-size: 10px !important;
    }

    .car-info {
        padding: 12px 10px !important;
    }
}
