@charset "utf-8";

:root {
    --primary: #c5cef4;
}

/* 관리자 리스트 ************************************/
.admin-table-wrap {
    padding: 150px 0;
    max-width: 1440px;
    margin: 0 auto;
}

.admin-table-wrap h2 {
    font-size: 24px;
    line-height: 1;
    margin-bottom: 24px;
}

/* 리스트 ************************************/
.rental-list-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 150px 0;
}

/* ✅ 차량 필터 영역 */
.rental-list-wrap .rental-filter-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}

.rental-list-wrap .rental-filter-total {
    font-size: 18px;
    font-weight: bold;
}

.rental-list-wrap .rental-filter-btns {
    display: flex;
    gap: 10px;
}

.rental-list-wrap .filter-btn {
    padding: 8px 16px;
    border: 1px solid #aaa;
    background: #fff;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
}

/* ✅ 선택된 필터 태그 */
.rental-list-wrap .rental-filter-selected {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7f7f7;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 6px;
}

.rental-list-wrap .rental-grid {
        max-width: 1200px;
    margin: 0 auto 100px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.rental-list-wrap .rental-grid .rental-card {
        border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease;
    position: relative;
    box-shadow: 5px 38px 90px rgba(100, 100, 100, 0.1);
}

.rental-list-wrap .rental-grid .rental-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rental-list-wrap .filter-tag {
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.rental-list-wrap .filter-tag button {
    background: none;
    border: none;
    font-size: 12px;
    cursor: pointer;
}

/* ✅ 리스트 영역 */
.rental-list-wrap .rental-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.rental-list-wrap .rental-item {
    width: calc(33.333% - 16px);
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
}

.rental-list-wrap .rental-item:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.rental-list-wrap .rental-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.rental-list-wrap .rental-info {
    padding: 16px;
}

.rental-list-wrap .rental-name {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #222;
    line-height: 1.4;
}

.rental-list-wrap .rental-meta {
    font-size: 14px;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ✅ 필터 모달 */
.rental-filter-dim {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 900;
    display: none;
}

.rental-filter-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 90%;
    max-width: 480px;
    border-radius: 12px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.rental-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #eee;
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;
}

.rental-filter-header .filter-tab {
    display: flex;
    gap: 10px;
}

.rental-filter-header .tab-btn {
    background: none;
    border: none;
    font-size: 15px;
    cursor: pointer;
    font-weight: bold;
    color: #666;
}

.rental-filter-header .tab-btn.on {
    color: #c5192d;
}

.filter-tab-content {
    padding: 20px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.rental-filter-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid #ddd;
    background: #f9f9f9;
}

.rental-filter-footer .filter-reset,
.rental-filter-footer .filter-apply {
    padding: 8px 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.rental-filter-footer .filter-reset {
    background: #eee;
    color: #333;
}

.rental-filter-footer .filter-apply {
    background: #c5192d;
    color: #fff;
}

/* ✅ 체크박스/라디오 스타일 통합 */
.rental-list-wrap .checkbox-wrap,
.rental-list-wrap .radio-wrap {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: default;
}

.rental-list-wrap .checkbox-wrap input[type="checkbox"],
.rental-list-wrap .radio-wrap input[type="radio"],
.rental-list-wrap .checkbox-wrap span,
.rental-list-wrap .radio-wrap span {
    cursor: pointer;
}

.rental-list-wrap .checkbox-wrap input[type="checkbox"],
.rental-list-wrap .radio-wrap input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-block;
    margin-right: 8px;
}

.rental-list-wrap .checkbox-wrap input[type="checkbox"]:checked {
    background-color: #c5192d;
    border-color: #c5192d;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 20 20' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.629 14.314a1 1 0 01-1.414 0L3.05 11.15a1 1 0 111.415-1.414l2.45 2.45 7.07-7.071a1 1 0 111.415 1.414l-8.77 8.785z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}

.rental-list-wrap .radio-wrap input[type="radio"]:checked {
    background-color: #c5192d;
    border-color: #c5192d;
    background-image: none; /* 가운데 점 제거 */
}

/* ✅ 차량 종류 필터 버튼 */
.rental-list-wrap .rental-list-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 20px;
    background: #f9f9f9;
}

.rental-list-wrap .rental-list-filter button {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    color: #333;
    transition: all 0.2s;
}

.rental-list-wrap .rental-list-filter button.active {
    background: #fff0f0;
    border-color: #c5192d;
    color: #c5192d;
    font-weight: bold;
}

.rental-filter-btns .register-btn {
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
}

/* ✅ 반응형 */
@media (max-width: 1024px) {
    .rental-list-wrap .rental-item {
        width: calc(33.333% - 16px);
    }
}

@media (max-width: 768px) {
    .rental-list-wrap .rental-item {
        width: calc(50% - 12px);
    }
}

@media (max-width: 480px) {
    .rental-list-wrap .rental-item {
        width: 100%;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }
}
