/* ... 기존 CSS 상단 ... */
.restaurant_detail::-webkit-scrollbar {
    width: 8px; /* 내부 스크롤바는 조금 얇게 설정 가능 */
}
.restaurant_detail::-webkit-scrollbar-track {
    background: #f8f9fa; /* 트랙 배경색 (요소 배경과 유사하게) */
    border-radius: 4px;
}
.restaurant_detail::-webkit-scrollbar-thumb {
    background: #fdac7a; /* 원하는 색상 */
    border-radius: 4px;
}
.restaurant_detail::-webkit-scrollbar-thumb:hover {
    background: #fd7e14; /* 호버 시 색상 */
}

.restaurant_detail_info::-webkit-scrollbar {
    width: 8px; /* 스크롤바 너비. .restaurant_detail 스크롤바와 동일하게 하거나 다르게 설정 가능 */
}

.restaurant_detail_info::-webkit-scrollbar-track {
    background: #f8f9fa; /* 트랙 배경색. 부모 요소 배경과 유사하게 하거나 원하는 색으로 */
    border-radius: 4px;
}

.restaurant_detail_info::-webkit-scrollbar-thumb {
    background: #fdac7a; /* 스크롤 막대 색상 (요청하신 색상) */
    border-radius: 4px;
}

.restaurant_detail_info::-webkit-scrollbar-thumb:hover {
    background: #fd7e14; /* 스크롤 막대 호버 시 색상 (요청하신 색상) */
}

/* Firefox 스크롤바 스타일 (선택적, 제한적) */
.restaurant_detail_info {
    scrollbar-width: thin;
    scrollbar-color: #fdac7a #f8f9fa; /* thumb색상 track색상 */
}

.restaurant_hashtag_accordion_content.expanded::-webkit-scrollbar {
    width: 8px; /* 스크롤바 너비 */
}

.restaurant_hashtag_accordion_content.expanded::-webkit-scrollbar-track {
    background: #f0f0f0; /* 스크롤바 트랙 배경색 (예시) */
    border-radius: 4px; /* 트랙 모서리 둥글게 */
}

.restaurant_hashtag_accordion_content.expanded::-webkit-scrollbar-thumb {
    background: #fdac7a; /* 스크롤바 색상 (기존 요청색) */
    border-radius: 4px; /* 스크롤바 모서리 둥글게 */
}

.restaurant_hashtag_accordion_content.expanded::-webkit-scrollbar-thumb:hover {
    background: #fd7e14; /* 스크롤바 호버 시 색상 (기존 요청색) */
}

/* Firefox 스크롤바 스타일 (선택적, 제한적) */
.restaurant_hashtag_accordion_content.expanded {
    scrollbar-width: thin; /* 또는 'auto' */
    scrollbar-color: #fdac7a #f0f0f0; /* thumb색상 track색상 */
}

/* 맛집 리스트 패널 스크롤바 */
.restaurant_list::-webkit-scrollbar {
    width: 8px;
}
.restaurant_list::-webkit-scrollbar-track {
    background: #e9ecef; /* 트랙 배경색 (요소 배경과 유사하게) */
    border-radius: 4px;
}
.restaurant_list::-webkit-scrollbar-thumb {
    background: #fdac7a;
    border-radius: 4px;
}
.restaurant_list::-webkit-scrollbar-thumb:hover {
    background: #fd7e14;
}

#restaurant-headerSection {
    margin-top: 80px;
    background-color: white;
    color: #fd7e14;
    padding:  20px;
    text-align: center;
    margin-bottom: 5px;
    border-radius: 8px;
    position: relative;
    z-index: 10;
}
#restaurant-headerSection h1 {
    font-family: "Gowun Dodum", sans-serif;
    margin: 0;
    font-size: 35px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}
#restaurant-headerSection p {
    margin-top: 4px;
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 4px;

}
/* 상세 정보 지도 iframe 스타일 */
.restaurant_rdetail_map {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    margin-bottom: 15px;
    flex-shrink: 0;
}

/* 지도가 없을 때 표시될 영역 스타일 */
.restaurant_rdetail_no_map {
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    color: #adb5bd;
    border-radius: 8px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

.restaurant_wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: "Gowun Dodum", sans-serif;
}
.restaurant_star{
    color: #fd7e14 !important;
    font-weight: 600;
    font-size: 14px;
    margin-left: 8px;
    flex-shrink: 0;
}

