/* 깔끔하고 미니멀한 매물 목록 페이지 스타일 */

/* 페이지 헤더 섹션 스타일링 */
.listings-header {
    /* 배경 이미지와 그라데이션 오버레이 */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
  padding: 40px 0;
  border-bottom: 1px solid #f0f0f0;
}

/* 헤더 콘텐츠 중앙 정렬 */
.header-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* 페이지 제목 스타일 */
.page-title {
  font-size: 2.5em;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

/* 페이지 부제목 스타일 */
.page-subtitle {
  font-size: 1.1em;
  color: #efefef;
  margin-bottom: 0;
  font-weight: 400;
}

/* 정보 배너 스타일링 */
.access-info, .features-info {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 16px 20px;
  margin: 20px auto 0;
  max-width: 500px;
  font-size: 0.9em;
  text-align: center;
}

/* 접근 정보 배너 - 노란색 경고 스타일 */
.access-info {
  color: #856404;
  background: #fff3cd;
  border-color: #ffeaa7;
}

/* 기능 정보 배너 - 그리드 레이아웃 */
.features-info {
  background: #f8f9fa;
  border-color: #e9ecef;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* 기능 아이템 스타일 */
.feature-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6c757d;
  font-size: 0.85em;
}

/* 검색 필터 섹션 스타일링 */
.search-filter-section {
  background: #ffffff;
  padding: 30px 0;
  border-bottom: 1px solid #f0f0f0;
}

/* 검색 입력 필드 그리드 레이아웃 */
.search-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

/* 검색 입력 그룹 스타일 */
.search-input-group {
  position: relative;
}

/* 검색 입력 아이콘 위치 설정 */
.search-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #adb5bd;
  font-size: 0.9em;
}

/* 검색 입력 필드 스타일 */
.search-input-field {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  font-size: 0.95em;
  transition: border-color 0.2s ease;
}

/* 검색 입력 필드 포커스 효과 */
.search-input-field:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

/* 셀렉트 박스 스타일 */
.form-select {
  padding: 12px 14px;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  font-size: 0.95em;
  background-color: white;
  transition: border-color 0.2s ease;
}

/* 셀렉트 박스 포커스 효과 */
.form-select:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

/* 검색 버튼 스타일 */
.search-btn {
  padding: 12px 20px;
  background: #0066cc;
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: 500;
  font-size: 0.95em;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

/* 검색 버튼 호버 효과 */
.search-btn:hover {
  background: #0052a3;
}

/* 검색 결과 섹션 스타일링 */
.results-section {
  padding: 20px 0;
  background: #fafbfc;
  min-height: 60vh;
}

/* 결과 헤더 레이아웃 */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0px;
  padding-bottom: 0px;
  border-bottom: 1px solid #f0f0f0;
}

/* 결과 정보 스타일 */
.results-info h2 {
  font-size: 15px;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
}

/* 결과 뱃지 스타일 */
.results-info .badge {
  font-size: 0.75em;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
}

/* 필터 요약 텍스트 */
.filter-summary {
  color: #7f8c8d;
  font-size: 0.9em;
  margin: 4px 0 0 0;
}

/* 정렬 옵션 버튼 그룹 */
.sort-options {
  display: flex;
  gap: 6px;
}

/* 정렬 옵션 버튼 스타일 */
.sort-options .btn-sm {
  padding: 6px 12px;
  font-size: 0.8em;
  border-radius: 4px;
  border: 1px solid #e9ecef;
  background: white;
  color: #6c757d;
  transition: all 0.2s ease;
}

/* 정렬 옵션 버튼 호버/액티브 효과 */
.sort-options .btn-sm:hover,
.sort-options .btn-sm.active {
  background: #2c3e50;
  border-color: #2c3e50;
  color: white;
}

