@charset "utf-8";





/* 기본 스타일 */
.bottom-sheet {
    position: fixed;
    bottom: -100%; /* 화면 아래에서 숨겨짐 */
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999; /* Bottom Sheet의 z-index */
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    transition: bottom 0.3s ease-in-out;
}


.bottom-sheet.open {
    bottom: 0;
}

.bottom-sheet-content {
    display: flex;
    flex-direction: column;
}

/* 키로수 글꼴 */
#radiusValue1 {
    display: inline-block;
    margin-top: 10px;
    font-family: 'Poppins', sans-serif; /* Poppins 폰트를 사용 */
    font-size: 18px; /* 글자 크기 설정 */
    font-weight: 600; /* 글씨 두께 설정 */
    color: #333; /* 글자 색상 설정 */
}

/* 키로수 글꼴 */
#radiusValue2 {
    display: inline-block;
    margin-top: 10px;
    font-family: 'Poppins', sans-serif; /* Poppins 폰트를 사용 */
    font-size: 18px; /* 글자 크기 설정 */
    font-weight: 600; /* 글씨 두께 설정 */
    color: #333; /* 글자 색상 설정 */
}


/* 구글 폰트 불러오기 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/* 탭 스타일 */
.tabs {
    display: flex;
    justify-content: space-around;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 10px;
}

.tab {
    flex: 1;
    padding: 12px 30px;
    text-align: center;
    font-size: 18px;
    color: #808080; /* 회색으로 설정 */
    font-weight: normal; /* 두께를 normal로 설정 */
    border: none; 
    cursor: pointer;
    outline: none;
    border-bottom: 3px solid transparent;
    transition: background-color 0.3s, border-bottom 0.3s;
}

.tab.active {
    background-color: #ffffff;
    border-bottom: 2px solid #007bff;
    color: #007bff;
}

.tab:hover {
    background-color: #ffffff;
    color: #007bff
    
    
}

/* 탭 내용 스타일 */
.tab-content {
    display: none;
    padding: 15px;
    background-color: #ffffff;
}

.tab-content.active {
    display: block;
}

/* 구분선 */
.divider {
    border: none;
    border-top: 2px solid #ddd;
    margin: 20px 0;
}

/* 매칭 버튼 스타일 */
.find-btn {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    color: #ffffff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.find-btn:hover {
    background-color: #0056b3;
}

/* 반경 슬라이더와 결과 */
#radiusSlider1, #radiusSlider2 {
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

#radiusSlider1::-webkit-slider-thumb, #radiusSlider2::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
}

#locationResults {
    margin-top: 20px;
    max-height: 300px;
    overflow-y: scroll;
}



.locationItem .distance {
    color: #007bff;
}

    /* 위치 항목 스타일 */
    .locationItem {
        margin: 10px 0;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        cursor: pointer;
        background: #f9f9f9;
    }

    /* 화살표 버튼 스타일 */
    .arrow-btns {
        display: flex;
        justify-content: space-between;
        margin-top: 10px;
    }

    .arrow-btns button {
        background: #007bff;
        color: white;
        border: none;
        padding: 10px;
        cursor: pointer;
        border-radius: 5px;
    }

    .arrow-btns button:disabled {
        background: #ccc;
        cursor: not-allowed;
    }


/* 페이지 네비게이션 버튼 스타일 */
.pagination-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

/* 버튼 호버 시 색상 변경 */
.pagination-btn:hover {
    background-color: #0056b3;
}

/* 버튼에 아이콘 추가 (왼쪽: 이전, 오른쪽: 다음) */
.pagination-btn i {
    margin-right: 8px; /* 아이콘과 텍스트 사이 간격 */
}

/* 버튼 비활성화 상태 (다음 목록이 없을 때 회색) */
.pagination-btn:disabled {
    background-color: #ccc; /* 비활성화된 버튼은 회색 */
    cursor: not-allowed;
}

/* 버튼 활성화 상태에서 색상 */
.pagination-btn:not(:disabled) {
    background-color: #007bff; /* 활성화 상태에서 파란색 */
}

/* 버튼 클릭 후 색상 유지 (파란색 유지) */
.pagination-btn:active {
    background-color: #0056b3; /* 클릭 시 색상 변경 */
}