/* 식당 리스트 아이템 내 에어컨 정보 스타일 추가 */
.restaurant_aircon_info {
    color: #0d6efd; /* Bootstrap primary blue */
    font-weight: 500; /* 약간 굵게 */
    font-size: 12px; /* 별점과 비슷하거나 약간 작게 */
    margin-right: 6px; /* 별점과의 간격 */
    background-color: #cfe2ff; /* 연한 파란색 배경 */
    padding: 2px 5px;
    border-radius: 4px; /* 둥근 모서리 */
    /* border: 1px solid #9ec5fe; */ /* 테두리 (선택) */
    display: inline-block; /* span이므로 */
    line-height: 1; /* 수직 정렬 도움 */
}

/* 리스트에서 별점과 에어컨 정보를 묶는 영역 */
.restaurant_rating_area {
    display: flex;
    align-items: center; /* 세로 중앙 정렬 */
    flex-shrink: 0; /* 줄어들지 않도록 */
}


.restaurant_category_container {
    margin-top:0px;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    justify-content: center;

}

.restaurant_category_btn {
    padding: 8px 15px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
    color: #495057;
    display: inline-block;
    font-weight: 600;
}

.restaurant_category_btn:hover {
    background-color: #fff0e6;
    border-color: #fdac7a;
    box-shadow: 0 2px 5px rgba(253, 126, 20, 0.1);
}

.restaurant_category_btn.active {
    background-color: #fd7e14;
    color: white;
    border-color: #fd7e14;
}

.restaurant_map_container {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.restaurant_map_iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.info_toggle_btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #fd7e14;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-top: 20px;
    font-family: "Gowun Dodum", sans-serif;
}

