@charset "utf-8";
#sub_layout > #sub_center > #sub_content {
  margin-top: 0px !important;
}
/* 공통 스타일 */
.facility-container,
.facility-detail-container {
  max-width: 1460px;
  margin: 0 auto;
  padding: 0px 20px;
  font-size: 18px !important;
}

/* 지역 버튼 스타일 */
.region-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.region-btn {
  min-width: 168px;
  text-align: center;
  padding: 6px 10px;
  background: #fff;
  border: #09aeea 1px solid;
  border-radius: 10px;
  font-size: 21px;
  font-weight: 500;
  color: #222;
  transition: all 0.3s ease;
}

.region-btn:hover {
  background-color: #f1fafe;
}

.region-btn.active {
  background-color: #09aeea;
  color: white;
}

/* 검색 박스 */
.search-box {
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.search-box input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.search-box button {
  padding: 10px 20px;
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.search-box a {
  padding: 10px 20px;
  background-color: #4285f4;
  color: white;
  border-radius: 4px !important;
}

/* 총 개수 표시 */
.total-count {
  margin-bottom: 15px;
  font-size: 14px;
  color: #666;
}

.total-count strong {
  color: #333;
  font-weight: 600;
}

/* 테이블 스타일 */
.table-responsive {
  overflow-x: auto;
  margin-bottom: 30px;
}

.facility-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #eee;
  background-color: #fff;
}

.facility-table th,
.facility-table td {
  padding: 12px;
  text-align: center;
  border: 1px solid #ddd;
}

.facility-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #333;
}

.facility-table tbody tr:hover {
  background-color: #f5f5f5;
}

.facility-name-with-image {
  display: flex;
  align-items: center;
  gap: 15px;
}

.small-image {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.small-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facility-row td a {
  color: #333;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.facility-row td a:hover {
  color: #4285f4;
}

/* 시설 그리드 레이아웃 */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.facility-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.facility-image {
  height: 180px;
  overflow: hidden;
}

.facility-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.facility-card:hover .facility-image img {
  transform: scale(1.05);
}

.facility-info {
  padding: 15px;
}

.facility-info h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
}

.facility-info h3 a {
  color: #333;
  text-decoration: none;
}

.facility-info h3 a:hover {
  color: #4285f4;
}

.facility-info p {
  margin: 5px 0;
  font-size: 14px;
  color: #666;
}

/* 페이지네이션 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 30px 0;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background-color: #f5f5f5;
}

.pagination a.active {
  background-color: #4285f4;
  color: white;
  border-color: #4285f4;
}

/* 상세 페이지 스타일 */
.facility-detail-header {
  margin-bottom: 30px;
  text-align: center;
}

.facility-detail-header h2 {
  font-size: 24px;
  margin: 0;
  color: #333;
}

.facility-profile-section {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.facility-photo {
  flex: 0 0 300px;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.facility-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facility-info-table {
  flex: 1;
  min-width: 300px;
}

.facility-info-table table {
  width: 100%;
  border-collapse: collapse;
}

.facility-info-table th,
.facility-info-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.facility-info-table th {
  width: 100px;
  color: #555;
  font-weight: 600;
  vertical-align: top;
}

.facility-info-table td {
  color: #333;
}

.facility-info-table td.description {
  line-height: 1.6;
}

.facility-map {
  margin-bottom: 40px;
}

.facility-map h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
}

/* 버튼 스타일 */
.back-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #f5f5f5;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.back-button:hover {
  background-color: #e0e0e0;
}

/* 데이터 없음 메시지 */
.no-data {
  padding: 50px 20px;
  text-align: center;
  color: #888;
  font-size: 16px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
  .facility-profile-section {
    flex-direction: column;
  }

  .facility-photo {
    flex: 0 0 auto;
    height: 250px;
    width: 100%;
  }

  .facility-info-table {
    width: 100%;
  }

  .facilities-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  /* 테이블 반응형 */
  .facility-table thead {
    display: none;
  }

  .facility-table tbody tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
  }

  .facility-table tbody td {
    display: block;
    text-align: right;
    position: relative;
    padding-left: 40%;
    border-bottom: 1px solid #eee;
	word-break:keep-all;
  }

  .facility-table tbody td:last-child {
    border-bottom: none;
  }

  .facility-table td:before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #555;
  }

  .facility-name-with-image {
    justify-content: flex-end;
  }
}

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

  .facility-info-table th,
  .facility-info-table td {
    padding: 10px;
  }

  .facility-info-table th {
    width: 80px;
  }
}
