/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
   	font-family: "Noto Sans", sans-serif;
}

body {
    background-color: #fff;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}


/* Header */
.header {
    height: 60px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    
}

.header-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #0047FF;
    margin-right: 60px;
}

.nav a {
    margin-right: 30px;
    font-size: 18px;
    font-weight: 500;
    color: #C7C7C7;
}

.nav a.active {
    color: #269073;
    font-weight: bold;
}

.loading-overlay {
	  position: fixed;
	  top: 0;
	  left: 0;
	  width: 100%;
	  height: 100%;
	  background-color: rgba(0, 0, 0, 0.6); /* 어둡게 처리 */
	  display: flex;
	  justify-content: center;
	  align-items: center;
	  z-index: 9999;
	  display: none; /* 초기에는 숨김 */
}
.spinner {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  animation: fadeIn 0.3s ease-in-out;
}

.review-reset,
.review-reset *{
    margin:0;
    padding:0;
    box-sizing:border-box;
    writing-mode:horizontal-tb !important;
    word-break:keep-all;
    letter-spacing:0;
    transform:none;
    width: 100%;
    max-width: 1400px;
    margin:0 auto;
}

.review-reset img{
    display:block;
    width:100% !important;
    height:200px !important;
    object-fit:cover;
}

.review-reset{
    width:100%;
    padding:30px;
}

.review-title{
    font-size:16px;
    font-weight:700;
    margin-bottom:25px;
}

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

.review-card{
    background:#fff;
    border:1px solid #ddd;
    border-radius:8px;
    padding:18px;
    height: 630px;
    width: 300px;
}

.review-car-title{
    font-size:16px;
    font-weight:700;
}

.review-star{
    color: #f4b400;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.review-desc{
    font-size:13px;
    color:#A9A9A9;
    line-height:1.6;
    height:80px;
    overflow:hidden;
    margin-bottom:14px;
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}


.review-desc-cartree{
    font-size:13px;
    color:#777;
    line-height:1.6;
    height:285px;
    overflow:hidden;
    margin-bottom:14px;
    margin-top: 10px;
}

.review-thumb-list{
    display:flex;
    gap:6px;
    margin-bottom:16px;
}

.review-info{
    border:1px solid #eeeeee;
    padding-top:14px;
    border-radius: 6px; /* 살짝 둥글게 */
    padding-bottom:14px;
}

.review-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:13px;
    color:#666;
    margin-bottom:10px;
}

.review-total{
    padding-top:5px;
    border-top:1px solid #eee;
    font-weight:700;
}

.review-total span:last-child{
    color:#08a57d;
    font-size:18px;
}

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

@media(max-width:700px){
    .review-list{
        grid-template-columns:1fr;
    }
}

.span-price{
	text-align: right;
	padding-right:15px;
	color: #393939
}
.span-title{
	text-align: left;
	padding-left: 15px;
	color: #A9A9A9
}
.span-car-name{
	padding-right:15px;
	text-align: right;
	white-space: nowrap;
    overflow: hidden;
	text-overflow: ellipsis;
	color: #393939
}


/*모달*/

.open-btn {
    padding: 12px 24px;
    background: #4a6cf7;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

.open-btn:hover {
    background: #3451d1;
}
body.modal-open {
  overflow: hidden;
}
/* 모달 배경 */
.modal-img{
	width: 100%;
    height: 400px;
}
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* 열렸을 때 */
.modal.show {
    display: flex;
}

/* 모달 박스 */
.modal-content {
    background: white;
    width: 800px;
    max-width: 90%;
    padding: 25px;
    border-radius: 12px;
    position: relative;
    animation: fadeIn 0.3s ease;
    height: 100%;
    overflow-y:auto; 
}

.modal-content h2 {
    margin-bottom: 15px;
}

.modal-content p {
    color: #555;
    line-height: 1.5;
}

/* 닫기 버튼 */
.close-btn {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
    border: none;
    background: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.modal-reset,
.modal-reset *{
    margin:0;
    padding:0;
    box-sizing:border-box;
    writing-mode:horizontal-tb !important;
    word-break:keep-all;
    letter-spacing:0;
    transform:none;
    width: 100%;
    max-width: 1400px;
    margin:0 auto;
}

.modal-reset img{
    display:block;
    width:100% !important;
    height:200px !important;
    object-fit:cover;
}

.modal-reset{
    width:100%;
    padding:30px;
}

.modal-title{
    font-size:16px;
    font-weight:700;
    margin-bottom:25px;
}

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

.modal-card{
    background:#fff;
    border:1px solid #ddd;
    border-radius:8px;
    padding:18px;
    height:840px;
    width:100%;
}

.modal-car-title{
    font-size:16px;
    font-weight:700;
}

.modal-star{
    color:#f4b400;
    padding-bottom:10px;
    border-bottom:1px solid #eee;
}

.modal-desc{
    font-size:13px;
    color:#A9A9A9;
    line-height:1.6;
    height:100px;
    overflow-y:auto;
    margin-bottom:14px;
    margin-top:10px;
    display:-webkit-box;
    -webkit-line-clamp:4;
    -webkit-box-orient:vertical;
}

.modal-desc-cartree{
    font-size:13px;
    color:#777;
    line-height:1.6;
    height:285px;
    overflow:hidden;
    margin-bottom:14px;
    margin-top:10px;
}

.modal-thumb-list{
    display:flex;
    gap:6px;
    margin-bottom:16px;
}

.modal-info{
    border:1px solid #eeeeee;
    padding-top:14px;
    border-radius:6px;
    padding-bottom:14px;
}

.modal-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:13px;
    color:#666;
    margin-bottom:10px;
}

.modal-total{
    margin-top:14px;
    padding-top:14px;
    border-top:1px solid #eee;
    font-weight:700;
}

.modal-total span:last-child{
    color:#08a57d;
    font-size:18px;
}

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

@media(max-width:700px){
    .modal-list{
        grid-template-columns:1fr;
    }
}
