/* 전체 컨테이너 */
.shop-container {
  display: flex;
  max-width: 430px;
  margin: 0 auto;
  padding: 10px;
}

/* 지역 사이드바 */
.area-sidebar {
  width: 80px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
}

.area-sidebar a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.area-item {
  padding: 6px 8px;
  border-radius: 8px;
  text-align: center;
  background-color: #f1f3f5;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.area-item:hover {
  background-color: #e0e0e0;
}

.area-item.selected {
  background-color: #007bff;
  color: white;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

/* 샵 콘텐츠 영역 */
.shop-content {
  flex: 1;
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  max-width: 100%;  /* ✅ 이 줄 추가 */
  box-sizing: border-box; /* ✅ padding 포함 계산 */
}


/* 제목 */
.section-title {
  font-size: 16px;
  font-weight: bold;
  margin: 8px 0 12px;
}

/* 카드 목록을 감싸는 래퍼 */
.shop-list-wrapper {
  display: flex;
  flex-direction: column; /* ✅ 유지 */
  width: 100%;
}

/* 샵 리스트: 3개씩 나열 */
.shop-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%; /* ✅ 이미 있다면 유지 */
  box-sizing: border-box; /* ✅ 이 줄 추가 */
}


/* 카드 하나 */
.shop-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 1px 2px 4px rgba(0,0,0,0.08);
  font-size: 11px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 160px;
}

/* 카드 마우스 오버 효과 */
.shop-card:hover {
  transform: translateY(-3px);
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

/* 이미지 */
.shop-card img {
  width: 100%;
  max-height: 80px;
  min-height: 80px;
  object-fit: cover;
  flex-shrink: 0;
}

/* 텍스트 정보 */
.shop-info {
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  height: 70px; 
}


/* 업체명 - 최대 2줄 */
.shop-info h4 {
  font-size: 12px;
  margin: 0 0 4px;
  line-height: 1.2em;
  height: 2.4em; /* 변경: 정확히 2줄 높이로 */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 주소 - 최대 2줄 */
.shop-info p,
.shop-address {
  font-size: 11px;
  color: #555;
  margin: 0;
  line-height: 1.2em;
  height: 2.4em; /* 변경: 정확히 2줄 높이로 */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

/* 등록된 샵이 없는 경우 */
.no-data {
  margin: 20px auto;
  text-align: center;
  color: #aaa;
  font-size: 14px;
}

/* 페이징 버튼 */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 20px;
  gap: 6px;
  height: 30px;
  width: 100%; /* ✅ 추가: 가운데 정렬 안될 경우 */
}


/* 페이지 버튼 공통 */
.page-button {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f1f1f1;
  font-size: 12px;
  color: #333;
  text-decoration: none;
}

/* 현재 페이지 (활성) */
.page-button.active {
  background: #007bff;
  color: #fff;
  font-weight: bold;
  cursor: default;
}

.shop-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/*필터*/
/* 필터 버튼 */
.filter-toggle-btn {
  margin-left: 8px;
  padding: 5px 12px;
  font-size: 13px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* 접힌 필터 */
.collapsible-filter.collapsed {
  display: none;
}

/* 필터 전체 */
.subarea-filter {
  padding: 10px;
  background: #f8f9fa;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-bottom: 12px;
}

/* 체크박스 정렬 */
.subarea-checkbox-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 세 칸 정렬 */
  gap: 8px 12px;
  padding: 10px 0;
}

.checkbox-label {
  font-size: 13px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* 필터 적용 버튼 */
.filter-apply-btn {
  margin-top: 10px;
  padding: 6px 14px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
}

.filter-actions {
  display: flex;
  gap: 10px;
  margin: 10px 0 0 4px;
}

.filter-actions .filter-btn {
  background-color: #ddd;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}