/* 매물 카드 그리드 레이아웃 */
.listing-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* 매물 카드 기본 스타일 */
.listing-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* 매물 카드 호버 효과 */
.listing-card:hover {
    transform: translateY(-0px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 매물 이미지 컨테이너 */
.listing-image-container {
    position: relative;
    height: 320px;
    overflow: hidden;
}

/* 매물 이미지 스타일 */
.listing-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 매물 이미지 호버 효과 */
.listing-card:hover .listing-image {
    transform: scale(1.05);
}

/* 상태 뱃지 기본 스타일 */
.status-badge {
    position: absolute;
    padding: 5px 10px;
    border-radius: 40px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 2;
}

/* 추천/인기 매물 뱃지 */
.status-badge.featured,
.status-badge.popular {
    top: 1rem;
    left: 1rem;
    background: rgba(255,255,255,0.9);
    color: #1a1a1a;
}

/* 매물 유형 뱃지 */
.status-badge.type {
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    color: #fff;
}

/* 이미지 오버레이 그라데이션 */
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
}

/* 매물 유형 텍스트 */
.property-type {
    display: block;
    font-size: 0.95rem;
    font-weight: 300;
    color: #efefef;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 매물 가격 스타일 */
.property-price {
    display: block;
    font-size: 1.55rem;
    font-weight: 300;
    color: #fff;
}

/* 가격 기간 표시 */
.price-period {
  color: #6b7280;
  font-size: 0.9em;
  font-weight: 500;
}

/* 카드 콘텐츠 영역 */
.card-content {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

/* 매물 제목 스타일 */
.property-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.375rem;
    line-height: 1.4;
}

/* 매물 위치 정보 */
.property-location {
    color: #ffa726;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

/* 매물 특징 목록 */
.property-features {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
    color: #666;
    font-size: 0.875rem;
}

/* 특징 아이템 스타일 */
.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 특징 아이콘 스타일 */
.feature i {
    color: #1a1a1a;
}

/* 매물 설명 텍스트 - 3줄 제한 */
.property-description {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.5;
    height: 3.9em;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Noto Sans KR', '맑은 고딕', Malgun Gothic, 'Apple SD Gothic Neo', sans-serif;
}

/* 상세보기 버튼 스타일 */
.more-detail-btn {
    display: inline-block;
    color: #ffc107;
    padding: 0.425rem 1.35rem;
    border: 1px solid #ffc107; 
    text-decoration: none;
    font-weight: 300;
    transition: background-color 0.2s ease;
    text-align: center;
    margin-top: auto;
    align-self: flex-end; 
    border-radius: 12px;
}

/* 상세보기 버튼 호버 효과 */
.more-detail-btn:hover {
    background: #ffb300;
    color: #fff;
}

/* 검색 결과 없음 메시지 */
.no-results {
    text-align: center;
    padding: 3rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.no-results i {
    color: #ddd;
    margin-bottom: 1rem;
}

.no-results h4 {
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: #666;
}

/* 반응형 디자인 조정 */
@media (max-width: 768px) {
    .listing-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .property-features {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .feature {
        flex: 0 0 calc(50% - 0.5rem);
    }
    
    .listing-image-container {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .listing-image-container {
        height: 240px;
    }
}

/* 필터 섹션 스타일링 */
.filters-section {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* 필터 그리드 레이아웃 */
.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* 필터 그룹 스타일 */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* 필터 라벨 스타일 */
.filter-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a1a;
}

/* 필터 입력 필드 공통 스타일 */
.filter-select,
.filter-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.2s ease;
}

/* 필터 입력 필드 포커스 효과 */
.filter-select:focus,
.filter-input:focus {
    border-color: #ffc107;
    outline: none;
}

/* 필터 액션 버튼 영역 */
.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* 필터 초기화 버튼 */
.filter-reset {
    padding: 0.75rem 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    color: #666;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* 필터 초기화 버튼 호버 효과 */
.filter-reset:hover {
    background: #f5f5f5;
}

/* 필터 적용 버튼 */
.filter-apply {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    background: #ffc107;
    color: #1a1a1a;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

/* 필터 적용 버튼 호버 효과 */
.filter-apply:hover {
    background: #ffb300;
}

/* 정렬 옵션 영역 */
.sort-options {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* 정렬 버튼 스타일 */
.sort-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    color: #666;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* 정렬 버튼 호버/액티브 효과 */
.sort-btn:hover,
.sort-btn.active {
    background: #ffc107;
    border-color: #ffc107;
    color: #1a1a1a;
}

/* 전문가 카드 콘텐츠 스타일 */
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

/* 비즈니스 로고 스타일 */
.business-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2em;
}

/* 비즈니스 정보 스타일 */
.business-info h3 {
  font-size: 1.25em;
  font-weight: 700;
  color: #1a202c;
  margin: 0;
  line-height: 1.2;
}

/* 비즈니스 평점 영역 */
.business-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

/* 평점 별점 스타일 */
.rating-stars {
  color: #fbbf24;
  font-size: 0.9em;
}

/* 평점 텍스트 스타일 */
.rating-text {
  color: #6b7280;
  font-size: 0.85em;
  font-weight: 500;
}

/* 가격 섹션 스타일 */
.price-section {
  margin: 16px 0;
}

/* 가격 라벨 스타일 */
.price-label {
  color: #6b7280;
  font-size: 0.85em;
  font-weight: 500;
  margin-bottom: 4px;
}

/* 가격 태그 스타일 */
.price-tag {
  font-size: 1.75em;
  font-weight: 800;
  color: #1a202c;
  line-height: 1;
}

/* 특징 목록 스타일 */
.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 특징 아이템 스타일 */
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9em;
  color: #4b5563;
}

/* 특징 아이콘 스타일 */
.feature-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7em;
  flex-shrink: 0;
}

/* 사용 불가능한 특징 아이콘 */
.feature-icon.unavailable {
  background: #e5e7eb;
  color: #9ca3af;
}

/* 특징 텍스트 스타일 */
.feature-text {
  flex: 1;
}

/* 특징 값 스타일 */
.feature-value {
  color: #6b7280;
  font-size: 0.85em;
  font-weight: 500;
}

/* 기존 콘텐츠 호환성 지원 */
.card-title {
  font-size: 1.25em;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 8px;
  line-height: 1.3;
}

/* 연락하기 버튼 호버 효과 */
.contact-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #1f2937;
  text-decoration: none;
  transform: translateY(-1px);
}

/* 깔끔한 페이지네이션 스타일 */
.pagination-nav {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* 페이지네이션 기본 스타일 */
.pagination {
  display: flex;
  gap: 4px;
}

/* 페이지 링크 스타일 */
.page-link {
  padding: 8px 12px;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  color: #6c757d;
  text-decoration: none;
  font-size: 0.9em;
  transition: all 0.2s ease;
}

/* 페이지 링크 호버 효과 */
.page-link:hover {
  background: #f8f9fa;
  border-color: #dee2e6;
  color: #2c3e50;
  text-decoration: none;
}

/* 활성 페이지 스타일 */
.page-item.active .page-link {
  background: #0066cc;
  border-color: #0066cc;
  color: white;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  /* 헤더 섹션 조정 */
  .listings-header {
    padding: 30px 0;
  }
  
  /* 페이지 제목 크기 조정 */
  .page-title {
    font-size: 1.8em;
  }
  
  /* 검색 필드 세로 배치 */
  .search-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  /* 결과 헤더 세로 배치 */
  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  /* 정렬 옵션 전체 너비 */
  .sort-options {
    width: 100%;
    justify-content: flex-start;
  }
  
  /* 매물 카드 한 열 배치 */
  .listing-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* 정보 배너 여백 조정 */
  .access-info, .features-info {
    margin: 16px;
    padding: 12px 16px;
  }
  
  /* 기능 정보 간격 조정 */
  .features-info {
    gap: 12px;
  }
}

/* 모바일 디자인 조정 */
@media (max-width: 576px) {
  /* 페이지 제목 크기 축소 */
  .page-title {
    font-size: 1.6em;
  }
  
  /* 검색 필터 섹션 여백 축소 */
  .search-filter-section {
    padding: 20px 0;
  }
  
  /* 결과 섹션 여백 조정 */
  .results-section {
    padding: 30px 0;
  }
} 