.baro_review_container {
  max-width: auto;
  margin: 0 auto;
  background-color: #f9f9f9;
}

/* 필터 컨테이너 */
.baro_review_filter_container {
  background-color: #ffffff;
  border-radius: 0;
  padding: 0;
  margin-bottom: 20px;
}

/* 필터 섹션 */
.baro_review_filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
}

.baro_review_filter_left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.baro_filter_item {
  background-color: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  height: 40px;
}

.baro_review_rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.baro_review_rating span {
  color: #333333;
  font-size: 14px;
}

.baro_stars {
  display: flex;
}

.baro_star {
  color: #ddd;
  cursor: pointer;
  font-size: 18px;
}

.baro_star.active {
  color: #fbbf24;
}

.baro_review_dropdown {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  position: relative;
  color: #333333;
  font-size: 14px;
  min-width: 100px; /* 최소 너비 설정 */
  white-space: nowrap; /* 텍스트 줄바꿈 방지 */
}

.baro_dropdown_menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  min-width: 100px; /* 최소 너비 설정 */
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-top: 5px;
  z-index: 10;
  display: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.baro_dropdown_menu.active {
  display: block;
}

.baro_dropdown_item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  color: #333333;
  white-space: nowrap; /* 텍스트 줄바꿈 방지 */
}

.baro_dropdown_item:hover {
  background-color: #f5f5f5;
}

.baro_review_filter_right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.baro_review_btn {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 14px;
  color: #333333;
  background-color: #f9f9f9;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.baro_review_btn svg {
  color: #666666;
}

.baro_review_btn:hover {
  background-color: #f0f0f0;
}

.baro_review_btn.active {
  background-color: #e4eaf1;
  border-color: #e4eaf1;
  color: #6082b6;
}

.baro_review_btn.active svg {
  color: #6082b6;
}

/* 태그 섹션 */
.baro_review_tags {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
}

.baro_review_tag {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333333;
  font-size: 14px;
}

.baro_active_filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.baro_tag {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background-color: #e4eaf1;
  border-radius: 20px;
  font-size: 14px;
  color: #333333;
}

.baro_tag_close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #666666;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
}

.baro_review_reset {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  color: #666666;
  font-size: 14px;
}

.baro_review_reset svg {
  transform: rotate(45deg);
}

/* 콘텐츠 영역 */
.baro_review_content_area {
  background-color: #f9f9f9;
  padding: 40px;
}

/* 리뷰 목록 */
.baro_review_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

/* 로딩 상태 스타일 */
.baro_loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  grid-column: 1 / -1;
  text-align: center;
}

.baro_loading_spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 145, 255, 0.2);
  border-radius: 50%;
  border-top-color: #0091ff;
  animation: baro-spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes baro-spin {
  to {
    transform: rotate(360deg);
  }
}

.baro_loading p {
  color: #666666;
  font-size: 16px;
}

.baro_no_results {
  grid-column: span 3;
  text-align: center;
  padding: 40px 0;
  color: #666666;
  font-size: 16px;
}

/* 카드 스타일 수정 */
.baro_review_card {
  padding: 20px;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: none;
  display: flex;
  flex-direction: column;
  padding: 20px;
  cursor: default; /* 기본 커서로 변경 */
}

.baro_review_card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.baro_review_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 16px 0;
}

.baro_review_user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.baro_user_avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.baro_user_info {
  display: flex;
  flex-direction: column;
}

.baro_user_name {
  font-weight: 600;
  color: #0091ff;
  font-size: 20px;
  margin-bottom: 4px;
}

.baro_user_rating {
  color: #ffd600;
  font-size: 18px;
  line-height: 1;
}

.baro_review_date {
  color: #666666;
  font-size: 18px;
}

.baro_review_image {
  width: 100%;
  margin: 0;
  border-radius: 12px;
  object-fit: cover;
  height: 240px;
  display: block;
}

.baro_review_content {
  padding: 20px 0 0 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.baro_review_title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #0091ff;
}

.baro_review_text {
  font-size: 16px;
  line-height: 1.5;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.baro_review_more {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #0091ff;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  align-self: flex-start;
}

.baro_review_more:hover {
  text-decoration: underline;
}

/* 페이지네이션 */
.baro_review_pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  gap: 10px;
}

.baro_pagination_prev,
.baro_pagination_next {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #666666;
  font-size: 18px;
  transition: background-color 0.2s;
}

