@charset "utf-8";

:root {
    --primary: #ff5a1d;
}

/* 레지스터카  ******************/
.register-car-wrap {
    padding: 150px 0;
}

/* 관리자  ******************/
.admin-list-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 150px 0;
}

.admin-list-wrap .tit {
    margin-bottom: 24px;
}

.admin-list-wrap .tit h2 {
    font-size: 24px;
}


/* 리스트 공통  ******************/
.lease-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 150px 0;
}

@media (max-width:768px) {
    .lease-container {
        padding: 60px 0;
    }
}

.no-result {
    text-align: center;
    padding: 50px 0;
    font-size: 18px;
    color: #888;
}

/* 리스트 아이템  ******************/
.lease-list-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: 1280px;
    margin: 0 auto;
    gap: 36px;
    /* ✅ 모든 방향 gap 36px */
}

.lease-list-wrap .car-card {
    width: calc((100% - 36px * 3) / 4);
    /* ✅ 4개 + gap 3개 고려 */
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    text-align: center;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .lease-list-wrap .car-card {
        width: calc((100% - 36px) / 1);
        /* ✅ 2개 + gap 1개 고려 */
    }
    
    .lease-list-wrap {
        justify-content: center;
    }
}


.lease-header-buttons .btn-primary {
    display: inline-block;
    background: #007aff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.lease-header-buttons .btn-outline {
    display: inline-block;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}


.lease-list-wrap .badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #ff4d00;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold;
}

.lease-list-wrap .car-image img {
    width: 100%;
    height: auto;
    margin-bottom: 12px;
}

.lease-list-wrap .car-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
}

.lease-list-wrap .car-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.lease-list-wrap .car-price {
    font-size: 14px;
    color: #333;
    margin-bottom: 16px;
}

.lease-list-wrap .car-price > div:first-child {
    margin-bottom: 2px;
}

.lease-list-wrap .price {
    display: inline-block;
    margin-left: 6px;
    font-weight: bold;
    color: #0066ff;
}

.lease-list-wrap .car-btn {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.lease-list-wrap .car-btn button {
    flex: 1;
    padding: 10px 0;
    font-size: 15px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
}

.lease-list-wrap .btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
}

.lease-list-wrap .btn-outline {
    background: #fff;
    color: #333;
    border: 1px solid #555;
}


/* 리스트 검색  ******************/
.search-bar {
    display: flex;
    align-items: center;
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.search-bar input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border 0.2s ease;
}

.search-bar input:focus {
    border-color: #2563eb;
}

.search-bar button {
    width: 44px;
    height: 44px;
    margin-left: 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: border-color 0.2s ease;
}

.search-bar button:hover {
    border-color: #2563eb;
}

.search-bar button img {
    width: 20px;
    height: 20px;
}

.filter-buttons .df {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    align-items: flex-end;
    justify-content: flex-end;
}



.filter-buttons .btn-reset {
    font-size: 13px;
    padding: 6px 12px;
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
}

.filter-buttons .btn-reset:hover {
    background: #e5e5e5;
}

.filter-btn {
    padding: 10px 18px;
    font-size: 15px;
    font-weight: bold;
    color: #333;
    border: 1px solid #555;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}


.custom-select {
    position: relative;
    display: inline-block;
    font-size: 15px;
}

.select-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid #555;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    width: 160px;
    font-weight: bold;
}

.select-toggle svg {
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.custom-select.open .select-toggle svg {
    transform: rotate(180deg);
}

.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    width: 100%;
    background: #fff;
    border: 1px solid #555;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    list-style: none;
    padding: 8px 0;
    display: none;
    z-index: 100;
}

.custom-select.open .select-options {
    display: block;
}

.select-options li {
    padding: 10px 16px;
    cursor: pointer;
}

.select-options li:hover {
    background-color: #f5f5f5;
}

@media (max-width:768px) {
    .filter-buttons .df {
        align-items: center;
        justify-content: center;
        padding: 0 20px;
    }
    
    .filter-buttons .filter-btn {
        text-align: center;
    }
    
    .filter-buttons .df button,
    .filter-buttons .df .custom-select {
        width: 100%;
    }
    
}


/* 리스트 제조사/모델 모달  ******************/
.model-search-wrap {
    padding: 20px;
    margin: 0 auto;
}

.model-search-wrap input[type="radio"] {
    display: none;
}

.model-search-wrap .tab {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.model-search-wrap .tab button {
    flex: 1;
    padding: 10px;
    font-weight: bold;
    background: #e5e5e5;
    cursor: pointer;
    text-align: center;
    color: #888;
}

.model-search-wrap .tab button.active {
    background: #fff;
    color: #111;
    border: 1.5px solid #868686;
}

.model-search-wrap .section {
    display: none;
}

.model-search-wrap .section.active {
    display: block;
}

.model-search-wrap label {
    display: block;
    margin-bottom: 5px;
}

.model-search-wrap label span {
    position: relative;
    display: block;
    padding-left: 35px;
    font-size: 15px;
    line-height: 40px;
    cursor: pointer;
    background: #f9f9f9;
    border: 1px solid #ccc;
    height: 40px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.model-search-wrap label span:hover {
    background: #eee;
}

.model-search-wrap label span::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #999;
    border-radius: 50%;
    background: #fff;
    transition: all 0.2s ease;
}

.model-search-wrap input[type="radio"]:checked + span::before {
    border-color: #c5192d;
}

.model-search-wrap input[type="radio"]:checked + span::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #c5192d;
    border-radius: 50%;
}

.model-search-wrap .selected-filter {
    margin-bottom: 10px;
    font-size: 14px;
}

.model-search-wrap .selected-filter span {
    background: #eee;
    padding: 5px 10px;
    margin-right: 5px;
    border-radius: 3px;
    cursor: pointer;
}

.model-search-wrap .submit-btn {
    display: block;
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 30px;
    font-weight: bold;
    font-size: 16px;
}

.model-modal-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.model-modal-dim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.model-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    max-width: 90%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    z-index: 2001;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.model-modal-inner {
    padding: 24px;
    position: relative;
}

.model-modal .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
}

.model-modal .modal-close svg {
    width: 20px;
    height: 20px;
    stroke: #333;
}
