/* 지도 컨테이너 */
.map-container {
    position: fixed;
    left: 60px;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
}

/* 지도 툴바 */
.toolbar {
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toolbar .btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.toolbar .btn:hover {
    background: white;
    transform: scale(1.05);
}

/* 지도 타입 버튼 */
.map-type-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    transition: all 0.3s ease;
}

.map-type-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.map-type-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.map-type-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* 데이터 타입 선택기 */
.data-type-selector {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.data-type-btn {
    flex: 1;
    padding: 0.2rem 0.5rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #6b7280;
    transition: all 0.3s ease;
    cursor: pointer;
}

.data-type-btn.active {
    background: white;
    color: #1f2937;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 지도 툴팁 */
.map-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    pointer-events: none;
    z-index: 1050;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    max-width: 220px;
    line-height: 1.4;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.map-tooltip div:not(:last-child) {
    margin-bottom: 2px;
}

/* 구 정보 박스 */
.gu-info {
    position: fixed;
    display: none;
    width: 280px;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    overflow: hidden;
}

.info-header {
    color: white;
    padding: 0.7rem;
    display: flex;
    justify-content: space-between;
}

.info-header h5 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.info-content {
    padding: 0.7rem;
    background: rgba(255, 255, 255, 0.9);
}

.info-content p {
    margin: 0;
    line-height: 1.6;
    color: #374151;
}

.info-content br {
    margin-bottom: 8px;
}

/* 반응형 */
@media (max-width: 768px) {
    .map-tooltip {
        font-size: 11px;
        padding: 6px 10px;
        max-width: 180px;
    }

    .gu-info {
        display: none !important;
    }
}