.baro_pagination_prev:hover,
.baro_pagination_next:hover {
  background-color: #e0e0e0;
}

.baro_pagination_numbers {
  display: flex;
  gap: 10px;
  align-items: center;
}

.baro_page_number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  color: #333333;
  transition: background-color 0.2s, color 0.2s;
}

.baro_page_number:hover {
  background-color: #e0e0e0;
}

.baro_page_number.active {
  background-color: #0091ff;
  color: white;
}

.baro_page_ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  color: #666666;
  font-size: 16px;
}

/* CTA 섹션 */
.baro_review_cta {
  text-align: center;
  padding: 60px 0 60px;
  background-color: #ffffff; /* 배경색을 흰색으로 변경 */
}

.baro_review_cta h2 {
  font-size: 24px;
  color: #0099FF;
  margin-bottom: 15px;
}

.baro_review_cta p {
  color: #666666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.baro_cta_button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: #0099FF;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  margin: 0 auto;
}

.baro_cta_button:hover {
  background-color: #4a6a9e;
}

/* 검색 모달 */
.baro_search_modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.baro_search_modal.active {
  opacity: 1;
  visibility: visible;
}

.baro_search_modal_content {
  background-color: #ffffff;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.baro_search_modal_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.baro_search_modal_header h3 {
  font-size: 18px;
  color: #333333;
  font-weight: 600;
}

.baro_search_modal_close {
  background: none;
  border: none;
  cursor: pointer;
  color: #666666;
  display: flex;
  align-items: center;
  justify-content: center;
}

.baro_search_modal_body {
  padding: 20px;
}

.baro_search_input_container {
  margin-bottom: 20px;
}

.baro_search_input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  color: #333333;
}

.baro_search_input:focus {
  outline: none;
  border-color: #6082b6;
}

.baro_search_modal_buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.baro_search_cancel,
.baro_search_submit {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.baro_search_cancel {
  background-color: #f5f5f5;
  border: 1px solid #e5e7eb;
  color: #666666;
}

.baro_search_submit {
  background-color: #6082b6;
  border: none;
  color: white;
}

.baro_search_submit:hover {
  background-color: #4a6a9e;
}

/* 리뷰 작성 모달 */
.baro_review_write_modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  overflow-y: auto;
  padding: 20px;
}

.baro_review_write_modal.active {
  opacity: 1;
  visibility: visible;
}

.baro_review_write_content {
  background-color: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.baro_review_write_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.baro_review_write_header h3 {
  font-size: 20px;
  color: #333333;
  font-weight: 600;
}

.baro_review_write_close {
  background: none;
  border: none;
  cursor: pointer;
  color: #666666;
  display: flex;
  align-items: center;
  justify-content: center;
}

.baro_review_write_body {
  padding: 20px;
  overflow-y: auto;
}

.baro_form_group {
  margin-bottom: 20px;
}

.baro_form_group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333333;
}

.baro_form_group input[type="text"],
.baro_form_group select,
.baro_form_group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  color: #333333;
}

.baro_form_group input[type="text"]:focus,
.baro_form_group select:focus,
.baro_form_group textarea:focus {
  outline: none;
  border-color: #0091ff;
}

/* 리뷰 작성 모달의 별점 스타일 개선 */
.baro_review_write_stars {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}

.baro_write_star {
  color: #ddd; /* 기본 색상을 회색으로 변경 */
  cursor: pointer;
  font-size: 24px;
  transition: color 0.2s ease;
}

.baro_write_star:hover {
  color: #ffd600;
}

.baro_write_star.active {
  color: #ffd600;
}

/* 파일 선택 UI 개선 */
.baro_image_upload {
  margin-top: 10px;
}

.baro_file_input_container {
  position: relative;
  width: 100%;
  height: 200px;
  border: 2px dashed #e5e7eb;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  background-color: #f9f9f9;
}

.baro_file_input_container:hover {
  border-color: #0091ff;
  background-color: #f0f7ff;
}

.baro_file_input_container input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

.baro_file_input_icon {
  font-size: 40px;
  color: #0091ff;
  margin-bottom: 10px;
}

.baro_file_input_text {
  color: #666666;
  font-size: 16px;
  text-align: center;
}

.baro_file_input_subtext {
  color: #999999;
  font-size: 14px;
  margin-top: 5px;
  text-align: center;
}

