.custom-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;

  background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='24' viewBox='0 0 20 20' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 7l3 3 3-3'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px 20px;
}
.flex_row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.price_input {
  flex: 1;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.price_edit_btn {
  padding: 8px 16px;
  font-size: 14px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.price_edit_btn:hover {
  background-color: #0056b3;
}

#estimate_capture_area {
  font-family: 'sans-serif';
  padding: 32px;
  box-sizing: border-box;
  line-height: 1.6;
}

@media screen and (max-width: 768px) {
  .compare_detail_wrapper {
    flex-direction: column;
  }

  .admin_status_box {
    width: 100% !important;
  }
}


.compare_card{
  height: auto;
}


.compare_card_head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  border-bottom: 1px solid #d9d9d9;
}

.compare_card_head .title_group .cate {
  font-family: Pretendard;
  font-weight: 400;
  font-size: 14px;
  color: #555;
  line-height: 1.4;
  margin-top: 15px;
}

.compare_card_head .title_group .title {
  font-family: Pretendard;
  font-size: 18px;
  font-weight: 600;
  margin-top: 4px;
  line-height: 1.4;
  display: inline-block;
  border-radius: 4px;
  color: #222;
}

.emergency_badge {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid red;
  color: red;
  padding: 4px 10px;
  font-size: 13px;
  border-radius: 20px;
  font-weight: 500;
  white-space: nowrap;
}

.emergency_badge img {
  width: 16px;
  height: 16px;
}

.compare_card .foot .info {
  background-color: var(--primary1);
  justify-content: center;
}

.compare_card .foot .info.gray {
  background-color: var(--gray4);
}

.compare_card .foot .info .status {
  color: #fff;
  text-align: center;
  font-size: 14px;
}

.portfolio-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.portfolio-card {
  width: 280px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.portfolio-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.portfolio-info {
  padding: 16px;
}

.portfolio-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
}

.portfolio-meta {
  font-size: 13px;
  color: #888;
}


#portfolioPopup {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Noto Sans KR', sans-serif;
}

.popup_inner {
  display: flex;
  width: 90%;
  max-width: 1000px;
  max-height: 90%;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
}

.popup_slide_area {
  width: 50%;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.popupSwiper {
  width: 100%;
  height: 400px;
}

.popupSwiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.popupSwiper .swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.popup_detail_info {
  width: 50%;
  padding: 32px;
  overflow-y: auto;
  box-sizing: border-box;
}

.popup_title {
  font-size: 26px;
  font-weight: 600;
  color: #111;
  margin-bottom: 10px;
}

.popup_summary {
  font-size: 20px;
  color: #555;
  margin-bottom: 18px;
  line-height: 1.5;
}

.info_meta p {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.info_desc {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  margin-top: 24px;
  white-space: pre-line;
}

.btn_close_popup {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  color: #999;
  cursor: pointer;
}

.btn_close_popup:hover {
  color: #333;
}


@media screen and (max-width: 768px) {
  .compare_card_head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .emergency_badge {
    align-self: flex-end;
  }
}