body, html {
    height: 100%;
    margin: 0;
    padding: 0;
}

#map {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.sidebar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 450px;
    height: 100%;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow-y: auto;
    z-index: 1000;
    padding: 15px 15px 0 15px; /* 아래쪽 패딩을 0으로 설정 */
}

.sidebar-header {
    text-align: center;
    margin-bottom: 20px;
}

.section {
    background-color: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #202124;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dadce0;
}

.button-group {
    display: flex;
    justify-content: space-between;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
}

.control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: transparent;
    border: none;
    color: #5f6368;
    font-size: 12px;
    padding: 8px;
    transition: background-color 0.3s;
}

.control-btn:hover,
.control-btn:focus {
    background-color: #e8eaed;
    outline: none;
}

.control-btn .icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.control-btn .text {
    white-space: nowrap;
}

.list-group-item {
    border: none;
    padding: 8px 0;
    font-size: 14px;
}

.list-group-item:not(:last-child) {
    border-bottom: 1px solid #dadce0;
}

/* 주소 검색 입력 필드 스타일 */
#addressInput {
    margin-bottom: 0px;
}


.list-group-item.selected {
    background-color: #e8f0fe;
    color: #1a73e8;
    border-left: 3px solid #1a73e8; /* 이 줄만 추가 */
}

#addRouteButton {
    background-color: #1a73e8;
    color: white;
}

#input-section .form-group {
    margin-bottom: 16px;
}

#input-section .col-form-label {
    font-size: 14px;
    color: #5f6368;
}

#input-section .form-control {
    font-size: 14px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 8px 12px;
}

#input-section .form-control:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26,115,232,0.2);
}

#addButton {
    width: 100%;
    background-color: #1a73e8;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 0;
    border-radius: 4px;
    transition: background-color 0.3s;
}

#addButton:hover {
    background-color: #1765cc;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: 50%;
        top: 50%;
        left: 0;
        border-radius: 8px 8px 0 0;
    }
}
.input-group {
    display: flex;
    gap: 10px; /* 간격 조절, 원하는 크기로 변경 가능 */
}

#newRouteName {
    flex-grow: 1;
}

#addRouteButton {
    white-space: nowrap;
}

#routeDetailList .list-group-item.selected {
    background-color: #e8f0fe;
    color: #1a73e8;
    border-left: 3px solid #1a73e8;
}

/* '-' 버튼 스타일 (노선 목록과 경로 리스트 공통) */
.btn-remove {
    background-color: #f1f3f4;
    color: #5f6368;
    border: none;
    padding: 2px 8px;
    font-size: 14px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-remove:hover {
    background-color: #e8eaed;
    color: #d93025;
}

/* 기존 버튼 스타일 조정 (필요한 경우) */
.btn-primary {
    background-color: #1a73e8;
    border-color: #1a73e8;
}

.btn-primary:hover {
    background-color: #1765cc;
    border-color: #1765cc;
}

/* 패널 정보 숨김 */
.leaflet-routing-container {
    display: none !important;
}