.filter {
    margin: 20px;
    padding: 20px;
    background-color: #f9f9f9; /* 배경색 */
    border-radius: 10px; /* 모서리 둥글게 */
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1); /* 부드러운 그림자 효과 */
    display: flex; /* Flexbox 사용 */
    flex-direction: column; /* 세로 방향으로 배치 */
}

.filter-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px; /* 줄 간격 */
}

.filter-row:last-child {
    margin-bottom: 0; /* 마지막 줄 간격 제거 */
}

.filter select,
.filter input[type="text"] {
    padding: 8px;
    margin-right: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 180px;
    transition: border-color 0.3s;
}

.filter select:focus,
.filter input[type="text"]:focus {
    border-color: #4CAF50;
    outline: none;
}

.checkbox-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 25px;
    margin-right: 15px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s;
}

.checkbox-btn:hover {
    background-color: #e0e0e0;
}

.checkbox-btn.active {
    background-color: #4CAF50;
    color: white;
}

.checkbox-btn input {
    display: none;
}

/* 검색 버튼 스타일 */
.filter-column {
    margin-left: auto; /* 오른쪽으로 밀기 */
}

.search-button {
    padding: 15px 30px; /* 버튼 크기 증가 */
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
    height: 100%; /* 높이 맞추기 */
}

.search-button:hover {
    background-color: #45a049;
}

.list-title {
    background-color: #f9f9f9;
    border-radius: 4px;
    /*border-bottom: 1px solid #ccc;*/
}

.shelter_list {
    margin: 40px;
}

.shelter_list ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.shelter_list li {
    display: flex;
    padding: 10px 0;
}

.none-list {
    justify-content: center;
}

.shelter:hover {
    background-color: #f8f8f8;
    cursor: pointer;
}

.shelter-name {
    flex: 2; /* 3의 비율 */
}

.shelter-capacity,
.shelter-distance {
    flex: 1; /* 1의 비율 */
}

/* 페이징 버튼 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination a {
    margin: 0 5px;
    padding: 10px 15px;
    color: #4CAF50;
    text-decoration: none;
    border-radius: 5px;
}

.checkbox-btn.active,
.pagination a:hover,
.pagination a.active,
.search:hover {
    color: white;
    background-color: #4CAF50;
}

.pagination .disabled {
    color: #cccccc;
    pointer-events: none;
}

.shelter_list ul {
    list-style-type: none;
    padding: 0;
}

.shelter_list li {
    margin-bottom: 10px;
}

.side-panel {
    position: fixed;
    top: 0;
    right: -40%; /* 처음에는 화면 밖에 숨김 */
    width: 40%;
    height: 100%;
    background: white;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    z-index: 1000;
}

.side-panel-content {
    padding: 30px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

.checkbox-btn.active:hover {
    background-color: #45a049;
}