.info_toggle_btn:hover {
    background-color: #e8700f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.info_toggle_btn:after {
    content: "▼";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.info_toggle_btn.active:after {
    transform: translateY(-50%) rotate(180deg);
}

.restaurant_info_panel {
    max-height: 0;
    overflow: hidden;
    background-color: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: max-height 0.5s ease, padding 0.3s ease;
    padding: 0 15px;
    margin-top: 0;
}

.restaurant_info_panel.active {
    max-height: 1000px;
    padding: 15px;
    margin-top: 5px;
}

.restaurant_info_text {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #495057;
}

.restaurant_guide_step {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.restaurant_guide_step:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #fd7e14;
}

.restaurant_mobile_notice {
    margin-top: 20px;
    padding: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
}

.restaurant_recommended_section {
    margin-top: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.restaurant_recommended_title {
    padding: 15px 20px;
    background-color: #fd7e14;
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    border-radius: 8px 8px 0 0;
    font-family: "Gowun Dodum", sans-serif;
}

.restaurant_recommended_container {
    display: flex;
    height: 750px;
    position: relative;
}

.restaurant_detail {
    flex: 1;
    padding: 20px 10px 10px 20px;
    border-right: 1px solid #e9ecef;
    overflow-y: auto;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.restaurant_list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: #f8f9fa;
}

.restaurant_list_title_mobile {
    display: none;
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0 5px 10px;
    color: #343a40;
}

.restaurant_item {
    display: flex;
    margin-bottom: 12px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 120px;
}

.restaurant_item.active {
    border-left: 10px solid #fd7e14;
}

.restaurant_thumbnail {
    width: 100px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.restaurant_content {
    flex: 1;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    overflow: hidden;
}

.restaurant_top_info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.restaurant_name {
    font-weight: 600;
    color: #343a40;
    font-size: 15px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.restaurant_rating { /* 별점 자체 스타일 */
    color: #fd7e14;
    font-weight: 600;
    font-size: 14px;
    /* margin-left: 8px; /* 에어컨 정보가 왼쪽에 오므로 이 마진은 restaurant_rating_area에서 관리하거나 제거 */
    flex-shrink: 0;
}


.restaurant_hashtags {
    font-size: 13px;
    color: #868e96;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.restaurant_info {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.restaurant_detail_container {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-grow: 1;
}

.restaurant_detail_name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #343a40;
    flex-shrink: 0;
}

.restaurant_detail_info {
    margin-bottom: 5px;
    flex-grow: 1;
    overflow-y: auto;
}

.restaurant_detail_row {
    display: flex;
    margin-bottom: 6px;
    align-items: flex-start;
    line-height: 1.5;
}

.restaurant_detail_label {
    min-width: 80px;
    font-weight: 600;
    color: #495057;
    flex-shrink: 0;
    font-size: 14px;
}

.restaurant_detail_value {
    flex: 1;
    color: #6c757d;
    font-size: 14px;
}

.restaurant_detail_value.address-value-container {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    word-break: break-word;
}

.restaurant_copy_btn {
    background-color: #fd7e14;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 3px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.restaurant_copy_btn:hover {
    background-color: #e8700f;
}

.restaurant_detail_gallery {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.restaurant_gallery_thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.restaurant_gallery_thumbnail:hover {
    transform: scale(1.05);
}

.restaurant_detail_empty {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #adb5bd;
    text-align: center;
    padding: 20px;
    flex-grow: 1;
}

.restaurant_detail_empty_icon {
    font-size: 40px;
    margin-bottom: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* --- 해시태그 섹션 스타일 (아코디언 추가) --- */
.restaurant_hashtag_section {
    margin-top: 30px;
    padding: 20px;
    background-color: #f1f3f5;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.restaurant_hashtag_title {
    font-size: 18px;
    font-weight: 600;
    color: #343a40;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

/* 기본 표시 해시태그 (2개 이상) 컨테이너 */
.restaurant_hashtag_container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /* 아코디언 토글 버튼과의 간격을 위해 margin-bottom 제거 또는 조정 */
    /* margin-bottom: 15px; */
}

/* "모든 해시태그 보기" 버튼을 담는 컨테이너 */
.restaurant_hashtag_accordion_toggle_container {
    margin-top: 15px; /* 위쪽 해시태그 목록과의 간격 */
}

/* "모든 해시태그 보기" 아코디언 토글 버튼 */
.restaurant_hashtag_accordion_toggle_btn {
    width: 100%;
    padding: 10px 15px;
    background-color: #fd7e14;
    color: white;
    border: 1px solid #fd7e14;;
    border-radius: 6px;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between; /* 텍스트와 화살표 양끝 정렬 */
    align-items: center;
    font-family: "Gowun Dodum", sans-serif;
}

.restaurant_hashtag_accordion_toggle_btn:hover,
.restaurant_hashtag_accordion_toggle_btn.active { /* 토글 버튼 활성화 시 (펼쳐졌을 때) */
    background-color: #fd7e14; /* 약간 더 어두운 색 */
    color: white;
}

.accordion_arrow {
    transition: transform 0.3s ease;
    font-size: 12px; /* 화살표 크기 */
}

/* 아코디언 콘텐츠 영역 (1개짜리 해시태그들이 들어갈 곳) */
.restaurant_hashtag_accordion_content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, padding-top 0.35s ease-out, padding-bottom 0.35s ease-out;
    background-color: #f8f9fa; /* 약간 다른 배경으로 구분 */
    border: 1px solid #dee2e6;
    border-top: none; /* 토글 버튼과의 경계선 중복 방지 */
    border-radius: 0 0 6px 6px;
    padding: 0 15px; /* 접혔을 때 상하 패딩 0 */
}

.restaurant_hashtag_accordion_content.expanded {
    max-height: 400px; /* 펼쳐졌을 때 충분한 높이, 내용물에 따라 조절 */
    padding-top: 15px; /* 펼쳐졌을 때 상단 패딩 */
    padding-bottom: 15px; /* 펼쳐졌을 때 하단 패딩 */
    overflow-y: auto; /* 내용 많을 경우 스크롤 (선택적) */
}

/* 아코디언 내부에 있는 해시태그 버튼들을 담는 컨테이너 */
.restaurant_hashtag_container_single {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.restaurant_hashtag_btn {
    padding: 6px 12px;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #495057;
    text-decoration: none;
    font-family: "Gowun Dodum", sans-serif;
    font-weight: 600;
}

.restaurant_hashtag_btn:hover {
    background-color: #fff0e6;
    border-color: #fdac7a;
    box-shadow: 0 2px 5px rgba(253, 126, 20, 0.1);
}

.restaurant_hashtag_btn.active {
    background-color: #fd7e14;
    color: white;
    border-color: #fd7e14;
    font-weight: 500;
}
/* --- 해시태그 섹션 스타일 끝 --- */


.quick_menu {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.quick_menu button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: rgba(253, 126, 20, 0.9);
    color: white;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.quick_menu button:hover {
    background-color: rgba(232, 112, 15, 0.95);
    transform: scale(1.05);
}

/* ... 기존 CSS 하단 및 미디어쿼리 ... */
@media (max-width: 768px) {

    .restaurant_wrapper{
        padding: 10px;
    }
    #restaurant-headerSection {
        margin-top: 0px;
        padding:  10px;
    }
    #restaurant-headerSection h1 {
        font-size: 24px;
    }

    .restaurant_list_title_mobile {
        display: block;
        margin-left: 0;
        border-top: 8px solid #fd7e14;
        border-radius: 4px;
        text-align: center;
        padding-top: 3px ;
        font-size: 18px;
    }

    .restaurant_map_container {
        height: 400px;
    }
    .restaurant_category_container {
        padding: 10px;
    }
    .restaurant_category_btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    .restaurant_recommended_container {
        flex-direction: column;
        height: auto;
    }
    .restaurant_detail {
        height: auto;
        max-height: 50vh;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding: 10px 8px 8px 10px;
    }
    .restaurant_detail_name{
        font-size: 16px;
    }
    .restaurant_detail_row{
        margin-bottom: 4px;
        line-height: 1.4;
    }
    .restaurant_detail_label {
        min-width: 60px;
        font-size: 12px;
    }
    .restaurant_detail_value {
        font-size: 12px;
    }
    .restaurant_detail_value.address-value-container {
        gap: 3px;
    }
    .restaurant_copy_btn {
        padding: 2px 5px;
        font-size: 10px;
    }

    .restaurant_list {
        max-height: 30vh; /* 모바일에서는 이 값을 좀 더 유동적으로 하거나, 다른 UI 요소와 함께 고려 */
        border-top: 2px solid #fd7e14;
        border-radius: 5px;
        overflow-y: auto;
    }

    .restaurant_detail_gallery {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }
    .restaurant_gallery_thumbnail {
        width: 80px;
        height: 80px;
    }

    .restaurant_item {
        margin-bottom: 3px;
        max-height: 70px;
    }
    .restaurant_content {
        padding: 4px 8px;
    }
    .restaurant_top_info {
        margin-bottom: 0px;
    }
    .restaurant_name {
        font-size: 12px;
    }
    /* 모바일에서 에어컨 정보 크기 및 간격 조정 */
    .restaurant_aircon_info {
        font-size: 10px;
        padding: 1px 3px;
        margin-right: 4px;
    }
    .restaurant_rating { /* 별점 크기 */
        font-size: 12px;
    }

    .restaurant_hashtags {
        font-size: 10px;
        margin: 0 0 1px 0;
    }
    .restaurant_info {
        font-size: 10px;
        line-height: 1.2;
    }

    .restaurant_hashtag_section {
        margin-top: 20px;
        padding: 10px;
        overflow-y: auto;
        /* max-height: 50vh;  아코디언 사용 시 이 값은 동적으로 변해야 하므로 제거 또는 조정 필요 */
        /* overflow-y: auto; */ /* 아코디언 내부 스크롤과 충돌 가능 */
    }
    .restaurant_hashtag_container { /* 인기 해시태그 */
        gap: 5px;
    }
    .restaurant_hashtag_container_single { /* 아코디언 내부 해시태그 */
        gap: 5px;
    }
    .restaurant_hashtag_btn {
        font-size: 12px;
        padding: 5px 8px;
    }
    .restaurant_hashtag_accordion_toggle_btn {
        font-size: 14px;
        padding: 8px 10px;
    }
    .restaurant_hashtag_accordion_content.expanded {
        max-height: 250px; /* 모바일 아코디언 최대 높이 */
        padding: 10px;
        overflow-y: auto; /
    }

    .restaurant_star{
        margin-left: 0px; /* 모바일에서는 별점 왼쪽 마진 제거 (에어컨 정보와 함께 .restaurant_rating_area에서 관리) */
    }

    .quick_menu {
        right: 1px;
        bottom: 10px;
        top: auto;
        transform: none;
        flex-direction: column-reverse;
        gap: 8px;
    }
    .quick_menu button {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
}
@media (min-width: 1024px) {
    .quick_menu{
        display: none !important;
    }
}