/* 페이지 결과 리스트 주변 여백 제거 */
#locationResults1, #locationResults2 {
    margin: 0;
    padding: 0;
}

/* 버튼이 양쪽 끝으로 가게 하기 */
/* 이전, 다음 버튼 위치 조정 */
#pagination1, #pagination2 {
    display: flex;
    justify-content: space-between; /* 양쪽 끝으로 정렬 */
    margin-top: 10px;
}




/* Bottom Sheet Trigger 버튼 */
#openBottomSheet {
    position: fixed;
    bottom: 20px; /* 화면 하단에서 20px */
    left: 50%; /* 수평 가운데 정렬 */
    transform: translateX(-50%);
    z-index: 1000;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    
}

#openBottomSheet:hover {
    background-color: #0056b3;
}


/* 기본 슬라이더 스타일1 */
#radiusSlider1 {
    -webkit-appearance: none; /* Webkit 기반 브라우저 */
    appearance: none; /* 표준 브라우저 */
    width: 100%; /* 슬라이더 길이 */
    height: 10px; /* 슬라이더 배경의 높이 */
    background: #ddd; /* 슬라이더 배경색 */
    border-radius: 5px; /* 슬라이더 배경 모서리 */
    outline: none; /* 포커스 효과 제거 */
    cursor: pointer; /* 커서 스타일 */
}

/* Webkit 브라우저 (Chrome, Safari, Edge 등) */
#radiusSlider1::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;  /* 핸들 크기 */
    height: 25px;  /* 핸들 크기 */
    background: #007bff;
    border-radius: 50%;
    border: 2px solid #0056b3;
    cursor: pointer;
}

/* Firefox */
#radiusSlider1::-moz-range-thumb {
    width: 25px;  /* 핸들 크기 */
    height: 25px;  /* 핸들 크기 */
    background: #007bff;
    border-radius: 50%;
    border: 2px solid #0056b3;
    cursor: pointer;
}

/* Internet Explorer 및 Edge */
#radiusSlider1::-ms-thumb {
    width: 25px;  /* 핸들 크기 */
    height: 25px;  /* 핸들 크기 */
    background: #007bff;
    border-radius: 50%;
    border: 2px solid #0056b3;
    cursor: pointer;
}



/* 기본 슬라이더 스타일2 */
#radiusSlider2 {
    -webkit-appearance: none; /* Webkit 기반 브라우저 */
    appearance: none; /* 표준 브라우저 */
    width: 100%; /* 슬라이더 길이 */
    height: 10px; /* 슬라이더 배경의 높이 */
    background: #ddd; /* 슬라이더 배경색 */
    border-radius: 5px; /* 슬라이더 배경 모서리 */
    outline: none; /* 포커스 효과 제거 */
    cursor: pointer; /* 커서 스타일 */
}

/* Webkit 브라우저 (Chrome, Safari, Edge 등) */
#radiusSlider2::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;  /* 핸들 크기 */
    height: 25px;  /* 핸들 크기 */
    background: #007bff;
    border-radius: 50%;
    border: 2px solid #0056b3;
    cursor: pointer;
}

/* Firefox */
#radiusSlider2::-moz-range-thumb {
    width: 25px;  /* 핸들 크기 */
    height: 25px;  /* 핸들 크기 */
    background: #007bff;
    border-radius: 50%;
    border: 2px solid #0056b3;
    cursor: pointer;
}

/* Internet Explorer 및 Edge */
#radiusSlider2::-ms-thumb {
    width: 25px;  /* 핸들 크기 */
    height: 25px;  /* 핸들 크기 */
    background: #007bff;
    border-radius: 50%;
    border: 2px solid #0056b3;
    cursor: pointer;
}




/* 반응형 조정 */
@media screen and (max-width: 768px) {
    .tab {
        font-size: 14px;
        padding: 8px;
    }

    .find-btn {
        font-size: 16px;
        padding: 10px;
    }
}


@media screen and (max-width: 768px) {
    #openBottomSheet {
        width: 60px;
        height: 60px;
        font-size: 24px;
        bottom: 25px; /* 하단 여백 축소 */
    }
}

@media screen and (max-width: 768px) {


    .bottom-sheet.open {
        transform: translateY(-10%); /* 애니메이션을 통해 이동 */
    }
}