.baro_image_preview {
  margin-top: 15px;
  width: 100%;
  height: 200px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666666;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.baro_image_preview_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.baro_image_preview:hover .baro_image_preview_overlay {
  opacity: 1;
}

.baro_image_preview_change {
  background-color: #0091ff;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 8px;
}

.baro_image_preview_remove {
  background-color: #ff4a4a;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
}

.baro_form_buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 30px;
}

.baro_review_cancel,
.baro_review_submit {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.baro_review_cancel {
  background-color: #f5f5f5;
  border: 1px solid #e5e7eb;
  color: #666666;
}

.baro_review_submit {
  background-color: #0091ff;
  border: none;
  color: white;
}

.baro_review_submit:hover {
  background-color: #007ad9;
}

/* 리뷰 등록 완료 모달 */
.baro_review_success_modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.baro_review_success_modal.active {
  opacity: 1;
  visibility: visible;
}

.baro_review_success_content {
  background-color: #ffffff;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 30px;
  text-align: center;
}

.baro_review_success_icon {
  margin-bottom: 20px;
}

.baro_review_success_content h3 {
  font-size: 20px;
  color: #333333;
  margin-bottom: 10px;
}

.baro_review_success_content p {
  color: #666666;
  margin-bottom: 20px;
}

.baro_success_close {
  padding: 12px 40px;
  background-color: #0091ff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.baro_success_close:hover {
  background-color: #007ad9;
}

/* 오류 메시지 스타일 */
.baro_error_message {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #fff2f2;
  border: 1px solid #ffcaca;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  color: #d32f2f;
  font-size: 14px;
}

.baro_error_message svg {
  flex-shrink: 0;
}

/* 리뷰 상세 모달 */
.baro_review_detail_modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  overflow-y: auto;
  padding: 20px;
}

.baro_review_detail_modal.active {
  opacity: 1;
  visibility: visible;
}

.baro_review_detail_content {
  background-color: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 800px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.baro_review_detail_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.baro_review_detail_header h3 {
  font-size: 20px;
  color: #333333;
  font-weight: 600;
}

.baro_review_detail_close {
  background: none;
  border: none;
  cursor: pointer;
  color: #666666;
  display: flex;
  align-items: center;
  justify-content: center;
}

.baro_review_detail_body {
  padding: 0;
  overflow-y: auto;
}

.baro_review_detail_image {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.baro_review_detail_info {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.baro_review_detail_user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.baro_review_detail_avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

.baro_review_detail_user_info {
  display: flex;
  flex-direction: column;
}

.baro_review_detail_user_name {
  font-size: 22px;
  font-weight: 600;
  color: #0091ff;
  margin-bottom: 4px;
}

.baro_review_detail_rating {
  color: #ffd600;
  font-size: 20px;
}

.baro_review_detail_date {
  color: #666666;
  font-size: 16px;
}

.baro_review_detail_content_wrapper {
  padding: 0 24px 24px 24px;
}

.baro_review_detail_title {
  font-size: 28px;
  font-weight: 600;
  color: #0091ff;
  margin-bottom: 16px;
}

.baro_review_detail_text {
  font-size: 18px;
  line-height: 1.6;
  color: #333333;
  margin-bottom: 24px;
}

.baro_review_detail_car_info {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.baro_review_detail_car_type {
  font-size: 16px;
  color: #666666;
  margin-bottom: 8px;
}

.baro_review_detail_car_type span {
  font-weight: 600;
  color: #333333;
}

/* 반응형 그리드 수정 */
@media (min-width: 1200px) {
  .baro_review_list {
    grid-template-columns: repeat(3, 1fr);
  }

  .baro_no_results {
    grid-column: span 3;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .baro_review_list {
    grid-template-columns: repeat(2, 1fr);
  }

  .baro_no_results {
    grid-column: span 2;
  }
}

@media (max-width: 767px) {
  .baro_review_list {
    grid-template-columns: 1fr;
  }

  .baro_no_results {
    grid-column: span 1;
  }

  .baro_review_filter {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .baro_review_filter_right {
    margin-top: 10px;
    width: 100%;
  }

  .baro_review_image {
    height: 200px;
  }

  .baro_review_write_content {
    max-height: 95vh;
  }

  .baro_form_buttons {
    flex-direction: column;
  }

  .baro_review_cancel,
  .baro_review_submit {
    width: 100%;
  }

  .baro_review_detail_image {
    height: 250px;
  }

  .baro_review_detail_content {
    max-height: 95vh;
  }

  .baro_review_detail_info {
    flex-direction: column;
  }

  .baro_review_detail_date {
    margin-top: 12px;
  }
}
