/* store4.php - 점포 매물 정보/지역 검색 페이지 공통 스타일 */

.store4 .s-inner {
  max-width:1000px;
  margin: 0 auto;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
}

/* 시도 선택 박스 */
.sido_select_box {
  margin-bottom: 30px;
  text-align: center;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 15px;
  border: 1px solid #eee;
}

/* 모바일용 드롭다운 */
.sido_select_m {
  display: none;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 15px 20px;
  border: 1px solid #d8232a;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #d8232a;
  background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23d8232a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 20px center;
  background-size: 14px;
  appearance: none;
  cursor: pointer;
  outline: none;
}

.sido_select_box .sido {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.sido_select_box .sido li {
  padding: 12px 10px;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  color: #444;
  transition: all 0.2s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sido_select_box .sido li:hover {
  background: #fff;
  border-color: #d8232a;
  color: #d8232a;
}

.sido_select_box .sido li.on {
  background: #d8232a;
  border-color: #d8232a;
  color: #fff;
  box-shadow: 0 4px 10px rgba(216, 35, 42, 0.2);
}

/* 768px 전환 포인트 */
@media screen and (max-width: 768px) {
  .sido_select_box {
    padding: 20px;
    margin-bottom: 20px;;
  }
  .sido_select_box .sido {
    display: none !important; /* 모바일 그리드 숨김 */
  }
  .sido_select_m {
    display: block; /* 모바일 드롭다운 노출 */
  }
}

@media screen and (max-width: 500px) {
  .sido_select_m {
    max-width: 100%;
  }
}

/* 리스트 헤더 */
.sido_list .head_list {
  display: flex;
  background: #212529;
  color: #fff;
  border-radius: 8px;
  padding: 18px 0;
  list-style: none;
  margin: 0 auto 10px;
  text-align: center;
}

.sido_list .head_list li {
  font-weight: 600;
  font-size: 16px;
}

.sido_list .head_list li:nth-child(1) {
  width: 10%;
}
.sido_list .head_list li:nth-child(2) {
  width: 15%;
}
.sido_list .head_list li:nth-child(3) {
  width: 45%;
}
.sido_list .head_list li:nth-child(4) {
  width: 30%;
}

/* 매물 박스 (Card) */
.zone_box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zone_box .box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.zone_box .box:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* 요약 정보 라인 */
.zone_info {
  display: flex;
  align-items: center;
  padding: 20px 0;
  list-style: none;
  margin: 0;
  cursor: pointer;
  text-align: center;
  border-bottom: 1px solid #f8f9fa;
  transition: background 0.2s;
}

.zone_info:hover {
  background: #fff9f9;
}

.zone_info li {
  font-size: 15px;
  color: #333;
}

.zone_info li:nth-child(1) {
  width: 10%;
  color: #999;
}
.zone_info li:nth-child(2) {
  width: 15%;
  font-weight: 600;
}
.zone_info li:nth-child(3) {
  width: 45%;
  text-align: center;
  color: #d8232a;
  font-weight: 700;
}
.zone_info li:nth-child(4) {
  width: 30%;
  color: #666;
}

/* 상세 보기 영역 */
.zone_view {
  display: none; /* JS로 토글 */
  padding: 30px;
  background: #fff;
  border-top: 1px solid #eee;
}

.zone_box .box.on .zone_view {
  display: block;
}

.zone_view .top_img {
  width: 100%;
  max-height: 450px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 0px;
}

.zone_view .top_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.zone_view .info_cont {
  width:100%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  justify-content: center;
}

.zone_view .info {
  flex: 1 1 calc(50% - 10px);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* info 내부 cont가 하나인 경우 100% 채우기 */
.zone_view .info:has(.cont:only-child) {
  flex: 1 1 100%;
}

.zone_view .cont {
  padding-bottom: 15px;
  border-bottom: 1px solid #f1f3f5;
}

.zone_view .cont h3 {
  font-size: 14px;
  color: #868e96;
  margin-bottom: 8px;
  font-weight: 500;
}

.zone_view .cont p {
  font-size: 18px;
  color: #212529;
  font-weight: 600;
  margin: 0;
}

/* 지도 영역 */
.zone_view .map {
  width: 100%;
  height: 350px;
  background: #f1f3f5;
  border-radius: 8px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 14px;
  border: 1px solid #e9ecef;
}
.zone_view .map::before {
  content: "구글/네이버 지도 API 연동 위치";
}

/* 설명 (Textarea) */
.zone_view .info .cont textarea {
  width: 100%;
  height: 120px;
  border: 1px solid #eee;
  padding: 15px;
  border-radius: 6px;
  resize: none;
  font-size: 14px;
  line-height: 1.6;
  background: #fafafa;
  color: #444;
}

/* 버튼 영역 */
.store_btn {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.store_btn .btn {
  display: inline-block;
  padding: 16px 50px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  line-height: 1;
  height: auto;
}

.store_btn .btn1 {
  background: #d8232a;
  color: #fff;
  box-shadow: 0 4px 15px rgba(216, 35, 42, 0.3);
}

.store_btn .btn1:hover {
  background: #b51c22;
  transform: translateY(-2px);
}

.store_btn .btn2 {
  background: #444;
  color: #fff;
}

.store_btn .btn2:hover {
  background: #333;
  transform: translateY(-2px);
}

.store_btn .btn3 {
  background: #888;
  color: #fff;
}

.store_btn .btn3:hover {
  background: #999;
  transform: translateY(-2px);
}

.store_btn .btn4 {
  background: #111;
  color: #fff;
}

.store_btn .btn4:hover {
  background: #222;
  transform: translateY(-2px);
}

/* 반응형 모바일 */
@media screen and (max-width: 900px) {
  .sido_list .head_list {
    display: none;
  }

  .zone_info {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 8px;
  }

  .zone_info li {
    width: 100% !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    margin: 0 !important;
    font-size: 15px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 8px;
  }
  
  .zone_info li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  /* 모바일 제목 추가 */
  .zone_info li::before {
    content: attr(data-label);
    width: 100px;
    color: #999;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
  }

  .zone_info li:nth-child(3) {
    font-size: 16px; /* 상권 강조 */
    margin-top: 0;
    text-align: left;
  }
  

  .zone_view .info {
    flex: 1 1 100%;
  }

  .store_btn {
    flex-direction: column;
  }
  .store_btn .btn {
    width: 100%;
    text-align: center;
  }
}
